diff --git a/dev/index.html b/dev/index.html index 6221e90..a845189 100644 --- a/dev/index.html +++ b/dev/index.html @@ -9,7 +9,7 @@ AI小财神 - + diff --git a/dev/static/css/goldenWheel-8503bff2.css b/dev/static/css/goldenWheel-8503bff2.css deleted file mode 100644 index b250a23..0000000 --- a/dev/static/css/goldenWheel-8503bff2.css +++ /dev/null @@ -1 +0,0 @@ -.wheel-container[data-v-6bde140a]{min-height:100vh;background-image:url(https://d31zlh4on95l9h.cloudfront.net/images/aec2d399d578ab0a97d72bc8628433bb.png);background-size:cover;background-position:bottom center;padding:15px;display:flex;flex-direction:column;align-items:center;position:relative}.top-section[data-v-6bde140a]{width:100%;display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.expire-time[data-v-6bde140a]{color:#fff;font-size:12px;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.5);margin:11px 0 0 12px}.top-right[data-v-6bde140a]{display:flex;gap:20px;align-items:center}.icon-item[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.history-icon[data-v-6bde140a],.rule-icon[data-v-6bde140a],.home-icon[data-v-6bde140a]{width:25px;height:25px;cursor:pointer}.icon-text[data-v-6bde140a]{color:#fff;font-size:11px;text-shadow:1px 1px 1px rgba(0,0,0,.8)}.title-img[data-v-6bde140a]{width:327px;height:144px;margin-bottom:20px}.wheel-section[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;margin-bottom:15px}.wheel-wrapper[data-v-6bde140a]{position:relative;width:333px;height:333px}.wheel-img[data-v-6bde140a]{width:100%;height:100%;transform-origin:center;will-change:transform;transition:transform .3s ease-out}.wheel-img.spinning[data-v-6bde140a]{animation:optimal-spin-6bde140a 3s ease-out forwards}@keyframes optimal-spin-6bde140a{0%{transform:rotate(0);animation-timing-function:ease-in}70%{transform:rotate(1260deg)}to{transform:rotate(1440deg)}}.pointer-img[data-v-6bde140a]{position:absolute;top:50%;left:50%;width:137px;height:137px;transform:translate(-50%,-50%);z-index:2}.pointer-cover-img[data-v-6bde140a]{position:absolute;top:50%;left:50%;width:104px;height:106px;transform:translate(-50%,-50%);z-index:3}.remaining-section[data-v-6bde140a]{position:relative;margin-bottom:20px;display:flex;justify-content:center;margin-top:-5px}.remaining-bg[data-v-6bde140a]{width:104px;height:21.5px}.remaining-text[data-v-6bde140a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:1px 1px 1px rgba(0,0,0,.8);width:100%;text-align:center;white-space:nowrap}.spin-btn[data-v-6bde140a]{background:none;border:none;cursor:pointer;transition:transform .2s ease}.spin-btn[data-v-6bde140a]:active:not(:disabled){transform:scale(.95)}.spin-btn[data-v-6bde140a]:disabled{cursor:not-allowed;opacity:.7}.spin-btn-img[data-v-6bde140a]{width:240px;height:94px}.prize-modal[data-v-6bde140a],.no-times-modal[data-v-6bde140a],.rule-modal[data-v-6bde140a]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-overlay[data-v-6bde140a]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000000b3}.modal-content[data-v-6bde140a]{position:relative;width:333px;height:377px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1001;animation:modal-appear-6bde140a .3s ease-out}@keyframes modal-appear-6bde140a{0%{opacity:0;transform:scale(.8) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.no-times-content[data-v-6bde140a]{position:relative;width:333px;height:79px;display:flex;justify-content:center;align-items:center;z-index:1001;margin-top:250px;animation:slide-up-6bde140a .3s ease-out}@keyframes slide-up-6bde140a{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.no-times-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.prize-info[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:2;margin-top:120px}.prize-title[data-v-6bde140a]{color:#b82525;font-size:25px;font-weight:700;margin-bottom:35px;text-shadow:1px 1px 2px rgba(0,0,0,.5);animation:text-pulse-6bde140a 2s infinite}@keyframes text-pulse-6bde140a{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.prize-amount-wrapper[data-v-6bde140a]{position:relative;display:flex;justify-content:center;align-items:center;margin-top:20px}.prize-amount-bg[data-v-6bde140a]{width:272px;height:58px}.prize-amount[data-v-6bde140a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:25px;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.8)}.close-modal[data-v-6bde140a]{position:absolute;top:115px;right:22px;background:none;border:none;cursor:pointer;z-index:1002;transition:transform .2s ease}.close-modal[data-v-6bde140a]:hover{transform:scale(1.1)}.close-modal img[data-v-6bde140a]{width:35px;height:35px}.rule-content[data-v-6bde140a]{position:relative;width:333px;height:239px;display:flex;flex-direction:column;align-items:center;z-index:1001;animation:modal-appear-6bde140a .3s ease-out;margin-top:80px}.rule-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.close-rule-btn[data-v-6bde140a]{position:absolute;top:45.5px;right:35.5px;background:none;border:none;cursor:pointer;z-index:1002;transition:transform .2s ease;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.close-rule-btn[data-v-6bde140a]:hover{transform:scale(1.1)}.close-rule-btn img[data-v-6bde140a]{width:20px;height:20px;display:block}.rule-text[data-v-6bde140a]{position:absolute;top:83px;left:27px;display:flex;flex-direction:column;gap:9.15px;width:calc(100% - 54px)}.rule-line[data-v-6bde140a]{color:#fff;font-size:12px;line-height:1.4}@media (max-width: 380px){.title-img[data-v-6bde140a]{width:280px;height:123px}.wheel-wrapper[data-v-6bde140a]{width:280px;height:280px}.pointer-img[data-v-6bde140a]{width:115px;height:115px}.pointer-cover-img[data-v-6bde140a]{width:87px;height:89px}.spin-btn-img[data-v-6bde140a]{width:200px;height:78px}.top-right[data-v-6bde140a]{gap:15px}.remaining-section[data-v-6bde140a]{margin-top:-8px}.modal-content[data-v-6bde140a]{width:300px;height:340px}.prize-info[data-v-6bde140a]{margin-top:100px}.prize-title[data-v-6bde140a]{margin-bottom:30px}.prize-amount-wrapper[data-v-6bde140a]{margin-top:18px}.prize-amount-bg[data-v-6bde140a]{width:240px;height:51px}.prize-amount[data-v-6bde140a]{font-size:22px}.no-times-content[data-v-6bde140a]{width:280px;height:66px;margin-top:200px}.close-modal[data-v-6bde140a]{top:100px;right:18px}.close-modal img[data-v-6bde140a]{width:30px;height:30px}.rule-content[data-v-6bde140a]{width:300px;height:215px;margin-top:70px}.close-rule-btn[data-v-6bde140a]{top:41px;right:32px}.rule-text[data-v-6bde140a]{top:75px;left:24px;width:calc(100% - 48px)}} diff --git a/dev/static/css/goldenWheel-900ad187.css b/dev/static/css/goldenWheel-900ad187.css new file mode 100644 index 0000000..93dd7d8 --- /dev/null +++ b/dev/static/css/goldenWheel-900ad187.css @@ -0,0 +1 @@ +.wheel-container[data-v-6bde140a]{min-height:100vh;background-image:url(/aixiaocaishen/static/images/bg-414d461b.png);background-size:cover;background-position:bottom center;padding:15px;display:flex;flex-direction:column;align-items:center;position:relative}.top-section[data-v-6bde140a]{width:100%;display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.expire-time[data-v-6bde140a]{color:#fff;font-size:12px;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.5);margin:11px 0 0 12px}.top-right[data-v-6bde140a]{display:flex;gap:20px;align-items:center}.icon-item[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;gap:4px;cursor:pointer}.history-icon[data-v-6bde140a],.rule-icon[data-v-6bde140a]{width:25px;height:25px;cursor:pointer}.icon-text[data-v-6bde140a]{color:#fff;font-size:11px;text-shadow:1px 1px 1px rgba(0,0,0,.8)}.title-img[data-v-6bde140a]{width:327px;height:144px;margin-bottom:20px}.wheel-section[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;margin-bottom:15px;position:relative}.wheel-wrapper[data-v-6bde140a]{position:relative;width:333px;height:333px}.wheel-img[data-v-6bde140a]{width:100%;height:100%;transform:rotate(-22.5deg)}.pointer-system[data-v-6bde140a]{position:absolute;top:50%;left:50%;width:137px;height:137px;transform:translate(-50%,-50%);z-index:2}.rotation-center[data-v-6bde140a]{position:absolute;top:50%;left:50%;width:4px;height:4px;background:red;border-radius:50%;transform:translate(-50%,-50%);z-index:4;opacity:0}.pointer-base[data-v-6bde140a]{position:relative;width:137px;height:137px;display:flex;justify-content:center;align-items:center;transform:translateZ(0)}.pointer-img[data-v-6bde140a]{position:absolute;top:0;left:0;width:137px;height:137px;transform-origin:68.5px 68.5px;transform:rotate(-21.5deg);transition:transform .1s linear;image-rendering:crisp-edges;-webkit-font-smoothing:subpixel-antialiased;backface-visibility:hidden;perspective:1000px;will-change:transform}.pointer-img.spinning[data-v-6bde140a]{animation:smooth-spin-6bde140a 3s cubic-bezier(.25,.46,.45,.94) forwards;backface-visibility:hidden;transform:translateZ(0);will-change:transform}@keyframes smooth-spin-6bde140a{0%{transform:rotate(-21.5deg);animation-timing-function:cubic-bezier(.25,.46,.45,.94)}to{transform:rotate(var(--target-pointer-rotation, 1440deg))}}.pointer-cover-img[data-v-6bde140a]{position:absolute;top:50%;left:50%;width:104px;height:104px;transform:translate(-50%,-50%);z-index:3;pointer-events:none}.remaining-section[data-v-6bde140a]{position:relative;margin-bottom:20px;display:flex;justify-content:center;margin-top:-5px}.remaining-bg[data-v-6bde140a]{width:104px;height:21.5px}.remaining-text[data-v-6bde140a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:12px;font-weight:700;text-shadow:1px 1px 1px rgba(0,0,0,.8);width:100%;text-align:center;white-space:nowrap}.spin-btn[data-v-6bde140a]{background:none;border:none;cursor:pointer;transition:transform .2s ease;padding:0}.spin-btn[data-v-6bde140a]:active:not(:disabled){transform:scale(.95)}.spin-btn[data-v-6bde140a]:disabled{cursor:not-allowed;opacity:.7}.spin-btn-img[data-v-6bde140a]{width:240px;height:94px}.prize-modal[data-v-6bde140a],.no-times-modal[data-v-6bde140a],.rule-modal[data-v-6bde140a]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-overlay[data-v-6bde140a]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000000b3}.modal-content[data-v-6bde140a]{position:relative;width:333px;height:377px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1001;animation:modal-appear-6bde140a .3s ease-out}@keyframes modal-appear-6bde140a{0%{opacity:0;transform:scale(.8) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.no-times-content[data-v-6bde140a]{position:relative;width:333px;height:79px;display:flex;justify-content:center;align-items:center;z-index:1001;margin-top:250px;animation:slide-up-6bde140a .3s ease-out}@keyframes slide-up-6bde140a{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.no-times-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.prize-info[data-v-6bde140a]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;z-index:2;margin-top:120px}.prize-title[data-v-6bde140a]{color:#b82525;font-size:25px;font-weight:700;margin-bottom:35px;text-shadow:1px 1px 2px rgba(0,0,0,.5);animation:text-pulse-6bde140a 2s infinite}@keyframes text-pulse-6bde140a{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.prize-amount-wrapper[data-v-6bde140a]{position:relative;display:flex;justify-content:center;align-items:center;margin-top:20px;width:272px;height:58px;overflow:hidden}.prize-amount-bg[data-v-6bde140a]{position:absolute;width:272px;height:58px;z-index:1}.prize-amount[data-v-6bde140a]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:25px;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.8);width:240px;text-align:center;white-space:nowrap;z-index:2;overflow:hidden}.prize-amount.scrolling[data-v-6bde140a]{width:170px;text-align:left}.prize-amount.scrolling .prize-text[data-v-6bde140a]{will-change:transform;backface-visibility:hidden;transform:translateZ(0)}.close-modal[data-v-6bde140a]{position:absolute;top:115px;right:22px;background:none;border:none;cursor:pointer;z-index:1002;transition:transform .2s ease;padding:0}.close-modal[data-v-6bde140a]:hover{transform:scale(1.1)}.close-modal img[data-v-6bde140a]{width:35px;height:35px}.rule-content[data-v-6bde140a]{position:relative;width:333px;height:239px;display:flex;flex-direction:column;align-items:center;z-index:1001;animation:modal-appear-6bde140a .3s ease-out;margin-top:10px}.rule-bg[data-v-6bde140a]{position:absolute;width:100%;height:100%;z-index:-1}.close-rule-btn[data-v-6bde140a]{position:absolute;top:45.5px;right:35.5px;background:none;border:none;cursor:pointer;z-index:1002;transition:transform .2s ease;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.close-rule-btn[data-v-6bde140a]:hover{transform:scale(1.1)}.close-rule-btn img[data-v-6bde140a]{width:20px;height:20px;display:block}.rule-text[data-v-6bde140a]{position:absolute;top:83px;left:27px;display:flex;flex-direction:column;gap:8px;width:calc(100% - 54px)}.rule-line[data-v-6bde140a]{color:#fff;font-size:14px;line-height:1.2}@media (max-width: 380px){.title-img[data-v-6bde140a]{width:280px;height:123px}.wheel-wrapper[data-v-6bde140a]{width:280px;height:280px}.pointer-container[data-v-6bde140a],.pointer-system[data-v-6bde140a]{width:115px;height:115px}.pointer-cover-img[data-v-6bde140a]{width:70px;height:70px}.spin-btn-img[data-v-6bde140a]{width:200px;height:78px}.top-right[data-v-6bde140a]{gap:15px}.remaining-section[data-v-6bde140a]{margin-top:-8px}.modal-content[data-v-6bde140a]{width:300px;height:340px}.prize-info[data-v-6bde140a]{margin-top:100px}.prize-title[data-v-6bde140a]{margin-bottom:30px}.prize-amount-wrapper[data-v-6bde140a]{margin-top:18px;width:240px;height:51px}.prize-amount-bg[data-v-6bde140a]{width:240px;height:51px}.prize-amount[data-v-6bde140a]{font-size:22px;width:210px}.prize-amount.scrolling[data-v-6bde140a]{width:190px}.no-times-content[data-v-6bde140a]{width:280px;height:66px;margin-top:200px}.close-modal[data-v-6bde140a]{top:100px;right:18px}.close-modal img[data-v-6bde140a]{width:30px;height:30px}.rule-content[data-v-6bde140a]{width:300px;height:215px;margin-top:20px}.close-rule-btn[data-v-6bde140a]{top:41px;right:32px}.rule-text[data-v-6bde140a]{top:75px;left:24px;width:calc(100% - 48px);gap:5px}.rule-line[data-v-6bde140a]{font-size:13px}}.fold-up[data-v-6bde140a]{width:30px;height:30px;position:absolute;top:20px;left:45px;cursor:pointer;z-index:999}.history-title[data-v-6bde140a]{padding-top:12px;display:flex;justify-content:center;width:100%;color:#00e5ff;font-size:32px;font-weight:700}.history-record[data-v-6bde140a]{background:#080A6D;position:fixed;right:0;bottom:0;width:90%;height:100vh;display:flex;flex-direction:column;--bottom-cut-height: 220px;overflow:hidden;z-index:2000;box-shadow:-8px 0 24px #0009;border-left:1px solid rgba(255,255,255,.03);padding-bottom:0}.history-contents[data-v-6bde140a]{margin-top:20px;padding-right:10px;flex:1 1 auto;overflow-y:auto;-webkit-overflow-scrolling:touch;direction:rtl}.history-contents[data-v-6bde140a]>*{direction:ltr}.history-contents[data-v-6bde140a] *{direction:ltr}.history-contents[data-v-6bde140a]::-webkit-scrollbar{width:14px;background-color:#20086d}.history-contents[data-v-6bde140a]::-webkit-scrollbar-thumb{background-color:#4a4de6;border-radius:4px}.history-contents[data-v-6bde140a]::-webkit-scrollbar-thumb:hover{background-color:#6b6ef5}.history-decoration[data-v-6bde140a]{flex:0 0 200px;height:var(--bottom-cut-height);position:relative;left:50%;transform:translate(-50%);width:100%;pointer-events:none;z-index:0;background-image:url(/aixiaocaishen/static/images/bottomDecoration-bb9d1cdd.png);background-repeat:no-repeat;background-position:center bottom;background-size:contain;margin-top:0}.history-record-item[data-v-6bde140a]{background:#0b0d99;margin-bottom:10px;display:flex;justify-content:space-between;width:80%;padding:8px;border-radius:8px}.history-record-item .left[data-v-6bde140a]{display:flex;flex-direction:column;gap:6px;min-width:0;padding:5px}.history-record-item .title[data-v-6bde140a]{color:#f2f5ff;font-size:16px;font-weight:700;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:flex;align-items:center}.history-record-item .time[data-v-6bde140a]{font-size:12px;color:#e6ecff;font-weight:700;margin-left:28px}.history-record-item .right[data-v-6bde140a]{display:flex;align-items:center;justify-content:flex-end;min-width:72px;padding-right:10px}.history-record-item .token[data-v-6bde140a]{color:#00e6ff;font-size:16px;font-weight:700}.circle[data-v-6bde140a]{width:10px;height:10px;background-color:#fff;margin-right:8px;flex-shrink:0;margin-left:10px;border-radius:50%}.month-row[data-v-6bde140a],.year-header[data-v-6bde140a]{display:flex;align-items:center;padding-bottom:12px;cursor:pointer;color:#fff;font-weight:700}.month-text[data-v-6bde140a],.year-text[data-v-6bde140a]{font-weight:700;font-size:16px;color:#fff}.month-caret[data-v-6bde140a],.year-caret[data-v-6bde140a]{margin-left:10px;font-size:16px;color:#fff}.empty-month[data-v-6bde140a]{padding:8px;color:#cfd9ff;background:transparent}@media (max-width: 900px){.history-record[data-v-6bde140a]{width:90%}.history-record-item[data-v-6bde140a]{width:calc(100% - 60px)}}@media (max-width: 430px){.history-record-item .title[data-v-6bde140a]{font-size:12px}.history-record-item .time[data-v-6bde140a]{font-size:10px;margin-left:10px}.history-record-item .token[data-v-6bde140a]{font-size:14px}.history-record-item .right[data-v-6bde140a]{padding-right:5px}.circle[data-v-6bde140a]{width:8px;height:8px;margin-left:0}.month-caret[data-v-6bde140a],.year-caret[data-v-6bde140a]{margin-left:5px}} diff --git a/dev/static/images/bg-414d461b.png b/dev/static/images/bg-414d461b.png new file mode 100644 index 0000000..2836b03 Binary files /dev/null and b/dev/static/images/bg-414d461b.png differ diff --git a/dev/static/images/bottomDecoration-bb9d1cdd.png b/dev/static/images/bottomDecoration-bb9d1cdd.png new file mode 100644 index 0000000..2cc9944 Binary files /dev/null and b/dev/static/images/bottomDecoration-bb9d1cdd.png differ diff --git a/dev/static/images/pointer-32424fb8.png b/dev/static/images/pointer-32424fb8.png new file mode 100644 index 0000000..668cf7a Binary files /dev/null and b/dev/static/images/pointer-32424fb8.png differ diff --git a/dev/static/js/AIfind-ac1d6c69.js b/dev/static/js/AIfind-b761aee6.js similarity index 99% rename from dev/static/js/AIfind-ac1d6c69.js rename to dev/static/js/AIfind-b761aee6.js index eafe5c7..258d632 100644 --- a/dev/static/js/AIfind-ac1d6c69.js +++ b/dev/static/js/AIfind-b761aee6.js @@ -1 +1 @@ -import{_ as e,r as t,o as r,G as a,b as n,c as i,e as o,F as s,A as l,H as h,I as m,d as c,Z as p,Q as u,J as d,C as g,$ as f}from"./index-4cb6f38c.js";import{m as v}from"./marked.esm-cf4f21f5.js";class b{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new b(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class y{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new y(t,b.range(this,e))}}class x{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,a,n="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;r=i.start,a=i.end,r===o.length?n+=" at end of input: ":n+=" at position "+(r+1)+": ";var s=o.slice(r,a).replace(/[^]/g,"$&̲");n+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(a+15":">","<":"<",'"':""","'":"'"},S=/[&><"']/g;var M=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},z={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(S,(e=>k[e]))},hyphenate:function(e){return e.replace(w,"-$1").toLowerCase()},getBaseElem:M,isCharacterBox:function(e){var t=M(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},A={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function T(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class B{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},A)if(A.hasOwnProperty(t)){var r=A[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:T(r)}}reportNonstrict(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new x("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(n){a="error"}return!(!a||"ignore"===a)&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=z.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class C{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return N[q[this.id]]}sub(){return N[I[this.id]]}fracNum(){return N[R[this.id]]}fracDen(){return N[H[this.id]]}cramp(){return N[O[this.id]]}text(){return N[E[this.id]]}isTight(){return this.size>=2}}var N=[new C(0,0,!1),new C(1,0,!0),new C(2,1,!1),new C(3,1,!0),new C(4,2,!1),new C(5,2,!0),new C(6,3,!1),new C(7,3,!0)],q=[4,5,4,5,6,7,6,7],I=[5,5,5,5,7,7,7,7],R=[2,3,4,5,6,7,6,7],H=[3,3,5,5,7,7,7,7],O=[1,1,3,3,5,5,7,7],E=[0,1,2,3,2,3,2,3],L={DISPLAY:N[0],TEXT:N[2],SCRIPT:N[4],SCRIPTSCRIPT:N[6]},D=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var V=[];function P(e){for(var t=0;t=V[t]&&e<=V[t+1])return!0;return!1}D.forEach((e=>e.blocks.forEach((e=>V.push(...e)))));var F={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class G{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return z.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText())).join("")}}var U={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},_={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Y={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function X(e,t,r){if(!U[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=U[t][a];if(!n&&e[0]in Y&&(a=Y[e[0]].charCodeAt(0),n=U[t][a]),n||"text"!==r||P(a)&&(n=U[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var W={};var j=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],$=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Z=function(e,t){return t.size<2?e:j[e-1][t.size-1]};class K{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||K.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=$[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new K(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Z(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:$[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Z(K.BASESIZE,e);return this.size===t&&this.textSize===K.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==K.BASESIZE?["sizing","reset-size"+this.size,"size"+K.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!W[t=e>=5?0:e>=3?1:2]){var r=W[t]={cssEmPerMu:_.quad[t]/18};for(var a in _)_.hasOwnProperty(a)&&(r[a]=_[a][t])}return W[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}K.BASESIZE=6;var J={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Q={ex:!0,em:!0,mu:!0},ee=function(e){return"string"!=typeof e&&(e=e.unit),e in J||e in Q||"ex"===e},te=function(e,t){var r;if(e.unit in J)r=J[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new x("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},re=function(e){return+e.toFixed(4)+"em"},ae=function(e){return e.filter((e=>e)).join(" ")},ne=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},ie=function(e){var t=document.createElement(e);for(var r in t.className=ae(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n/=\x00-\x1f]/,se=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+z.escape(ae(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=z.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+z.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(n)){if(oe.test(n))throw new x("Invalid attribute name '"+n+"'");t+=" "+n+'="'+z.escape(this.attributes[n])+'"'}t+=">";for(var i=0;i"};class le{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ne.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return z.contains(this.classes,e)}toNode(){return ie.call(this,"span")}toMarkup(){return se.call(this,"span")}}class he{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ne.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return z.contains(this.classes,e)}toNode(){return ie.call(this,"a")}toMarkup(){return se.call(this,"a")}}class me{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return z.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+z.escape(this.alt)+'=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ce[this.text])}hasClass(e){return z.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=re(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=ae(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=z.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+z.escape(r)+'"');var n=z.escape(this.text);return e?(t+=">",t+=n,t+=""):n}}class ue{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r':''}}class ge{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="","\\gt",!0),xe(we,Se,qe,"∈","\\in",!0),xe(we,Se,qe,"","\\@not"),xe(we,Se,qe,"⊂","\\subset",!0),xe(we,Se,qe,"⊃","\\supset",!0),xe(we,Se,qe,"⊆","\\subseteq",!0),xe(we,Se,qe,"⊇","\\supseteq",!0),xe(we,Me,qe,"⊈","\\nsubseteq",!0),xe(we,Me,qe,"⊉","\\nsupseteq",!0),xe(we,Se,qe,"⊨","\\models"),xe(we,Se,qe,"←","\\leftarrow",!0),xe(we,Se,qe,"≤","\\le"),xe(we,Se,qe,"≤","\\leq",!0),xe(we,Se,qe,"<","\\lt",!0),xe(we,Se,qe,"→","\\rightarrow",!0),xe(we,Se,qe,"→","\\to"),xe(we,Me,qe,"≱","\\ngeq",!0),xe(we,Me,qe,"≰","\\nleq",!0),xe(we,Se,"spacing"," ","\\ "),xe(we,Se,"spacing"," ","\\space"),xe(we,Se,"spacing"," ","\\nobreakspace"),xe(ke,Se,"spacing"," ","\\ "),xe(ke,Se,"spacing"," "," "),xe(ke,Se,"spacing"," ","\\space"),xe(ke,Se,"spacing"," ","\\nobreakspace"),xe(we,Se,"spacing",null,"\\nobreak"),xe(we,Se,"spacing",null,"\\allowbreak"),xe(we,Se,"punct",",",","),xe(we,Se,"punct",";",";"),xe(we,Me,Ae,"⊼","\\barwedge",!0),xe(we,Me,Ae,"⊻","\\veebar",!0),xe(we,Se,Ae,"⊙","\\odot",!0),xe(we,Se,Ae,"⊕","\\oplus",!0),xe(we,Se,Ae,"⊗","\\otimes",!0),xe(we,Se,Ie,"∂","\\partial",!0),xe(we,Se,Ae,"⊘","\\oslash",!0),xe(we,Me,Ae,"⊚","\\circledcirc",!0),xe(we,Me,Ae,"⊡","\\boxdot",!0),xe(we,Se,Ae,"△","\\bigtriangleup"),xe(we,Se,Ae,"▽","\\bigtriangledown"),xe(we,Se,Ae,"†","\\dagger"),xe(we,Se,Ae,"⋄","\\diamond"),xe(we,Se,Ae,"⋆","\\star"),xe(we,Se,Ae,"◃","\\triangleleft"),xe(we,Se,Ae,"▹","\\triangleright"),xe(we,Se,Ne,"{","\\{"),xe(ke,Se,Ie,"{","\\{"),xe(ke,Se,Ie,"{","\\textbraceleft"),xe(we,Se,Te,"}","\\}"),xe(ke,Se,Ie,"}","\\}"),xe(ke,Se,Ie,"}","\\textbraceright"),xe(we,Se,Ne,"{","\\lbrace"),xe(we,Se,Te,"}","\\rbrace"),xe(we,Se,Ne,"[","\\lbrack",!0),xe(ke,Se,Ie,"[","\\lbrack",!0),xe(we,Se,Te,"]","\\rbrack",!0),xe(ke,Se,Ie,"]","\\rbrack",!0),xe(we,Se,Ne,"(","\\lparen",!0),xe(we,Se,Te,")","\\rparen",!0),xe(ke,Se,Ie,"<","\\textless",!0),xe(ke,Se,Ie,">","\\textgreater",!0),xe(we,Se,Ne,"⌊","\\lfloor",!0),xe(we,Se,Te,"⌋","\\rfloor",!0),xe(we,Se,Ne,"⌈","\\lceil",!0),xe(we,Se,Te,"⌉","\\rceil",!0),xe(we,Se,Ie,"\\","\\backslash"),xe(we,Se,Ie,"∣","|"),xe(we,Se,Ie,"∣","\\vert"),xe(ke,Se,Ie,"|","\\textbar",!0),xe(we,Se,Ie,"∥","\\|"),xe(we,Se,Ie,"∥","\\Vert"),xe(ke,Se,Ie,"∥","\\textbardbl"),xe(ke,Se,Ie,"~","\\textasciitilde"),xe(ke,Se,Ie,"\\","\\textbackslash"),xe(ke,Se,Ie,"^","\\textasciicircum"),xe(we,Se,qe,"↑","\\uparrow",!0),xe(we,Se,qe,"⇑","\\Uparrow",!0),xe(we,Se,qe,"↓","\\downarrow",!0),xe(we,Se,qe,"⇓","\\Downarrow",!0),xe(we,Se,qe,"↕","\\updownarrow",!0),xe(we,Se,qe,"⇕","\\Updownarrow",!0),xe(we,Se,Ce,"∐","\\coprod"),xe(we,Se,Ce,"⋁","\\bigvee"),xe(we,Se,Ce,"⋀","\\bigwedge"),xe(we,Se,Ce,"⨄","\\biguplus"),xe(we,Se,Ce,"⋂","\\bigcap"),xe(we,Se,Ce,"⋃","\\bigcup"),xe(we,Se,Ce,"∫","\\int"),xe(we,Se,Ce,"∫","\\intop"),xe(we,Se,Ce,"∬","\\iint"),xe(we,Se,Ce,"∭","\\iiint"),xe(we,Se,Ce,"∏","\\prod"),xe(we,Se,Ce,"∑","\\sum"),xe(we,Se,Ce,"⨂","\\bigotimes"),xe(we,Se,Ce,"⨁","\\bigoplus"),xe(we,Se,Ce,"⨀","\\bigodot"),xe(we,Se,Ce,"∮","\\oint"),xe(we,Se,Ce,"∯","\\oiint"),xe(we,Se,Ce,"∰","\\oiiint"),xe(we,Se,Ce,"⨆","\\bigsqcup"),xe(we,Se,Ce,"∫","\\smallint"),xe(ke,Se,"inner","…","\\textellipsis"),xe(we,Se,"inner","…","\\mathellipsis"),xe(ke,Se,"inner","…","\\ldots",!0),xe(we,Se,"inner","…","\\ldots",!0),xe(we,Se,"inner","⋯","\\@cdots",!0),xe(we,Se,"inner","⋱","\\ddots",!0),xe(we,Se,Ie,"⋮","\\varvdots"),xe(ke,Se,Ie,"⋮","\\varvdots"),xe(we,Se,ze,"ˊ","\\acute"),xe(we,Se,ze,"ˋ","\\grave"),xe(we,Se,ze,"¨","\\ddot"),xe(we,Se,ze,"~","\\tilde"),xe(we,Se,ze,"ˉ","\\bar"),xe(we,Se,ze,"˘","\\breve"),xe(we,Se,ze,"ˇ","\\check"),xe(we,Se,ze,"^","\\hat"),xe(we,Se,ze,"⃗","\\vec"),xe(we,Se,ze,"˙","\\dot"),xe(we,Se,ze,"˚","\\mathring"),xe(we,Se,Be,"","\\@imath"),xe(we,Se,Be,"","\\@jmath"),xe(we,Se,Ie,"ı","ı"),xe(we,Se,Ie,"ȷ","ȷ"),xe(ke,Se,Ie,"ı","\\i",!0),xe(ke,Se,Ie,"ȷ","\\j",!0),xe(ke,Se,Ie,"ß","\\ss",!0),xe(ke,Se,Ie,"æ","\\ae",!0),xe(ke,Se,Ie,"œ","\\oe",!0),xe(ke,Se,Ie,"ø","\\o",!0),xe(ke,Se,Ie,"Æ","\\AE",!0),xe(ke,Se,Ie,"Œ","\\OE",!0),xe(ke,Se,Ie,"Ø","\\O",!0),xe(ke,Se,ze,"ˊ","\\'"),xe(ke,Se,ze,"ˋ","\\`"),xe(ke,Se,ze,"ˆ","\\^"),xe(ke,Se,ze,"˜","\\~"),xe(ke,Se,ze,"ˉ","\\="),xe(ke,Se,ze,"˘","\\u"),xe(ke,Se,ze,"˙","\\."),xe(ke,Se,ze,"¸","\\c"),xe(ke,Se,ze,"˚","\\r"),xe(ke,Se,ze,"ˇ","\\v"),xe(ke,Se,ze,"¨",'\\"'),xe(ke,Se,ze,"˝","\\H"),xe(ke,Se,ze,"◯","\\textcircled");var Re={"--":!0,"---":!0,"``":!0,"''":!0};xe(ke,Se,Ie,"–","--",!0),xe(ke,Se,Ie,"–","\\textendash"),xe(ke,Se,Ie,"—","---",!0),xe(ke,Se,Ie,"—","\\textemdash"),xe(ke,Se,Ie,"‘","`",!0),xe(ke,Se,Ie,"‘","\\textquoteleft"),xe(ke,Se,Ie,"’","'",!0),xe(ke,Se,Ie,"’","\\textquoteright"),xe(ke,Se,Ie,"“","``",!0),xe(ke,Se,Ie,"“","\\textquotedblleft"),xe(ke,Se,Ie,"”","''",!0),xe(ke,Se,Ie,"”","\\textquotedblright"),xe(we,Se,Ie,"°","\\degree",!0),xe(ke,Se,Ie,"°","\\degree"),xe(ke,Se,Ie,"°","\\textdegree",!0),xe(we,Se,Ie,"£","\\pounds"),xe(we,Se,Ie,"£","\\mathsterling",!0),xe(ke,Se,Ie,"£","\\pounds"),xe(ke,Se,Ie,"£","\\textsterling",!0),xe(we,Me,Ie,"✠","\\maltese"),xe(ke,Me,Ie,"✠","\\maltese");for(var He=0;He<'0123456789/@."'.length;He++){var Oe='0123456789/@."'.charAt(He);xe(we,Se,Ie,Oe,Oe)}for(var Ee=0;Ee<'0123456789!@*()-=+";:?/.,'.length;Ee++){var Le='0123456789!@*()-=+";:?/.,'.charAt(Ee);xe(ke,Se,Ie,Le,Le)}for(var De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ve=0;Ve{if(ae(e.classes)!==ae(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},Qe=function(e){for(var t=0,r=0,a=0,n=0;nt&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},et=function(e,t,r,a){var n=new le(e,t,r,a);return Qe(n),n},tt=(e,t,r,a)=>new le(e,t,r,a),rt=function(e){var t=new G(e);return Qe(t),t},at=function(e,t,r){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return a+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},nt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},it={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ot={fontMap:nt,makeSymbol:Ke,mathsym:function(e,t,r,a){return void 0===a&&(a=[]),"boldsymbol"===r.font&&Ze(e,"Main-Bold",t).metrics?Ke(e,"Main-Bold",t,r,a.concat(["mathbf"])):"\\"===e||"main"===ye[t][e].font?Ke(e,"Main-Regular",t,r,a):Ke(e,"AMS-Regular",t,r,a.concat(["amsrm"]))},makeSpan:et,makeSvgSpan:tt,makeLineSpan:function(e,t,r){var a=et([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=re(a.height),a.maxFontSize=1,a},makeAnchor:function(e,t,r,a){var n=new he(e,t,r,a);return Qe(n),n},makeFragment:rt,wrapFragment:function(e,t){return e instanceof G?et([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:a}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,i=1;i0)return Ke(n,l,a,t,i.concat(h));if(s){var m,c;if("boldsymbol"===s){var p=function(e,t,r,a,n){return"textord"!==n&&Ze(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(n,a,0,0,r);m=p.fontName,c=[p.fontClass]}else o?(m=nt[s].fontName,c=[s]):(m=at(s,t.fontWeight,t.fontShape),c=[s,t.fontWeight,t.fontShape]);if(Ze(n,m,a).metrics)return Ke(n,m,a,t,i.concat(c));if(Re.hasOwnProperty(n)&&"Typewriter"===m.slice(0,10)){for(var u=[],d=0;d{var r=et(["mspace"],[],t),a=te(e,t);return r.style.marginRight=re(a),r},staticSvg:function(e,t){var[r,a,n]=it[e],i=new de(r),o=new ue([i],{width:re(a),height:re(n),style:"width:"+re(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),s=tt(["overlay"],[o],t);return s.height=n,s.style.height=re(n),s.style.width=re(a),s},svgData:it,tryCombineChars:e=>{for(var t=0;t{var r=t.classes[0],a=e.classes[0];"mbin"===r&&z.contains(wt,a)?t.classes[0]="mord":"mbin"===a&&z.contains(xt,r)&&(e.classes[0]="mord")}),{node:m},c,p),zt(n,((e,t)=>{var r=Bt(t),a=Bt(e),n=r&&a?e.hasClass("mtight")?ct[r][a]:mt[r][a]:null;if(n)return ot.makeGlue(n,l)}),{node:m},c,p),n},zt=function e(t,r,a,n,i){n&&t.push(n);for(var o=0;or=>{t.splice(e+1,0,r),o++})(o)}}n&&t.pop()},At=function(e){return e instanceof G||e instanceof he||e instanceof le&&e.hasClass("enclosing")?e:null},Tt=function e(t,r){var a=At(t);if(a){var n=a.children;if(n.length){if("right"===r)return e(n[n.length-1],"right");if("left"===r)return e(n[0],"left")}}return t},Bt=function(e,t){return e?(t&&(e=Tt(e,t)),St[e.classes[0]]||null):null},Ct=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return yt(t.concat(r))},Nt=function(e,t,r){if(!e)return yt();if(ut[e.type]){var a=ut[e.type](e,t);if(r&&t.size!==r.size){a=yt(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}throw new x("Got group of unknown type: '"+e.type+"'")};function qt(e,t){var r=yt(["base"],e,t),a=yt(["strut"]);return a.style.height=re(r.height+r.depth),r.depth&&(a.style.verticalAlign=re(-r.depth)),r.children.unshift(a),r}function It(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var a,n=Mt(e,t,"root");2===n.length&&n[1].hasClass("tag")&&(a=n.pop());for(var i,o=[],s=[],l=0;l0&&(o.push(qt(s,t)),s=[]),o.push(n[l]));s.length>0&&o.push(qt(s,t)),r?((i=qt(Mt(r,t,!0))).classes=["tag"],o.push(i)):a&&o.push(a);var m=yt(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=re(m.height+m.depth),m.depth&&(c.style.verticalAlign=re(-m.depth))}return m}function Rt(e){return new G(e)}class Ht{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ae(this.classes));for(var r=0;r0&&(e+=' class ="'+z.escape(ae(this.classes))+'"'),e+=">";for(var r=0;r"}toText(){return this.children.map((e=>e.toText())).join("")}}class Ot{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return z.escape(this.toText())}toText(){return this.text}}var Et={MathNode:Ht,TextNode:Ot,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",re(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:Rt},Lt=function(e,t,r){return!ye[t][e]||!ye[t][e].replace||55349===e.charCodeAt(0)||Re.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=ye[t][e].replace),new Et.TextNode(e)},Dt=function(e){return 1===e.length?e[0]:new Et.MathNode("mrow",e)},Vt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var n=e.text;return z.contains(["\\imath","\\jmath"],n)?null:(ye[a][n]&&ye[a][n].replace&&(n=ye[a][n].replace),X(n,ot.fontMap[r].fontName,a)?ot.fontMap[r].variant:null)};function Pt(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof Ot&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof Ot&&","===r.text}return!1}var Ft=function(e,t,r){if(1===e.length){var a=Ut(e[0],t);return r&&a instanceof Ht&&"mo"===a.type&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n,i=[],o=0;o=1&&("mn"===n.type||Pt(n))){var l=s.children[0];l instanceof Ht&&"mn"===l.type&&(l.children=[...n.children,...l.children],i.pop())}else if("mi"===n.type&&1===n.children.length){var h=n.children[0];if(h instanceof Ot&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var m=s.children[0];m instanceof Ot&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),i.pop())}}}i.push(s),n=s}return i},Gt=function(e,t,r){return Dt(Ft(e,t,r))},Ut=function(e,t){if(!e)return new Et.MathNode("mrow");if(dt[e.type])return dt[e.type](e,t);throw new x("Got group of unknown type: '"+e.type+"'")};function _t(e,t,r,a,n){var i,o=Ft(e,r);i=1===o.length&&o[0]instanceof Ht&&z.contains(["mrow","mtable"],o[0].type)?o[0]:new Et.MathNode("mrow",o);var s=new Et.MathNode("annotation",[new Et.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Et.MathNode("semantics",[i,s]),h=new Et.MathNode("math",[l]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&h.setAttribute("display","block");var m=n?"katex":"katex-mathml";return ot.makeSpan([m],[h])}var Yt=function(e){return new K({style:e.displayMode?L.DISPLAY:L.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Xt=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ot.makeSpan(r,[e])}return e},Wt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},jt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},$t=function(e,t,r,a,n){var i,o=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(i=ot.makeSpan(["stretchy",t],[],n),"fbox"===t){var s=n.color&&n.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new ge({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new ge({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new ue(l,{width:"100%",height:re(o)});i=ot.makeSvgSpan([],[h],n)}return i.height=o,i.style.height=re(o),i},Zt=function(e){var t=new Et.MathNode("mo",[new Et.TextNode(Wt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Kt=function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(z.contains(["widehat","widecheck","widetilde","utilde"],a)){var n,i,o,s="ordgroup"===(u=e.base).type?u.body.length:1;if(s>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,o=.42,i=a+"4"):(n=312,r=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][l],n=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=a+l):(r=[0,600,1033,2339,2340][l],n=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var h=new de(i),m=new ue([h],{width:"100%",height:re(o),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:ot.makeSvgSpan([],[m],t),minWidth:0,height:o}}var c,p,u,d=[],g=jt[a],[f,v,b]=g,y=b/1e3,x=f.length;if(1===x)c=["hide-tail"],p=[g[3]];else if(2===x)c=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");c=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var w=0;w0&&(r.style.minWidth=re(a)),r};function Jt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qt(e){var t=er(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function er(e){return e&&("atom"===e.type||be.hasOwnProperty(e.type))?e:null}var tr=(e,t)=>{var r,a,n;e&&"supsub"===e.type?(r=(a=Jt(e.base,"accent")).base,e.base=r,n=function(e){if(e instanceof le)return e;throw new Error("Expected span but got "+String(e)+".")}(Nt(e,t)),e.base=a):r=(a=Jt(e,"accent")).base;var i=Nt(r,t.havingCrampedStyle()),o=0;if(a.isShifty&&z.isCharacterBox(r)){var s=z.getBaseElem(r);o=fe(Nt(s,t.havingCrampedStyle())).skew}var l,h="\\c"===a.label,m=h?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(a.isStretchy)l=Kt(a,t),l=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+re(2*o)+")",marginLeft:re(2*o)}:void 0}]},t);else{var c,p;"\\vec"===a.label?(c=ot.staticSvg("vec",t),p=ot.svgData.vec[1]):((c=fe(c=ot.makeOrd({mode:a.mode,text:a.label},t,"textord"))).italic=0,p=c.width,h&&(m+=c.depth)),l=ot.makeSpan(["accent-body"],[c]);var u="\\textcircled"===a.label;u&&(l.classes.push("accent-full"),m=i.height);var d=o;u||(d-=p/2),l.style.left=re(d),"\\textcircled"===a.label&&(l.style.top=".2em"),l=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-m},{type:"elem",elem:l}]},t)}var g=ot.makeSpan(["mord","accent"],[l],t);return n?(n.children[0]=g,n.height=Math.max(g.height,n.height),n.classes[0]="mord",n):g},rr=(e,t)=>{var r=e.isStretchy?Zt(e.label):new Et.MathNode("mo",[Lt(e.label,e.mode)]),a=new Et.MathNode("mover",[Ut(e.base,t),r]);return a.setAttribute("accent","true"),a},ar=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));gt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=vt(t[0]),a=!ar.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:tr,mathmlBuilder:rr}),gt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:tr,mathmlBuilder:rr}),gt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=Nt(e.base,t),a=Kt(e,t),n="\\utilde"===e.label?.12:0,i=ot.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return ot.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=Zt(e.label),a=new Et.MathNode("munder",[Ut(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var nr=e=>{var t=new Et.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};gt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a=t.style,n=t.havingStyle(a.sup()),i=ot.wrapFragment(Nt(e.body,n,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(n=t.havingStyle(a.sub()),(r=ot.wrapFragment(Nt(e.below,n,t),t)).classes.push(o+"-arrow-pad"));var s,l=Kt(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),ot.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,a=Zt(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=nr(Ut(e.body,t));if(e.below){var i=nr(Ut(e.below,t));r=new Et.MathNode("munderover",[a,i,n])}else r=new Et.MathNode("mover",[a,n])}else if(e.below){var o=nr(Ut(e.below,t));r=new Et.MathNode("munder",[a,o])}else r=nr(),r=new Et.MathNode("mover",[a,r]);return r}});var ir=ot.makeSpan;function or(e,t){var r=Mt(e.body,t,!0);return ir([e.mclass],r,t)}function sr(e,t){var r,a=Ft(e.body,t);return"minner"===e.mclass?r=new Et.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new Et.MathNode("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new Et.MathNode("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}gt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:bt(n),isCharacterBox:z.isCharacterBox(n)}},htmlBuilder:or,mathmlBuilder:sr});var lr=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};gt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:lr(t[0]),body:bt(t[1]),isCharacterBox:z.isCharacterBox(t[1])}}}),gt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,i=t[1],o=t[0];r="\\stackrel"!==n?lr(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:bt(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===n?null:o,sub:"\\underset"===n?o:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:z.isCharacterBox(l)}},htmlBuilder:or,mathmlBuilder:sr}),gt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:lr(t[0]),body:bt(t[0])}},htmlBuilder(e,t){var r=Mt(e.body,t,!0),a=ot.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=Ft(e.body,t),a=new Et.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var hr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mr=e=>"textord"===e.type&&"@"===e.text;function cr(e,t,r){var a=hr[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n={type:"atom",text:a,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[n],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}gt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=ot.wrapFragment(Nt(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=re(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new Et.MathNode("mrow",[Ut(e.label,t)]);return(r=new Et.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Et.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),gt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=ot.wrapFragment(Nt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new Et.MathNode("mrow",[Ut(e.fragment,t)])}),gt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=Jt(t[0],"ordgroup").body,n="",i=0;i=1114111)throw new x("\\@char with invalid code point "+n);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var pr=(e,t)=>{var r=Mt(e.body,t.withColor(e.color),!1);return ot.makeFragment(r)},ur=(e,t)=>{var r=Ft(e.body,t.withColor(e.color)),a=new Et.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};gt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=Jt(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:bt(n)}},htmlBuilder:pr,mathmlBuilder:ur}),gt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=Jt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:pr,mathmlBuilder:ur}),gt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:n&&Jt(n,"size").value}},htmlBuilder(e,t){var r=ot.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=re(te(e.size,t)))),r},mathmlBuilder(e,t){var r=new Et.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",re(te(e.size,t)))),r}});var dr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},gr=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new x("Expected a control sequence",e);return t},fr=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};gt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(dr[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=dr[a.text]),Jt(t.parseFunction(),"internal");throw new x("Invalid token after macro prefix",a)}}),gt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new x("Expected a control sequence",a);for(var i,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new x('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new x('Argument number "'+a.text+'" out of order');o++,s.push([])}else{if("EOF"===a.text)throw new x("Expected a macro definition");s[o].push(a.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(n,{tokens:l,numArgs:o,delimiters:s},r===dr[r]),{type:"internal",mode:t.mode}}}),gt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=gr(t.gullet.popToken());t.gullet.consumeSpaces();var n=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return fr(t,a,n,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),gt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=gr(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return fr(t,a,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var vr=function(e,t,r){var a=X(ye.math[e]&&ye.math[e].replace||e,t,r);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return a},br=function(e,t,r,a){var n=r.havingBaseStyle(t),i=ot.makeSpan(a.concat(n.sizingClasses(r)),[e],r),o=n.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=n.sizeMultiplier,i},yr=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=re(n),e.height-=n,e.depth+=n},xr=function(e,t,r,a,n,i){var o=function(e,t,r,a){return ot.makeSymbol(e,"Size"+t+"-Regular",r,a)}(e,t,n,a),s=br(ot.makeSpan(["delimsizing","size"+t],[o],a),L.TEXT,a,i);return r&&yr(s,a,L.TEXT),s},wr=function(e,t,r){var a;return a="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:ot.makeSpan(["delimsizinginner",a],[ot.makeSpan([],[ot.makeSymbol(e,t,r)])])}},kr=function(e,t,r){var a=U["Size4-Regular"][e.charCodeAt(0)]?U["Size4-Regular"][e.charCodeAt(0)][4]:U["Size1-Regular"][e.charCodeAt(0)][4],n=new de("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new ue([n],{width:re(a),height:re(t),style:"width:"+re(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=ot.makeSvgSpan([],[i],r);return o.height=t,o.style.height=re(t),o.style.width=re(a),{type:"elem",elem:o}},Sr={type:"kern",size:-.008},Mr=["|","\\lvert","\\rvert","\\vert"],zr=["\\|","\\lVert","\\rVert","\\Vert"],Ar=function(e,t,r,a,n,i){var o,s,l,h,m="",c=0;o=l=h=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",h="\\Downarrow"):z.contains(Mr,e)?(l="∣",m="vert",c=333):z.contains(zr,e)?(l="∥",m="doublevert",c=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",h="⎣",p="Size4-Regular",m="lbrack",c=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",h="⎦",p="Size4-Regular",m="rbrack",c=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",h="⎣",p="Size4-Regular",m="lfloor",c=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=h="⎢",p="Size4-Regular",m="lceil",c=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",h="⎦",p="Size4-Regular",m="rfloor",c=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=h="⎥",p="Size4-Regular",m="rceil",c=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",h="⎝",p="Size4-Regular",m="lparen",c=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",h="⎠",p="Size4-Regular",m="rparen",c=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",h="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",h="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",h="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",h="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",h="⎭",l="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",h="⎩",l="⎪",p="Size4-Regular");var u=vr(o,p,n),d=u.height+u.depth,g=vr(l,p,n),f=g.height+g.depth,v=vr(h,p,n),b=v.height+v.depth,y=0,x=1;if(null!==s){var w=vr(s,p,n);y=w.height+w.depth,x=2}var k=d+b+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,M=a.fontMetrics().axisHeight;r&&(M*=a.sizeMultiplier);var A=S/2-M,T=[];if(m.length>0){var B=S-d-b,C=Math.round(1e3*S),N=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(m,Math.round(1e3*B)),q=new de(m,N),I=(c/1e3).toFixed(3)+"em",R=(C/1e3).toFixed(3)+"em",H=new ue([q],{width:I,height:R,viewBox:"0 0 "+c+" "+C}),O=ot.makeSvgSpan([],[H],a);O.height=C/1e3,O.style.width=I,O.style.height=R,T.push({type:"elem",elem:O})}else{if(T.push(wr(h,p,n)),T.push(Sr),null===s){var E=S-d-b+.016;T.push(kr(l,E,a))}else{var D=(S-d-b-y)/2+.016;T.push(kr(l,D,a)),T.push(Sr),T.push(wr(s,p,n)),T.push(Sr),T.push(kr(l,D,a))}T.push(Sr),T.push(wr(o,p,n))}var V=a.havingBaseStyle(L.TEXT),P=ot.makeVList({positionType:"bottom",positionData:A,children:T},V);return br(ot.makeSpan(["delimsizing","mult"],[P],V),L.TEXT,a,i)},Tr=function(e,t,r,a,n){var i=function(e,t,r){t*=1e3;var a="";switch(e){case"sqrtMain":a=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize1":a=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize2":a=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize3":a=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize4":a=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,80);break;case"sqrtTall":a=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,80,r)}return a}(e,a,r),o=new de(e,i),s=new ue([o],{width:"400em",height:re(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ot.makeSvgSpan(["hide-tail"],[s],n)},Br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Cr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Nr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qr=[0,1.2,1.8,2.4,3],Ir=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Rr=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"stack"}],Hr=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Or=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Er=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size);nt)return r[n]}return r[r.length-1]},Lr=function(e,t,r,a,n,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=z.contains(Nr,e)?Ir:z.contains(Br,e)?Hr:Rr;var s=Er(e,t,o,a);return"small"===s.type?function(e,t,r,a,n,i){var o=ot.makeSymbol(e,"Main-Regular",n,a),s=br(o,t,a,i);return r&&yr(s,a,t),s}(e,s.style,r,a,n,i):"large"===s.type?xr(e,s.size,r,a,n,i):Ar(e,t,r,a,n,i)},Dr={sqrtImage:function(e,t){var r,a,n=t.havingBaseSizing(),i=Er("\\surd",e*n.sizeMultiplier,Hr,n),o=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=Tr("sqrtMain",l=(1+s+.08)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",a=.833/o):"large"===i.type?(m=1080*qr[i.size],h=(qr[i.size]+s)/o,l=(qr[i.size]+s+.08)/o,(r=Tr("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",a=1/o):(l=e+s+.08,h=e+s,m=Math.floor(1e3*e+s)+80,(r=Tr("sqrtTall",l,m,s,t)).style.minWidth="0.742em",a=1.056),r.height=h,r.style.height=re(l),{span:r,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,a,n){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),z.contains(Br,e)||z.contains(Nr,e))return xr(e,t,!1,r,a,n);if(z.contains(Cr,e))return Ar(e,qr[t],!1,r,a,n);throw new x("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:qr,customSizedDelim:Lr,leftRightDelim:function(e,t,r,a,n,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,s=5/a.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return Lr(e,h,!0,a,n,i)}},Vr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fr(e,t){var r=er(e);if(r&&z.contains(Pr,r.text))return r;throw new x(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Gr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Fr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Vr[e.funcName].size,mclass:Vr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?ot.makeSpan([e.mclass]):Dr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(Lt(e.delim,e.mode));var r=new Et.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=re(Dr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),gt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new x("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fr(t[0],e).text,color:r}}}),gt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Fr(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=Jt(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Gr(e);for(var r,a,n=Mt(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l{Gr(e);var r=Ft(e.body,t);if("."!==e.left){var a=new Et.MathNode("mo",[Lt(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new Et.MathNode("mo",[Lt(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return Dt(r)}}),gt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Fr(t[0],e);if(!e.parser.leftrightDepth)throw new x("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=Ct(t,[]);else{r=Dr.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?Lt("|","text"):Lt(e.delim,e.mode),a=new Et.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Ur=(e,t)=>{var r,a,n,i=ot.wrapFragment(Nt(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,h=z.isCharacterBox(e.body);if("sout"===o)(r=ot.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var m=te({number:.6,unit:"pt"},t),c=te({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=i.height+i.depth+m+c;i.style.paddingLeft=re(p/2+m);var u=Math.floor(1e3*p*s),d="M400000 "+(a=u)+" H0 L"+a/2+" 0 l65 45 L145 "+(a-80)+" H400000z",g=new ue([new de("phase",d)],{width:"400em",height:re(u/1e3),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});(r=ot.makeSvgSpan(["hide-tail"],[g],t)).style.height=re(p),l=i.depth+m+c}else{/cancel/.test(o)?h||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var f=0,v=0,b=0;/box/.test(o)?(b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=f=t.fontMetrics().fboxsep+("colorbox"===o?0:b)):"angl"===o?(f=4*(b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-i.depth)):v=f=h?.2:0,r=$t(i,o,f,v,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=re(b)):"angl"===o&&.049!==b&&(r.style.borderTopWidth=re(b),r.style.borderRightWidth=re(b)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)n=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var y=/cancel|phase/.test(o)?["svg-align"]:[];n=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:y}]},t)}return/cancel/.test(o)&&(n.height=i.height,n.depth=i.depth),/cancel/.test(o)&&!h?ot.makeSpan(["mord","cancel-lap"],[n],t):ot.makeSpan(["mord"],[n],t)},_r=(e,t)=>{var r=0,a=new Et.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ut(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};gt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Jt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,body:o}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Jt(t[0],"color-token").color,o=Jt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),gt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Yr={};function Xr(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{if(!e.parser.settings.displayMode)throw new x("{"+e.envName+"} can be used only in display mode.")};function Kr(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Jr(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:i,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:h,emptySingleRow:m,maxNumCols:c,leqno:p}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)o=1;else if(!(o=parseFloat(u))||o<0)throw new x("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var d=[],g=[d],f=[],v=[],b=null!=l?[]:void 0;function w(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new y("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),v.push($r(e));;){var S=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),S={type:"ordgroup",mode:e.mode,body:S},r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),d.push(S);var M=e.fetch().text;if("&"===M){if(c&&d.length===c){if(h||s)throw new x("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===M){k(),1===d.length&&"styling"===S.type&&0===S.body[0].body.length&&(g.length>1||!m)&&g.pop(),v.length0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(b(i[0]),r=0;r0&&(k<(T+=f)&&(k=T),T=0),e.addJot&&(k+=u),S.height=w,S.depth=k,v+=w,S.pos=v,v+=k+T,s[r]=S,b(i[r+1])}var B,C,N=v/2+t.fontMetrics().axisHeight,q=e.cols||[],I=[],R=[];if(e.tags&&e.tags.some((e=>e)))for(r=0;r=o)){var _=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(_=z.deflt(V.pregap,c))&&((B=ot.makeSpan(["arraycolsep"],[])).style.width=re(_),I.push(B));var Y=[];for(r=0;r0){for(var $=ot.makeLineSpan("hline",t,h),Z=ot.makeLineSpan("hdashline",t,h),K=[{type:"elem",elem:s,shift:0}];l.length>0;){var J=l.pop(),Q=J.pos-N;J.isDashed?K.push({type:"elem",elem:Z,shift:Q}):K.push({type:"elem",elem:$,shift:Q})}s=ot.makeVList({positionType:"individualShift",children:K},t)}if(0===R.length)return ot.makeSpan(["mord"],[s],t);var ee=ot.makeVList({positionType:"individualShift",children:R},t);return ee=ot.makeSpan(["tag"],[ee],t),ot.makeFragment([s,ee])},ta={c:"center ",l:"left ",r:"right "},ra=function(e,t){for(var r=[],a=new Et.MathNode("mtd",[],["mtr-glue"]),n=new Et.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var u=e.cols,d="",g=!1,f=0,v=u.length;"separator"===u[0].type&&(c+="top ",f=1),"separator"===u[u.length-1].type&&(c+="bottom ",v-=1);for(var b=f;b0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M-1?"alignat":"align",i="split"===e.envName,o=Jr(e.parser,{cols:a,addJot:!0,autoTag:i?void 0:Kr(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var h="",m=0;m0&&c&&(d=1),a[p]={type:"align",align:u,pregap:d,postgap:0}}return o.colSeparationType=c?"align":"alignat",o};Xr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(er(t[0])?[t[0]]:Jt(t[0],"ordgroup").body).map((function(e){var t=Qt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new x("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Jr(e.parser,a,Qr(e.envName))},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,-1==="lcr".indexOf(r))throw new x("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var i=Jr(e.parser,a,Qr(e.envName)),o=Math.max(0,...i.body.map((e=>e.length)));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=Jr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(er(t[0])?[t[0]]:Jt(t[0],"ordgroup").body).map((function(e){var t=Qt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new x("Unknown column alignment: "+t,e)}));if(r.length>1)throw new x("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Jr(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new x("{subarray} can contain only one column");return a},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=Jr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Qr(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:aa,htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){z.contains(["gather","gather*"],e.envName)&&Zr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Kr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Jr(e.parser,t,"display")},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:aa,htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Zr(e);var t={autoTag:Kr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Jr(e.parser,t,"display")},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Zr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new x("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,n,i=[],o=[i],s=0;s-1);else{if(!("<>AV".indexOf(c)>-1))throw new x('Expected one of "<>AV=|." after @',l[m]);for(var u=0;u<2;u++){for(var d=!0,g=m+1;g{var r=e.font,a=t.withFont(r);return Nt(e.body,a)},oa=(e,t)=>{var r=e.font,a=t.withFont(r);return Ut(e.body,a)},sa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=vt(t[0]),i=a;return i in sa&&(i=sa[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:ia,mathmlBuilder:oa}),gt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=z.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:lr(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),gt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:i}=r,o=r.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:ia,mathmlBuilder:oa});var la=(e,t)=>{var r=t;return"display"===e?r=r.id>=L.SCRIPT.id?r.text():L.DISPLAY:"text"===e&&r.size===L.DISPLAY.size?r=L.TEXT:"script"===e?r=L.SCRIPT:"scriptscript"===e&&(r=L.SCRIPTSCRIPT),r},ha=(e,t)=>{var r,a=la(e.size,t.style),n=a.fracNum(),i=a.fracDen();r=t.havingStyle(n);var o=Nt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(p=t.fontMetrics().num2,u=c):(p=t.fontMetrics().num3,u=3*c),d=t.fontMetrics().denom2),h){var x=t.fontMetrics().axisHeight;p-o.depth-(x+.5*m){var r=new Et.MathNode("mfrac",[Ut(e.numer,t),Ut(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=te(e.barSize,t);r.setAttribute("linethickness",re(a))}}else r.setAttribute("linethickness","0px");var n=la(e.size,t.style);if(n.size!==t.style.size){r=new Et.MathNode("mstyle",[r]);var i=n.size===L.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new Et.MathNode("mo",[new Et.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new Et.MathNode("mo",[new Et.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Dt(o)}return r};gt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,i=t[0],o=t[1],s=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:a.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:h,barSize:null}},htmlBuilder:ha,mathmlBuilder:ma}),gt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),gt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var ca=["display","text","script","scriptscript"],pa=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};gt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],i=t[5],o=vt(t[0]),s="atom"===o.type&&"open"===o.family?pa(o.text):null,l=vt(t[1]),h="atom"===l.type&&"close"===l.family?pa(l.text):null,m=Jt(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var p="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){var d=Jt(u.body[0],"textord");p=ca[Number(d.text)]}}else u=Jt(u,"textord"),p=ca[Number(u.text)];return{type:"genfrac",mode:a.mode,numer:n,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:p}},htmlBuilder:ha,mathmlBuilder:ma}),gt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Jt(t[0],"size").value,token:n}}}),gt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Jt(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ha,mathmlBuilder:ma});var ua=(e,t)=>{var r,a,n=t.style;"supsub"===e.type?(r=e.sup?Nt(e.sup,t.havingStyle(n.sup()),t):Nt(e.sub,t.havingStyle(n.sub()),t),a=Jt(e.base,"horizBrace")):a=Jt(e,"horizBrace");var i,o=Nt(a.base,t.havingBaseStyle(L.DISPLAY)),s=Kt(a,t);if(a.isOver?(i=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=ot.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=ot.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t);i=a.isOver?ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):ot.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return ot.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t)};gt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:ua,mathmlBuilder:(e,t)=>{var r=Zt(e.label);return new Et.MathNode(e.isOver?"mover":"munder",[Ut(e.base,t),r])}}),gt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=Jt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:bt(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Mt(e.body,t,!1);return ot.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Gt(e.body,t);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",e.href),r}}),gt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=Jt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;inew Et.MathNode("mrow",Ft(e.body,t))}),gt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:a,funcName:n,token:i}=e,o=Jt(t[0],"raw").string,s=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(n){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var h=o.split(","),m=0;m{var r=Mt(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=ot.makeSpan(a,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>Gt(e.body,t)}),gt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:bt(t[0]),mathml:bt(t[1])}},htmlBuilder:(e,t)=>{var r=Mt(e.html,t,!1);return ot.makeFragment(r)},mathmlBuilder:(e,t)=>Gt(e.mathml,t)});var da=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new x("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!ee(r))throw new x("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};gt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=Jt(r[0],"raw").string.split(","),h=0;h{var r=te(e.height,t),a=0;e.totalheight.number>0&&(a=te(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=te(e.width,t));var i={height:re(r+a)};n>0&&(i.width=re(n)),a>0&&(i.verticalAlign=re(-a));var o=new me(e.src,e.alt,i);return o.height=r,o.depth=a,o},mathmlBuilder:(e,t)=>{var r=new Et.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=te(e.height,t),n=0;if(e.totalheight.number>0&&(n=te(e.totalheight,t)-a,r.setAttribute("valign",re(-n))),r.setAttribute("height",re(a+n)),e.width.number>0){var i=te(e.width,t);r.setAttribute("width",re(i))}return r.setAttribute("src",e.src),r}}),gt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=Jt(t[0],"size");if(r.settings.strict){var i="m"===a[1],o="mu"===n.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>ot.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=te(e.dimension,t);return new Et.SpaceNode(r)}}),gt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=ot.makeSpan([],[Nt(e.body,t)]),r=ot.makeSpan(["inner"],[r],t)):r=ot.makeSpan(["inner"],[Nt(e.body,t)]);var a=ot.makeSpan(["fix"],[]),n=ot.makeSpan([e.alignment],[r,a],t),i=ot.makeSpan(["strut"]);return i.style.height=re(n.height+n.depth),n.depth&&(i.style.verticalAlign=re(-n.depth)),n.children.unshift(i),n=ot.makeSpan(["thinbox"],[n],t),ot.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new Et.MathNode("mpadded",[Ut(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),gt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var i="\\("===r?"\\)":"$",o=a.parseExpression(!1,i);return a.expect(i),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}}),gt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new x("Mismatched "+e.funcName)}});var ga=(e,t)=>{switch(t.style.size){case L.DISPLAY.size:return e.display;case L.TEXT.size:return e.text;case L.SCRIPT.size:return e.script;case L.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};gt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:bt(t[0]),text:bt(t[1]),script:bt(t[2]),scriptscript:bt(t[3])}},htmlBuilder:(e,t)=>{var r=ga(e,t),a=Mt(r,t,!1);return ot.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ga(e,t);return Gt(r,t)}});var fa=(e,t,r,a,n,i,o)=>{e=ot.makeSpan([],[e]);var s,l,h,m=r&&z.isCharacterBox(r);if(t){var c=Nt(t,a.havingStyle(n.sup()),a);l={elem:c,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var p=Nt(r,a.havingStyle(n.sub()),a);s={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s){var u=a.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;h=ot.makeVList({positionType:"bottom",positionData:u,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:re(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:re(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(s){var d=e.height-o;h=ot.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:re(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},a)}else{if(!l)return e;var g=e.depth+o;h=ot.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:re(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}var f=[h];if(s&&0!==i&&!m){var v=ot.makeSpan(["mspace"],[],a);v.style.marginRight=re(i),f.unshift(v)}return ot.makeSpan(["mop","op-limits"],f,a)},va=["\\smallint"],ba=(e,t)=>{var r,a,n,i=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=Jt(e.base,"op"),i=!0):n=Jt(e,"op");var o,s=t.style,l=!1;if(s.size===L.DISPLAY.size&&n.symbol&&!z.contains(va,n.name)&&(l=!0),n.symbol){var h=l?"Size2-Regular":"Size1-Regular",m="";if("\\oiint"!==n.name&&"\\oiiint"!==n.name||(m=n.name.slice(1),n.name="oiint"===m?"\\iint":"\\iiint"),o=ot.makeSymbol(n.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),m.length>0){var c=o.italic,p=ot.staticSvg(m+"Size"+(l?"2":"1"),t);o=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},t),n.name="\\"+m,o.classes.unshift("mop"),o.italic=c}}else if(n.body){var u=Mt(n.body,t,!0);1===u.length&&u[0]instanceof pe?(o=u[0]).classes[0]="mop":o=ot.makeSpan(["mop"],u,t)}else{for(var d=[],g=1;g{var r;if(e.symbol)r=new Ht("mo",[Lt(e.name,e.mode)]),z.contains(va,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Ht("mo",Ft(e.body,t));else{r=new Ht("mi",[new Ot(e.name.slice(1))]);var a=new Ht("mo",[Lt("⁡","text")]);r=e.parentIsSupSub?new Ht("mrow",[r,a]):Rt([r,a])}return r},xa={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};gt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=xa[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:bt(a)}},htmlBuilder:ba,mathmlBuilder:ya});var wa={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};gt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=wa[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ba,mathmlBuilder:ya});var ka=(e,t)=>{var r,a,n,i,o=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=Jt(e.base,"operatorname"),o=!0):n=Jt(e,"operatorname"),n.body.length>0){for(var s=n.body.map((e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=Mt(s,t.withFont("mathrm"),!0),h=0;h{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:bt(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:ka,mathmlBuilder:(e,t)=>{for(var r=Ft(e.body,t.withFont("mathrm")),a=!0,n=0;ne.toText())).join("");r=[new Et.TextNode(s)]}var l=new Et.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new Et.MathNode("mo",[Lt("⁡","text")]);return e.parentIsSupSub?new Et.MathNode("mrow",[l,h]):Et.newDocumentFragment([l,h])}}),jr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ft({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?ot.makeFragment(Mt(e.body,t,!1)):ot.makeSpan(["mord"],Mt(e.body,t,!0),t),mathmlBuilder:(e,t)=>Gt(e.body,t,!0)}),gt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=Nt(e.body,t.havingCrampedStyle()),a=ot.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return ot.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new Et.MathNode("mo",[new Et.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Et.MathNode("mover",[Ut(e.body,t),r]);return a.setAttribute("accent","true"),a}}),gt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:bt(a)}},htmlBuilder:(e,t)=>{var r=Mt(e.body,t.withPhantom(),!1);return ot.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Ft(e.body,t);return new Et.MathNode("mphantom",r)}}),gt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=ot.makeSpan([],[Nt(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=Ft(bt(e.body),t),a=new Et.MathNode("mphantom",r),n=new Et.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),gt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=ot.makeSpan(["inner"],[Nt(e.body,t.withPhantom())]),a=ot.makeSpan(["fix"],[]);return ot.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=Ft(bt(e.body),t),a=new Et.MathNode("mphantom",r),n=new Et.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),gt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=Jt(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=Nt(e.body,t),a=te(e.dy,t);return ot.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Et.MathNode("mpadded",[Ut(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),gt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),gt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],i=Jt(t[0],"size"),o=Jt(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&Jt(n,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=ot.makeSpan(["mord","rule"],[],t),a=te(e.width,t),n=te(e.height,t),i=e.shift?te(e.shift,t):0;return r.style.borderRightWidth=re(a),r.style.borderTopWidth=re(n),r.style.bottom=re(i),r.width=a,r.height=n+i,r.depth=-i,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=te(e.width,t),a=te(e.height,t),n=e.shift?te(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new Et.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",re(r)),o.setAttribute("height",re(a));var s=new Et.MathNode("mpadded",[o]);return n>=0?s.setAttribute("height",re(n)):(s.setAttribute("height",re(n)),s.setAttribute("depth",re(-n))),s.setAttribute("voffset",re(n)),s}});var Ma=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];gt({type:"sizing",names:Ma,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:Ma.indexOf(a)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Sa(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=Ft(e.body,r),n=new Et.MathNode("mstyle",a);return n.setAttribute("mathsize",re(r.sizeMultiplier)),n}}),gt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,i=!1,o=r[0]&&Jt(r[0],"ordgroup");if(o)for(var s="",l=0;l{var r=ot.makeSpan([],[Nt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new Et.MathNode("mpadded",[Ut(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),gt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:n}},htmlBuilder(e,t){var r=Nt(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=ot.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+i&&(i=(i+m-r.height-r.depth)/2);var c=s.height-r.height-i-l;r.style.paddingLeft=re(h);var p=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var u=t.havingStyle(L.SCRIPTSCRIPT),d=Nt(e.index,u,t),g=.6*(p.height-p.depth),f=ot.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:d}]},t),v=ot.makeSpan(["root"],[f]);return ot.makeSpan(["mord","sqrt"],[v,p],t)}return ot.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new Et.MathNode("mroot",[Ut(r,t),Ut(a,t)]):new Et.MathNode("msqrt",[Ut(r,t)])}});var za={display:L.DISPLAY,text:L.TEXT,script:L.SCRIPT,scriptscript:L.SCRIPTSCRIPT};gt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!0,r),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:i}},htmlBuilder(e,t){var r=za[e.style],a=t.havingStyle(r).withFont("");return Sa(e.body,a,t)},mathmlBuilder(e,t){var r=za[e.style],a=t.havingStyle(r),n=Ft(e.body,a),i=new Et.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});ft({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===L.DISPLAY.size||r.alwaysHandleSupSub)?ba:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===L.DISPLAY.size||r.limits)?ka:null:"accent"===r.type?z.isCharacterBox(r.base)?tr:null:"horizBrace"===r.type&&!e.sub===r.isOver?ua:null:null}(e,t);if(r)return r(e,t);var a,n,i,{base:o,sup:s,sub:l}=e,h=Nt(o,t),m=t.fontMetrics(),c=0,p=0,u=o&&z.isCharacterBox(o);if(s){var d=t.havingStyle(t.style.sup());a=Nt(s,d,t),u||(c=h.height-d.fontMetrics().supDrop*d.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());n=Nt(l,g,t),u||(p=h.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===L.DISPLAY?m.sup1:t.style.cramped?m.sup3:m.sup2;var f,v=t.sizeMultiplier,b=re(.5/m.ptPerEm/v),y=null;if(n){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(h instanceof pe||x)&&(y=re(-h.italic))}if(a&&n){c=Math.max(c,i,a.depth+.25*m.xHeight),p=Math.max(p,m.sub2);var w=4*m.defaultRuleThickness;if(c-a.depth-(n.height-p)0&&(c+=k,p-=k)}var S=[{type:"elem",elem:n,shift:p,marginRight:b,marginLeft:y},{type:"elem",elem:a,shift:-c,marginRight:b}];f=ot.makeVList({positionType:"individualShift",children:S},t)}else if(n){p=Math.max(p,m.sub1,n.height-.8*m.xHeight);var M=[{type:"elem",elem:n,marginLeft:y,marginRight:b}];f=ot.makeVList({positionType:"shift",positionData:p,children:M},t)}else{if(!a)throw new Error("supsub must have either sup or sub.");c=Math.max(c,i,a.depth+.25*m.xHeight),f=ot.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:a,marginRight:b}]},t)}var A=Bt(h,"right")||"mord";return ot.makeSpan([A],[h,ot.makeSpan(["msupsub"],[f])],t)},mathmlBuilder(e,t){var r,a=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var n,i=[Ut(e.base,t)];if(e.sub&&i.push(Ut(e.sub,t)),e.sup&&i.push(Ut(e.sup,t)),a)n=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;n=o&&"op"===o.type&&o.limits&&t.style===L.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===L.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;n=s&&"op"===s.type&&s.limits&&(t.style===L.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===L.DISPLAY)?"munder":"msub"}else{var l=e.base;n=l&&"op"===l.type&&l.limits&&(t.style===L.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===L.DISPLAY)?"mover":"msup"}return new Et.MathNode(n,i)}}),ft({type:"atom",htmlBuilder:(e,t)=>ot.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new Et.MathNode("mo",[Lt(e.text,e.mode)]);if("bin"===e.family){var a=Vt(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};ft({type:"mathord",htmlBuilder:(e,t)=>ot.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new Et.MathNode("mi",[Lt(e.text,e.mode,t)]),a=Vt(e,t)||"italic";return a!==Aa[r.type]&&r.setAttribute("mathvariant",a),r}}),ft({type:"textord",htmlBuilder:(e,t)=>ot.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,a=Lt(e.text,e.mode,t),n=Vt(e,t)||"normal";return r="text"===e.mode?new Et.MathNode("mtext",[a]):/[0-9]/.test(e.text)?new Et.MathNode("mn",[a]):"\\prime"===e.text?new Et.MathNode("mo",[a]):new Et.MathNode("mi",[a]),n!==Aa[r.type]&&r.setAttribute("mathvariant",n),r}});var Ta={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ba={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ft({type:"spacing",htmlBuilder(e,t){if(Ba.hasOwnProperty(e.text)){var r=Ba[e.text].className||"";if("text"===e.mode){var a=ot.makeOrd(e,t,"textord");return a.classes.push(r),a}return ot.makeSpan(["mspace",r],[ot.mathsym(e.text,e.mode,t)],t)}if(Ta.hasOwnProperty(e.text))return ot.makeSpan(["mspace",Ta[e.text]],[],t);throw new x('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!Ba.hasOwnProperty(e.text)){if(Ta.hasOwnProperty(e.text))return new Et.MathNode("mspace");throw new x('Unknown type of space "'+e.text+'"')}return new Et.MathNode("mtext",[new Et.TextNode(" ")])}});var Ca=()=>{var e=new Et.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ft({type:"tag",mathmlBuilder(e,t){var r=new Et.MathNode("mtable",[new Et.MathNode("mtr",[Ca(),new Et.MathNode("mtd",[Gt(e.body,t)]),Ca(),new Et.MathNode("mtd",[Gt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Na={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qa={"\\textbf":"textbf","\\textmd":"textmd"},Ia={"\\textit":"textit","\\textup":"textup"},Ra=(e,t)=>{var r=e.font;return r?Na[r]?t.withTextFontFamily(Na[r]):qa[r]?t.withTextFontWeight(qa[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ia[r]):t};gt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:bt(n),font:a}},htmlBuilder(e,t){var r=Ra(e,t),a=Mt(e.body,r,!0);return ot.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Ra(e,t);return Gt(e.body,r)}}),gt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Nt(e.body,t),a=ot.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=ot.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return ot.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new Et.MathNode("mo",[new Et.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Et.MathNode("munder",[Ut(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),gt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Nt(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return ot.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new Et.MathNode("mpadded",[Ut(e.body,t)],["vcenter"])}),gt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new x("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ha(e),a=[],n=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"␣":" "),Oa=pt,Ea=new RegExp("[̀-ͯ]+$");class La{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new y("EOF",new b(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new x("Unexpected character: '"+e[t]+"'",new y(e[t],new b(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[a]){var n=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===n?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()}return new y(a,new b(this,t,this.tokenRegex.lastIndex))}}class Da{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new x("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Va=Wr;jr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),jr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),jr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),jr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),jr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),jr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),jr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Pa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};jr("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new x("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=Pa[r.text])||a>=t)throw new x("Invalid base-"+t+" digit "+r.text);for(var n;null!=(n=Pa[e.future().text])&&n{var n=e.consumeArg().tokens;if(1!==n.length)throw new x("\\newcommand's first argument must be a macro name");var i=n[0].text,o=e.isDefined(i);if(o&&!t)throw new x("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!o&&!r)throw new x("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var l="",h=e.expandNextToken();"]"!==h.text&&"EOF"!==h.text;)l+=h.text,h=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new x("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return o&&a||e.macros.set(i,{tokens:n,numArgs:s}),""};jr("\\newcommand",(e=>Fa(e,!1,!0,!1))),jr("\\renewcommand",(e=>Fa(e,!0,!1,!1))),jr("\\providecommand",(e=>Fa(e,!0,!0,!0))),jr("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),jr("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),jr("\\show",(e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Oa[r],ye.math[r],ye.text[r]),""})),jr("\\bgroup","{"),jr("\\egroup","}"),jr("~","\\nobreakspace"),jr("\\lq","`"),jr("\\rq","'"),jr("\\aa","\\r a"),jr("\\AA","\\r A"),jr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),jr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),jr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),jr("ℬ","\\mathscr{B}"),jr("ℰ","\\mathscr{E}"),jr("ℱ","\\mathscr{F}"),jr("ℋ","\\mathscr{H}"),jr("ℐ","\\mathscr{I}"),jr("ℒ","\\mathscr{L}"),jr("ℳ","\\mathscr{M}"),jr("ℛ","\\mathscr{R}"),jr("ℭ","\\mathfrak{C}"),jr("ℌ","\\mathfrak{H}"),jr("ℨ","\\mathfrak{Z}"),jr("\\Bbbk","\\Bbb{k}"),jr("·","\\cdotp"),jr("\\llap","\\mathllap{\\textrm{#1}}"),jr("\\rlap","\\mathrlap{\\textrm{#1}}"),jr("\\clap","\\mathclap{\\textrm{#1}}"),jr("\\mathstrut","\\vphantom{(}"),jr("\\underbar","\\underline{\\text{#1}}"),jr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),jr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),jr("\\ne","\\neq"),jr("≠","\\neq"),jr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),jr("∉","\\notin"),jr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),jr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),jr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),jr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),jr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),jr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),jr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),jr("⟂","\\perp"),jr("‼","\\mathclose{!\\mkern-0.8mu!}"),jr("∌","\\notni"),jr("⌜","\\ulcorner"),jr("⌝","\\urcorner"),jr("⌞","\\llcorner"),jr("⌟","\\lrcorner"),jr("©","\\copyright"),jr("®","\\textregistered"),jr("️","\\textregistered"),jr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),jr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),jr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),jr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),jr("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),jr("⋮","\\vdots"),jr("\\varGamma","\\mathit{\\Gamma}"),jr("\\varDelta","\\mathit{\\Delta}"),jr("\\varTheta","\\mathit{\\Theta}"),jr("\\varLambda","\\mathit{\\Lambda}"),jr("\\varXi","\\mathit{\\Xi}"),jr("\\varPi","\\mathit{\\Pi}"),jr("\\varSigma","\\mathit{\\Sigma}"),jr("\\varUpsilon","\\mathit{\\Upsilon}"),jr("\\varPhi","\\mathit{\\Phi}"),jr("\\varPsi","\\mathit{\\Psi}"),jr("\\varOmega","\\mathit{\\Omega}"),jr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),jr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),jr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),jr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),jr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),jr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),jr("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),jr("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ga={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};jr("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ga?t=Ga[r]:("\\not"===r.slice(0,4)||r in ye.math&&z.contains(["bin","rel"],ye.math[r].group))&&(t="\\dotsb"),t}));var Ua={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};jr("\\dotso",(function(e){return e.future().text in Ua?"\\ldots\\,":"\\ldots"})),jr("\\dotsc",(function(e){var t=e.future().text;return t in Ua&&","!==t?"\\ldots\\,":"\\ldots"})),jr("\\cdots",(function(e){return e.future().text in Ua?"\\@cdots\\,":"\\@cdots"})),jr("\\dotsb","\\cdots"),jr("\\dotsm","\\cdots"),jr("\\dotsi","\\!\\cdots"),jr("\\dotsx","\\ldots\\,"),jr("\\DOTSI","\\relax"),jr("\\DOTSB","\\relax"),jr("\\DOTSX","\\relax"),jr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),jr("\\,","\\tmspace+{3mu}{.1667em}"),jr("\\thinspace","\\,"),jr("\\>","\\mskip{4mu}"),jr("\\:","\\tmspace+{4mu}{.2222em}"),jr("\\medspace","\\:"),jr("\\;","\\tmspace+{5mu}{.2777em}"),jr("\\thickspace","\\;"),jr("\\!","\\tmspace-{3mu}{.1667em}"),jr("\\negthinspace","\\!"),jr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),jr("\\negthickspace","\\tmspace-{5mu}{.277em}"),jr("\\enspace","\\kern.5em "),jr("\\enskip","\\hskip.5em\\relax"),jr("\\quad","\\hskip1em\\relax"),jr("\\qquad","\\hskip2em\\relax"),jr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),jr("\\tag@paren","\\tag@literal{({#1})}"),jr("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new x("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),jr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),jr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),jr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),jr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),jr("\\newline","\\\\\\relax"),jr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _a=re(U["Main-Regular"]["T".charCodeAt(0)][1]-.7*U["Main-Regular"]["A".charCodeAt(0)][1]);jr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+_a+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),jr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+_a+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),jr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),jr("\\@hspace","\\hskip #1\\relax"),jr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),jr("\\ordinarycolon",":"),jr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),jr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),jr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),jr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),jr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),jr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),jr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),jr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),jr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),jr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),jr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),jr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),jr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),jr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),jr("∷","\\dblcolon"),jr("∹","\\eqcolon"),jr("≔","\\coloneqq"),jr("≕","\\eqqcolon"),jr("⩴","\\Coloneqq"),jr("\\ratio","\\vcentcolon"),jr("\\coloncolon","\\dblcolon"),jr("\\colonequals","\\coloneqq"),jr("\\coloncolonequals","\\Coloneqq"),jr("\\equalscolon","\\eqqcolon"),jr("\\equalscoloncolon","\\Eqqcolon"),jr("\\colonminus","\\coloneq"),jr("\\coloncolonminus","\\Coloneq"),jr("\\minuscolon","\\eqcolon"),jr("\\minuscoloncolon","\\Eqcolon"),jr("\\coloncolonapprox","\\Colonapprox"),jr("\\coloncolonsim","\\Colonsim"),jr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),jr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),jr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),jr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),jr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),jr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),jr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),jr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),jr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),jr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),jr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),jr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),jr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),jr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),jr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),jr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),jr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),jr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),jr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),jr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),jr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),jr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),jr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),jr("\\imath","\\html@mathml{\\@imath}{ı}"),jr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),jr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),jr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),jr("⟦","\\llbracket"),jr("⟧","\\rrbracket"),jr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),jr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),jr("⦃","\\lBrace"),jr("⦄","\\rBrace"),jr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),jr("⦵","\\minuso"),jr("\\darr","\\downarrow"),jr("\\dArr","\\Downarrow"),jr("\\Darr","\\Downarrow"),jr("\\lang","\\langle"),jr("\\rang","\\rangle"),jr("\\uarr","\\uparrow"),jr("\\uArr","\\Uparrow"),jr("\\Uarr","\\Uparrow"),jr("\\N","\\mathbb{N}"),jr("\\R","\\mathbb{R}"),jr("\\Z","\\mathbb{Z}"),jr("\\alef","\\aleph"),jr("\\alefsym","\\aleph"),jr("\\Alpha","\\mathrm{A}"),jr("\\Beta","\\mathrm{B}"),jr("\\bull","\\bullet"),jr("\\Chi","\\mathrm{X}"),jr("\\clubs","\\clubsuit"),jr("\\cnums","\\mathbb{C}"),jr("\\Complex","\\mathbb{C}"),jr("\\Dagger","\\ddagger"),jr("\\diamonds","\\diamondsuit"),jr("\\empty","\\emptyset"),jr("\\Epsilon","\\mathrm{E}"),jr("\\Eta","\\mathrm{H}"),jr("\\exist","\\exists"),jr("\\harr","\\leftrightarrow"),jr("\\hArr","\\Leftrightarrow"),jr("\\Harr","\\Leftrightarrow"),jr("\\hearts","\\heartsuit"),jr("\\image","\\Im"),jr("\\infin","\\infty"),jr("\\Iota","\\mathrm{I}"),jr("\\isin","\\in"),jr("\\Kappa","\\mathrm{K}"),jr("\\larr","\\leftarrow"),jr("\\lArr","\\Leftarrow"),jr("\\Larr","\\Leftarrow"),jr("\\lrarr","\\leftrightarrow"),jr("\\lrArr","\\Leftrightarrow"),jr("\\Lrarr","\\Leftrightarrow"),jr("\\Mu","\\mathrm{M}"),jr("\\natnums","\\mathbb{N}"),jr("\\Nu","\\mathrm{N}"),jr("\\Omicron","\\mathrm{O}"),jr("\\plusmn","\\pm"),jr("\\rarr","\\rightarrow"),jr("\\rArr","\\Rightarrow"),jr("\\Rarr","\\Rightarrow"),jr("\\real","\\Re"),jr("\\reals","\\mathbb{R}"),jr("\\Reals","\\mathbb{R}"),jr("\\Rho","\\mathrm{P}"),jr("\\sdot","\\cdot"),jr("\\sect","\\S"),jr("\\spades","\\spadesuit"),jr("\\sub","\\subset"),jr("\\sube","\\subseteq"),jr("\\supe","\\supseteq"),jr("\\Tau","\\mathrm{T}"),jr("\\thetasym","\\vartheta"),jr("\\weierp","\\wp"),jr("\\Zeta","\\mathrm{Z}"),jr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),jr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),jr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),jr("\\bra","\\mathinner{\\langle{#1}|}"),jr("\\ket","\\mathinner{|{#1}\\rangle}"),jr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),jr("\\Bra","\\left\\langle#1\\right|"),jr("\\Ket","\\left|#1\\right\\rangle");var Ya=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),n.length&&r.macros.set("\\|",s));var i=t;!t&&n.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...i,...h,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};jr("\\bra@ket",Ya(!1)),jr("\\bra@set",Ya(!0)),jr("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),jr("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),jr("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),jr("\\angln","{\\angl n}"),jr("\\blue","\\textcolor{##6495ed}{#1}"),jr("\\orange","\\textcolor{##ffa500}{#1}"),jr("\\pink","\\textcolor{##ff00af}{#1}"),jr("\\red","\\textcolor{##df0030}{#1}"),jr("\\green","\\textcolor{##28ae7b}{#1}"),jr("\\gray","\\textcolor{gray}{#1}"),jr("\\purple","\\textcolor{##9d38bd}{#1}"),jr("\\blueA","\\textcolor{##ccfaff}{#1}"),jr("\\blueB","\\textcolor{##80f6ff}{#1}"),jr("\\blueC","\\textcolor{##63d9ea}{#1}"),jr("\\blueD","\\textcolor{##11accd}{#1}"),jr("\\blueE","\\textcolor{##0c7f99}{#1}"),jr("\\tealA","\\textcolor{##94fff5}{#1}"),jr("\\tealB","\\textcolor{##26edd5}{#1}"),jr("\\tealC","\\textcolor{##01d1c1}{#1}"),jr("\\tealD","\\textcolor{##01a995}{#1}"),jr("\\tealE","\\textcolor{##208170}{#1}"),jr("\\greenA","\\textcolor{##b6ffb0}{#1}"),jr("\\greenB","\\textcolor{##8af281}{#1}"),jr("\\greenC","\\textcolor{##74cf70}{#1}"),jr("\\greenD","\\textcolor{##1fab54}{#1}"),jr("\\greenE","\\textcolor{##0d923f}{#1}"),jr("\\goldA","\\textcolor{##ffd0a9}{#1}"),jr("\\goldB","\\textcolor{##ffbb71}{#1}"),jr("\\goldC","\\textcolor{##ff9c39}{#1}"),jr("\\goldD","\\textcolor{##e07d10}{#1}"),jr("\\goldE","\\textcolor{##a75a05}{#1}"),jr("\\redA","\\textcolor{##fca9a9}{#1}"),jr("\\redB","\\textcolor{##ff8482}{#1}"),jr("\\redC","\\textcolor{##f9685d}{#1}"),jr("\\redD","\\textcolor{##e84d39}{#1}"),jr("\\redE","\\textcolor{##bc2612}{#1}"),jr("\\maroonA","\\textcolor{##ffbde0}{#1}"),jr("\\maroonB","\\textcolor{##ff92c6}{#1}"),jr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),jr("\\maroonD","\\textcolor{##ca337c}{#1}"),jr("\\maroonE","\\textcolor{##9e034e}{#1}"),jr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),jr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),jr("\\purpleC","\\textcolor{##aa87ff}{#1}"),jr("\\purpleD","\\textcolor{##7854ab}{#1}"),jr("\\purpleE","\\textcolor{##543b78}{#1}"),jr("\\mintA","\\textcolor{##f5f9e8}{#1}"),jr("\\mintB","\\textcolor{##edf2df}{#1}"),jr("\\mintC","\\textcolor{##e0e5cc}{#1}"),jr("\\grayA","\\textcolor{##f6f7f7}{#1}"),jr("\\grayB","\\textcolor{##f0f1f2}{#1}"),jr("\\grayC","\\textcolor{##e3e5e6}{#1}"),jr("\\grayD","\\textcolor{##d6d8da}{#1}"),jr("\\grayE","\\textcolor{##babec2}{#1}"),jr("\\grayF","\\textcolor{##888d93}{#1}"),jr("\\grayG","\\textcolor{##626569}{#1}"),jr("\\grayH","\\textcolor{##3b3e40}{#1}"),jr("\\grayI","\\textcolor{##21242c}{#1}"),jr("\\kaBlue","\\textcolor{##314453}{#1}"),jr("\\kaGreen","\\textcolor{##71B307}{#1}");var Xa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Wa{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Da(Va,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new La(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:a,end:r}=this.consumeArg(["]"]))}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new y("EOF",r.loc)),this.pushTokens(a),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,n=this.future(),i=0,o=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++i;else if("}"===a.text){if(-1===--i)throw new x("Extra }",a)}else if("EOF"===a.text)throw new x("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",a);if(e&&r)if((0===i||1===i&&"{"===e[o])&&a.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==i||r);return"{"===n.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:a}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new x("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new x("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new x("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var o=(n=n.slice()).length-1;o>=0;--o){var s=n[o];if("#"===s.text){if(0===o)throw new x("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--o]).text)n.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new x("Not a valid argument number",s);n.splice(o,2,...i[+s.text-1])}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new y(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(-1!==a.indexOf("#"))for(var i=a.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var o=new La(a,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||Oa.hasOwnProperty(e)||ye.math.hasOwnProperty(e)||ye.text.hasOwnProperty(e)||Xa.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Oa.hasOwnProperty(e)&&!Oa[e].primitive}}var ja=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$a=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Za={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ka={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Ja{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Wa(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new x("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new y("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==Ja.endOfExpression.indexOf(a.text))break;if(t&&a.text===t)break;if(e&&Oa[a.text]&&Oa[a.text].infix)break;var n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,a=0;a=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=ye[this.mode][t].group,l=b.range(e);if(ve.hasOwnProperty(s)){var h=s;o={type:"atom",mode:this.mode,family:h,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};n=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(P(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),n={type:"textord",mode:"text",loc:b.range(e),text:t}}if(this.consume(),i)for(var m=0;m{k.value=!0},M=()=>{k.value=!1};return r((()=>{(async()=>{const e=await p();y.value=e.data})()})),(e,t)=>{const r=a("el-text"),p=a("el-dialog"),z=a("CloseBold"),A=a("el-icon");return n(),i(s,null,[o("div",nn,[(n(!0),i(s,null,l(y.value,((e,t)=>(n(),u(r,{key:t,class:"news-item",onClick:t=>(async e=>{const t=await f({token:localStorage.getItem("localToken"),id:e.id});console.log(t),w.value=e,w.value.description=v(w.value.description),w.value.description=w.value.description.replace(/\$\$(.*?)\$\$/g,((e,t)=>{try{return an.renderToString(t,{throwOnError:!1})}catch(r){return console.error("KaTeX 渲染错误:",r),e}})),x.value=!0})(e)},{default:m((()=>[d(g(e.title),1)])),_:2},1032,["onClick"])))),128)),h(r,{class:"daily-item"},{default:m((()=>[t[2]||(t[2]=o("span",null,"【",-1)),o("span",{class:"purple-text",onClick:S},"每日复盘"),t[3]||(t[3]=o("span",null,"】 即将上线,",-1)),t[4]||(t[4]=o("br",null,null,-1)),t[5]||(t[5]=o("span",null,"敬请期待!",-1))])),_:1})]),c(" 新闻弹窗 "),h(p,{modelValue:x.value,"onUpdate:modelValue":t[0]||(t[0]=e=>x.value=e),title:w.value.title,width:"80%",class:"newsDialog"},{default:m((()=>[c(' 加载失败 '),o("div",{innerHTML:w.value.description},null,8,on)])),_:1},8,["modelValue","title"]),c(" 每日复盘样本弹窗 "),h(p,{modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=e=>k.value=e),fullscreen:"","show-close":!1,width:"80%",class:"dailyReplayClass"},{default:m((()=>[o("div",sn,[h(A,{style:{color:"white","font-size":"50px","margin-left":"auto"},onClick:M},{default:m((()=>[h(z)])),_:1})]),t[6]||(t[6]=o("div",{class:"title"},"每日复盘",-1)),o("div",ln,[(n(),i(s,null,l(b,(e=>o("div",{key:e,class:"dailyReplayItem"},[o("img",{src:e.img,alt:"加载失败"},null,8,hn)]))),64))])])),_:1},8,["modelValue"])],64)}}},[["__scopeId","data-v-67b3f00a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/AIfind.vue"]]),cn=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));export{mn as A,cn as a,an as k}; +import{_ as e,r as t,o as r,G as a,b as n,c as i,e as o,F as s,A as l,H as h,I as m,d as c,Z as p,Q as u,J as d,C as g,$ as f}from"./index-7d881374.js";import{m as v}from"./marked.esm-cf4f21f5.js";class b{constructor(e,t,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=r}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new b(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class y{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new y(t,b.range(this,e))}}class x{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r,a,n="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var o=i.lexer.input;r=i.start,a=i.end,r===o.length?n+=" at end of input: ":n+=" at position "+(r+1)+": ";var s=o.slice(r,a).replace(/[^]/g,"$&̲");n+=(r>15?"…"+o.slice(r-15,r):o.slice(0,r))+s+(a+15":">","<":"<",'"':""","'":"'"},S=/[&><"']/g;var M=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},z={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(S,(e=>k[e]))},hyphenate:function(e){return e.replace(w,"-$1").toLowerCase()},getBaseElem:M,isCharacterBox:function(e){var t=M(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?":"!==t[2]?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},A={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function T(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if("string"!=typeof r)return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class B{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},A)if(A.hasOwnProperty(t)){var r=A[t];this[t]=void 0!==e[t]?r.processor?r.processor(e[t]):e[t]:T(r)}}reportNonstrict(e,t,r){var a=this.strict;if("function"==typeof a&&(a=a(e,t,r)),a&&"ignore"!==a){if(!0===a||"error"===a)throw new x("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===a?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){var a=this.strict;if("function"==typeof a)try{a=a(e,t,r)}catch(n){a="error"}return!(!a||"ignore"===a)&&(!0===a||"error"===a||("warn"===a?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),!1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+a+"': "+t+" ["+e+"]"),!1)))}isTrusted(e){if(e.url&&!e.protocol){var t=z.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}var r="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(r)}}class C{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return N[q[this.id]]}sub(){return N[I[this.id]]}fracNum(){return N[R[this.id]]}fracDen(){return N[H[this.id]]}cramp(){return N[O[this.id]]}text(){return N[E[this.id]]}isTight(){return this.size>=2}}var N=[new C(0,0,!1),new C(1,0,!0),new C(2,1,!1),new C(3,1,!0),new C(4,2,!1),new C(5,2,!0),new C(6,3,!1),new C(7,3,!0)],q=[4,5,4,5,6,7,6,7],I=[5,5,5,5,7,7,7,7],R=[2,3,4,5,6,7,6,7],H=[3,3,5,5,7,7,7,7],O=[1,1,3,3,5,5,7,7],E=[0,1,2,3,2,3,2,3],L={DISPLAY:N[0],TEXT:N[2],SCRIPT:N[4],SCRIPTSCRIPT:N[6]},D=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];var V=[];function P(e){for(var t=0;t=V[t]&&e<=V[t+1])return!0;return!1}D.forEach((e=>e.blocks.forEach((e=>V.push(...e)))));var F={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class G{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return z.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;te.toText())).join("")}}var U={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},_={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Y={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function X(e,t,r){if(!U[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=U[t][a];if(!n&&e[0]in Y&&(a=Y[e[0]].charCodeAt(0),n=U[t][a]),n||"text"!==r||P(a)&&(n=U[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var W={};var j=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],$=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Z=function(e,t){return t.size<2?e:j[e-1][t.size-1]};class K{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||K.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=$[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new K(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Z(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:$[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Z(K.BASESIZE,e);return this.size===t&&this.textSize===K.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==K.BASESIZE?["sizing","reset-size"+this.size,"size"+K.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!W[t=e>=5?0:e>=3?1:2]){var r=W[t]={cssEmPerMu:_.quad[t]/18};for(var a in _)_.hasOwnProperty(a)&&(r[a]=_[a][t])}return W[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}K.BASESIZE=6;var J={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Q={ex:!0,em:!0,mu:!0},ee=function(e){return"string"!=typeof e&&(e=e.unit),e in J||e in Q||"ex"===e},te=function(e,t){var r;if(e.unit in J)r=J[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var a;if(a=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)r=a.fontMetrics().xHeight;else{if("em"!==e.unit)throw new x("Invalid unit: '"+e.unit+"'");r=a.fontMetrics().quad}a!==t&&(r*=a.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},re=function(e){return+e.toFixed(4)+"em"},ae=function(e){return e.filter((e=>e)).join(" ")},ne=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var a=t.getColor();a&&(this.style.color=a)}},ie=function(e){var t=document.createElement(e);for(var r in t.className=ae(this.classes),this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var a in this.attributes)this.attributes.hasOwnProperty(a)&&t.setAttribute(a,this.attributes[a]);for(var n=0;n/=\x00-\x1f]/,se=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+z.escape(ae(this.classes))+'"');var r="";for(var a in this.style)this.style.hasOwnProperty(a)&&(r+=z.hyphenate(a)+":"+this.style[a]+";");for(var n in r&&(t+=' style="'+z.escape(r)+'"'),this.attributes)if(this.attributes.hasOwnProperty(n)){if(oe.test(n))throw new x("Invalid attribute name '"+n+"'");t+=" "+n+'="'+z.escape(this.attributes[n])+'"'}t+=">";for(var i=0;i"};class le{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ne.call(this,e,r,a),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return z.contains(this.classes,e)}toNode(){return ie.call(this,"span")}toMarkup(){return se.call(this,"span")}}class he{constructor(e,t,r,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ne.call(this,t,a),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return z.contains(this.classes,e)}toNode(){return ie.call(this,"a")}toMarkup(){return se.call(this,"a")}}class me{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return z.contains(this.classes,e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=''+z.escape(this.alt)+'=n[0]&&e<=n[1])return r.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ce[this.text])}hasClass(e){return z.contains(this.classes,e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var r in this.italic>0&&((t=document.createElement("span")).style.marginRight=re(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=ae(this.classes)),this.style)this.style.hasOwnProperty(r)&&((t=t||document.createElement("span")).style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(a)&&(r+=z.hyphenate(a)+":"+this.style[a]+";");r&&(e=!0,t+=' style="'+z.escape(r)+'"');var n=z.escape(this.text);return e?(t+=">",t+=n,t+=""):n}}class ue{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var r=0;r':''}}class ge{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="","\\gt",!0),xe(we,Se,qe,"∈","\\in",!0),xe(we,Se,qe,"","\\@not"),xe(we,Se,qe,"⊂","\\subset",!0),xe(we,Se,qe,"⊃","\\supset",!0),xe(we,Se,qe,"⊆","\\subseteq",!0),xe(we,Se,qe,"⊇","\\supseteq",!0),xe(we,Me,qe,"⊈","\\nsubseteq",!0),xe(we,Me,qe,"⊉","\\nsupseteq",!0),xe(we,Se,qe,"⊨","\\models"),xe(we,Se,qe,"←","\\leftarrow",!0),xe(we,Se,qe,"≤","\\le"),xe(we,Se,qe,"≤","\\leq",!0),xe(we,Se,qe,"<","\\lt",!0),xe(we,Se,qe,"→","\\rightarrow",!0),xe(we,Se,qe,"→","\\to"),xe(we,Me,qe,"≱","\\ngeq",!0),xe(we,Me,qe,"≰","\\nleq",!0),xe(we,Se,"spacing"," ","\\ "),xe(we,Se,"spacing"," ","\\space"),xe(we,Se,"spacing"," ","\\nobreakspace"),xe(ke,Se,"spacing"," ","\\ "),xe(ke,Se,"spacing"," "," "),xe(ke,Se,"spacing"," ","\\space"),xe(ke,Se,"spacing"," ","\\nobreakspace"),xe(we,Se,"spacing",null,"\\nobreak"),xe(we,Se,"spacing",null,"\\allowbreak"),xe(we,Se,"punct",",",","),xe(we,Se,"punct",";",";"),xe(we,Me,Ae,"⊼","\\barwedge",!0),xe(we,Me,Ae,"⊻","\\veebar",!0),xe(we,Se,Ae,"⊙","\\odot",!0),xe(we,Se,Ae,"⊕","\\oplus",!0),xe(we,Se,Ae,"⊗","\\otimes",!0),xe(we,Se,Ie,"∂","\\partial",!0),xe(we,Se,Ae,"⊘","\\oslash",!0),xe(we,Me,Ae,"⊚","\\circledcirc",!0),xe(we,Me,Ae,"⊡","\\boxdot",!0),xe(we,Se,Ae,"△","\\bigtriangleup"),xe(we,Se,Ae,"▽","\\bigtriangledown"),xe(we,Se,Ae,"†","\\dagger"),xe(we,Se,Ae,"⋄","\\diamond"),xe(we,Se,Ae,"⋆","\\star"),xe(we,Se,Ae,"◃","\\triangleleft"),xe(we,Se,Ae,"▹","\\triangleright"),xe(we,Se,Ne,"{","\\{"),xe(ke,Se,Ie,"{","\\{"),xe(ke,Se,Ie,"{","\\textbraceleft"),xe(we,Se,Te,"}","\\}"),xe(ke,Se,Ie,"}","\\}"),xe(ke,Se,Ie,"}","\\textbraceright"),xe(we,Se,Ne,"{","\\lbrace"),xe(we,Se,Te,"}","\\rbrace"),xe(we,Se,Ne,"[","\\lbrack",!0),xe(ke,Se,Ie,"[","\\lbrack",!0),xe(we,Se,Te,"]","\\rbrack",!0),xe(ke,Se,Ie,"]","\\rbrack",!0),xe(we,Se,Ne,"(","\\lparen",!0),xe(we,Se,Te,")","\\rparen",!0),xe(ke,Se,Ie,"<","\\textless",!0),xe(ke,Se,Ie,">","\\textgreater",!0),xe(we,Se,Ne,"⌊","\\lfloor",!0),xe(we,Se,Te,"⌋","\\rfloor",!0),xe(we,Se,Ne,"⌈","\\lceil",!0),xe(we,Se,Te,"⌉","\\rceil",!0),xe(we,Se,Ie,"\\","\\backslash"),xe(we,Se,Ie,"∣","|"),xe(we,Se,Ie,"∣","\\vert"),xe(ke,Se,Ie,"|","\\textbar",!0),xe(we,Se,Ie,"∥","\\|"),xe(we,Se,Ie,"∥","\\Vert"),xe(ke,Se,Ie,"∥","\\textbardbl"),xe(ke,Se,Ie,"~","\\textasciitilde"),xe(ke,Se,Ie,"\\","\\textbackslash"),xe(ke,Se,Ie,"^","\\textasciicircum"),xe(we,Se,qe,"↑","\\uparrow",!0),xe(we,Se,qe,"⇑","\\Uparrow",!0),xe(we,Se,qe,"↓","\\downarrow",!0),xe(we,Se,qe,"⇓","\\Downarrow",!0),xe(we,Se,qe,"↕","\\updownarrow",!0),xe(we,Se,qe,"⇕","\\Updownarrow",!0),xe(we,Se,Ce,"∐","\\coprod"),xe(we,Se,Ce,"⋁","\\bigvee"),xe(we,Se,Ce,"⋀","\\bigwedge"),xe(we,Se,Ce,"⨄","\\biguplus"),xe(we,Se,Ce,"⋂","\\bigcap"),xe(we,Se,Ce,"⋃","\\bigcup"),xe(we,Se,Ce,"∫","\\int"),xe(we,Se,Ce,"∫","\\intop"),xe(we,Se,Ce,"∬","\\iint"),xe(we,Se,Ce,"∭","\\iiint"),xe(we,Se,Ce,"∏","\\prod"),xe(we,Se,Ce,"∑","\\sum"),xe(we,Se,Ce,"⨂","\\bigotimes"),xe(we,Se,Ce,"⨁","\\bigoplus"),xe(we,Se,Ce,"⨀","\\bigodot"),xe(we,Se,Ce,"∮","\\oint"),xe(we,Se,Ce,"∯","\\oiint"),xe(we,Se,Ce,"∰","\\oiiint"),xe(we,Se,Ce,"⨆","\\bigsqcup"),xe(we,Se,Ce,"∫","\\smallint"),xe(ke,Se,"inner","…","\\textellipsis"),xe(we,Se,"inner","…","\\mathellipsis"),xe(ke,Se,"inner","…","\\ldots",!0),xe(we,Se,"inner","…","\\ldots",!0),xe(we,Se,"inner","⋯","\\@cdots",!0),xe(we,Se,"inner","⋱","\\ddots",!0),xe(we,Se,Ie,"⋮","\\varvdots"),xe(ke,Se,Ie,"⋮","\\varvdots"),xe(we,Se,ze,"ˊ","\\acute"),xe(we,Se,ze,"ˋ","\\grave"),xe(we,Se,ze,"¨","\\ddot"),xe(we,Se,ze,"~","\\tilde"),xe(we,Se,ze,"ˉ","\\bar"),xe(we,Se,ze,"˘","\\breve"),xe(we,Se,ze,"ˇ","\\check"),xe(we,Se,ze,"^","\\hat"),xe(we,Se,ze,"⃗","\\vec"),xe(we,Se,ze,"˙","\\dot"),xe(we,Se,ze,"˚","\\mathring"),xe(we,Se,Be,"","\\@imath"),xe(we,Se,Be,"","\\@jmath"),xe(we,Se,Ie,"ı","ı"),xe(we,Se,Ie,"ȷ","ȷ"),xe(ke,Se,Ie,"ı","\\i",!0),xe(ke,Se,Ie,"ȷ","\\j",!0),xe(ke,Se,Ie,"ß","\\ss",!0),xe(ke,Se,Ie,"æ","\\ae",!0),xe(ke,Se,Ie,"œ","\\oe",!0),xe(ke,Se,Ie,"ø","\\o",!0),xe(ke,Se,Ie,"Æ","\\AE",!0),xe(ke,Se,Ie,"Œ","\\OE",!0),xe(ke,Se,Ie,"Ø","\\O",!0),xe(ke,Se,ze,"ˊ","\\'"),xe(ke,Se,ze,"ˋ","\\`"),xe(ke,Se,ze,"ˆ","\\^"),xe(ke,Se,ze,"˜","\\~"),xe(ke,Se,ze,"ˉ","\\="),xe(ke,Se,ze,"˘","\\u"),xe(ke,Se,ze,"˙","\\."),xe(ke,Se,ze,"¸","\\c"),xe(ke,Se,ze,"˚","\\r"),xe(ke,Se,ze,"ˇ","\\v"),xe(ke,Se,ze,"¨",'\\"'),xe(ke,Se,ze,"˝","\\H"),xe(ke,Se,ze,"◯","\\textcircled");var Re={"--":!0,"---":!0,"``":!0,"''":!0};xe(ke,Se,Ie,"–","--",!0),xe(ke,Se,Ie,"–","\\textendash"),xe(ke,Se,Ie,"—","---",!0),xe(ke,Se,Ie,"—","\\textemdash"),xe(ke,Se,Ie,"‘","`",!0),xe(ke,Se,Ie,"‘","\\textquoteleft"),xe(ke,Se,Ie,"’","'",!0),xe(ke,Se,Ie,"’","\\textquoteright"),xe(ke,Se,Ie,"“","``",!0),xe(ke,Se,Ie,"“","\\textquotedblleft"),xe(ke,Se,Ie,"”","''",!0),xe(ke,Se,Ie,"”","\\textquotedblright"),xe(we,Se,Ie,"°","\\degree",!0),xe(ke,Se,Ie,"°","\\degree"),xe(ke,Se,Ie,"°","\\textdegree",!0),xe(we,Se,Ie,"£","\\pounds"),xe(we,Se,Ie,"£","\\mathsterling",!0),xe(ke,Se,Ie,"£","\\pounds"),xe(ke,Se,Ie,"£","\\textsterling",!0),xe(we,Me,Ie,"✠","\\maltese"),xe(ke,Me,Ie,"✠","\\maltese");for(var He=0;He<'0123456789/@."'.length;He++){var Oe='0123456789/@."'.charAt(He);xe(we,Se,Ie,Oe,Oe)}for(var Ee=0;Ee<'0123456789!@*()-=+";:?/.,'.length;Ee++){var Le='0123456789!@*()-=+";:?/.,'.charAt(Ee);xe(ke,Se,Ie,Le,Le)}for(var De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ve=0;Ve{if(ae(e.classes)!==ae(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var r=e.classes[0];if("mbin"===r||"mord"===r)return!1}for(var a in e.style)if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;for(var n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0},Qe=function(e){for(var t=0,r=0,a=0,n=0;nt&&(t=i.height),i.depth>r&&(r=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=a},et=function(e,t,r,a){var n=new le(e,t,r,a);return Qe(n),n},tt=(e,t,r,a)=>new le(e,t,r,a),rt=function(e){var t=new G(e);return Qe(t),t},at=function(e,t,r){var a="";switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}return a+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},nt={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},it={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ot={fontMap:nt,makeSymbol:Ke,mathsym:function(e,t,r,a){return void 0===a&&(a=[]),"boldsymbol"===r.font&&Ze(e,"Main-Bold",t).metrics?Ke(e,"Main-Bold",t,r,a.concat(["mathbf"])):"\\"===e||"main"===ye[t][e].font?Ke(e,"Main-Regular",t,r,a):Ke(e,"AMS-Regular",t,r,a.concat(["amsrm"]))},makeSpan:et,makeSvgSpan:tt,makeLineSpan:function(e,t,r){var a=et([e],[],t);return a.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),a.style.borderBottomWidth=re(a.height),a.maxFontSize=1,a},makeAnchor:function(e,t,r,a){var n=new he(e,t,r,a);return Qe(n),n},makeFragment:rt,wrapFragment:function(e,t){return e instanceof G?et([],[e],t):e},makeVList:function(e,t){for(var{children:r,depth:a}=function(e){if("individualShift"===e.positionType){for(var t=e.children,r=[t[0]],a=-t[0].shift-t[0].elem.depth,n=a,i=1;i0)return Ke(n,l,a,t,i.concat(h));if(s){var m,c;if("boldsymbol"===s){var p=function(e,t,r,a,n){return"textord"!==n&&Ze(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(n,a,0,0,r);m=p.fontName,c=[p.fontClass]}else o?(m=nt[s].fontName,c=[s]):(m=at(s,t.fontWeight,t.fontShape),c=[s,t.fontWeight,t.fontShape]);if(Ze(n,m,a).metrics)return Ke(n,m,a,t,i.concat(c));if(Re.hasOwnProperty(n)&&"Typewriter"===m.slice(0,10)){for(var u=[],d=0;d{var r=et(["mspace"],[],t),a=te(e,t);return r.style.marginRight=re(a),r},staticSvg:function(e,t){var[r,a,n]=it[e],i=new de(r),o=new ue([i],{width:re(a),height:re(n),style:"width:"+re(a),viewBox:"0 0 "+1e3*a+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),s=tt(["overlay"],[o],t);return s.height=n,s.style.height=re(n),s.style.width=re(a),s},svgData:it,tryCombineChars:e=>{for(var t=0;t{var r=t.classes[0],a=e.classes[0];"mbin"===r&&z.contains(wt,a)?t.classes[0]="mord":"mbin"===a&&z.contains(xt,r)&&(e.classes[0]="mord")}),{node:m},c,p),zt(n,((e,t)=>{var r=Bt(t),a=Bt(e),n=r&&a?e.hasClass("mtight")?ct[r][a]:mt[r][a]:null;if(n)return ot.makeGlue(n,l)}),{node:m},c,p),n},zt=function e(t,r,a,n,i){n&&t.push(n);for(var o=0;or=>{t.splice(e+1,0,r),o++})(o)}}n&&t.pop()},At=function(e){return e instanceof G||e instanceof he||e instanceof le&&e.hasClass("enclosing")?e:null},Tt=function e(t,r){var a=At(t);if(a){var n=a.children;if(n.length){if("right"===r)return e(n[n.length-1],"right");if("left"===r)return e(n[0],"left")}}return t},Bt=function(e,t){return e?(t&&(e=Tt(e,t)),St[e.classes[0]]||null):null},Ct=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return yt(t.concat(r))},Nt=function(e,t,r){if(!e)return yt();if(ut[e.type]){var a=ut[e.type](e,t);if(r&&t.size!==r.size){a=yt(t.sizingClasses(r),[a],t);var n=t.sizeMultiplier/r.sizeMultiplier;a.height*=n,a.depth*=n}return a}throw new x("Got group of unknown type: '"+e.type+"'")};function qt(e,t){var r=yt(["base"],e,t),a=yt(["strut"]);return a.style.height=re(r.height+r.depth),r.depth&&(a.style.verticalAlign=re(-r.depth)),r.children.unshift(a),r}function It(e,t){var r=null;1===e.length&&"tag"===e[0].type&&(r=e[0].tag,e=e[0].body);var a,n=Mt(e,t,"root");2===n.length&&n[1].hasClass("tag")&&(a=n.pop());for(var i,o=[],s=[],l=0;l0&&(o.push(qt(s,t)),s=[]),o.push(n[l]));s.length>0&&o.push(qt(s,t)),r?((i=qt(Mt(r,t,!0))).classes=["tag"],o.push(i)):a&&o.push(a);var m=yt(["katex-html"],o);if(m.setAttribute("aria-hidden","true"),i){var c=i.children[0];c.style.height=re(m.height+m.depth),m.depth&&(c.style.verticalAlign=re(-m.depth))}return m}function Rt(e){return new G(e)}class Ht{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=ae(this.classes));for(var r=0;r0&&(e+=' class ="'+z.escape(ae(this.classes))+'"'),e+=">";for(var r=0;r"}toText(){return this.children.map((e=>e.toText())).join("")}}class Ot{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return z.escape(this.toText())}toText(){return this.text}}var Et={MathNode:Ht,TextNode:Ot,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",re(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},newDocumentFragment:Rt},Lt=function(e,t,r){return!ye[t][e]||!ye[t][e].replace||55349===e.charCodeAt(0)||Re.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=ye[t][e].replace),new Et.TextNode(e)},Dt=function(e){return 1===e.length?e[0]:new Et.MathNode("mrow",e)},Vt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var r=t.font;if(!r||"mathnormal"===r)return null;var a=e.mode;if("mathit"===r)return"italic";if("boldsymbol"===r)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===r)return"bold";if("mathbb"===r)return"double-struck";if("mathsfit"===r)return"sans-serif-italic";if("mathfrak"===r)return"fraktur";if("mathscr"===r||"mathcal"===r)return"script";if("mathsf"===r)return"sans-serif";if("mathtt"===r)return"monospace";var n=e.text;return z.contains(["\\imath","\\jmath"],n)?null:(ye[a][n]&&ye[a][n].replace&&(n=ye[a][n].replace),X(n,ot.fontMap[r].fontName,a)?ot.fontMap[r].variant:null)};function Pt(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof Ot&&"."===t.text}if("mo"===e.type&&1===e.children.length&&"true"===e.getAttribute("separator")&&"0em"===e.getAttribute("lspace")&&"0em"===e.getAttribute("rspace")){var r=e.children[0];return r instanceof Ot&&","===r.text}return!1}var Ft=function(e,t,r){if(1===e.length){var a=Ut(e[0],t);return r&&a instanceof Ht&&"mo"===a.type&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var n,i=[],o=0;o=1&&("mn"===n.type||Pt(n))){var l=s.children[0];l instanceof Ht&&"mn"===l.type&&(l.children=[...n.children,...l.children],i.pop())}else if("mi"===n.type&&1===n.children.length){var h=n.children[0];if(h instanceof Ot&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var m=s.children[0];m instanceof Ot&&m.text.length>0&&(m.text=m.text.slice(0,1)+"̸"+m.text.slice(1),i.pop())}}}i.push(s),n=s}return i},Gt=function(e,t,r){return Dt(Ft(e,t,r))},Ut=function(e,t){if(!e)return new Et.MathNode("mrow");if(dt[e.type])return dt[e.type](e,t);throw new x("Got group of unknown type: '"+e.type+"'")};function _t(e,t,r,a,n){var i,o=Ft(e,r);i=1===o.length&&o[0]instanceof Ht&&z.contains(["mrow","mtable"],o[0].type)?o[0]:new Et.MathNode("mrow",o);var s=new Et.MathNode("annotation",[new Et.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var l=new Et.MathNode("semantics",[i,s]),h=new Et.MathNode("math",[l]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&h.setAttribute("display","block");var m=n?"katex":"katex-mathml";return ot.makeSpan([m],[h])}var Yt=function(e){return new K({style:e.displayMode?L.DISPLAY:L.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Xt=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ot.makeSpan(r,[e])}return e},Wt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},jt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},$t=function(e,t,r,a,n){var i,o=e.height+e.depth+r+a;if(/fbox|color|angl/.test(t)){if(i=ot.makeSpan(["stretchy",t],[],n),"fbox"===t){var s=n.color&&n.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new ge({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new ge({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var h=new ue(l,{width:"100%",height:re(o)});i=ot.makeSvgSpan([],[h],n)}return i.height=o,i.style.height=re(o),i},Zt=function(e){var t=new Et.MathNode("mo",[new Et.TextNode(Wt[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Kt=function(e,t){var{span:r,minWidth:a,height:n}=function(){var r=4e5,a=e.label.slice(1);if(z.contains(["widehat","widecheck","widetilde","utilde"],a)){var n,i,o,s="ordgroup"===(u=e.base).type?u.body.length:1;if(s>5)"widehat"===a||"widecheck"===a?(n=420,r=2364,o=.42,i=a+"4"):(n=312,r=2340,o=.34,i="tilde4");else{var l=[1,1,2,2,3,3][s];"widehat"===a||"widecheck"===a?(r=[0,1062,2364,2364,2364][l],n=[0,239,300,360,420][l],o=[0,.24,.3,.3,.36,.42][l],i=a+l):(r=[0,600,1033,2339,2340][l],n=[0,260,286,306,312][l],o=[0,.26,.286,.3,.306,.34][l],i="tilde"+l)}var h=new de(i),m=new ue([h],{width:"100%",height:re(o),viewBox:"0 0 "+r+" "+n,preserveAspectRatio:"none"});return{span:ot.makeSvgSpan([],[m],t),minWidth:0,height:o}}var c,p,u,d=[],g=jt[a],[f,v,b]=g,y=b/1e3,x=f.length;if(1===x)c=["hide-tail"],p=[g[3]];else if(2===x)c=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");c=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var w=0;w0&&(r.style.minWidth=re(a)),r};function Jt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qt(e){var t=er(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function er(e){return e&&("atom"===e.type||be.hasOwnProperty(e.type))?e:null}var tr=(e,t)=>{var r,a,n;e&&"supsub"===e.type?(r=(a=Jt(e.base,"accent")).base,e.base=r,n=function(e){if(e instanceof le)return e;throw new Error("Expected span but got "+String(e)+".")}(Nt(e,t)),e.base=a):r=(a=Jt(e,"accent")).base;var i=Nt(r,t.havingCrampedStyle()),o=0;if(a.isShifty&&z.isCharacterBox(r)){var s=z.getBaseElem(r);o=fe(Nt(s,t.havingCrampedStyle())).skew}var l,h="\\c"===a.label,m=h?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(a.isStretchy)l=Kt(a,t),l=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:l,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+re(2*o)+")",marginLeft:re(2*o)}:void 0}]},t);else{var c,p;"\\vec"===a.label?(c=ot.staticSvg("vec",t),p=ot.svgData.vec[1]):((c=fe(c=ot.makeOrd({mode:a.mode,text:a.label},t,"textord"))).italic=0,p=c.width,h&&(m+=c.depth)),l=ot.makeSpan(["accent-body"],[c]);var u="\\textcircled"===a.label;u&&(l.classes.push("accent-full"),m=i.height);var d=o;u||(d-=p/2),l.style.left=re(d),"\\textcircled"===a.label&&(l.style.top=".2em"),l=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-m},{type:"elem",elem:l}]},t)}var g=ot.makeSpan(["mord","accent"],[l],t);return n?(n.children[0]=g,n.height=Math.max(g.height,n.height),n.classes[0]="mord",n):g},rr=(e,t)=>{var r=e.isStretchy?Zt(e.label):new Et.MathNode("mo",[Lt(e.label,e.mode)]),a=new Et.MathNode("mover",[Ut(e.base,t),r]);return a.setAttribute("accent","true"),a},ar=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));gt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=vt(t[0]),a=!ar.test(e.funcName),n=!a||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:tr,mathmlBuilder:rr}),gt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],a=e.parser.mode;return"math"===a&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:tr,mathmlBuilder:rr}),gt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=Nt(e.base,t),a=Kt(e,t),n="\\utilde"===e.label?.12:0,i=ot.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]},t);return ot.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=Zt(e.label),a=new Et.MathNode("munder",[Ut(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var nr=e=>{var t=new Et.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};gt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r,a=t.style,n=t.havingStyle(a.sup()),i=ot.wrapFragment(Nt(e.body,n,t),t),o="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(o+"-arrow-pad"),e.below&&(n=t.havingStyle(a.sub()),(r=ot.wrapFragment(Nt(e.below,n,t),t)).classes.push(o+"-arrow-pad"));var s,l=Kt(e,t),h=-t.fontMetrics().axisHeight+.5*l.height,m=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(m-=i.depth),r){var c=-t.fontMetrics().axisHeight+r.height+.5*l.height+.111;s=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h},{type:"elem",elem:r,shift:c}]},t)}else s=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:m},{type:"elem",elem:l,shift:h}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),ot.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder(e,t){var r,a=Zt(e.label);if(a.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var n=nr(Ut(e.body,t));if(e.below){var i=nr(Ut(e.below,t));r=new Et.MathNode("munderover",[a,i,n])}else r=new Et.MathNode("mover",[a,n])}else if(e.below){var o=nr(Ut(e.below,t));r=new Et.MathNode("munder",[a,o])}else r=nr(),r=new Et.MathNode("mover",[a,r]);return r}});var ir=ot.makeSpan;function or(e,t){var r=Mt(e.body,t,!0);return ir([e.mclass],r,t)}function sr(e,t){var r,a=Ft(e.body,t);return"minner"===e.mclass?r=new Et.MathNode("mpadded",a):"mord"===e.mclass?e.isCharacterBox?(r=a[0]).type="mi":r=new Et.MathNode("mi",a):(e.isCharacterBox?(r=a[0]).type="mo":r=new Et.MathNode("mo",a),"mbin"===e.mclass?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):"mpunct"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(r.attributes.lspace="0em",r.attributes.rspace="0em"):"minner"===e.mclass&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}gt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:bt(n),isCharacterBox:z.isCharacterBox(n)}},htmlBuilder:or,mathmlBuilder:sr});var lr=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};gt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:lr(t[0]),body:bt(t[1]),isCharacterBox:z.isCharacterBox(t[1])}}}),gt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var r,{parser:a,funcName:n}=e,i=t[1],o=t[0];r="\\stackrel"!==n?lr(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==n,body:bt(i)},l={type:"supsub",mode:o.mode,base:s,sup:"\\underset"===n?null:o,sub:"\\underset"===n?o:null};return{type:"mclass",mode:a.mode,mclass:r,body:[l],isCharacterBox:z.isCharacterBox(l)}},htmlBuilder:or,mathmlBuilder:sr}),gt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:lr(t[0]),body:bt(t[0])}},htmlBuilder(e,t){var r=Mt(e.body,t,!0),a=ot.makeSpan([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=Ft(e.body,t),a=new Et.MathNode("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var hr={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mr=e=>"textord"===e.type&&"@"===e.text;function cr(e,t,r){var a=hr[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var n={type:"atom",text:a,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[r.callFunction("\\\\cdleft",[t[0]],[]),r.callFunction("\\Big",[n],[]),r.callFunction("\\\\cdright",[t[1]],[])]};return r.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return r.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}gt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=ot.wrapFragment(Nt(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=re(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new Et.MathNode("mrow",[Ut(e.label,t)]);return(r=new Et.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new Et.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),gt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=ot.wrapFragment(Nt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder:(e,t)=>new Et.MathNode("mrow",[Ut(e.fragment,t)])}),gt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=Jt(t[0],"ordgroup").body,n="",i=0;i=1114111)throw new x("\\@char with invalid code point "+n);return s<=65535?o=String.fromCharCode(s):(s-=65536,o=String.fromCharCode(55296+(s>>10),56320+(1023&s))),{type:"textord",mode:r.mode,text:o}}});var pr=(e,t)=>{var r=Mt(e.body,t.withColor(e.color),!1);return ot.makeFragment(r)},ur=(e,t)=>{var r=Ft(e.body,t.withColor(e.color)),a=new Et.MathNode("mstyle",r);return a.setAttribute("mathcolor",e.color),a};gt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=Jt(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:bt(n)}},htmlBuilder:pr,mathmlBuilder:ur}),gt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=Jt(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:pr,mathmlBuilder:ur}),gt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n="["===a.gullet.future().text?a.parseSizeGroup(!0):null,i=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:i,size:n&&Jt(n,"size").value}},htmlBuilder(e,t){var r=ot.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=re(te(e.size,t)))),r},mathmlBuilder(e,t){var r=new Et.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",re(te(e.size,t)))),r}});var dr={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},gr=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new x("Expected a control sequence",e);return t},fr=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);null==n&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};gt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(dr[a.text])return"\\global"!==r&&"\\\\globallong"!==r||(a.text=dr[a.text]),Jt(t.parseFunction(),"internal");throw new x("Invalid token after macro prefix",a)}}),gt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new x("Expected a control sequence",a);for(var i,o=0,s=[[]];"{"!==t.gullet.future().text;)if("#"===(a=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),s[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new x('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new x('Argument number "'+a.text+'" out of order');o++,s.push([])}else{if("EOF"===a.text)throw new x("Expected a macro definition");s[o].push(a.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(l=t.gullet.expandTokens(l)).reverse(),t.gullet.macros.set(n,{tokens:l,numArgs:o,delimiters:s},r===dr[r]),{type:"internal",mode:t.mode}}}),gt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=gr(t.gullet.popToken());t.gullet.consumeSpaces();var n=(e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t})(t);return fr(t,a,n,"\\\\globallet"===r),{type:"internal",mode:t.mode}}}),gt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=gr(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return fr(t,a,i,"\\\\globalfuture"===r),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var vr=function(e,t,r){var a=X(ye.math[e]&&ye.math[e].replace||e,t,r);if(!a)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return a},br=function(e,t,r,a){var n=r.havingBaseStyle(t),i=ot.makeSpan(a.concat(n.sizingClasses(r)),[e],r),o=n.sizeMultiplier/r.sizeMultiplier;return i.height*=o,i.depth*=o,i.maxFontSize=n.sizeMultiplier,i},yr=function(e,t,r){var a=t.havingBaseStyle(r),n=(1-t.sizeMultiplier/a.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=re(n),e.height-=n,e.depth+=n},xr=function(e,t,r,a,n,i){var o=function(e,t,r,a){return ot.makeSymbol(e,"Size"+t+"-Regular",r,a)}(e,t,n,a),s=br(ot.makeSpan(["delimsizing","size"+t],[o],a),L.TEXT,a,i);return r&&yr(s,a,L.TEXT),s},wr=function(e,t,r){var a;return a="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:ot.makeSpan(["delimsizinginner",a],[ot.makeSpan([],[ot.makeSymbol(e,t,r)])])}},kr=function(e,t,r){var a=U["Size4-Regular"][e.charCodeAt(0)]?U["Size4-Regular"][e.charCodeAt(0)][4]:U["Size1-Regular"][e.charCodeAt(0)][4],n=new de("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new ue([n],{width:re(a),height:re(t),style:"width:"+re(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=ot.makeSvgSpan([],[i],r);return o.height=t,o.style.height=re(t),o.style.width=re(a),{type:"elem",elem:o}},Sr={type:"kern",size:-.008},Mr=["|","\\lvert","\\rvert","\\vert"],zr=["\\|","\\lVert","\\rVert","\\Vert"],Ar=function(e,t,r,a,n,i){var o,s,l,h,m="",c=0;o=l=h=e,s=null;var p="Size1-Regular";"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",h="\\Downarrow"):z.contains(Mr,e)?(l="∣",m="vert",c=333):z.contains(zr,e)?(l="∥",m="doublevert",c=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",h="⎣",p="Size4-Regular",m="lbrack",c=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",h="⎦",p="Size4-Regular",m="rbrack",c=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",h="⎣",p="Size4-Regular",m="lfloor",c=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=h="⎢",p="Size4-Regular",m="lceil",c=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",h="⎦",p="Size4-Regular",m="rfloor",c=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=h="⎥",p="Size4-Regular",m="rceil",c=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",h="⎝",p="Size4-Regular",m="lparen",c=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",h="⎠",p="Size4-Regular",m="rparen",c=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",h="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",h="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",h="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",h="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",h="⎭",l="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",h="⎩",l="⎪",p="Size4-Regular");var u=vr(o,p,n),d=u.height+u.depth,g=vr(l,p,n),f=g.height+g.depth,v=vr(h,p,n),b=v.height+v.depth,y=0,x=1;if(null!==s){var w=vr(s,p,n);y=w.height+w.depth,x=2}var k=d+b+y,S=k+Math.max(0,Math.ceil((t-k)/(x*f)))*x*f,M=a.fontMetrics().axisHeight;r&&(M*=a.sizeMultiplier);var A=S/2-M,T=[];if(m.length>0){var B=S-d-b,C=Math.round(1e3*S),N=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+t+" v585 h43z\nM367 15 v585 v"+t+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-t+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+" v602 h84z\nM403 1759 V0 H319 V1759 v"+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+t+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(t+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(t+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(t+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(t+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}}(m,Math.round(1e3*B)),q=new de(m,N),I=(c/1e3).toFixed(3)+"em",R=(C/1e3).toFixed(3)+"em",H=new ue([q],{width:I,height:R,viewBox:"0 0 "+c+" "+C}),O=ot.makeSvgSpan([],[H],a);O.height=C/1e3,O.style.width=I,O.style.height=R,T.push({type:"elem",elem:O})}else{if(T.push(wr(h,p,n)),T.push(Sr),null===s){var E=S-d-b+.016;T.push(kr(l,E,a))}else{var D=(S-d-b-y)/2+.016;T.push(kr(l,D,a)),T.push(Sr),T.push(wr(s,p,n)),T.push(Sr),T.push(kr(l,D,a))}T.push(Sr),T.push(wr(o,p,n))}var V=a.havingBaseStyle(L.TEXT),P=ot.makeVList({positionType:"bottom",positionData:A,children:T},V);return br(ot.makeSpan(["delimsizing","mult"],[P],V),L.TEXT,a,i)},Tr=function(e,t,r,a,n){var i=function(e,t,r){t*=1e3;var a="";switch(e){case"sqrtMain":a=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize1":a=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize2":a=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize3":a=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize4":a=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,80);break;case"sqrtTall":a=function(e,t,r){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(r-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,80,r)}return a}(e,a,r),o=new de(e,i),s=new ue([o],{width:"400em",height:re(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ot.makeSvgSpan(["hide-tail"],[s],n)},Br=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Cr=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Nr=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qr=[0,1.2,1.8,2.4,3],Ir=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Rr=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"stack"}],Hr=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Or=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Er=function(e,t,r,a){for(var n=Math.min(2,3-a.style.size);nt)return r[n]}return r[r.length-1]},Lr=function(e,t,r,a,n,i){var o;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),o=z.contains(Nr,e)?Ir:z.contains(Br,e)?Hr:Rr;var s=Er(e,t,o,a);return"small"===s.type?function(e,t,r,a,n,i){var o=ot.makeSymbol(e,"Main-Regular",n,a),s=br(o,t,a,i);return r&&yr(s,a,t),s}(e,s.style,r,a,n,i):"large"===s.type?xr(e,s.size,r,a,n,i):Ar(e,t,r,a,n,i)},Dr={sqrtImage:function(e,t){var r,a,n=t.havingBaseSizing(),i=Er("\\surd",e*n.sizeMultiplier,Hr,n),o=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,h=0,m=0;return"small"===i.type?(e<1?o=1:e<1.4&&(o=.7),h=(1+s)/o,(r=Tr("sqrtMain",l=(1+s+.08)/o,m=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",a=.833/o):"large"===i.type?(m=1080*qr[i.size],h=(qr[i.size]+s)/o,l=(qr[i.size]+s+.08)/o,(r=Tr("sqrtSize"+i.size,l,m,s,t)).style.minWidth="1.02em",a=1/o):(l=e+s+.08,h=e+s,m=Math.floor(1e3*e+s)+80,(r=Tr("sqrtTall",l,m,s,t)).style.minWidth="0.742em",a=1.056),r.height=h,r.style.height=re(l),{span:r,advanceWidth:a,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},sizedDelim:function(e,t,r,a,n){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),z.contains(Br,e)||z.contains(Nr,e))return xr(e,t,!1,r,a,n);if(z.contains(Cr,e))return Ar(e,qr[t],!1,r,a,n);throw new x("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:qr,customSizedDelim:Lr,leftRightDelim:function(e,t,r,a,n,i){var o=a.fontMetrics().axisHeight*a.sizeMultiplier,s=5/a.fontMetrics().ptPerEm,l=Math.max(t-o,r+o),h=Math.max(l/500*901,2*l-s);return Lr(e,h,!0,a,n,i)}},Vr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Pr=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Fr(e,t){var r=er(e);if(r&&z.contains(Pr,r.text))return r;throw new x(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Gr(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}gt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=Fr(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Vr[e.funcName].size,mclass:Vr[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>"."===e.delim?ot.makeSpan([e.mclass]):Dr.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(Lt(e.delim,e.mode));var r=new Et.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=re(Dr.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}}),gt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new x("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Fr(t[0],e).text,color:r}}}),gt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Fr(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var i=Jt(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{Gr(e);for(var r,a,n=Mt(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,l=0;l{Gr(e);var r=Ft(e.body,t);if("."!==e.left){var a=new Et.MathNode("mo",[Lt(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if("."!==e.right){var n=new Et.MathNode("mo",[Lt(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return Dt(r)}}),gt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=Fr(t[0],e);if(!e.parser.leftrightDepth)throw new x("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if("."===e.delim)r=Ct(t,[]);else{r=Dr.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r="\\vert"===e.delim||"|"===e.delim?Lt("|","text"):Lt(e.delim,e.mode),a=new Et.MathNode("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Ur=(e,t)=>{var r,a,n,i=ot.wrapFragment(Nt(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,h=z.isCharacterBox(e.body);if("sout"===o)(r=ot.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var m=te({number:.6,unit:"pt"},t),c=te({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=i.height+i.depth+m+c;i.style.paddingLeft=re(p/2+m);var u=Math.floor(1e3*p*s),d="M400000 "+(a=u)+" H0 L"+a/2+" 0 l65 45 L145 "+(a-80)+" H400000z",g=new ue([new de("phase",d)],{width:"400em",height:re(u/1e3),viewBox:"0 0 400000 "+u,preserveAspectRatio:"xMinYMin slice"});(r=ot.makeSvgSpan(["hide-tail"],[g],t)).style.height=re(p),l=i.depth+m+c}else{/cancel/.test(o)?h||i.classes.push("cancel-pad"):"angl"===o?i.classes.push("anglpad"):i.classes.push("boxpad");var f=0,v=0,b=0;/box/.test(o)?(b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=f=t.fontMetrics().fboxsep+("colorbox"===o?0:b)):"angl"===o?(f=4*(b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-i.depth)):v=f=h?.2:0,r=$t(i,o,f,v,t),/fbox|boxed|fcolorbox/.test(o)?(r.style.borderStyle="solid",r.style.borderWidth=re(b)):"angl"===o&&.049!==b&&(r.style.borderTopWidth=re(b),r.style.borderRightWidth=re(b)),l=i.depth+v,e.backgroundColor&&(r.style.backgroundColor=e.backgroundColor,e.borderColor&&(r.style.borderColor=e.borderColor))}if(e.backgroundColor)n=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:l},{type:"elem",elem:i,shift:0}]},t);else{var y=/cancel|phase/.test(o)?["svg-align"]:[];n=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:r,shift:l,wrapperClasses:y}]},t)}return/cancel/.test(o)&&(n.height=i.height,n.depth=i.depth),/cancel/.test(o)&&!h?ot.makeSpan(["mord","cancel-lap"],[n],t):ot.makeSpan(["mord"],[n],t)},_r=(e,t)=>{var r=0,a=new Et.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ut(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),"\\fcolorbox"===e.label){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+n+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};gt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Jt(t[0],"color-token").color,o=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,body:o}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,i=Jt(t[0],"color-token").color,o=Jt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,borderColor:i,body:s}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}}),gt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Ur,mathmlBuilder:_r}),gt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Yr={};function Xr(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:i,mathmlBuilder:o}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{if(!e.parser.settings.displayMode)throw new x("{"+e.envName+"} can be used only in display mode.")};function Kr(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function Jr(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:i,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:h,emptySingleRow:m,maxNumCols:c,leqno:p}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!o){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)o=1;else if(!(o=parseFloat(u))||o<0)throw new x("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var d=[],g=[d],f=[],v=[],b=null!=l?[]:void 0;function w(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new y("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(l)&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),v.push($r(e));;){var S=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),S={type:"ordgroup",mode:e.mode,body:S},r&&(S={type:"styling",mode:e.mode,style:r,body:[S]}),d.push(S);var M=e.fetch().text;if("&"===M){if(c&&d.length===c){if(h||s)throw new x("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===M){k(),1===d.length&&"styling"===S.type&&0===S.body[0].body.length&&(g.length>1||!m)&&g.pop(),v.length0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(b(i[0]),r=0;r0&&(k<(T+=f)&&(k=T),T=0),e.addJot&&(k+=u),S.height=w,S.depth=k,v+=w,S.pos=v,v+=k+T,s[r]=S,b(i[r+1])}var B,C,N=v/2+t.fontMetrics().axisHeight,q=e.cols||[],I=[],R=[];if(e.tags&&e.tags.some((e=>e)))for(r=0;r=o)){var _=void 0;(a>0||e.hskipBeforeAndAfter)&&0!==(_=z.deflt(V.pregap,c))&&((B=ot.makeSpan(["arraycolsep"],[])).style.width=re(_),I.push(B));var Y=[];for(r=0;r0){for(var $=ot.makeLineSpan("hline",t,h),Z=ot.makeLineSpan("hdashline",t,h),K=[{type:"elem",elem:s,shift:0}];l.length>0;){var J=l.pop(),Q=J.pos-N;J.isDashed?K.push({type:"elem",elem:Z,shift:Q}):K.push({type:"elem",elem:$,shift:Q})}s=ot.makeVList({positionType:"individualShift",children:K},t)}if(0===R.length)return ot.makeSpan(["mord"],[s],t);var ee=ot.makeVList({positionType:"individualShift",children:R},t);return ee=ot.makeSpan(["tag"],[ee],t),ot.makeFragment([s,ee])},ta={c:"center ",l:"left ",r:"right "},ra=function(e,t){for(var r=[],a=new Et.MathNode("mtd",[],["mtr-glue"]),n=new Et.MathNode("mtd",[],["mml-eqn-num"]),i=0;i0){var u=e.cols,d="",g=!1,f=0,v=u.length;"separator"===u[0].type&&(c+="top ",f=1),"separator"===u[u.length-1].type&&(c+="bottom ",v-=1);for(var b=f;b0?"left ":"",c+=S[S.length-1].length>0?"right ":"";for(var M=1;M-1?"alignat":"align",i="split"===e.envName,o=Jr(e.parser,{cols:a,addJot:!0,autoTag:i?void 0:Kr(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var h="",m=0;m0&&c&&(d=1),a[p]={type:"align",align:u,pregap:d,postgap:0}}return o.colSeparationType=c?"align":"alignat",o};Xr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=(er(t[0])?[t[0]]:Jt(t[0],"ordgroup").body).map((function(e){var t=Qt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new x("Unknown column alignment: "+t,e)})),a={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return Jr(e.parser,a,Qr(e.envName))},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if("*"===e.envName.charAt(e.envName.length-1)){var n=e.parser;if(n.consumeSpaces(),"["===n.fetch().text){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,-1==="lcr".indexOf(r))throw new x("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var i=Jr(e.parser,a,Qr(e.envName)),o=Math.max(0,...i.body.map((e=>e.length)));return i.cols=new Array(o).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=Jr(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=(er(t[0])?[t[0]]:Jt(t[0],"ordgroup").body).map((function(e){var t=Qt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new x("Unknown column alignment: "+t,e)}));if(r.length>1)throw new x("{subarray} can contain only one column");var a={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if((a=Jr(e.parser,a,"script")).body.length>0&&a.body[0].length>1)throw new x("{subarray} can contain only one column");return a},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=Jr(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Qr(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:aa,htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){z.contains(["gather","gather*"],e.envName)&&Zr(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Kr(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Jr(e.parser,t,"display")},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:aa,htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Zr(e);var t={autoTag:Kr(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Jr(e.parser,t,"display")},htmlBuilder:ea,mathmlBuilder:ra}),Xr({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(Zr(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if("&"!==r&&"\\\\"!==r){if("\\end"===r){0===t[t.length-1].length&&t.pop();break}throw new x("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var a,n,i=[],o=[i],s=0;s-1);else{if(!("<>AV".indexOf(c)>-1))throw new x('Expected one of "<>AV=|." after @',l[m]);for(var u=0;u<2;u++){for(var d=!0,g=m+1;g{var r=e.font,a=t.withFont(r);return Nt(e.body,a)},oa=(e,t)=>{var r=e.font,a=t.withFont(r);return Ut(e.body,a)},sa={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};gt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=vt(t[0]),i=a;return i in sa&&(i=sa[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:ia,mathmlBuilder:oa}),gt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0],n=z.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:lr(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:n}}}),gt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:i}=r,o=r.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+a.slice(1),body:{type:"ordgroup",mode:r.mode,body:o}}},htmlBuilder:ia,mathmlBuilder:oa});var la=(e,t)=>{var r=t;return"display"===e?r=r.id>=L.SCRIPT.id?r.text():L.DISPLAY:"text"===e&&r.size===L.DISPLAY.size?r=L.TEXT:"script"===e?r=L.SCRIPT:"scriptscript"===e&&(r=L.SCRIPTSCRIPT),r},ha=(e,t)=>{var r,a=la(e.size,t.style),n=a.fracNum(),i=a.fracDen();r=t.havingStyle(n);var o=Nt(e.numer,r,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;o.height=o.height0?3*c:7*c,d=t.fontMetrics().denom1):(m>0?(p=t.fontMetrics().num2,u=c):(p=t.fontMetrics().num3,u=3*c),d=t.fontMetrics().denom2),h){var x=t.fontMetrics().axisHeight;p-o.depth-(x+.5*m){var r=new Et.MathNode("mfrac",[Ut(e.numer,t),Ut(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var a=te(e.barSize,t);r.setAttribute("linethickness",re(a))}}else r.setAttribute("linethickness","0px");var n=la(e.size,t.style);if(n.size!==t.style.size){r=new Et.MathNode("mstyle",[r]);var i=n.size===L.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",i),r.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var o=[];if(null!=e.leftDelim){var s=new Et.MathNode("mo",[new Et.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),o.push(s)}if(o.push(r),null!=e.rightDelim){var l=new Et.MathNode("mo",[new Et.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}return Dt(o)}return r};gt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var r,{parser:a,funcName:n}=e,i=t[0],o=t[1],s=null,l=null,h="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",l=")";break;case"\\\\bracefrac":r=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":r=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text"}return{type:"genfrac",mode:a.mode,continued:!1,numer:i,denom:o,hasBarLine:r,leftDelim:s,rightDelim:l,size:h,barSize:null}},htmlBuilder:ha,mathmlBuilder:ma}),gt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:n,denom:i,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),gt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:r,funcName:a,token:n}=e;switch(a){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:n}}});var ca=["display","text","script","scriptscript"],pa=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};gt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var r,{parser:a}=e,n=t[4],i=t[5],o=vt(t[0]),s="atom"===o.type&&"open"===o.family?pa(o.text):null,l=vt(t[1]),h="atom"===l.type&&"close"===l.family?pa(l.text):null,m=Jt(t[2],"size"),c=null;r=!!m.isBlank||(c=m.value).number>0;var p="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){var d=Jt(u.body[0],"textord");p=ca[Number(d.text)]}}else u=Jt(u,"textord"),p=ca[Number(u.text)];return{type:"genfrac",mode:a.mode,numer:n,denom:i,continued:!1,hasBarLine:r,barSize:c,leftDelim:s,rightDelim:h,size:p}},htmlBuilder:ha,mathmlBuilder:ma}),gt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Jt(t[0],"size").value,token:n}}}),gt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],i=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Jt(t[1],"infix").size),o=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:o,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ha,mathmlBuilder:ma});var ua=(e,t)=>{var r,a,n=t.style;"supsub"===e.type?(r=e.sup?Nt(e.sup,t.havingStyle(n.sup()),t):Nt(e.sub,t.havingStyle(n.sub()),t),a=Jt(e.base,"horizBrace")):a=Jt(e,"horizBrace");var i,o=Nt(a.base,t.havingBaseStyle(L.DISPLAY)),s=Kt(a,t);if(a.isOver?(i=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=ot.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},t)).children[0].children[0].children[0].classes.push("svg-align"),r){var l=ot.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t);i=a.isOver?ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):ot.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return ot.makeSpan(["mord",a.isOver?"mover":"munder"],[i],t)};gt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:ua,mathmlBuilder:(e,t)=>{var r=Zt(e.label);return new Et.MathNode(e.isOver?"mover":"munder",[Ut(e.base,t),r])}}),gt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=Jt(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:bt(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Mt(e.body,t,!1);return ot.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Gt(e.body,t);return r instanceof Ht||(r=new Ht("mrow",[r])),r.setAttribute("href",e.href),r}}),gt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=Jt(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;inew Et.MathNode("mrow",Ft(e.body,t))}),gt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var r,{parser:a,funcName:n,token:i}=e,o=Jt(t[0],"raw").string,s=t[1];a.settings.strict&&a.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(n){case"\\htmlClass":l.class=o,r={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,r={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,r={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var h=o.split(","),m=0;m{var r=Mt(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=ot.makeSpan(a,r,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>Gt(e.body,t)}),gt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:bt(t[0]),mathml:bt(t[1])}},htmlBuilder:(e,t)=>{var r=Mt(e.html,t,!1);return ot.makeFragment(r)},mathmlBuilder:(e,t)=>Gt(e.mathml,t)});var da=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new x("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!ee(r))throw new x("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};gt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},i={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0])for(var l=Jt(r[0],"raw").string.split(","),h=0;h{var r=te(e.height,t),a=0;e.totalheight.number>0&&(a=te(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=te(e.width,t));var i={height:re(r+a)};n>0&&(i.width=re(n)),a>0&&(i.verticalAlign=re(-a));var o=new me(e.src,e.alt,i);return o.height=r,o.depth=a,o},mathmlBuilder:(e,t)=>{var r=new Et.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=te(e.height,t),n=0;if(e.totalheight.number>0&&(n=te(e.totalheight,t)-a,r.setAttribute("valign",re(-n))),r.setAttribute("height",re(a+n)),e.width.number>0){var i=te(e.width,t);r.setAttribute("width",re(i))}return r.setAttribute("src",e.src),r}}),gt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=Jt(t[0],"size");if(r.settings.strict){var i="m"===a[1],o="mu"===n.value.unit;i?(o||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, not "+n.value.unit+" units"),"math"!==r.mode&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):o&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder:(e,t)=>ot.makeGlue(e.dimension,t),mathmlBuilder(e,t){var r=te(e.dimension,t);return new Et.SpaceNode(r)}}),gt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;"clap"===e.alignment?(r=ot.makeSpan([],[Nt(e.body,t)]),r=ot.makeSpan(["inner"],[r],t)):r=ot.makeSpan(["inner"],[Nt(e.body,t)]);var a=ot.makeSpan(["fix"],[]),n=ot.makeSpan([e.alignment],[r,a],t),i=ot.makeSpan(["strut"]);return i.style.height=re(n.height+n.depth),n.depth&&(i.style.verticalAlign=re(-n.depth)),n.children.unshift(i),n=ot.makeSpan(["thinbox"],[n],t),ot.makeSpan(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new Et.MathNode("mpadded",[Ut(e.body,t)]);if("rlap"!==e.alignment){var a="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}}),gt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var i="\\("===r?"\\)":"$",o=a.parseExpression(!1,i);return a.expect(i),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:o}}}),gt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new x("Mismatched "+e.funcName)}});var ga=(e,t)=>{switch(t.style.size){case L.DISPLAY.size:return e.display;case L.TEXT.size:return e.text;case L.SCRIPT.size:return e.script;case L.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};gt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:bt(t[0]),text:bt(t[1]),script:bt(t[2]),scriptscript:bt(t[3])}},htmlBuilder:(e,t)=>{var r=ga(e,t),a=Mt(r,t,!1);return ot.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ga(e,t);return Gt(r,t)}});var fa=(e,t,r,a,n,i,o)=>{e=ot.makeSpan([],[e]);var s,l,h,m=r&&z.isCharacterBox(r);if(t){var c=Nt(t,a.havingStyle(n.sup()),a);l={elem:c,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var p=Nt(r,a.havingStyle(n.sub()),a);s={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-p.height)}}if(l&&s){var u=a.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+o;h=ot.makeVList({positionType:"bottom",positionData:u,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:re(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:re(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(s){var d=e.height-o;h=ot.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:re(-i)},{type:"kern",size:s.kern},{type:"elem",elem:e}]},a)}else{if(!l)return e;var g=e.depth+o;h=ot.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:re(i)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}var f=[h];if(s&&0!==i&&!m){var v=ot.makeSpan(["mspace"],[],a);v.style.marginRight=re(i),f.unshift(v)}return ot.makeSpan(["mop","op-limits"],f,a)},va=["\\smallint"],ba=(e,t)=>{var r,a,n,i=!1;"supsub"===e.type?(r=e.sup,a=e.sub,n=Jt(e.base,"op"),i=!0):n=Jt(e,"op");var o,s=t.style,l=!1;if(s.size===L.DISPLAY.size&&n.symbol&&!z.contains(va,n.name)&&(l=!0),n.symbol){var h=l?"Size2-Regular":"Size1-Regular",m="";if("\\oiint"!==n.name&&"\\oiiint"!==n.name||(m=n.name.slice(1),n.name="oiint"===m?"\\iint":"\\iiint"),o=ot.makeSymbol(n.name,h,"math",t,["mop","op-symbol",l?"large-op":"small-op"]),m.length>0){var c=o.italic,p=ot.staticSvg(m+"Size"+(l?"2":"1"),t);o=ot.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:p,shift:l?.08:0}]},t),n.name="\\"+m,o.classes.unshift("mop"),o.italic=c}}else if(n.body){var u=Mt(n.body,t,!0);1===u.length&&u[0]instanceof pe?(o=u[0]).classes[0]="mop":o=ot.makeSpan(["mop"],u,t)}else{for(var d=[],g=1;g{var r;if(e.symbol)r=new Ht("mo",[Lt(e.name,e.mode)]),z.contains(va,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Ht("mo",Ft(e.body,t));else{r=new Ht("mi",[new Ot(e.name.slice(1))]);var a=new Ht("mo",[Lt("⁡","text")]);r=e.parentIsSupSub?new Ht("mrow",[r,a]):Rt([r,a])}return r},xa={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};gt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=a;return 1===n.length&&(n=xa[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:bt(a)}},htmlBuilder:ba,mathmlBuilder:ya});var wa={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};gt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:ba,mathmlBuilder:ya}),gt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e,a=r;return 1===a.length&&(a=wa[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:ba,mathmlBuilder:ya});var ka=(e,t)=>{var r,a,n,i,o=!1;if("supsub"===e.type?(r=e.sup,a=e.sub,n=Jt(e.base,"operatorname"),o=!0):n=Jt(e,"operatorname"),n.body.length>0){for(var s=n.body.map((e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=Mt(s,t.withFont("mathrm"),!0),h=0;h{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:bt(n),alwaysHandleSupSub:"\\operatornamewithlimits"===a,limits:!1,parentIsSupSub:!1}},htmlBuilder:ka,mathmlBuilder:(e,t)=>{for(var r=Ft(e.body,t.withFont("mathrm")),a=!0,n=0;ne.toText())).join("");r=[new Et.TextNode(s)]}var l=new Et.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new Et.MathNode("mo",[Lt("⁡","text")]);return e.parentIsSupSub?new Et.MathNode("mrow",[l,h]):Et.newDocumentFragment([l,h])}}),jr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ft({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?ot.makeFragment(Mt(e.body,t,!1)):ot.makeSpan(["mord"],Mt(e.body,t,!0),t),mathmlBuilder:(e,t)=>Gt(e.body,t,!0)}),gt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=Nt(e.body,t.havingCrampedStyle()),a=ot.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]},t);return ot.makeSpan(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new Et.MathNode("mo",[new Et.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Et.MathNode("mover",[Ut(e.body,t),r]);return a.setAttribute("accent","true"),a}}),gt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:bt(a)}},htmlBuilder:(e,t)=>{var r=Mt(e.body,t.withPhantom(),!1);return ot.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=Ft(e.body,t);return new Et.MathNode("mphantom",r)}}),gt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=ot.makeSpan([],[Nt(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var a=0;a{var r=Ft(bt(e.body),t),a=new Et.MathNode("mphantom",r),n=new Et.MathNode("mpadded",[a]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}}),gt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=ot.makeSpan(["inner"],[Nt(e.body,t.withPhantom())]),a=ot.makeSpan(["fix"],[]);return ot.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=Ft(bt(e.body),t),a=new Et.MathNode("mphantom",r),n=new Et.MathNode("mpadded",[a]);return n.setAttribute("width","0px"),n}}),gt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=Jt(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=Nt(e.body,t),a=te(e.dy,t);return ot.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new Et.MathNode("mpadded",[Ut(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}}),gt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),gt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],i=Jt(t[0],"size"),o=Jt(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&Jt(n,"size").value,width:i.value,height:o.value}},htmlBuilder(e,t){var r=ot.makeSpan(["mord","rule"],[],t),a=te(e.width,t),n=te(e.height,t),i=e.shift?te(e.shift,t):0;return r.style.borderRightWidth=re(a),r.style.borderTopWidth=re(n),r.style.bottom=re(i),r.width=a,r.height=n+i,r.depth=-i,r.maxFontSize=1.125*n*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=te(e.width,t),a=te(e.height,t),n=e.shift?te(e.shift,t):0,i=t.color&&t.getColor()||"black",o=new Et.MathNode("mspace");o.setAttribute("mathbackground",i),o.setAttribute("width",re(r)),o.setAttribute("height",re(a));var s=new Et.MathNode("mpadded",[o]);return n>=0?s.setAttribute("height",re(n)):(s.setAttribute("height",re(n)),s.setAttribute("depth",re(-n))),s.setAttribute("voffset",re(n)),s}});var Ma=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];gt({type:"sizing",names:Ma,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:Ma.indexOf(a)+1,body:i}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return Sa(e.body,r,t)},mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=Ft(e.body,r),n=new Et.MathNode("mstyle",a);return n.setAttribute("mathsize",re(r.sizeMultiplier)),n}}),gt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,i=!1,o=r[0]&&Jt(r[0],"ordgroup");if(o)for(var s="",l=0;l{var r=ot.makeSpan([],[Nt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var a=0;a{var r=new Et.MathNode("mpadded",[Ut(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}}),gt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],i=t[0];return{type:"sqrt",mode:a.mode,body:i,index:n}},htmlBuilder(e,t){var r=Nt(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=ot.wrapFragment(r,t);var a=t.fontMetrics().defaultRuleThickness,n=a;t.style.idr.height+r.depth+i&&(i=(i+m-r.height-r.depth)/2);var c=s.height-r.height-i-l;r.style.paddingLeft=re(h);var p=ot.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var u=t.havingStyle(L.SCRIPTSCRIPT),d=Nt(e.index,u,t),g=.6*(p.height-p.depth),f=ot.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:d}]},t),v=ot.makeSpan(["root"],[f]);return ot.makeSpan(["mord","sqrt"],[v,p],t)}return ot.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new Et.MathNode("mroot",[Ut(r,t),Ut(a,t)]):new Et.MathNode("msqrt",[Ut(r,t)])}});var za={display:L.DISPLAY,text:L.TEXT,script:L.SCRIPT,scriptscript:L.SCRIPTSCRIPT};gt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,i=n.parseExpression(!0,r),o=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:o,body:i}},htmlBuilder(e,t){var r=za[e.style],a=t.havingStyle(r).withFont("");return Sa(e.body,a,t)},mathmlBuilder(e,t){var r=za[e.style],a=t.havingStyle(r),n=Ft(e.body,a),i=new Et.MathNode("mstyle",n),o={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",o[0]),i.setAttribute("displaystyle",o[1]),i}});ft({type:"supsub",htmlBuilder(e,t){var r=function(e,t){var r=e.base;return r?"op"===r.type?r.limits&&(t.style.size===L.DISPLAY.size||r.alwaysHandleSupSub)?ba:null:"operatorname"===r.type?r.alwaysHandleSupSub&&(t.style.size===L.DISPLAY.size||r.limits)?ka:null:"accent"===r.type?z.isCharacterBox(r.base)?tr:null:"horizBrace"===r.type&&!e.sub===r.isOver?ua:null:null}(e,t);if(r)return r(e,t);var a,n,i,{base:o,sup:s,sub:l}=e,h=Nt(o,t),m=t.fontMetrics(),c=0,p=0,u=o&&z.isCharacterBox(o);if(s){var d=t.havingStyle(t.style.sup());a=Nt(s,d,t),u||(c=h.height-d.fontMetrics().supDrop*d.sizeMultiplier/t.sizeMultiplier)}if(l){var g=t.havingStyle(t.style.sub());n=Nt(l,g,t),u||(p=h.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===L.DISPLAY?m.sup1:t.style.cramped?m.sup3:m.sup2;var f,v=t.sizeMultiplier,b=re(.5/m.ptPerEm/v),y=null;if(n){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(h instanceof pe||x)&&(y=re(-h.italic))}if(a&&n){c=Math.max(c,i,a.depth+.25*m.xHeight),p=Math.max(p,m.sub2);var w=4*m.defaultRuleThickness;if(c-a.depth-(n.height-p)0&&(c+=k,p-=k)}var S=[{type:"elem",elem:n,shift:p,marginRight:b,marginLeft:y},{type:"elem",elem:a,shift:-c,marginRight:b}];f=ot.makeVList({positionType:"individualShift",children:S},t)}else if(n){p=Math.max(p,m.sub1,n.height-.8*m.xHeight);var M=[{type:"elem",elem:n,marginLeft:y,marginRight:b}];f=ot.makeVList({positionType:"shift",positionData:p,children:M},t)}else{if(!a)throw new Error("supsub must have either sup or sub.");c=Math.max(c,i,a.depth+.25*m.xHeight),f=ot.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:a,marginRight:b}]},t)}var A=Bt(h,"right")||"mord";return ot.makeSpan([A],[h,ot.makeSpan(["msupsub"],[f])],t)},mathmlBuilder(e,t){var r,a=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,r=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var n,i=[Ut(e.base,t)];if(e.sub&&i.push(Ut(e.sub,t)),e.sup&&i.push(Ut(e.sup,t)),a)n=r?"mover":"munder";else if(e.sub)if(e.sup){var o=e.base;n=o&&"op"===o.type&&o.limits&&t.style===L.DISPLAY||o&&"operatorname"===o.type&&o.alwaysHandleSupSub&&(t.style===L.DISPLAY||o.limits)?"munderover":"msubsup"}else{var s=e.base;n=s&&"op"===s.type&&s.limits&&(t.style===L.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===L.DISPLAY)?"munder":"msub"}else{var l=e.base;n=l&&"op"===l.type&&l.limits&&(t.style===L.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===L.DISPLAY)?"mover":"msup"}return new Et.MathNode(n,i)}}),ft({type:"atom",htmlBuilder:(e,t)=>ot.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var r=new Et.MathNode("mo",[Lt(e.text,e.mode)]);if("bin"===e.family){var a=Vt(e,t);"bold-italic"===a&&r.setAttribute("mathvariant",a)}else"punct"===e.family?r.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||r.setAttribute("stretchy","false");return r}});var Aa={mi:"italic",mn:"normal",mtext:"normal"};ft({type:"mathord",htmlBuilder:(e,t)=>ot.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var r=new Et.MathNode("mi",[Lt(e.text,e.mode,t)]),a=Vt(e,t)||"italic";return a!==Aa[r.type]&&r.setAttribute("mathvariant",a),r}}),ft({type:"textord",htmlBuilder:(e,t)=>ot.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var r,a=Lt(e.text,e.mode,t),n=Vt(e,t)||"normal";return r="text"===e.mode?new Et.MathNode("mtext",[a]):/[0-9]/.test(e.text)?new Et.MathNode("mn",[a]):"\\prime"===e.text?new Et.MathNode("mo",[a]):new Et.MathNode("mi",[a]),n!==Aa[r.type]&&r.setAttribute("mathvariant",n),r}});var Ta={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ba={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ft({type:"spacing",htmlBuilder(e,t){if(Ba.hasOwnProperty(e.text)){var r=Ba[e.text].className||"";if("text"===e.mode){var a=ot.makeOrd(e,t,"textord");return a.classes.push(r),a}return ot.makeSpan(["mspace",r],[ot.mathsym(e.text,e.mode,t)],t)}if(Ta.hasOwnProperty(e.text))return ot.makeSpan(["mspace",Ta[e.text]],[],t);throw new x('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){if(!Ba.hasOwnProperty(e.text)){if(Ta.hasOwnProperty(e.text))return new Et.MathNode("mspace");throw new x('Unknown type of space "'+e.text+'"')}return new Et.MathNode("mtext",[new Et.TextNode(" ")])}});var Ca=()=>{var e=new Et.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ft({type:"tag",mathmlBuilder(e,t){var r=new Et.MathNode("mtable",[new Et.MathNode("mtr",[Ca(),new Et.MathNode("mtd",[Gt(e.body,t)]),Ca(),new Et.MathNode("mtd",[Gt(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Na={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qa={"\\textbf":"textbf","\\textmd":"textmd"},Ia={"\\textit":"textit","\\textup":"textup"},Ra=(e,t)=>{var r=e.font;return r?Na[r]?t.withTextFontFamily(Na[r]):qa[r]?t.withTextFontWeight(qa[r]):"\\emph"===r?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(Ia[r]):t};gt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"text",mode:r.mode,body:bt(n),font:a}},htmlBuilder(e,t){var r=Ra(e,t),a=Mt(e.body,r,!0);return ot.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Ra(e,t);return Gt(e.body,r)}}),gt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Nt(e.body,t),a=ot.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=ot.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]},t);return ot.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new Et.MathNode("mo",[new Et.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new Et.MathNode("munder",[Ut(e.body,t),r]);return a.setAttribute("accentunder","true"),a}}),gt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Nt(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return ot.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]},t)},mathmlBuilder:(e,t)=>new Et.MathNode("mpadded",[Ut(e.body,t)],["vcenter"])}),gt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new x("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ha(e),a=[],n=t.havingStyle(t.style.text()),i=0;ie.body.replace(/ /g,e.star?"␣":" "),Oa=pt,Ea=new RegExp("[̀-ͯ]+$");class La{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new y("EOF",new b(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new x("Unexpected character: '"+e[t]+"'",new y(e[t],new b(this,t,t+1)));var a=r[6]||r[3]||(r[2]?"\\ ":" ");if(14===this.catcodes[a]){var n=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===n?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=n+1,this.lex()}return new y(a,new b(this,t,this.tokenRegex.lastIndex))}}class Da{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new x("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(void 0===r&&(r=!1),r){for(var a=0;a0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var n=this.undefStack[this.undefStack.length-1];n&&!n.hasOwnProperty(e)&&(n[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}var Va=Wr;jr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),jr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),jr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),jr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),jr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return 1===t[0].length&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),jr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),jr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Pa={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};jr("\\char",(function(e){var t,r=e.popToken(),a="";if("'"===r.text)t=8,r=e.popToken();else if('"'===r.text)t=16,r=e.popToken();else if("`"===r.text)if("\\"===(r=e.popToken()).text[0])a=r.text.charCodeAt(1);else{if("EOF"===r.text)throw new x("\\char` missing argument");a=r.text.charCodeAt(0)}else t=10;if(t){if(null==(a=Pa[r.text])||a>=t)throw new x("Invalid base-"+t+" digit "+r.text);for(var n;null!=(n=Pa[e.future().text])&&n{var n=e.consumeArg().tokens;if(1!==n.length)throw new x("\\newcommand's first argument must be a macro name");var i=n[0].text,o=e.isDefined(i);if(o&&!t)throw new x("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!o&&!r)throw new x("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(n=e.consumeArg().tokens).length&&"["===n[0].text){for(var l="",h=e.expandNextToken();"]"!==h.text&&"EOF"!==h.text;)l+=h.text,h=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new x("Invalid number of arguments: "+l);s=parseInt(l),n=e.consumeArg().tokens}return o&&a||e.macros.set(i,{tokens:n,numArgs:s}),""};jr("\\newcommand",(e=>Fa(e,!1,!0,!1))),jr("\\renewcommand",(e=>Fa(e,!0,!1,!1))),jr("\\providecommand",(e=>Fa(e,!0,!0,!0))),jr("\\message",(e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((e=>e.text)).join("")),""})),jr("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((e=>e.text)).join("")),""})),jr("\\show",(e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Oa[r],ye.math[r],ye.text[r]),""})),jr("\\bgroup","{"),jr("\\egroup","}"),jr("~","\\nobreakspace"),jr("\\lq","`"),jr("\\rq","'"),jr("\\aa","\\r a"),jr("\\AA","\\r A"),jr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),jr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),jr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),jr("ℬ","\\mathscr{B}"),jr("ℰ","\\mathscr{E}"),jr("ℱ","\\mathscr{F}"),jr("ℋ","\\mathscr{H}"),jr("ℐ","\\mathscr{I}"),jr("ℒ","\\mathscr{L}"),jr("ℳ","\\mathscr{M}"),jr("ℛ","\\mathscr{R}"),jr("ℭ","\\mathfrak{C}"),jr("ℌ","\\mathfrak{H}"),jr("ℨ","\\mathfrak{Z}"),jr("\\Bbbk","\\Bbb{k}"),jr("·","\\cdotp"),jr("\\llap","\\mathllap{\\textrm{#1}}"),jr("\\rlap","\\mathrlap{\\textrm{#1}}"),jr("\\clap","\\mathclap{\\textrm{#1}}"),jr("\\mathstrut","\\vphantom{(}"),jr("\\underbar","\\underline{\\text{#1}}"),jr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),jr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),jr("\\ne","\\neq"),jr("≠","\\neq"),jr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),jr("∉","\\notin"),jr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),jr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),jr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),jr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),jr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),jr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),jr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),jr("⟂","\\perp"),jr("‼","\\mathclose{!\\mkern-0.8mu!}"),jr("∌","\\notni"),jr("⌜","\\ulcorner"),jr("⌝","\\urcorner"),jr("⌞","\\llcorner"),jr("⌟","\\lrcorner"),jr("©","\\copyright"),jr("®","\\textregistered"),jr("️","\\textregistered"),jr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),jr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),jr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),jr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),jr("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),jr("⋮","\\vdots"),jr("\\varGamma","\\mathit{\\Gamma}"),jr("\\varDelta","\\mathit{\\Delta}"),jr("\\varTheta","\\mathit{\\Theta}"),jr("\\varLambda","\\mathit{\\Lambda}"),jr("\\varXi","\\mathit{\\Xi}"),jr("\\varPi","\\mathit{\\Pi}"),jr("\\varSigma","\\mathit{\\Sigma}"),jr("\\varUpsilon","\\mathit{\\Upsilon}"),jr("\\varPhi","\\mathit{\\Phi}"),jr("\\varPsi","\\mathit{\\Psi}"),jr("\\varOmega","\\mathit{\\Omega}"),jr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),jr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),jr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),jr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),jr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),jr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),jr("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),jr("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Ga={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};jr("\\dots",(function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Ga?t=Ga[r]:("\\not"===r.slice(0,4)||r in ye.math&&z.contains(["bin","rel"],ye.math[r].group))&&(t="\\dotsb"),t}));var Ua={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};jr("\\dotso",(function(e){return e.future().text in Ua?"\\ldots\\,":"\\ldots"})),jr("\\dotsc",(function(e){var t=e.future().text;return t in Ua&&","!==t?"\\ldots\\,":"\\ldots"})),jr("\\cdots",(function(e){return e.future().text in Ua?"\\@cdots\\,":"\\@cdots"})),jr("\\dotsb","\\cdots"),jr("\\dotsm","\\cdots"),jr("\\dotsi","\\!\\cdots"),jr("\\dotsx","\\ldots\\,"),jr("\\DOTSI","\\relax"),jr("\\DOTSB","\\relax"),jr("\\DOTSX","\\relax"),jr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),jr("\\,","\\tmspace+{3mu}{.1667em}"),jr("\\thinspace","\\,"),jr("\\>","\\mskip{4mu}"),jr("\\:","\\tmspace+{4mu}{.2222em}"),jr("\\medspace","\\:"),jr("\\;","\\tmspace+{5mu}{.2777em}"),jr("\\thickspace","\\;"),jr("\\!","\\tmspace-{3mu}{.1667em}"),jr("\\negthinspace","\\!"),jr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),jr("\\negthickspace","\\tmspace-{5mu}{.277em}"),jr("\\enspace","\\kern.5em "),jr("\\enskip","\\hskip.5em\\relax"),jr("\\quad","\\hskip1em\\relax"),jr("\\qquad","\\hskip2em\\relax"),jr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),jr("\\tag@paren","\\tag@literal{({#1})}"),jr("\\tag@literal",(e=>{if(e.macros.get("\\df@tag"))throw new x("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),jr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),jr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),jr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),jr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),jr("\\newline","\\\\\\relax"),jr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var _a=re(U["Main-Regular"]["T".charCodeAt(0)][1]-.7*U["Main-Regular"]["A".charCodeAt(0)][1]);jr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+_a+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),jr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+_a+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),jr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),jr("\\@hspace","\\hskip #1\\relax"),jr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),jr("\\ordinarycolon",":"),jr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),jr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),jr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),jr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),jr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),jr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),jr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),jr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),jr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),jr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),jr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),jr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),jr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),jr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),jr("∷","\\dblcolon"),jr("∹","\\eqcolon"),jr("≔","\\coloneqq"),jr("≕","\\eqqcolon"),jr("⩴","\\Coloneqq"),jr("\\ratio","\\vcentcolon"),jr("\\coloncolon","\\dblcolon"),jr("\\colonequals","\\coloneqq"),jr("\\coloncolonequals","\\Coloneqq"),jr("\\equalscolon","\\eqqcolon"),jr("\\equalscoloncolon","\\Eqqcolon"),jr("\\colonminus","\\coloneq"),jr("\\coloncolonminus","\\Coloneq"),jr("\\minuscolon","\\eqcolon"),jr("\\minuscoloncolon","\\Eqcolon"),jr("\\coloncolonapprox","\\Colonapprox"),jr("\\coloncolonsim","\\Colonsim"),jr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),jr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),jr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),jr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),jr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),jr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),jr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),jr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),jr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),jr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),jr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),jr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),jr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),jr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),jr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),jr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),jr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),jr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),jr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),jr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),jr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),jr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),jr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),jr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),jr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),jr("\\imath","\\html@mathml{\\@imath}{ı}"),jr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),jr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),jr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),jr("⟦","\\llbracket"),jr("⟧","\\rrbracket"),jr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),jr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),jr("⦃","\\lBrace"),jr("⦄","\\rBrace"),jr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),jr("⦵","\\minuso"),jr("\\darr","\\downarrow"),jr("\\dArr","\\Downarrow"),jr("\\Darr","\\Downarrow"),jr("\\lang","\\langle"),jr("\\rang","\\rangle"),jr("\\uarr","\\uparrow"),jr("\\uArr","\\Uparrow"),jr("\\Uarr","\\Uparrow"),jr("\\N","\\mathbb{N}"),jr("\\R","\\mathbb{R}"),jr("\\Z","\\mathbb{Z}"),jr("\\alef","\\aleph"),jr("\\alefsym","\\aleph"),jr("\\Alpha","\\mathrm{A}"),jr("\\Beta","\\mathrm{B}"),jr("\\bull","\\bullet"),jr("\\Chi","\\mathrm{X}"),jr("\\clubs","\\clubsuit"),jr("\\cnums","\\mathbb{C}"),jr("\\Complex","\\mathbb{C}"),jr("\\Dagger","\\ddagger"),jr("\\diamonds","\\diamondsuit"),jr("\\empty","\\emptyset"),jr("\\Epsilon","\\mathrm{E}"),jr("\\Eta","\\mathrm{H}"),jr("\\exist","\\exists"),jr("\\harr","\\leftrightarrow"),jr("\\hArr","\\Leftrightarrow"),jr("\\Harr","\\Leftrightarrow"),jr("\\hearts","\\heartsuit"),jr("\\image","\\Im"),jr("\\infin","\\infty"),jr("\\Iota","\\mathrm{I}"),jr("\\isin","\\in"),jr("\\Kappa","\\mathrm{K}"),jr("\\larr","\\leftarrow"),jr("\\lArr","\\Leftarrow"),jr("\\Larr","\\Leftarrow"),jr("\\lrarr","\\leftrightarrow"),jr("\\lrArr","\\Leftrightarrow"),jr("\\Lrarr","\\Leftrightarrow"),jr("\\Mu","\\mathrm{M}"),jr("\\natnums","\\mathbb{N}"),jr("\\Nu","\\mathrm{N}"),jr("\\Omicron","\\mathrm{O}"),jr("\\plusmn","\\pm"),jr("\\rarr","\\rightarrow"),jr("\\rArr","\\Rightarrow"),jr("\\Rarr","\\Rightarrow"),jr("\\real","\\Re"),jr("\\reals","\\mathbb{R}"),jr("\\Reals","\\mathbb{R}"),jr("\\Rho","\\mathrm{P}"),jr("\\sdot","\\cdot"),jr("\\sect","\\S"),jr("\\spades","\\spadesuit"),jr("\\sub","\\subset"),jr("\\sube","\\subseteq"),jr("\\supe","\\supseteq"),jr("\\Tau","\\mathrm{T}"),jr("\\thetasym","\\vartheta"),jr("\\weierp","\\wp"),jr("\\Zeta","\\mathrm{Z}"),jr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),jr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),jr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),jr("\\bra","\\mathinner{\\langle{#1}|}"),jr("\\ket","\\mathinner{|{#1}\\rangle}"),jr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),jr("\\Bra","\\left\\langle#1\\right|"),jr("\\Ket","\\left|#1\\right\\rangle");var Ya=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{e&&(r.macros.set("|",o),n.length&&r.macros.set("\\|",s));var i=t;!t&&n.length&&("|"===r.future().text&&(r.popToken(),i=!0));return{tokens:i?n:a,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var h=t.consumeArg().tokens,m=t.expandTokens([...i,...h,...r]);return t.macros.endGroup(),{tokens:m.reverse(),numArgs:0}};jr("\\bra@ket",Ya(!1)),jr("\\bra@set",Ya(!0)),jr("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),jr("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),jr("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),jr("\\angln","{\\angl n}"),jr("\\blue","\\textcolor{##6495ed}{#1}"),jr("\\orange","\\textcolor{##ffa500}{#1}"),jr("\\pink","\\textcolor{##ff00af}{#1}"),jr("\\red","\\textcolor{##df0030}{#1}"),jr("\\green","\\textcolor{##28ae7b}{#1}"),jr("\\gray","\\textcolor{gray}{#1}"),jr("\\purple","\\textcolor{##9d38bd}{#1}"),jr("\\blueA","\\textcolor{##ccfaff}{#1}"),jr("\\blueB","\\textcolor{##80f6ff}{#1}"),jr("\\blueC","\\textcolor{##63d9ea}{#1}"),jr("\\blueD","\\textcolor{##11accd}{#1}"),jr("\\blueE","\\textcolor{##0c7f99}{#1}"),jr("\\tealA","\\textcolor{##94fff5}{#1}"),jr("\\tealB","\\textcolor{##26edd5}{#1}"),jr("\\tealC","\\textcolor{##01d1c1}{#1}"),jr("\\tealD","\\textcolor{##01a995}{#1}"),jr("\\tealE","\\textcolor{##208170}{#1}"),jr("\\greenA","\\textcolor{##b6ffb0}{#1}"),jr("\\greenB","\\textcolor{##8af281}{#1}"),jr("\\greenC","\\textcolor{##74cf70}{#1}"),jr("\\greenD","\\textcolor{##1fab54}{#1}"),jr("\\greenE","\\textcolor{##0d923f}{#1}"),jr("\\goldA","\\textcolor{##ffd0a9}{#1}"),jr("\\goldB","\\textcolor{##ffbb71}{#1}"),jr("\\goldC","\\textcolor{##ff9c39}{#1}"),jr("\\goldD","\\textcolor{##e07d10}{#1}"),jr("\\goldE","\\textcolor{##a75a05}{#1}"),jr("\\redA","\\textcolor{##fca9a9}{#1}"),jr("\\redB","\\textcolor{##ff8482}{#1}"),jr("\\redC","\\textcolor{##f9685d}{#1}"),jr("\\redD","\\textcolor{##e84d39}{#1}"),jr("\\redE","\\textcolor{##bc2612}{#1}"),jr("\\maroonA","\\textcolor{##ffbde0}{#1}"),jr("\\maroonB","\\textcolor{##ff92c6}{#1}"),jr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),jr("\\maroonD","\\textcolor{##ca337c}{#1}"),jr("\\maroonE","\\textcolor{##9e034e}{#1}"),jr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),jr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),jr("\\purpleC","\\textcolor{##aa87ff}{#1}"),jr("\\purpleD","\\textcolor{##7854ab}{#1}"),jr("\\purpleE","\\textcolor{##543b78}{#1}"),jr("\\mintA","\\textcolor{##f5f9e8}{#1}"),jr("\\mintB","\\textcolor{##edf2df}{#1}"),jr("\\mintC","\\textcolor{##e0e5cc}{#1}"),jr("\\grayA","\\textcolor{##f6f7f7}{#1}"),jr("\\grayB","\\textcolor{##f0f1f2}{#1}"),jr("\\grayC","\\textcolor{##e3e5e6}{#1}"),jr("\\grayD","\\textcolor{##d6d8da}{#1}"),jr("\\grayE","\\textcolor{##babec2}{#1}"),jr("\\grayF","\\textcolor{##888d93}{#1}"),jr("\\grayG","\\textcolor{##626569}{#1}"),jr("\\grayH","\\textcolor{##3b3e40}{#1}"),jr("\\grayI","\\textcolor{##21242c}{#1}"),jr("\\kaBlue","\\textcolor{##314453}{#1}"),jr("\\kaGreen","\\textcolor{##71B307}{#1}");var Xa={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Wa{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new Da(Va,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new La(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,a;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),({tokens:a,end:r}=this.consumeArg(["]"]))}else({tokens:a,start:t,end:r}=this.consumeArg());return this.pushToken(new y("EOF",r.loc)),this.pushTokens(a),t.range(r,"")}consumeSpaces(){for(;;){if(" "!==this.future().text)break;this.stack.pop()}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var a,n=this.future(),i=0,o=0;do{if(a=this.popToken(),t.push(a),"{"===a.text)++i;else if("}"===a.text){if(-1===--i)throw new x("Extra }",a)}else if("EOF"===a.text)throw new x("Unexpected end of input in a macro argument, expected '"+(e&&r?e[o]:"}")+"'",a);if(e&&r)if((0===i||1===i&&"{"===e[o])&&a.text===e[o]){if(++o===e.length){t.splice(-o,o);break}}else o=0}while(0!==i||r);return"{"===n.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:a}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new x("The length of delimiters doesn't match the number of args!");for(var r=t[0],a=0;athis.settings.maxExpand)throw new x("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,a=t.noexpand?null:this._getExpansion(r);if(null==a||e&&a.unexpandable){if(e&&null==a&&"\\"===r[0]&&!this.isDefined(r))throw new x("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);var n=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs)for(var o=(n=n.slice()).length-1;o>=0;--o){var s=n[o];if("#"===s.text){if(0===o)throw new x("Incomplete placeholder at end of macro body",s);if("#"===(s=n[--o]).text)n.splice(o+1,1);else{if(!/^[1-9]$/.test(s.text))throw new x("Not a valid argument number",s);n.splice(o,2,...i[+s.text-1])}}}return this.pushTokens(n),n.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new y(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),t.push(a)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t?t.map((e=>e.text)).join(""):t}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var r=this.lexer.catcodes[e];if(null!=r&&13!==r)return}var a="function"==typeof t?t(this):t;if("string"==typeof a){var n=0;if(-1!==a.indexOf("#"))for(var i=a.replace(/##/g,"");-1!==i.indexOf("#"+(n+1));)++n;for(var o=new La(a,this.settings),s=[],l=o.lex();"EOF"!==l.text;)s.push(l),l=o.lex();return s.reverse(),{tokens:s,numArgs:n}}return a}isDefined(e){return this.macros.has(e)||Oa.hasOwnProperty(e)||ye.math.hasOwnProperty(e)||ye.text.hasOwnProperty(e)||Xa.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Oa.hasOwnProperty(e)&&!Oa[e].primitive}}var ja=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,$a=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Za={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ka={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Ja{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Wa(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new x("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new y("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==Ja.endOfExpression.indexOf(a.text))break;if(t&&a.text===t)break;if(e&&Oa[a.text]&&Oa[a.text].infix)break;var n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t,r=-1,a=0;a=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=ye[this.mode][t].group,l=b.range(e);if(ve.hasOwnProperty(s)){var h=s;o={type:"atom",mode:this.mode,family:h,loc:l,text:t}}else o={type:s,mode:this.mode,loc:l,text:t};n=o}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(P(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),n={type:"textord",mode:"text",loc:b.range(e),text:t}}if(this.consume(),i)for(var m=0;m{k.value=!0},M=()=>{k.value=!1};return r((()=>{(async()=>{const e=await p();y.value=e.data})()})),(e,t)=>{const r=a("el-text"),p=a("el-dialog"),z=a("CloseBold"),A=a("el-icon");return n(),i(s,null,[o("div",nn,[(n(!0),i(s,null,l(y.value,((e,t)=>(n(),u(r,{key:t,class:"news-item",onClick:t=>(async e=>{const t=await f({token:localStorage.getItem("localToken"),id:e.id});console.log(t),w.value=e,w.value.description=v(w.value.description),w.value.description=w.value.description.replace(/\$\$(.*?)\$\$/g,((e,t)=>{try{return an.renderToString(t,{throwOnError:!1})}catch(r){return console.error("KaTeX 渲染错误:",r),e}})),x.value=!0})(e)},{default:m((()=>[d(g(e.title),1)])),_:2},1032,["onClick"])))),128)),h(r,{class:"daily-item"},{default:m((()=>[t[2]||(t[2]=o("span",null,"【",-1)),o("span",{class:"purple-text",onClick:S},"每日复盘"),t[3]||(t[3]=o("span",null,"】 即将上线,",-1)),t[4]||(t[4]=o("br",null,null,-1)),t[5]||(t[5]=o("span",null,"敬请期待!",-1))])),_:1})]),c(" 新闻弹窗 "),h(p,{modelValue:x.value,"onUpdate:modelValue":t[0]||(t[0]=e=>x.value=e),title:w.value.title,width:"80%",class:"newsDialog"},{default:m((()=>[c(' 加载失败 '),o("div",{innerHTML:w.value.description},null,8,on)])),_:1},8,["modelValue","title"]),c(" 每日复盘样本弹窗 "),h(p,{modelValue:k.value,"onUpdate:modelValue":t[1]||(t[1]=e=>k.value=e),fullscreen:"","show-close":!1,width:"80%",class:"dailyReplayClass"},{default:m((()=>[o("div",sn,[h(A,{style:{color:"white","font-size":"50px","margin-left":"auto"},onClick:M},{default:m((()=>[h(z)])),_:1})]),t[6]||(t[6]=o("div",{class:"title"},"每日复盘",-1)),o("div",ln,[(n(),i(s,null,l(b,(e=>o("div",{key:e,class:"dailyReplayItem"},[o("img",{src:e.img,alt:"加载失败"},null,8,hn)]))),64))])])),_:1},8,["modelValue"])],64)}}},[["__scopeId","data-v-67b3f00a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/AIfind.vue"]]),cn=Object.freeze(Object.defineProperty({__proto__:null,default:mn},Symbol.toStringTag,{value:"Module"}));export{mn as A,cn as a,an as k}; diff --git a/dev/static/js/AiEmotion-173e5d31.js b/dev/static/js/AiEmotion-99036b55.js similarity index 99% rename from dev/static/js/AiEmotion-173e5d31.js rename to dev/static/js/AiEmotion-99036b55.js index cbc4b18..99aca5a 100644 --- a/dev/static/js/AiEmotion-173e5d31.js +++ b/dev/static/js/AiEmotion-99036b55.js @@ -1,4 +1,4 @@ -import{l as e,g as t,a6 as o,_ as n,k as a,r as i,w as r,E as s,n as l,y as u,a7 as c,o as d,z as v,b as p,c as _,d as m,e as f,B as g,F as h,A as y,C as w,D as k,f as A,H as x}from"./index-4cb6f38c.js";import{h as b}from"./moment-6961f857.js";import{e as S,E as T,a as I}from"./emoEnergyConverter-30c0a2be.js";import{m as D}from"./marketTemperature-7871708f.js";import{u as P}from"./chat-5d3bc291.js";import{m as L}from"./marked.esm-cf4f21f5.js";import{u as E}from"./userPessionCode-376974ca.js";var O,C="/aixiaocaishen/static/images/思考-36f0ab2d.gif",M="/aixiaocaishen/static/images/解析-09c80e32.gif",H="/aixiaocaishen/static/images/生成-34d79152.gif",R={}; +import{l as e,g as t,a6 as o,_ as n,k as a,r as i,w as r,E as s,n as l,y as u,a7 as c,o as d,z as v,b as p,c as _,d as m,e as f,B as g,F as h,A as y,C as w,D as k,f as A,H as x}from"./index-7d881374.js";import{h as b}from"./moment-6961f857.js";import{e as S,E as T,a as I}from"./emoEnergyConverter-7a8b83fd.js";import{m as D}from"./marketTemperature-3afd7f01.js";import{u as P}from"./chat-52f319e2.js";import{m as L}from"./marked.esm-cf4f21f5.js";import{u as E}from"./userPessionCode-33b4794f.js";var O,C="/aixiaocaishen/static/images/思考-36f0ab2d.gif",M="/aixiaocaishen/static/images/解析-09c80e32.gif",H="/aixiaocaishen/static/images/生成-34d79152.gif",R={}; /*! * howler.js v2.2.4 * howlerjs.com diff --git a/dev/static/js/Announcement-911e0476.js b/dev/static/js/Announcement-911e0476.js new file mode 100644 index 0000000..ce71a0a --- /dev/null +++ b/dev/static/js/Announcement-911e0476.js @@ -0,0 +1 @@ +import{_ as e,r as a,o as s,b as n,c as o,e as t,f as c,d as l,F as r,A as m,a2 as d,a3 as i,a4 as u,J as p,C as v}from"./index-7d881374.js";import{b as k}from"./back-9e899973.js";import{u as g}from"./dataList-3b7c4b7e.js";import{u as f}from"./chat-52f319e2.js";import"./userPessionCode-33b4794f.js";import"./index-bce0856e.js";const I=["src"],b={class:"main-wrapper"},y={key:0,class:"video-container"},A=["poster","src"],h={class:"announcement"},_={class:"announcementItem"},j={key:0,class:"codeItem"},w=["onClick"];var C=e({__name:"Announcement",setup(e){const C=g(),x=f(),F=a({usa:"美股",cn:"A股",hk:"港股",sg:"新加坡股",my:"马股",th:"泰股",vi:"越南股",can:"加拿大股"}),M=a([{market:"美股",code:[]},{market:"A股",code:[]},{market:"港股",code:[]},{market:"新加坡股",code:[]},{market:"马股",code:[]},{market:"泰股",code:[]},{market:"越南股",code:[]},{market:"加拿大股",code:[]}]),P=a({}),S=a(!1),D=()=>{console.log("视频开始播放")},J=()=>{C.isFeedback=!1};return s((()=>{(async()=>{const e=await i();e.data&&e.data.length>0?(P.value.url=e.data[0].url,P.value.img=e.data[0].img,S.value=!0,await u({token:localStorage.getItem("localToken"),id:e.data[0].id})):S.value=!1})(),(async()=>{const e=await d();for(let a=0;ae.market==n));t?t.code=o:console.log("未找到对应的市场")}})()})),(e,a)=>(n(),o(r,null,[t("div",null,[t("div",null,[t("img",{src:c(k),alt:"返回按钮",class:"backImg",onClick:J},null,8,I)])]),t("div",b,[S.value?(n(),o("div",y,[t("video",{ref:"videoPlayer",poster:P.value.img,src:P.value.url,controls:"",class:"video-player",onPlay:D}," Your browser does not support the video tag. ",40,A)])):l("v-if",!0),l(" 一段文字,水平居中,宽度为500px "),t("div",h,[a[0]||(a[0]=t("p",{class:"announcementItem"},"各位AI小财神的用户,大家好!",-1)),a[1]||(a[1]=t("p",{class:"announcementItem"}," 试运行期间,用户可在AI小财神中查看全市场数据,每个市场可查看一定数量的股票. ",-1)),a[2]||(a[2]=t("p",{class:"announcementItem"},"以下为各个市场可以查看的股票:",-1)),l('

历软件云版静态市场一致!

\r\n

特此公告!

'),(n(!0),o(r,null,m(M.value,((e,a)=>(n(),o("div",{key:a,class:"announcementItem"},[t("div",_,[p(v(e.market)+": ",1),(n(!0),o(r,null,m(e.code,((e,a)=>(n(),o("span",{class:"codeItem",key:a},[0!=a?(n(),o("span",j," 、 ")):l("v-if",!0),t("span",{onClick:a=>(e=>{console.log(e),x.announcementMsg=e,console.log("chatStore.announcementMsg",x.announcementMsg),C.isFeedback=!1})(e),class:"code"},v(e),9,w)])))),128))])])))),128))])])],64))}},[["__scopeId","data-v-af5f79fe"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Announcement.vue"]]);export{C as default}; diff --git a/dev/static/js/Announcement-ff8a720a.js b/dev/static/js/Announcement-ff8a720a.js deleted file mode 100644 index 9b18140..0000000 --- a/dev/static/js/Announcement-ff8a720a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as a,r as e,o as s,b as n,c as o,e as t,f as c,d as l,F as r,A as m,a2 as d,a3 as i,a4 as u,J as p,C as v}from"./index-4cb6f38c.js";import{b as k}from"./back-9e899973.js";import{u as g}from"./dataList-1bd1da28.js";import{u as f}from"./chat-5d3bc291.js";import"./userPessionCode-376974ca.js";import"./index-5d1237a4.js";const I=["src"],b={class:"main-wrapper"},y={key:0,class:"video-container"},A=["poster","src"],h={class:"announcement"},_={class:"announcementItem"},j={key:0,class:"codeItem"},w=["onClick"];var C=a({__name:"Announcement",setup(a){const C=g(),x=f(),F=e({usa:"美股",cn:"A股",hk:"港股",sg:"新加坡股",my:"马股",th:"泰股",vi:"越南股",can:"加拿大股"}),M=e([{market:"美股",code:[]},{market:"A股",code:[]},{market:"港股",code:[]},{market:"新加坡股",code:[]},{market:"马股",code:[]},{market:"泰股",code:[]},{market:"越南股",code:[]},{market:"加拿大股",code:[]}]),P=e({}),S=e(!1),D=()=>{console.log("视频开始播放")},J=()=>{C.isFeedback=!1};return s((()=>{(async()=>{const a=await i();a.data&&a.data.length>0?(P.value.url=a.data[0].url,P.value.img=a.data[0].img,S.value=!0,await u({token:localStorage.getItem("localToken"),id:a.data[0].id})):S.value=!1})(),(async()=>{const a=await d();for(let e=0;ea.market==n));t?t.code=o:console.log("未找到对应的市场")}})()})),(a,e)=>(n(),o(r,null,[t("div",null,[t("div",null,[t("img",{src:c(k),alt:"返回按钮",class:"backImg",onClick:J},null,8,I)])]),t("div",b,[S.value?(n(),o("div",y,[t("video",{ref:"videoPlayer",poster:P.value.img,src:P.value.url,controls:"",class:"video-player",onPlay:D}," Your browser does not support the video tag. ",40,A)])):l("v-if",!0),l(" 一段文字,水平居中,宽度为500px "),t("div",h,[e[0]||(e[0]=t("p",{class:"announcementItem"},"各位AI小财神的用户,大家好!",-1)),e[1]||(e[1]=t("p",{class:"announcementItem"}," 试运行期间,用户可在AI小财神中查看全市场数据,每个市场可查看一定数量的股票. ",-1)),e[2]||(e[2]=t("p",{class:"announcementItem"},"以下为各个市场可以查看的股票:",-1)),l('

历软件云版静态市场一致!

\r\n

特此公告!

'),(n(!0),o(r,null,m(M.value,((a,e)=>(n(),o("div",{key:e,class:"announcementItem"},[t("div",_,[p(v(a.market)+": ",1),(n(!0),o(r,null,m(a.code,((a,e)=>(n(),o("span",{class:"codeItem",key:e},[0!=e?(n(),o("span",j," 、 ")):l("v-if",!0),t("span",{onClick:e=>(a=>{console.log(a),x.announcementMsg=a,console.log("chatStore.announcementMsg",x.announcementMsg),C.isFeedback=!1})(a),class:"code"},v(a),9,w)])))),128))])])))),128))])])],64))}},[["__scopeId","data-v-af5f79fe"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Announcement.vue"]]);export{C as default}; diff --git a/dev/static/js/BackToHomeButton-8b6e1857.js b/dev/static/js/BackToHomeButton-59f18a35.js similarity index 93% rename from dev/static/js/BackToHomeButton-8b6e1857.js rename to dev/static/js/BackToHomeButton-59f18a35.js index 70a8a7a..60de502 100644 --- a/dev/static/js/BackToHomeButton-8b6e1857.js +++ b/dev/static/js/BackToHomeButton-59f18a35.js @@ -1 +1 @@ -import{_ as e,b as o,c as t,e as n}from"./index-4cb6f38c.js";/* empty css */var a=e({__name:"BackToHomeButton",setup(e){const a=()=>{const e=navigator.userAgent;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))console.log("用户是移动端"),"undefined"!=typeof uni&&uni.postMessage({data:{val:{name:"JWopenView",extra:{data:{type:3}}}}});else{console.log("用户是pc端");const e="development";console.log("当前的环境为:",e),window.parent.location.href="http://121.89.234.155:8807/hljw/homepage?menu=999999991"}};return(e,s)=>(o(),t("div",{class:"backToHomeBtn",onClick:a},s[0]||(s[0]=[n("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"backImg"},null,-1),n("div",{class:"backContent"},"返回首页",-1)])))}},[["__scopeId","data-v-c708cfbc"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/BackToHomeButton.vue"]]);export{a as B}; +import{_ as e,b as o,c as t,e as n}from"./index-7d881374.js";/* empty css */var a=e({__name:"BackToHomeButton",setup(e){const a=()=>{const e=navigator.userAgent;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e))console.log("用户是移动端"),"undefined"!=typeof uni&&uni.postMessage({data:{val:{name:"JWopenView",extra:{data:{type:3}}}}});else{console.log("用户是pc端");const e="development";console.log("当前的环境为:",e),window.parent.location.href="http://121.89.234.155:8807/hljw/homepage?menu=999999991"}};return(e,s)=>(o(),t("div",{class:"backToHomeBtn",onClick:a},s[0]||(s[0]=[n("img",{src:"https://d31zlh4on95l9h.cloudfront.net/images/9cbc5b2eb2327bd04d015c19d8c3f1f9.png",alt:"返回首页",class:"backImg"},null,-1),n("div",{class:"backContent"},"返回首页",-1)])))}},[["__scopeId","data-v-c708cfbc"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/BackToHomeButton.vue"]]);export{a as B}; diff --git a/dev/static/js/DBQBmodel-bbf459fa.js b/dev/static/js/DBQBmodel-ceb87c4b.js similarity index 87% rename from dev/static/js/DBQBmodel-bbf459fa.js rename to dev/static/js/DBQBmodel-ceb87c4b.js index deaec5f..487d5df 100644 --- a/dev/static/js/DBQBmodel-bbf459fa.js +++ b/dev/static/js/DBQBmodel-ceb87c4b.js @@ -1 +1 @@ -import{_ as s,u as e,r as a,k as i,o as t,z as o,G as n,b as c,c as l,e as r,H as d,d as m,f as g,X as u,I as v,J as p,C as b,F as f,a9 as h}from"./index-4cb6f38c.js";import{s as x}from"./setHeight-96dcefe6.js";import{B as _}from"./BackToHomeButton-8b6e1857.js";/* empty css */const I=["src"],P={class:"bottom-icon"},k=["src"],B={class:"content-text"},w=["src"],y=["src"],A=["src"],C={class:"buttons-container"},D=["src"],j={key:0,class:"noPermissionDialog"},S={class:"noPermissionCloseBtn"};var E=s({__name:"DBQBmodel",setup(s){const E=e(),H=a(null),T=a(window.innerWidth),z=i((()=>T.value>1024?"/aixiaocaishen/static/images/电脑背景-b224424a.png":"/aixiaocaishen/static/images/手机背景-966a3db9.png")),O=()=>{T.value=window.innerWidth};t((()=>{x(H.value),window.addEventListener("resize",O)})),o((()=>{window.removeEventListener("resize",O)}));const L=a(!1),M=a({}),Q=async()=>{try{let s={token:localStorage.getItem("localToken"),model:1};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let t={Client:i};const o=await h(t,s);200==o.code?(sessionStorage.setItem("activeTabAI","AIchat"),sessionStorage.setItem("activeIndexAI","0"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),L.value=!0,M.value.msg=o.msg,console.log("noPermissonDialogVisible",L.value),console.log("noPermissonDialogObj",M.value))}catch(s){console.error("获取权限失败",s)}},W=()=>{L.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return c(),l(f,null,[r("div",{ref_key:"pageRef",ref:H,class:"homepage",style:u({backgroundImage:`url(${z.value})`})},[d(_),m("v-if",!0),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-b9db8110.png"),alt:"顶部图标"},null,8,I),m(" 副标题 "),r("div",P,[r("img",{class:"sub-title",src:g("/aixiaocaishen/static/images/-s-构建场景-58defcd8.png"),alt:"构建场景化交易"},null,8,k),m(" 中间文字 "),r("div",B,[r("img",{class:"content-text1",src:g("/aixiaocaishen/static/images/-s-数据可计算-87f3e72f.png"),alt:" 数据可计算"},null,8,w),r("img",{class:"content-text2",src:g("/aixiaocaishen/static/images/-s-场景可预演-fc6530f6.png"),alt:" 场景可预演"},null,8,y),r("img",{class:"content-text3",src:g("/aixiaocaishen/static/images/-s-交易可掌控-ef0d97d2.png"),alt:" 交易可掌控"},null,8,A)]),m(" 底部按钮 "),r("div",C,[r("button",{class:"btn-item",onClick:Q},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"按钮图片"},null,8,D)])])])],4),L.value?(c(),l("div",j,[r("div",{class:"noPermissionContent",onClick:W},[r("div",S,[d(i,{class:"noPermissionIcon"},{default:v((()=>[d(a)])),_:1})]),p(" "+b(M.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-12d5ebd0"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/DBQBmodel.vue"]]);export{E as default}; +import{_ as s,u as e,r as a,k as i,o as t,z as o,G as n,b as c,c as l,e as r,H as d,d as m,f as g,X as u,I as v,J as p,C as f,F as b,a9 as h}from"./index-7d881374.js";import{s as x}from"./setHeight-96dcefe6.js";import{B as _}from"./BackToHomeButton-59f18a35.js";/* empty css */const I=["src"],P={class:"bottom-icon"},k=["src"],B={class:"content-text"},w=["src"],y=["src"],A=["src"],C={class:"buttons-container"},D=["src"],j={key:0,class:"noPermissionDialog"},S={class:"noPermissionCloseBtn"};var E=s({__name:"DBQBmodel",setup(s){const E=e(),H=a(null),T=a(window.innerWidth),z=i((()=>T.value>1024?"/aixiaocaishen/static/images/电脑背景-b224424a.png":"/aixiaocaishen/static/images/手机背景-966a3db9.png")),O=()=>{T.value=window.innerWidth};t((()=>{x(H.value),window.addEventListener("resize",O)})),o((()=>{window.removeEventListener("resize",O)}));const L=a(!1),M=a({}),Q=async()=>{try{let s={token:localStorage.getItem("localToken"),model:1};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let t={Client:i};const o=await h(t,s);200==o.code?(sessionStorage.setItem("activeTabAI","AIchat"),sessionStorage.setItem("activeIndexAI","0"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),L.value=!0,M.value.msg=o.msg,console.log("noPermissonDialogVisible",L.value),console.log("noPermissonDialogObj",M.value))}catch(s){console.error("获取权限失败",s)}},W=()=>{L.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return c(),l(b,null,[r("div",{ref_key:"pageRef",ref:H,class:"homepage",style:u({backgroundImage:`url(${z.value})`})},[d(_),m("v-if",!0),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-b9db8110.png"),alt:"顶部图标"},null,8,I),m(" 副标题 "),r("div",P,[r("img",{class:"sub-title",src:g("/aixiaocaishen/static/images/-s-构建场景-58defcd8.png"),alt:"构建场景化交易"},null,8,k),m(" 中间文字 "),r("div",B,[r("img",{class:"content-text1",src:g("/aixiaocaishen/static/images/-s-数据可计算-87f3e72f.png"),alt:" 数据可计算"},null,8,w),r("img",{class:"content-text2",src:g("/aixiaocaishen/static/images/-s-场景可预演-fc6530f6.png"),alt:" 场景可预演"},null,8,y),r("img",{class:"content-text3",src:g("/aixiaocaishen/static/images/-s-交易可掌控-ef0d97d2.png"),alt:" 交易可掌控"},null,8,A)]),m(" 底部按钮 "),r("div",C,[r("button",{class:"btn-item",onClick:Q},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"按钮图片"},null,8,D)])])])],4),L.value?(c(),l("div",j,[r("div",{class:"noPermissionContent",onClick:W},[r("div",S,[d(i,{class:"noPermissionIcon"},{default:v((()=>[d(a)])),_:1})]),p(" "+f(M.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-12d5ebd0"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/DBQBmodel.vue"]]);export{E as default}; diff --git a/dev/static/js/Emotionsmodel-dece0a53.js b/dev/static/js/Emotionsmodel-9a0283d9.js similarity index 86% rename from dev/static/js/Emotionsmodel-dece0a53.js rename to dev/static/js/Emotionsmodel-9a0283d9.js index 44d23f9..866f66f 100644 --- a/dev/static/js/Emotionsmodel-dece0a53.js +++ b/dev/static/js/Emotionsmodel-9a0283d9.js @@ -1 +1 @@ -import{_ as s,u as e,r as a,k as i,o,z as t,G as n,b as l,c,e as r,H as d,d as m,f as g,I as u,J as v,C as p,F as _,a9 as b}from"./index-4cb6f38c.js";import{s as f}from"./setHeight-96dcefe6.js";import{B as h}from"./BackToHomeButton-8b6e1857.js";/* empty css */const P=["src"],k={class:"bottom-icon"},x={class:"content-container"},I=["src"],w=["src"],y={class:"buttons-container"},A=["src"],B={key:0,class:"noPermissionDialog"},C={class:"noPermissionCloseBtn"};var E=s({__name:"Emotionsmodel",setup(s){const E=e(),j=a(null),S=a(window.innerWidth),D=i((()=>S.value>1024?"/aixiaocaishen/static/images/_s_四维 拷贝-397d6a3c.png":"/aixiaocaishen/static/images/-s-四维-35334e8b.png")),H=()=>{S.value=window.innerWidth};o((()=>{f(j.value),window.addEventListener("resize",H)})),t((()=>{window.removeEventListener("resize",H)}));const T=a(!1),z=a({}),O=async()=>{try{let s={token:localStorage.getItem("localToken"),model:2};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let o={Client:i};const t=await b(o,s);200==t.code?(sessionStorage.setItem("activeTabAI","AiEmotion"),sessionStorage.setItem("activeIndexAI","1"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),T.value=!0,z.value.msg=t.msg,console.log("noPermissonDialogVisible",T.value),console.log("noPermissonDialogObj",z.value))}catch(s){console.error("获取权限失败",s)}},L=()=>{T.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return l(),c(_,null,[r("div",{ref_key:"pageRef",ref:j,class:"homepage"},[d(h),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-92c56762.png"),alt:"顶部图标"},null,8,P),m(" 中间图示及说明 "),r("div",k,[r("div",x,[m(" 副标题 - 只在屏幕宽度小于等于1024px时显示 "),S.value<=1024?(l(),c("img",{key:0,class:"sub-title",src:g("/aixiaocaishen/static/images/-s-标题 拷贝-026d4753.png"),alt:"四维作战体系"},null,8,I)):m("v-if",!0),m(" 内容图 - 根据屏幕宽度动态切换 "),r("img",{class:"content-icon",src:D.value,alt:"四维情绪"},null,8,w)]),m(" 按钮区域 "),r("div",y,[r("button",{class:"btn-item",onClick:O},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"开启财运"},null,8,A)])])])],512),T.value?(l(),c("div",B,[r("div",{class:"noPermissionContent",onClick:L},[r("div",C,[d(i,{class:"noPermissionIcon"},{default:u((()=>[d(a)])),_:1})]),v(" "+p(z.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-08e10267"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Emotionsmodel.vue"]]);export{E as default}; +import{_ as s,u as e,r as a,k as i,o,z as t,G as n,b as l,c,e as r,H as d,d as m,f as g,I as u,J as v,C as p,F as _,a9 as f}from"./index-7d881374.js";import{s as h}from"./setHeight-96dcefe6.js";import{B as b}from"./BackToHomeButton-59f18a35.js";/* empty css */const P=["src"],k={class:"bottom-icon"},x={class:"content-container"},I=["src"],w=["src"],y={class:"buttons-container"},A=["src"],B={key:0,class:"noPermissionDialog"},C={class:"noPermissionCloseBtn"};var E=s({__name:"Emotionsmodel",setup(s){const E=e(),j=a(null),S=a(window.innerWidth),D=i((()=>S.value>1024?"/aixiaocaishen/static/images/_s_四维 拷贝-397d6a3c.png":"/aixiaocaishen/static/images/-s-四维-35334e8b.png")),H=()=>{S.value=window.innerWidth};o((()=>{h(j.value),window.addEventListener("resize",H)})),t((()=>{window.removeEventListener("resize",H)}));const T=a(!1),z=a({}),O=async()=>{try{let s={token:localStorage.getItem("localToken"),model:2};const e=navigator.userAgent;let a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),i="pc";a&&(i=/iPhone|iPad|iPod/i.test(e)?"ios":(/Android/i.test(e),"android"));let o={Client:i};const t=await f(o,s);200==t.code?(sessionStorage.setItem("activeTabAI","AiEmotion"),sessionStorage.setItem("activeIndexAI","1"),sessionStorage.setItem("fromExternalPage","true"),E.push("/homePage")):(console.log("无权限"),T.value=!0,z.value.msg=t.msg,console.log("noPermissonDialogVisible",T.value),console.log("noPermissonDialogObj",z.value))}catch(s){console.error("获取权限失败",s)}},L=()=>{T.value=!1};return(s,e)=>{const a=n("Close"),i=n("el-icon");return l(),c(_,null,[r("div",{ref_key:"pageRef",ref:j,class:"homepage"},[d(b),m(" 顶部图标 "),r("img",{class:"top-icon",src:g("/aixiaocaishen/static/images/大标题-92c56762.png"),alt:"顶部图标"},null,8,P),m(" 中间图示及说明 "),r("div",k,[r("div",x,[m(" 副标题 - 只在屏幕宽度小于等于1024px时显示 "),S.value<=1024?(l(),c("img",{key:0,class:"sub-title",src:g("/aixiaocaishen/static/images/-s-标题 拷贝-026d4753.png"),alt:"四维作战体系"},null,8,I)):m("v-if",!0),m(" 内容图 - 根据屏幕宽度动态切换 "),r("img",{class:"content-icon",src:D.value,alt:"四维情绪"},null,8,w)]),m(" 按钮区域 "),r("div",y,[r("button",{class:"btn-item",onClick:O},[r("img",{src:g("/aixiaocaishen/static/images/-s-开启财运-db5b9247.png"),alt:"开启财运"},null,8,A)])])])],512),T.value?(l(),c("div",B,[r("div",{class:"noPermissionContent",onClick:L},[r("div",C,[d(i,{class:"noPermissionIcon"},{default:u((()=>[d(a)])),_:1})]),v(" "+p(z.value.msg),1)])])):m("v-if",!0)],64)}}},[["__scopeId","data-v-08e10267"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Emotionsmodel.vue"]]);export{E as default}; diff --git a/dev/static/js/Feedback-08e4e28a.js b/dev/static/js/Feedback-5e237f54.js similarity index 97% rename from dev/static/js/Feedback-08e4e28a.js rename to dev/static/js/Feedback-5e237f54.js index 780233c..c2c3109 100644 --- a/dev/static/js/Feedback-08e4e28a.js +++ b/dev/static/js/Feedback-5e237f54.js @@ -1 +1 @@ -import{_ as e,r as a,o as l,G as s,b as c,c as o,H as t,I as i,F as n,a0 as d,e as u,f as r,A as g,J as v,C as m,Q as f,d as k,a1 as A}from"./index-4cb6f38c.js";import{u as b}from"./dataList-1bd1da28.js";import{b as p}from"./back-9e899973.js";import{h}from"./moment-6961f857.js";import"./userPessionCode-376974ca.js";import"./index-5d1237a4.js";const I=["src"],C={class:"feedbackImgClass"},B=["src"],R=["src"],F={class:"card"},S={class:"header-item"},y={class:"header-item"},w={class:"card"},E={key:0},V={class:"feedbackHistoryItem"},L={class:"feedbackHistoryTitle"},U=["src"],H={class:"feedbackSuccess"},K=["src"],M={class:"feedbackHistoryContent"},J={class:"feedbackHistoryImg"},N={key:1},O={class:"noFeedback"},Y=["src"],x=["src"],Q={class:"imgLine"},W=["src"],D={class:"feedbackBackBtnGroup"},T={class:"feedbackBackBtnGroup"},z={class:"imgLine"},X=["src"],j={class:"feedbackBackBtnGroup"},G={class:"imgLine"},P=["src"],Z={class:"feedbackBackAttention"},_={class:"feedbackBackBtnGroup"};var q=e({__name:"Feedback",setup(e){const q=b(),$=a(""),ee="http://39.101.133.168:8828/hljw/api/aws/upload",ae=a([]),le=a(!1),se=a(!1),ce=a(!1),oe=a(""),te=async()=>{console.log($.value),console.log(ae.value);const e=localStorage.getItem("localToken");if(""==$.value&&0==ae.value.length)ce.value=!0,oe.value="请输入反馈内容或上传图片";else if(e)try{let a="",l="",s="";ae.value[0]&&(a=ae.value[0].url),ae.value[1]&&(l=ae.value[1].url),ae.value[2]&&(s=ae.value[2].url),console.log(a,l,s);const c=await A({token:e,content:$.value,image1:a,image2:l,image3:s});console.log(c),ne(),se.value=!0}catch(a){ce.value=!0,oe.value="反馈提交异常(错误代码:"+a.response.status+"),建议尝试更换网络环境后重新提交。"}else ce.value=!0,oe.value="token已失效,请重新登录!"},ie=a([]),ne=async()=>{try{const e=await d({token:localStorage.getItem("localToken")});console.log(e),e.data.length>0?(le.value=!0,ie.value=e.data):le.value=!1}catch(e){console.log(e)}},de=()=>{$.value="",ae.value=[],localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),se.value=!1},ue=()=>{ce.value=!1},re=a(!1),ge=()=>{console.log("字数判断"),console.log($.value.length),$.value.length>=2e3&&(re.value=!0)},ve=()=>{re.value=!1},me=()=>{console.log("内容改变"),console.log($.value),localStorage.setItem("feedbackContent",$.value)},fe=function(e,a){console.log("调用check方法"),console.log(a),console.log(a.length)},ke=function(e,a){console.log("调用successChange方法"),console.log(a),console.log(a.response),200==a.response.code&&ae.value.push(a.response.data),console.log(ae.value),localStorage.setItem("feedbackFileList",JSON.stringify(ae.value))},Ae=a(""),be=a(!1),pe=(e,a)=>{console.log(e,a),ae.value=a,console.log("调用handleRemove方法"),console.log(ae.value),console.log(ae.value.length),localStorage.setItem("feedbackFileList",JSON.stringify(ae.value))},he=e=>{Ae.value=e.url,be.value=!0},Ie=a(!1),Ce=()=>{""!=$.value||0!=ae.value.length?Ie.value=!0:q.isFeedback=!1},Be=()=>{Ie.value=!1,q.isFeedback=!1},Re=()=>{localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),Ie.value=!1,q.isFeedback=!1};return l((()=>{ne(),localStorage.getItem("feedbackContent")?$.value=localStorage.getItem("feedbackContent"):$.value="",localStorage.getItem("feedbackFileList")?ae.value=JSON.parse(localStorage.getItem("feedbackFileList")):ae.value=[],console.log(ee)})),(e,a)=>{const l=s("el-header"),d=s("el-input"),A=s("Plus"),b=s("el-icon"),q=s("el-upload"),ne=s("el-image"),Fe=s("el-main"),Se=s("el-scrollbar"),ye=s("el-container"),we=s("el-dialog"),Ee=s("el-button");return c(),o(n,null,[t(ye,null,{default:i((()=>[u("div",null,[u("div",null,[u("img",{src:r(p),alt:"返回按钮",class:"backImg",onClick:Ce},null,8,I)])]),t(Se,null,{default:i((()=>[t(l,null,{default:i((()=>[u("div",C,[u("img",{src:r("/aixiaocaishen/static/images/feedback-4266467e.png"),alt:"用户反馈",class:"img"},null,8,B),u("img",{src:r("/aixiaocaishen/static/images/feedbackImg-644c40a6.png"),alt:"用户反馈",class:"img"},null,8,R)])])),_:1}),t(Fe,null,{default:i((()=>[u("div",F,[a[7]||(a[7]=u("div",{class:"feedbackTitle header-item"},"填写反馈内容",-1)),u("div",S,[t(d,{class:"feedbackContent",modelValue:$.value,"onUpdate:modelValue":a[0]||(a[0]=e=>$.value=e),rows:5,type:"textarea",maxlength:"2000","show-word-limit":"",placeholder:"请描写您想反馈的内容...",onChange:me,onInput:ge},null,8,["modelValue"])]),a[8]||(a[8]=u("div",{class:"feedbackTitle header-item"},"照片上传",-1)),u("div",y,[t(q,{class:"uploadImg",action:r(ee),"list-type":"picture-card","auto-upload":!0,"on-success":ke,accept:".png, .jpg, .jpeg, .ico,","on-change":fe,"file-list":ae.value,"on-preview":he,"on-remove":pe,limit:3},{tip:i((()=>a[6]||(a[6]=[u("div",{class:"el-upload__tip"},"最多上传三张",-1)]))),default:i((()=>[t(b,null,{default:i((()=>[t(A)])),_:1})])),_:1},8,["action","file-list"])]),u("div",null,[u("div",{class:"feedbackSubmitBtn",onClick:te},"提 交")])]),u("div",w,[a[11]||(a[11]=u("div",{class:"feedbackTitle"},"历史反馈内容",-1)),le.value?(c(),o("div",E,[(c(!0),o(n,null,g(ie.value,((e,l)=>(c(),o("div",{key:l,class:"feedbackHistory"},[u("div",V,[u("div",L,[u("img",{src:r("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAodJREFUWEfNlz9oFEEUxr9v9rK5JJecKBoEQRSCQsQIRivBQrAR0SaVIFYhURHTXGHjxs40EbEIViJYpRHsBDsrjYViQAkogk2UiJdckru9vflkD++4nNm9JEbWbfd77/1m3p+ZITbwCeJEDpn8z5WMm2rrNWJWqGRgmKqaWwWEU7BU3g/K89kdnYXcBAoE1co9Wwm8YXXC+Afp2F6RXRSdOBtRFUrLqph5WPeT95ArcfpIgLExdWTL2E9b6gN/r7QVbfN/KZBpn8u34cvkJFfXM18XwLuitDqLg4ZmFwCz2bhNemtlF7iSnvEesdjs6w8Ab0R7nLbgqLW2+y8DrzE3xixVyql33hS/Nf5YAxCu3OkOTm138FrAKsRS6mXjTtQBwpz3lIrHDc3u7Vx5sy8r+32xPf2mVhN1AO+6DlP+oW3IeSt+K7ofvQf8EAqrAGGrMVU607LaibDv+2nNAIhBQGGRhm4WIMzI2LcAZiEEsRRhdwTtL8IWZThkxkf8fjroi0dnxlDnJZ4FkI3Q5kk9t+IzQIXYeVHB3O0pd5Z3c+ouLhdPAqYn2oAZI+REHGm1v9X9EN5bYiIewi6mu9KveGt4ea/rOiciJxyRMsCQxKGNBK9pSE1bYDoqHeHE9P3Ka3pX/WOkDkQ6JwYo3ozZ9ijTvKh7EMK6WPeT+Jl3RsunZezOKBFlLoO6uJnV17XiU9E+jvRtzQ+OjxbPwdCNFMHcB7RvSwDgV8HeiLS18jl+rXQhrvcJPgHQsTUArAq6FGNr/wOApFOQeBEm3oaJD6LER3Hih1Hix3FtSCR6IQkhEr+SVVOR5KW0nookr+V1iCQfJjWIRJ9mjcdnYo/TRoh/+Tz/BVnq1VSDn7mZAAAAAElFTkSuQmCC"),alt:"紫点",class:"purpleDot"},null,8,U),v(" "+m(r(h)(e.created_at).format("YYYY-MM-DD HH:mm"))+" ",1),u("div",H,[a[9]||(a[9]=u("div",{class:"feedbackSuccessWord"},"反馈成功",-1)),u("img",{class:"feedbackSuccessImg",src:r("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA5FJREFUWEftmF9IU1Ecx7/n7jr/bJaCaRahZUKBZhIE+iAWCRUYvdRDEERPpTN8CCJwazUhgh4kp/UUQdBDvkRCBUbJHhSCMFNIMEuJMk3QcvPPdndO3K1Rxu4999xt1MDzNLjfe87nfvc7v9/vHII0GyTNeLEOnOp/bN3h/9pht5vJlgV/ORSpnAFHQFAFoBwMuRFwgkUA42AYJsBTyHQ8nGcfd7uJYvbDTIeEu3W5VAqyZiKxwwzYDsDGgQgQ4COj5Bm1ki53R/akGWhh4PampW1MYmcYcMkApBaTCn+DUHKvrTvnkwi4ELC7yb9Zksh9AHUArCILxdEGAfgoZafd3favRucyDHy12d9AiHQLYLuMTm5MR8YYoxeudNn7jOgNAUedlV4mHzaGSMYopQeMOM0FVmOWSuwugENGHEhA81yi5CwvprnAHkfAyYC2JMQs71uCBGh3em0ePaEucCR1KXQ0gWzAg/z7eYDKUoVeytMEVouCNLt8HRK7KLpqQnpKbtLC7MtaxUUT2NO6uBuK9JABFfEArFkEW8qlyKMv4xTBFabLaVRPgFHI9KSzI/ddvAm1gR2BYwx4oBUOpZUW1DRmROYc7A1hciSsCyygV4vKKafX9lgI+JojcBvAOS2KPfUyqurlyOPhfgVv+/XbA0H9HZfXdl4MuCUwAIaafwJMMOjqtNWKAn8DQ4EWsMBfHJlCSE8w5+q0bRIDdgRWAGRqARvdRLH3BfWrLq8tK6nACaUu/ssmgFsCuiHBXzMBhamQ4Gw6QoD8YoKtZRaQaDrmDkaBzxNhzE8zML20bWrTcdJazgaC2uMZKN5hkPbX50x/oBh4FMLSD91CI57WPJzCsbGAoO6EFXlF3P5pjfMLMwy+niC+z2kCmyscvNKcbVeBM1BYIubw7BSFryeEZX98YNOl2Ujzs/egjMq6aLUzOkZ8Ct680KmKZpsfFYDXXtrzCRqbMiFHWwruUEJAb/cq/PPa4WC6vYytzmvgy6ot2NcgIzNHP5ZXlxhe9ymYGNJskhJv4FVo3hFJdbekwoL9RzM0nVadffUkhKnRMNTfGiM5R6RIaBg4hKrhsbPagqISCWoZVofaI89MUbwfCuuFgXpFlLxDaMwNo8d8NXtYf3UBwRVoZoPfLqfgmB+bPK0uUmLQaXVV9edmSZvLwDXQ6XTdyq0SKRKIdS4pghCZdh1YxC0z2nWHzbgm8s5PaTjHPOsO4tEAAAAASUVORK5CYII="),alt:"成功"},null,8,K)])]),u("div",M,m(e.content),1),u("div",J,[e.image1?(c(),f(ne,{key:0,src:e.image1,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image1]},null,8,["src","preview-src-list"])):k("v-if",!0),e.image2?(c(),f(ne,{key:1,src:e.image2,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image2]},null,8,["src","preview-src-list"])):k("v-if",!0),e.image3?(c(),f(ne,{key:2,src:e.image3,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image3]},null,8,["src","preview-src-list"])):k("v-if",!0)])])])))),128))])):(c(),o("div",N,[u("div",O,[u("img",{class:"noFeedbackImg",src:r("/aixiaocaishen/static/images/noFeedback-c6e2fb86.png"),alt:"暂无历史提交"},null,8,Y),a[10]||(a[10]=v(" 暂无记录 "))])]))])])),_:1})])),_:1})])),_:1}),t(we,{modelValue:be.value,"onUpdate:modelValue":a[1]||(a[1]=e=>be.value=e)},{default:i((()=>[u("img",{"w-full":"",src:Ae.value,alt:"Preview Image"},null,8,x)])),_:1},8,["modelValue"]),t(we,{modelValue:Ie.value,"onUpdate:modelValue":a[2]||(a[2]=e=>Ie.value=e),class:"save-dialog"},{default:i((()=>[u("div",Q,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/save-2c9beb20.png"),alt:"保存"},null,8,W)]),a[14]||(a[14]=u("div",{class:"feedbackBackTitle"},"系统提示",-1)),a[15]||(a[15]=u("div",{class:"feedbackBackAttention"}," 检测到为保存内容,离开将丢失修改,请选择是否保留此次编辑? ",-1)),u("div",D,[t(Ee,{class:"feedbackBackBtn nosave",plain:"",onClick:Re,type:"primary"},{default:i((()=>a[12]||(a[12]=[v("不保留")]))),_:1}),t(Ee,{class:"feedbackBackBtn save",onClick:Be,type:"primary"},{default:i((()=>a[13]||(a[13]=[v("保留")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:re.value,"onUpdate:modelValue":a[3]||(a[3]=e=>re.value=e),class:"save-dialog"},{default:i((()=>[a[17]||(a[17]=u("div",{class:"feedbackContentOverLengthTitle"},"温馨提示",-1)),a[18]||(a[18]=u("div",{class:"feedbackContentOverLengthContent"},"当前输入字数已达上限!",-1)),u("div",T,[t(Ee,{class:"feedbackContentOverLengthBtn confirm",type:"primary",onClick:ve},{default:i((()=>a[16]||(a[16]=[v("确认")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:se.value,"onUpdate:modelValue":a[4]||(a[4]=e=>se.value=e),class:"save-dialog"},{default:i((()=>[u("div",z,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/success-cf6f1864.png"),alt:"成功"},null,8,X)]),a[20]||(a[20]=u("div",{class:"feedbackSuccessTitle"},"提交成功",-1)),a[21]||(a[21]=u("div",{class:"feedbackBackAttention"},"——感谢您的反馈——",-1)),u("div",j,[t(Ee,{class:"feedbackBackBtn confirm",onClick:de,type:"primary"},{default:i((()=>a[19]||(a[19]=[v("确定")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:ce.value,"onUpdate:modelValue":a[5]||(a[5]=e=>ce.value=e),class:"save-dialog"},{default:i((()=>[u("div",G,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/failure-ab07e1d6.png"),alt:"失败"},null,8,P)]),a[23]||(a[23]=u("div",{class:"feedbackFailureTitle"},"提交失败",-1)),u("div",Z,m(oe.value),1),u("div",_,[t(Ee,{class:"feedbackBackBtn confirm",onClick:ue,type:"primary"},{default:i((()=>a[22]||(a[22]=[v("确定")]))),_:1})])])),_:1},8,["modelValue"])],64)}}},[["__scopeId","data-v-65d59982"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Feedback.vue"]]);export{q as default}; +import{_ as e,r as a,o as l,G as s,b as c,c as o,H as t,I as i,F as n,a0 as d,e as u,f as r,A as g,J as v,C as m,Q as f,d as k,a1 as A}from"./index-7d881374.js";import{u as b}from"./dataList-3b7c4b7e.js";import{b as p}from"./back-9e899973.js";import{h}from"./moment-6961f857.js";import"./userPessionCode-33b4794f.js";import"./index-bce0856e.js";const I=["src"],C={class:"feedbackImgClass"},B=["src"],R=["src"],F={class:"card"},S={class:"header-item"},y={class:"header-item"},w={class:"card"},E={key:0},V={class:"feedbackHistoryItem"},L={class:"feedbackHistoryTitle"},U=["src"],H={class:"feedbackSuccess"},K=["src"],M={class:"feedbackHistoryContent"},J={class:"feedbackHistoryImg"},N={key:1},O={class:"noFeedback"},Y=["src"],x=["src"],Q={class:"imgLine"},W=["src"],D={class:"feedbackBackBtnGroup"},T={class:"feedbackBackBtnGroup"},z={class:"imgLine"},X=["src"],j={class:"feedbackBackBtnGroup"},G={class:"imgLine"},P=["src"],Z={class:"feedbackBackAttention"},_={class:"feedbackBackBtnGroup"};var q=e({__name:"Feedback",setup(e){const q=b(),$=a(""),ee="http://39.101.133.168:8828/hljw/api/aws/upload",ae=a([]),le=a(!1),se=a(!1),ce=a(!1),oe=a(""),te=async()=>{console.log($.value),console.log(ae.value);const e=localStorage.getItem("localToken");if(""==$.value&&0==ae.value.length)ce.value=!0,oe.value="请输入反馈内容或上传图片";else if(e)try{let a="",l="",s="";ae.value[0]&&(a=ae.value[0].url),ae.value[1]&&(l=ae.value[1].url),ae.value[2]&&(s=ae.value[2].url),console.log(a,l,s);const c=await A({token:e,content:$.value,image1:a,image2:l,image3:s});console.log(c),ne(),se.value=!0}catch(a){ce.value=!0,oe.value="反馈提交异常(错误代码:"+a.response.status+"),建议尝试更换网络环境后重新提交。"}else ce.value=!0,oe.value="token已失效,请重新登录!"},ie=a([]),ne=async()=>{try{const e=await d({token:localStorage.getItem("localToken")});console.log(e),e.data.length>0?(le.value=!0,ie.value=e.data):le.value=!1}catch(e){console.log(e)}},de=()=>{$.value="",ae.value=[],localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),se.value=!1},ue=()=>{ce.value=!1},re=a(!1),ge=()=>{console.log("字数判断"),console.log($.value.length),$.value.length>=2e3&&(re.value=!0)},ve=()=>{re.value=!1},me=()=>{console.log("内容改变"),console.log($.value),localStorage.setItem("feedbackContent",$.value)},fe=function(e,a){console.log("调用check方法"),console.log(a),console.log(a.length)},ke=function(e,a){console.log("调用successChange方法"),console.log(a),console.log(a.response),200==a.response.code&&ae.value.push(a.response.data),console.log(ae.value),localStorage.setItem("feedbackFileList",JSON.stringify(ae.value))},Ae=a(""),be=a(!1),pe=(e,a)=>{console.log(e,a),ae.value=a,console.log("调用handleRemove方法"),console.log(ae.value),console.log(ae.value.length),localStorage.setItem("feedbackFileList",JSON.stringify(ae.value))},he=e=>{Ae.value=e.url,be.value=!0},Ie=a(!1),Ce=()=>{""!=$.value||0!=ae.value.length?Ie.value=!0:q.isFeedback=!1},Be=()=>{Ie.value=!1,q.isFeedback=!1},Re=()=>{localStorage.getItem("feedbackContent")&&localStorage.removeItem("feedbackContent"),localStorage.getItem("feedbackFileList")&&localStorage.removeItem("feedbackFileList"),Ie.value=!1,q.isFeedback=!1};return l((()=>{ne(),localStorage.getItem("feedbackContent")?$.value=localStorage.getItem("feedbackContent"):$.value="",localStorage.getItem("feedbackFileList")?ae.value=JSON.parse(localStorage.getItem("feedbackFileList")):ae.value=[],console.log(ee)})),(e,a)=>{const l=s("el-header"),d=s("el-input"),A=s("Plus"),b=s("el-icon"),q=s("el-upload"),ne=s("el-image"),Fe=s("el-main"),Se=s("el-scrollbar"),ye=s("el-container"),we=s("el-dialog"),Ee=s("el-button");return c(),o(n,null,[t(ye,null,{default:i((()=>[u("div",null,[u("div",null,[u("img",{src:r(p),alt:"返回按钮",class:"backImg",onClick:Ce},null,8,I)])]),t(Se,null,{default:i((()=>[t(l,null,{default:i((()=>[u("div",C,[u("img",{src:r("/aixiaocaishen/static/images/feedback-4266467e.png"),alt:"用户反馈",class:"img"},null,8,B),u("img",{src:r("/aixiaocaishen/static/images/feedbackImg-644c40a6.png"),alt:"用户反馈",class:"img"},null,8,R)])])),_:1}),t(Fe,null,{default:i((()=>[u("div",F,[a[7]||(a[7]=u("div",{class:"feedbackTitle header-item"},"填写反馈内容",-1)),u("div",S,[t(d,{class:"feedbackContent",modelValue:$.value,"onUpdate:modelValue":a[0]||(a[0]=e=>$.value=e),rows:5,type:"textarea",maxlength:"2000","show-word-limit":"",placeholder:"请描写您想反馈的内容...",onChange:me,onInput:ge},null,8,["modelValue"])]),a[8]||(a[8]=u("div",{class:"feedbackTitle header-item"},"照片上传",-1)),u("div",y,[t(q,{class:"uploadImg",action:r(ee),"list-type":"picture-card","auto-upload":!0,"on-success":ke,accept:".png, .jpg, .jpeg, .ico,","on-change":fe,"file-list":ae.value,"on-preview":he,"on-remove":pe,limit:3},{tip:i((()=>a[6]||(a[6]=[u("div",{class:"el-upload__tip"},"最多上传三张",-1)]))),default:i((()=>[t(b,null,{default:i((()=>[t(A)])),_:1})])),_:1},8,["action","file-list"])]),u("div",null,[u("div",{class:"feedbackSubmitBtn",onClick:te},"提 交")])]),u("div",w,[a[11]||(a[11]=u("div",{class:"feedbackTitle"},"历史反馈内容",-1)),le.value?(c(),o("div",E,[(c(!0),o(n,null,g(ie.value,((e,l)=>(c(),o("div",{key:l,class:"feedbackHistory"},[u("div",V,[u("div",L,[u("img",{src:r("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAodJREFUWEfNlz9oFEEUxr9v9rK5JJecKBoEQRSCQsQIRivBQrAR0SaVIFYhURHTXGHjxs40EbEIViJYpRHsBDsrjYViQAkogk2UiJdckru9vflkD++4nNm9JEbWbfd77/1m3p+ZITbwCeJEDpn8z5WMm2rrNWJWqGRgmKqaWwWEU7BU3g/K89kdnYXcBAoE1co9Wwm8YXXC+Afp2F6RXRSdOBtRFUrLqph5WPeT95ArcfpIgLExdWTL2E9b6gN/r7QVbfN/KZBpn8u34cvkJFfXM18XwLuitDqLg4ZmFwCz2bhNemtlF7iSnvEesdjs6w8Ab0R7nLbgqLW2+y8DrzE3xixVyql33hS/Nf5YAxCu3OkOTm138FrAKsRS6mXjTtQBwpz3lIrHDc3u7Vx5sy8r+32xPf2mVhN1AO+6DlP+oW3IeSt+K7ofvQf8EAqrAGGrMVU607LaibDv+2nNAIhBQGGRhm4WIMzI2LcAZiEEsRRhdwTtL8IWZThkxkf8fjroi0dnxlDnJZ4FkI3Q5kk9t+IzQIXYeVHB3O0pd5Z3c+ouLhdPAqYn2oAZI+REHGm1v9X9EN5bYiIewi6mu9KveGt4ea/rOiciJxyRMsCQxKGNBK9pSE1bYDoqHeHE9P3Ka3pX/WOkDkQ6JwYo3ozZ9ijTvKh7EMK6WPeT+Jl3RsunZezOKBFlLoO6uJnV17XiU9E+jvRtzQ+OjxbPwdCNFMHcB7RvSwDgV8HeiLS18jl+rXQhrvcJPgHQsTUArAq6FGNr/wOApFOQeBEm3oaJD6LER3Hih1Hix3FtSCR6IQkhEr+SVVOR5KW0nookr+V1iCQfJjWIRJ9mjcdnYo/TRoh/+Tz/BVnq1VSDn7mZAAAAAElFTkSuQmCC"),alt:"紫点",class:"purpleDot"},null,8,U),v(" "+m(r(h)(e.created_at).format("YYYY-MM-DD HH:mm"))+" ",1),u("div",H,[a[9]||(a[9]=u("div",{class:"feedbackSuccessWord"},"反馈成功",-1)),u("img",{class:"feedbackSuccessImg",src:r("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAA5FJREFUWEftmF9IU1Ecx7/n7jr/bJaCaRahZUKBZhIE+iAWCRUYvdRDEERPpTN8CCJwazUhgh4kp/UUQdBDvkRCBUbJHhSCMFNIMEuJMk3QcvPPdndO3K1Rxu4999xt1MDzNLjfe87nfvc7v9/vHII0GyTNeLEOnOp/bN3h/9pht5vJlgV/ORSpnAFHQFAFoBwMuRFwgkUA42AYJsBTyHQ8nGcfd7uJYvbDTIeEu3W5VAqyZiKxwwzYDsDGgQgQ4COj5Bm1ki53R/akGWhh4PampW1MYmcYcMkApBaTCn+DUHKvrTvnkwi4ELC7yb9Zksh9AHUArCILxdEGAfgoZafd3favRucyDHy12d9AiHQLYLuMTm5MR8YYoxeudNn7jOgNAUedlV4mHzaGSMYopQeMOM0FVmOWSuwugENGHEhA81yi5CwvprnAHkfAyYC2JMQs71uCBGh3em0ePaEucCR1KXQ0gWzAg/z7eYDKUoVeytMEVouCNLt8HRK7KLpqQnpKbtLC7MtaxUUT2NO6uBuK9JABFfEArFkEW8qlyKMv4xTBFabLaVRPgFHI9KSzI/ddvAm1gR2BYwx4oBUOpZUW1DRmROYc7A1hciSsCyygV4vKKafX9lgI+JojcBvAOS2KPfUyqurlyOPhfgVv+/XbA0H9HZfXdl4MuCUwAIaafwJMMOjqtNWKAn8DQ4EWsMBfHJlCSE8w5+q0bRIDdgRWAGRqARvdRLH3BfWrLq8tK6nACaUu/ssmgFsCuiHBXzMBhamQ4Gw6QoD8YoKtZRaQaDrmDkaBzxNhzE8zML20bWrTcdJazgaC2uMZKN5hkPbX50x/oBh4FMLSD91CI57WPJzCsbGAoO6EFXlF3P5pjfMLMwy+niC+z2kCmyscvNKcbVeBM1BYIubw7BSFryeEZX98YNOl2Ujzs/egjMq6aLUzOkZ8Ct680KmKZpsfFYDXXtrzCRqbMiFHWwruUEJAb/cq/PPa4WC6vYytzmvgy6ot2NcgIzNHP5ZXlxhe9ymYGNJskhJv4FVo3hFJdbekwoL9RzM0nVadffUkhKnRMNTfGiM5R6RIaBg4hKrhsbPagqISCWoZVofaI89MUbwfCuuFgXpFlLxDaMwNo8d8NXtYf3UBwRVoZoPfLqfgmB+bPK0uUmLQaXVV9edmSZvLwDXQ6XTdyq0SKRKIdS4pghCZdh1YxC0z2nWHzbgm8s5PaTjHPOsO4tEAAAAASUVORK5CYII="),alt:"成功"},null,8,K)])]),u("div",M,m(e.content),1),u("div",J,[e.image1?(c(),f(ne,{key:0,src:e.image1,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image1]},null,8,["src","preview-src-list"])):k("v-if",!0),e.image2?(c(),f(ne,{key:1,src:e.image2,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image2]},null,8,["src","preview-src-list"])):k("v-if",!0),e.image3?(c(),f(ne,{key:2,src:e.image3,alt:"图片错误",class:"feedbackHistoryImgItem","preview-src-list":[e.image3]},null,8,["src","preview-src-list"])):k("v-if",!0)])])])))),128))])):(c(),o("div",N,[u("div",O,[u("img",{class:"noFeedbackImg",src:r("/aixiaocaishen/static/images/noFeedback-c6e2fb86.png"),alt:"暂无历史提交"},null,8,Y),a[10]||(a[10]=v(" 暂无记录 "))])]))])])),_:1})])),_:1})])),_:1}),t(we,{modelValue:be.value,"onUpdate:modelValue":a[1]||(a[1]=e=>be.value=e)},{default:i((()=>[u("img",{"w-full":"",src:Ae.value,alt:"Preview Image"},null,8,x)])),_:1},8,["modelValue"]),t(we,{modelValue:Ie.value,"onUpdate:modelValue":a[2]||(a[2]=e=>Ie.value=e),class:"save-dialog"},{default:i((()=>[u("div",Q,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/save-2c9beb20.png"),alt:"保存"},null,8,W)]),a[14]||(a[14]=u("div",{class:"feedbackBackTitle"},"系统提示",-1)),a[15]||(a[15]=u("div",{class:"feedbackBackAttention"}," 检测到为保存内容,离开将丢失修改,请选择是否保留此次编辑? ",-1)),u("div",D,[t(Ee,{class:"feedbackBackBtn nosave",plain:"",onClick:Re,type:"primary"},{default:i((()=>a[12]||(a[12]=[v("不保留")]))),_:1}),t(Ee,{class:"feedbackBackBtn save",onClick:Be,type:"primary"},{default:i((()=>a[13]||(a[13]=[v("保留")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:re.value,"onUpdate:modelValue":a[3]||(a[3]=e=>re.value=e),class:"save-dialog"},{default:i((()=>[a[17]||(a[17]=u("div",{class:"feedbackContentOverLengthTitle"},"温馨提示",-1)),a[18]||(a[18]=u("div",{class:"feedbackContentOverLengthContent"},"当前输入字数已达上限!",-1)),u("div",T,[t(Ee,{class:"feedbackContentOverLengthBtn confirm",type:"primary",onClick:ve},{default:i((()=>a[16]||(a[16]=[v("确认")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:se.value,"onUpdate:modelValue":a[4]||(a[4]=e=>se.value=e),class:"save-dialog"},{default:i((()=>[u("div",z,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/success-cf6f1864.png"),alt:"成功"},null,8,X)]),a[20]||(a[20]=u("div",{class:"feedbackSuccessTitle"},"提交成功",-1)),a[21]||(a[21]=u("div",{class:"feedbackBackAttention"},"——感谢您的反馈——",-1)),u("div",j,[t(Ee,{class:"feedbackBackBtn confirm",onClick:de,type:"primary"},{default:i((()=>a[19]||(a[19]=[v("确定")]))),_:1})])])),_:1},8,["modelValue"]),t(we,{modelValue:ce.value,"onUpdate:modelValue":a[5]||(a[5]=e=>ce.value=e),class:"save-dialog"},{default:i((()=>[u("div",G,[u("img",{class:"dialogImg",src:r("/aixiaocaishen/static/images/failure-ab07e1d6.png"),alt:"失败"},null,8,P)]),a[23]||(a[23]=u("div",{class:"feedbackFailureTitle"},"提交失败",-1)),u("div",Z,m(oe.value),1),u("div",_,[t(Ee,{class:"feedbackBackBtn confirm",onClick:ue,type:"primary"},{default:i((()=>a[22]||(a[22]=[v("确定")]))),_:1})])])),_:1},8,["modelValue"])],64)}}},[["__scopeId","data-v-65d59982"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Feedback.vue"]]);export{q as default}; diff --git a/dev/static/js/Selectmodel-df62bb36.js b/dev/static/js/Selectmodel-28751654.js similarity index 77% rename from dev/static/js/Selectmodel-df62bb36.js rename to dev/static/js/Selectmodel-28751654.js index 858790b..e4c23ea 100644 --- a/dev/static/js/Selectmodel-df62bb36.js +++ b/dev/static/js/Selectmodel-28751654.js @@ -1 +1 @@ -import{_ as e,u as o,r as a,o as t,a as s,b as n,c as l,d as i,e as c,f as d}from"./index-4cb6f38c.js";import{u as r}from"./dataList-1bd1da28.js";/* empty css */import"./userPessionCode-376974ca.js";import"./index-5d1237a4.js";const m={class:"homepage"},b=["src"];var p=e({__name:"Selectmodel",setup(e){const{getQueryVariable:p,setActiveTabIndex:u,getUserInfo:v}=r(),g=o();a(null),t((()=>{!/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(navigator.userAgent)&&localStorage.setItem("localToken",decodeURIComponent(String(p("token")))),k(),v()}));const k=()=>{console.log("进入fnGetToken"),window.JWready=e=>{console.log("进入JWready");try{e=JSON.parse(e)}catch(o){console.log(o,"fnGetToken error")}console.log(e.data.platform,"ress.data.platform"),e.data.platform?s().packageFun("JWgetStorage",(e=>{const o=JSON.parse(e);localStorage.setItem("localToken",o.data)}),5,{key:"token"}):localStorage.setItem("localToken",decodeURIComponent(String(p("token"))))},s().packageFun("JWwebReady",(()=>{}),5,{})},f=()=>{g.push("/DBQBmodel")},_=()=>{g.push("/Emotionsmodel")};return(e,o)=>(n(),l("div",m,[i(" "),i(" 顶部主图背景 "),i('
'),c("img",{class:"main-icon",src:d("/aixiaocaishen/static/images/机器人 拷贝-40d18848.png"),alt:"AI小财神"},null,8,b),i(" 按钮区域 "),c("div",{class:"buttons-container"},[i(" 夺宝奇兵模块 "),c("div",{class:"btn-item",onClick:f},o[0]||(o[0]=[c("div",{class:"btn-icon btn-dbqb"},null,-1),c("div",{class:"btn-ball"},null,-1),c("div",{class:"btn-text btn-text-dbqb"},null,-1)])),i(" AI情绪模块 "),c("div",{class:"btn-item",onClick:_},o[1]||(o[1]=[c("div",{class:"btn-icon btn-ai"},null,-1),c("div",{class:"btn-ball"},null,-1),c("div",{class:"btn-text btn-text-ai"},null,-1)]))]),i(" 底部口号与说明 "),o[2]||(o[2]=c("div",{class:"footer-wrapper"},[c("div",{class:"footer-text1"}),c("div",{class:"footer-text2"})],-1))]))}},[["__scopeId","data-v-01fa063a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Selectmodel.vue"]]);export{p as default}; +import{_ as e,u as o,r as t,o as a,a as s,b as n,c as l,d as i,e as c,f as r}from"./index-7d881374.js";import{u as d}from"./dataList-3b7c4b7e.js";/* empty css */import"./userPessionCode-33b4794f.js";import"./index-bce0856e.js";const m={class:"homepage"},b=["src"];var p=e({__name:"Selectmodel",setup(e){const{getQueryVariable:p,setActiveTabIndex:u,getUserInfo:v}=d(),g=o();t(null),a((()=>{!/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(navigator.userAgent)&&localStorage.setItem("localToken",decodeURIComponent(String(p("token")))),k(),v()}));const k=()=>{console.log("进入fnGetToken"),window.JWready=e=>{console.log("进入JWready");try{e=JSON.parse(e)}catch(o){console.log(o,"fnGetToken error")}console.log(e.data.platform,"ress.data.platform"),e.data.platform?s().packageFun("JWgetStorage",(e=>{const o=JSON.parse(e);localStorage.setItem("localToken",o.data)}),5,{key:"token"}):localStorage.setItem("localToken",decodeURIComponent(String(p("token"))))},s().packageFun("JWwebReady",(()=>{}),5,{})},f=()=>{g.push("/DBQBmodel")},_=()=>{g.push("/Emotionsmodel")};return(e,o)=>(n(),l("div",m,[i(" "),i(" 顶部主图背景 "),i('
'),c("img",{class:"main-icon",src:r("/aixiaocaishen/static/images/机器人 拷贝-40d18848.png"),alt:"AI小财神"},null,8,b),i(" 按钮区域 "),c("div",{class:"buttons-container"},[i(" 夺宝奇兵模块 "),c("div",{class:"btn-item",onClick:f},o[0]||(o[0]=[c("div",{class:"btn-icon btn-dbqb"},null,-1),c("div",{class:"btn-ball"},null,-1),c("div",{class:"btn-text btn-text-dbqb"},null,-1)])),i(" AI情绪模块 "),c("div",{class:"btn-item",onClick:_},o[1]||(o[1]=[c("div",{class:"btn-icon btn-ai"},null,-1),c("div",{class:"btn-ball"},null,-1),c("div",{class:"btn-text btn-text-ai"},null,-1)]))]),i(" 底部口号与说明 "),o[2]||(o[2]=c("div",{class:"footer-wrapper"},[c("div",{class:"footer-text1"}),c("div",{class:"footer-text2"})],-1))]))}},[["__scopeId","data-v-01fa063a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/Selectmodel.vue"]]);export{p as default}; diff --git a/dev/static/js/chat-5d3bc291.js b/dev/static/js/chat-52f319e2.js similarity index 90% rename from dev/static/js/chat-5d3bc291.js rename to dev/static/js/chat-52f319e2.js index 2111ecd..dfae1cd 100644 --- a/dev/static/js/chat-5d3bc291.js +++ b/dev/static/js/chat-52f319e2.js @@ -1 +1 @@ -import{g as a,a5 as s}from"./index-4cb6f38c.js";const t=a("chat",{state:()=>({messages:[],isLoading:!1,UserCount:0,chartData:[],kLineData:[],dbqbClickRecord:{},searchRecord:!1,currentUserIndex:null,inputUserIndex:null,announcementMsg:null,aiChatCall:!1,aiEmotionCall:!1,chatInput:!1,emotionInput:!1,firstAPICall:!1,dbqbScrollToTop:!0}),actions:{async getUserCount(){const a=await s({token:localStorage.getItem("localToken"),source:"1"});this.UserCount=a.data},setLoading(a){this.isLoading=a},isLoadingT(){this.isLoading=!0},isLoadingF(){this.isLoading=!1},addKLineData(a){this.kLineData.push(a)}},persist:{key:"chat_messages",storage:sessionStorage,paths:["messages","kLineData"]}});export{t as u}; +import{g as a,a5 as s}from"./index-7d881374.js";const t=a("chat",{state:()=>({messages:[],isLoading:!1,UserCount:0,chartData:[],kLineData:[],dbqbClickRecord:{},searchRecord:!1,currentUserIndex:null,inputUserIndex:null,announcementMsg:null,aiChatCall:!1,aiEmotionCall:!1,chatInput:!1,emotionInput:!1,firstAPICall:!1,dbqbScrollToTop:!0}),actions:{async getUserCount(){const a=await s({token:localStorage.getItem("localToken"),source:"1"});this.UserCount=a.data},setLoading(a){this.isLoading=a},isLoadingT(){this.isLoading=!0},isLoadingF(){this.isLoading=!1},addKLineData(a){this.kLineData.push(a)}},persist:{key:"chat_messages",storage:sessionStorage,paths:["messages","kLineData"]}});export{t as u}; diff --git a/dev/static/js/dataList-1bd1da28.js b/dev/static/js/dataList-3b7c4b7e.js similarity index 91% rename from dev/static/js/dataList-1bd1da28.js rename to dev/static/js/dataList-3b7c4b7e.js index d241197..d9aad4f 100644 --- a/dev/static/js/dataList-1bd1da28.js +++ b/dev/static/js/dataList-3b7c4b7e.js @@ -1 +1 @@ -import{g as e,h as a,r as t,w as l,i as r,j as n}from"./index-4cb6f38c.js";import{u as s}from"./userPessionCode-376974ca.js";import"./index-5d1237a4.js";const o=e("data",(()=>{const e=a();console.log(e,"地址栏携带的参数。。。。。。");const o=s(),i=t(null),c=t(null),u=t(null),d=t(null),g=t(null),v=t(null),S=t(null),k=t(null),P=t(null),m=t(!1),b=t(null),w=t(null),f=t(!1),h=t({}),D=e=>{const a=window.location.search.substring(1).split("&");for(let t=0;twindow.location.ancestorOrigins),((e,a)=>{console.log("newQuery",e)})),{HomePage:v,AIGoldBull:k,fetchChartData:async(e,a)=>{const t=String(localStorage.getItem("localToken"));try{const l=await r({token:t||"",market:e||"gb",code:a||"NDX",language:"cn",brainPrivilegeState:o.brainPerssion,swordPrivilegeState:o.swordPerssion,stockForecastPrivilegeState:o.pricePerssion,spaceForecastPrivilegeState:o.timePerssion,aibullPrivilegeState:o.aibullPerssion,aigoldBullPrivilegeState:o.aiGnbullPerssion,airadarPrivilegeState:o.airadarPerssion,marketList:o.aiGoldMarketList});i.value=l.data.Brain,c.value=l.data.Sword,u.value=l.data.StockForecast,d.value=l.data.SpaceForecast,g.value=l.data.ShowAll,v.value=l.data.HomePage,S.value=l.data.AIBull,k.value=l.data.AIGoldBull,P.value=l.data.AIRadar}catch(l){console.error("获取图表数据出错:",l)}finally{m.value=!1,console.log("数据获取过程结束")}},activeTabIndex:w,klineData:b,setKlineData:e=>{b.value=e},initData:async()=>{A.value=!0,A.value=!1},getMarket:()=>{const e=D("market");if(e){if(["sg","my","in","hk","th","vi","usa","can","gb","cn"].includes(e))return e;switch(e){case"SGX":return"sg";case"BMB":return"my";case"IDX":return"in";case"HKEX":return"hk";case"SET":return"th";case"HN":case"HONSE":return"vi";case"AMERA":case"NYSE":case"NASDAQ":return"usa";case"DLD":case"DLDCY":return"can";case"GINDEX":return"gb";case"BZ":case"SH":case"SZ":return"cn";default:return"无市场数据"}}return""},getQueryVariable:D,setActiveTabIndex:e=>{w.value=e},isFeedback:f,userInfo:h,getUserInfo:async()=>{const e=String(localStorage.getItem("localToken")),a=await n({token:e||""});h.value=a.data}}}));export{o as u}; +import{g as e,h as a,r as t,w as l,i as r,j as n}from"./index-7d881374.js";import{u as s}from"./userPessionCode-33b4794f.js";import"./index-bce0856e.js";const o=e("data",(()=>{const e=a();console.log(e,"地址栏携带的参数。。。。。。");const o=s(),i=t(null),c=t(null),u=t(null),d=t(null),g=t(null),v=t(null),S=t(null),k=t(null),P=t(null),m=t(!1),b=t(null),w=t(null),f=t(!1),h=t({}),D=e=>{const a=window.location.search.substring(1).split("&");for(let t=0;twindow.location.ancestorOrigins),((e,a)=>{console.log("newQuery",e)})),{HomePage:v,AIGoldBull:k,fetchChartData:async(e,a)=>{const t=String(localStorage.getItem("localToken"));try{const l=await r({token:t||"",market:e||"gb",code:a||"NDX",language:"cn",brainPrivilegeState:o.brainPerssion,swordPrivilegeState:o.swordPerssion,stockForecastPrivilegeState:o.pricePerssion,spaceForecastPrivilegeState:o.timePerssion,aibullPrivilegeState:o.aibullPerssion,aigoldBullPrivilegeState:o.aiGnbullPerssion,airadarPrivilegeState:o.airadarPerssion,marketList:o.aiGoldMarketList});i.value=l.data.Brain,c.value=l.data.Sword,u.value=l.data.StockForecast,d.value=l.data.SpaceForecast,g.value=l.data.ShowAll,v.value=l.data.HomePage,S.value=l.data.AIBull,k.value=l.data.AIGoldBull,P.value=l.data.AIRadar}catch(l){console.error("获取图表数据出错:",l)}finally{m.value=!1,console.log("数据获取过程结束")}},activeTabIndex:w,klineData:b,setKlineData:e=>{b.value=e},initData:async()=>{A.value=!0,A.value=!1},getMarket:()=>{const e=D("market");if(e){if(["sg","my","in","hk","th","vi","usa","can","gb","cn"].includes(e))return e;switch(e){case"SGX":return"sg";case"BMB":return"my";case"IDX":return"in";case"HKEX":return"hk";case"SET":return"th";case"HN":case"HONSE":return"vi";case"AMERA":case"NYSE":case"NASDAQ":return"usa";case"DLD":case"DLDCY":return"can";case"GINDEX":return"gb";case"BZ":case"SH":case"SZ":return"cn";default:return"无市场数据"}}return""},getQueryVariable:D,setActiveTabIndex:e=>{w.value=e},isFeedback:f,userInfo:h,getUserInfo:async()=>{const e=String(localStorage.getItem("localToken")),a=await n({token:e||""});h.value=a.data}}}));export{o as u}; diff --git a/dev/static/js/emoEnergyConverter-30c0a2be.js b/dev/static/js/emoEnergyConverter-7a8b83fd.js similarity index 99% rename from dev/static/js/emoEnergyConverter-30c0a2be.js rename to dev/static/js/emoEnergyConverter-7a8b83fd.js index d7b49f2..53131cd 100644 --- a/dev/static/js/emoEnergyConverter-30c0a2be.js +++ b/dev/static/js/emoEnergyConverter-7a8b83fd.js @@ -1 +1 @@ -import{k as e,_ as o,r as t,o as i,a8 as r,b as n,c as a,d as l,e as s,F as d,n as c}from"./index-4cb6f38c.js";import{e as h}from"./marketTemperature-7871708f.js";import{t as m,c as u,a as w,l as x}from"./index-5d1237a4.js";const p={class:"qxjmqbox"};var y=o({__name:"emotionDecod",setup(e,{expose:o}){o({initQXNLZHEcharts:function(e,o){w.value=o;const t=[];w.value.forEach(((e,o)=>{const[i,r,n,a,l,s,d,c,h,m]=e;t.push([o,0,l,1==h?"green":"transparent"]),t.push([o,1,a,1==c?"purple":"transparent"]),t.push([o,2,n,1==d?"red":"transparent"]),t.push([o,3,r,1==s?"yellow":"transparent"])})),u.value=t,x.value=w.value.map((e=>e[9])),console.log("热力图数据:",u.value),console.log("折线图数据:",x.value);const i=(e=>{const o=[];let t=[];for(let i=0;i"candlestick"===e.seriesType));if(!o)return"";return`日期: ${o.name}
开盘价: ${o.data[1]}
收盘价: ${o.data[2]}
最低价: ${o.data[3]}
最高价: ${o.data[4]}`}},grid:[{top:"5%",height:window.innerWidth<=768?"35%":"40%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"},{top:window.innerWidth<=768?"40%":"45%",height:"35%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"},{top:window.innerWidth<=768?"75%":"80%",height:"2%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"}],visualMap:[{show:!1,seriesIndex:1,min:0,max:2e3,calculable:!0,orient:"horizontal",left:"center",bottom:"15%",inRange:{color:["transparent"]}}],xAxis:[{type:"category",gridIndex:0,data:i.categoryData,axisPointer:{show:!0,type:"line",label:{show:!0,backgroundColor:"rgba(0,191,255)",color:"black"}},axisTick:{show:!1},axisLabel:{show:!1,rotate:45},axisLine:{show:!0,lineStyle:{color:"white"}}},{type:"category",gridIndex:1,data:i.categoryData,axisTick:{show:!1},axisLabel:{show:!1,rotate:45},splitLine:{show:!0,lineStyle:{color:"white",type:"solid"},interval:0}},{type:"category",gridIndex:2,data:i.categoryData,axisLine:{lineStyle:{color:"white"}},axisPointer:{show:!1,label:{show:!1},type:"line"},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"white",width:1,type:"dashed"}}}],yAxis:[{scale:!0,axisLabel:{formatter:function(e){return e}},axisLine:{show:!0,lineStyle:{color:"white"}},splitLine:{show:!1},axisPointer:{show:!0,label:{show:!0,backgroundColor:"rgba(0,255,127)",color:"black"},type:"line"}},{gridIndex:1,type:"category",data:[0,1,2,3],axisLine:{lineStyle:{color:"white"}},axisLabel:{show:!1,color:"#fff",backgroundColor:"transparent",fontSize:12,margin:8},axisPointer:{show:!0,label:{show:!1},type:"line"},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#8392A5",width:1,type:"solid"},interval:0}},{gridIndex:2,type:"value",axisLine:{show:!0,lineStyle:{color:"white"}},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},axisPointer:{show:!1,label:{show:!1},type:"line"}}],dataZoom:[{textStyle:{color:"white"},dataBackground:{areaStyle:{color:"#8392A5"},lineStyle:{opacity:.8,color:"#8392A5"}},xAxisIndex:[0,1,2],start:50,end:100,bottom:window.innerWidth<=768?"5%":"7%"},{type:"inside",xAxisIndex:[0,1,2],filterMode:"filter"}],series:[{type:"candlestick",name:"日K",data:i.value,itemStyle:{normal:{color0:"red",color:"#0CF49B",borderColor0:"#FD1050",borderColor:"#0CF49B"}}},{name:"热力矩阵",type:"heatmap",gridIndex:1,xAxisIndex:1,yAxisIndex:1,data:t,coordinateSystem:"cartesian2d",tooltip:{trigger:"item",axisPointer:{type:"cross",crossStyle:{color:"#999"}},formatter:function(e){return`${e.value[2]}`}},label:{normal:{show:!0,color:"#fff",formatter:function(e){const o=e.value[2];return`{${e.value[3]}|${o}}`},rich:{green:{color:"#27ae60",fontWeight:"bold"},purple:{color:"#8e44ad",fontWeight:"bold"},red:{color:"#FF0000",fontWeight:"bold"},yellow:{color:"#FFFF00",fontWeight:"bold"},normal:{color:"#fff"}}}},itemStyle:{normal:{color:"transparent",borderWidth:2}},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}},{name:"凸起",type:"line",xAxisIndex:2,yAxisIndex:2,data:x.value,color:"black",lineStyle:{normal:{color:"red"}},symbol:"none",emphasis:{showSymbol:!0}}]};if(!c.value)return void console.error("DOM元素未准备好,无法初始化ECharts");m&&m.dispose();m=h.init(c.value),m.setOption(r),m&&(m.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),m.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})));const n=(e,o)=>{let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}},a=n((()=>{if(m&&!m.isDisposed())try{m.resize(),console.log("情绪解码器图表已重新调整大小")}catch(e){console.error("情绪解码器图表resize失败:",e)}}),100);window.emotionDecodResizeHandler&&window.removeEventListener("resize",window.emotionDecodResizeHandler);if(window.addEventListener("resize",a),window.emotionDecodResizeHandler=a,c.value&&window.ResizeObserver){const e=new ResizeObserver(n((()=>{if(m&&!m.isDisposed())try{m.resize(),console.log("情绪解码器容器大小变化,图表已调整")}catch(e){console.error("情绪解码器容器resize失败:",e)}}),100));e.observe(c.value),window.emotionDecodContainerObserver=e}}});const c=t(null);let m=null;const u=t([]),w=t([]),x=t([]);const y=t(window.innerHeight),f=()=>{y.value=window.innerHeight};return i((()=>{window.emotionDecodHeightHandler||(window.addEventListener("resize",f),window.emotionDecodHeightHandler=f)})),r((()=>{m&&(m.dispose(),m=null),window.emotionDecodResizeHandler&&(window.removeEventListener("resize",window.emotionDecodResizeHandler),window.emotionDecodResizeHandler=null),window.emotionDecodHeightHandler&&(window.removeEventListener("resize",window.emotionDecodHeightHandler),window.emotionDecodHeightHandler=null),window.emotionDecodContainerObserver&&(window.emotionDecodContainerObserver.disconnect(),window.emotionDecodContainerObserver=null)})),(e,o)=>(n(),a(d,null,[l('
'),s("div",p,[s("div",{ref_key:"KlineCanvs",ref:c,class:"qxjmqEcharts"},null,512)])],2112))}},[["__scopeId","data-v-a3d8672a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emotionDecod.vue"]]);function f(e){const{chart:o,container:t,option:i,beforeResize:r,name:n="图表"}=e;if(!o||!t)return console.warn(`${n}: 图表实例或容器不存在`),{cleanup:()=>{}};const a=function(e,o=100){let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}}((()=>{if(o&&!o.isDisposed())try{"function"==typeof r&&r(),i&&o.setOption(i,!0),o.resize(),console.log(`${n}响应式调整完成`)}catch(e){console.error(`${n}响应式调整失败:`,e)}}),100),l=a;let s=null;return window.ResizeObserver&&(s=new ResizeObserver(a),s.observe(t)),window.addEventListener("resize",l),{cleanup:()=>{window.removeEventListener("resize",l),s&&(s.disconnect(),s=null),console.log(`${n}响应式监听器已清理`)},triggerResize:a}}var b=o({__name:"emotionalBottomRadar",setup(e,{expose:o}){const i=t(null);let l=null,s=null;return o({initEmotionalBottomRadar:function(e,o){if(l&&(l.dispose(),l=null),!i.value)return void console.error("bottomRadarRef not found");l=h.init(i.value);let t=o.map((e=>e[0])),r=e.map((e=>[e[1],e[2],e[3],e[4]])),n=[];r.forEach((e=>{Array.isArray(e)&&e.length>=4&&n.push(e[0],e[1],e[2],e[3])}));let a=n.filter((e=>"number"==typeof e&&!isNaN(e))),d=Math.min(...a),c=Math.max(...a),m=Math.floor(d),u=Math.ceil(c),w=o.map((e=>e[1])),x=o.map((e=>e.slice(2,6))),p=[],y=[],b=[],g=[],v=[];x.forEach((e=>{e[0]?(p.push(4),e[3]?(g.push(36),e[2]?(b.push(40),v.push(0)):(b.push(0),v.push(0))):(g.push(0),e[2]?(b.push(76),v.push(0)):(b.push(0),v.push(0)))):e[0]||(p.push(0),e[3]?(g.push(40),e[2]?(b.push(40),v.push(0)):(b.push(0),v.push(0))):(g.push(0),e[2]?(b.push(79),v.push(1)):(b.push(0),v.push(0)))),e[1]?y.push(1):e[1]||y.push(0)}));let F={axisPointer:{link:{xAxisIndex:"all"}},tooltip:{show:!0,trigger:"axis",triggerOn:"mousemove",confine:!0,axisPointer:{type:"cross",crossStyle:{color:"grey",width:1,type:"dashed"},lineStyle:{color:"grey",width:1,type:"dashed"},label:{backgroundColor:"rgba(0, 0, 0, 0.8)",color:"#fff",borderColor:"#fff",borderWidth:1}},backgroundColor:"rgba(232, 232, 242, 0.87)",borderColor:"#fff",borderWidth:1,padding:10,textStyle:{color:"#fff",fontSize:12},formatter:function(e){if(!e||0===e.length)return"";if(e.some((e=>"红线"===e.seriesName&&1===e.axisIndex||2===e.axisIndex||"K线"!==e.seriesName&&"基础base"!==e.seriesName))&&!e.some((e=>"candlestick"===e.seriesType)))return"";let o=`
${e[0].name}
`;return e.sort(((e,o)=>"candlestick"===e.seriesType?-1:"candlestick"===o.seriesType?1:"红线"===e.seriesName?-1:"红线"===o.seriesName?1:0)).forEach((e=>{let t=e.value,i=e.color;if("candlestick"===e.seriesType){let t=e.value;if(!Array.isArray(t)||t.length<4)return"";let i=t[1],n=t[2],a=t[3],l=t[4];if("number"!=typeof i||"number"!=typeof n||"number"!=typeof a||"number"!=typeof l)return"";let s=null;const d=e.dataIndex;if(d>0&&r&&r[d-1]){const e=r[d-1];e&&Array.isArray(e)&&e.length>=2&&(s=e[1])}if(o+='
',o+=`
${e.seriesName}
`,o+=`
开盘价: ${i}
`,o+=`
收盘价: ${n}
`,o+=`
最低价: ${a}
`,o+=`
最高价: ${l}
`,null!==s&&"number"==typeof s){let e=n-s,t=(e/s*100).toFixed(2);o+=`
涨跌: ${e>=0?"+":""}${e.toFixed(2)} (${t}%)
`}o+="
"}else"红线"===e.seriesName?o+=`
${e.seriesName}: ${t}
`:"基础base"!==e.seriesName&&t>0&&(o+=`
${e.seriesName}: ${t}
`)})),o}},legend:{type:"scroll",pageButtonItemGap:2,pageButtonPosition:"end",textStyle:{color:"#666"}},grid:[{left:"10%",right:"3%",top:"20px",bottom:"50%",height:"150px",width:"85%"},{left:"10%",right:"3%",top:"170px",bottom:"25%",height:"150px",width:"85%"},{left:"10%",right:"3%",top:"320px",bottom:"50px",height:"150px",width:"85%"}],xAxis:[{type:"category",data:t,gridIndex:0,boundaryGap:!0,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!1,alignWithLabel:!0,lineStyle:{color:"#999",width:1,type:"dashed"}},axisLabel:{show:!1},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"},label:{show:!1}}},{type:"category",data:t,gridIndex:1,boundaryGap:!0,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"},label:{show:!1}}},{type:"category",data:t,gridIndex:2,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"#999",width:1,type:"solid"}},axisLabel:{color:"white",interval:"auto",rotate:0},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"}}}],yAxis:[{type:"value",gridIndex:0,splitNumber:4,min:m,max:u,interval:(u-m)/4,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},axisLabel:{width:50,color:"white",formatter:function(e,o){return e.toFixed(0)}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}},scale:!0},{type:"value",gridIndex:1,splitNumber:3,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},splitNumber:5,axisLabel:{width:50,color:"white",formatter:function(e,o){return 0===o?"0":5===o?"":e}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}}},{type:"value",gridIndex:2,splitNumber:2,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},splitNumber:5,axisLabel:{width:50,color:"white",formatter:function(e,o){return 5===o?"":e}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}},splitNumber:5,min:function(e){return 0},max:function(e){return e.max+10}}],dataZoom:[{type:"slider",xAxisIndex:[0,1,2],start:50,end:100,show:!0,bottom:window.innerWidth>768?30:50,height:20,borderColor:"#CFD6E3",fillerColor:"rgba(135, 175, 274, 0.2)",handleStyle:{color:"#CFD6E3"},textStyle:{color:"#fff"},dataBackground:{lineStyle:{color:"#CFD6E3"},areaStyle:{color:"rgba(241,243,247,0.5)"}}},{type:"inside",xAxisIndex:[0,1,2],start:50,end:100,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1}],series:[{name:"K线",type:"candlestick",data:r,xAxisIndex:0,yAxisIndex:0,itemStyle:{color:"#14b143",color0:"#ef232a",borderColor:"#14b143",borderColor0:"#ef232a",normal:{color:"#14b143",color0:"#ef232a",borderColor:"#14b143",borderColor0:"#ef232a",opacity:function(e){return e.data[1]>e.data[0]?0:1}}}},{name:"红线",type:"line",data:w,xAxisIndex:1,yAxisIndex:1,symbol:"none",sampling:"average",itemStyle:{normal:{color:"#ef232a"}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 150, 243, 0.4)"},{offset:1,color:"rgba(33, 150, 243, 0)"}]}}},{name:"基础base",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",itemStyle:{normal:{color:"#ffffff",borderWidth:0}},data:v},{name:"黄色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",itemStyle:{normal:{color:"rgba(255, 255, 0, 1)",borderWidth:0,label:{show:e=>y[e.dataIndex]>0,position:"top",textStyle:{color:"rgba(255, 255, 0, 1)"},formatter:e=>y[e.dataIndex]>0?"加仓资金":""}}},data:p},{name:"蓝色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",label:{show:!0,position:"inside"},itemStyle:{normal:{color:"rgba(34, 196, 190, 1)",borderWidth:0}},data:g},{name:"紫色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",label:{show:!0,position:"inside"},itemStyle:{normal:{color:"rgba(191, 87, 222, 1)",borderWidth:0}},data:b}]};function C(){window.innerWidth<=768&&(F.grid[0].height="150px",F.grid[1].height="150px",F.grid[2].height="150px",F.grid[0].left="15%",F.grid[1].left="15%",F.grid[2].left="15%",F.grid[1].top="170px",F.grid[2].top="320px",F.grid[0].width="80%",F.grid[1].width="80%",F.grid[2].width="80%"),l.setOption(F)}l.setOption(F),l&&(l.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),l.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()}))),i.value&&function(e){if(!e)return;Object.assign(e.style,{width:"100%",boxSizing:"border-box",overflow:"hidden",margin:"0",padding:"0"})}(i.value),s&&s.cleanup(),s=f({chart:l,container:i.value,option:F,beforeResize:C,name:"情绪探底雷达图表"}),setTimeout((()=>{s&&s.triggerResize()}),100),C()}}),r((()=>{s&&(s.cleanup(),s=null),l&&(l.dispose(),l=null)})),(e,o)=>(n(),a("div",{ref_key:"bottomRadarRef",ref:i,class:"bottomRadarChart"},null,512))}},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emotionalBottomRadar.vue"]]);var g=o({__name:"emoEnergyConverter",setup(o,{expose:i}){const{translate:l,t:s}=(()=>{const o=e((()=>e=>m.value&&e in m.value?m.value[e]:e)),t=e((()=>{var e;return(null==(e=m.value)?void 0:e.language)||"简体中文"}));return{t:m,translate:o,changeLanguage:u,availableLanguages:w,languagePacks:x,currentLanguage:t}})();i({initQXNLZHEcharts:function(e,o){const i=s.value;if(!d.value)return void console.log("DOM 元素未准备好,无法初始化 ECharts");p&&p.dispose();let r=[];Array.isArray(e)||console.log("不是");e.forEach((e=>{let o=e[0],t=[e[1],e[2],e[3],e[4]];r.push({date:o,value:t})})),y=[{min:o.dd,max:o.zc,name:"情绪冰点区",color:"#F5D6FF",fontColor:"#A7691C",fontSize:window.innerWidth>769?12:9,NumberColor:"white",left:null,right:"7%"},{min:o.zc,max:o.ht,name:"认知潜伏区",color:"#FFF6C4",fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.ht,max:o.qs,name:"多空消化区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#D7FF9B"},{offset:1,color:"#CEFF85"}]},fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.qs,max:o.tp,name:"共识加速区",color:"#FFDC8F",fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.tp,max:o.js,name:"情绪临界区",color:"#FFC0AA",fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null}],-1!=Number(o.yl)&&y.push({min:o.js,max:o.yl,name:"杠杆失衡区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#FEA474"},{offset:1,color:"#FFAAF6"}]},fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null});-1!=Number(o.gg)&&y.push({min:o.yl,max:o.gg,name:"情绪熔断区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F66475"},{offset:1,color:"#FFB98E"}]},fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null});const n=e.flatMap((e=>[e[1],e[2],e[3],e[4]]));Math.min(...n);const a=Math.max(...n),l=1.05*Number(o.cc),c=.97*Number(o.cc),m=Math.max(0,r.length-17),u=new Array(r.length).fill(null),w=new Array(r.length).fill(null);for(var x=m;xe.max<=I)),console.log("markLineMax",I,"markLineRegions",f),r.forEach(((e,t)=>{const[i,r,n,a]=e.value,l={date:e.date,value:[null,null,null,null]};(null==A||A.data.value[3]i?r-i:i-r],itemStyle:{normal:{color:"#001EFF"}}}),v.push({value:[t,r>i?i:r],itemStyle:{normal:{color:"transparent"}}}),console.log("lowMiddleRangeData",b),console.log("lowMiddleRangeData111111",v)):(b.push(null),v.push(null))})),F.push({name:`${Number(A.data.value[3]).toFixed(2)}`,coord:[A.index,A.data.value[3]],itemStyle:{normal:{color:"rgba(0,0,0,0)"}},label:{normal:{show:!0,position:"top",formatter:`${Number(A.data.value[3]).toFixed(2)}`,textStyle:{color:"#2171DD",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}}}),F.push({name:`${Number(k.data.value[3]).toFixed(2)}`,coord:[k.index,k.data.value[2]],itemStyle:{normal:{color:"rgba(0,0,0,0)"}},label:{normal:{show:!0,position:"bottom",formatter:`${Number(k.data.value[1]).toFixed(2)}`,textStyle:{color:"#3B8F08",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}}});const L=[];y.forEach((e=>{"情绪熔断区"!=e.name&&"情绪临界区"!=e.name&&"情绪冰点区"!=e.name||L.push({name:e.name,min:e.min,max:e.max,backgroundSize:"10px 10px "})}));const E=[],$={};o.topxh&&o.topxh.length>0&&(E.push({name:"TOP",textStyle:{color:"#000000",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.TOP=!0);o.lowxh&&o.lowxh.length>0&&(E.push({name:"LOW",textStyle:{color:"#001EFF",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.LOW=!0);o.qixh&&o.qixh.length>0&&(E.push({name:"起",textStyle:{color:"#249409",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.起=!0);let N;p=h.init(d.value),N={legend:{data:E,selected:$,top:window.innerWidth>768?"0%":"1%",textStyle:{fontSize:window.matchMedia("(max-width: 767px)").matches?9:12}},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"cross",lineStyle:{color:"grey",width:1,type:"dashed"},label:{backgroundColor:"rgba(0, 0, 0, 0.8)",color:"#fff",borderColor:"#fff",borderWidth:1}},backgroundColor:"rgba(232, 232, 242, 0.87)",borderColor:"#fff",borderWidth:1,borderRadius:8,padding:10,textStyle:{color:"#fff",fontSize:12},position:function(e,o,t,i,r){const n=window.matchMedia("(max-width: 768px)").matches,a=r.contentSize[0],l=r.contentSize[1],s=r.viewSize[0],d=r.viewSize[1];let c=e[0],h=e[1];return n?(c+a>s-10&&(c=s-a-10),c<10&&(c=10),h-l-20<0?(h+=20,h+l>d-60&&(h=Math.max(20,d-l-60))):h=h-l-20):(c+a>s-20?c=c-a-20:c+=20,h-l<20?h+=20:h=h-l-20),[c,h]},formatter:function(o){if(!o||0===o.length)return"";let t=`
${o[0].name}
`;return o.forEach(((o,r)=>{console.log("参数索引:",r,"系列:",o);let n=o.value;if(o.color,"candlestick"===o.seriesType){const r=i.kai,a=i.shou,l=i.di,s=i.gao;let d,c,h=n[1],m=n[2],u=n[3],w=n[4];if("number"!=typeof h||"number"!=typeof m||"number"!=typeof u||"number"!=typeof w)return"";if(0!=o.data[0]){let t=e[o.data[0]-1][2];d=m-t,c=(d/t*100).toFixed(2)}let x=d>=0?"#32B520":"#D8001B";t+='
',t+=`
${r}: ${h.toFixed(2)}
`,t+=`
${a}: ${m.toFixed(2)}
`,t+=`
${l}: ${u.toFixed(2)}
`,t+=`
${s}: ${w.toFixed(2)}
`,0!=o.data[0]&&(t+=`
涨跌: ${d>=0?"+":""}${d.toFixed(2)} (${c}%)
`,t+="
")}else"止盈线"===o.seriesName&&null!=n&&"number"==typeof n?t+=`
${o.seriesName}: ${n.toFixed(2)}
`:"止损线"===o.seriesName&&null!=n&&"number"==typeof n&&(t+=`
${o.seriesName}: ${n.toFixed(2)}
`)})),t}},dataZoom:[{top:window.innerWidth<=768?"86%":"",type:"slider",xAxisIndex:0,start:0,end:100,show:!0,bottom:40,height:20,borderColor:"#fff",fillerColor:"rgba(255, 255, 255, 0.2)",handleStyle:{color:"#fff",borderColor:"white"},textStyle:{color:"white",fontSize:window.innerWidth>769?12:9}},{type:"inside",xAxisIndex:0,start:0,end:100,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1}],xAxis:{type:"category",data:r.map((e=>e.date)),axisLabel:{rotate:0,color:"white",interval:"auto",fontSize:window.innerWidth>769?12:9,showMaxLabel:!0},axisLine:{onZero:!1,lineStyle:{color:"white"}},axisTick:{alignWithLabel:!0}},yAxis:{scale:!0,axisLine:{lineStyle:{color:"white"}},splitLine:{show:!1},axisLabel:{show:!0,color:"white",fontSize:window.innerWidth>769?12:9,formatter:function(e){return parseFloat(e.toFixed(2)).toString()}},axisTick:{show:!0,color:"white"},min:Math.min(o.dd,.98*c),max:Math.max(1.02*a,1.02*l,o.cc,o.dd,o.gg,o.ht,o.js,o.qs,o.tp,o.yl,o.zc)},graphic:g(Math.min(o.dd,.98*c),Math.max(1.02*a,1.02*l,o.cc,o.dd,o.gg,o.ht,o.js,o.qs,o.tp,o.yl,o.zc)),series:[{type:"candlestick",data:r.map((e=>e.value)),z:3,clip:!0,markPoint:{symbol:"circle",symbolSize:10,data:F,z:5},itemStyle:{normal:{color:"#00AAFF",color0:"#FF007F",borderColor:"#00AAFF",borderColor0:"#FF007F"}},markArea:{silent:!0,data:[...y.map((e=>[{x:"30%",yAxis:e.min,itemStyle:{normal:{color:e.color}}},{x:"95%",yAxis:e.max}])),...L.map((e=>[{x:"30%",yAxis:e.min,itemStyle:{normal:{color:{image:W(e.color,e.backgroundSize),repeat:"repeat"}}}},{x:"95%",yAxis:e.max}]))],markPoint:{symbol:"circle",symbolSize:10,data:F,z:5}},markLine:{silent:!0,symbol:"none",data:[...f.map((e=>[{name:`${Number(e.max).toFixed(2)}`,x:"30%",yAxis:e.max,label:{normal:{position:"start",color:("情绪冰点区"==e.name||"多空消化区"==e.name||e.name,"white"),fontSize:window.innerWidth>769?12:9}},lineStyle:{normal:{color:"#FFFFFF",width:2,type:"dashed"}}},{x:"95%",yAxis:e.max}])),[{name:`止盈${l.toFixed(2)}`,x:"60%",yAxis:l,label:{normal:{position:"start",fontSize:window.innerWidth>769?13:9,fontWeight:"bold",textBorderColor:"#FFFFFF",textBorderWidth:2}},lineStyle:{normal:{color:"#FF0000",width:2,type:"solid"}}},{x:"95%",yAxis:l}],[{name:`止损${c.toFixed(2)}`,x:"60%",yAxis:c,label:{normal:{position:"start",fontSize:window.innerWidth>769?13:9,fontWeight:"bold",textBorderColor:"#FFFFFF",textBorderWidth:2}},lineStyle:{normal:{color:"#001EFF",width:2,type:"solid"}}},{x:"95%",yAxis:c}]]}},{name:"起",type:"candlestick",data:C.value.map((e=>e.value)),itemStyle:{normal:{color:"#87FF6B",color0:"#87FF6B",borderColor:"#87FF6B",borderColor0:"#87FF6B"}},gridIndex:0,z:4,tooltip:{show:!1}},{name:"TOP",type:"candlestick",data:S.value.map((e=>e.value)),itemStyle:{normal:{color:"#000",color0:"#000",borderColor:"#000",borderColor0:"#000"}},gridIndex:0,z:4,tooltip:{show:!1}},{name:"LOW",type:"candlestick",data:z.value.map((e=>e.value)),itemStyle:{normal:{color:"#001EFF",color0:"#001EFF",borderColor:"#001EFF",borderColor0:"#001EFF"}},gridIndex:0,z:4,tooltip:{show:!1}}],grid:{left:window.innerWidth<=768?"2%":"5%",right:(window.innerWidth,"8%"),top:(window.innerWidth,"40"),bottom:"60",containLabel:!0,width:"auto",height:"auto",overflow:"hidden"}},p.setOption(N);const D=(e,o)=>{let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}},M=D((()=>{if(p&&!p.isDisposed())try{p.resize(),console.log("情绪能量转化器图表已重新调整大小")}catch(e){console.error("情绪能量转化器图表resize失败:",e)}}),100);window.emoEnergyConverterResizeHandler&&window.removeEventListener("resize",window.emoEnergyConverterResizeHandler);if(window.addEventListener("resize",M),window.emoEnergyConverterResizeHandler=M,d.value&&window.ResizeObserver){const e=new ResizeObserver(D((()=>{if(p&&!p.isDisposed())try{p.resize(),console.log("情绪能量转化器容器大小变化,图表已调整")}catch(e){console.error("情绪能量转化器容器resize失败:",e)}}),100));e.observe(d.value),window.emoEnergyConverterContainerObserver=e}}});let d=t(null),p=null,y=c([]),f=c([]);function b(e,o,t,i,r){const n=p.getHeight(),a=100+(window.innerHeight>769?17:14);return console.log("%",(o-Number(r))/(o-e)*(n-a)),console.log("chartHeight",n),(o-Number(r))/(o-e)*(n-a)}t(null);const g=(e,o)=>{let t,i;for(let r=0;r{if(!t.min||!t.max)return[](Number(t.min)+Number(t.max))/2;const i=(Math.max(e,t.min)+Math.min(o,t.max))/2,r=t.min>=e&&t.max<=o,n=t.mine&&!r,a=p?p.getHeight():400,l=Math.max(t.min,e),s=Math.min(t.max,o),d=[];return(r||n)&&(s-l)/(o-e)*(a-60)>=5&&d.push({type:"text",left:t.left,right:t.right,top:window.innerWidth>769?40+b(e,o,0,0,i)-6:40+b(e,o,0,0,i)-4.5,style:{text:t.name,fill:t.fontColor,fontSize:window.innerWidth>769?12:9,fontWeight:"bold",textVerticalAlign:"middle"},z:2}),d}))};return t(),t(),r((()=>{p&&(p.dispose(),p=null),window.emoEnergyConverterResizeHandler&&(window.removeEventListener("resize",window.emoEnergyConverterResizeHandler),window.emoEnergyConverterResizeHandler=null),window.emoEnergyConverterContainerObserver&&(window.emoEnergyConverterContainerObserver.disconnect(),window.emoEnergyConverterContainerObserver=null)})),(e,o)=>(n(),a("div",{ref_key:"qxnlzhqEchartsRef",ref:d,class:"qxnlzhqEcharts"},null,512))}},[["__scopeId","data-v-09eb69c0"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emoEnergyConverter.vue"]]);export{b as E,g as a,y as e}; +import{k as e,_ as o,r as t,o as i,a8 as r,b as n,c as a,d as l,e as s,F as d,n as c}from"./index-7d881374.js";import{e as h}from"./marketTemperature-3afd7f01.js";import{t as m,c as u,a as w,l as x}from"./index-bce0856e.js";const p={class:"qxjmqbox"};var y=o({__name:"emotionDecod",setup(e,{expose:o}){o({initQXNLZHEcharts:function(e,o){w.value=o;const t=[];w.value.forEach(((e,o)=>{const[i,r,n,a,l,s,d,c,h,m]=e;t.push([o,0,l,1==h?"green":"transparent"]),t.push([o,1,a,1==c?"purple":"transparent"]),t.push([o,2,n,1==d?"red":"transparent"]),t.push([o,3,r,1==s?"yellow":"transparent"])})),u.value=t,x.value=w.value.map((e=>e[9])),console.log("热力图数据:",u.value),console.log("折线图数据:",x.value);const i=(e=>{const o=[];let t=[];for(let i=0;i"candlestick"===e.seriesType));if(!o)return"";return`日期: ${o.name}
开盘价: ${o.data[1]}
收盘价: ${o.data[2]}
最低价: ${o.data[3]}
最高价: ${o.data[4]}`}},grid:[{top:"5%",height:window.innerWidth<=768?"35%":"40%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"},{top:window.innerWidth<=768?"40%":"45%",height:"35%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"},{top:window.innerWidth<=768?"75%":"80%",height:"2%",width:window.innerWidth<=768?"70%":"80%",left:window.outerWidth<=768?"20%":"10%"}],visualMap:[{show:!1,seriesIndex:1,min:0,max:2e3,calculable:!0,orient:"horizontal",left:"center",bottom:"15%",inRange:{color:["transparent"]}}],xAxis:[{type:"category",gridIndex:0,data:i.categoryData,axisPointer:{show:!0,type:"line",label:{show:!0,backgroundColor:"rgba(0,191,255)",color:"black"}},axisTick:{show:!1},axisLabel:{show:!1,rotate:45},axisLine:{show:!0,lineStyle:{color:"white"}}},{type:"category",gridIndex:1,data:i.categoryData,axisTick:{show:!1},axisLabel:{show:!1,rotate:45},splitLine:{show:!0,lineStyle:{color:"white",type:"solid"},interval:0}},{type:"category",gridIndex:2,data:i.categoryData,axisLine:{lineStyle:{color:"white"}},axisPointer:{show:!1,label:{show:!1},type:"line"},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"white",width:1,type:"dashed"}}}],yAxis:[{scale:!0,axisLabel:{formatter:function(e){return e}},axisLine:{show:!0,lineStyle:{color:"white"}},splitLine:{show:!1},axisPointer:{show:!0,label:{show:!0,backgroundColor:"rgba(0,255,127)",color:"black"},type:"line"}},{gridIndex:1,type:"category",data:[0,1,2,3],axisLine:{lineStyle:{color:"white"}},axisLabel:{show:!1,color:"#fff",backgroundColor:"transparent",fontSize:12,margin:8},axisPointer:{show:!0,label:{show:!1},type:"line"},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#8392A5",width:1,type:"solid"},interval:0}},{gridIndex:2,type:"value",axisLine:{show:!0,lineStyle:{color:"white"}},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},axisPointer:{show:!1,label:{show:!1},type:"line"}}],dataZoom:[{textStyle:{color:"white"},dataBackground:{areaStyle:{color:"#8392A5"},lineStyle:{opacity:.8,color:"#8392A5"}},xAxisIndex:[0,1,2],start:50,end:100,bottom:window.innerWidth<=768?"5%":"7%"},{type:"inside",xAxisIndex:[0,1,2],filterMode:"filter"}],series:[{type:"candlestick",name:"日K",data:i.value,itemStyle:{normal:{color0:"red",color:"#0CF49B",borderColor0:"#FD1050",borderColor:"#0CF49B"}}},{name:"热力矩阵",type:"heatmap",gridIndex:1,xAxisIndex:1,yAxisIndex:1,data:t,coordinateSystem:"cartesian2d",tooltip:{trigger:"item",axisPointer:{type:"cross",crossStyle:{color:"#999"}},formatter:function(e){return`${e.value[2]}`}},label:{normal:{show:!0,color:"#fff",formatter:function(e){const o=e.value[2];return`{${e.value[3]}|${o}}`},rich:{green:{color:"#27ae60",fontWeight:"bold"},purple:{color:"#8e44ad",fontWeight:"bold"},red:{color:"#FF0000",fontWeight:"bold"},yellow:{color:"#FFFF00",fontWeight:"bold"},normal:{color:"#fff"}}}},itemStyle:{normal:{color:"transparent",borderWidth:2}},emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}},{name:"凸起",type:"line",xAxisIndex:2,yAxisIndex:2,data:x.value,color:"black",lineStyle:{normal:{color:"red"}},symbol:"none",emphasis:{showSymbol:!0}}]};if(!c.value)return void console.error("DOM元素未准备好,无法初始化ECharts");m&&m.dispose();m=h.init(c.value),m.setOption(r),m&&(m.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),m.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),m.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})));const n=(e,o)=>{let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}},a=n((()=>{if(m&&!m.isDisposed())try{m.resize(),console.log("情绪解码器图表已重新调整大小")}catch(e){console.error("情绪解码器图表resize失败:",e)}}),100);window.emotionDecodResizeHandler&&window.removeEventListener("resize",window.emotionDecodResizeHandler);if(window.addEventListener("resize",a),window.emotionDecodResizeHandler=a,c.value&&window.ResizeObserver){const e=new ResizeObserver(n((()=>{if(m&&!m.isDisposed())try{m.resize(),console.log("情绪解码器容器大小变化,图表已调整")}catch(e){console.error("情绪解码器容器resize失败:",e)}}),100));e.observe(c.value),window.emotionDecodContainerObserver=e}}});const c=t(null);let m=null;const u=t([]),w=t([]),x=t([]);const y=t(window.innerHeight),f=()=>{y.value=window.innerHeight};return i((()=>{window.emotionDecodHeightHandler||(window.addEventListener("resize",f),window.emotionDecodHeightHandler=f)})),r((()=>{m&&(m.dispose(),m=null),window.emotionDecodResizeHandler&&(window.removeEventListener("resize",window.emotionDecodResizeHandler),window.emotionDecodResizeHandler=null),window.emotionDecodHeightHandler&&(window.removeEventListener("resize",window.emotionDecodHeightHandler),window.emotionDecodHeightHandler=null),window.emotionDecodContainerObserver&&(window.emotionDecodContainerObserver.disconnect(),window.emotionDecodContainerObserver=null)})),(e,o)=>(n(),a(d,null,[l('
'),s("div",p,[s("div",{ref_key:"KlineCanvs",ref:c,class:"qxjmqEcharts"},null,512)])],2112))}},[["__scopeId","data-v-a3d8672a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emotionDecod.vue"]]);function f(e){const{chart:o,container:t,option:i,beforeResize:r,name:n="图表"}=e;if(!o||!t)return console.warn(`${n}: 图表实例或容器不存在`),{cleanup:()=>{}};const a=function(e,o=100){let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}}((()=>{if(o&&!o.isDisposed())try{"function"==typeof r&&r(),i&&o.setOption(i,!0),o.resize(),console.log(`${n}响应式调整完成`)}catch(e){console.error(`${n}响应式调整失败:`,e)}}),100),l=a;let s=null;return window.ResizeObserver&&(s=new ResizeObserver(a),s.observe(t)),window.addEventListener("resize",l),{cleanup:()=>{window.removeEventListener("resize",l),s&&(s.disconnect(),s=null),console.log(`${n}响应式监听器已清理`)},triggerResize:a}}var b=o({__name:"emotionalBottomRadar",setup(e,{expose:o}){const i=t(null);let l=null,s=null;return o({initEmotionalBottomRadar:function(e,o){if(l&&(l.dispose(),l=null),!i.value)return void console.error("bottomRadarRef not found");l=h.init(i.value);let t=o.map((e=>e[0])),r=e.map((e=>[e[1],e[2],e[3],e[4]])),n=[];r.forEach((e=>{Array.isArray(e)&&e.length>=4&&n.push(e[0],e[1],e[2],e[3])}));let a=n.filter((e=>"number"==typeof e&&!isNaN(e))),d=Math.min(...a),c=Math.max(...a),m=Math.floor(d),u=Math.ceil(c),w=o.map((e=>e[1])),x=o.map((e=>e.slice(2,6))),p=[],y=[],b=[],g=[],v=[];x.forEach((e=>{e[0]?(p.push(4),e[3]?(g.push(36),e[2]?(b.push(40),v.push(0)):(b.push(0),v.push(0))):(g.push(0),e[2]?(b.push(76),v.push(0)):(b.push(0),v.push(0)))):e[0]||(p.push(0),e[3]?(g.push(40),e[2]?(b.push(40),v.push(0)):(b.push(0),v.push(0))):(g.push(0),e[2]?(b.push(79),v.push(1)):(b.push(0),v.push(0)))),e[1]?y.push(1):e[1]||y.push(0)}));let F={axisPointer:{link:{xAxisIndex:"all"}},tooltip:{show:!0,trigger:"axis",triggerOn:"mousemove",confine:!0,axisPointer:{type:"cross",crossStyle:{color:"grey",width:1,type:"dashed"},lineStyle:{color:"grey",width:1,type:"dashed"},label:{backgroundColor:"rgba(0, 0, 0, 0.8)",color:"#fff",borderColor:"#fff",borderWidth:1}},backgroundColor:"rgba(232, 232, 242, 0.87)",borderColor:"#fff",borderWidth:1,padding:10,textStyle:{color:"#fff",fontSize:12},formatter:function(e){if(!e||0===e.length)return"";if(e.some((e=>"红线"===e.seriesName&&1===e.axisIndex||2===e.axisIndex||"K线"!==e.seriesName&&"基础base"!==e.seriesName))&&!e.some((e=>"candlestick"===e.seriesType)))return"";let o=`
${e[0].name}
`;return e.sort(((e,o)=>"candlestick"===e.seriesType?-1:"candlestick"===o.seriesType?1:"红线"===e.seriesName?-1:"红线"===o.seriesName?1:0)).forEach((e=>{let t=e.value,i=e.color;if("candlestick"===e.seriesType){let t=e.value;if(!Array.isArray(t)||t.length<4)return"";let i=t[1],n=t[2],a=t[3],l=t[4];if("number"!=typeof i||"number"!=typeof n||"number"!=typeof a||"number"!=typeof l)return"";let s=null;const d=e.dataIndex;if(d>0&&r&&r[d-1]){const e=r[d-1];e&&Array.isArray(e)&&e.length>=2&&(s=e[1])}if(o+='
',o+=`
${e.seriesName}
`,o+=`
开盘价: ${i}
`,o+=`
收盘价: ${n}
`,o+=`
最低价: ${a}
`,o+=`
最高价: ${l}
`,null!==s&&"number"==typeof s){let e=n-s,t=(e/s*100).toFixed(2);o+=`
涨跌: ${e>=0?"+":""}${e.toFixed(2)} (${t}%)
`}o+="
"}else"红线"===e.seriesName?o+=`
${e.seriesName}: ${t}
`:"基础base"!==e.seriesName&&t>0&&(o+=`
${e.seriesName}: ${t}
`)})),o}},legend:{type:"scroll",pageButtonItemGap:2,pageButtonPosition:"end",textStyle:{color:"#666"}},grid:[{left:"10%",right:"3%",top:"20px",bottom:"50%",height:"150px",width:"85%"},{left:"10%",right:"3%",top:"170px",bottom:"25%",height:"150px",width:"85%"},{left:"10%",right:"3%",top:"320px",bottom:"50px",height:"150px",width:"85%"}],xAxis:[{type:"category",data:t,gridIndex:0,boundaryGap:!0,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!1,alignWithLabel:!0,lineStyle:{color:"#999",width:1,type:"dashed"}},axisLabel:{show:!1},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"},label:{show:!1}}},{type:"category",data:t,gridIndex:1,boundaryGap:!0,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"},label:{show:!1}}},{type:"category",data:t,gridIndex:2,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"#999",width:1,type:"solid"}},axisLabel:{color:"white",interval:"auto",rotate:0},splitLine:{show:!1},axisPointer:{link:{xAxisIndex:"all"}}}],yAxis:[{type:"value",gridIndex:0,splitNumber:4,min:m,max:u,interval:(u-m)/4,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},axisLabel:{width:50,color:"white",formatter:function(e,o){return e.toFixed(0)}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}},scale:!0},{type:"value",gridIndex:1,splitNumber:3,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},splitNumber:5,axisLabel:{width:50,color:"white",formatter:function(e,o){return 0===o?"0":5===o?"":e}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}}},{type:"value",gridIndex:2,splitNumber:2,axisLine:{lineStyle:{color:"white"}},axisTick:{show:!0},splitNumber:5,axisLabel:{width:50,color:"white",formatter:function(e,o){return 5===o?"":e}},splitLine:{show:!1,lineStyle:{color:"#837b7b",type:"dotted"}},splitNumber:5,min:function(e){return 0},max:function(e){return e.max+10}}],dataZoom:[{type:"slider",xAxisIndex:[0,1,2],start:50,end:100,show:!0,bottom:window.innerWidth>768?30:50,height:20,borderColor:"#CFD6E3",fillerColor:"rgba(135, 175, 274, 0.2)",handleStyle:{color:"#CFD6E3"},textStyle:{color:"#fff"},dataBackground:{lineStyle:{color:"#CFD6E3"},areaStyle:{color:"rgba(241,243,247,0.5)"}}},{type:"inside",xAxisIndex:[0,1,2],start:50,end:100,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1}],series:[{name:"K线",type:"candlestick",data:r,xAxisIndex:0,yAxisIndex:0,itemStyle:{color:"#14b143",color0:"#ef232a",borderColor:"#14b143",borderColor0:"#ef232a",normal:{color:"#14b143",color0:"#ef232a",borderColor:"#14b143",borderColor0:"#ef232a",opacity:function(e){return e.data[1]>e.data[0]?0:1}}}},{name:"红线",type:"line",data:w,xAxisIndex:1,yAxisIndex:1,symbol:"none",sampling:"average",itemStyle:{normal:{color:"#ef232a"}},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(33, 150, 243, 0.4)"},{offset:1,color:"rgba(33, 150, 243, 0)"}]}}},{name:"基础base",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",itemStyle:{normal:{color:"#ffffff",borderWidth:0}},data:v},{name:"黄色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",itemStyle:{normal:{color:"rgba(255, 255, 0, 1)",borderWidth:0,label:{show:e=>y[e.dataIndex]>0,position:"top",textStyle:{color:"rgba(255, 255, 0, 1)"},formatter:e=>y[e.dataIndex]>0?"加仓资金":""}}},data:p},{name:"蓝色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",label:{show:!0,position:"inside"},itemStyle:{normal:{color:"rgba(34, 196, 190, 1)",borderWidth:0}},data:g},{name:"紫色",type:"bar",stack:"total",xAxisIndex:2,yAxisIndex:2,barCategoryGap:"0%",label:{show:!0,position:"inside"},itemStyle:{normal:{color:"rgba(191, 87, 222, 1)",borderWidth:0}},data:b}]};function C(){window.innerWidth<=768&&(F.grid[0].height="150px",F.grid[1].height="150px",F.grid[2].height="150px",F.grid[0].left="15%",F.grid[1].left="15%",F.grid[2].left="15%",F.grid[1].top="170px",F.grid[2].top="320px",F.grid[0].width="80%",F.grid[1].width="80%",F.grid[2].width="80%"),l.setOption(F)}l.setOption(F),l&&(l.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),l.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),l.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()}))),i.value&&function(e){if(!e)return;Object.assign(e.style,{width:"100%",boxSizing:"border-box",overflow:"hidden",margin:"0",padding:"0"})}(i.value),s&&s.cleanup(),s=f({chart:l,container:i.value,option:F,beforeResize:C,name:"情绪探底雷达图表"}),setTimeout((()=>{s&&s.triggerResize()}),100),C()}}),r((()=>{s&&(s.cleanup(),s=null),l&&(l.dispose(),l=null)})),(e,o)=>(n(),a("div",{ref_key:"bottomRadarRef",ref:i,class:"bottomRadarChart"},null,512))}},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emotionalBottomRadar.vue"]]);var g=o({__name:"emoEnergyConverter",setup(o,{expose:i}){const{translate:l,t:s}=(()=>{const o=e((()=>e=>m.value&&e in m.value?m.value[e]:e)),t=e((()=>{var e;return(null==(e=m.value)?void 0:e.language)||"简体中文"}));return{t:m,translate:o,changeLanguage:u,availableLanguages:w,languagePacks:x,currentLanguage:t}})();i({initQXNLZHEcharts:function(e,o){const i=s.value;if(!d.value)return void console.log("DOM 元素未准备好,无法初始化 ECharts");p&&p.dispose();let r=[];Array.isArray(e)||console.log("不是");e.forEach((e=>{let o=e[0],t=[e[1],e[2],e[3],e[4]];r.push({date:o,value:t})})),y=[{min:o.dd,max:o.zc,name:"情绪冰点区",color:"#F5D6FF",fontColor:"#A7691C",fontSize:window.innerWidth>769?12:9,NumberColor:"white",left:null,right:"7%"},{min:o.zc,max:o.ht,name:"认知潜伏区",color:"#FFF6C4",fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.ht,max:o.qs,name:"多空消化区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#D7FF9B"},{offset:1,color:"#CEFF85"}]},fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.qs,max:o.tp,name:"共识加速区",color:"#FFDC8F",fontColor:"#A7691C",NumberColor:"white",left:null,right:"7%"},{min:o.tp,max:o.js,name:"情绪临界区",color:"#FFC0AA",fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null}],-1!=Number(o.yl)&&y.push({min:o.js,max:o.yl,name:"杠杆失衡区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#FEA474"},{offset:1,color:"#FFAAF6"}]},fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null});-1!=Number(o.gg)&&y.push({min:o.yl,max:o.gg,name:"情绪熔断区",color:{type:"linear",x:0,y:0,x2:1,y2:0,colorStops:[{offset:0,color:"#F66475"},{offset:1,color:"#FFB98E"}]},fontColor:"#A7691C",NumberColor:"white",left:"32%",right:null});const n=e.flatMap((e=>[e[1],e[2],e[3],e[4]]));Math.min(...n);const a=Math.max(...n),l=1.05*Number(o.cc),c=.97*Number(o.cc),m=Math.max(0,r.length-17),u=new Array(r.length).fill(null),w=new Array(r.length).fill(null);for(var x=m;xe.max<=I)),console.log("markLineMax",I,"markLineRegions",f),r.forEach(((e,t)=>{const[i,r,n,a]=e.value,l={date:e.date,value:[null,null,null,null]};(null==A||A.data.value[3]i?r-i:i-r],itemStyle:{normal:{color:"#001EFF"}}}),v.push({value:[t,r>i?i:r],itemStyle:{normal:{color:"transparent"}}}),console.log("lowMiddleRangeData",b),console.log("lowMiddleRangeData111111",v)):(b.push(null),v.push(null))})),F.push({name:`${Number(A.data.value[3]).toFixed(2)}`,coord:[A.index,A.data.value[3]],itemStyle:{normal:{color:"rgba(0,0,0,0)"}},label:{normal:{show:!0,position:"top",formatter:`${Number(A.data.value[3]).toFixed(2)}`,textStyle:{color:"#2171DD",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}}}),F.push({name:`${Number(k.data.value[3]).toFixed(2)}`,coord:[k.index,k.data.value[2]],itemStyle:{normal:{color:"rgba(0,0,0,0)"}},label:{normal:{show:!0,position:"bottom",formatter:`${Number(k.data.value[1]).toFixed(2)}`,textStyle:{color:"#3B8F08",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}}});const L=[];y.forEach((e=>{"情绪熔断区"!=e.name&&"情绪临界区"!=e.name&&"情绪冰点区"!=e.name||L.push({name:e.name,min:e.min,max:e.max,backgroundSize:"10px 10px "})}));const E=[],$={};o.topxh&&o.topxh.length>0&&(E.push({name:"TOP",textStyle:{color:"#000000",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.TOP=!0);o.lowxh&&o.lowxh.length>0&&(E.push({name:"LOW",textStyle:{color:"#001EFF",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.LOW=!0);o.qixh&&o.qixh.length>0&&(E.push({name:"起",textStyle:{color:"#249409",fontSize:window.innerWidth>769?12:9,textBorderColor:"#FFFFFF",textBorderWidth:2,fontWeight:"bold"}}),$.起=!0);let N;p=h.init(d.value),N={legend:{data:E,selected:$,top:window.innerWidth>768?"0%":"1%",textStyle:{fontSize:window.matchMedia("(max-width: 767px)").matches?9:12}},tooltip:{show:!0,trigger:"axis",axisPointer:{type:"cross",lineStyle:{color:"grey",width:1,type:"dashed"},label:{backgroundColor:"rgba(0, 0, 0, 0.8)",color:"#fff",borderColor:"#fff",borderWidth:1}},backgroundColor:"rgba(232, 232, 242, 0.87)",borderColor:"#fff",borderWidth:1,borderRadius:8,padding:10,textStyle:{color:"#fff",fontSize:12},position:function(e,o,t,i,r){const n=window.matchMedia("(max-width: 768px)").matches,a=r.contentSize[0],l=r.contentSize[1],s=r.viewSize[0],d=r.viewSize[1];let c=e[0],h=e[1];return n?(c+a>s-10&&(c=s-a-10),c<10&&(c=10),h-l-20<0?(h+=20,h+l>d-60&&(h=Math.max(20,d-l-60))):h=h-l-20):(c+a>s-20?c=c-a-20:c+=20,h-l<20?h+=20:h=h-l-20),[c,h]},formatter:function(o){if(!o||0===o.length)return"";let t=`
${o[0].name}
`;return o.forEach(((o,r)=>{console.log("参数索引:",r,"系列:",o);let n=o.value;if(o.color,"candlestick"===o.seriesType){const r=i.kai,a=i.shou,l=i.di,s=i.gao;let d,c,h=n[1],m=n[2],u=n[3],w=n[4];if("number"!=typeof h||"number"!=typeof m||"number"!=typeof u||"number"!=typeof w)return"";if(0!=o.data[0]){let t=e[o.data[0]-1][2];d=m-t,c=(d/t*100).toFixed(2)}let x=d>=0?"#32B520":"#D8001B";t+='
',t+=`
${r}: ${h.toFixed(2)}
`,t+=`
${a}: ${m.toFixed(2)}
`,t+=`
${l}: ${u.toFixed(2)}
`,t+=`
${s}: ${w.toFixed(2)}
`,0!=o.data[0]&&(t+=`
涨跌: ${d>=0?"+":""}${d.toFixed(2)} (${c}%)
`,t+="
")}else"止盈线"===o.seriesName&&null!=n&&"number"==typeof n?t+=`
${o.seriesName}: ${n.toFixed(2)}
`:"止损线"===o.seriesName&&null!=n&&"number"==typeof n&&(t+=`
${o.seriesName}: ${n.toFixed(2)}
`)})),t}},dataZoom:[{top:window.innerWidth<=768?"86%":"",type:"slider",xAxisIndex:0,start:0,end:100,show:!0,bottom:40,height:20,borderColor:"#fff",fillerColor:"rgba(255, 255, 255, 0.2)",handleStyle:{color:"#fff",borderColor:"white"},textStyle:{color:"white",fontSize:window.innerWidth>769?12:9}},{type:"inside",xAxisIndex:0,start:0,end:100,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1}],xAxis:{type:"category",data:r.map((e=>e.date)),axisLabel:{rotate:0,color:"white",interval:"auto",fontSize:window.innerWidth>769?12:9,showMaxLabel:!0},axisLine:{onZero:!1,lineStyle:{color:"white"}},axisTick:{alignWithLabel:!0}},yAxis:{scale:!0,axisLine:{lineStyle:{color:"white"}},splitLine:{show:!1},axisLabel:{show:!0,color:"white",fontSize:window.innerWidth>769?12:9,formatter:function(e){return parseFloat(e.toFixed(2)).toString()}},axisTick:{show:!0,color:"white"},min:Math.min(o.dd,.98*c),max:Math.max(1.02*a,1.02*l,o.cc,o.dd,o.gg,o.ht,o.js,o.qs,o.tp,o.yl,o.zc)},graphic:g(Math.min(o.dd,.98*c),Math.max(1.02*a,1.02*l,o.cc,o.dd,o.gg,o.ht,o.js,o.qs,o.tp,o.yl,o.zc)),series:[{type:"candlestick",data:r.map((e=>e.value)),z:3,clip:!0,markPoint:{symbol:"circle",symbolSize:10,data:F,z:5},itemStyle:{normal:{color:"#00AAFF",color0:"#FF007F",borderColor:"#00AAFF",borderColor0:"#FF007F"}},markArea:{silent:!0,data:[...y.map((e=>[{x:"30%",yAxis:e.min,itemStyle:{normal:{color:e.color}}},{x:"95%",yAxis:e.max}])),...L.map((e=>[{x:"30%",yAxis:e.min,itemStyle:{normal:{color:{image:W(e.color,e.backgroundSize),repeat:"repeat"}}}},{x:"95%",yAxis:e.max}]))],markPoint:{symbol:"circle",symbolSize:10,data:F,z:5}},markLine:{silent:!0,symbol:"none",data:[...f.map((e=>[{name:`${Number(e.max).toFixed(2)}`,x:"30%",yAxis:e.max,label:{normal:{position:"start",color:("情绪冰点区"==e.name||"多空消化区"==e.name||e.name,"white"),fontSize:window.innerWidth>769?12:9}},lineStyle:{normal:{color:"#FFFFFF",width:2,type:"dashed"}}},{x:"95%",yAxis:e.max}])),[{name:`止盈${l.toFixed(2)}`,x:"60%",yAxis:l,label:{normal:{position:"start",fontSize:window.innerWidth>769?13:9,fontWeight:"bold",textBorderColor:"#FFFFFF",textBorderWidth:2}},lineStyle:{normal:{color:"#FF0000",width:2,type:"solid"}}},{x:"95%",yAxis:l}],[{name:`止损${c.toFixed(2)}`,x:"60%",yAxis:c,label:{normal:{position:"start",fontSize:window.innerWidth>769?13:9,fontWeight:"bold",textBorderColor:"#FFFFFF",textBorderWidth:2}},lineStyle:{normal:{color:"#001EFF",width:2,type:"solid"}}},{x:"95%",yAxis:c}]]}},{name:"起",type:"candlestick",data:C.value.map((e=>e.value)),itemStyle:{normal:{color:"#87FF6B",color0:"#87FF6B",borderColor:"#87FF6B",borderColor0:"#87FF6B"}},gridIndex:0,z:4,tooltip:{show:!1}},{name:"TOP",type:"candlestick",data:S.value.map((e=>e.value)),itemStyle:{normal:{color:"#000",color0:"#000",borderColor:"#000",borderColor0:"#000"}},gridIndex:0,z:4,tooltip:{show:!1}},{name:"LOW",type:"candlestick",data:z.value.map((e=>e.value)),itemStyle:{normal:{color:"#001EFF",color0:"#001EFF",borderColor:"#001EFF",borderColor0:"#001EFF"}},gridIndex:0,z:4,tooltip:{show:!1}}],grid:{left:window.innerWidth<=768?"2%":"5%",right:(window.innerWidth,"8%"),top:(window.innerWidth,"40"),bottom:"60",containLabel:!0,width:"auto",height:"auto",overflow:"hidden"}},p.setOption(N);const D=(e,o)=>{let t;return function(...i){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...i)}),o)}},M=D((()=>{if(p&&!p.isDisposed())try{p.resize(),console.log("情绪能量转化器图表已重新调整大小")}catch(e){console.error("情绪能量转化器图表resize失败:",e)}}),100);window.emoEnergyConverterResizeHandler&&window.removeEventListener("resize",window.emoEnergyConverterResizeHandler);if(window.addEventListener("resize",M),window.emoEnergyConverterResizeHandler=M,d.value&&window.ResizeObserver){const e=new ResizeObserver(D((()=>{if(p&&!p.isDisposed())try{p.resize(),console.log("情绪能量转化器容器大小变化,图表已调整")}catch(e){console.error("情绪能量转化器容器resize失败:",e)}}),100));e.observe(d.value),window.emoEnergyConverterContainerObserver=e}}});let d=t(null),p=null,y=c([]),f=c([]);function b(e,o,t,i,r){const n=p.getHeight(),a=100+(window.innerHeight>769?17:14);return console.log("%",(o-Number(r))/(o-e)*(n-a)),console.log("chartHeight",n),(o-Number(r))/(o-e)*(n-a)}t(null);const g=(e,o)=>{let t,i;for(let r=0;r{if(!t.min||!t.max)return[](Number(t.min)+Number(t.max))/2;const i=(Math.max(e,t.min)+Math.min(o,t.max))/2,r=t.min>=e&&t.max<=o,n=t.mine&&!r,a=p?p.getHeight():400,l=Math.max(t.min,e),s=Math.min(t.max,o),d=[];return(r||n)&&(s-l)/(o-e)*(a-60)>=5&&d.push({type:"text",left:t.left,right:t.right,top:window.innerWidth>769?40+b(e,o,0,0,i)-6:40+b(e,o,0,0,i)-4.5,style:{text:t.name,fill:t.fontColor,fontSize:window.innerWidth>769?12:9,fontWeight:"bold",textVerticalAlign:"middle"},z:2}),d}))};return t(),t(),r((()=>{p&&(p.dispose(),p=null),window.emoEnergyConverterResizeHandler&&(window.removeEventListener("resize",window.emoEnergyConverterResizeHandler),window.emoEnergyConverterResizeHandler=null),window.emoEnergyConverterContainerObserver&&(window.emoEnergyConverterContainerObserver.disconnect(),window.emoEnergyConverterContainerObserver=null)})),(e,o)=>(n(),a("div",{ref_key:"qxnlzhqEchartsRef",ref:d,class:"qxnlzhqEcharts"},null,512))}},[["__scopeId","data-v-09eb69c0"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/emoEnergyConverter.vue"]]);export{b as E,g as a,y as e}; diff --git a/dev/static/js/emotionsEcharts-35f60abf.js b/dev/static/js/emotionsEcharts-0a5469dd.js similarity index 67% rename from dev/static/js/emotionsEcharts-35f60abf.js rename to dev/static/js/emotionsEcharts-0a5469dd.js index 1f388a9..78e0744 100644 --- a/dev/static/js/emotionsEcharts-35f60abf.js +++ b/dev/static/js/emotionsEcharts-0a5469dd.js @@ -1 +1 @@ -import{_ as a,r as e,o as t,a7 as r,y as n,b as o,c as i,J as s,H as l,F as m}from"./index-4cb6f38c.js";import{a as d,e as f,E as u}from"./emoEnergyConverter-30c0a2be.js";import{m as p}from"./marketTemperature-7871708f.js";import"./index-5d1237a4.js";import"./moment-6961f857.js";var c=a({__name:"emotionsEcharts",setup(a){const c=e(null),k=e(null),v=e(null),E=e(null);return t((()=>{r({method:"post",url:"http://39.101.133.168:8828/link/api/aiEmotion/client/getAiEmotionData",data:{token:"9ior41AF0xTIbIG2pRnnbZi0+fEeMx8pywnIlrmTwo5FbqJ9lWrSWOxp9MkpKiNtedtUafqvzIwpFKrwuMs",market:"my",code:"1295",language:"cn",version:1},headers:{"content-type":"application/json"}}).then((a=>{n((()=>{c.value.initQXNLZHEcharts(a.data.data.KLine20,a.data.data.QXNLZHQ),k.value.initQXNLZHEcharts(a.data.data.KLine20,a.data.data.QXJMQ),v.value.initEmotionalBottomRadar(a.data.data.KLine20,a.data.data.QXTDLD),E.value.initChart(a.data.data.GSWDJ,a.data.data.KLine20,a.data.data.WDRL)}))}))})),(a,e)=>(o(),i(m,null,[e[0]||(e[0]=s(" AI情绪大模型 ")),l(d,{ref_key:"emoEnergyConverterRef",ref:c},null,512),l(f,{ref_key:"emotionDecodRef",ref:k},null,512),l(u,{ref_key:"emotionalBottomRadarRef",ref:v},null,512),l(p,{ref_key:"marketTemperatureRef",ref:E},null,512)],64))}},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/emotionsEcharts.vue"]]);export{c as default}; +import{_ as a,r as e,o as t,a7 as r,y as n,b as o,c as i,J as s,H as d,F as l}from"./index-7d881374.js";import{a as m,e as f,E as u}from"./emoEnergyConverter-7a8b83fd.js";import{m as p}from"./marketTemperature-3afd7f01.js";import"./index-bce0856e.js";import"./moment-6961f857.js";var c=a({__name:"emotionsEcharts",setup(a){const c=e(null),k=e(null),v=e(null),E=e(null);return t((()=>{r({method:"post",url:"http://39.101.133.168:8828/link/api/aiEmotion/client/getAiEmotionData",data:{token:"9ior41AF0xTIbIG2pRnnbZi0+fEeMx8pywnIlrmTwo5FbqJ9lWrSWOxp9MkpKiNtedtUafqvzIwpFKrwuMs",market:"my",code:"1295",language:"cn",version:1},headers:{"content-type":"application/json"}}).then((a=>{n((()=>{c.value.initQXNLZHEcharts(a.data.data.KLine20,a.data.data.QXNLZHQ),k.value.initQXNLZHEcharts(a.data.data.KLine20,a.data.data.QXJMQ),v.value.initEmotionalBottomRadar(a.data.data.KLine20,a.data.data.QXTDLD),E.value.initChart(a.data.data.GSWDJ,a.data.data.KLine20,a.data.data.WDRL)}))}))})),(a,e)=>(o(),i(l,null,[e[0]||(e[0]=s(" AI情绪大模型 ")),d(m,{ref_key:"emoEnergyConverterRef",ref:c},null,512),d(f,{ref_key:"emotionDecodRef",ref:k},null,512),d(u,{ref_key:"emotionalBottomRadarRef",ref:v},null,512),d(p,{ref_key:"marketTemperatureRef",ref:E},null,512)],64))}},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/emotionsEcharts.vue"]]);export{c as default}; diff --git a/dev/static/js/goldenWheel-3fdeb9f6.js b/dev/static/js/goldenWheel-3fdeb9f6.js deleted file mode 100644 index 0181e8f..0000000 --- a/dev/static/js/goldenWheel-3fdeb9f6.js +++ /dev/null @@ -1 +0,0 @@ -import{a6 as e,_ as s,b as i,c as l,d as o,e as t,C as n,B as a,X as c,D as r}from"./index-4cb6f38c.js";const d={class:"wheel-container"},m={class:"top-section"},h={class:"expire-time"},g={class:"top-right"},u={class:"icon-item"},p=["src"],f=["src"],v=["src"],b={class:"wheel-section"},I={class:"wheel-wrapper"},T=["src"],w=["src"],z=["src"],M={class:"remaining-section"},k=["src"],R={class:"remaining-text"},x=["disabled"],y=["src"],C={key:0,class:"prize-modal"},A={class:"modal-content"},B=["src"],F=["src"],P={class:"prize-info"},S={class:"prize-title"},V={class:"prize-amount-wrapper"},W=["src"],L={class:"prize-amount"},N={key:1,class:"no-times-modal"},U={class:"no-times-content"},D=["src"],_={key:2,class:"rule-modal"},q={class:"rule-content"},H=["src"],Q=["src"],E={key:3,class:"rule-modal"},X={class:"rule-content"},j=["src"],G=["src"];var K=s({name:"FortuneWheel",data:()=>({historyImg:"https://d31zlh4on95l9h.cloudfront.net/images/aed693de6beb9faae015fd0628c4f052.png",ruleImg:"https://d31zlh4on95l9h.cloudfront.net/images/9a3f7680b29e31b60151cf562c0d43cb.png",homeImg:"https://d31zlh4on95l9h.cloudfront.net/images/453475456dad8e6832e9904c901c1274.png",titleImg:"https://d31zlh4on95l9h.cloudfront.net/images/a87d19806fed47b7fdf18d4b5dd70e65.png",wheelImg:"https://d31zlh4on95l9h.cloudfront.net/images/d925f375c9ef15a751500ae130d91fe5.png",pointerImg:"https://d31zlh4on95l9h.cloudfront.net/images/9c09631c202b78cc06b8935c17431dac.png",pointerCoverImg:"https://d31zlh4on95l9h.cloudfront.net/images/536c171c263990b12f1cc0a6e511b5e7.png",remainingBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/a43f0c383d55fc56b34768f039a401a8.png",spinBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/11b749e0fd4b08238980b74c6e80b2e6.png",disabledSpinBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/9b7383c1f80bb32a279791879947791a.png",modalBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/f75ce9ca2703662fd3176dd0493f6d7b.png",prizeAmountImg:"https://d31zlh4on95l9h.cloudfront.net/images/878b8ea0c78bcafdaf4f6eb63a0b2eef.png",closeBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/453475456dad8e6832e9904c901c1274.png",noTimesImg:"https://d31zlh4on95l9h.cloudfront.net/images/a67e8b3de6e441af7bcb8fbbb2153ec2.png",ruleBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/9f585ee0ab251f348a4568355ad36816.png",closeRuleBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/ca2ddd411ffb85968bc261382477c984.png",token:"",expireTime:"",remainingTimes:0,isSpinning:!1,showPrizeModal:!1,showNoTimesModal:!1,showRuleModal:!1,isFirstVisit:!0,currentRotation:0,noTimesTimer:null,prizeMessage:"",prizeAmount:""}),mounted(){this.token=decodeURIComponent(this.getQueryString("token")),this.fetchWheelInfo(),this.getTokenFromURL()},methods:{getQueryString(e){var s=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),i=window.location.search.substr(1).match(s);return console.log("获取token方法getQueryString"+s),console.log("获取token方法getQueryString"+i),null!=i?unescape(i[2]):null},getTokenFromURL(){const e=new URLSearchParams(window.location.search).get("token");console.log("getTokenFromURL"+e),e?(this.token=decodeURIComponent(e),console.log("getTokenFromURL"+this.token),console.log("获取到Token:",this.token)):console.log("URL中没有找到token参数")},fetchWheelInfo(){var s;(s={token:"pC134lIG1xDIbIi1ohnnbZi0+fEeMx8pywnIlrmTxdwROKkuwWqAWu9orpkpeXVqL98DPfeonNYpHv+mucA"},e({url:"http://h4698ee4.natappfree.cc/api/goldWheel/info",method:"post",data:s})).then((e=>{200===e.code?(this.expireTime=e.data.deadline,this.remainingTimes=e.data.count):console.error("API返回错误:",e.msg)})).catch((e=>{console.error("API调用失败:",e)}))},fetchPrizeInfo(){return(s={token:"pC134lIG1xDIbIi1ohnnbZi0+fEeMx8pywnIlrmTxdwROKkuwWqAWu9orpkpeXVqL98DPfeonNYpHv+mucA"},e({url:"http://h4698ee4.natappfree.cc/api/goldWheel/drawPrize",method:"post",data:s})).then((e=>{if(200===e.code){const s=e.data.split(" ");return this.prizeMessage=s.slice(0,-1).join(" "),this.prizeAmount=s[s.length-1],this.fetchWheelInfo(),!0}return console.error("抽奖API返回错误:",e.msg),this.prizeMessage="抽奖失败",this.prizeAmount="请重试",!1})).catch((e=>(console.error("抽奖API调用失败:",e),this.prizeMessage="网络错误",this.prizeAmount="请重试",!1)));var s},async handleSpin(){if(this.showRuleModal||this.isFirstVisit)return;if(this.remainingTimes<=0)return this.showNoTimesModal=!0,this.noTimesTimer&&clearTimeout(this.noTimesTimer),void(this.noTimesTimer=setTimeout((()=>{this.showNoTimesModal=!1}),3e3));if(this.isSpinning)return;this.isSpinning=!0;const e=this.currentRotation+1440;this.currentRotation=e;const s=await this.fetchPrizeInfo();setTimeout((()=>{this.isSpinning=!1,s&&setTimeout((()=>{this.showPrizeModal=!0}),500)}),3e3)},handleRuleClick(){this.showRuleModal=!0},closeModal(){this.showPrizeModal=!1},closeNoTimesModal(){this.showNoTimesModal=!1,this.noTimesTimer&&clearTimeout(this.noTimesTimer)},closeRuleModal(){this.showRuleModal=!1},closeFirstVisitModal(){this.isFirstVisit=!1}}},[["render",function(e,s,K,O,Y,Z){return i(),l("div",d,[o(" 顶部区域 "),t("div",m,[t("div",h,"财富金轮到期时间:"+n(Y.expireTime),1),t("div",g,[t("div",u,[t("img",{src:Y.historyImg,class:"history-icon",alt:"历史记录"},null,8,p),s[9]||(s[9]=t("span",{class:"icon-text"},"历史记录",-1))]),t("div",{class:"icon-item",onClick:s[0]||(s[0]=(...e)=>Z.handleRuleClick&&Z.handleRuleClick(...e))},[t("img",{src:Y.ruleImg,class:"rule-icon",alt:"活动规则"},null,8,f),s[10]||(s[10]=t("span",{class:"icon-text"},"活动规则",-1))])])]),o(" 主标题图片 "),t("img",{src:Y.titleImg,class:"title-img",alt:"转动财富金轮 开启财富人生"},null,8,v),o(" 转盘区域 "),t("div",b,[t("div",I,[o(" 转盘图片尺寸:333x333 "),t("img",{src:Y.wheelImg,class:a(["wheel-img",{spinning:Y.isSpinning}]),style:c({transform:`rotate(${Y.currentRotation}deg)`}),alt:"财富金轮",ref:"wheel"},null,14,T),o(" 指针图片尺寸:137x137 "),t("img",{src:Y.pointerImg,class:"pointer-img",alt:"指针"},null,8,w),o(" 指针盖图片尺寸:104x106 "),t("img",{src:Y.pointerCoverImg,class:"pointer-cover-img",alt:"指针盖"},null,8,z)])]),o(" 剩余次数 "),t("div",M,[t("img",{src:Y.remainingBgImg,class:"remaining-bg",alt:"今日剩余"},null,8,k),t("span",R,"今日剩余:"+n(Y.remainingTimes)+"次",1)]),o(" 转动按钮 "),t("button",{class:"spin-btn",disabled:Y.isSpinning||Y.showPrizeModal||Y.showRuleModal||Y.isFirstVisit||0===Y.remainingTimes,onClick:s[1]||(s[1]=(...e)=>Z.handleSpin&&Z.handleSpin(...e))},[t("img",{src:Y.remainingTimes>0&&!Y.showPrizeModal&&!Y.showRuleModal&&!Y.isFirstVisit?Y.spinBtnImg:Y.disabledSpinBtnImg,alt:"转动金轮",class:"spin-btn-img"},null,8,y)],8,x),o(" 中奖弹窗 "),Y.showPrizeModal?(i(),l("div",C,[t("div",{class:"modal-overlay",onClick:s[2]||(s[2]=(...e)=>Z.closeModal&&Z.closeModal(...e))}),t("div",A,[t("img",{src:Y.modalBgImg,class:"modal-bg",alt:"弹窗背景"},null,8,B),o(" 右上角关闭按钮 "),t("button",{class:"close-modal",onClick:s[3]||(s[3]=(...e)=>Z.closeModal&&Z.closeModal(...e))},[t("img",{src:Y.closeBtnImg,alt:"关闭弹窗"},null,8,F)]),t("div",P,[t("div",S,n(Y.prizeMessage),1),t("div",V,[t("img",{src:Y.prizeAmountImg,class:"prize-amount-bg",alt:"奖品数量背景"},null,8,W),t("div",L,n(Y.prizeAmount),1)])])])])):o("v-if",!0),o(" 剩余次数为0时的提示弹窗 "),Y.showNoTimesModal?(i(),l("div",N,[t("div",{class:"modal-overlay",onClick:s[4]||(s[4]=(...e)=>Z.closeNoTimesModal&&Z.closeNoTimesModal(...e))}),t("div",U,[t("img",{src:Y.noTimesImg,class:"no-times-bg",alt:"今日次数已用完"},null,8,D)])])):o("v-if",!0),o(" 活动规则弹窗 "),Y.showRuleModal?(i(),l("div",_,[t("div",{class:"modal-overlay",onClick:s[5]||(s[5]=(...e)=>Z.closeRuleModal&&Z.closeRuleModal(...e))}),t("div",q,[t("img",{src:Y.ruleBgImg,class:"rule-bg",alt:"活动规则背景"},null,8,H),o(" 右上角关闭按钮 "),t("button",{class:"close-rule-btn",onClick:s[6]||(s[6]=(...e)=>Z.closeRuleModal&&Z.closeRuleModal(...e))},[t("img",{src:Y.closeRuleBtnImg,alt:"关闭活动规则"},null,8,Q)]),s[11]||(s[11]=r('
1.在财富金轮使用期限内,每天可以转动一次
2.通过财富金轮可以获得免费Tonken和背包礼物等
3.用户通过财富金轮获得的物品以最终展示结果为准
4.Homily Link平台拥有最终解释权
',1))])])):o("v-if",!0),o(" 首次访问活动规则弹窗 "),Y.isFirstVisit?(i(),l("div",E,[t("div",{class:"modal-overlay",onClick:s[7]||(s[7]=(...e)=>Z.closeFirstVisitModal&&Z.closeFirstVisitModal(...e))}),t("div",X,[t("img",{src:Y.ruleBgImg,class:"rule-bg",alt:"活动规则背景"},null,8,j),o(" 右上角关闭按钮 "),t("button",{class:"close-rule-btn",onClick:s[8]||(s[8]=(...e)=>Z.closeFirstVisitModal&&Z.closeFirstVisitModal(...e))},[t("img",{src:Y.closeRuleBtnImg,alt:"关闭活动规则"},null,8,G)]),s[12]||(s[12]=r('
1.在财富金轮使用期限内,每天可以转动一次
2.通过财富金轮可以获得免费Tonken和背包礼物等
3.用户通过财富金轮获得的物品以最终展示结果为准
4.Homily Link平台拥有最终解释权
',1))])])):o("v-if",!0)])}],["__scopeId","data-v-6bde140a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/wealth/goldenWheel.vue"]]);export{K as default}; diff --git a/dev/static/js/goldenWheel-482272f3.js b/dev/static/js/goldenWheel-482272f3.js new file mode 100644 index 0000000..2755080 --- /dev/null +++ b/dev/static/js/goldenWheel-482272f3.js @@ -0,0 +1 @@ +import{a6 as e,_ as t,b as s,c as i,d as o,e as l,C as n,B as a,X as r,D as d,F as c,A as h,J as m}from"./index-7d881374.js";var g={packageFun:function(e,t=function(){},s={}){var i=this.fullClose(1e4,99999);s.JWrandom=i;try{if(2==s.platform)window.api.sendEvent({name:e,extra:{data:s}});else if(3==s.platform){let t={name:e,extra:{data:s}};window.webkit.messageHandlers.getTouJiaoData.postMessage(JSON.stringify(t))}else if(4==s.platform){let t={name:e,extra:{data:s}};window.android.getTouJiaoData(JSON.stringify(t))}else if(5==s.platform){let t={name:e,extra:{data:s}};window.uni.postMessage({data:{val:JSON.stringify(t)}})}}catch(o){console.log(o)}window[e+i]=t;try{window.parent[e+i]=t}catch(l){}},fullClose:function(e,t){for(var s=Math.random()*(t+1-e)+e;s>t;)s=Math.random()*(t+1-e)+e;return parseInt(s)}};const p="http://39.101.133.168:8828/scms";const u={class:"wheel-container"},v={class:"top-section"},f={class:"expire-time"},y={class:"top-right"},b=["src"],k=["src"],I=["src"],A={class:"wheel-section"},w={class:"wheel-wrapper"},M=["src"],T={class:"pointer-system"},x=["src"],R={class:"remaining-section"},z=["src"],C={class:"remaining-text"},B=["disabled"],S=["src"],P={key:0,class:"prize-modal"},V={class:"modal-content"},F=["src"],H=["src"],W={class:"prize-info"},E={class:"prize-title"},L={class:"prize-amount-wrapper"},N=["src"],U={key:0,class:"prize-text"},X={key:1},J={key:1,class:"no-times-modal"},O={class:"no-times-content"},j=["src"],Q={key:2,class:"rule-modal"},K={class:"rule-content"},q=["src"],Y=["src"],D={key:3,class:"rule-modal"},Z={class:"rule-content"},G=["src"],$=["src"],_={key:4,class:"history-record"},ee={style:{"margin-left":"45px","margin-top":"18px"}},te=["onClick"],se={class:"history-contents"},ie={key:0,style:{"padding-left":"45px"}},oe=["onClick"],le={class:"month-text"},ne={class:"month-caret"},ae={key:0},re={key:0,class:"empty-month"},de={class:"left"},ce={key:0,class:"title"},he={key:1,class:"title"},me={class:"time"},ge={class:"right"},pe={class:"token"},ue={key:1},ve=["onClick"],fe={class:"year-text"},ye={class:"year-caret"},be={key:0,class:"months",style:{"padding-left":"45px"}},ke=["onClick"],Ie={class:"month-text"},Ae={class:"month-caret"},we={key:0},Me={key:0,class:"empty-month"},Te={class:"left"},xe={key:0,class:"title"},Re={key:1,class:"title"},ze={class:"time"},Ce={class:"right"},Be={class:"token"};var Se=t({name:"FortuneWheel",data:()=>({historyImg:"https://d31zlh4on95l9h.cloudfront.net/images/aed693de6beb9faae015fd0628c4f052.png",ruleImg:"https://d31zlh4on95l9h.cloudfront.net/images/9a3f7680b29e31b60151cf562c0d43cb.png",titleImg:"https://d31zlh4on95l9h.cloudfront.net/images/a87d19806fed47b7fdf18d4b5dd70e65.png",wheelImg:"https://d31zlh4on95l9h.cloudfront.net/images/caaf77a490be46c56ae824d2d9aa72f4.png",pointerCoverImg:"https://d31zlh4on95l9h.cloudfront.net/images/19f2ea90e2560330089214e88eff04b5.png",remainingBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/a43f0c383d55fc56b34768f039a401a8.png",spinBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/11b749e0fd4b08238980b74c6e80b2e6.png",disabledSpinBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/9b7383c1f80bb32a279791879947791a.png",modalBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/f75ce9ca2703662fd3176dd0493f6d7b.png",prizeAmountImg:"https://d31zlh4on95l9h.cloudfront.net/images/878b8ea0c78bcafdaf4f6eb63a0b2eef.png",closeBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/453475456dad8e6832e9904c901c1274.png",noTimesImg:"https://d31zlh4on95l9h.cloudfront.net/images/a67e8b3de6e441af7bcb8fbbb2153ec2.png",ruleBgImg:"https://d31zlh4on95l9h.cloudfront.net/images/9f585ee0ab251f348a4568355ad36816.png",closeRuleBtnImg:"https://d31zlh4on95l9h.cloudfront.net/images/ca2ddd411ffb85968bc261382477c984.png",token:"",expireTime:"",remainingTimes:0,isSpinning:!1,showPrizeModal:!1,showNoTimesModal:!1,showRuleModal:!1,isFirstVisit:!0,pointerRotation:-21.5,noTimesTimer:null,prizeMessage:"",prizeAmount:"",textWidth:0,targetPointerRotation:0,historyRecordListVisible:!1,nowMonths:[],years:[],selected:1,options:[{label:"Token",value:1},{label:"卡券",value:3}]}),computed:{shouldScroll(){if(!this.prizeAmount)return!1;const e=(this.prizeAmount.match(/[\u4e00-\u9fa5]/g)||[]).length,t=(this.prizeAmount.match(/[a-zA-Z]/g)||[]).length;return e>7||t>15}},mounted(){this.getTokenFromURL(),this.fetchWheelInfo(),this.preloadImages(),g.packageFun("JWsetTitle",(function(){}),{platform:5,title:"财富金轮"})},methods:{toggleHistory(){this.historyRecordListVisible=!this.historyRecordListVisible,this.selected=1,this.historyRecordListVisible&&this.loadHistoryRecord()},changeTypeHistoryList(e){this.selected=e.value,this.loadHistoryRecord()},async loadHistoryRecord(){try{const s=await(t={token:this.token,type:this.selected},e({url:`${p}/api/goldWheel/getRecords`,method:"post",data:t}));if(200===s.code){const e=s.data.now_year||[],t=s.data.last_year_list||[];this.nowMonths=(Array.isArray(e)?e:[]).map(((e,t)=>({month:e.month,open:0===t,records:(e.list||[]).map(((e,t)=>({id:t,time:e.time,amount:parseFloat(e.num),type:e.name})))}))),this.years=(Array.isArray(t)?t:[]).map((e=>({year:e.year,expanded:!1,months:(e.list||[]).map((e=>({month:e.month,open:!1,records:(e.list||[]).map(((e,t)=>({id:t,time:e.time,amount:parseFloat(e.num),type:e.name})))})))})))}else this.nowMonths=[],this.years=[]}catch(s){this.nowMonths=[],this.years=[]}var t},toggleMonthNow(e){e.open=!e.open},toggleYear(e){e.expanded=!e.expanded},toggleMonth(e){e.open=!e.open},preloadImages(){[this.historyImg,this.ruleImg,this.titleImg,this.wheelImg,this.pointerCoverImg,this.remainingBgImg,this.spinBtnImg,this.disabledSpinBtnImg,this.modalBgImg,this.prizeAmountImg,this.closeBtnImg,this.noTimesImg,this.ruleBgImg,this.closeRuleBtnImg].forEach((e=>{(new Image).src=e}))},getTokenFromURL(){const e=new URLSearchParams(window.location.search).get("token");if(e){const t=decodeURIComponent(e);localStorage.setItem("fortuneWheelToken",t),this.token=t}else{const e=localStorage.getItem("fortuneWheelToken");e?this.token=e:console.log("URL和localStorage中都没有找到token")}},fetchWheelInfo(){var t;this.token?(t={token:this.token},e({url:`${p}/api/goldWheel/info`,method:"post",data:t})).then((e=>{200===e.code?(this.expireTime=e.data.deadline,this.remainingTimes=e.data.count):console.error("API返回错误:",e.msg)})).catch((e=>{console.error("API调用失败:",e)})):console.error("Token为空,无法调用API")},async fetchPrizeInfo(){if(!this.token)return console.error("Token为空,无法调用抽奖API"),!1;try{const s=await(t={token:this.token},e({url:`${p}/api/goldWheel/drawPrize`,method:"post",data:t}));if(200===s.code){const e=s.data,t=e.indexOf(" ");return-1!==t?(this.prizeMessage=e.substring(0,t),this.prizeAmount=e.substring(t+1)):(this.prizeMessage=e,this.prizeAmount=""),await this.fetchWheelInfo(),!0}return console.error("抽奖API返回错误:",s.msg),this.prizeMessage="抽奖失败",this.prizeAmount="请重试",await this.fetchWheelInfo(),!1}catch(s){return console.error("抽奖API调用失败:",s),this.prizeMessage="网络错误",this.prizeAmount="请重试",await this.fetchWheelInfo(),!1}var t},calculateRandomStop(){const e=45*Math.floor(8*Math.random())-21.5,t=360*(3+Math.floor(3*Math.random()));let s=e-this.pointerRotation;return s<0&&(s+=360),this.pointerRotation+s+t},async handleSpin(){if(!(this.showRuleModal||this.isFirstVisit||this.isSpinning))try{if(this.remainingTimes<=0)return this.showNoTimesModal=!0,this.noTimesTimer&&clearTimeout(this.noTimesTimer),void(this.noTimesTimer=setTimeout((()=>{this.showNoTimesModal=!1}),3e3));this.isSpinning=!0,this.targetPointerRotation=this.calculateRandomStop(),document.documentElement.style.setProperty("--target-pointer-rotation",`${this.targetPointerRotation}deg`),this.pointerRotation=this.targetPointerRotation;const e=await this.fetchPrizeInfo();setTimeout((()=>{this.isSpinning=!1,e&&setTimeout((()=>{this.showPrizeModal=!0}),500)}),5e3)}catch(e){console.error("查询剩余次数失败:",e),this.isSpinning=!1}},handleRuleClick(){this.showRuleModal=!0},closeModal(){this.showPrizeModal=!1},closeNoTimesModal(){this.showNoTimesModal=!1,this.noTimesTimer&&clearTimeout(this.noTimesTimer)},closeRuleModal(){this.showRuleModal=!1},closeFirstVisitModal(){this.isFirstVisit=!1},goToHistory(){this.$router.push("/history")},calcTextWidth(){if(!this.shouldScroll||!this.prizeAmount)return;const e=document.createElement("span");e.style.visibility="hidden",e.style.position="absolute",e.style.whiteSpace="nowrap",e.style.fontSize="25px",e.style.fontWeight="bold",e.style.fontFamily="inherit",e.textContent=this.prizeAmount,document.body.appendChild(e),this.textWidth=e.offsetWidth,document.body.removeChild(e);const t=document.getElementById("scroll-animation-style");t&&t.remove();const s=document.createElement("style");s.id="scroll-animation-style",s.textContent=`\n @keyframes seamless-scroll {\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-${this.textWidth+20}px); }\n }\n @media (max-width: 380px) {\n @keyframes seamless-scroll {\n 0% { transform: translateX(0); }\n 100% { transform: translateX(-${this.textWidth+16}px); }\n }\n }\n .prize-amount.scrolling .prize-text {\n animation: seamless-scroll ${Math.max(5,this.textWidth/30)}s linear infinite;\n padding-right: 20px;\n display: inline-block;\n }\n `,document.head.appendChild(s)}},watch:{prizeAmount(e){e&&this.shouldScroll&&this.$nextTick((()=>{this.calcTextWidth()}))}}},[["render",function(e,t,g,p,Se,Pe){return s(),i("div",u,[o(" 顶部区域 "),l("div",v,[l("div",f,"财富金轮到期时间:"+n(Se.expireTime),1),l("div",y,[l("div",{class:"icon-item",onClick:t[0]||(t[0]=(...e)=>Pe.toggleHistory&&Pe.toggleHistory(...e))},[l("img",{src:Se.historyImg,class:"history-icon",alt:"历史记录"},null,8,b),t[11]||(t[11]=l("span",{class:"icon-text"},"历史记录",-1))]),l("div",{class:"icon-item",onClick:t[1]||(t[1]=(...e)=>Pe.handleRuleClick&&Pe.handleRuleClick(...e))},[l("img",{src:Se.ruleImg,class:"rule-icon",alt:"活动规则"},null,8,k),t[12]||(t[12]=l("span",{class:"icon-text"},"活动规则",-1))])])]),o(" 主标题图片 "),l("img",{src:Se.titleImg,class:"title-img",alt:"转动财富金轮 开启财富人生"},null,8,I),o(" 转盘区域 - 完全重构 "),l("div",A,[l("div",w,[o(" 转盘图片 "),l("img",{src:Se.wheelImg,class:"wheel-img",alt:"财富金轮"},null,8,M),o(" 指针系统 - 使用绝对精确的定位 "),l("div",T,[o(" 中心固定点 - 作为旋转参考 "),t[13]||(t[13]=l("div",{class:"rotation-center"},null,-1)),o(" 指针图片 - 使用精确的transform-origin "),l("img",{src:"/aixiaocaishen/static/images/pointer-32424fb8.png",class:a(["pointer-img",{spinning:Se.isSpinning}]),style:r({transform:`rotate(${Se.pointerRotation}deg)`}),alt:"指针"},null,6),o(" 指针中心盖 "),l("img",{src:Se.pointerCoverImg,class:"pointer-cover-img",alt:"指针盖"},null,8,x)])])]),o(" 剩余次数 "),l("div",R,[l("img",{src:Se.remainingBgImg,class:"remaining-bg",alt:"今日剩余"},null,8,z),l("span",C,"今日剩余:"+n(Se.remainingTimes)+"次",1)]),o(" 转动按钮 "),l("button",{class:"spin-btn",disabled:Se.isSpinning||Se.showPrizeModal||Se.showRuleModal||Se.isFirstVisit,onClick:t[2]||(t[2]=(...e)=>Pe.handleSpin&&Pe.handleSpin(...e))},[l("img",{src:Se.remainingTimes>0&&!Se.showPrizeModal&&!Se.showRuleModal&&!Se.isFirstVisit?Se.spinBtnImg:Se.disabledSpinBtnImg,alt:"转动金轮",class:"spin-btn-img"},null,8,S)],8,B),o(" 中奖弹窗 "),Se.showPrizeModal?(s(),i("div",P,[l("div",{class:"modal-overlay",onClick:t[3]||(t[3]=(...e)=>Pe.closeModal&&Pe.closeModal(...e))}),l("div",V,[l("img",{src:Se.modalBgImg,class:"modal-bg",alt:"弹窗背景"},null,8,F),o(" 右上角关闭按钮 "),l("button",{class:"close-modal",onClick:t[4]||(t[4]=(...e)=>Pe.closeModal&&Pe.closeModal(...e))},[l("img",{src:Se.closeBtnImg,alt:"关闭弹窗"},null,8,H)]),l("div",W,[l("div",E,n(Se.prizeMessage),1),l("div",L,[l("img",{src:Se.prizeAmountImg,class:"prize-amount-bg",alt:"奖品数量背景"},null,8,N),l("div",{class:a(["prize-amount",{scrolling:Pe.shouldScroll}])},[Pe.shouldScroll?(s(),i("span",U,n(Se.prizeAmount)+"   "+n(Se.prizeAmount),1)):(s(),i("span",X,n(Se.prizeAmount),1))],2)])])])])):o("v-if",!0),o(" 剩余次数为0时的提示弹窗 "),Se.showNoTimesModal?(s(),i("div",J,[l("div",{class:"modal-overlay",onClick:t[5]||(t[5]=(...e)=>Pe.closeNoTimesModal&&Pe.closeNoTimesModal(...e))}),l("div",O,[l("img",{src:Se.noTimesImg,class:"no-times-bg",alt:"今日次数已用完"},null,8,j)])])):o("v-if",!0),o(" 活动规则弹窗 "),Se.showRuleModal?(s(),i("div",Q,[l("div",{class:"modal-overlay",onClick:t[6]||(t[6]=(...e)=>Pe.closeRuleModal&&Pe.closeRuleModal(...e))}),l("div",K,[l("img",{src:Se.ruleBgImg,class:"rule-bg",alt:"活动规则背景"},null,8,q),o(" 右上角关闭按钮 "),l("button",{class:"close-rule-btn",onClick:t[7]||(t[7]=(...e)=>Pe.closeRuleModal&&Pe.closeRuleModal(...e))},[l("img",{src:Se.closeRuleBtnImg,alt:"关闭活动规则"},null,8,Y)]),t[14]||(t[14]=d('
1.在财富金轮使用期限内,每天可以转动一次
2.通过财富金轮可以获得免费Tonken和背包礼物等
3.用户通过财富金轮获得的物品以最终展示结果为准
4.Homily Link平台拥有最终解释权
',1))])])):o("v-if",!0),o(" 首次访问活动规则弹窗 "),Se.isFirstVisit?(s(),i("div",D,[l("div",{class:"modal-overlay",onClick:t[8]||(t[8]=(...e)=>Pe.closeFirstVisitModal&&Pe.closeFirstVisitModal(...e))}),l("div",Z,[l("img",{src:Se.ruleBgImg,class:"rule-bg",alt:"活动规则背景"},null,8,G),o(" 右上角关闭按钮 "),l("button",{class:"close-rule-btn",onClick:t[9]||(t[9]=(...e)=>Pe.closeFirstVisitModal&&Pe.closeFirstVisitModal(...e))},[l("img",{src:Se.closeRuleBtnImg,alt:"关闭活动规则"},null,8,$)]),t[15]||(t[15]=d('
1.在财富金轮使用期限内,每天可以转动一次
2.通过财富金轮可以获得免费Tonken和背包礼物等
3.用户通过财富金轮获得的物品以最终展示结果为准
4.Homily Link平台拥有最终解释权
',1))])])):o("v-if",!0),o(" 右侧历史记录侧板 "),Se.historyRecordListVisible?(s(),i("div",_,[l("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAABKRJREFUSEu1V01oXFUU/s6bvzc/MSaTTCZtfqqNYiltQevGTVciVBR0kZUouFFX7lyVIkWwBalQLKWoaCtaRIWKO1euVERpjVqNG1dCnWKbpkkzmcy7R879ee++N2+CP3gX8+7Puec753znnnuHkNPUmYVPifA4iMBEICJIHwT79fqBTAKQbywT5Ms6PcA5uytB51MLkyjyHxptbAYIR40S+XHAdpiec+u+rOvbNRn214CNjsoF5oLqiPU0vQ+oNy2wp9AHjvs2GrlrFkY+HAF/XjK++E085iDq6PDeOQuEI0l4tVJPSdx3HnmeubC7PcUQKNYBbAMMijppPoVrwXScg2WQ8O9zT5ZvN2e/tSlgZB6AMh7z0bEXmIPDsdcFLqFUfCSObyomnkd6Q2bscsGFW8bVCqh5B1BtJcDXL4HUyxPrAAogBtjoAqiSl+3/do52t4F6GxiZA5iBG5eZ1LHJVWe8BRbohrEgtmQ45kCWDIrS3CTQaAONORPq69+D1Cuta4Y8McUwC6Lxbb2LQypbXBtiqLCxowk0WkBjHmAFrAjwq+3f9dZERwBCOw3sZfJ2FsXYvhEMTI2B6lNAY9Z4vLIEUsenf0vpIkjZkZjkt4HQWhA5PsOYmRgF1cXjGePhjR9AfGLnMrsdAslcYKLdg0ocIidnOWtaigLPwvEGqNYC6hb4pgC/NrMkqvTJEIsN8B4XrDjx0h2vmmXQXVHx2R+tAQJc22lAVn4E8euz37KuBCw1QrK9BMb+LE468z1v8rzM0EGNKlCdtB5HwM2fQHxq/kutVMUUlVjxQUdZKmmHep2ffEYHAdUyqDphgCWrV68I8K4vnD45UASUOFIPuRspDvmQCqbXMxUryQbTo7AIhBMm1JI8Gvj03Z+njhNTmaP+IQHm1n6gEKb5zMtejkCdy6Yq+VXU8V0sAGHTAivg1s8gPrPwGYh1XpHS5pe5339YjOk9d2XbOuIvVs4/CO534+tO63PA8khIAf8C4rP3fCJEJEdQlbkXPSpB2nzmayAo5daS1CQrVD44BI42TRH0bk/NsQ73OFDdYUK9JsBv3XvBJZcKgEBxhbtbT+h71ysI8TA+Lq5waLXpe9pZ5WSFgkoTqE6bLL61DIrevu9cIEMFKVliUcjd3mKcS37H9f2z6hIrT07bRECkgLJ4bIHXl0H87p43tRUWFn2EvNF9yu0Rb1zoUrwlAjlPI/8lAmArAspjHvCvoOidvad9vgKoEGvdZ92dYTjTDw4TD6k1NroOUb9O/HTWsl5p7fXBxRpIvJb53lVQ9N7ekwGbhA4EI+IqVm8/795W7smTFBK/WKTOTuK5/y6TjZtbppDY5xMCUsTv7zueeGxDvrK+CMV3JYUq84jzPc5ym+VcjNjomVtXv9GhVEDniS8cOGY4ds2kmILSrMtvEOeALydSRsI0sy/JF092i07Q00vyxEoCxx8eOOJP/C/9WvEkPfbd7TTwR/e/ZLJGMcj9H/kb8P9EPqQ3BoE/fuBFKZkwVXOwyZrfRM7NuT3+ftf3v1HlLC1+tZH2+OLBw4hol5SsAVSJgHj2X5oqXMWT31y0lTTW9Bfc84J6yYd50QAAAABJRU5ErkJggg==",class:"fold-up",onClick:t[10]||(t[10]=(...e)=>Pe.toggleHistory&&Pe.toggleHistory(...e))}),t[20]||(t[20]=l("div",{class:"history-title"},"中奖记录",-1)),l("div",ee,[(s(!0),i(c,null,h(Se.options,(e=>(s(),i("button",{key:e.value,style:r({backgroundColor:Se.selected===e.value?"#0003bf":"#7475b2",borderColor:Se.selected===e.value?"#0003bf":"#7475b2",color:"#fff",marginRight:"24px",padding:"6px 18px",borderRadius:"8px",border:"none",cursor:"pointer"}),onClick:t=>Pe.changeTypeHistoryList(e)},n(e.label),13,te)))),128))]),l("div",se,[o(" nowMonths(当前年) "),Se.nowMonths&&Se.nowMonths.length>0?(s(),i("div",ie,[(s(!0),i(c,null,h(Se.nowMonths,(e=>(s(),i("div",{key:e.month},[l("div",{class:"month-row",onClick:t=>Pe.toggleMonthNow(e)},[l("span",le,n(e.month),1),l("span",ne,n(e.open?"▼":"▲"),1)],8,oe),e.open?(s(),i("div",ae,[e.records&&0!==e.records.length?o("v-if",!0):(s(),i("div",re,"暂无记录")),(s(!0),i(c,null,h(e.records,((e,a)=>(s(),i("div",{key:e.id||a,class:"history-record-item"},[l("div",de,[1==Se.selected?(s(),i("div",ce,[t[16]||(t[16]=l("span",{class:"circle"},null,-1)),m("财富金轮—"+n(e.type),1)])):3==Se.selected?(s(),i("div",he,[t[17]||(t[17]=l("span",{class:"circle"},null,-1)),m(n(e.type),1)])):o("v-if",!0),l("div",me,n(e.time),1)]),l("div",ge,[l("span",pe,"+ "+n(e.amount),1)])])))),128))])):o("v-if",!0)])))),128))])):o("v-if",!0),o(" 历史年列表 "),Se.years&&Se.years.length>0?(s(),i("div",ue,[(s(!0),i(c,null,h(Se.years,(e=>(s(),i("div",{key:e.year},[l("div",{class:"year-header",onClick:t=>Pe.toggleYear(e),style:{"padding-left":"14px"}},[l("span",fe,n(e.year)+"年",1),l("span",ye,n(e.expanded?"▼":"▲"),1)],8,ve),e.expanded?(s(),i("div",be,[(s(!0),i(c,null,h(e.months,(e=>(s(),i("div",{key:e.month},[l("div",{class:"month-row",onClick:t=>Pe.toggleMonth(e)},[l("span",Ie,n(e.month),1),l("span",Ae,n(e.open?"▼":"▲"),1)],8,ke),e.open?(s(),i("div",we,[e.records&&0!==e.records.length?o("v-if",!0):(s(),i("div",Me,"暂无记录")),(s(!0),i(c,null,h(e.records,((e,a)=>(s(),i("div",{key:e.id||a,class:"history-record-item"},[l("div",Te,[1==Se.selected?(s(),i("div",xe,[t[18]||(t[18]=l("span",{class:"circle"},null,-1)),m("财富金轮—"+n(e.type),1)])):3==Se.selected?(s(),i("div",Re,[t[19]||(t[19]=l("span",{class:"circle"},null,-1)),m(n(e.type),1)])):o("v-if",!0),l("div",ze,n(e.time),1)]),l("div",Ce,[l("span",Be,"+ "+n(e.amount),1)])])))),128))])):o("v-if",!0)])))),128))])):o("v-if",!0)])))),128))])):o("v-if",!0)]),o(" 底部装饰 "),t[21]||(t[21]=l("div",{class:"history-decoration","aria-hidden":"true"},null,-1))])):o("v-if",!0)])}],["__scopeId","data-v-6bde140a"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/wealth/goldenWheel.vue"]]);export{Se as default}; diff --git a/dev/static/js/homePage-e1c3177b.js b/dev/static/js/homePage-515c2cee.js similarity index 99% rename from dev/static/js/homePage-e1c3177b.js rename to dev/static/js/homePage-515c2cee.js index 9ac23d5..7dbd64d 100644 --- a/dev/static/js/homePage-e1c3177b.js +++ b/dev/static/js/homePage-515c2cee.js @@ -1,4 +1,4 @@ -import{g as e,l as n,_ as t,r as o,k as r,w as a,m as l,i,n as s,t as u,q as c,s as d,v as f,x as g,y as p,E as h,o as v,z as m,b as y,c as w,e as b,d as _,f as k,F as I,A as x,B as A,C as S,D as T,u as C,G as E,H as P,I as z,J as D,K as L,L as j,M as F,N as O,O as R,P as U,Q as W,R as M,S as $,T as V,U as H,V as N,W as B,X as K,Y as q}from"./index-4cb6f38c.js";import{s as Y}from"./setHeight-96dcefe6.js";import{u as G}from"./userPessionCode-376974ca.js";import{u as J}from"./chat-5d3bc291.js";import{u as X}from"./dataList-1bd1da28.js";import{m as Z}from"./marked.esm-cf4f21f5.js";import{h as Q,v as ee,a as ne,t as te,b as oe,g as re,u as ae,A as le}from"./AiEmotion-173e5d31.js";import{k as ie,A as se}from"./AIfind-ac1d6c69.js";import{e as ue}from"./marketTemperature-7871708f.js";import{h as ce}from"./moment-6961f857.js";import de from"./Feedback-08e4e28a.js";import fe from"./Announcement-ff8a720a.js";import"./index-5d1237a4.js";import"./emoEnergyConverter-30c0a2be.js";import"./back-9e899973.js";const ge=e("audio",{state:()=>({soundInstance:null,isPlaying:!1,isVoiceEnabled:!0,playbackPosition:0,lastVoiceState:null,ttsUrl:"",isNewInstance:!1,nowSound:"",currentAudioUrl:"",isPaused:!1,duration:0}),actions:{setAudioInstance(e){this.soundInstance=e},play(){this.soundInstance&&(this.isPaused&&this.playbackPosition>0&&this.soundInstance.seek(this.playbackPosition),this.soundInstance.play(),this.isPlaying=!0,this.isPaused=!1)},pause(){this.soundInstance&&this.isPlaying&&(this.playbackPosition=this.soundInstance.seek()||0,this.soundInstance.pause(),this.isPlaying=!1,this.isPaused=!0)},stop(){this.soundInstance&&(this.soundInstance.stop(),this.isPlaying=!1,this.isPaused=!1,this.playbackPosition=0)},togglePlayPause(){this.isPlaying?this.pause():this.play()},setCurrentAudioUrl(e){this.currentAudioUrl!==e&&(this.stop(),this.currentAudioUrl=e,this.playbackPosition=0,this.isPaused=!1)},toggleVoice(){this.isVoiceEnabled=!this.isVoiceEnabled,this.isVoiceEnabled||this.stop()},resetAudioState(){this.stop(),this.currentAudioUrl="",this.ttsUrl="",this.soundInstance=null,this.nowSound=""}}});var pe,he,ve={exports:{}}; +import{g as e,l as n,_ as t,r as o,k as r,w as a,m as l,i,n as s,t as u,q as c,s as d,v as f,x as g,y as p,E as h,o as v,z as m,b as y,c as w,e as b,d as _,f as k,F as I,A as x,B as A,C as S,D as T,u as C,G as E,H as P,I as z,J as D,K as L,L as j,M as F,N as O,O as R,P as U,Q as W,R as M,S as $,T as V,U as H,V as N,W as B,X as K,Y as q}from"./index-7d881374.js";import{s as Y}from"./setHeight-96dcefe6.js";import{u as G}from"./userPessionCode-33b4794f.js";import{u as J}from"./chat-52f319e2.js";import{u as X}from"./dataList-3b7c4b7e.js";import{m as Z}from"./marked.esm-cf4f21f5.js";import{h as Q,v as ee,a as ne,t as te,b as oe,g as re,u as ae,A as le}from"./AiEmotion-99036b55.js";import{k as ie,A as se}from"./AIfind-b761aee6.js";import{e as ue}from"./marketTemperature-3afd7f01.js";import{h as ce}from"./moment-6961f857.js";import de from"./Feedback-5e237f54.js";import fe from"./Announcement-911e0476.js";import"./index-bce0856e.js";import"./emoEnergyConverter-7a8b83fd.js";import"./back-9e899973.js";const ge=e("audio",{state:()=>({soundInstance:null,isPlaying:!1,isVoiceEnabled:!0,playbackPosition:0,lastVoiceState:null,ttsUrl:"",isNewInstance:!1,nowSound:"",currentAudioUrl:"",isPaused:!1,duration:0}),actions:{setAudioInstance(e){this.soundInstance=e},play(){this.soundInstance&&(this.isPaused&&this.playbackPosition>0&&this.soundInstance.seek(this.playbackPosition),this.soundInstance.play(),this.isPlaying=!0,this.isPaused=!1)},pause(){this.soundInstance&&this.isPlaying&&(this.playbackPosition=this.soundInstance.seek()||0,this.soundInstance.pause(),this.isPlaying=!1,this.isPaused=!0)},stop(){this.soundInstance&&(this.soundInstance.stop(),this.isPlaying=!1,this.isPaused=!1,this.playbackPosition=0)},togglePlayPause(){this.isPlaying?this.pause():this.play()},setCurrentAudioUrl(e){this.currentAudioUrl!==e&&(this.stop(),this.currentAudioUrl=e,this.playbackPosition=0,this.isPaused=!1)},toggleVoice(){this.isVoiceEnabled=!this.isVoiceEnabled,this.isVoiceEnabled||this.stop()},resetAudioState(){this.stop(),this.currentAudioUrl="",this.ttsUrl="",this.soundInstance=null,this.nowSound=""}}});var pe,he,ve={exports:{}}; /** * @license * Lodash diff --git a/dev/static/js/index-4cb6f38c.js b/dev/static/js/index-7d881374.js similarity index 99% rename from dev/static/js/index-4cb6f38c.js rename to dev/static/js/index-7d881374.js index 74ae6b8..c747646 100644 --- a/dev/static/js/index-4cb6f38c.js +++ b/dev/static/js/index-7d881374.js @@ -49,7 +49,7 @@ let Tr;const Or="undefined"!=typeof window&&window.trustedTypes;if(Or)try{Tr=Or. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT -*/let LK=1;const RK=Sa({name:"ElTable",directives:{Mousewheel:{beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=AK(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}}},components:{TableHeader:Xj,TableBody:nK,TableFooter:oK,ElScrollbar:rT,hColgroup:sK},props:iK,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t:t}=wg(),n=Kd("table"),a=lr();To(Uj,a);const o=Hj(a,e);a.store=o;const l=new Fj({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=l;const r=Sr((()=>0===(o.states.data.value||[]).length)),{setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,sort:h,updateKeyChildren:m}=function(e){return{setCurrentRow:t=>{e.commit("setCurrentRow",t)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(t,n,a=!0)=>{e.toggleRowSelection(t,n,!1,a),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:t=>{e.clearFilter(t)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(t,n)=>{e.toggleRowExpansionAdapter(t,n)},clearSort:()=>{e.clearSort()},sort:(t,n)=>{e.commit("sort",{prop:t,order:n})},updateKeyChildren:(t,n)=>{e.updateKeyChildren(t,n)}}}(o),{isHidden:g,renderExpanded:y,setDragVisible:b,isGroup:w,handleMouseLeave:x,handleHeaderFooterMousewheel:C,tableSize:k,emptyBlockStyle:S,handleFixedMousewheel:_,resizeProxyVisible:M,bodyWidth:E,resizeState:T,doLayout:O,tableBodyStyles:$,tableLayout:I,scrollbarViewStyle:V,scrollbarStyle:A}=lK(e,l,o,a),{scrollBarRef:L,scrollTo:R,setScrollLeft:z,setScrollTop:B}=(()=>{const e=At(),t=(t,n)=>{const a=e.value;a&&cm(n)&&["Top","Left"].includes(t)&&a[`setScroll${t}`](n)};return{scrollBarRef:e,scrollTo:(t,n)=>{const a=e.value;a&&a.scrollTo(t,n)},setScrollTop:e=>t("Top",e),setScrollLeft:e=>t("Left",e)}})(),N=Ah(O,50),H=`${n.namespace.value}-table_${LK++}`;a.tableId=H,a.state={isGroup:w,resizeState:T,doLayout:O,debouncedUpdateLayout:N};const D=Sr((()=>{var n;return null!=(n=e.sumText)?n:t("el.table.sumText")})),P=Sr((()=>{var n;return null!=(n=e.emptyText)?n:t("el.table.emptyText")})),F=Sr((()=>Gj(o.states.originColumns.value)[0]));return rK(a),Da((()=>{N.cancel()})),{ns:n,layout:l,store:o,columns:F,handleHeaderFooterMousewheel:C,handleMouseLeave:x,tableId:H,tableSize:k,isHidden:g,isEmpty:r,renderExpanded:y,resizeProxyVisible:M,resizeState:T,isGroup:w,bodyWidth:E,tableBodyStyles:$,emptyBlockStyle:S,debouncedUpdateLayout:N,handleFixedMousewheel:_,setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,doLayout:O,sort:h,updateKeyChildren:m,t:t,setDragVisible:b,context:a,computedSumText:D,computedEmptyText:P,tableLayout:I,scrollbarViewStyle:V,scrollbarStyle:A,scrollBarRef:L,scrollTo:R,setScrollLeft:z,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}});var zK=Fg(RK,[["render",function(e,t,n,a,o,l){const r=qa("hColgroup"),i=qa("table-header"),s=qa("table-body"),u=qa("table-footer"),c=qa("el-scrollbar"),d=Ga("mousewheel");return Al(),Bl("div",{ref:"tableWrapper",class:W([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:D(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[jl("div",{class:W(e.ns.e("inner-wrapper"))},[jl("div",{ref:"hiddenColumns",class:"hidden-columns"},[eo(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?Xn((Al(),Bl("div",{key:0,ref:"headerWrapper",class:W(e.ns.e("header-wrapper"))},[jl("table",{ref:"tableHeader",class:W(e.ns.e("header")),style:D(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Kl(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):Xl("v-if",!0),jl("div",{ref:"bodyWrapper",class:W(e.ns.e("body-wrapper"))},[Kl(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:t=>e.$emit("scroll",t)},{default:Yn((()=>[jl("table",{ref:"tableBody",class:W(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:D({width:e.bodyWidth,tableLayout:e.tableLayout})},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(Al(),Nl(i,{key:0,ref:"tableHeaderRef",class:W(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):Xl("v-if",!0),Kl(s,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?(Al(),Nl(u,{key:1,class:W(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Xl("v-if",!0)],6),e.isEmpty?(Al(),Bl("div",{key:0,ref:"emptyBlock",style:D(e.emptyBlockStyle),class:W(e.ns.e("empty-block"))},[jl("span",{class:W(e.ns.e("empty-text"))},[eo(e.$slots,"empty",{},(()=>[Yl(te(e.computedEmptyText),1)]))],2)],6)):Xl("v-if",!0),e.$slots.append?(Al(),Bl("div",{key:1,ref:"appendWrapper",class:W(e.ns.e("append-wrapper"))},[eo(e.$slots,"append")],2)):Xl("v-if",!0)])),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&"fixed"===e.tableLayout?Xn((Al(),Bl("div",{key:1,ref:"footerWrapper",class:W(e.ns.e("footer-wrapper"))},[jl("table",{class:W(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:D(e.tableBodyStyles)},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Kl(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[ei,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):Xl("v-if",!0),e.border||e.isGroup?(Al(),Bl("div",{key:2,class:W(e.ns.e("border-left-patch"))},null,2)):Xl("v-if",!0)],2),Xn(jl("div",{ref:"resizeProxy",class:W(e.ns.e("column-resize-proxy"))},null,2),[[ei,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}],["__file","table.vue"]]);const BK={selection:"table-column--selection",expand:"table__expand-column"},NK={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},HK={selection:{renderHeader:({store:e,column:t})=>_r(lA,{disabled:e.states.data.value&&0===e.states.data.value.length,size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label}),renderCell:({row:e,column:t,store:n,$index:a})=>_r(lA,{disabled:!!t.selectable&&!t.selectable.call(null,e,a),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label}),sortable:!1,resizable:!1},index:{renderHeader:({column:e})=>e.label||"#",renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return cm(a)?n=t+a:h(a)&&(n=a(t)),_r("div",{},[n])},sortable:!1},expand:{renderHeader:({column:e})=>e.label||"",renderCell({row:e,store:t,expanded:n}){const{ns:a}=t,o=[a.e("expand-icon")];n&&o.push(a.em("expand-icon","expanded"));return _r("div",{class:o,onClick:function(n){n.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[_r(py,null,{default:()=>[_r(Vy)]})]})},sortable:!1,resizable:!1}};function DK({row:e,column:t,$index:n}){var a;const o=t.property,l=o&&Ag(e,o).value;return t&&t.formatter?t.formatter(e,t,l,n):(null==(a=null==l?void 0:l.toString)?void 0:a.call(l))||""}function PK(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function FK(e,t,n){const a=lr(),o=At(""),l=At(!1),r=At(),i=At(),s=Kd("table");ul((()=>{r.value=e.align?`is-${e.align}`:null,r.value})),ul((()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value}));const u=Sr((()=>{let e=a.vnode.vParent||a.parent;for(;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),c=Sr((()=>{const{store:e}=a.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),p=At(xj(e.width)),f=At(Cj(e.minWidth));return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:e=>(p.value&&(e.width=p.value),f.value&&(e.minWidth=f.value),!p.value&&f.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(sm(e.width)?e.minWidth:e.width),e),setColumnForcedProps:e=>{const t=e.type,n=HK[t]||{};Object.keys(n).forEach((t=>{const a=n[t];"className"===t||sm(a)||(e[t]=a)}));const a=(e=>BK[e]||"")(t);if(a){const t=`${Bt(s.namespace)}-${a}`;e.className=e.className?`${e.className} ${t}`:t}return e},setColumnRenders:o=>{e.renderHeader?cg("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=e=>(a.columnConfig.value.label,eo(t,"header",e,(()=>[o.label])))),t["filter-icon"]&&(o.renderFilterIcon=e=>eo(t,"filter-icon",e));let l=o.renderCell;return"expand"===o.type?(o.renderCell=e=>_r("div",{class:"cell"},[l(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(l=l||DK,o.renderCell=e=>{let r=null;if(t.default){const n=t.default(e);r=n.some((e=>e.type!==Ol))?n:l(e)}else r=l(e);const{columns:i}=n.value.store.states,u=i.value.findIndex((e=>"default"===e.type)),p=function({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[_r("span",{class:o.e("placeholder")})]:null;const l=[],r=function(a){a.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&l.push(_r("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),um(t.expanded)&&!t.noLazyChildren){const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let n=Vy;t.loading&&(n=Fk),l.push(_r("div",{class:e,onClick:r},{default:()=>[_r(py,{class:{[o.is("loading")]:t.loading}},{default:()=>[_r(n)]})]}))}else l.push(_r("span",{class:o.e("placeholder")}));return l}(e,c.value&&e.cellIndex===u),f={class:"cell",style:{}};return o.showOverflowTooltip&&(f.class=`${f.class} ${Bt(s.namespace)}-tooltip`,f.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),(e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=a)}d(e)?e.forEach((e=>t(e))):t(e)})(r),_r("div",f,[p,r])}),o},getPropsData:(...t)=>t.reduce(((t,n)=>(d(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),getColumnElIndex:(e,t)=>Array.prototype.indexOf.call(e,t),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var jK={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let KK=1;var WK=Sa({name:"ElTableColumn",components:{ElCheckbox:lA},props:jK,setup(e,{slots:t}){const n=lr(),a=At({}),o=Sr((()=>{let e=n.parent;for(;e&&!e.tableId;)e=e.parent;return e})),{registerNormalWatchers:l,registerComplexWatchers:r}=function(e,t){const n=lr();return{registerComplexWatchers:()=>{const a={realWidth:"width",realMinWidth:"minWidth"},o=PK(["fixed"],a);Object.keys(o).forEach((o=>{const l=a[o];c(t,l)&&cl((()=>t[l]),(t=>{let a=t;"width"===l&&"realWidth"===o&&(a=xj(t)),"minWidth"===l&&"realMinWidth"===o&&(a=Cj(t)),n.columnConfig.value[l]=a,n.columnConfig.value[o]=a;const r="fixed"===l;e.value.store.scheduleLayout(r)}))}))},registerNormalWatchers:()=>{const e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=PK(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],e);Object.keys(a).forEach((a=>{const o=e[a];c(t,o)&&cl((()=>t[o]),(e=>{n.columnConfig.value[a]=e}))}))}}}(o,e),{columnId:i,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:f,setColumnRenders:v,getPropsData:h,getColumnElIndex:m,realAlign:g,updateColumnOrder:y}=FK(e,t,o),b=d.value;i.value=`${b.tableId||b.columnId}_column_${KK++}`,za((()=>{s.value=o.value!==b;const t=e.type||"default",d=""===e.sortable||e.sortable,m=sm(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,y=sm(e.tooltipFormatter)?b.props.tooltipFormatter:e.tooltipFormatter,w={...NK[t],id:i.value,type:t,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:m,tooltipFormatter:y,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:d,index:e.index,rawColumnKey:n.vnode.key};let x=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);x=function(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(c(t,a)){const e=t[a];sm(e)||(n[a]=e)}return n}(w,x);x=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(v,p,f)(x),a.value=x,l(),r()})),Ba((()=>{var e;const t=d.value,l=s.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,r=()=>m(l||[],n.vnode.el);a.value.getColumnIndex=r;r()>-1&&o.value.store.commit("insertColumn",a.value,s.value?t.columnConfig.value:null,y)})),Da((()=>{const e=a.value.getColumnIndex;(e?e():-1)>-1&&o.value.store.commit("removeColumn",a.value,s.value?b.columnConfig.value:null,y)})),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(d(a))for(const e of a)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?o.push(e):e.type===El&&d(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||m(null==e?void 0:e.children)||o.push(e)}));return _r("div",o)}catch(yR){return _r("div",[])}}});const qK=ry(zK,{TableColumn:WK}),UK=sy(WK);var YK=(e=>(e.ASC="asc",e.DESC="desc",e))(YK||{}),GK=(e=>(e.CENTER="center",e.RIGHT="right",e))(GK||{}),XK=(e=>(e.LEFT="left",e.RIGHT="right",e))(XK||{});const JK={asc:"desc",desc:"asc"},ZK=Symbol("placeholder");const QK=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const i=lr(),{emit:s}=i,u=Lt(!1),c=At(e.defaultExpandedRowKeys||[]),d=At(-1),p=Lt(null),f=At({}),v=At({}),h=Lt({}),m=Lt({}),g=Lt({}),y=Sr((()=>cm(e.estimatedRowHeight)));const b=Ah((()=>{var e,o,l,r;u.value=!0,f.value={...Bt(f),...Bt(v)},w(Bt(p),!1),v.value={},p.value=null,null==(e=t.value)||e.forceUpdate(),null==(o=n.value)||o.forceUpdate(),null==(l=a.value)||l.forceUpdate(),null==(r=i.proxy)||r.$forceUpdate(),u.value=!1}),0);function w(e,o=!1){Bt(y)&&[t,n,a].forEach((t=>{const n=Bt(t);n&&n.resetAfterRowIndex(e,o)}))}return{expandedRowKeys:c,lastRenderedRowIndex:d,isDynamic:y,isResetting:u,rowHeights:f,resetAfterIndex:w,onRowExpanded:function({expanded:t,rowData:n,rowIndex:a,rowKey:o}){var l,r;const i=[...Bt(c)],u=i.indexOf(o);t?-1===u&&i.push(o):u>-1&&i.splice(u,1),c.value=i,s("update:expandedRowKeys",i),null==(l=e.onRowExpand)||l.call(e,{expanded:t,rowData:n,rowIndex:a,rowKey:o}),null==(r=e.onExpandedRowsChange)||r.call(e,i)},onRowHovered:function({hovered:e,rowKey:t}){if(r.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(t)}"]`).forEach((t=>{e?t.classList.add(l.is("hovered")):t.classList.remove(l.is("hovered"))}))},onRowsRendered:function(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>Bt(d)&&(d.value=t.rowCacheEnd)},onRowHeightChange:function({rowKey:e,height:t,rowIndex:n},a){a?a===XK.RIGHT?g.value[e]=t:h.value[e]=t:m.value[e]=t;const o=Math.max(...[h,g,m].map((t=>t.value[e]||0)));Bt(f)[e]!==o&&(!function(e,t,n){const a=Bt(p);(null===a||a>n)&&(p.value=n),v.value[e]=t}(e,o,n),b())}}},eW=(e,t)=>e+t,tW=e=>d(e)?e.reduce(eW,0):e,nW=(e,t,n={})=>h(e)?e(t):null!=e?e:n,aW=e=>(["width","maxWidth","minWidth","height"].forEach((t=>{e[t]=Jg(e[t])})),e),oW=e=>Hl(e)?t=>_r(e,t):e;function lW(e){const t=At(),n=At(),a=At(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,hasFixedColumns:u,mainColumns:c,onColumnSorted:p}=function(e,t,n){const a=Sr((()=>Bt(t).map(((e,t)=>{var n,a;return{...e,key:null!=(a=null!=(n=e.key)?n:e.dataKey)?a:t}})))),o=Sr((()=>Bt(a).filter((e=>!e.hidden)))),l=Sr((()=>Bt(o).filter((e=>"left"===e.fixed||!0===e.fixed)))),r=Sr((()=>Bt(o).filter((e=>"right"===e.fixed)))),i=Sr((()=>Bt(o).filter((e=>!e.fixed)))),s=Sr((()=>{const e=[];return Bt(l).forEach((t=>{e.push({...t,placeholderSign:ZK})})),Bt(i).forEach((t=>{e.push(t)})),Bt(r).forEach((t=>{e.push({...t,placeholderSign:ZK})})),e})),u=Sr((()=>Bt(l).length||Bt(r).length)),c=Sr((()=>Bt(a).reduce(((t,a)=>(t[a.key]=((e,t,n)=>{var a;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const l={...null!=(a=e.style)?a:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l})(a,Bt(n),e.fixed),t)),{}))),d=Sr((()=>Bt(o).reduce(((e,t)=>e+t.width),0))),p=e=>Bt(a).find((t=>t.key===e));return{columns:a,columnsStyles:c,columnsTotalWidth:d,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:u,mainColumns:s,normalColumns:i,visibleColumns:o,getColumn:p,getColumnStyle:e=>Bt(c)[e],updateColumnWidth:(e,t)=>{e.width=t},onColumnSorted:function(t){var n;const{key:a}=t.currentTarget.dataset;if(!a)return;const{sortState:o,sortBy:l}=e;let r=YK.ASC;r=y(o)?JK[o[a]]:JK[l.order],null==(n=e.onColumnSort)||n.call(e,{column:p(a),key:a,order:r})}}}(e,Kt(e,"columns"),Kt(e,"fixed")),{scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:w}=((e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=At({scrollLeft:0,scrollTop:0});function r(e){var o,l,r;const{scrollTop:i}=e;null==(o=t.value)||o.scrollTo(e),null==(l=n.value)||l.scrollToTop(i),null==(r=a.value)||r.scrollToTop(i)}function i(e){l.value=e,r(e)}function s(e){l.value.scrollTop=e,r(Bt(l))}return cl((()=>Bt(l).scrollTop),((e,t)=>{e>t&&o()})),{scrollPos:l,scrollTo:i,scrollToLeft:function(e){var n,a;l.value.scrollLeft=e,null==(a=null==(n=t.value)?void 0:n.scrollTo)||a.call(n,Bt(l))},scrollToTop:s,scrollToRow:function(e,n="auto"){var a;null==(a=t.value)||a.scrollToRow(e,n)},onScroll:function(t){var n;i(t),null==(n=e.onScroll)||n.call(e,t)},onVerticalScroll:function({scrollTop:e}){const{scrollTop:t}=Bt(l);e!==t&&s(e)}}})(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:function(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=Bt(w),a=Bt(z),o=Bt(j),l=a-(n+o)+e.hScrollbarSize;Bt(_)>=0&&a===n+Bt(H)-Bt(U)&&t(l)}}),x=Kd("table-v2"),C=lr(),k=Lt(!1),{expandedRowKeys:S,lastRenderedRowIndex:_,isDynamic:M,isResetting:E,rowHeights:T,resetAfterIndex:O,onRowExpanded:$,onRowHeightChange:I,onRowHovered:V,onRowsRendered:A}=QK(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:C,ns:x,isScrolling:k}),{data:L,depthMap:R}=((e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=At({}),l=Sr((()=>{const n={},{data:a,rowKey:l}=e,r=Bt(t);if(!r||!r.length)return a;const i=[],s=new Set;r.forEach((e=>s.add(e)));let u=a.slice();for(u.forEach((e=>n[e[l]]=0));u.length>0;){const e=u.shift();i.push(e),s.has(e[l])&&d(e.children)&&e.children.length>0&&(u=[...e.children,...u],e.children.forEach((t=>n[t[l]]=n[e[l]]+1)))}return o.value=n,i})),r=Sr((()=>{const{data:t,expandColumnKey:n}=e;return n?Bt(l):t}));return cl(r,((e,t)=>{e!==t&&(n.value=-1,a(0,!0))})),{data:r,depthMap:o}})(e,{expandedRowKeys:S,lastRenderedRowIndex:_,resetAfterIndex:O}),z=Sr((()=>{const{estimatedRowHeight:t,rowHeight:n}=e,a=Bt(L);return cm(t)?Object.values(Bt(T)).reduce(((e,t)=>e+t),0):a.length*n})),{bodyWidth:B,fixedTableHeight:N,mainTableHeight:H,leftTableWidth:D,rightTableWidth:P,headerWidth:F,windowHeight:j,footerHeight:K,emptyStyle:W,rootStyle:q,headerHeight:U}=((e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=Sr((()=>{const{fixed:n,width:a,vScrollbarSize:o}=e,l=a-o;return n?Math.max(Math.round(Bt(t)),l):l})),r=Sr((()=>Bt(l)+e.vScrollbarSize)),i=Sr((()=>{const{height:t=0,maxHeight:a=0,footerHeight:o,hScrollbarSize:l}=e;if(a>0){const e=Bt(f),t=Bt(n),r=Bt(p)+e+t+l;return Math.min(r,a-o)}return t-o})),s=Sr((()=>{const{maxHeight:t}=e,a=Bt(i);if(cm(t)&&t>0)return a;const o=Bt(n)+Bt(p)+Bt(f);return Math.min(a,o)})),u=e=>e.width,c=Sr((()=>tW(Bt(a).map(u)))),d=Sr((()=>tW(Bt(o).map(u)))),p=Sr((()=>tW(e.headerHeight))),f=Sr((()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight})),v=Sr((()=>Bt(i)-Bt(p)-Bt(f))),h=Sr((()=>{const{style:t={},height:n,width:a}=e;return aW({...t,height:n,width:a})})),m=Sr((()=>aW({height:e.footerHeight}))),g=Sr((()=>({top:Jg(Bt(p)),bottom:Jg(e.footerHeight),width:Jg(e.width)})));return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:i,leftTableWidth:c,rightTableWidth:d,headerWidth:r,windowHeight:v,footerHeight:m,emptyStyle:g,rootStyle:h,headerHeight:p}})(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,rowsHeight:z}),Y=At(),G=Sr((()=>{const t=0===Bt(L).length;return d(e.fixedData)?0===e.fixedData.length&&t:t}));return cl((()=>e.expandedRowKeys),(e=>S.value=e),{deep:!0}),{columns:o,containerRef:Y,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:E,isScrolling:k,hasFixedColumns:u,columnsStyles:l,columnsTotalWidth:r,data:L,expandedRowKeys:S,depthMap:R,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:c,bodyWidth:B,emptyStyle:W,rootStyle:q,headerWidth:F,footerHeight:K,mainTableHeight:H,fixedTableHeight:N,leftTableWidth:D,rightTableWidth:P,showEmpty:G,getRowHeight:function(t){const{estimatedRowHeight:n,rowHeight:a,rowKey:o}=e;return n?Bt(T)[Bt(L)[t][o]]||n:a},onColumnSorted:p,onRowHovered:V,onRowExpanded:$,onRowsRendered:A,onRowHeightChange:I,scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const rW=Symbol("tableV2"),iW=String,sW={type:Array,required:!0},uW={type:Array},cW={...uW,required:!0},dW={type:Array,default:()=>[]},pW={type:Number,required:!0},fW={type:[String,Number,Symbol],default:"id"},vW={type:Object},hW=Cg({class:String,columns:sW,columnsStyles:{type:Object,required:!0},depth:Number,expandColumnKey:String,estimatedRowHeight:{...eF.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Function},onRowHover:{type:Function},onRowHeightChange:{type:Function},rowData:{type:Object,required:!0},rowEventHandlers:{type:Object},rowIndex:{type:Number,required:!0},rowKey:fW,style:{type:Object}}),mW={type:Number,required:!0},gW=Cg({class:String,columns:sW,fixedHeaderData:{type:Array},headerData:{type:Array,required:!0},headerHeight:{type:[Number,Array],default:50},rowWidth:mW,rowHeight:{type:Number,default:50},height:mW,width:mW}),yW=Cg({columns:sW,data:cW,fixedData:uW,estimatedRowHeight:hW.estimatedRowHeight,width:pW,height:pW,headerWidth:pW,headerHeight:gW.headerHeight,bodyWidth:pW,rowHeight:pW,cache:XP.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:eF.scrollbarAlwaysOn,scrollbarStartGap:eF.scrollbarStartGap,scrollbarEndGap:eF.scrollbarEndGap,class:iW,style:vW,containerStyle:vW,getRowHeight:{type:Function,required:!0},rowKey:hW.rowKey,onRowsRendered:{type:Function},onScroll:{type:Function}}),bW=Cg({cache:yW.cache,estimatedRowHeight:hW.estimatedRowHeight,rowKey:fW,headerClass:{type:[String,Function]},headerProps:{type:[Object,Function]},headerCellProps:{type:[Object,Function]},headerHeight:gW.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:[String,Function]},rowProps:{type:[Object,Function]},rowHeight:{type:Number,default:50},cellProps:{type:[Object,Function]},columns:sW,data:cW,dataGetter:{type:Function},fixedData:uW,expandColumnKey:hW.expandColumnKey,expandedRowKeys:dW,defaultExpandedRowKeys:dW,class:iW,fixed:Boolean,style:{type:Object},width:pW,height:pW,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:eF.hScrollbarSize,vScrollbarSize:eF.vScrollbarSize,scrollbarAlwaysOn:tF.alwaysOn,sortBy:{type:Object,default:()=>({})},sortState:{type:Object,default:void 0},onColumnSort:{type:Function},onExpandedRowsChange:{type:Function},onEndReached:{type:Function},onRowExpand:hW.onRowExpand,onScroll:yW.onScroll,onRowsRendered:yW.onRowsRendered,rowEventHandlers:hW.rowEventHandlers});var wW=Sa({name:"ElTableV2Header",props:gW,setup(e,{slots:t,expose:n}){const a=Kd("table-v2"),o=Oo("tableV2GridScrollLeft"),l=At(),r=Sr((()=>aW({width:e.width,height:e.height}))),i=Sr((()=>aW({width:e.rowWidth,height:e.height}))),s=Sr((()=>yv(Bt(e.headerHeight)))),u=e=>{const t=Bt(l);gn((()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})}))},c=()=>{const n=a.e("fixed-header-row"),{columns:o,fixedHeaderData:l,rowHeight:r}=e;return null==l?void 0:l.map(((e,a)=>{var l;const i=aW({height:r,width:"100%"});return null==(l=t.fixed)?void 0:l.call(t,{class:n,columns:o,rowData:e,rowIndex:-(a+1),style:i})}))},d=()=>{const n=a.e("dynamic-header-row"),{columns:o}=e;return Bt(s).map(((e,a)=>{var l;const r=aW({width:"100%",height:e});return null==(l=t.dynamic)?void 0:l.call(t,{class:n,columns:o,headerIndex:a,style:r})}))};return Ha((()=>{(null==o?void 0:o.value)&&u(o.value)})),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return Kl("div",{ref:l,class:e.class,style:Bt(r),role:"rowgroup"},[Kl("div",{style:Bt(i),class:a.e("header")},[d(),c()])])}}});const xW=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:s,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:f,injectToInstance:v,validateProps:h})=>Sa({name:null!=e?e:"ElVirtualList",props:eF,emits:["itemRendered","scroll"],setup(e,{emit:g,expose:y,slots:b}){const w=Kd("vl");h(e);const x=lr(),C=At(f(e,x));null==v||v(x,C);const k=At(),S=At(),_=At(),M=At(null),E=At({isScrolling:!1,scrollLeft:cm(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:cm(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:"forward",yAxisScrollDir:"forward"}),T=NP(),O=Sr((()=>Number.parseInt(`${e.height}`,10))),$=Sr((()=>Number.parseInt(`${e.width}`,10))),I=Sr((()=>{const{totalColumn:t,totalRow:n,columnCache:l}=e,{isScrolling:r,xAxisScrollDir:i,scrollLeft:s}=Bt(E);if(0===t||0===n)return[0,0,0,0];const u=a(e,s,Bt(C)),c=o(e,u,s,Bt(C)),d=r&&"backward"!==i?1:Math.max(1,l),p=r&&"forward"!==i?1:Math.max(1,l);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]})),V=Sr((()=>{const{totalColumn:t,totalRow:n,rowCache:a}=e,{isScrolling:o,yAxisScrollDir:l,scrollTop:r}=Bt(E);if(0===t||0===n)return[0,0,0,0];const i=d(e,r,Bt(C)),s=p(e,i,r,Bt(C)),u=o&&"backward"!==l?1:Math.max(1,a),c=o&&"forward"!==l?1:Math.max(1,a);return[Math.max(0,i-u),Math.max(0,Math.min(n-1,s+c)),i,s]})),A=Sr((()=>l(e,Bt(C)))),L=Sr((()=>r(e,Bt(C)))),R=Sr((()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:cm(e.height)?`${e.height}px`:e.height,width:cm(e.width)?`${e.width}px`:e.width},null!=(t=e.style)?t:{}]})),z=Sr((()=>{const e=`${Bt(L)}px`;return{height:`${Bt(A)}px`,pointerEvents:Bt(E).isScrolling?"none":void 0,width:e}})),B=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,a]=Bt(I),[o,l,r,i]=Bt(V);g("itemRendered",{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:o,rowCacheEnd:l,columnVisibleStart:n,columnVisibleEnd:a,rowVisibleStart:r,rowVisibleEnd:i})}const{scrollLeft:a,scrollTop:o,updateRequested:l,xAxisScrollDir:r,yAxisScrollDir:i}=Bt(E);g("scroll",{xAxisScrollDir:r,scrollLeft:a,yAxisScrollDir:i,scrollTop:o,updateRequested:l})},N=t=>{const{clientHeight:n,clientWidth:a,scrollHeight:o,scrollLeft:l,scrollTop:r,scrollWidth:i}=t.currentTarget,s=Bt(E);if(s.scrollTop===r&&s.scrollLeft===l)return;let u=l;if(oF(e.direction))switch(rF()){case"negative":u=-l;break;case"positive-descending":u=i-a-l}E.value={...s,isScrolling:!0,scrollLeft:u,scrollTop:Math.max(0,Math.min(r,o-n)),updateRequested:!0,xAxisScrollDir:nF(s.scrollLeft,u),yAxisScrollDir:nF(s.scrollTop,r)},gn((()=>K())),W(),B()},H=(e,t)=>{const n=Bt(O),a=(A.value-n)/t*e;F({scrollTop:Math.min(A.value-n,a)})},D=(e,t)=>{const n=Bt($),a=(L.value-n)/t*e;F({scrollLeft:Math.min(L.value-n,a)})},{onWheel:P}=(({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,i=0;const s=(o,l)=>{const r=o<=0&&t.value||o>=0&&e.value,i=l<=0&&a.value||l>=0&&n.value;return r&&i};return{hasReachedEdge:s,onWheel:e=>{Kg(l);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),s(r,i)&&s(r+t,i+n)||(r+=t,i+=n,e.preventDefault(),l=jg((()=>{o(r,i),r=0,i=0})))}}})({atXStartEdge:Sr((()=>E.value.scrollLeft<=0)),atXEndEdge:Sr((()=>E.value.scrollLeft>=L.value-Bt($))),atYStartEdge:Sr((()=>E.value.scrollTop<=0)),atYEndEdge:Sr((()=>E.value.scrollTop>=A.value-Bt(O)))},((e,t)=>{var n,a,o,l;null==(a=null==(n=S.value)?void 0:n.onMouseUp)||a.call(n),null==(l=null==(o=_.value)?void 0:o.onMouseUp)||l.call(o);const r=Bt($),i=Bt(O);F({scrollLeft:Math.min(E.value.scrollLeft+e,L.value-r),scrollTop:Math.min(E.value.scrollTop+t,A.value-i)})}));Hm(k,"wheel",P,{passive:!1});const F=({scrollLeft:e=E.value.scrollLeft,scrollTop:t=E.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=Bt(E);t===n.scrollTop&&e===n.scrollLeft||(E.value={...n,xAxisScrollDir:nF(n.scrollLeft,e),yAxisScrollDir:nF(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},gn((()=>K())),W(),B())},j=(a,o)=>{const{columnWidth:l,direction:r,rowHeight:i}=e,s=T.value(t&&l,t&&i,t&&r),d=`${a},${o}`;if(c(s,d))return s[d];{const[,t]=n(e,o,Bt(C)),l=Bt(C),i=oF(r),[c,p]=u(e,a,l),[f]=n(e,o,l);return s[d]={position:"absolute",left:i?void 0:`${t}px`,right:i?`${t}px`:void 0,top:`${p}px`,height:`${c}px`,width:`${f}px`},s[d]}},K=()=>{E.value.isScrolling=!1,gn((()=>{T.value(-1,null,null)}))};Ba((()=>{if(!Sm)return;const{initScrollLeft:t,initScrollTop:n}=e,a=Bt(k);a&&(cm(t)&&(a.scrollLeft=t),cm(n)&&(a.scrollTop=n)),B()}));const W=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:a,updateRequested:o}=Bt(E),l=Bt(k);if(o&&l){if(t===HP)switch(rF()){case"negative":l.scrollLeft=-n;break;case"positive-ascending":l.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=l;l.scrollLeft=t-e-n;break}}else l.scrollLeft=Math.max(0,n);l.scrollTop=Math.max(0,a)}},{resetAfterColumnIndex:q,resetAfterRowIndex:U,resetAfter:Y}=x.proxy;y({windowRef:k,innerRef:M,getItemStyleCache:T,scrollTo:F,scrollToItem:(t=0,n=0,a="auto")=>{const o=Bt(E);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const u=ty(w.namespace.value),c=Bt(C),d=l(e,c),p=r(e,c);F({scrollLeft:i(e,n,a,o.scrollLeft,c,p>e.width?u:0),scrollTop:s(e,t,a,o.scrollTop,c,d>e.height?u:0)})},states:E,resetAfterColumnIndex:q,resetAfterRowIndex:U,resetAfter:Y});const G=()=>{const t=Ya(e.innerElement),n=(()=>{var t;const[n,a]=Bt(I),[o,l]=Bt(V),{data:r,totalColumn:i,totalRow:s,useIsScrolling:u,itemKey:c}=e,d=[];if(s>0&&i>0)for(let e=o;e<=l;e++)for(let o=n;o<=a;o++){const n=c({columnIndex:o,data:r,rowIndex:e});d.push(_r(El,{key:n},null==(t=b.default)?void 0:t.call(b,{columnIndex:o,data:r,isScrolling:u?Bt(E).isScrolling:void 0,style:j(e,o),rowIndex:e})))}return d})();return[_r(t,{style:Bt(z),ref:M},m(t)?n:{default:()=>n})]};return()=>{const t=Ya(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:a}=(()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:a,totalColumn:o,totalRow:l}=e,r=Bt($),i=Bt(O),s=Bt(L),u=Bt(A),{scrollLeft:c,scrollTop:d}=Bt(E);return{horizontalScrollbar:_r(iF,{ref:S,alwaysOn:t,startGap:n,endGap:a,class:w.e("horizontal"),clientSize:r,layout:"horizontal",onScroll:D,ratio:100*r/s,scrollFrom:c/(s-r),total:l,visible:!0}),verticalScrollbar:_r(iF,{ref:_,alwaysOn:t,startGap:n,endGap:a,class:w.e("vertical"),clientSize:i,layout:"vertical",onScroll:H,ratio:100*i/u,scrollFrom:d/(u-i),total:o,visible:!0})}})(),o=G();return _r("div",{key:0,class:w.e("wrapper"),role:e.role},[_r(t,{class:e.className,style:Bt(R),onScroll:N,ref:k},m(t)?o:{default:()=>o}),n,a])}}}),{max:CW,min:kW,floor:SW}=Math,_W={column:"columnWidth",row:"rowHeight"},MW={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},EW=(e,t,n,a)=>{const[o,l,r]=[n[a],e[_W[a]],n[MW[a]]];if(t>r){let e=0;if(r>=0){const t=o[r];e=t.offset+t.size}for(let n=r+1;n<=t;n++){const t=l(n);o[n]={offset:e,size:t},e+=t}n[MW[a]]=t}return o[t]},TW=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+SW((a-n)/2),i=EW(e,r,t,l).offset;if(i===o)return r;i{const[o,l]=[t[a],t[MW[a]]];return(l>0?o[l].offset:0)>=n?TW(e,t,0,l,n,a):((e,t,n,a,o)=>{const l="column"===o?e.totalColumn:e.totalRow;let r=1;for(;n{let o=0;if(n>=e&&(n=e-1),n>=0){const e=a[n];o=e.offset+e.size}return o+(e-n-1)*t},IW=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const e=t[a];o=e.offset+e.size}return o+(e-a-1)*n},VW={column:IW,row:$W},AW=(e,t,n,a,o,l,r)=>{const[i,s]=["row"===l?e.height:e.width,VW[l]],u=EW(e,t,o,l),c=s(e,o),d=CW(0,kW(c-i,u.offset)),p=CW(0,u.offset-i+r+u.size);switch("smart"===n&&(n=a>=p-i&&a<=d+i?"auto":"center"),n){case"start":return d;case"end":return p;case"center":return Math.round(p+(d-p)/2);default:return a>=p&&a<=d?a:p>d||a{const a=EW(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=EW(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>AW(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>AW(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>OW(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=EW(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,i=t;for(;iOW(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=EW(e,t,a,"row"),i=n+l;let s=r.size+r.offset,u=t;for(;u{const n=({columnIndex:n,rowIndex:a},o)=>{var l,r;o=!!sm(o)||o,cm(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),cm(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),null==(l=e.exposed)||l.getItemStyleCache.value(-1,null,null),o&&(null==(r=e.proxy)||r.$forceUpdate())};Object.assign(e.proxy,{resetAfterColumnIndex:(e,t)=>{n({columnIndex:e},t)},resetAfterRowIndex:(e,t)=>{n({rowIndex:e},t)},resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{h(e)||ug("ElDynamicSizeGrid",`\n "columnWidth" must be passed as function,\n instead ${typeof e} was given.\n `),h(t)||ug("ElDynamicSizeGrid",`\n "rowHeight" must be passed as function,\n instead ${typeof t} was given.\n `)}}),RW=xW({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,i)=>{n=Number(n);const s=Math.max(0,e*t-n),u=Math.min(s,a*t),c=Math.max(0,a*t-n+i+t);switch("smart"===o&&(o=l>=c-n&&l<=u+n?"auto":"center"),o){case"start":return u;case"end":return c;case"center":{const e=Math.round(c+(u-c)/2);return es+Math.floor(n/2)?s:e}default:return l>=c&&l<=u?l:c>u||l{t=Number(t);const s=Math.max(0,n*e-t),u=Math.min(s,a*e),c=Math.max(0,a*e-t+i+e);switch("smart"===o&&(o=l>=c-t&&l<=u+t?"auto":"center"),o){case"start":return u;case"end":return c;case"center":{const e=Math.round(c+(u-c)/2);return es+Math.floor(t/2)?s:e}default:return l>=c&&l<=u?l:c>u||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{cm(e)||ug("ElFixedSizeGrid",`\n "columnWidth" must be passed as number,\n instead ${typeof e} was given.\n `),cm(t)||ug("ElFixedSizeGrid",`\n "columnWidth" must be passed as number,\n instead ${typeof t} was given.\n `)}});var zW=Sa({name:"ElTableV2Grid",props:yW,setup(e,{slots:t,expose:n}){const{ns:a}=Oo(rW),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:s,headerHeight:u,totalHeight:c,forceUpdate:d,itemKey:p,onItemRendered:f,resetAfterRowIndex:v,scrollTo:h,scrollToTop:m,scrollToRow:g,scrollLeft:b}=(e=>{const t=At(),n=At(),a=At(0),o=Sr((()=>{const{data:t,rowHeight:n,estimatedRowHeight:a}=e;if(!a)return t.length*n})),l=Sr((()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n})),r=Sr((()=>tW(e.headerHeight))),i=Sr((()=>{const{height:t}=e;return Math.max(0,t-Bt(r)-Bt(l))})),s=Sr((()=>Bt(r)+Bt(l)>0));return cl((()=>e.bodyWidth),(()=>{var t;cm(e.estimatedRowHeight)&&(null==(t=n.value)||t.resetAfter({columnIndex:0},!1))})),{bodyRef:n,forceUpdate:function(){var e,a;null==(e=Bt(n))||e.$forceUpdate(),null==(a=Bt(t))||a.$forceUpdate()},fixedRowHeight:l,gridHeight:i,hasHeader:s,headerHeight:r,headerRef:t,totalHeight:o,itemKey:({data:t,rowIndex:n})=>t[n][e.rowKey],onItemRendered:function({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:a,rowVisibleEnd:o}){var l;null==(l=e.onRowsRendered)||l.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:a,rowVisibleEnd:o})},resetAfterRowIndex:function(e,t){var a;null==(a=n.value)||a.resetAfterRowIndex(e,t)},scrollTo:function(e,o){const l=Bt(t),r=Bt(n);y(e)?(null==l||l.scrollToLeft(e.scrollLeft),a.value=e.scrollLeft,null==r||r.scrollTo(e)):(null==l||l.scrollToLeft(e),a.value=e,null==r||r.scrollTo({scrollLeft:e,scrollTop:o}))},scrollToTop:function(e){var t;null==(t=Bt(n))||t.scrollTo({scrollTop:e})},scrollToRow:function(e,t){var a;null==(a=Bt(n))||a.scrollToItem(e,1,t)},scrollLeft:a}})(e);To("tableV2GridScrollLeft",b),n({forceUpdate:d,totalHeight:c,scrollTo:h,scrollToTop:m,scrollToRow:g,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:n,columns:c,data:d,fixedData:v,useIsScrolling:h,scrollbarAlwaysOn:m,scrollbarEndGap:g,scrollbarStartGap:y,style:b,rowHeight:x,bodyWidth:C,estimatedRowHeight:k,headerWidth:S,height:_,width:M,getRowHeight:E,onScroll:T}=e,O=cm(k),$=O?LW:RW,I=Bt(u);return Kl("div",{role:"table",class:[a.e("table"),e.class],style:b},[Kl($,{ref:o,data:d,useIsScrolling:h,itemKey:p,columnCache:0,columnWidth:O?w:C,totalColumn:1,totalRow:d.length,rowCache:n,rowHeight:O?E:x,width:M,height:Bt(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:y,scrollbarEndGap:g,scrollbarAlwaysOn:m,onScroll:T,onItemRendered:f,perfMode:!1},{default:e=>{var n;const a=d[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:c,rowData:a})}}),Bt(i)&&Kl(wW,{ref:s,class:a.e("header-wrapper"),columns:c,headerData:d,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:S,rowHeight:x,width:M,height:Math.min(I+Bt(l),_)},{dynamic:t.header,fixed:t.row})])}}});var BW=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};var NW=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};var HW=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};const DW=e=>{const{isScrolling:t}=Oo(rW),n=At(!1),a=At(),o=Sr((()=>cm(e.estimatedRowHeight)&&e.rowIndex>=0)),l=Sr((()=>{const{rowData:t,rowIndex:n,rowKey:a,onRowHover:o}=e,l=e.rowEventHandlers||{},r={};return Object.entries(l).forEach((([e,o])=>{h(o)&&(r[e]=e=>{o({event:e,rowData:t,rowIndex:n,rowKey:a})})})),o&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach((({name:e,hovered:l})=>{const i=r[e];r[e]=e=>{o({event:e,hovered:l,rowData:t,rowIndex:n,rowKey:a}),null==i||i(e)}})),r}));return Ba((()=>{Bt(o)&&((t=!1)=>{const o=Bt(a);if(!o)return;const{columns:l,onRowHeightChange:r,rowKey:i,rowIndex:s,style:u}=e,{height:c}=o.getBoundingClientRect();n.value=!0,gn((()=>{if(t||c!==Number.parseInt(u.height)){const e=l[0],t=(null==e?void 0:e.placeholderSign)===ZK;null==r||r({rowKey:i,height:c,rowIndex:s},e&&!t&&e.fixed)}}))})(!0)})),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:l,onExpand:t=>{const{onRowExpand:n,rowData:a,rowIndex:o,rowKey:l}=e;null==n||n({expanded:t,rowData:a,rowIndex:o,rowKey:l})}}};var PW=Sa({name:"ElTableV2TableRow",props:hW,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:i,rowRef:s,onExpand:u}=DW(e);return t({onExpand:u}),()=>{const{columns:t,columnsStyles:c,expandColumnKey:p,depth:f,rowData:v,rowIndex:h,style:m}=e;let g=t.map(((e,a)=>{const o=d(v.children)&&v.children.length>0&&e.key===p;return n.cell({column:e,columns:t,columnIndex:a,depth:f,style:c[e.key],rowData:v,rowIndex:h,isScrolling:Bt(l),expandIconProps:o?{rowData:v,rowIndex:h,onExpand:u}:void 0})}));if(n.row&&(g=n.row({cells:g.map((e=>d(e)&&1===e.length?e[0]:e)),style:m,columns:t,depth:f,rowData:v,rowIndex:h,isScrolling:Bt(l)})),Bt(r)){const{height:t,...n}=m||{},l=Bt(i);return Kl("div",er({ref:s,class:e.class,style:l?m:n,role:"row"},a,Bt(o)),[g])}return Kl("div",er(a,{ref:s,class:e.class,style:m,role:"row"},Bt(o)),[g])}}});var FW=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:s,rowData:u,rowIndex:c,style:d,isScrolling:p,rowProps:f,rowClass:v,rowKey:h,rowEventHandlers:m,ns:g,onRowHovered:y,onRowExpanded:b}=e,w=nW(v,{columns:n,rowData:u,rowIndex:c},""),x=nW(f,{columns:n,rowData:u,rowIndex:c}),C=u[h],k=o[C]||0,S=Boolean(l),_=c<0,M=[g.e("row"),w,{[g.e(`row-depth-${k}`)]:S&&c>=0,[g.is("expanded")]:S&&r.includes(C),[g.is("fixed")]:!k&&_,[g.is("customized")]:Boolean(t.row)}],E=s?y:void 0,T={...x,columns:n,columnsStyles:a,class:M,depth:k,expandColumnKey:l,estimatedRowHeight:_?void 0:i,isScrolling:p,rowIndex:c,rowData:u,rowKey:C,rowEventHandlers:m,style:d};return Kl(PW,er(T,{onRowExpand:b,onMouseenter:e=>{null==E||E({hovered:!0,rowKey:C,event:e,rowData:u,rowIndex:c})},onMouseleave:e=>{null==E||E({hovered:!1,rowKey:C,event:e,rowData:u,rowIndex:c})},rowkey:C}),"function"==typeof(O=t)||"[object Object]"===Object.prototype.toString.call(O)&&!Hl(O)?t:{default:()=>[t]});var O};const jW=(e,{slots:t})=>{var n;const{cellData:a,style:o}=e,l=(null==(n=null==a?void 0:a.toString)?void 0:n.call(a))||"",r=eo(t,"default",e,(()=>[l]));return Kl("div",{class:e.class,title:l,style:o},[r])};jW.displayName="ElTableV2Cell",jW.inheritAttrs=!1;var KW=jW;var WW=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l}=e,r={onClick:n?()=>a(!t):void 0,class:e.class};return Kl(py,er(r,{size:l,style:o}),{default:()=>[Kl(Vy,null,null)]})};const qW=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:i,style:s,expandedRowKeys:u,ns:c,cellProps:d,expandColumnKey:p,indentSize:f,iconSize:v,rowKey:m},{slots:g})=>{const b=aW(s);if(t.placeholderSign===ZK)return Kl("div",{class:c.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:x,dataGetter:C}=t,k=h(C)?C({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):ov(r,null!=x?x:""),S=nW(d,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),_={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:i},M=oW(w),E=M?M(_):eo(g,"default",_,(()=>[Kl(KW,_,null)])),T=[c.e("row-cell"),t.class,t.align===GK.CENTER&&c.is("align-center"),t.align===GK.RIGHT&&c.is("align-right")],O=i>=0&&p&&t.key===p,$=i>=0&&u.includes(r[m]);let I;const V=`margin-inline-start: ${a*f}px;`;return O&&(I=y(o)?Kl(WW,er(o,{class:[c.e("expand-icon"),c.is("expanded",$)],size:v,expanded:$,style:V,expandable:!0}),null):Kl("div",{style:[V,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Kl("div",er({class:T,style:b},S,{role:"cell"}),[I,E])};qW.inheritAttrs=!1;var UW=qW;var YW=Sa({name:"ElTableV2HeaderRow",props:Cg({class:String,columns:sW,columnsStyles:{type:Object,required:!0},headerIndex:Number,style:{type:Object}}),setup:(e,{slots:t})=>()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map(((e,l)=>t.cell({columns:n,column:e,columnIndex:l,headerIndex:o,style:a[e.key]})));return t.header&&(r=t.header({cells:r.map((e=>d(e)&&1===e.length?e[0]:e)),columns:n,headerIndex:o})),Kl("div",{class:e.class,style:l,role:"row"},[r])}});var GW=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:i})=>{const s={columns:e,headerIndex:n},u=[r.e("header-row"),nW(o,s,""),{[r.is("customized")]:Boolean(i.header)}],c={...nW(l,s),columnsStyles:t,class:u,columns:e,headerIndex:n,style:a};return Kl(YW,c,"function"==typeof(d=i)||"[object Object]"===Object.prototype.toString.call(d)&&!Hl(d)?i:{default:()=>[i]});var d};const XW=(e,{slots:t})=>eo(t,"default",e,(()=>{var t,n;return[Kl("div",{class:e.class,title:null==(t=e.column)?void 0:t.title},[null==(n=e.column)?void 0:n.title])]}));XW.displayName="ElTableV2HeaderCell",XW.inheritAttrs=!1;var JW=XW;var ZW=e=>{const{sortOrder:t}=e;return Kl(py,{size:14,class:e.class},{default:()=>[t===YK.ASC?Kl(gM,null,null):Kl(mM,null,null)]})};var QW=(e,{slots:t})=>{const{column:n,ns:a,style:o,onColumnSorted:l}=e,r=aW(o);if(n.placeholderSign===ZK)return Kl("div",{class:a.em("header-row-cell","placeholder"),style:r},null);const{headerCellRenderer:i,headerClass:s,sortable:u}=n,c={...e,class:a.e("header-cell-text")},d=oW(i),p=d?d(c):eo(t,"default",c,(()=>[Kl(JW,c,null)])),{sortBy:f,sortState:v,headerCellProps:h}=e;let m,g;if(v){const e=v[n.key];m=Boolean(JK[e]),g=m?e:YK.ASC}else m=n.key===f.key,g=m?f.order:YK.ASC;const y=[a.e("header-cell"),nW(s,e,""),n.align===GK.CENTER&&a.is("align-center"),n.align===GK.RIGHT&&a.is("align-right"),u&&a.is("sortable")],b={...nW(h,e),onClick:n.sortable?l:void 0,class:y,style:r,"data-key":n.key};return Kl("div",er(b,{role:"columnheader"}),[p,u&&Kl(ZW,{class:[a.e("sort-icon"),m&&a.is("sorting")],sortOrder:g},null)])};const eq=(e,{slots:t})=>{var n;return Kl("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};eq.displayName="ElTableV2Footer";var tq=eq;const nq=(e,{slots:t})=>{const n=eo(t,"default",{},(()=>[Kl(CN,null,null)]));return Kl("div",{class:e.class,style:e.style},[n])};nq.displayName="ElTableV2Empty";var aq=nq;const oq=(e,{slots:t})=>{var n;return Kl("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};oq.displayName="ElTableV2Overlay";var lq=oq;function rq(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Hl(e)}var iq=Sa({name:"ElTableV2",props:bW,setup(e,{slots:t,expose:n}){const a=Kd("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,mainColumns:i,mainTableHeight:s,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:d,data:p,depthMap:f,expandedRowKeys:v,hasFixedColumns:h,mainTableRef:m,leftTableRef:g,rightTableRef:y,isDynamic:b,isResetting:w,isScrolling:x,bodyWidth:C,emptyStyle:k,rootStyle:S,headerWidth:_,footerHeight:M,showEmpty:E,scrollTo:T,scrollToLeft:O,scrollToTop:$,scrollToRow:I,getRowHeight:V,onColumnSorted:A,onRowHeightChange:L,onRowHovered:R,onRowExpanded:z,onRowsRendered:B,onScroll:N,onVerticalScroll:H}=lW(e);return n({scrollTo:T,scrollToLeft:O,scrollToTop:$,scrollToRow:I}),To(rW,{ns:a,isResetting:w,isScrolling:x}),()=>{const{cache:n,cellProps:w,estimatedRowHeight:x,expandColumnKey:T,fixedData:O,headerHeight:$,headerClass:I,headerProps:D,headerCellProps:P,sortBy:F,sortState:j,rowHeight:K,rowClass:W,rowEventHandlers:q,rowKey:U,rowProps:Y,scrollbarAlwaysOn:G,indentSize:X,iconSize:J,useIsScrolling:Z,vScrollbarSize:Q,width:ee}=e,te=Bt(p),ne={cache:n,class:a.e("main"),columns:Bt(i),data:te,fixedData:O,estimatedRowHeight:x,bodyWidth:Bt(C)+Q,headerHeight:$,headerWidth:Bt(_),height:Bt(s),mainTableRef:m,rowKey:U,rowHeight:K,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,useIsScrolling:Z,width:ee,getRowHeight:V,onRowsRendered:B,onScroll:N},ae=Bt(c),oe=Bt(u),le={cache:n,class:a.e("left"),columns:Bt(l),data:te,fixedData:O,estimatedRowHeight:x,leftTableRef:g,rowHeight:K,bodyWidth:ae,headerWidth:ae,headerHeight:$,height:oe,rowKey:U,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,useIsScrolling:Z,width:ae,getRowHeight:V,onScroll:H},re=Bt(d)+Q,ie={cache:n,class:a.e("right"),columns:Bt(r),data:te,fixedData:O,estimatedRowHeight:x,rightTableRef:y,rowHeight:K,bodyWidth:re,headerWidth:re,headerHeight:$,height:oe,rowKey:U,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,width:re,style:`--${Bt(a.namespace)}-table-scrollbar-size: ${Q}px`,useIsScrolling:Z,getRowHeight:V,onScroll:H},se=Bt(o),ue={ns:a,depthMap:Bt(f),columnsStyles:se,expandColumnKey:T,expandedRowKeys:Bt(v),estimatedRowHeight:x,hasFixedColumns:Bt(h),rowProps:Y,rowClass:W,rowKey:U,rowEventHandlers:q,onRowHovered:R,onRowExpanded:z,onRowHeightChange:L},ce={cellProps:w,expandColumnKey:T,indentSize:X,iconSize:J,rowKey:U,expandedRowKeys:Bt(v),ns:a},de={ns:a,headerClass:I,headerProps:D,columnsStyles:se},pe={ns:a,sortBy:F,sortState:j,headerCellProps:P,onColumnSorted:A},fe={row:e=>Kl(FW,er(e,ue),{row:t.row,cell:e=>{let n;return t.cell?Kl(UW,er(e,ce,{style:se[e.column.key]}),rq(n=t.cell(e))?n:{default:()=>[n]}):Kl(UW,er(e,ce,{style:se[e.column.key]}),null)}}),header:e=>Kl(GW,er(e,de),{header:t.header,cell:e=>{let n;return t["header-cell"]?Kl(QW,er(e,pe,{style:se[e.column.key]}),rq(n=t["header-cell"](e))?n:{default:()=>[n]}):Kl(QW,er(e,pe,{style:se[e.column.key]}),null)}})},ve=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:Bt(b)}],he={class:a.e("footer"),style:Bt(M)};return Kl("div",{class:ve,style:Bt(S)},[Kl(BW,ne,rq(fe)?fe:{default:()=>[fe]}),Kl(NW,le,rq(fe)?fe:{default:()=>[fe]}),Kl(HW,ie,rq(fe)?fe:{default:()=>[fe]}),t.footer&&Kl(tq,he,{default:t.footer}),Bt(E)&&Kl(aq,{class:a.e("empty"),style:Bt(k)},{default:t.empty}),t.overlay&&Kl(lq,{class:a.e("overlay")},{default:t.overlay})])}}});const sq=Cg({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Function}});var uq=Sa({name:"ElAutoResizer",props:sq,setup(e,{slots:t}){const n=Kd("auto-resizer"),{height:a,width:o,sizer:l}=(e=>{const t=At(),n=At(0),a=At(0);let o;return Ba((()=>{o=Ym(t,(([e])=>{const{width:t,height:o}=e.contentRect,{paddingLeft:l,paddingRight:r,paddingTop:i,paddingBottom:s}=getComputedStyle(e.target),u=Number.parseInt(l)||0,c=Number.parseInt(r)||0,d=Number.parseInt(i)||0,p=Number.parseInt(s)||0;n.value=t-u-c,a.value=o-d-p})).stop})),Da((()=>{null==o||o()})),cl([n,a],(([t,n])=>{var a;null==(a=e.onResize)||a.call(e,{width:t,height:n})})),{sizer:t,width:n,height:a}})(e),r={width:"100%",height:"100%"};return()=>{var e;return Kl("div",{ref:l,class:n.b(),style:r},[null==(e=t.default)?void 0:e.call(t,{height:a.value,width:o.value})])}}});const cq=ry(iq),dq=ry(uq),pq=Symbol("tabsRootContextKey"),fq=Cg({tabs:{type:Array,default:()=>[]}}),vq=Sa({name:"ElTabBar"});var hq=Fg(Sa({...vq,props:fq,setup(e,{expose:t}){const n=e,a=lr(),o=Oo(pq);o||ug("ElTabBar","");const l=Kd("tabs"),r=At(),i=At(),s=()=>i.value=(()=>{let e=0,t=0;const l=["top","bottom"].includes(o.props.tabPosition)?"width":"height",r="width"===l?"x":"y",i="x"===r?"left":"top";return n.tabs.every((n=>{var o,r;const s=null==(r=null==(o=a.parent)?void 0:o.refs)?void 0:r[`tab-${n.uid}`];if(!s)return!1;if(!n.active)return!0;e=s[`offset${VA(i)}`],t=s[`client${VA(l)}`];const u=window.getComputedStyle(s);return"width"===l&&(t-=Number.parseFloat(u.paddingLeft)+Number.parseFloat(u.paddingRight),e+=Number.parseFloat(u.paddingLeft)),!1})),{[l]:`${t}px`,transform:`translate${VA(r)}(${e}px)`}})(),u=[];cl((()=>n.tabs),(async()=>{await gn(),s(),(()=>{var e;u.forEach((e=>e.stop())),u.length=0;const t=null==(e=a.parent)?void 0:e.refs;if(t)for(const n in t)if(n.startsWith("tab-")){const e=t[n];e&&u.push(Ym(e,s))}})()}),{immediate:!0});const c=Ym(r,(()=>s()));return Da((()=>{u.forEach((e=>e.stop())),u.length=0,c.stop()})),t({ref:r,update:s}),(e,t)=>(Al(),Bl("div",{ref_key:"barRef",ref:r,class:W([Bt(l).e("active-bar"),Bt(l).is(Bt(o).props.tabPosition)]),style:D(i.value)},null,6))}}),[["__file","tab-bar.vue"]]);const mq=Cg({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),gq=Sa({name:"ElTabNav",props:mq,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const a=Oo(pq);a||ug("ElTabNav","");const o=Kd("tabs"),l=function({document:e=Nm}={}){if(!e)return At("visible");const t=At(e.visibilityState);return Hm(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),r=function({window:e=Bm}={}){if(!e)return At(!1);const t=At(e.document.hasFocus());return Hm(e,"blur",(()=>{t.value=!1})),Hm(e,"focus",(()=>{t.value=!0})),t}(),i=At(),s=At(),u=At(),c=At(),d=At(!1),p=At(0),f=At(!1),v=At(!0),h=Sr((()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height")),m=Sr((()=>({transform:`translate${"width"===h.value?"X":"Y"}(-${p.value}px)`}))),g=()=>{if(!i.value)return;const e=i.value[`offset${VA(h.value)}`],t=p.value;if(!t)return;const n=t>e?t-e:0;p.value=n},y=()=>{if(!i.value||!s.value)return;const e=s.value[`offset${VA(h.value)}`],t=i.value[`offset${VA(h.value)}`],n=p.value;if(e-n<=t)return;const a=e-n>2*t?n+t:e-t;p.value=a},b=async()=>{const e=s.value;if(!(d.value&&u.value&&i.value&&e))return;await gn();const t=u.value.querySelector(".is-active");if(!t)return;const n=i.value,o=["top","bottom"].includes(a.props.tabPosition),l=t.getBoundingClientRect(),r=n.getBoundingClientRect(),c=o?e.offsetWidth-r.width:e.offsetHeight-r.height,f=p.value;let v=f;o?(l.leftr.right&&(v=f+l.right-r.right)):(l.topr.bottom&&(v=f+(l.bottom-r.bottom))),v=Math.max(v,0),p.value=Math.min(v,c)},w=()=>{var t;if(!s.value||!i.value)return;e.stretch&&(null==(t=c.value)||t.update());const n=s.value[`offset${VA(h.value)}`],a=i.value[`offset${VA(h.value)}`],o=p.value;a0&&(p.value=0))},x=e=>{let t=0;switch(e.code){case qT.left:case qT.up:t=-1;break;case qT.right:case qT.down:t=1;break;default:return}const n=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let a=n.indexOf(e.target)+t;a<0?a=n.length-1:a>=n.length&&(a=0),n[a].focus({preventScroll:!0}),n[a].click(),C()},C=()=>{v.value&&(f.value=!0)},k=()=>f.value=!1;return cl(l,(e=>{"hidden"===e?v.value=!1:"visible"===e&&setTimeout((()=>v.value=!0),50)})),cl(r,(e=>{e?setTimeout((()=>v.value=!0),50):v.value=!1})),Ym(u,w),Ba((()=>setTimeout((()=>b()),0))),Ha((()=>w())),t({scrollToActiveTab:b,removeFocus:k}),()=>{const t=d.value?[Kl("span",{class:[o.e("nav-prev"),o.is("disabled",!d.value.prev)],onClick:g},[Kl(py,null,{default:()=>[Kl(Ty,null,null)]})]),Kl("span",{class:[o.e("nav-next"),o.is("disabled",!d.value.next)],onClick:y},[Kl(py,null,{default:()=>[Kl(Vy,null,null)]})])]:null,l=e.panes.map(((t,l)=>{var r,i,s,u;const c=t.uid,d=t.props.disabled,p=null!=(i=null!=(r=t.props.name)?r:t.index)?i:`${l}`,v=!d&&(t.isClosable||e.editable);t.index=`${l}`;const h=v?Kl(py,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Kl(mw,null,null)]}):null,m=(null==(u=(s=t.slots).label)?void 0:u.call(s))||t.props.label,g=!d&&t.active?0:-1;return Kl("div",{ref:`tab-${c}`,class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",t.active),o.is("disabled",d),o.is("closable",v),o.is("focus",f.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:g,onFocus:()=>C(),onBlur:()=>k(),onClick:e=>{k(),n("tabClick",t,p,e)},onKeydown:e=>{!v||e.code!==qT.delete&&e.code!==qT.backspace||n("tabRemove",t,e)}},[m,h])}));return Kl("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!d.value),o.is(a.props.tabPosition)]},[t,Kl("div",{class:o.e("nav-scroll"),ref:i},[Kl("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:s,style:m.value,role:"tablist",onKeydown:x},[e.type?null:Kl(hq,{ref:c,tabs:[...e.panes]},null),l])])])}}}),yq=Cg({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),bq=e=>m(e)||cm(e),wq={[Hg]:e=>bq(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>bq(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>bq(e),tabAdd:()=>!0};var xq=Sa({name:"ElTabs",props:yq,emits:wq,setup(e,{emit:t,slots:n,expose:a}){var o;const l=Kd("tabs"),r=Sr((()=>["left","right"].includes(e.tabPosition))),{children:i,addChild:s,removeChild:u}=RV(lr(),"ElTabPane"),c=At(),d=At(null!=(o=e.modelValue)?o:"0"),p=async(n,a=!1)=>{var o,l;if(d.value!==n&&!sm(n))try{let r;if(e.beforeLeave){const t=e.beforeLeave(n,d.value);r=t instanceof Promise?await t:t}else r=!0;!1!==r&&(d.value=n,a&&(t(Hg,n),t("tabChange",n)),null==(l=null==(o=c.value)?void 0:o.removeFocus)||l.call(o))}catch(yR){}},f=(e,n,a)=>{e.props.disabled||(p(n,!0),t("tabClick",e,a))},v=(e,n)=>{e.props.disabled||sm(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};cl((()=>e.modelValue),(e=>p(e))),cl(d,(async()=>{var e;await gn(),null==(e=c.value)||e.scrollToActiveTab()})),To(pq,{props:e,currentName:d,registerPane:e=>{i.value.push(e)},sortPane:s,unregisterPane:u}),a({currentName:d});const m=({render:e})=>e();return()=>{const t=n["add-icon"],a=e.editable||e.addable?Kl("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:"0",onClick:h,onKeydown:e=>{[qT.enter,qT.numpadEnter].includes(e.code)&&h()}},[t?eo(n,"add-icon"):Kl(py,{class:l.is("icon-plus")},{default:()=>[Kl(O_,null,null)]})]):null,o=Kl("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[Kl(m,{render:()=>{const t=i.value.some((e=>e.slots.label));return Kl(gq,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:f,onTabRemove:v},{$stable:!t})}},null),a]),s=Kl("div",{class:l.e("content")},[eo(n,"default")]);return Kl("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:"card"===e.type,[l.m("border-card")]:"border-card"===e.type}]},[s,o])}}});const Cq=Cg({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),kq=Sa({name:"ElTabPane"});var Sq=Fg(Sa({...kq,props:Cq,setup(e){const t=e,n=lr(),a=io(),o=Oo(pq);o||ug("ElTabPane","usage: ");const l=Kd("tab-pane"),r=At(),i=Sr((()=>t.closable||o.props.closable)),s=km((()=>{var e;return o.currentName.value===(null!=(e=t.name)?e:r.value)})),u=At(s.value),c=Sr((()=>{var e;return null!=(e=t.name)?e:r.value})),d=km((()=>!t.lazy||u.value||s.value));cl(s,(e=>{e&&(u.value=!0)}));const p=bt({uid:n.uid,slots:a,props:t,paneName:c,active:s,index:r,isClosable:i});return o.registerPane(p),Ba((()=>{o.sortPane(p)})),Pa((()=>{o.unregisterPane(p.uid)})),(e,t)=>Bt(d)?Xn((Al(),Bl("div",{key:0,id:`pane-${Bt(c)}`,class:W(Bt(l).b()),role:"tabpanel","aria-hidden":!Bt(s),"aria-labelledby":`tab-${Bt(c)}`},[eo(e.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[ei,Bt(s)]]):Xl("v-if",!0)}}),[["__file","tab-pane.vue"]]);const _q=ry(xq,{TabPane:Sq}),Mq=sy(Sq),Eq=Cg({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:kg,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Tq=Sa({name:"ElText"});const Oq=ry(Fg(Sa({...Tq,props:Eq,setup(e){const t=e,n=At(),a=WE(),o=Kd("text"),l=Sr((()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!sm(t.lineClamp))])),r=so().title,i=()=>{var e,a,o,l,i;if(r)return;let s=!1;const u=(null==(e=n.value)?void 0:e.textContent)||"";if(t.truncated){const e=null==(a=n.value)?void 0:a.offsetWidth,t=null==(o=n.value)?void 0:o.scrollWidth;e&&t&&t>e&&(s=!0)}else if(!sm(t.lineClamp)){const e=null==(l=n.value)?void 0:l.offsetHeight,t=null==(i=n.value)?void 0:i.scrollHeight;e&&t&&t>e&&(s=!0)}s?n.value.setAttribute("title",u):n.value.removeAttribute("title")};return Ba(i),Ha(i),(e,t)=>(Al(),Nl(Ya(e.tag),{ref_key:"textRef",ref:n,class:W(Bt(l)),style:D({"-webkit-line-clamp":e.lineClamp})},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),$q=Cg({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Sg,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:[String,Object],default:()=>pw},clearIcon:{type:[String,Object],default:()=>rw},...Og}),Iq=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&12===n?n=0:o.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:a}}return null},Vq=(e,t)=>{const n=Iq(e);if(!n)return-1;const a=Iq(t);if(!a)return-1;const o=n.minutes+60*n.hours,l=a.minutes+60*a.hours;return o===l?0:o>l?1:-1},Aq=e=>`${e}`.padStart(2,"0"),Lq=e=>`${Aq(e.hours)}:${Aq(e.minutes)}`,Rq=(e,t)=>{const n=Iq(e);if(!n)return"";const a=Iq(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,Lq(o)},zq=Sa({name:"ElTimeSelect"});const Bq=ry(Fg(Sa({...zq,props:$q,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;tV.extend(xR);const{Option:a}=ED,o=Kd("input"),l=At(),r=qE(),{lang:i}=wg(),s=Sr((()=>n.modelValue)),u=Sr((()=>{const e=Iq(n.start);return e?Lq(e):null})),c=Sr((()=>{const e=Iq(n.end);return e?Lq(e):null})),d=Sr((()=>{const e=Iq(n.step);return e?Lq(e):null})),p=Sr((()=>{const e=Iq(n.minTime||"");return e?Lq(e):null})),f=Sr((()=>{const e=Iq(n.maxTime||"");return e?Lq(e):null})),v=Sr((()=>{var e;const t=[],a=(e,n)=>{t.push({value:e,disabled:Vq(n,p.value||"-1:-1")<=0||Vq(n,f.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let o,l=u.value;for(;l&&c.value&&Vq(l,c.value)<=0;)o=tV(l,"HH:mm").locale(i.value).format(n.format),a(o,l),l=Rq(l,d.value);if(n.includeEndTime&&c.value&&(null==(e=t[t.length-1])?void 0:e.value)!==c.value){a(tV(c.value,"HH:mm").locale(i.value).format(n.format),c.value)}}return t}));return t({blur:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.blur)||t.call(e)},focus:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.focus)||t.call(e)}}),(e,t)=>(Al(),Nl(Bt(ED),{ref_key:"select",ref:l,"model-value":Bt(s),disabled:Bt(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"onUpdate:modelValue":t=>e.$emit("update:modelValue",t),onChange:t=>e.$emit("change",t),onBlur:t=>e.$emit("blur",t),onFocus:t=>e.$emit("focus",t),onClear:()=>e.$emit("clear")},{prefix:Yn((()=>[e.prefixIcon?(Al(),Nl(Bt(py),{key:0,class:W(Bt(o).e("prefix-icon"))},{default:Yn((()=>[(Al(),Nl(Ya(e.prefixIcon)))])),_:1},8,["class"])):Xl("v-if",!0)])),default:Yn((()=>[(Al(!0),Bl(El,null,Za(Bt(v),(e=>(Al(),Nl(Bt(a),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}}),[["__file","time-select.vue"]])),Nq=Sa({name:"ElTimeline",setup(e,{slots:t}){const n=Kd("timeline");return To("timeline",t),()=>_r("ul",{class:[n.b()]},[eo(t,"default")])}}),Hq=Cg({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:hE},hollow:Boolean}),Dq=Sa({name:"ElTimelineItem"});var Pq=Fg(Sa({...Dq,props:Hq,setup(e){const t=e,n=Kd("timeline-item"),a=Sr((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>(Al(),Bl("li",{class:W([Bt(n).b(),{[Bt(n).e("center")]:e.center}])},[jl("div",{class:W(Bt(n).e("tail"))},null,2),e.$slots.dot?Xl("v-if",!0):(Al(),Bl("div",{key:0,class:W(Bt(a)),style:D({backgroundColor:e.color})},[e.icon?(Al(),Nl(Bt(py),{key:0,class:W(Bt(n).e("icon"))},{default:Yn((()=>[(Al(),Nl(Ya(e.icon)))])),_:1},8,["class"])):Xl("v-if",!0)],6)),e.$slots.dot?(Al(),Bl("div",{key:1,class:W(Bt(n).e("dot"))},[eo(e.$slots,"dot")],2)):Xl("v-if",!0),jl("div",{class:W(Bt(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Xl("v-if",!0):(Al(),Bl("div",{key:0,class:W([Bt(n).e("timestamp"),Bt(n).is("top")])},te(e.timestamp),3)),jl("div",{class:W(Bt(n).e("content"))},[eo(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Xl("v-if",!0):(Al(),Bl("div",{key:1,class:W([Bt(n).e("timestamp"),Bt(n).is("bottom")])},te(e.timestamp),3))],2)],2))}}),[["__file","timeline-item.vue"]]);const Fq=ry(Nq,{TimelineItem:Pq}),jq=sy(Pq),Kq=Cg({nowrap:Boolean});var Wq=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Wq||{});const qq=Object.values(Wq),Uq=Cg({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Object,default:null}}),Yq=Cg({side:{type:String,values:qq,required:!0}}),Gq=Cg({arrowPadding:{type:Number,default:5},effect:{type:String,default:"light"},contentClass:String,placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},offset:{type:Number,default:8},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},showArrow:Boolean,...$E(["ariaLabel"])}),Xq=Cg({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Jq={type:Function},Zq=Cg({onBlur:Jq,onClick:Jq,onFocus:Jq,onMouseDown:Jq,onMouseEnter:Jq,onMouseLeave:Jq}),Qq=Cg({...Xq,...Uq,...Zq,...Gq,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Object,default:null},teleported:Boolean,to:{type:String,default:"body"}}),eU=Symbol("tooltipV2"),tU=Symbol("tooltipV2Content"),nU=Sa({name:"ElTooltipV2Root"});var aU=Fg(Sa({...nU,props:Xq,setup(e,{expose:t}){const n=e,a=At(n.defaultOpen),o=At(null),l=Sr({get:()=>fm(n.open)?a.value:n.open,set:e=>{var t;a.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),r=Sr((()=>cm(n.delayDuration)&&n.delayDuration>0)),{start:i,stop:s}=Rm((()=>{l.value=!0}),Sr((()=>n.delayDuration)),{immediate:!1}),u=Kd("tooltip-v2"),c=PE(),d=()=>{s(),l.value=!0},p=d,f=()=>{s(),l.value=!1};return cl(l,(e=>{var t;e&&(document.dispatchEvent(new CustomEvent("tooltip_v2.open")),p()),null==(t=n.onOpenChange)||t.call(n,e)})),Ba((()=>{document.addEventListener("tooltip_v2.open",f)})),Da((()=>{s(),document.removeEventListener("tooltip_v2.open",f)})),To(eU,{contentId:c,triggerRef:o,ns:u,onClose:f,onDelayOpen:()=>{Bt(r)?i():d()},onOpen:p}),t({onOpen:p,onClose:f}),(e,t)=>eo(e.$slots,"default",{open:Bt(l)})}}),[["__file","root.vue"]]);const oU=Sa({name:"ElTooltipV2Arrow"});var lU=Fg(Sa({...oU,props:{...Uq,...Yq},setup(e){const t=e,{ns:n}=Oo(eU),{arrowRef:a}=Oo(tU),o=Sr((()=>{const{style:e,width:a,height:o}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${o}px`,[`--${l}-tooltip-v2-arrow-border-width`]:a/2+"px",[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...e||{}}}));return(e,t)=>(Al(),Bl("span",{ref_key:"arrowRef",ref:a,style:D(Bt(o)),class:W(Bt(n).e("arrow"))},null,6))}}),[["__file","arrow.vue"]]);const rU=Math.min,iU=Math.max,sU=Math.round,uU=Math.floor,cU=e=>({x:e,y:e}),dU={left:"right",right:"left",bottom:"top",top:"bottom"},pU={start:"end",end:"start"};function fU(e,t,n){return iU(e,rU(t,n))}function vU(e,t){return"function"==typeof e?e(t):e}function hU(e){return e.split("-")[0]}function mU(e){return e.split("-")[1]}function gU(e){return"x"===e?"y":"x"}function yU(e){return"y"===e?"height":"width"}function bU(e){return["top","bottom"].includes(hU(e))?"y":"x"}function wU(e){return gU(bU(e))}function xU(e,t,n){void 0===n&&(n=!1);const a=mU(e),o=wU(e),l=yU(o);let r="x"===o?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=kU(r)),[r,kU(r)]}function CU(e){return e.replace(/start|end/g,(e=>pU[e]))}function kU(e){return e.replace(/left|right|bottom|top/g,(e=>dU[e]))}function SU(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _U(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function MU(e,t,n){let{reference:a,floating:o}=e;const l=bU(t),r=wU(t),i=yU(r),s=hU(t),u="y"===l,c=a.x+a.width/2-o.width/2,d=a.y+a.height/2-o.height/2,p=a[i]/2-o[i]/2;let f;switch(s){case"top":f={x:c,y:a.y-o.height};break;case"bottom":f={x:c,y:a.y+a.height};break;case"right":f={x:a.x+a.width,y:d};break;case"left":f={x:a.x-o.width,y:d};break;default:f={x:a.x,y:a.y}}switch(mU(t)){case"start":f[r]-=p*(n&&u?-1:1);break;case"end":f[r]+=p*(n&&u?-1:1)}return f}async function EU(e,t){var n;void 0===t&&(t={});const{x:a,y:o,platform:l,rects:r,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=vU(t,e),v=SU(f),h=i[p?"floating"===d?"reference":"floating":d],m=_U(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:s})),g="floating"===d?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(i.floating)),b=await(null==l.isElement?void 0:l.isElement(y))&&await(null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},w=_U(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:s}):g);return{top:(m.top-w.top+v.top)/b.y,bottom:(w.bottom-m.bottom+v.bottom)/b.y,left:(m.left-w.left+v.left)/b.x,right:(w.right-m.right+v.right)/b.x}}function TU(){return"undefined"!=typeof window}function OU(e){return VU(e)?(e.nodeName||"").toLowerCase():"#document"}function $U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function IU(e){var t;return null==(t=(VU(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function VU(e){return!!TU()&&(e instanceof Node||e instanceof $U(e).Node)}function AU(e){return!!TU()&&(e instanceof Element||e instanceof $U(e).Element)}function LU(e){return!!TU()&&(e instanceof HTMLElement||e instanceof $U(e).HTMLElement)}function RU(e){return!(!TU()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $U(e).ShadowRoot)}function zU(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=FU(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(o)}function BU(e){return["table","td","th"].includes(OU(e))}function NU(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(yR){return!1}}))}function HU(e){const t=DU(),n=AU(e)?FU(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function DU(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function PU(e){return["html","body","#document"].includes(OU(e))}function FU(e){return $U(e).getComputedStyle(e)}function jU(e){return AU(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function KU(e){if("html"===OU(e))return e;const t=e.assignedSlot||e.parentNode||RU(e)&&e.host||IU(e);return RU(t)?t.host:t}function WU(e){const t=KU(e);return PU(t)?e.ownerDocument?e.ownerDocument.body:e.body:LU(t)&&zU(t)?t:WU(t)}function qU(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=WU(e),l=o===(null==(a=e.ownerDocument)?void 0:a.body),r=$U(o);if(l){const e=UU(r);return t.concat(r,r.visualViewport||[],zU(o)?o:[],e&&n?qU(e):[])}return t.concat(o,qU(o,[],n))}function UU(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function YU(e){const t=FU(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=LU(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,i=sU(n)!==l||sU(a)!==r;return i&&(n=l,a=r),{width:n,height:a,$:i}}function GU(e){return AU(e)?e:e.contextElement}function XU(e){const t=GU(e);if(!LU(t))return cU(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=YU(t);let r=(l?sU(n.width):n.width)/a,i=(l?sU(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}const JU=cU(0);function ZU(e){const t=$U(e);return DU()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:JU}function QU(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),l=GU(e);let r=cU(1);t&&(a?AU(a)&&(r=XU(a)):r=XU(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$U(e))&&t}(l,n,a)?ZU(l):cU(0);let s=(o.left+i.x)/r.x,u=(o.top+i.y)/r.y,c=o.width/r.x,d=o.height/r.y;if(l){const e=$U(l),t=a&&AU(a)?$U(a):a;let n=e,o=UU(n);for(;o&&a&&t!==n;){const e=XU(o),t=o.getBoundingClientRect(),a=FU(o),l=t.left+(o.clientLeft+parseFloat(a.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(a.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=l,u+=r,n=$U(o),o=UU(n)}}return _U({width:c,height:d,x:s,y:u})}function eY(e,t){const n=jU(e).scrollLeft;return t?t.left+n:QU(IU(e)).left+n}function tY(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=$U(e),a=IU(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,i=0,s=0;if(o){l=o.width,r=o.height;const e=DU();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}return{width:l,height:r,x:i,y:s}}(e,n);else if("document"===t)a=function(e){const t=IU(e),n=jU(e),a=e.ownerDocument.body,o=iU(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=iU(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+eY(e);const i=-n.scrollTop;return"rtl"===FU(a).direction&&(r+=iU(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:i}}(IU(e));else if(AU(t))a=function(e,t){const n=QU(e,!0,"fixed"===t),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=LU(e)?XU(e):cU(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:o*l.x,y:a*l.y}}(t,n);else{const n=ZU(e);a={...t,x:t.x-n.x,y:t.y-n.y}}return _U(a)}function nY(e,t){const n=KU(e);return!(n===t||!AU(n)||PU(n))&&("fixed"===FU(n).position||nY(n,t))}function aY(e,t,n){const a=LU(t),o=IU(t),l="fixed"===n,r=QU(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const s=cU(0);if(a||!a&&!l)if(("body"!==OU(t)||zU(o))&&(i=jU(t)),a){const e=QU(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eY(o));let u=0,c=0;if(o&&!a&&!l){const e=o.getBoundingClientRect();c=e.top+i.scrollTop,u=e.left+i.scrollLeft-eY(o,e)}return{x:r.left+i.scrollLeft-s.x-u,y:r.top+i.scrollTop-s.y-c,width:r.width,height:r.height}}function oY(e){return"static"===FU(e).position}function lY(e,t){if(!LU(e)||"fixed"===FU(e).position)return null;if(t)return t(e);let n=e.offsetParent;return IU(e)===n&&(n=n.ownerDocument.body),n}function rY(e,t){const n=$U(e);if(NU(e))return n;if(!LU(e)){let t=KU(e);for(;t&&!PU(t);){if(AU(t)&&!oY(t))return t;t=KU(t)}return n}let a=lY(e,t);for(;a&&BU(a)&&oY(a);)a=lY(a,t);return a&&PU(a)&&oY(a)&&!HU(a)?n:a||function(e){let t=KU(e);for(;LU(t)&&!PU(t);){if(HU(t))return t;if(NU(t))return null;t=KU(t)}return null}(e)||n}const iY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l="fixed"===o,r=IU(a),i=!!t&&NU(t.floating);if(a===r||i&&l)return n;let s={scrollLeft:0,scrollTop:0},u=cU(1);const c=cU(0),d=LU(a);if((d||!d&&!l)&&(("body"!==OU(a)||zU(r))&&(s=jU(a)),LU(a))){const e=QU(a);u=XU(a),c.x=e.x+a.clientLeft,c.y=e.y+a.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:IU,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const l="clippingAncestors"===n?NU(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=qU(e,[],!1).filter((e=>AU(e)&&"body"!==OU(e))),o=null;const l="fixed"===FU(e).position;let r=l?KU(e):e;for(;AU(r)&&!PU(r);){const t=FU(r),n=HU(r);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||zU(r)&&!n&&nY(e,r))?a=a.filter((e=>e!==r)):o=t,r=KU(r)}return t.set(e,a),a}(t,this._c):[].concat(n),r=[...l,a],i=r[0],s=r.reduce(((e,n)=>{const a=tY(t,n,o);return e.top=iU(a.top,e.top),e.right=rU(a.right,e.right),e.bottom=rU(a.bottom,e.bottom),e.left=iU(a.left,e.left),e}),tY(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rY,getElementRects:async function(e){const t=this.getOffsetParent||rY,n=this.getDimensions,a=await n(e.floating);return{reference:aY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=YU(e);return{width:t,height:n}},getScale:XU,isElement:AU,isRTL:function(e){return"rtl"===FU(e).direction}};function sY(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=a,u=GU(e),c=o||l?[...u?qU(u):[],...qU(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const d=u&&i?function(e,t){let n,a=null;const o=IU(e);function l(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function r(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),l();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;const f={rootMargin:-uU(c)+"px "+-uU(o.clientWidth-(u+d))+"px "+-uU(o.clientHeight-(c+p))+"px "+-uU(u)+"px",threshold:iU(0,rU(1,s))||1};let v=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return r();t?r(!1,t):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}v=!1}try{a=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(yR){a=new IntersectionObserver(h,f)}a.observe(e)}(!0),l}(u,n):null;let p,f=-1,v=null;r&&(v=new ResizeObserver((e=>{let[a]=e;a&&a.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),u&&!s&&v.observe(u),v.observe(t));let h=s?QU(e):null;return s&&function t(){const a=QU(e);!h||a.x===h.x&&a.y===h.y&&a.width===h.width&&a.height===h.height||n();h=a,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(p)}}const uY=EU,cY=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:i}=t,s=await async function(e,t){const{placement:n,platform:a,elements:o}=e,l=await(null==a.isRTL?void 0:a.isRTL(o.floating)),r=hU(n),i=mU(n),s="y"===bU(n),u=["left","top"].includes(r)?-1:1,c=l&&s?-1:1,d=vU(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof v&&(f="end"===i?-1*v:v),s?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return r===(null==(n=i.offset)?void 0:n.placement)&&null!=(a=i.arrow)&&a.alignmentOffset?{}:{x:o+s.x,y:l+s.y,data:{...s,placement:r}}}}},dY=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=vU(e,t),u={x:n,y:a},c=await EU(t,s),d=bU(hU(o)),p=gU(d);let f=u[p],v=u[d];if(l){const e="y"===p?"bottom":"right";f=fU(f+c["y"===p?"top":"left"],f,f-c[e])}if(r){const e="y"===d?"bottom":"right";v=fU(v+c["y"===d?"top":"left"],v,v-c[e])}const h=i.fn({...t,[p]:f,[d]:v});return{...h,data:{x:h.x-n,y:h.y-a,enabled:{[p]:l,[d]:r}}}}}},pY=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:l,rects:r,initialPlacement:i,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=vU(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const g=hU(o),y=bU(i),b=hU(i)===i,w=await(null==s.isRTL?void 0:s.isRTL(u.floating)),x=p||(b||!h?[kU(i)]:function(e){const t=kU(e);return[CU(e),t,CU(t)]}(i)),C="none"!==v;!p&&C&&x.push(...function(e,t,n,a){const o=mU(e);let l=function(e,t,n){const a=["left","right"],o=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:a:t?a:o;case"left":case"right":return t?l:r;default:return[]}}(hU(e),"start"===n,a);return o&&(l=l.map((e=>e+"-"+o)),t&&(l=l.concat(l.map(CU)))),l}(i,h,v,w));const k=[i,...x],S=await EU(t,m),_=[];let M=(null==(a=l.flip)?void 0:a.overflows)||[];if(c&&_.push(S[g]),d){const e=xU(o,r,w);_.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:o,overflows:_}],!_.every((e=>e<=0))){var E,T;const e=((null==(E=l.flip)?void 0:E.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=bU(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},fY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:i,middlewareData:s}=t,{element:u,padding:c=0}=vU(e,t)||{};if(null==u)return{};const d=SU(c),p={x:n,y:a},f=wU(o),v=yU(f),h=await r.getDimensions(u),m="y"===f,g=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=l.reference[v]+l.reference[f]-p[f]-l.floating[v],x=p[f]-l.reference[f],C=await(null==r.getOffsetParent?void 0:r.getOffsetParent(u));let k=C?C[b]:0;k&&await(null==r.isElement?void 0:r.isElement(C))||(k=i.floating[b]||l.floating[v]);const S=w/2-x/2,_=k/2-h[v]/2-1,M=rU(d[g],_),E=rU(d[y],_),T=M,O=k-h[v]-E,$=k/2-h[v]/2+S,I=fU(T,$,O),V=!s.arrow&&null!=mU(o)&&$!==I&&l.reference[v]/2-(${const a=new Map,o={platform:iY,...n},l={...o.platform,_c:a};return(async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let u=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=MU(u,a,s),p=a,f={},v=0;for(let h=0;h({})}}),mY=Sa({name:"ElVisuallyHidden"});var gY=Fg(Sa({...mY,props:hY,setup(e){const t=e,n=Sr((()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]));return(e,t)=>(Al(),Bl("span",er(e.$attrs,{style:Bt(n)}),[eo(e.$slots,"default")],16))}}),[["__file","visual-hidden.vue"]]);Cg({});const yY=({middleware:e,placement:t,strategy:n})=>{const a=At(),o=At(),l=At(),r=At(),i=At({}),s={x:l,y:r,placement:t,strategy:n,middlewareData:i},u=async()=>{if(!Sm)return;const l=(e=>{if(!Sm)return;if(!e)return e;const t=zm(e);return t||(Vt(e)?t:e)})(a),r=zm(o);if(!l||!r)return;const i=await vY(l,r,{placement:Bt(t),strategy:Bt(n),middleware:Bt(e)});Ig(s).forEach((e=>{s[e].value=i[e]}))};return Ba((()=>{ul((()=>{u()}))})),{...s,update:u,referenceRef:a,contentRef:o}},bY=Sa({name:"ElTooltipV2Content"});var wY=Fg(Sa({...bY,props:{...Gq,...Kq},setup(e){const t=e,{triggerRef:n,contentId:a}=Oo(eU),o=At(t.placement),l=At(t.strategy),r=At(null),{referenceRef:i,contentRef:s,middlewareData:u,x:c,y:d,update:p}=yY({placement:o,strategy:l,middleware:Sr((()=>{const e=[cY(t.offset)];return t.showArrow&&e.push((({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=Bt(e);return a?fY({element:a,padding:t}).fn(n):{}}}))({arrowRef:r})),e}))}),f=hg().nextZIndex(),v=Kd("tooltip-v2"),h=Sr((()=>o.value.split("-")[0])),m=Sr((()=>({position:Bt(l),top:`${Bt(d)||0}px`,left:`${Bt(c)||0}px`,zIndex:f}))),g=Sr((()=>{if(!t.showArrow)return{};const{arrow:e}=Bt(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),y=Sr((()=>[v.e("content"),v.is("dark","dark"===t.effect),v.is(Bt(l)),t.contentClass]));return cl(r,(()=>p())),cl((()=>t.placement),(e=>o.value=e)),Ba((()=>{cl((()=>t.reference||n.value),(e=>{i.value=e||void 0}),{immediate:!0})})),To(tU,{arrowRef:r}),(e,t)=>(Al(),Bl("div",{ref_key:"contentRef",ref:s,style:D(Bt(m)),"data-tooltip-v2-root":""},[e.nowrap?Xl("v-if",!0):(Al(),Bl("div",{key:0,"data-side":Bt(h),class:W(Bt(y))},[eo(e.$slots,"default",{contentStyle:Bt(m),contentClass:Bt(y)}),Kl(Bt(gY),{id:Bt(a),role:"tooltip"},{default:Yn((()=>[e.ariaLabel?(Al(),Bl(El,{key:0},[Yl(te(e.ariaLabel),1)],64)):eo(e.$slots,"default",{key:1})])),_:3},8,["id"]),eo(e.$slots,"arrow",{style:D(Bt(g)),side:Bt(h)})],10,["data-side"]))],4))}}),[["__file","content.vue"]]);var xY=Sa({props:Cg({setRef:{type:Function,required:!0},onlyChild:Boolean}),setup(e,{slots:t}){const n=At(),a=dB(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[o]=(null==(n=t.default)?void 0:n.call(t))||[],l=e.onlyChild?(e=>{if(!d(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]})(o.children):o.children;return Kl(El,{ref:a},[l])}}});const CY=Sa({name:"ElTooltipV2Trigger"}),kY=Sa({...CY,props:{...Kq,...Zq},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:o,triggerRef:l,contentId:r}=Oo(eU);let i=!1;const s=e=>{l.value=e},u=()=>{i=!1},c=N$(t.onMouseEnter,o),d=N$(t.onMouseLeave,n),p=N$(t.onMouseDown,(()=>{n(),i=!0,document.addEventListener("mouseup",u,{once:!0})})),f=N$(t.onFocus,(()=>{i||a()})),v=N$(t.onBlur,n),h=N$(t.onClick,(e=>{0===e.detail&&n()})),m={blur:v,click:h,focus:f,mousedown:p,mouseenter:c,mouseleave:d},g=(e,t,n)=>{e&&Object.entries(t).forEach((([t,a])=>{e[n](t,a)}))};return cl(l,((e,t)=>{g(e,m,"addEventListener"),g(t,m,"removeEventListener"),e&&e.setAttribute("aria-describedby",r.value)})),Da((()=>{g(l.value,m,"removeEventListener"),document.removeEventListener("mouseup",u)})),(e,t)=>e.nowrap?(Al(),Nl(Bt(xY),{key:0,"set-ref":s,"only-child":""},{default:Yn((()=>[eo(e.$slots,"default")])),_:3})):(Al(),Bl("button",er({key:1,ref_key:"triggerRef",ref:l},e.$attrs),[eo(e.$slots,"default")],16))}});var SY=Fg(kY,[["__file","trigger.vue"]]);const _Y=Sa({name:"ElTooltipV2"});const MY=ry(Fg(Sa({..._Y,props:Qq,setup(e){const t=Pt(e),n=bt(om(t,Object.keys(Uq))),a=bt(om(t,Object.keys(Gq))),o=bt(om(t,Object.keys(Xq))),l=bt(om(t,Object.keys(Zq)));return(e,t)=>(Al(),Nl(aU,q(Wl(o)),{default:Yn((({open:t})=>[Kl(SY,er(l,{nowrap:""}),{default:Yn((()=>[eo(e.$slots,"trigger")])),_:3},16),Kl(Bt(j$),{to:e.to,disabled:!e.teleported},{default:Yn((()=>[e.fullTransition?(Al(),Nl(Nr,q(er({key:0},e.transitionProps)),{default:Yn((()=>[e.alwaysOn||t?(Al(),Nl(wY,q(er({key:0},a)),{arrow:Yn((({style:t,side:a})=>[e.showArrow?(Al(),Nl(lU,er({key:0},n,{style:t,side:a}),null,16,["style","side"])):Xl("v-if",!0)])),default:Yn((()=>[eo(e.$slots,"default")])),_:3},16)):Xl("v-if",!0)])),_:2},1040)):(Al(),Bl(El,{key:1},[e.alwaysOn||t?(Al(),Nl(wY,q(er({key:0},a)),{arrow:Yn((({style:t,side:a})=>[e.showArrow?(Al(),Nl(lU,er({key:0},n,{style:t,side:a}),null,16,["style","side"])):Xl("v-if",!0)])),default:Yn((()=>[eo(e.$slots,"default")])),_:3},16)):Xl("v-if",!0)],64))])),_:2},1032,["to","disabled"])])),_:3},16))}}),[["__file","tooltip.vue"]])),EY=Cg({data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:String,filterMethod:{type:Function},leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:{type:Function},modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:Boolean,props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),TY=(e,t)=>[e,t].every(d)||d(e)&&Yh(t),OY={change:(e,t,n)=>[e,n].every(d)&&["left","right"].includes(t),[Hg]:e=>d(e),"left-check-change":TY,"right-check-change":TY},$Y=Cg({data:EY.data,optionRender:{type:Function},placeholder:String,title:String,filterable:Boolean,format:EY.format,filterMethod:EY.filterMethod,defaultChecked:EY.leftDefaultChecked,props:EY.props}),IY={"checked-change":TY},VY=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Sr((()=>({...t,...e.props})))},AY=Sa({name:"ElTransferPanel"}),LY=Sa({...AY,props:$Y,emits:IY,setup(e,{expose:t,emit:n}){const a=e,o=io(),l=({option:e})=>e,{t:r}=wg(),i=Kd("transfer"),s=bt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=VY(a),{filteredData:c,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:f}=((e,t,n)=>{const a=VY(e),o=Sr((()=>e.data.filter((n=>h(e.filterMethod)?e.filterMethod(t.query,n):String(n[a.value.label]||n[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))))),l=Sr((()=>o.value.filter((e=>!e[a.value.disabled])))),r=Sr((()=>{const n=t.checked.length,a=e.data.length,{noChecked:o,hasChecked:l}=e.format;return o&&l?n>0?l.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,a.toString()):o.replace(/\${total}/g,a.toString()):`${n}/${a}`})),i=Sr((()=>{const e=t.checked.length;return e>0&&e{const e=l.value.map((e=>e[a.value.key]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))};return cl((()=>t.checked),((e,a)=>{if(s(),t.checkChangeByUser){const t=e.concat(a).filter((t=>!e.includes(t)||!a.includes(t)));n("checked-change",e,t)}else n("checked-change",e),t.checkChangeByUser=!0})),cl(l,(()=>{s()})),cl((()=>e.data),(()=>{const e=[],n=o.value.map((e=>e[a.value.key]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),cl((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const o=[],r=l.value.map((e=>e[a.value.key]));e.forEach((e=>{r.includes(e)&&o.push(e)})),t.checkChangeByUser=!1,t.checked=o}),{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:s,handleAllCheckedChange:e=>{t.checked=e?l.value.map((e=>e[a.value.key])):[]}}})(a,s,n),v=Sr((()=>!dm(s.query)&&dm(c.value))),m=Sr((()=>!dm(o.default()[0].children))),{checked:g,allChecked:y,query:b}=Pt(s);return t({query:b}),(e,t)=>(Al(),Bl("div",{class:W(Bt(i).b("panel"))},[jl("p",{class:W(Bt(i).be("panel","header"))},[Kl(Bt(lA),{modelValue:Bt(y),"onUpdate:modelValue":e=>Vt(y)?y.value=e:null,indeterminate:Bt(p),"validate-event":!1,onChange:Bt(f)},{default:Yn((()=>[Yl(te(e.title)+" ",1),jl("span",null,te(Bt(d)),1)])),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),jl("div",{class:W([Bt(i).be("panel","body"),Bt(i).is("with-footer",Bt(m))])},[e.filterable?(Al(),Nl(Bt(XE),{key:0,modelValue:Bt(b),"onUpdate:modelValue":e=>Vt(b)?b.value=e:null,class:W(Bt(i).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":Bt(Q_),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):Xl("v-if",!0),Xn(Kl(Bt(iA),{modelValue:Bt(g),"onUpdate:modelValue":e=>Vt(g)?g.value=e:null,"validate-event":!1,class:W([Bt(i).is("filterable",e.filterable),Bt(i).be("panel","list")])},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(Bt(c),(t=>(Al(),Nl(Bt(lA),{key:t[Bt(u).key],class:W(Bt(i).be("panel","item")),value:t[Bt(u).key],disabled:t[Bt(u).disabled],"validate-event":!1},{default:Yn((()=>{var n;return[Kl(l,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]})),_:2},1032,["class","value","disabled"])))),128))])),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[ei,!Bt(v)&&!Bt(dm)(e.data)]]),Xn(jl("div",{class:W(Bt(i).be("panel","empty"))},[eo(e.$slots,"empty",{},(()=>[Yl(te(Bt(v)?Bt(r)("el.transfer.noMatch"):Bt(r)("el.transfer.noData")),1)]))],2),[[ei,Bt(v)||Bt(dm)(e.data)]])],2),Bt(m)?(Al(),Bl("p",{key:0,class:W(Bt(i).be("panel","footer"))},[eo(e.$slots,"default")],2)):Xl("v-if",!0)],2))}});var RY=Fg(LY,[["__file","transfer-panel.vue"]]);const zY=Sa({name:"ElTransfer"}),BY=Sa({...zY,props:EY,emits:OY,setup(e,{expose:t,emit:n}){const a=e,o=io(),{t:l}=wg(),r=Kd("transfer"),{formItem:i}=FE(),s=bt({leftChecked:[],rightChecked:[]}),u=VY(a),{sourceData:c,targetData:d}=(e=>{const t=VY(e),n=Sr((()=>e.data.reduce(((e,n)=>(e[n[t.value.key]]=n)&&e),{})));return{sourceData:Sr((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value.key]))))),targetData:Sr((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value.key]))):e.modelValue.reduce(((e,t)=>{const a=n.value[t];return a&&e.push(a),e}),[])))}})(a),{onSourceCheckedChange:p,onTargetCheckedChange:f}=((e,t)=>({onSourceCheckedChange:(n,a)=>{e.leftChecked=n,a&&t("left-check-change",n,a)},onTargetCheckedChange:(n,a)=>{e.rightChecked=n,a&&t("right-check-change",n,a)}}))(s,n),{addToLeft:v,addToRight:h}=((e,t,n)=>{const a=VY(e),o=(e,t,a)=>{n(Hg,e),n("change",e,t,a)};return{addToLeft:()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),o(n,"left",t.rightChecked)},addToRight:()=>{let n=e.modelValue.slice();const l=e.data.filter((n=>{const o=n[a.value.key];return t.leftChecked.includes(o)&&!e.modelValue.includes(o)})).map((e=>e[a.value.key]));n="unshift"===e.targetOrder?l.concat(n):n.concat(l),"original"===e.targetOrder&&(n=e.data.filter((e=>n.includes(e[a.value.key]))).map((e=>e[a.value.key]))),o(n,"right",t.leftChecked)}}})(a,s,n),m=At(),g=At(),y=Sr((()=>2===a.buttonTexts.length)),b=Sr((()=>a.titles[0]||l("el.transfer.titles.0"))),w=Sr((()=>a.titles[1]||l("el.transfer.titles.1"))),x=Sr((()=>a.filterPlaceholder||l("el.transfer.filterPlaceholder")));cl((()=>a.modelValue),(()=>{var e;a.validateEvent&&(null==(e=null==i?void 0:i.validate)||e.call(i,"change").catch((e=>cg(e))))}));const C=Sr((()=>e=>{var t;if(a.renderContent)return a.renderContent(_r,e);const n=((null==(t=o.default)?void 0:t.call(o,{option:e}))||[]).filter((e=>e.type!==Ol));return n.length?n:_r("span",e[u.value.label]||e[u.value.key])}));return t({clearQuery:e=>{switch(e){case"left":m.value.query="";break;case"right":g.value.query=""}},leftPanel:m,rightPanel:g}),(e,t)=>(Al(),Bl("div",{class:W(Bt(r).b())},[Kl(RY,{ref_key:"leftPanel",ref:m,data:Bt(c),"option-render":Bt(C),placeholder:Bt(x),title:Bt(b),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:Bt(p)},{empty:Yn((()=>[eo(e.$slots,"left-empty")])),default:Yn((()=>[eo(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),jl("div",{class:W(Bt(r).e("buttons"))},[Kl(Bt(ZI),{type:"primary",class:W([Bt(r).e("button"),Bt(r).is("with-texts",Bt(y))]),disabled:Bt(dm)(s.rightChecked),onClick:Bt(v)},{default:Yn((()=>[Kl(Bt(py),null,{default:Yn((()=>[Kl(Bt(Ty))])),_:1}),Bt(sm)(e.buttonTexts[0])?Xl("v-if",!0):(Al(),Bl("span",{key:0},te(e.buttonTexts[0]),1))])),_:1},8,["class","disabled","onClick"]),Kl(Bt(ZI),{type:"primary",class:W([Bt(r).e("button"),Bt(r).is("with-texts",Bt(y))]),disabled:Bt(dm)(s.leftChecked),onClick:Bt(h)},{default:Yn((()=>[Bt(sm)(e.buttonTexts[1])?Xl("v-if",!0):(Al(),Bl("span",{key:0},te(e.buttonTexts[1]),1)),Kl(Bt(py),null,{default:Yn((()=>[Kl(Bt(Vy))])),_:1})])),_:1},8,["class","disabled","onClick"])],2),Kl(RY,{ref_key:"rightPanel",ref:g,data:Bt(d),"option-render":Bt(C),placeholder:Bt(x),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:Bt(w),"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:Bt(f)},{empty:Yn((()=>[eo(e.$slots,"right-empty")])),default:Yn((()=>[eo(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const NY=ry(Fg(BY,[["__file","transfer.vue"]])),HY="$treeNodeId",DY=function(e,t){t&&!t[HY]&&Object.defineProperty(t,HY,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},PY=(e,t)=>null==t?void 0:t[e||HY],FY=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},jY=e=>{let t=!0,n=!0,a=!0;for(let o=0,l=e.length;o0&&e.lazy&&e.defaultExpandAll&&!this.isLeafByUser&&this.expand(),d(this.data)||DY(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,a=e.key;a&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),a&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;d(e)||DY(this,e),this.data=e,this.childNodes=[],t=0===this.level&&d(this.data)?this.data:WY(this,"children")||[];for(let n=0,a=t.length;n-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof UY)){if(!n){const n=this.getChildren(!0);n.includes(e.data)||(sm(t)||t<0?n.push(e.data):n.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=bt(new UY(e)))instanceof UY&&e.initialize()}e.level=this.level+1,sm(t)||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n{if(t){let e=this.parent;for(;e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{d(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||KY(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,a){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:o}=jY(this.childNodes);this.isLeaf||n||!o||(this.checked=!1,e=!1);const l=()=>{if(t){const n=this.childNodes;for(let r=0,i=n.length;r{l(),KY(this)}),{checked:!1!==e});l()}const o=this.parent;o&&0!==o.level&&(n||KY(o))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let a="children";return n&&(a=n.children||"children"),void 0===t[a]&&(t[a]=null),e&&!t[a]&&(t[a]=[]),t[a]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},a=[];e.forEach(((e,o)=>{const l=e[HY];!!l&&t.findIndex((e=>e[HY]===l))>=0?n[l]={index:o,data:e}:a.push({index:o,data:e})})),this.store.lazy||t.forEach((e=>{n[e[HY]]||this.removeChildByData(e)})),a.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)},a=()=>{this.loading=!1};this.store.load(this,n,a)}}eachNode(e){const t=[this];for(;t.length;){const n=t.shift();t.unshift(...n.childNodes),e(n)}}reInitChecked(){this.store.checkStrictly||KY(this)}}class YY{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)c(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new UY({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[n,r]of l.entries())r.visible=t.call(r,e,r.data,r),n%80==0&&n>0&&await gn(),a(r);if(!o.visible&&l.length){let e=!0;e=!l.some((e=>e.visible)),o.root?o.root.visible=!1===e:o.visible=!1===e}e&&o.visible&&!o.isLeaf&&(n&&!o.loaded||o.expand())};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof UY)return e;const t=y(e)?PY(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=fm(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){void 0!==e.key&&(this.nodesMap[e.key]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach((o=>{(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),a(o)}))};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)c(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const e=a[o];this.remove(e.data)}for(let o=0,l=t.length;oe.level-t.level)),o=Object.create(null),l=Object.keys(n);a.forEach((e=>e.setChecked(!1,!1)));const r=t=>{t.childNodes.forEach((t=>{var n;o[t.data[e]]=!0,(null==(n=t.childNodes)?void 0:n.length)&&r(t)}))};for(let i=0,s=a.length;i{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}else n.checked&&!o[s]&&n.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach((e=>{a[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach((e=>{a[e]=!0})),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}var GY=Fg(Sa({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Kd("tree"),n=Oo("NodeInstance"),a=Oo("RootTree");return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(_r,{_self:n,node:o,data:l,store:r}):eo(a.ctx.slots,"default",{node:o,data:l},(()=>[_r("span",{class:t.be("node","label")},[o.label])]))}}}),[["__file","tree-node-content.vue"]]);function XY(e){const t=Oo("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),To("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const JY=Symbol("dragEvents");const ZY=Sa({name:"ElTreeNode",components:{ElCollapseTransition:yL,ElCheckbox:lA,NodeContent:GY,ElIcon:py,Loading:Fk},props:{node:{type:UY,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Kd("tree"),{broadcastExpanded:a}=XY(e),o=Oo("RootTree"),l=At(!1),r=At(!1),i=At(),s=At(),u=At(),c=Oo(JY),d=lr();To("NodeInstance",d),o||cg("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const p=o.props.props.children||"children";cl((()=>{var t;const n=null==(t=e.node.data)?void 0:t[p];return n&&[...n]}),(()=>{e.node.updateChildren()})),cl((()=>e.node.indeterminate),(t=>{v(e.node.checked,t)})),cl((()=>e.node.checked),(t=>{v(t,e.node.indeterminate)})),cl((()=>e.node.childNodes.length),(()=>e.node.reInitChecked())),cl((()=>e.node.expanded),(e=>{gn((()=>l.value=e)),e&&(r.value=!0)}));const f=e=>PY(o.props.nodeKey,e.data),v=(t,n)=>{i.value===t&&s.value===n||o.ctx.emit("check-change",e.node.data,t,n),i.value=t,s.value=n},g=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand((()=>{t.emit("node-expand",e.node.data,e.node,d)})))},y=t=>{e.node.setChecked(t,!(null==o?void 0:o.props.checkStrictly)),gn((()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))};return{ns:n,node$:u,tree:o,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:s,getNodeKey:f,getNodeClass:t=>{const n=e.props.class;if(!n)return{};let a;if(h(n)){const{data:e}=t;a=n(e,t)}else a=n;return m(a)?{[a]:!0}:a},handleSelectChange:v,handleClick:t=>{FY(o.store,o.ctx.emit,(()=>{var t;if(null==(t=null==o?void 0:o.props)?void 0:t.nodeKey){const t=f(e.node);o.store.value.setCurrentNodeKey(t)}else o.store.value.setCurrentNode(e.node)})),o.currentNode.value=e.node,o.props.expandOnClickNode&&g(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf)&&!e.node.disabled&&y(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var n;(null==(n=o.instance.vnode.props)?void 0:n.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:y,handleChildNodeExpand:(e,t,n)=>{a(t),o.ctx.emit("node-expand",e,t,n)},handleDragStart:t=>{o.props.draggable&&c.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),o.props.draggable&&c.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{o.props.draggable&&c.treeNodeDragEnd(e)},CaretRight:Mb}}});const QY=Sa({name:"ElTree",components:{ElTreeNode:Fg(ZY,[["render",function(e,t,n,a,o,l){const r=qa("el-icon"),i=qa("el-checkbox"),s=qa("loading"),u=qa("node-content"),c=qa("el-tree-node"),d=qa("el-collapse-transition");return Xn((Al(),Bl("div",{ref:"node$",class:W([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Fi(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Fi(e.handleDragStart,["stop"]),onDragover:Fi(e.handleDragOver,["stop"]),onDragend:Fi(e.handleDragEnd,["stop"]),onDrop:Fi(e.handleDrop,["stop"])},[jl("div",{class:W(e.ns.be("node","content")),style:D({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Al(),Nl(r,{key:0,class:W([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Fi(e.handleExpandIconClick,["stop"])},{default:Yn((()=>[(Al(),Nl(Ya(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):Xl("v-if",!0),e.showCheckbox?(Al(),Nl(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Fi((()=>{}),["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):Xl("v-if",!0),e.node.loading?(Al(),Nl(r,{key:2,class:W([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Yn((()=>[Kl(s)])),_:1},8,["class"])):Xl("v-if",!0),Kl(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Kl(d,null,{default:Yn((()=>[!e.renderAfterExpand||e.childNodeRendered?Xn((Al(),Bl("div",{key:0,class:W(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Al(!0),Bl(El,null,Za(e.node.childNodes,(t=>(Al(),Nl(c,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,["aria-expanded"])),[[ei,e.expanded]]):Xl("v-if",!0)])),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[ei,e.node.visible]])}],["__file","tree-node.vue"]])},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:hE}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=wg(),a=Kd("tree"),o=Oo(bD,null),l=At(new YY({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));l.value.initialize();const r=At(l.value.root),i=At(null),s=At(null),u=At(null),{broadcastExpanded:c}=XY(e),{dragState:d}=function({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=Kd("tree"),r=At({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return To(JY,{treeNodeDragStart:({event:n,treeNode:a})=>{if(h(e.allowDrag)&&!e.allowDrag(a.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(yR){}r.value.draggingNode=a,t.emit("node-drag-start",a.node,n)},treeNodeDragOver:({event:o,treeNode:i})=>{const s=i,u=r.value.dropNode;u&&u.node.id!==s.node.id&&Yg(u.$el,l.is("drop-inner"));const c=r.value.draggingNode;if(!c||!s)return;let d=!0,p=!0,f=!0,v=!0;h(e.allowDrop)&&(d=e.allowDrop(c.node,s.node,"prev"),v=p=e.allowDrop(c.node,s.node,"inner"),f=e.allowDrop(c.node,s.node,"next")),o.dataTransfer.dropEffect=p||d||f?"move":"none",(d||p||f)&&(null==u?void 0:u.node.id)!==s.node.id&&(u&&t.emit("node-drag-leave",c.node,u.node,o),t.emit("node-drag-enter",c.node,s.node,o)),r.value.dropNode=d||p||f?s:null,s.node.nextSibling===c.node&&(f=!1),s.node.previousSibling===c.node&&(d=!1),s.node.contains(c.node,!1)&&(p=!1),(c.node===s.node||c.node.contains(s.node))&&(d=!1,p=!1,f=!1);const m=s.$el.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),g=n.value.getBoundingClientRect();let y;const b=d?p?.25:f?.45:1:-1,w=f?p?.75:d?.55:0:1;let x=-9999;const C=o.clientY-m.top;y=Cm.height*w?"after":p?"inner":"none";const k=s.$el.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),S=a.value;"before"===y?x=k.top-g.top:"after"===y&&(x=k.bottom-g.top),S.style.top=`${x}px`,S.style.left=k.right-g.left+"px","inner"===y?Ug(s.$el,l.is("drop-inner")):Yg(s.$el,l.is("drop-inner")),r.value.showDropIndicator="before"===y||"after"===y,r.value.allowDrop=r.value.showDropIndicator||v,r.value.dropType=y,t.emit("node-drag-over",c.node,s.node,o)},treeNodeDragEnd:e=>{const{draggingNode:n,dropType:a,dropNode:i}=r.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),n&&i){const r={data:n.node.data};"none"!==a&&n.node.remove(),"before"===a?i.node.parent.insertBefore(r,i.node):"after"===a?i.node.parent.insertAfter(r,i.node):"inner"===a&&i.node.insertChild(r),"none"!==a&&(o.value.registerNode(r),o.value.key&&n.node.eachNode((e=>{var t;null==(t=o.value.nodesMap[e.data[o.value.key]])||t.setChecked(e.checked,!o.value.checkStrictly)}))),Yg(i.$el,l.is("drop-inner")),t.emit("node-drag-end",n.node,i.node,a,e),"none"!==a&&t.emit("node-drop",n.node,i.node,a,e)}n&&!i&&t.emit("node-drag-end",n.node,null,a,e),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}({props:e,ctx:t,el$:s,dropIndicator$:u,store:l});!function({el$:e},t){const n=Kd("tree"),a=Lt([]),o=Lt([]);Ba((()=>{l()})),Ha((()=>{a.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),cl(o,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))})),Hm(e,"keydown",(o=>{const l=o.target;if(!l.className.includes(n.b("node")))return;const r=o.code;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const i=a.value.indexOf(l);let s;if([qT.up,qT.down].includes(r)){if(o.preventDefault(),r===qT.up){s=-1===i?0:0!==i?i-1:a.value.length-1;const e=s;for(;!t.value.getNode(a.value[s].dataset.key).canFocus;){if(s--,s===e){s=-1;break}s<0&&(s=a.value.length-1)}}else{s=-1===i?0:i=a.value.length&&(s=0)}}-1!==s&&a.value[s].focus()}[qT.left,qT.right].includes(r)&&(o.preventDefault(),l.click());const u=l.querySelector('[type="checkbox"]');[qT.enter,qT.numpadEnter,qT.space].includes(r)&&u&&(o.preventDefault(),u.click())}));const l=()=>{var t;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);l.length?l[0].setAttribute("tabindex","0"):null==(t=a.value[0])||t.setAttribute("tabindex","0")}}({el$:s},l);const p=Sr((()=>{const{childNodes:e}=r.value,t=!!o&&0!==o.hasFilteredOptions;return(!e||0===e.length||e.every((({visible:e})=>!e)))&&!t}));cl((()=>e.currentNodeKey),(e=>{l.value.setCurrentNodeKey(e)})),cl((()=>e.defaultCheckedKeys),(e=>{l.value.setDefaultCheckedKey(e)})),cl((()=>e.defaultExpandedKeys),(e=>{l.value.setDefaultExpandedKeys(e)})),cl((()=>e.data),(e=>{l.value.setData(e)}),{deep:!0}),cl((()=>e.checkStrictly),(e=>{l.value.checkStrictly=e}));const f=()=>{const e=l.value.getCurrentNode();return e?e.data:null};return To("RootTree",{ctx:t,props:e,store:l,root:r,currentNode:i,instance:lr()}),To(BE,void 0),{ns:a,store:l,root:r,currentNode:i,dragState:d,el$:s,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");l.value.filter(t)},getNodeKey:t=>PY(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=l.value.getNode(t);if(!n)return[];const a=[n.data];let o=n.parent;for(;o&&o!==r.value;)a.push(o.data),o=o.parent;return a.reverse()},getCheckedNodes:(e,t)=>l.value.getCheckedNodes(e,t),getCheckedKeys:e=>l.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");l.value.setCheckedNodes(t,n)},setCheckedKeys:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");l.value.setCheckedKeys(t,n)},setChecked:(e,t,n)=>{l.value.setChecked(e,t,n)},getHalfCheckedNodes:()=>l.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>l.value.getHalfCheckedKeys(),setCurrentNode:(n,a=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");FY(l,t.emit,(()=>{c(n),l.value.setUserCurrentNode(n,a)}))},setCurrentKey:(n,a=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");FY(l,t.emit,(()=>{c(),l.value.setCurrentNodeKey(n,a)}))},t:n,getNode:e=>l.value.getNode(e),remove:e=>{l.value.remove(e)},append:(e,t)=>{l.value.append(e,t)},insertBefore:(e,t)=>{l.value.insertBefore(e,t)},insertAfter:(e,t)=>{l.value.insertAfter(e,t)},handleNodeExpand:(e,n,a)=>{c(n),t.emit("node-expand",e,n,a)},updateKeyChildren:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");l.value.updateChildren(t,n)}}}});const eG=ry(Fg(QY,[["render",function(e,t,n,a,o,l){const r=qa("el-tree-node");return Al(),Bl("div",{ref:"el$",class:W([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(Al(!0),Bl(El,null,Za(e.root.childNodes,(t=>(Al(),Nl(r,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?(Al(),Bl("div",{key:0,class:W(e.ns.e("empty-block"))},[eo(e.$slots,"empty",{},(()=>{var t;return[jl("span",{class:W(e.ns.e("empty-text"))},te(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):Xl("v-if",!0),Xn(jl("div",{ref:"dropIndicator$",class:W(e.ns.e("drop-indicator"))},null,2),[[ei,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),tG=Sa({extends:TD,setup(e,t){const n=TD.setup(e,t);delete n.selectOptionClick;const a=lr().proxy;return gn((()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)})),cl((()=>t.attrs.visible),(e=>{gn((()=>{n.states.visible=e}))}),{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function nG(e){return e||0===e}function aG(e){return d(e)&&e.length}function oG(e){return d(e)?e:nG(e)?[e]:[]}function lG(e,t,n,a,o){for(let l=0;l[]}},setup(e){const t=Oo(bD);return cl((()=>e.data),(()=>{var n;e.data.forEach((e=>{t.states.cachedOptions.has(e.value)||t.states.cachedOptions.set(e.value,e)}));const a=(null==(n=t.selectRef)?void 0:n.querySelectorAll("input"))||[];Sm&&!Array.from(a).includes(document.activeElement)&&t.setSelected()}),{flush:"post",immediate:!0}),()=>{}}});const sG=Sa({name:"ElTreeSelect",inheritAttrs:!1,props:{...ED.props,...eG.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,o=At(),l=At(),r=Sr((()=>e.nodeKey||e.valueKey||"value")),i=((e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=Kd("tree-select");return cl((()=>e.data),(()=>{e.filterable&&gn((()=>{var e,t;null==(t=o.value)||t.filter(null==(e=a.value)?void 0:e.states.inputValue)}))}),{flush:"post"}),{...om(Pt(e),Object.keys(ED.props)),...t,class:Sr((()=>t.class)),style:Sr((()=>t.style)),"onUpdate:modelValue":e=>n(Hg,e),valueKey:l,popperClass:Sr((()=>{const t=[r.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{var n;e.filterMethod?e.filterMethod(t):e.remoteMethod?e.remoteMethod(t):null==(n=o.value)||n.filter(t)}}})(e,t,{select:o,tree:l,key:r}),{cacheOptions:s,...u}=((e,{attrs:t,slots:n,emit:a},{select:o,tree:l,key:r})=>{cl((()=>e.modelValue),(()=>{e.showCheckbox&&gn((()=>{const t=l.value;t&&!Uh(t.getCheckedKeys(),oG(e.modelValue))&&t.setCheckedKeys(oG(e.modelValue))}))}),{immediate:!0,deep:!0});const i=Sr((()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props}))),s=(e,t)=>{var n;const a=i.value[e];return h(a)?a(t,null==(n=l.value)?void 0:n.getNode(s("value",t))):t[a]},u=oG(e.modelValue).map((t=>lG(e.data||[],(e=>s("value",e)===t),(e=>s("children",e)),((e,t,n,a)=>a&&s("value",a))))).filter((e=>nG(e))),c=Sr((()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return rG(e.data.concat(e.cacheData),(e=>{const n=s("value",e);t.push({value:n,currentLabel:s("label",e),isDisabled:s("disabled",e)})}),(e=>s("children",e))),t})),d=()=>{var e;return null==(e=l.value)?void 0:e.getCheckedKeys().filter((e=>{var t;const n=null==(t=l.value)?void 0:t.getNode(e);return!Yh(n)&&dm(n.childNodes)}))};return{...om(Pt(e),Object.keys(eG.props)),...t,nodeKey:r,expandOnClickNode:Sr((()=>!e.checkStrictly&&e.expandOnClickNode)),defaultExpandedKeys:Sr((()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u)),renderContent:(t,{node:a,data:o,store:l})=>t(tG,{value:s("value",o),label:s("label",o),disabled:s("disabled",o),visible:a.visible},e.renderContent?()=>e.renderContent(t,{node:a,data:o,store:l}):n.default?()=>n.default({node:a,data:o,store:l}):void 0),filterNodeMethod:(t,n,a)=>e.filterNodeMethod?e.filterNodeMethod(t,n,a):!t||new RegExp(IA(t),"i").test(s("label",n)||""),onNodeClick:(n,a,l)=>{var r,i,u,c;if(null==(r=t.onNodeClick)||r.call(t,n,a,l),!e.showCheckbox||!e.checkOnClickNode){if(e.showCheckbox||!e.checkStrictly&&!a.isLeaf)e.expandOnClickNode&&l.proxy.handleExpandIconClick();else if(!s("disabled",n)){const e=null==(i=o.value)?void 0:i.states.options.get(s("value",n));null==(u=o.value)||u.handleOptionSelect(e)}null==(c=o.value)||c.focus()}},onCheck:(n,r)=>{var i;if(!e.showCheckbox)return;const u=s("value",n),c={};rG([l.value.store.root],(e=>c[e.key]=e),(e=>e.childNodes));const p=r.checkedKeys,f=e.multiple?oG(e.modelValue).filter((e=>!(e in c)&&!p.includes(e))):[],v=f.concat(p);if(e.checkStrictly)a(Hg,e.multiple?v:v.includes(u)?u:void 0);else if(e.multiple){const e=d();a(Hg,f.concat(e))}else{const t=lG([n],(e=>!aG(s("children",e))&&!s("disabled",e)),(e=>s("children",e))),o=t?s("value",t):void 0,l=nG(e.modelValue)&&!!lG([n],(t=>s("value",t)===e.modelValue),(e=>s("children",e)));a(Hg,o===e.modelValue||l?void 0:o)}gn((()=>{var a;const o=oG(e.modelValue);l.value.setCheckedKeys(o),null==(a=t.onCheck)||a.call(t,n,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})})),null==(i=o.value)||i.focus()},onNodeExpand:(n,o,r)=>{var i;null==(i=t.onNodeExpand)||i.call(t,n,o,r),gn((()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&o.checked){const t={},n=l.value.getCheckedKeys();rG([l.value.store.root],(e=>t[e.key]=e),(e=>e.childNodes));const o=oG(e.modelValue).filter((e=>!(e in t)&&!n.includes(e))),r=d();a(Hg,o.concat(r))}}))},cacheOptions:c}})(e,t,{select:o,tree:l,key:r}),c=bt({});return a(c),Ba((()=>{Object.assign(c,{...om(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...om(o.value,["focus","blur","selectedLabel"])})})),()=>_r(ED,bt({...i,ref:e=>o.value=e}),{...n,default:()=>[_r(iG,{data:s.value}),_r(eG,bt({...u,ref:e=>l.value=e}))]})}});const uG=ry(Fg(sG,[["__file","tree-select.vue"]])),cG=Symbol(),dG={key:-1,level:-1,data:{}};var pG=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(pG||{}),fG=(e=>(e.ADD="add",e.DELETE="delete",e))(fG||{});const vG={type:Number,default:26},hG=Cg({data:{type:Array,default:()=>[]},emptyText:{type:String},height:{type:Number,default:200},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:16},itemSize:vG,icon:{type:hE},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:[String,Number]},accordion:{type:Boolean,default:!1},filterMethod:{type:Function},perfMode:{type:Boolean,default:!0}}),mG=Cg({node:{type:Object,default:()=>dG},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:vG}),gG=Cg({node:{type:Object,required:!0}}),yG={"node-click":(e,t,n)=>e&&t&&n,"node-drop":(e,t,n)=>e&&t&&n,"node-expand":(e,t)=>e&&t,"node-collapse":(e,t)=>e&&t,"current-change":(e,t)=>e&&t,check:(e,t)=>e&&t,"check-change":(e,t)=>e&&um(t),"node-contextmenu":(e,t,n)=>e&&t&&n},bG={click:(e,t)=>!(!e||!t),drop:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&um(t)};function wG(e,t){const n=At(new Set(e.defaultExpandedKeys)),a=At(),o=Lt(),l=At();cl((()=>e.currentNodeKey),(e=>{a.value=e}),{immediate:!0}),cl((()=>e.data),(e=>{L(e)}),{immediate:!0});const{isIndeterminate:r,isChecked:i,toggleCheckbox:s,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v}=function(e,t){const n=At(new Set),a=At(new Set),{emit:o}=lr();cl([()=>t.value,()=>e.defaultCheckedKeys],(()=>gn((()=>{d(e.defaultCheckedKeys)}))),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:l}=t.value,r=n.value,i=new Set;for(let e=l-1;e>=1;--e){const t=o.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,a=!1;for(const e of t){const t=e.key;if(r.has(t))a=!0;else{if(i.has(t)){n=!1,a=!0;break}n=!1}}n?r.add(e.key):a?(i.add(e.key),r.delete(e.key)):(r.delete(e.key),i.delete(e.key))}}))}a.value=i},r=e=>n.value.has(e.key),i=(t,a,o=!0,r=!0)=>{const i=n.value,u=(t,n)=>{i[n?fG.ADD:fG.DELETE](t.key);const a=t.children;!e.checkStrictly&&a&&a.forEach((e=>{e.disabled||u(e,n)}))};u(t,a),r&&l(),o&&s(t,a)},s=(e,t)=>{const{checkedNodes:n,checkedKeys:a}=u(),{halfCheckedNodes:l,halfCheckedKeys:r}=c();o("check",e.data,{checkedKeys:a,checkedNodes:n,halfCheckedKeys:r,halfCheckedNodes:l}),o("check-change",e.data,t)};function u(a=!1){const o=[],l=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!a||a&&n.isLeaf)&&(l.push(t),o.push(n.data))}))}return{checkedKeys:l,checkedNodes:o}}function c(){const n=[],o=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;a.value.forEach((t=>{const a=e.get(t);a&&(o.push(t),n.push(a.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:o}}function d(n){if(null==t?void 0:t.value){const{treeNodeMap:a}=t.value;if(e.showCheckbox&&a&&(null==n?void 0:n.length)>0){for(const e of n){const t=a.get(e);t&&!r(t)&&i(t,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:i,isChecked:r,isIndeterminate:e=>a.value.has(e.key),getCheckedKeys:function(e=!1){return u(e).checkedKeys},getCheckedNodes:function(e=!1){return u(e).checkedNodes},getHalfCheckedKeys:function(){return c().halfCheckedKeys},getHalfCheckedNodes:function(){return c().halfCheckedNodes},setChecked:function(n,a){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&i(e,a,!1)}},setCheckedKeys:function(e){n.value.clear(),a.value.clear(),gn((()=>{d(e)}))}}}(e,o),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=function(e,t){const n=At(new Set([])),a=At(new Set([])),o=Sr((()=>h(e.filterMethod)));return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:function(l){var r;if(!o.value)return;const i=new Set,s=a.value,u=n.value,c=[],d=(null==(r=t.value)?void 0:r.treeNodes)||[],p=e.filterMethod;return u.clear(),function e(t){t.forEach((t=>{c.push(t),(null==p?void 0:p(l,t.data,t))?c.forEach((e=>{i.add(e.key)})):t.isLeaf&&u.add(t.key);const n=t.children;if(n&&e(n),!t.isLeaf)if(i.has(t.key)){if(n){let e=!0;for(const t of n)if(!u.has(t.key)){e=!1;break}e?s.add(t.key):s.delete(t.key)}}else u.add(t.key);c.pop()}))}(d),i},isForceHiddenExpandIcon:function(e){return a.value.has(e.key)}}}(e,o),w=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.value)||pG.KEY})),x=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.children)||pG.CHILDREN})),C=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||pG.DISABLED})),k=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.label)||pG.LABEL})),S=Sr((()=>{var e;const t=n.value,a=g.value,l=[],r=(null==(e=o.value)?void 0:e.treeNodes)||[],i=[];for(let n=r.length-1;n>=0;--n)i.push(r[n]);for(;i.length;){const e=i.pop();if(!a.has(e.key)&&(l.push(e),e.children&&t.has(e.key)))for(let t=e.children.length-1;t>=0;--t)i.push(e.children[t])}return l})),_=Sr((()=>S.value.length>0));function M(e){return e[x.value]}function E(e){return e?e[w.value]:""}function T(e){return e[C.value]}function O(e){return e[k.value]}function $(e){n.value.has(e.key)?V(e):I(e)}function I(a){const l=n.value;if(o.value&&e.accordion){const{treeNodeMap:e}=o.value;l.forEach((t=>{const n=e.get(t);a&&a.level===(null==n?void 0:n.level)&&l.delete(t)}))}l.add(a.key),t("node-expand",a.data,a)}function V(e){n.value.delete(e.key),t("node-collapse",e.data,e)}function A(e){const t=a.value;return void 0!==t&&t===e.key}function L(e){gn((()=>o.value=function(e){const t=new Map,n=new Map;let a=1;const o=function e(o,l=1,r){var i;const s=[];for(const a of o){const o=E(a),u={level:l,key:o,data:a};u.label=O(a),u.parent=r;const c=M(a);u.disabled=T(a),u.isLeaf=!c||0===c.length,c&&c.length&&(u.children=e(c,l+1,u)),s.push(u),t.set(o,u),n.has(l)||n.set(l,[]),null==(i=n.get(l))||i.push(u)}return l>a&&(a=l),s}(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:a,treeNodes:o}}(e)))}function R(e){var t;const n=y(e)?E(e):e;return null==(t=o.value)?void 0:t.treeNodeMap.get(n)}return{tree:o,flattenTree:S,isNotEmpty:_,listRef:l,getKey:E,getChildren:M,toggleExpand:$,toggleCheckbox:s,isExpanded:function(e){return n.value.has(e.key)},isChecked:i,isIndeterminate:r,isDisabled:function(e){return!!e.disabled},isCurrent:A,isForceHiddenExpandIcon:b,handleNodeClick:function(n,o){t("node-click",n.data,n,o),function(e){A(e)||(a.value=e.key,t("current-change",e.data,e))}(n),e.expandOnClickNode&&$(n),e.showCheckbox&&(e.checkOnClickNode||n.isLeaf&&e.checkOnClickLeaf)&&!n.disabled&&s(n,!i(n),!0)},handleNodeDrop:function(e,n){t("node-drop",e.data,e,n)},handleNodeCheck:function(e,t){s(e,t)},getCurrentNode:function(){var e,t;if(a.value)return null==(t=null==(e=o.value)?void 0:e.treeNodeMap.get(a.value))?void 0:t.data},getCurrentKey:function(){return a.value},setCurrentKey:function(e){a.value=e},getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v,filter:function(e){const t=m(e);t&&(n.value=t)},setData:L,getNode:R,expandNode:I,collapseNode:V,setExpandedKeys:function(e){const t=new Set,a=o.value.treeNodeMap;e.forEach((e=>{let n=a.get(e);for(;n&&!t.has(n.key);)t.add(n.key),n=n.parent})),n.value=t},scrollToNode:function(e,t="auto"){const n=R(e);n&&l.value&&l.value.scrollToItem(S.value.indexOf(n),t)},scrollTo:function(e){var t;null==(t=l.value)||t.scrollTo(e)}}}var xG=Sa({name:"ElTreeNodeContent",props:gG,setup(e){const t=Oo(cG),n=Kd("tree");return()=>{const a=e.node,{data:o}=a;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:a,data:o}):_r("span",{class:n.be("node","label")},[null==a?void 0:a.label])}}});const CG=Sa({name:"ElTreeNode"}),kG=Sa({...CG,props:mG,emits:bG,setup(e,{emit:t}){const n=e,a=Oo(cG),o=Kd("tree"),l=Sr((()=>{var e;return null!=(e=null==a?void 0:a.props.indent)?e:16})),r=Sr((()=>{var e;return null!=(e=null==a?void 0:a.props.icon)?e:Mb})),i=e=>{const t=null==a?void 0:a.props.props.class;if(!t)return{};let n;if(h(t)){const{data:a}=e;n=t(a,e)}else n=t;return m(n)?{[n]:!0}:n},s=e=>{t("click",n.node,e)},u=e=>{t("drop",n.node,e)},c=()=>{t("toggle",n.node)},d=e=>{t("check",n.node,e)},p=e=>{var t,o,l,r;(null==(l=null==(o=null==(t=null==a?void 0:a.instance)?void 0:t.vnode)?void 0:o.props)?void 0:l.onNodeContextmenu)&&(e.stopPropagation(),e.preventDefault()),null==a||a.ctx.emit("node-contextmenu",e,null==(r=n.node)?void 0:r.data,n.node)};return(e,t)=>{var n,a,f;return Al(),Bl("div",{ref:"node$",class:W([Bt(o).b("node"),Bt(o).is("expanded",e.expanded),Bt(o).is("current",e.current),Bt(o).is("focusable",!e.disabled),Bt(o).is("checked",!e.disabled&&e.checked),i(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(n=e.node)?void 0:n.key,onClick:Fi(s,["stop"]),onContextmenu:p,onDragover:Fi((()=>{}),["prevent"]),onDragenter:Fi((()=>{}),["prevent"]),onDrop:Fi(u,["stop"])},[jl("div",{class:W(Bt(o).be("node","content")),style:D({paddingLeft:(e.node.level-1)*Bt(l)+"px",height:e.itemSize+"px"})},[Bt(r)?(Al(),Nl(Bt(py),{key:0,class:W([Bt(o).is("leaf",!!(null==(a=e.node)?void 0:a.isLeaf)),Bt(o).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(f=e.node)?void 0:f.isLeaf)&&e.expanded},Bt(o).be("node","expand-icon")]),onClick:Fi(c,["stop"])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(r))))])),_:1},8,["class","onClick"])):Xl("v-if",!0),e.showCheckbox?(Al(),Nl(Bt(lA),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:d,onClick:Fi((()=>{}),["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):Xl("v-if",!0),Kl(Bt(xG),{node:e.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var SG=Fg(kG,[["__file","tree-node.vue"]]);const _G=Sa({name:"ElTreeV2"}),MG=Sa({..._G,props:hG,emits:yG,setup(e,{expose:t,emit:n}){const a=e,o=io(),l=Sr((()=>a.itemSize));To(cG,{ctx:{emit:n,slots:o},props:a,instance:lr()}),To(BE,void 0);const{t:r}=wg(),i=Kd("tree"),{flattenTree:s,isNotEmpty:u,listRef:c,toggleExpand:d,isExpanded:p,isIndeterminate:f,isChecked:v,isDisabled:h,isCurrent:m,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeDrop:b,handleNodeCheck:w,toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:T,setChecked:O,setCheckedKeys:$,filter:I,setData:V,getNode:A,expandNode:L,collapseNode:R,setExpandedKeys:z,scrollToNode:B,scrollTo:N}=wG(a,n);return t({toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:T,setChecked:O,setCheckedKeys:$,filter:I,setData:V,getNode:A,expandNode:L,collapseNode:R,setExpandedKeys:z,scrollToNode:B,scrollTo:N}),(e,t)=>(Al(),Bl("div",{class:W([Bt(i).b(),{[Bt(i).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[Bt(u)?(Al(),Nl(Bt(uF),{key:0,ref_key:"listRef",ref:c,"class-name":Bt(i).b("virtual-list"),data:Bt(s),total:Bt(s).length,height:e.height,"item-size":Bt(l),"perf-mode":e.perfMode},{default:Yn((({data:t,index:n,style:a})=>[(Al(),Nl(SG,{key:t[n].key,style:D(a),node:t[n],expanded:Bt(p)(t[n]),"show-checkbox":e.showCheckbox,checked:Bt(v)(t[n]),indeterminate:Bt(f)(t[n]),"item-size":Bt(l),disabled:Bt(h)(t[n]),current:Bt(m)(t[n]),"hidden-expand-icon":Bt(g)(t[n]),onClick:Bt(y),onToggle:Bt(d),onCheck:Bt(w),onDrop:Bt(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(Al(),Bl("div",{key:1,class:W(Bt(i).e("empty-block"))},[eo(e.$slots,"empty",{},(()=>{var t;return[jl("span",{class:W(Bt(i).e("empty-text"))},te(null!=(t=e.emptyText)?t:Bt(r)("el.tree.emptyText")),3)]}))],2))],2))}});const EG=ry(Fg(MG,[["__file","tree.vue"]])),TG=Symbol("uploadContextKey");class OG extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}}function $G(e,t,n){let a;return a=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new OG(a,n.status,t.method,e)}const IG=["text","picture","picture-card"];let VG=1;const AG=()=>Date.now()+VG++,LG=Cg({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:[Object,Function,Promise],default:()=>({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:IG,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&ug("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))d(r)&&r.length?a.append(l,...r):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError($G(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError($G(n,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(yR){return t}}(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[l,r]of Object.entries(o))Yh(r)||t.setRequestHeader(l,String(r));return t.send(a),t}},disabled:Boolean,limit:Number}),RG=Cg({...LG,beforeUpload:{type:Function,default:a},beforeRemove:{type:Function},onRemove:{type:Function,default:a},onChange:{type:Function,default:a},onPreview:{type:Function,default:a},onSuccess:{type:Function,default:a},onProgress:{type:Function,default:a},onError:{type:Function,default:a},onExceed:{type:Function,default:a},crossorigin:{type:String}}),zG=Cg({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},handlePreview:{type:Function,default:a},listType:{type:String,values:IG,default:"text"},crossorigin:{type:String}}),BG=Sa({name:"ElUploadList"}),NG=Sa({...BG,props:zG,emits:{remove:e=>!!e},setup(e,{emit:t}){const n=e,{t:a}=wg(),o=Kd("upload"),l=Kd("icon"),r=Kd("list"),i=qE(),s=At(!1),u=Sr((()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)])),c=e=>{t("remove",e)};return(e,t)=>(Al(),Nl(Mi,{tag:"ul",class:W(Bt(u)),name:Bt(r).b()},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(e.files,((t,n)=>(Al(),Bl("li",{key:t.uid||t.name,class:W([Bt(o).be("list","item"),Bt(o).is(t.status),{focusing:s.value}]),tabindex:"0",onKeydown:Ki((e=>!Bt(i)&&c(t)),["delete"]),onFocus:e=>s.value=!0,onBlur:e=>s.value=!1,onClick:e=>s.value=!1},[eo(e.$slots,"default",{file:t,index:n},(()=>["picture"===e.listType||"uploading"!==t.status&&"picture-card"===e.listType?(Al(),Bl("img",{key:0,class:W(Bt(o).be("list","item-thumbnail")),src:t.url,crossorigin:e.crossorigin,alt:""},null,10,["src","crossorigin"])):Xl("v-if",!0),"uploading"===t.status||"picture-card"!==e.listType?(Al(),Bl("div",{key:1,class:W(Bt(o).be("list","item-info"))},[jl("a",{class:W(Bt(o).be("list","item-name")),onClick:Fi((n=>e.handlePreview(t)),["prevent"])},[Kl(Bt(py),{class:W(Bt(l).m("document"))},{default:Yn((()=>[Kl(Bt($x))])),_:1},8,["class"]),jl("span",{class:W(Bt(o).be("list","item-file-name")),title:t.name},te(t.name),11,["title"])],10,["onClick"]),"uploading"===t.status?(Al(),Nl(Bt(fP),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(t.percentage),style:D("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Xl("v-if",!0)],2)):Xl("v-if",!0),jl("label",{class:W(Bt(o).be("list","item-status-label"))},["text"===e.listType?(Al(),Nl(Bt(py),{key:0,class:W([Bt(l).m("upload-success"),Bt(l).m("circle-check")])},{default:Yn((()=>[Kl(Bt(nw))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(Al(),Nl(Bt(py),{key:1,class:W([Bt(l).m("upload-success"),Bt(l).m("check")])},{default:Yn((()=>[Kl(Bt(Kb))])),_:1},8,["class"])):Xl("v-if",!0)],2),Bt(i)?Xl("v-if",!0):(Al(),Nl(Bt(py),{key:2,class:W(Bt(l).m("close")),onClick:e=>c(t)},{default:Yn((()=>[Kl(Bt(mw))])),_:2},1032,["class","onClick"])),Xl(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Xl(" This is a bug which needs to be fixed "),Xl(" TODO: Fix the incorrect navigation interaction "),Bt(i)?Xl("v-if",!0):(Al(),Bl("i",{key:3,class:W(Bt(l).m("close-tip"))},te(Bt(a)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(Al(),Bl("span",{key:4,class:W(Bt(o).be("list","item-actions"))},[jl("span",{class:W(Bt(o).be("list","item-preview")),onClick:n=>e.handlePreview(t)},[Kl(Bt(py),{class:W(Bt(l).m("zoom-in"))},{default:Yn((()=>[Kl(Bt(pE))])),_:1},8,["class"])],10,["onClick"]),Bt(i)?Xl("v-if",!0):(Al(),Bl("span",{key:0,class:W(Bt(o).be("list","item-delete")),onClick:e=>c(t)},[Kl(Bt(py),{class:W(Bt(l).m("delete"))},{default:Yn((()=>[Kl(Bt(cx))])),_:1},8,["class"])],10,["onClick"]))],2)):Xl("v-if",!0)]))],42,["onKeydown","onFocus","onBlur","onClick"])))),128)),eo(e.$slots,"append")])),_:3},8,["class","name"]))}});var HG=Fg(NG,[["__file","upload-list.vue"]]);const DG=Cg({disabled:{type:Boolean,default:!1}}),PG={file:e=>d(e)},FG=Sa({name:"ElUploadDrag"}),jG=Sa({...FG,props:DG,emits:PG,setup(e,{emit:t}){Oo(TG)||ug("ElUploadDrag","usage: ");const n=Kd("upload"),a=At(!1),o=qE(),l=e=>{if(o.value)return;a.value=!1,e.stopPropagation();const n=Array.from(e.dataTransfer.files);t("file",n)},r=()=>{o.value||(a.value=!0)};return(e,t)=>(Al(),Bl("div",{class:W([Bt(n).b("dragger"),Bt(n).is("dragover",a.value)]),onDrop:Fi(l,["prevent"]),onDragover:Fi(r,["prevent"]),onDragleave:Fi((e=>a.value=!1),["prevent"])},[eo(e.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var KG=Fg(jG,[["__file","upload-dragger.vue"]]);const WG=Cg({...LG,beforeUpload:{type:Function,default:a},onRemove:{type:Function,default:a},onStart:{type:Function,default:a},onSuccess:{type:Function,default:a},onProgress:{type:Function,default:a},onError:{type:Function,default:a},onExceed:{type:Function,default:a}}),qG=Sa({name:"ElUploadContent",inheritAttrs:!1}),UG=Sa({...qG,props:WG,setup(e,{expose:t}){const n=e,a=Kd("upload"),o=qE(),l=Lt({}),r=Lt(),i=e=>{if(0===e.length)return;const{autoUpload:t,limit:a,fileList:o,multiple:l,onStart:r,onExceed:i}=n;if(a&&o.length+e.length>a)i(e,o);else{l||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=AG(),r(e),t&&s(e)}}},s=async e=>{if(r.value.value="",!n.beforeUpload)return u(e);let t,a={};try{const o=n.data,l=n.beforeUpload(e);a=k(n.data)?lh(n.data):n.data,t=await l,k(n.data)&&Uh(o,a)&&(a=lh(n.data))}catch(yR){t=!1}if(!1===t)return void n.onRemove(e);let o=e;t instanceof Blob&&(o=t instanceof File?t:new File([t],e.name,{type:e.type})),u(Object.assign(o,{uid:e.uid}),a)},u=async(e,t)=>{const{headers:a,data:o,method:r,withCredentials:i,name:s,action:u,onProgress:c,onSuccess:d,onError:p,httpRequest:f}=n;try{t=await(async(e,t)=>h(e)?e(t):e)(null!=t?t:o,e)}catch(yR){return void n.onRemove(e)}const{uid:v}=e,m={headers:a||{},withCredentials:i,file:e,data:t,method:r,filename:s,action:u,onProgress:t=>{c(t,e)},onSuccess:t=>{d(t,e),delete l.value[v]},onError:t=>{p(t,e),delete l.value[v]}},g=f(m);l.value[v]=g,g instanceof Promise&&g.then(m.onSuccess,m.onError)},c=e=>{const t=e.target.files;t&&i(Array.from(t))},d=()=>{o.value||(r.value.value="",r.value.click())},p=()=>{d()};return t({abort:e=>{const t=Vg(l.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete l.value[e]}))},upload:s}),(e,t)=>(Al(),Bl("div",{class:W([Bt(a).b(),Bt(a).m(e.listType),Bt(a).is("drag",e.drag),Bt(a).is("disabled",Bt(o))]),tabindex:Bt(o)?"-1":"0",onClick:d,onKeydown:Ki(Fi(p,["self"]),["enter","space"])},[e.drag?(Al(),Nl(KG,{key:0,disabled:Bt(o),onFile:i},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["disabled"])):eo(e.$slots,"default",{key:1}),jl("input",{ref_key:"inputRef",ref:r,class:W(Bt(a).e("input")),name:e.name,disabled:Bt(o),multiple:e.multiple,accept:e.accept,type:"file",onChange:c,onClick:Fi((()=>{}),["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var YG=Fg(UG,[["__file","upload-content.vue"]]);const GG=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},XG=Sa({name:"ElUpload"});const JG=ry(Fg(Sa({...XG,props:RG,setup(e,{expose:t}){const n=e,a=qE(),o=Lt(),{abort:l,submit:r,clearFiles:i,uploadFiles:s,handleStart:u,handleError:c,handleRemove:d,handleSuccess:p,handleProgress:f,revokeFileObjectURL:v}=((e,t)=>{const n=ig(e,"fileList",void 0,{passive:!0}),a=e=>n.value.find((t=>t.uid===e.uid));function o(e){var n;null==(n=t.value)||n.abort(e)}function l(e){n.value=n.value.filter((t=>t.uid!==e.uid))}return cl((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:a,url:o}=t;if(!o&&a)try{t.url=URL.createObjectURL(a)}catch(l){e.onError(l,t,n.value)}return t})))})),cl(n,(e=>{for(const t of e)t.uid||(t.uid=AG()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:function(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))},handleError:(t,o)=>{const r=a(o);r&&(console.error(t),r.status="fail",l(r),e.onError(t,r,n.value),e.onChange(r,n.value))},handleProgress:(t,o)=>{const l=a(o);l&&(e.onProgress(t,l,n.value),l.status="uploading",l.percentage=Math.round(t.percent))},handleStart:t=>{Yh(t.uid)&&(t.uid=AG());const a={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{a.url=URL.createObjectURL(t)}catch(o){cg("ElUpload",o.message),e.onError(o,a,n.value)}n.value=[...n.value,a],e.onChange(a,n.value)},handleSuccess:(t,o)=>{const l=a(o);l&&(l.status="success",l.response=t,e.onSuccess(t,l,n.value),e.onChange(l,n.value))},handleRemove:async t=>{const r=t instanceof File?a(t):t;r||ug("ElUpload","file to be removed not found");const i=t=>{o(t),l(t),e.onRemove(t,n.value),GG(t)};e.beforeRemove?!1!==await e.beforeRemove(r,n.value)&&i(r):i(r)},submit:function(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))},revokeFileObjectURL:GG}})(n,o),h=Sr((()=>"picture-card"===n.listType)),m=Sr((()=>({...n,fileList:s.value,onStart:u,onProgress:f,onSuccess:p,onError:c,onRemove:d})));return Da((()=>{s.value.forEach(v)})),To(TG,{accept:Kt(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:u,handleRemove:d}),(e,t)=>(Al(),Bl("div",null,[Bt(h)&&e.showFileList?(Al(),Nl(HG,{key:0,disabled:Bt(a),"list-type":e.listType,files:Bt(s),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Bt(d)},Qa({append:Yn((()=>[Kl(YG,er({ref_key:"uploadRef",ref:o},Bt(m)),{default:Yn((()=>[e.$slots.trigger?eo(e.$slots,"trigger",{key:0}):Xl("v-if",!0),!e.$slots.trigger&&e.$slots.default?eo(e.$slots,"default",{key:1}):Xl("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:Yn((({file:t,index:n})=>[eo(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Xl("v-if",!0),!Bt(h)||Bt(h)&&!e.showFileList?(Al(),Nl(YG,er({key:1,ref_key:"uploadRef",ref:o},Bt(m)),{default:Yn((()=>[e.$slots.trigger?eo(e.$slots,"trigger",{key:0}):Xl("v-if",!0),!e.$slots.trigger&&e.$slots.default?eo(e.$slots,"default",{key:1}):Xl("v-if",!0)])),_:3},16)):Xl("v-if",!0),e.$slots.trigger?eo(e.$slots,"default",{key:2}):Xl("v-if",!0),eo(e.$slots,"tip"),!Bt(h)&&e.showFileList?(Al(),Nl(HG,{key:3,disabled:Bt(a),"list-type":e.listType,files:Bt(s),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Bt(d)},Qa({_:2},[e.$slots.file?{name:"default",fn:Yn((({file:t,index:n})=>[eo(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Xl("v-if",!0)]))}}),[["__file","upload.vue"]])),ZG=Cg({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:[String,Array],default:"Element Plus"},font:{type:Object},gap:{type:Array,default:()=>[100,100]},offset:{type:Array}});function QG(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function eX(){return function(e,t,n,a,o,l,r,i){const[s,u,c,p]=QG(a,o,n);if(e instanceof HTMLImageElement)s.drawImage(e,0,0,c,p);else{const{color:t,fontSize:a,fontStyle:r,fontWeight:i,fontFamily:u,textAlign:p,textBaseline:f}=l,v=Number(a)*n;s.font=`${r} normal ${i} ${v}px/${o}px ${u}`,s.fillStyle=t,s.textAlign=p,s.textBaseline=f;const h=d(e)?e:[e];null==h||h.forEach(((e,t)=>{s.fillText(null!=e?e:"",c/2,t*(v+3*n))}))}const f=Math.PI/180*Number(t),v=Math.max(a,o),[h,m,g]=QG(v,v,n);h.translate(g/2,g/2),h.rotate(f),c>0&&p>0&&h.drawImage(u,-c/2,-p/2);let y=0,b=0,w=0,x=0;const C=c/2,k=p/2;[[0-C,0-k],[0+C,0-k],[0+C,0+k],[0-C,0+k]].forEach((([e,t])=>{const[n,a]=function(e,t){return[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)]}(e,t);y=Math.min(y,n),b=Math.max(b,n),w=Math.min(w,a),x=Math.max(x,a)}));const S=y+g/2,_=w+g/2,M=b-y,E=x-w,T=r*n,O=i*n,$=2*(M+T),I=E+O,[V,A]=QG($,I);function L(e=0,t=0){V.drawImage(m,S,_,M,E,e,t,M,E)}return L(),L(M+T,-E/2-O/2),L(M+T,+E/2+O/2),[A.toDataURL(),$/n,I/n]}}const tX=Sa({name:"ElWatermark"});const nX=ry(Fg(Sa({...tX,props:ZG,setup(e){const t=e,n={position:"relative"},a=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.color)?n:"rgba(0,0,0,.15)"})),o=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontSize)?n:16})),l=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontWeight)?n:"normal"})),r=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontStyle)?n:"normal"})),i=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontFamily)?n:"sans-serif"})),s=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textAlign)?n:"center"})),u=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textBaseline)?n:"hanging"})),c=Sr((()=>t.gap[0])),p=Sr((()=>t.gap[1])),f=Sr((()=>c.value/2)),v=Sr((()=>p.value/2)),h=Sr((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[0])?n:f.value})),m=Sr((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[1])?n:v.value})),g=()=>{const e={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let n=h.value-f.value,a=m.value-v.value;return n>0&&(e.left=`${n}px`,e.width=`calc(100% - ${n}px)`,n=0),a>0&&(e.top=`${a}px`,e.height=`calc(100% - ${a}px)`,a=0),e.backgroundPosition=`${n}px ${a}px`,e},y=Lt(null),b=Lt(),w=At(!1),x=()=>{b.value&&(b.value.remove(),b.value=void 0)},C=(e,t)=>{var n;y.value&&b.value&&(w.value=!0,b.value.setAttribute("style",function(e){return Object.keys(e).map((t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`)).join(" ")}({...g(),backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`})),null==(n=y.value)||n.append(b.value),setTimeout((()=>{w.value=!1})))},k=eX(),S=()=>{const e=document.createElement("canvas").getContext("2d"),n=t.image,f=t.content,v=t.rotate;if(e){b.value||(b.value=document.createElement("div"));const h=window.devicePixelRatio||1,[m,g]=(e=>{let n=120,a=64;const l=t.image,r=t.content,s=t.width,u=t.height;if(!l&&e.measureText){e.font=`${Number(o.value)}px ${i.value}`;const t=d(r)?r:[r],l=t.map((t=>{const n=e.measureText(t);return[n.width,void 0!==n.fontBoundingBoxAscent?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent]}));n=Math.ceil(Math.max(...l.map((e=>e[0])))),a=Math.ceil(Math.max(...l.map((e=>e[1]))))*t.length+3*(t.length-1)}return[null!=s?s:n,null!=u?u:a]})(e),y=e=>{const[t,n]=k(e||"",v,h,m,g,{color:a.value,fontSize:o.value,fontStyle:r.value,fontWeight:l.value,fontFamily:i.value,textAlign:s.value,textBaseline:u.value},c.value,p.value);C(t,n)};if(n){const e=new Image;e.onload=()=>{y(e)},e.onerror=()=>{y(f)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=n}else y(f)}};Ba((()=>{S()})),cl((()=>t),(()=>{S()}),{deep:!0,flush:"post"}),Da((()=>{x()}));return tg(y,(e=>{w.value||e.forEach((e=>{((e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),"attributes"===e.type&&e.target===t&&(n=!0),n})(e,b.value)&&(x(),S())}))}),{attributes:!0,subtree:!0,childList:!0}),(e,t)=>(Al(),Bl("div",{ref_key:"containerRef",ref:y,style:D([n])},[eo(e.$slots,"default")],4))}}),[["__file","watermark.vue"]])),aX=Cg({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Object},targetAreaClickable:{type:Boolean,default:!0}}),oX=(e,t,n,a,o)=>{const l=At(null),r=()=>{let t;return t=m(e.value)?document.querySelector(e.value):h(e.value)?e.value():e.value,t},i=()=>{const e=r();if(!e||!t.value)return void(l.value=null);(function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n})(e)||e.scrollIntoView(o.value);const{left:n,top:a,width:i,height:s}=e.getBoundingClientRect();l.value={left:n,top:a,width:i,height:s,radius:0}};Ba((()=>{cl([t,e],(()=>{i()}),{immediate:!0}),window.addEventListener("resize",i)})),Da((()=>{window.removeEventListener("resize",i)}));const s=e=>{var t;return null!=(t=d(n.value.offset)?n.value.offset[e]:n.value.offset)?t:6},u=Sr((()=>{var e;if(!l.value)return l.value;const t=s(0),a=s(1),o=(null==(e=n.value)?void 0:e.radius)||2;return{left:l.value.left-t,top:l.value.top-a,width:l.value.width+2*t,height:l.value.height+2*a,radius:o}})),c=Sr((()=>{const e=r();return a.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,a;return window.DOMRect.fromRect({width:(null==(e=u.value)?void 0:e.width)||0,height:(null==(t=u.value)?void 0:t.height)||0,x:(null==(n=u.value)?void 0:n.left)||0,y:(null==(a=u.value)?void 0:a.top)||0})}}:e||void 0}));return{mergedPosInfo:u,triggerTarget:c}},lX=Symbol("ElTour");const rX=()=>({name:"overflow",async fn(e){const t=await uY(e);let n=0;t.left>0&&(n=t.left),t.right>0&&(n=t.right);return{data:{maxWidth:e.rects.floating.width-n}}}}),iX=Sa({name:"ElTourMask",inheritAttrs:!1});var sX=Fg(Sa({...iX,props:aX,setup(e){const t=e,{ns:n}=Oo(lX),a=Sr((()=>{var e,n;return null!=(n=null==(e=t.pos)?void 0:e.radius)?n:2})),o=Sr((()=>{const e=a.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}})),l=Sr((()=>{const e=window.innerWidth,n=window.innerHeight,l=o.value,r=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,i=a.value;return t.pos?`${r} M${t.pos.left+i},${t.pos.top} h${t.pos.width-2*i} ${l.topRight} v${t.pos.height-2*i} ${l.bottomRight} h${-t.pos.width+2*i} ${l.bottomLeft} v${-t.pos.height+2*i} ${l.topLeft} z`:r})),r=Sr((()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"})));return gB(Kt(t,"visible"),{ns:n}),(e,t)=>e.visible?(Al(),Bl("div",er({key:0,class:Bt(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:e.zIndex,pointerEvents:e.pos&&e.targetAreaClickable?"none":"auto"}},e.$attrs),[(Al(),Bl("svg",{style:{width:"100%",height:"100%"}},[jl("path",{class:W(Bt(n).e("hollow")),style:D(Bt(r)),d:Bt(l)},null,14,["d"])]))],16)):Xl("v-if",!0)}}),[["__file","mask.vue"]]);const uX=Cg({placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),cX=Sa({name:"ElTourContent"});var dX=Fg(Sa({...cX,props:uX,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,a=At(n.placement),o=At(n.strategy),l=At(null),r=At(null);cl((()=>n.placement),(()=>{a.value=n.placement}));const{contentStyle:i,arrowStyle:s}=((e,t,n,a,o,l,r,i)=>{const s=At(),u=At(),c=At({}),d={x:s,y:u,placement:a,strategy:o,middlewareData:c},p=Sr((()=>{const e=[cY(Bt(l)),pY(),dY(),rX()];return Bt(i)&&Bt(n)&&e.push(fY({element:Bt(n)})),e})),f=async()=>{if(!Sm)return;const n=Bt(e),l=Bt(t);if(!n||!l)return;const r=await vY(n,l,{placement:Bt(a),strategy:Bt(o),middleware:Bt(p)});Ig(d).forEach((e=>{d[e].value=r[e]}))},v=Sr((()=>{if(!Bt(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:Bt(r)};const{overflow:t}=Bt(c);return{position:Bt(o),zIndex:Bt(r),top:null!=Bt(u)?`${Bt(u)}px`:"",left:null!=Bt(s)?`${Bt(s)}px`:"",maxWidth:(null==t?void 0:t.maxWidth)?`${null==t?void 0:t.maxWidth}px`:""}})),h=Sr((()=>{if(!Bt(i))return{};const{arrow:e}=Bt(c);return{left:null!=(null==e?void 0:e.x)?`${null==e?void 0:e.x}px`:"",top:null!=(null==e?void 0:e.y)?`${null==e?void 0:e.y}px`:""}}));let m;return Ba((()=>{const n=Bt(e),a=Bt(t);n&&a&&(m=sY(n,a,f)),ul((()=>{f()}))})),Da((()=>{m&&m()})),{update:f,contentStyle:v,arrowStyle:h}})(Kt(n,"reference"),l,r,a,o,Kt(n,"offset"),Kt(n,"zIndex"),Kt(n,"showArrow")),u=Sr((()=>a.value.split("-")[0])),{ns:c}=Oo(lX),d=()=>{t("close")},p=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(e,t)=>(Al(),Bl("div",{ref_key:"contentRef",ref:l,style:D(Bt(i)),class:W(Bt(c).e("content")),"data-side":Bt(u),tabindex:"-1"},[Kl(Bt(XT),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":l.value||void 0,onReleaseRequested:d,onFocusoutPrevented:p},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["focus-trap-el"]),e.showArrow?(Al(),Bl("span",{key:0,ref_key:"arrowRef",ref:r,style:D(Bt(s)),class:W(Bt(c).e("arrow"))},null,6)):Xl("v-if",!0)],14,["data-side"]))}}),[["__file","content.vue"]]),pX=Sa({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var o,l;const r=null==(o=t.default)?void 0:o.call(t),i=[];let s=0;var u;return r.length&&(u=LV(null==(l=r[0])?void 0:l.children),d(u)&&u.forEach((e=>{var t;"ElTourStep"===(null==(t=(null==e?void 0:e.type)||{})?void 0:t.name)&&(i.push(e),s+=1)}))),a!==s&&(a=s,n("update-total",s)),i.length?i[e.current]:null}}});const fX=Cg({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:hE},placement:uX.placement,contentStyle:{type:[Object]},mask:{type:[Boolean,Object],default:!0},gap:{type:Object,default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:[Boolean,Object],default:()=>({block:"center"})},type:{type:String},appendTo:{type:[String,Object],default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),vX={[Hg]:e=>um(e),"update:current":e=>cm(e),close:e=>cm(e),finish:()=>!0,change:e=>cm(e)},hX=Sa({name:"ElTour"});var mX=Fg(Sa({...hX,props:fX,emits:vX,setup(e,{emit:t}){const n=e,a=Kd("tour"),o=At(0),l=At(),r=ig(n,"current",t,{passive:!0}),i=Sr((()=>{var e;return null==(e=l.value)?void 0:e.target})),s=Sr((()=>[a.b(),"primary"===m.value?a.m("primary"):""])),u=Sr((()=>{var e;return(null==(e=l.value)?void 0:e.placement)||n.placement})),c=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.contentStyle)?t:n.contentStyle})),d=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.mask)?t:n.mask})),p=Sr((()=>!!d.value&&n.modelValue)),f=Sr((()=>um(d.value)?void 0:d.value)),v=Sr((()=>{var e,t;return!!i.value&&(null!=(t=null==(e=l.value)?void 0:e.showArrow)?t:n.showArrow)})),h=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.scrollIntoViewOptions)?t:n.scrollIntoViewOptions})),m=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.type)?t:n.type})),{nextZIndex:g}=hg(),y=g(),b=Sr((()=>{var e;return null!=(e=n.zIndex)?e:y})),{mergedPosInfo:w,triggerTarget:x}=oX(i,Kt(n,"modelValue"),Kt(n,"gap"),d,h);cl((()=>n.modelValue),(e=>{e||(r.value=0)}));const C=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",r.value))},k=e=>{o.value=e},S=io();return To(lX,{currentStep:l,current:r,total:o,showClose:Kt(n,"showClose"),closeIcon:Kt(n,"closeIcon"),mergedType:m,ns:a,slots:S,updateModelValue(e){t("update:modelValue",e)},onClose(){t("close",r.value)},onFinish(){t("finish")},onChange(){t("change",r.value)}}),(e,t)=>(Al(),Bl(El,null,[Kl(Bt(j$),{to:e.appendTo},{default:Yn((()=>{var t,n;return[jl("div",er({class:Bt(s)},e.$attrs),[Kl(sX,{visible:Bt(p),fill:null==(t=Bt(f))?void 0:t.color,style:D(null==(n=Bt(f))?void 0:n.style),pos:Bt(w),"z-index":Bt(b),"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(Al(),Nl(dX,{key:Bt(r),reference:Bt(x),placement:Bt(u),"show-arrow":Bt(v),"z-index":Bt(b),style:D(Bt(c)),onClose:C},{default:Yn((()=>[Kl(Bt(pX),{current:Bt(r),onUpdateTotal:k},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["current"])])),_:3},8,["reference","placement","show-arrow","z-index","style"])):Xl("v-if",!0)],16)]})),_:3},8,["to"]),Xl(" just for IDE "),Xl("v-if",!0)],64))}}),[["__file","tour.vue"]]);const gX=Cg({target:{type:[String,Object,Function]},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:hE},showArrow:{type:Boolean,default:void 0},placement:uX.placement,mask:{type:[Boolean,Object],default:void 0},contentStyle:{type:[Object]},prevButtonProps:{type:Object},nextButtonProps:{type:Object},scrollIntoViewOptions:{type:[Boolean,Object],default:void 0},type:{type:String}}),yX=Sa({name:"ElTourStep"}),bX=Sa({...yX,props:gX,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,{Close:a}=mE,{t:o}=wg(),{currentStep:l,current:r,total:i,showClose:s,closeIcon:u,mergedType:c,ns:d,slots:p,updateModelValue:f,onClose:v,onFinish:h,onChange:m}=Oo(lX);cl(n,(e=>{l.value=e}),{immediate:!0});const g=Sr((()=>{var e;return null!=(e=n.showClose)?e:s.value})),y=Sr((()=>{var e,t;return null!=(t=null!=(e=n.closeIcon)?e:u.value)?t:a})),b=e=>{if(e)return tm(e,["children","onClick"])},w=()=>{var e,t;r.value-=1,(null==(e=n.prevButtonProps)?void 0:e.onClick)&&(null==(t=n.prevButtonProps)||t.onClick()),m()},x=()=>{var e;r.value>=i.value-1?C():r.value+=1,(null==(e=n.nextButtonProps)?void 0:e.onClick)&&n.nextButtonProps.onClick(),m()},C=()=>{k(),h()},k=()=>{f(!1),v(),t("close")};return(e,t)=>(Al(),Bl(El,null,[Bt(g)?(Al(),Bl("button",{key:0,"aria-label":"Close",class:W(Bt(d).e("closebtn")),type:"button",onClick:k},[Kl(Bt(py),{class:W(Bt(d).e("close"))},{default:Yn((()=>[(Al(),Nl(Ya(Bt(y))))])),_:1},8,["class"])],2)):Xl("v-if",!0),jl("header",{class:W([Bt(d).e("header"),{"show-close":Bt(s)}])},[eo(e.$slots,"header",{},(()=>[jl("span",{role:"heading",class:W(Bt(d).e("title"))},te(e.title),3)]))],2),jl("div",{class:W(Bt(d).e("body"))},[eo(e.$slots,"default",{},(()=>[jl("span",null,te(e.description),1)]))],2),jl("footer",{class:W(Bt(d).e("footer"))},[jl("div",{class:W(Bt(d).b("indicators"))},[Bt(p).indicators?(Al(),Nl(Ya(Bt(p).indicators),{key:0,current:Bt(r),total:Bt(i)},null,8,["current","total"])):(Al(!0),Bl(El,{key:1},Za(Bt(i),((e,t)=>(Al(),Bl("span",{key:e,class:W([Bt(d).b("indicator"),t===Bt(r)?"is-active":""])},null,2)))),128))],2),jl("div",{class:W(Bt(d).b("buttons"))},[Bt(r)>0?(Al(),Nl(Bt(ZI),er({key:0,size:"small",type:Bt(c)},b(e.prevButtonProps),{onClick:w}),{default:Yn((()=>{var t,n;return[Yl(te(null!=(n=null==(t=e.prevButtonProps)?void 0:t.children)?n:Bt(o)("el.tour.previous")),1)]})),_:1},16,["type"])):Xl("v-if",!0),Bt(r)<=Bt(i)-1?(Al(),Nl(Bt(ZI),er({key:1,size:"small",type:"primary"===Bt(c)?"default":"primary"},b(e.nextButtonProps),{onClick:x}),{default:Yn((()=>{var t,n;return[Yl(te(null!=(n=null==(t=e.nextButtonProps)?void 0:t.children)?n:Bt(r)===Bt(i)-1?Bt(o)("el.tour.finish"):Bt(o)("el.tour.next")),1)]})),_:1},16,["type"])):Xl("v-if",!0)],2)],2)],64))}});var wX=Fg(bX,[["__file","step.vue"]]);const xX=ry(mX,{TourStep:wX}),CX=sy(wX),kX=Cg({container:{type:[String,Object]},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:String,default:"default"},direction:{type:String,default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),SX={change:e=>m(e),click:(e,t)=>e instanceof MouseEvent&&(m(t)||sm(t))},_X=Symbol("anchor"),MX=e=>{if(!Sm||""===e)return null;if(m(e))try{return document.querySelector(e)}catch(yR){return null}return e};const EX=Sa({name:"ElAnchor"}),TX=Sa({...EX,props:kX,emits:SX,setup(e,{expose:t,emit:n}){const a=e,o=At(""),l=At(null),r=At(null),i=At(),s={};let u=!1,c=0;const d=Kd("anchor"),p=Sr((()=>[d.b(),"underline"===a.type?d.m("underline"):"",d.m(a.direction)])),f=e=>{o.value!==e&&(o.value=e,n("change",e))};let v=null;const m=e=>{if(!i.value)return;const t=MX(e);if(!t)return;v&&v(),u=!0;const n=ay(t,i.value),o=OL(t,n),l=n.scrollHeight-n.clientHeight,r=Math.min(o-a.offset,l);v=function(e,t,n,a,o){const l=Date.now();let r;const i=()=>{const s=Date.now()-l,u=function(e,t,n,a){const o=n-t;return(e/=a/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(s>a?a:s,t,n,a);vm(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,s{r&&Kg(r)}}(i.value,c,r,a.duration,(()=>{setTimeout((()=>{u=!1}),20)}))},g=e=>{e&&(f(e),m(e))},y=function(e){let t=0;const n=(...n)=>{t&&Kg(t),t=jg((()=>{e(...n),t=0}))};return n.cancel=()=>{Kg(t),t=0},n}((()=>{i.value&&(c=oy(i.value));const e=b();u||sm(e)||f(e)})),b=()=>{if(!i.value)return;const e=oy(i.value),t=[];for(const n of Object.keys(s)){const e=MX(n);if(!e)continue;const o=ay(e,i.value),l=OL(e,o);t.push({top:l-a.offset-a.bound,href:n})}t.sort(((e,t)=>e.top-t.top));for(let n=0;ne))return o.href}},w=()=>{const e=MX(a.container);!e||vm(e)?i.value=window:i.value=e};Hm(i,"scroll",y);const x=Sr((()=>{if(!l.value||!r.value||!o.value)return{};const e=s[o.value];if(!e)return{};const t=l.value.getBoundingClientRect(),n=r.value.getBoundingClientRect(),i=e.getBoundingClientRect();if("horizontal"===a.direction){return{left:`${i.left-t.left}px`,width:`${i.width}px`,opacity:1}}return{top:`${i.top-t.top+(i.height-n.height)/2}px`,opacity:1}}));return Ba((()=>{w();const e=decodeURIComponent(window.location.hash);MX(e)?g(e):y()})),cl((()=>a.container),(()=>{w()})),To(_X,{ns:d,direction:a.direction,currentAnchor:o,addLink:e=>{s[e.href]=e.el},removeLink:e=>{delete s[e]},handleClick:(e,t)=>{n("click",e,t),g(t)}}),t({scrollTo:g}),(e,t)=>(Al(),Bl("div",{ref_key:"anchorRef",ref:l,class:W(Bt(p))},[e.marker?(Al(),Bl("div",{key:0,ref_key:"markerRef",ref:r,class:W(Bt(d).e("marker")),style:D(Bt(x))},null,6)):Xl("v-if",!0),jl("div",{class:W(Bt(d).e("list"))},[eo(e.$slots,"default")],2)],2))}});var OX=Fg(TX,[["__file","anchor.vue"]]);const $X=Cg({title:String,href:String}),IX=Sa({name:"ElAnchorLink"}),VX=Sa({...IX,props:$X,setup(e){const t=e,n=At(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:i,handleClick:s}=Oo(_X),u=Sr((()=>[a.e("link"),a.is("active",l.value===t.href)])),c=e=>{s(e,t.href)};return cl((()=>t.href),((e,t)=>{gn((()=>{t&&i(t),e&&r({href:e,el:n.value})}))})),Ba((()=>{const{href:e}=t;e&&r({href:e,el:n.value})})),Da((()=>{const{href:e}=t;e&&i(e)})),(e,t)=>(Al(),Bl("div",{class:W(Bt(a).e("item"))},[jl("a",{ref_key:"linkRef",ref:n,class:W(Bt(u)),href:e.href,onClick:c},[eo(e.$slots,"default",{},(()=>[Yl(te(e.title),1)]))],10,["href"]),e.$slots["sub-link"]&&"vertical"===Bt(o)?(Al(),Bl("div",{key:0,class:W(Bt(a).e("list"))},[eo(e.$slots,"sub-link")],2)):Xl("v-if",!0)],2))}});var AX=Fg(VX,[["__file","anchor-link.vue"]]);const LX=ry(OX,{AnchorLink:AX}),RX=sy(AX),zX=Cg({direction:{type:String,default:"horizontal"},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Sg,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...$E(["ariaLabel"])}),BX={[Hg]:e=>m(e)||cm(e)||um(e),change:e=>m(e)||cm(e)||um(e)},NX=Sa({name:"ElSegmented"}),HX=Sa({...NX,props:zX,emits:BX,setup(e,{emit:t}){const n=e,a=Kd("segmented"),o=PE(),l=WE(),r=qE(),{formItem:i}=FE(),{inputId:s,isLabeledByFormItem:u}=jE(n,{formItemContext:i}),c=At(null),d=function(e={}){var t;const{window:n=Bm}=e,a=null!=(t=e.document)?t:null==n?void 0:n.document,o=$m((()=>null),(()=>null==a?void 0:a.activeElement));return n&&(Hm(n,"blur",(e=>{null===e.relatedTarget&&o.trigger()}),!0),Hm(n,"focus",o.trigger,!0)),o}(),p=bt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),f=e=>y(e)?e.value:e,v=e=>y(e)?e.label:e,h=e=>!!(r.value||y(e)&&e.disabled),m=e=>n.modelValue===f(e),g=e=>[a.e("item"),a.is("selected",m(e)),a.is("disabled",h(e))],b=()=>{if(!c.value)return;const e=c.value.querySelector(".is-selected"),t=c.value.querySelector(".is-selected input");if(!e||!t)return p.width=0,p.height=0,p.translateX=0,p.translateY=0,void(p.focusVisible=!1);const a=e.getBoundingClientRect();p.isInit=!0,"vertical"===n.direction?(p.height=a.height,p.translateY=e.offsetTop):(p.width=a.width,p.translateX=e.offsetLeft);try{p.focusVisible=t.matches(":focus-visible")}catch(yR){}},w=Sr((()=>[a.b(),a.m(l.value),a.is("block",n.block)])),x=Sr((()=>({width:"vertical"===n.direction?"100%":`${p.width}px`,height:"vertical"===n.direction?`${p.height}px`:"100%",transform:"vertical"===n.direction?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"}))),C=Sr((()=>{return[a.e("item-selected"),a.is("disabled",h((e=n.modelValue,n.options.find((t=>f(t)===e))))),a.is("focus-visible",p.focusVisible)];var e})),k=Sr((()=>n.name||o.value));return Ym(c,b),cl(d,b),cl((()=>n.modelValue),(()=>{var e;b(),n.validateEvent&&(null==(e=null==i?void 0:i.validate)||e.call(i,"change").catch((e=>cg(e))))}),{flush:"post"}),(e,o)=>e.options.length?(Al(),Bl("div",{key:0,id:Bt(s),ref_key:"segmentedRef",ref:c,class:W(Bt(w)),role:"radiogroup","aria-label":Bt(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":Bt(u)?Bt(i).labelId:void 0},[jl("div",{class:W([Bt(a).e("group"),Bt(a).m(n.direction)])},[jl("div",{style:D(Bt(x)),class:W(Bt(C))},null,6),(Al(!0),Bl(El,null,Za(e.options,((n,o)=>(Al(),Bl("label",{key:o,class:W(g(n))},[jl("input",{class:W(Bt(a).e("item-input")),type:"radio",name:Bt(k),disabled:h(n),checked:m(n),onChange:e=>(e=>{const n=f(e);t(Hg,n),t("change",n)})(n)},null,42,["name","disabled","checked","onChange"]),jl("div",{class:W(Bt(a).e("item-label"))},[eo(e.$slots,"default",{item:n},(()=>[Yl(te(v(n)),1)]))],2)],2)))),128))],2)],10,["id","aria-label","aria-labelledby"])):Xl("v-if",!0)}});const DX=ry(Fg(HX,[["__file","segmented.vue"]])),PX=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},FX=Cg({...IE,options:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@",validator:e=>m(e)?1===e.length:e.every((e=>m(e)&&1===e.length))},split:{type:String,default:" ",validator:e=>1===e.length},filterOption:{type:[Boolean,Function],default:()=>PX,validator:e=>!1===e||h(e)},placement:{type:String,default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Function},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})}}),jX={[Hg]:e=>m(e),search:(e,t)=>m(e)&&m(t),select:(e,t)=>m(e.value)&&m(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},KX=Cg({options:{type:Array,default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),WX={select:e=>m(e.value)},qX=Sa({name:"ElMentionDropdown"}),UX=Sa({...qX,props:KX,emits:WX,setup(e,{expose:t,emit:n}){const a=e,o=Kd("mention"),{t:l}=wg(),r=At(-1),i=At(),s=At(),u=At(),c=(e,t)=>[o.be("dropdown","item"),o.is("hovering",r.value===t),o.is("disabled",e.disabled||a.disabled)],d=Sr((()=>a.disabled||a.options.every((e=>e.disabled)))),p=Sr((()=>a.options[r.value])),f=e=>{const{options:t}=a;if(0===t.length||d.value)return;"next"===e?(r.value++,r.value===t.length&&(r.value=0)):"prev"===e&&(r.value--,r.value<0&&(r.value=t.length-1));const n=t[r.value];n.disabled?f(e):gn((()=>v(n)))},v=e=>{var t,n,l,r;const{options:c}=a,d=c.findIndex((t=>t.value===e.value)),p=null==(t=s.value)?void 0:t[d];if(p){const e=null==(l=null==(n=u.value)?void 0:n.querySelector)?void 0:l.call(n,`.${o.be("dropdown","wrap")}`);e&&ny(e,p)}null==(r=i.value)||r.handleScroll()};return cl((()=>a.options),(()=>{d.value||0===a.options.length?r.value=-1:r.value=0}),{immediate:!0}),t({hoveringIndex:r,navigateOptions:f,selectHoverOption:()=>{p.value&&n("select",p.value)},hoverOption:p}),(e,t)=>(Al(),Bl("div",{ref_key:"dropdownRef",ref:u,class:W(Bt(o).b("dropdown"))},[e.$slots.header?(Al(),Bl("div",{key:0,class:W(Bt(o).be("dropdown","header"))},[eo(e.$slots,"header")],2)):Xl("v-if",!0),Xn(Kl(Bt(rT),{id:e.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":Bt(o).be("dropdown","wrap"),"view-class":Bt(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(e.options,((t,o)=>(Al(),Bl("li",{id:`${e.contentId}-${o}`,ref_for:!0,ref_key:"optionRefs",ref:s,key:o,class:W(c(t,o)),role:"option","aria-disabled":t.disabled||e.disabled||void 0,"aria-selected":r.value===o,onMousemove:e=>(e=>{r.value=e})(o),onClick:Fi((e=>(e=>{e.disabled||a.disabled||n("select",e)})(t)),["stop"])},[eo(e.$slots,"label",{item:t,index:o},(()=>{var e;return[jl("span",null,te(null!=(e=t.label)?e:t.value),1)]}))],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])))),128))])),_:3},8,["id","wrap-class","view-class","aria-label"]),[[ei,e.options.length>0&&!e.loading]]),e.loading?(Al(),Bl("div",{key:1,class:W(Bt(o).be("dropdown","loading"))},[eo(e.$slots,"loading",{},(()=>[Yl(te(Bt(l)("el.mention.loading")),1)]))],2)):Xl("v-if",!0),e.$slots.footer?(Al(),Bl("div",{key:2,class:W(Bt(o).be("dropdown","footer"))},[eo(e.$slots,"footer")],2)):Xl("v-if",!0)],2))}});var YX=Fg(UX,[["__file","mention-dropdown.vue"]]);const GX=Sa({name:"ElMention",inheritAttrs:!1}),XX=Sa({...GX,props:FX,emits:jX,setup(e,{expose:t,emit:n}){const a=e,o=Sr((()=>om(a,Object.keys(IE)))),l=Kd("mention"),r=qE(),i=PE(),s=At(),u=At(),c=At(),d=At(!1),p=At(),f=At(),v=Sr((()=>a.showArrow?a.placement:`${a.placement}-start`)),m=Sr((()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"])),g=Sr((()=>{const{filterOption:e,options:t}=a;return f.value&&e?t.filter((t=>e(f.value.pattern,t))):t})),y=Sr((()=>d.value&&(!!g.value.length||a.loading))),b=Sr((()=>{var e;return`${i.value}-${null==(e=c.value)?void 0:e.hoveringIndex}`})),w=e=>{n("update:modelValue",e),M()},x=e=>{var t,o,l,r;if("code"in e&&!(null==(t=s.value)?void 0:t.isComposing))switch(e.code){case qT.left:case qT.right:M();break;case qT.up:case qT.down:if(!d.value)return;e.preventDefault(),null==(o=c.value)||o.navigateOptions(e.code===qT.up?"prev":"next");break;case qT.enter:case qT.numpadEnter:if(!d.value)return;e.preventDefault(),(null==(l=c.value)?void 0:l.hoverOption)?null==(r=c.value)||r.selectHoverOption():d.value=!1;break;case qT.esc:if(!d.value)return;e.preventDefault(),d.value=!1;break;case qT.backspace:if(a.whole&&f.value){const{splitIndex:t,selectionEnd:o,pattern:l,prefixIndex:r,prefix:i}=f.value,s=_();if(!s)return;const u=s.value,c=a.options.find((e=>e.value===l));if((h(a.checkIsWhole)?a.checkIsWhole(l,i):c)&&-1!==t&&t+1===o){e.preventDefault();const a=u.slice(0,r)+u.slice(t+1);n(Hg,a);const o=r;gn((()=>{s.selectionStart=o,s.selectionEnd=o,T()}))}}}},{wrapperRef:C}=UE(s,{beforeFocus:()=>r.value,afterFocus(){M()},beforeBlur(e){var t;return null==(t=u.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){d.value=!1}}),k=()=>{M()},S=e=>{if(!f.value)return;const t=_();if(!t)return;const o=t.value,{split:l}=a,r=o.slice(f.value.end),i=r.startsWith(l),s=`${e.value}${i?"":l}`,u=o.slice(0,f.value.start)+s+r;n(Hg,u),n("select",e,f.value.prefix);const c=f.value.start+s.length+(i?1:0);gn((()=>{t.selectionStart=c,t.selectionEnd=c,t.focus(),T()}))},_=()=>{var e,t;return"textarea"===a.type?null==(e=s.value)?void 0:e.textarea:null==(t=s.value)?void 0:t.input},M=()=>{setTimeout((()=>{E(),T(),gn((()=>{var e;return null==(e=u.value)?void 0:e.updatePopper()}))}),0)},E=()=>{const e=_();if(!e)return;const t=((e,t={debug:!1,useSelectionEnd:!1})=>{const n=null!==e.selectionStart?e.selectionStart:0,a=null!==e.selectionEnd?e.selectionEnd:0,o=t.useSelectionEnd?a:n;if(t.debug){const e=document.querySelector("#input-textarea-caret-position-mirror-div");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}const l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);const r=l.style,i=window.getComputedStyle(e),s="INPUT"===e.nodeName;r.whiteSpace=s?"nowrap":"pre-wrap",s||(r.wordWrap="break-word"),r.position="absolute",t.debug||(r.visibility="hidden"),["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"].forEach((e=>{if(s&&"lineHeight"===e)if("border-box"===i.boxSizing){const e=Number.parseInt(i.height),t=Number.parseInt(i.paddingTop)+Number.parseInt(i.paddingBottom)+Number.parseInt(i.borderTopWidth)+Number.parseInt(i.borderBottomWidth),n=t+Number.parseInt(i.lineHeight);r.lineHeight=e>n?e-t+"px":e===n?i.lineHeight:"0"}else r.lineHeight=i.height;else r[e]=i[e]})),SE()?e.scrollHeight>Number.parseInt(i.height)&&(r.overflowY="scroll"):r.overflow="hidden",l.textContent=e.value.slice(0,Math.max(0,o)),s&&l.textContent&&(l.textContent=l.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,o))||".",u.style.position="relative",u.style.left=-e.scrollLeft+"px",u.style.top=-e.scrollTop+"px",l.appendChild(u);const c={top:u.offsetTop+Number.parseInt(i.borderTopWidth),left:u.offsetLeft+Number.parseInt(i.borderLeftWidth),height:1.5*Number.parseInt(i.fontSize)};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(l),c.left>=e.clientWidth&&(c.left=e.clientWidth),c})(e),n=e.getBoundingClientRect(),a=s.value.$el.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${t.height}px`,left:t.left+n.left-a.left+"px",top:t.top+n.top-a.top+"px"}},T=()=>{const e=_();if(document.activeElement!==e)return void(d.value=!1);const{prefix:t,split:o}=a;if(f.value=((e,t,n)=>{const{selectionEnd:a}=e;if(null===a)return;const o=e.value,l=yv(t);let r,i=-1;for(let s=a-1;s>=0;--s){const e=o[s];if(e!==n&&"\n"!==e&&"\r"!==e){if(l.includes(e)){const t=-1===i?a:i;r={pattern:o.slice(s+1,t),start:s+1,end:t,prefix:e,prefixIndex:s,splitIndex:i,selectionEnd:a};break}}else i=s}return r})(e,t,o),f.value&&-1===f.value.splitIndex)return d.value=!0,void n("search",f.value.pattern,f.value.prefix);d.value=!1};return t({input:s,tooltip:u,dropdownVisible:y}),(e,t)=>(Al(),Bl("div",{ref_key:"wrapperRef",ref:C,class:W([Bt(l).b(),Bt(l).is("disabled",Bt(r))])},[Kl(Bt(XE),er(er(Bt(o),e.$attrs),{ref_key:"elInputRef",ref:s,"model-value":e.modelValue,disabled:Bt(r),role:Bt(y)?"combobox":void 0,"aria-activedescendant":Bt(y)?Bt(b)||"":void 0,"aria-controls":Bt(y)?Bt(i):void 0,"aria-expanded":Bt(y)||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":Bt(y)?"none":void 0,"aria-haspopup":Bt(y)?"listbox":void 0,onInput:w,onKeydown:x,onMousedown:k}),Qa({_:2},[Za(e.$slots,((t,n)=>({name:n,fn:Yn((t=>[eo(e.$slots,n,q(Wl(t)))]))})))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Kl(Bt(G$),{ref_key:"tooltipRef",ref:u,visible:Bt(y),"popper-class":[Bt(l).e("popper"),e.popperClass],"popper-options":e.popperOptions,placement:Bt(v),"fallback-placements":Bt(m),effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:Yn((()=>[jl("div",{style:D(p.value)},null,4)])),content:Yn((()=>{var t;return[Kl(YX,{ref_key:"dropdownRef",ref:c,options:Bt(g),disabled:Bt(r),loading:e.loading,"content-id":Bt(i),"aria-label":e.ariaLabel,onSelect:S,onClick:Fi(null==(t=s.value)?void 0:t.focus,["stop"])},Qa({_:2},[Za(e.$slots,((t,n)=>({name:n,fn:Yn((t=>[eo(e.$slots,n,q(Wl(t)))]))})))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]})),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});const JX=ry(Fg(XX,[["__file","mention.vue"]]));var ZX=[uy,kE,Q$,dq,oI,sI,dI,wI,xI,ZI,QI,SV,EV,KV,WV,tL,jA,lL,lA,rA,iA,uL,kL,SL,yL,QL,nR,fR,vR,hR,mR,gR,Wz,nB,aB,wB,kB,TB,vN,hN,mN,CN,sH,uH,py,bH,vH,XE,SH,OH,AH,eD,tD,nD,aD,iD,XD,tP,cP,S$,fP,kA,_A,SA,yP,kP,MP,rT,ED,TD,OD,yF,SF,_F,HF,FF,WF,QF,ij,sj,vj,qK,UK,cq,_q,Mq,UA,Oq,rz,Bq,Fq,jq,G$,MY,NY,eG,uG,EG,JG,nX,xX,CX,LX,RX,DX,JX];const QX="ElInfiniteScroll",eJ={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},tJ=(e,t)=>Object.entries(eJ).reduce(((n,[a,o])=>{var l,r;const{type:i,default:s}=o,u=e.getAttribute(`infinite-scroll-${a}`);let c=null!=(r=null!=(l=t[u])?l:u)?r:s;return c="false"!==c&&c,c=i(c),n[a]=Number.isNaN(c)?s:c,n}),{}),nJ=e=>{const{observer:t}=e[QX];t&&(t.disconnect(),delete e[QX].observer)},aJ=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[QX],{disabled:i,distance:s}=tJ(e,o),{clientHeight:u,scrollHeight:c,scrollTop:d}=a,p=d-r;if(e[QX].lastScrollTop=d,l||i||p<0)return;let f=!1;if(n===e)f=c-(u+d)<=s;else{const{clientTop:t,scrollHeight:n}=e;f=d+u>=OL(e,a)+t+n-s}f&&t.call(o)};function oJ(e,t){const{containerEl:n,instance:a}=e[QX],{disabled:o}=tJ(e,a);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(a):nJ(e))}const lJ={async mounted(e,t){const{instance:n,value:a}=t;h(a)||ug(QX,"'v-infinite-scroll' binding value must be a function"),await gn();const{delay:o,immediate:l}=tJ(e,n),r=Qg(e,!0),i=r===window?document.documentElement:r,s=lm(aJ.bind(null,e,a),o);if(r){if(e[QX]={instance:n,container:r,containerEl:i,delay:o,cb:a,onScroll:s,lastScrollTop:i.scrollTop},l){const t=new MutationObserver(lm(oJ.bind(null,e,a),50));e[QX].observer=t,t.observe(e,{childList:!0,subtree:!0}),oJ(e,a)}r.addEventListener("scroll",s)}},unmounted(e){if(!e[QX])return;const{container:t,onScroll:n}=e[QX];null==t||t.removeEventListener("scroll",n),nJ(e)},async updated(e){if(e[QX]){const{containerEl:t,cb:n,observer:a}=e[QX];t.clientHeight&&a&&oJ(e,n)}else await gn()},install:e=>{e.directive("InfiniteScroll",lJ)}},rJ=lJ;function iJ(e){let t;const n=At(!1),a=bt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(){var e,t;null==(t=null==(e=s.$el)?void 0:e.parentNode)||t.removeChild(s.$el)}function l(){if(!n.value)return;const e=a.parent;n.value=!1,e.vLoadingAddClassList=void 0,function(){const e=a.parent,t=s.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(Yg(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Yg(e,t.bm("parent","hidden"))}o(),i.unmount()}()}const r=Sa({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:o}=zg("loading");return t({ns:n,zIndex:o}),()=>{const e=a.spinner||a.svg,t=_r("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[_r("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),o=a.text?_r("p",{class:n.b("text")},[a.text]):void 0;return _r(Nr,{name:n.b("fade"),onAfterLeave:l},{default:Yn((()=>[Xn(Kl("div",{style:{backgroundColor:a.background||""},class:[n.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[_r("div",{class:n.b("spinner")},[t,o])]),[[ei,a.visible]])]))})}}}),i=Gi(r),s=i.mount(document.createElement("div"));return{...Pt(a),setText:function(e){a.text=e},removeElLoadingChild:o,close:function(){var o;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),a.visible=!1,null==(o=e.closed)||o.call(e))},handleAfterLeave:l,vm:s,get $el(){return s.$el}}}let sJ;const uJ=function(e={}){if(!Sm)return;const t=cJ(e);if(t.fullscreen&&sJ)return sJ;const n=iJ({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(sJ=void 0)}});dJ(t,t.parent,n),pJ(t,t.parent,n),t.parent.vLoadingAddClassList=()=>pJ(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a=a?`${Number.parseInt(a)+1}`:"1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),gn((()=>n.visible.value=t.visible)),t.fullscreen&&(sJ=n),n},cJ=e=>{var t,n,a,o;let l;return l=m(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(a=e.lock)&&a,customClass:e.customClass||"",visible:null==(o=e.visible)||o,beforeClose:e.beforeClose,closed:e.closed,target:l}},dJ=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Gg(document.body,"position"),n.originalOverflow.value=Gg(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Gg(document.body,"position"),await gn();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";o[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(Gg(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])o[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=Gg(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},pJ=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Yg(t,a.bm("parent","relative")):Ug(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ug(t,a.bm("parent","hidden")):Yg(t,a.bm("parent","hidden"))},fJ=Symbol("ElLoading"),vJ=(e,t)=>{var n,a,o,l;const r=t.instance,i=e=>y(t.value)?t.value[e]:void 0,s=t=>(e=>{const t=m(e)&&(null==r?void 0:r[e])||e;return t?At(t):t})(i(t)||e.getAttribute(`element-loading-${I(t)}`)),u=null!=(n=i("fullscreen"))?n:t.modifiers.fullscreen,c={text:s("text"),svg:s("svg"),svgViewBox:s("svgViewBox"),spinner:s("spinner"),background:s("background"),customClass:s("customClass"),fullscreen:u,target:null!=(a=i("target"))?a:u?void 0:e,body:null!=(o=i("body"))?o:t.modifiers.body,lock:null!=(l=i("lock"))?l:t.modifiers.lock};e[fJ]={options:c,instance:uJ(c)}},hJ={mounted(e,t){t.value&&vJ(e,t)},updated(e,t){const n=e[fJ];t.oldValue!==t.value&&(t.value&&!t.oldValue?vJ(e,t):t.value&&t.oldValue?y(t.value)&&((e,t)=>{for(const n of Object.keys(t))Vt(t[n])&&(t[n].value=e[n])})(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[fJ])||t.instance.close(),e[fJ]=null}},mJ={install(e){e.directive("loading",hJ),e.config.globalProperties.$loading=uJ},directive:hJ,service:uJ},gJ=["success","info","warning","error"],yJ={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Sm?document.body:void 0},bJ=Cg({customClass:{type:String,default:yJ.customClass},center:{type:Boolean,default:yJ.center},dangerouslyUseHTMLString:{type:Boolean,default:yJ.dangerouslyUseHTMLString},duration:{type:Number,default:yJ.duration},icon:{type:hE,default:yJ.icon},id:{type:String,default:yJ.id},message:{type:[String,Object,Function],default:yJ.message},onClose:{type:Function,default:yJ.onClose},showClose:{type:Boolean,default:yJ.showClose},type:{type:String,values:gJ,default:yJ.type},plain:{type:Boolean,default:yJ.plain},offset:{type:Number,default:yJ.offset},zIndex:{type:Number,default:yJ.zIndex},grouping:{type:Boolean,default:yJ.grouping},repeatNum:{type:Number,default:yJ.repeatNum}}),wJ=wt([]),xJ=e=>{const{prev:t}=(e=>{const t=wJ.findIndex((t=>t.id===e)),n=wJ[t];let a;return t>0&&(a=wJ[t-1]),{current:n,prev:a}})(e);return t?t.vm.exposed.bottom.value:0},CJ=Sa({name:"ElMessage"});var kJ=Fg(Sa({...CJ,props:bJ,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:a}=gE,{ns:o,zIndex:l}=zg("message"),{currentZIndex:r,nextZIndex:i}=l,s=At(),u=At(!1),c=At(0);let d;const p=Sr((()=>n.type?"error"===n.type?"danger":n.type:"info")),f=Sr((()=>{const e=n.type;return{[o.bm("icon",e)]:e&&yE[e]}})),v=Sr((()=>n.icon||yE[n.type]||"")),h=Sr((()=>xJ(n.id))),m=Sr((()=>((e,t)=>wJ.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+h.value)),g=Sr((()=>c.value+m.value)),y=Sr((()=>({top:`${m.value}px`,zIndex:r.value})));function b(){0!==n.duration&&({stop:d}=Rm((()=>{x()}),n.duration))}function w(){null==d||d()}function x(){u.value=!1}return Ba((()=>{b(),i(),u.value=!0})),cl((()=>n.repeatNum),(()=>{w(),b()})),Hm(document,"keydown",(function({code:e}){e===qT.esc&&x()})),Ym(s,(()=>{c.value=s.value.getBoundingClientRect().height})),t({visible:u,bottom:g,close:x}),(e,t)=>(Al(),Nl(Nr,{name:Bt(o).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:Yn((()=>[Xn(jl("div",{id:e.id,ref_key:"messageRef",ref:s,class:W([Bt(o).b(),{[Bt(o).m(e.type)]:e.type},Bt(o).is("center",e.center),Bt(o).is("closable",e.showClose),Bt(o).is("plain",e.plain),e.customClass]),style:D(Bt(y)),role:"alert",onMouseenter:w,onMouseleave:b},[e.repeatNum>1?(Al(),Nl(Bt(dI),{key:0,value:e.repeatNum,type:Bt(p),class:W(Bt(o).e("badge"))},null,8,["value","type","class"])):Xl("v-if",!0),Bt(v)?(Al(),Nl(Bt(py),{key:1,class:W([Bt(o).e("icon"),Bt(f)])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(v))))])),_:1},8,["class"])):Xl("v-if",!0),eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Bl(El,{key:1},[Xl(" Caution here, message could've been compromised, never use user's input as message "),jl("p",{class:W(Bt(o).e("content")),innerHTML:e.message},null,10,["innerHTML"])],2112)):(Al(),Bl("p",{key:0,class:W(Bt(o).e("content"))},te(e.message),3))])),e.showClose?(Al(),Nl(Bt(py),{key:2,class:W(Bt(o).e("closeBtn")),onClick:Fi(x,["stop"])},{default:Yn((()=>[Kl(Bt(a))])),_:1},8,["class","onClick"])):Xl("v-if",!0)],46,["id"]),[[ei,u.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}),[["__file","message.vue"]]);let SJ=1;const _J=e=>{const t=!e||m(e)||Hl(e)||h(e)?{message:e}:e,n={...yJ,...t};if(n.appendTo){if(m(n.appendTo)){let e=document.querySelector(n.appendTo);pm(e)||(cg("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return um(tR.grouping)&&!n.grouping&&(n.grouping=tR.grouping),cm(tR.duration)&&3e3===n.duration&&(n.duration=tR.duration),cm(tR.offset)&&16===n.offset&&(n.offset=tR.offset),um(tR.showClose)&&!n.showClose&&(n.showClose=tR.showClose),n},MJ=({appendTo:e,...t},n)=>{const a="message_"+SJ++,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{null==o||o(),(e=>{const t=wJ.indexOf(e);if(-1===t)return;wJ.splice(t,1);const{handler:n}=e;n.close()})(c)},onDestroy:()=>{Yi(null,l)}},i=Kl(kJ,r,h(r.message)||Hl(r.message)?{default:h(r.message)?r.message:()=>r.message}:null);i.appContext=n||EJ._context,Yi(i,l),e.appendChild(l.firstElementChild);const s=i.component,u={close:()=>{s.exposed.visible.value=!1}},c={id:a,vnode:i,vm:s,handler:u,props:i.component.props};return c},EJ=(e={},t)=>{if(!Sm)return{close:()=>{}};const n=_J(e);if(n.grouping&&wJ.length){const e=wJ.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if(cm(tR.max)&&wJ.length>=tR.max)return{close:()=>{}};const a=MJ(n,t);return wJ.push(a),a.handler};gJ.forEach((e=>{EJ[e]=(t={},n)=>{const a=_J(t);return EJ({...a,type:e},n)}})),EJ.closeAll=function(e){for(const t of wJ)e&&e!==t.props.type||t.handler.close()},EJ._context=null;const TJ=iy(EJ,"$message"),OJ=[],$J=e=>{if(0===OJ.length)return;const t=OJ[OJ.length-1]["_trap-focus-children"];if(t.length>0&&e.code===qT.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,a=e.target===t[0],o=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},IJ=Sa({name:"ElMessageBox",directives:{TrapFocus:{beforeMount(e){e["_trap-focus-children"]=yT(e),OJ.push(e),OJ.length<=1&&document.addEventListener("keydown",$J)},updated(e){gn((()=>{e["_trap-focus-children"]=yT(e)}))},unmounted(){OJ.shift(),0===OJ.length&&document.removeEventListener("keydown",$J)}}},components:{ElButton:ZI,ElFocusTrap:XT,ElInput:XE,ElOverlay:iB,ElIcon:py,...gE},inheritAttrs:!1,props:{buttonSize:{type:String,validator:uj},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=zg("message-box",Sr((()=>e.buttonSize))),{t:r}=n,{nextZIndex:i}=a,s=At(!1),u=bt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ot(Fk),cancelButtonLoadingIcon:Ot(Fk),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=Sr((()=>{const e=u.type;return{[o.bm("icon",e)]:e&&yE[e]}})),d=PE(),p=PE(),f=Sr((()=>{const e=u.type;return u.icon||e&&yE[e]||""})),v=Sr((()=>!!u.message)),g=At(),y=At(),b=At(),w=At(),x=At(),C=Sr((()=>u.confirmButtonClass));cl((()=>u.inputValue),(async t=>{await gn(),"prompt"===e.boxType&&t&&O()}),{immediate:!0}),cl((()=>s.value),(t=>{var n,a;t&&("prompt"!==e.boxType&&(u.autofocus?b.value=null!=(a=null==(n=x.value)?void 0:n.$el)?a:g.value:b.value=g.value),u.zIndex=i()),"prompt"===e.boxType&&(t?gn().then((()=>{var e;w.value&&w.value.$el&&(u.autofocus?b.value=null!=(e=$())?e:g.value:b.value=g.value)})):(u.editorErrorMessage="",u.validateError=!1))}));const k=Sr((()=>e.draggable)),S=Sr((()=>e.overflow));function _(){s.value&&(s.value=!1,gn((()=>{u.action&&t("action",u.action)})))}cB(g,y,k,S),Ba((async()=>{await gn(),e.closeOnHashChange&&window.addEventListener("hashchange",_)})),Da((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",_)}));const M=()=>{e.closeOnClickModal&&T(u.distinguishCancelAndClose?"close":"cancel")},E=oB(M),T=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||O())&&(u.action=t,u.beforeClose?null==(n=u.beforeClose)||n.call(u,t,u,_):_())},O=()=>{if("prompt"===e.boxType){const e=u.inputPattern;if(e&&!e.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;const t=u.inputValidator;if(h(t)){const e=t(u.inputValue);if(!1===e)return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;if(m(e))return u.editorErrorMessage=e,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},$=()=>{var e,t;const n=null==(e=w.value)?void 0:e.$refs;return null!=(t=null==n?void 0:n.input)?t:null==n?void 0:n.textarea},I=()=>{T("close")};return e.lockScroll&&gB(s),{...Pt(u),ns:o,overlayEvent:E,visible:s,hasMessage:v,typeClass:c,contentId:d,inputId:p,btnSize:l,iconComponent:f,confirmButtonClasses:C,rootRef:g,focusStartRef:b,headerRef:y,inputRef:w,confirmRef:x,doClose:_,handleClose:I,onCloseRequested:()=>{e.closeOnPressEscape&&I()},handleWrapperClick:M,handleInputEnter:e=>{if("textarea"!==u.inputType)return e.preventDefault(),T("confirm")},handleAction:T,t:r}}});var VJ=Fg(IJ,[["render",function(e,t,n,a,o,l){const r=qa("el-icon"),i=qa("el-input"),s=qa("el-button"),u=qa("el-focus-trap"),c=qa("el-overlay");return Al(),Nl(Nr,{name:"fade-in-linear",onAfterLeave:t=>e.$emit("vanish"),persisted:""},{default:Yn((()=>[Xn(Kl(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Yn((()=>[jl("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:W(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[Kl(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Yn((()=>[jl("div",{ref:"rootRef",class:W([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:D(e.customStyle),tabindex:"-1",onClick:Fi((()=>{}),["stop"])},[null!==e.title&&void 0!==e.title?(Al(),Bl("div",{key:0,ref:"headerRef",class:W([e.ns.e("header"),{"show-close":e.showClose}])},[jl("div",{class:W(e.ns.e("title"))},[e.iconComponent&&e.center?(Al(),Nl(r,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:Yn((()=>[(Al(),Nl(Ya(e.iconComponent)))])),_:1},8,["class"])):Xl("v-if",!0),jl("span",null,te(e.title),1)],2),e.showClose?(Al(),Bl("button",{key:0,type:"button",class:W(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Ki(Fi((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"])},[Kl(r,{class:W(e.ns.e("close"))},{default:Yn((()=>[(Al(),Nl(Ya(e.closeIcon||"close")))])),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):Xl("v-if",!0)],2)):Xl("v-if",!0),jl("div",{id:e.contentId,class:W(e.ns.e("content"))},[jl("div",{class:W(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Al(),Nl(r,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:Yn((()=>[(Al(),Nl(Ya(e.iconComponent)))])),_:1},8,["class"])):Xl("v-if",!0),e.hasMessage?(Al(),Bl("div",{key:1,class:W(e.ns.e("message"))},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Nl(Ya(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Al(),Nl(Ya(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Yn((()=>[Yl(te(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):Xl("v-if",!0)],2),Xn(jl("div",{class:W(e.ns.e("input"))},[Kl(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t=>e.inputValue=t,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:W({invalid:e.validateError}),onKeydown:Ki(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),jl("div",{class:W(e.ns.e("errormsg")),style:D({visibility:e.editorErrorMessage?"visible":"hidden"})},te(e.editorErrorMessage),7)],2),[[ei,e.showInput]])],10,["id"]),jl("div",{class:W(e.ns.e("btns"))},[e.showCancelButton?(Al(),Nl(s,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:W([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t=>e.handleAction("cancel"),onKeydown:Ki(Fi((t=>e.handleAction("cancel")),["prevent"]),["enter"])},{default:Yn((()=>[Yl(te(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):Xl("v-if",!0),Xn(Kl(s,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:W([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t=>e.handleAction("confirm"),onKeydown:Ki(Fi((t=>e.handleAction("confirm")),["prevent"]),["enter"])},{default:Yn((()=>[Yl(te(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[ei,e.showConfirmButton]])],2)],14,["onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["z-index","overlay-class","mask"]),[[ei,e.visible]])])),_:3},8,["onAfterLeave"])}],["__file","index.vue"]]);const AJ=new Map,LJ=(e,t,n=null)=>{const a=Kl(VJ,e,h(e.message)||Hl(e.message)?{default:h(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Yi(a,t),(e=>{let t=document.body;return e.appendTo&&(m(e.appendTo)&&(t=document.querySelector(e.appendTo)),pm(e.appendTo)&&(t=e.appendTo),pm(t)||(cg("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t})(e).appendChild(t.firstElementChild),a.component},RJ=(e,t)=>{const n=document.createElement("div");e.onVanish=()=>{Yi(null,n),AJ.delete(o)},e.onAction=t=>{const n=AJ.get(o);let l;l=e.showInput?{value:o.inputValue,action:t}:t,e.callback?e.callback(l,a.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(l)};const a=LJ(e,n,t),o=a.proxy;for(const l in e)c(e,l)&&!c(o.$props,l)&&("closeIcon"===l&&y(e[l])?o[l]=Ot(e[l]):o[l]=e[l]);return o.visible=!0,o};function zJ(e,t=null){if(!Sm)return Promise.reject();let n;return m(e)||Hl(e)?e={message:e}:n=e.callback,new Promise(((a,o)=>{const l=RJ(e,null!=t?t:zJ._context);AJ.set(l,{options:e,callback:n,resolve:a,reject:o})}))}const BJ={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach((e=>{zJ[e]=function(e){return(t,n,a,o)=>{let l="";return y(n)?(a=n,l=""):l=sm(n)?"":n,zJ(Object.assign({title:l,message:t,type:"",...BJ[e]},a,{boxType:e}),o)}}(e)})),zJ.close=()=>{AJ.forEach(((e,t)=>{t.doClose()})),AJ.clear()},zJ._context=null;const NJ=zJ;NJ.install=e=>{NJ._context=e._context,e.config.globalProperties.$msgbox=NJ,e.config.globalProperties.$messageBox=NJ,e.config.globalProperties.$alert=NJ.alert,e.config.globalProperties.$confirm=NJ.confirm,e.config.globalProperties.$prompt=NJ.prompt};const HJ=NJ,DJ=["success","info","warning","error"],PJ=Cg({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:hE},id:{type:String,default:""},message:{type:[String,Object,Function],default:""},offset:{type:Number,default:0},onClick:{type:Function,default:()=>{}},onClose:{type:Function,required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...DJ,""],default:""},zIndex:Number}),FJ=Sa({name:"ElNotification"});var jJ=Fg(Sa({...FJ,props:PJ,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=zg("notification"),{nextZIndex:l,currentZIndex:r}=o,{Close:i}=mE,s=At(!1);let u;const c=Sr((()=>{const e=n.type;return e&&yE[n.type]?a.m(e):""})),d=Sr((()=>n.type&&yE[n.type]||n.icon)),p=Sr((()=>n.position.endsWith("right")?"right":"left")),f=Sr((()=>n.position.startsWith("top")?"top":"bottom")),v=Sr((()=>{var e;return{[f.value]:`${n.offset}px`,zIndex:null!=(e=n.zIndex)?e:r.value}}));function h(){n.duration>0&&({stop:u}=Rm((()=>{s.value&&g()}),n.duration))}function m(){null==u||u()}function g(){s.value=!1}return Ba((()=>{h(),l(),s.value=!0})),Hm(document,"keydown",(function({code:e}){e===qT.delete||e===qT.backspace?m():e===qT.esc?s.value&&g():h()})),t({visible:s,close:g}),(e,t)=>(Al(),Nl(Nr,{name:Bt(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:Yn((()=>[Xn(jl("div",{id:e.id,class:W([Bt(a).b(),e.customClass,Bt(p)]),style:D(Bt(v)),role:"alert",onMouseenter:m,onMouseleave:h,onClick:e.onClick},[Bt(d)?(Al(),Nl(Bt(py),{key:0,class:W([Bt(a).e("icon"),Bt(c)])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(d))))])),_:1},8,["class"])):Xl("v-if",!0),jl("div",{class:W(Bt(a).e("group"))},[jl("h2",{class:W(Bt(a).e("title")),textContent:te(e.title)},null,10,["textContent"]),Xn(jl("div",{class:W(Bt(a).e("content")),style:D(e.title?void 0:{margin:0})},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Bl(El,{key:1},[Xl(" Caution here, message could've been compromised, never use user's input as message "),jl("p",{innerHTML:e.message},null,8,["innerHTML"])],2112)):(Al(),Bl("p",{key:0},te(e.message),1))]))],6),[[ei,e.message]]),e.showClose?(Al(),Nl(Bt(py),{key:0,class:W(Bt(a).e("closeBtn")),onClick:Fi(g,["stop"])},{default:Yn((()=>[Kl(Bt(i))])),_:1},8,["class","onClick"])):Xl("v-if",!0)],2)],46,["id","onClick"]),[[ei,s.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}),[["__file","notification.vue"]]);const KJ={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let WJ=1;const qJ=function(e={},t){if(!Sm)return{close:()=>{}};(m(e)||Hl(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;KJ[n].forEach((({vm:e})=>{var t;a+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16})),a+=16;const o="notification_"+WJ++,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{!function(e,t,n){const a=KJ[t],o=a.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===o)return;const{vm:l}=a[o];if(!l)return;null==n||n(l);const r=l.el.offsetHeight,i=t.split("-")[0];a.splice(o,1);const s=a.length;if(s<1)return;for(let u=o;ur.message:null);return u.appContext=sm(t)?qJ._context:t,u.props.onDestroy=()=>{Yi(null,s)},Yi(u,s),KJ[n].push({vm:u}),i.appendChild(s.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};DJ.forEach((e=>{qJ[e]=(t={},n)=>((m(t)||Hl(t))&&(t={message:t}),qJ({...t,type:e},n))})),qJ.closeAll=function(){for(const e of Object.values(KJ))e.forEach((({vm:e})=>{e.component.exposed.visible.value=!1}))},qJ._context=null;const UJ=iy(qJ,"$notify");var YJ=((e=[])=>({version:"2.9.6",install:(t,n)=>{t[Hd]||(t[Hd]=!0,e.forEach((e=>t.use(e))),n&&Bg(n,t,!0))}}))([...ZX,...[rJ,mJ,TJ,HJ,UJ,iP]]),GJ=Object.freeze(Object.defineProperty({__proto__:null,default:{env:"development",title:"开发",baseUrl:"",baseApi:"",APPSECRET:"xxx",$cdn:"https://imgs.solui.cn"}},Symbol.toStringTag,{value:"Module"})),XJ=Object.freeze(Object.defineProperty({__proto__:null,default:{env:"production",title:"生产",baseUrl:"",baseApi:"https://api.homilychart.com/scms/api",APPSECRET:"xxx",$cdn:"https://imgs.solui.cn"}},Symbol.toStringTag,{value:"Module"}));const JJ={},ZJ={"./env.development.js":GJ,"./env.production.js":XJ};console.log("已加载所有环境模块:",ZJ),Object.entries(ZJ).forEach((([e,t])=>{const n=e.replace(/\.\/env\.(.*)\.js$/,"$1");JJ[n]=t}));const QJ=JJ.development?JJ.development.default:null;QJ||console.error("未找到对应 development 环境的配置文件,请检查。"),console.log("根据环境引入不同配置",QJ);const eZ={badRequest:"请求错误(400)",unauthorized:"未授权,请登录(401)",forbidden:"拒绝访问(403)",notFound:"请求地址出错: [具体 URL 将在这里被替换]",methodNotAllowed:"请求方法未允许(405)",requestTimeout:"请求超时(408)",internalServerError:"服务器内部错误(500)",notImplemented:"服务未实现(501)",badGateway:"网络错误(502)",serviceUnavailable:"服务不可用(503)",gatewayTimeout:"网络超时(504)",httpVersionNotSupported:"HTTP 版本不受支持(505)",defaultConnectionError:"连接错误: [原始错误消息]",networkError:"网络异常,请检查后重试!",serverFailure:"连接到服务器失败,请联系管理员"},tZ=Nd.create({baseURL:"",withCredentials:!1});tZ.interceptors.request.use((e=>e),(e=>Promise.reject(e))),tZ.interceptors.response.use((async e=>{const t=e.data;return 200!==t.code?(t.msg,e.data):e.data}),(e=>{const t=(e=>{if(e&&e.response)switch(e.response.status){case 400:e.message=eZ.badRequest;break;case 401:e.message=eZ.unauthorized;break;case 403:e.message=eZ.forbidden;break;case 404:e.message=eZ.notFound.replace("[具体 URL 将在这里被替换]",e.response.config.url);break;case 405:e.message=eZ.methodNotAllowed;break;case 408:e.message=eZ.requestTimeout;break;case 500:e.message=eZ.internalServerError;break;case 501:e.message=eZ.notImplemented;break;case 502:e.message=eZ.badGateway;break;case 503:e.message=eZ.serviceUnavailable;break;case 504:e.message=eZ.gatewayTimeout;break;case 505:e.message=eZ.httpVersionNotSupported;break;default:e.message=eZ.defaultConnectionError.replace("[原始错误消息]",e.message)}else"Network Error"===e.message?e.message=eZ.networkError:e.message=eZ.serverFailure;return e.message})(e);return TJ.error(t),Promise.reject(e)}));const nZ="https://hwjb.homilychart.com",aZ="https://hwjb.homilychart.com",oZ="https://hwjb.homilychart.com/hljw",lZ=function(e){return tZ({url:`${nZ}/api/brain/privilege`,method:"post",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},rZ=function(e){const t=new URLSearchParams(Object.entries(e).map((([e,t])=>[e,String(t)])));return tZ({url:`${nZ}/api/brain/data`,method:"post",data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},iZ=function(){return tZ({url:`${nZ}/api/ai_god/news`,method:"POST"})},sZ=function(){return tZ({url:`${nZ}/api/ai_god/shows`,method:"POST",data:new URLSearchParams({type:"3",num:"1",state:"1"})})},uZ=function(e){return tZ({url:`${nZ}/api/aiEmotion/client/getRemainNum`,method:"POST",data:e})},cZ=function(e){return tZ({url:`${nZ}/api/ai_god/shows/click`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},dZ=function(e){return tZ({url:`${nZ}/api/ai_god/news/click`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},pZ=function(e){return tZ({url:`${nZ}/api/ai_god/feedback/add`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},fZ=function(e){return tZ({url:`${nZ}/api/ai_god/feedback/select`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},vZ=function(e){return tZ({url:`${nZ}/api/ai_god/market/list`,method:"POST",data:new URLSearchParams(e),headers:{token:"pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q","Content-Type":"application/x-www-form-urlencoded"}})},hZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbFirst`,method:"POST",data:e})},mZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondOne`,method:"POST",data:e})},gZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondTwo`,method:"POST",data:e})},yZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondThree`,method:"POST",data:e})},bZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondFour`,method:"POST",data:e})},wZ=function(e){return tZ({url:`${nZ}/api/workflow/listHistory`,method:"POST",data:e})},xZ=function(e){return tZ({url:`${nZ}/api/workflow/topRecord`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},CZ=function(e){return tZ({url:`${nZ}/api/workflow/deleteRecord`,method:"POST",data:e})},kZ=function(e){return tZ({url:`${nZ}/api/workflow/clickRecord`,method:"POST",data:e})},SZ=function(e){return tZ({url:`${nZ}/api/showExchange`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},_Z=function(e){return tZ({url:`${nZ}/api/godExchange`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},MZ=function(e){return tZ({url:`${nZ}/api/exchange`,method:"POST",data:e})},EZ=function(e){return tZ({url:`${oZ}/api/haiwai/user/getGoldCoin`,method:"POST",data:e})},TZ=function(e){return tZ({url:`${oZ}/api/v2/member/info`,method:"POST",data:e})},OZ=function(e,t){return tZ({url:`${nZ}/api/workflow/checkStatus`,method:"POST",data:t,headers:e})};function $Z(e){const t=rc(),n=At(Date.now()),a=At(!0),o=At("true"===sessionStorage.getItem("hasRecordedEntry"));let l=!1;const r=()=>{if(o.value)return;n.value=Date.now();const e=new Date(n.value),t=`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")} ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}`;sessionStorage.setItem("projectEntryTime",t),sessionStorage.setItem("hasRecordedEntry","true"),a.value=!0,o.value=!0;const l=localStorage.getItem("localToken");if(l){const e=tZ({url:`${nZ}/api/ai_god/useAiGod`,method:"post",data:new URLSearchParams({token:l}),headers:{"Content-Type":"application/x-www-form-urlencoded"}});console.log(e)}else console.log("没有token");console.log("记录首次进入时间:",t)},i=async()=>{if(!a.value)return;const e=sessionStorage.getItem("projectEntryTime");if(!e)return void console.warn("未找到存储的进入时间,取消发送跟踪数据");let t;try{if(t=new Date(e.replace(" ","T")).getTime(),isNaN(t))throw new Error("无效日期")}catch(s){return void console.error("解析存储的进入时间时出错:",s)}const n=Date.now(),l=Math.floor((n-t)/1e3),r=localStorage.getItem("localToken");console.log("进入项目的时间",e),console.log("停留时间",l);const i={stayTime:l,token:r};if(r)try{const e=await function(e){return tZ({url:`${nZ}/api/ai_god/updateStayTime`,method:"post",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})}(i);console.log("跟踪数据已发送:",e),sessionStorage.removeItem("projectEntryTime"),sessionStorage.removeItem("hasRecordedEntry"),a.value=!1,o.value=!1}catch(s){console.error("发送跟踪数据失败:",s)}},s=()=>{"hidden"===document.visibilityState&&(console.log("页面不可见,用户可能离开或切换标签页"),i())},u=e=>{l?console.log("页面刷新,不触发数据发送"):(console.log("页面即将关闭或跳转"),i())},c=()=>{l=!0};return cl((()=>t.currentRoute.value.path),(t=>{const n=e.some((e=>t.startsWith(e)));let a=e[0];console.log(a);const l=window.location.pathname.includes("duobaoqibing");n||l?a&&!o.value&&(console.log("首次进入项目路由:",t),r()):(console.log("离开项目路由:",t),i())})),Ba((()=>{document.addEventListener("visibilitychange",s),window.addEventListener("beforeunload",u),window.addEventListener("unload",c)})),Da((()=>{document.removeEventListener("visibilitychange",s),window.removeEventListener("beforeunload",u),window.removeEventListener("unload",c)})),{entryTime:n,isInProject:a,sendTrackingData:i}}var IZ=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};var VZ=IZ({__name:"App",setup:e=>($Z(["/Selectmodel","/homePage","/AIchat","/AIfind","/Announcement","/DBQBmodel","/Emotionsmodel"]),(e,t)=>{const n=qa("router-view");return Al(),Nl(n)})},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/App.vue"]]);const AZ={},LZ=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/aixiaocaishen/${e}`)in AZ)return;AZ[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":"modulepreload",t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((t,n)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())):e()},RZ=[{path:"/",redirect:"Selectmodel"},{path:"/Selectmodel",name:"Selectmodel",component:()=>LZ((()=>import("./Selectmodel-df62bb36.js")),["static/js/Selectmodel-df62bb36.js","static/css/Selectmodel-e01f4832.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/dataList-1bd1da28.js","static/js/userPessionCode-376974ca.js","static/js/index-5d1237a4.js"])},{path:"/homePage",name:"homePage",component:()=>LZ((()=>import("./homePage-e1c3177b.js")),["static/js/homePage-e1c3177b.js","static/css/homePage-3e278ddf.css","static/js/setHeight-96dcefe6.js","static/js/userPessionCode-376974ca.js","static/js/chat-5d3bc291.js","static/js/dataList-1bd1da28.js","static/js/index-5d1237a4.js","static/js/marked.esm-cf4f21f5.js","static/js/AiEmotion-173e5d31.js","static/css/AiEmotion-5436ed6b.css","static/js/moment-6961f857.js","static/js/emoEnergyConverter-30c0a2be.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-7871708f.js","static/css/marketTemperature-f0fcbc4c.css","static/js/AIfind-ac1d6c69.js","static/css/AIfind-9eb4eb4f.css","static/js/Feedback-08e4e28a.js","static/css/Feedback-562dc0cd.css","static/js/back-9e899973.js","static/js/Announcement-ff8a720a.js","static/css/Announcement-24809191.css"]),children:[{name:"AiEmotion",path:"/AiEmotion",component:()=>LZ((()=>import("./AiEmotion-173e5d31.js").then((function(e){return e.c}))),["static/js/AiEmotion-173e5d31.js","static/css/AiEmotion-5436ed6b.css","static/js/moment-6961f857.js","static/js/emoEnergyConverter-30c0a2be.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-7871708f.js","static/css/marketTemperature-f0fcbc4c.css","static/js/index-5d1237a4.js","static/js/chat-5d3bc291.js","static/js/marked.esm-cf4f21f5.js","static/js/userPessionCode-376974ca.js"])}]},{path:"/AIfind",name:"AIfind",component:()=>LZ((()=>import("./AIfind-ac1d6c69.js").then((function(e){return e.a}))),["static/js/AIfind-ac1d6c69.js","static/css/AIfind-9eb4eb4f.css","static/js/marked.esm-cf4f21f5.js"]),meta:{title:"发现"}},{path:"/Announcement",name:"Announcement",component:()=>LZ((()=>import("./Announcement-ff8a720a.js")),["static/js/Announcement-ff8a720a.js","static/css/Announcement-24809191.css","static/js/back-9e899973.js","static/js/dataList-1bd1da28.js","static/js/userPessionCode-376974ca.js","static/js/index-5d1237a4.js","static/js/chat-5d3bc291.js"])},{path:"/Feedback",name:"Feedback",component:()=>LZ((()=>import("./Feedback-08e4e28a.js")),["static/js/Feedback-08e4e28a.js","static/css/Feedback-562dc0cd.css","static/js/dataList-1bd1da28.js","static/js/userPessionCode-376974ca.js","static/js/index-5d1237a4.js","static/js/back-9e899973.js","static/js/moment-6961f857.js"])},{path:"/DBQBmodel",name:"DBQBmodel",component:()=>LZ((()=>import("./DBQBmodel-bbf459fa.js")),["static/js/DBQBmodel-bbf459fa.js","static/css/DBQBmodel-93377554.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/setHeight-96dcefe6.js","static/js/BackToHomeButton-8b6e1857.js"])},{path:"/Emotionsmodel",name:"Emotionsmodel",component:()=>LZ((()=>import("./Emotionsmodel-dece0a53.js")),["static/js/Emotionsmodel-dece0a53.js","static/css/Emotionsmodel-44988940.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/setHeight-96dcefe6.js","static/js/BackToHomeButton-8b6e1857.js"])},{path:"/emotionsEcharts",name:"emotionsEcharts",component:()=>LZ((()=>import("./emotionsEcharts-35f60abf.js")),["static/js/emotionsEcharts-35f60abf.js","static/js/emoEnergyConverter-30c0a2be.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-7871708f.js","static/css/marketTemperature-f0fcbc4c.css","static/js/moment-6961f857.js","static/js/index-5d1237a4.js"])},{path:"/marketTemperature",name:"marketTemperature",component:()=>LZ((()=>import("./marketTemperature-7871708f.js").then((function(e){return e.a}))),["static/js/marketTemperature-7871708f.js","static/css/marketTemperature-f0fcbc4c.css","static/js/moment-6961f857.js"])},{path:"/goldenWheel",name:"goldenWheel",component:()=>LZ((()=>import("./goldenWheel-3fdeb9f6.js")),["static/js/goldenWheel-3fdeb9f6.js","static/css/goldenWheel-8503bff2.css"])}],zZ=function(e){const t=vu(e.routes,e),n=e.parseQuery||_u,a=e.stringifyQuery||Mu,o=e.history;if(!o)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const l=Au(),r=Au(),i=Au(),s=Lt(zs);let u=zs;as&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=rs.bind(null,(e=>""+e)),d=rs.bind(null,Ms),p=rs.bind(null,Es);function f(e,l){if(l=ls({},l||s.value),"string"==typeof e){const a=Os(n,e,l.path),r=t.resolve({path:a.path},l),i=o.createHref(a.fullPath);return i.startsWith("//")?us(`Location "${e}" resolved to "${i}". A resolved location cannot start with multiple slashes.`):r.matched.length||us(`No match found for location with path "${e}"`),ls(a,r,{params:p(r.params),hash:Es(a.hash),redirectedFrom:void 0,href:i})}if(!Js(e))return us("router.resolve() was passed an invalid location. This will fail in production.\n- Location:",e),f({});let r;if(null!=e.path)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&us(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),r=ls({},e,{path:Os(n,e.path,l.path).path});else{const t=ls({},e.params);for(const e in t)null==t[e]&&delete t[e];r=ls({},e,{params:d(t)}),l.params=d(l.params)}const i=t.resolve(r,l),u=e.hash||"";u&&!u.startsWith("#")&&us(`A \`hash\` should always start with the character "#". Replace "${u}" with "#${u}".`),i.params=c(p(i.params));const v=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(a,ls({},e,{hash:(h=u,Ss(h).replace(ws,"{").replace(Cs,"}").replace(ys,"^")),path:i.path}));var h;const m=o.createHref(v);return m.startsWith("//")?us(`Location "${e}" resolved to "${m}". A resolved location cannot start with multiple slashes.`):i.matched.length||us(`No match found for location with path "${null!=e.path?e.path:e}"`),ls({fullPath:v,hash:u,query:a===Mu?Eu(e.query):e.query||{}},i,{redirectedFrom:void 0,href:m})}function v(e){return"string"==typeof e?Os(n,e,s.value.path):ls({},e)}function h(e,t){if(u!==e)return au(8,{from:t,to:e})}function m(e){return y(e)}function g(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;if("string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=v(a):{path:a},a.params={}),null==a.path&&!("name"in a))throw us(`Invalid redirect found:\n${JSON.stringify(a,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return ls({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function y(e,t){const n=u=f(e),o=s.value,l=e.state,r=e.force,i=!0===e.replace,c=g(n);if(c)return y(ls(v(c),{state:"object"==typeof c?ls({},l,c.state):l,force:r,replace:i}),t||n);const d=n;let p;return d.redirectedFrom=t,!r&&Is(a,o,n)&&(p=au(16,{to:d,from:o}),I(o,o,!0,!1)),(p?Promise.resolve(p):x(d,o)).catch((e=>ou(e)?ou(e,2)?e:$(e):O(e,d,o))).then((e=>{if(e){if(ou(e,2))return Is(a,f(e.to),d)&&t&&(t._count=t._count?t._count+1:1)>30?(us(`Detected a possibly infinite redirection in a navigation guard when going from "${o.fullPath}" to "${d.fullPath}". Aborting to avoid a Stack Overflow.\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):y(ls({replace:i},v(e.to),{state:"object"==typeof e.to?ls({},l,e.to.state):l,force:r}),t||d)}else e=k(d,o,!0,i,l);return C(d,o,e),e}))}function b(e,t){const n=h(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){const t=L.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let n;const[a,o,i]=function(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rVs(e,l)))?a.push(l):n.push(l));const i=e.matched[r];i&&(t.matched.find((e=>Vs(e,i)))||o.push(i))}return[n,a,o]}(e,t);n=Ru(a.reverse(),"beforeRouteLeave",e,t);for(const l of a)l.leaveGuards.forEach((a=>{n.push(Lu(a,e,t))}));const s=b.bind(null,e,t);return n.push(s),z(n).then((()=>{n=[];for(const a of l.list())n.push(Lu(a,e,t));return n.push(s),z(n)})).then((()=>{n=Ru(o,"beforeRouteUpdate",e,t);for(const a of o)a.updateGuards.forEach((a=>{n.push(Lu(a,e,t))}));return n.push(s),z(n)})).then((()=>{n=[];for(const a of i)if(a.beforeEnter)if(ss(a.beforeEnter))for(const o of a.beforeEnter)n.push(Lu(o,e,t));else n.push(Lu(a.beforeEnter,e,t));return n.push(s),z(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ru(i,"beforeRouteEnter",e,t,w),n.push(s),z(n)))).then((()=>{n=[];for(const a of r.list())n.push(Lu(a,e,t));return n.push(s),z(n)})).catch((e=>ou(e,8)?e:Promise.reject(e)))}function C(e,t,n){i.list().forEach((a=>w((()=>a(e,t,n)))))}function k(e,t,n,a,l){const r=h(e,t);if(r)return r;const i=t===zs,u=as?history.state:{};n&&(a||i?o.replace(e.fullPath,ls({scroll:i&&u&&u.scroll},l)):o.push(e.fullPath,l)),s.value=e,I(e,t,n,i),$()}let S;function _(){S||(S=o.listen(((e,t,n)=>{if(!R.listening)return;const a=f(e),l=g(a);if(l)return void y(ls(l,{replace:!0}),a).catch(is);u=a;const r=s.value;var i,c;as&&(i=qs(r.fullPath,n.delta),c=Ks(),Us.set(i,c)),x(a,r).catch((e=>ou(e,12)?e:ou(e,2)?(y(e.to,a).then((e=>{ou(e,20)&&!n.delta&&n.type===Bs.pop&&o.go(-1,!1)})).catch(is),Promise.reject()):(n.delta&&o.go(-n.delta,!1),O(e,a,r)))).then((e=>{(e=e||k(a,r,!1))&&(n.delta&&!ou(e,8)?o.go(-n.delta,!1):n.type===Bs.pop&&ou(e,20)&&o.go(-1,!1)),C(a,r,e)})).catch(is)})))}let M,E=Au(),T=Au();function O(e,t,n){$(e);const a=T.list();return a.length?a.forEach((a=>a(e,t,n))):(us("uncaught error during route navigation:"),console.error(e)),Promise.reject(e)}function $(e){return M||(M=!e,_(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function I(t,n,a,o){const{scrollBehavior:l}=e;if(!as||!l)return Promise.resolve();const r=!a&&function(e){const t=Us.get(e);return Us.delete(e),t}(qs(t.fullPath,0))||(o||!a)&&history.state&&history.state.scroll||null;return gn().then((()=>l(t,n,r))).then((e=>e&&Ws(e))).catch((e=>O(e,t,n)))}const V=e=>o.go(e);let A;const L=new Set,R={currentRoute:s,listening:!0,addRoute:function(e,n){let a,o;return Zs(e)?(a=t.getRecordMatcher(e),a||us(`Parent route "${String(e)}" not found when adding child route`,n),o=n):o=e,t.addRoute(o,a)},removeRoute:function(e){const n=t.getRecordMatcher(e);n?t.removeRoute(n):us(`Cannot remove non-existent route "${String(e)}"`)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:m,replace:function(e){return m(ls(v(e),{replace:!0}))},go:V,back:()=>V(-1),forward:()=>V(1),beforeEach:l.add,beforeResolve:r.add,afterEach:i.add,onError:T.add,isReady:function(){return M&&s.value!==zs?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){const n=this;e.component("RouterLink",Bu),e.component("RouterView",Fu),e.config.globalProperties.$router=n,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(s)}),as&&!A&&s.value===zs&&(A=!0,m(o.location).catch((e=>{us("Unexpected error when starting the router:",e)})));const a={};for(const t in zs)Object.defineProperty(a,t,{get:()=>s.value[t],enumerable:!0});e.provide($u,n),e.provide(Iu,wt(a)),e.provide(Vu,s);const l=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(u=zs,S&&S(),S=null,s.value=zs,A=!1,M=!1),l()},as&&qu(e,n,t)}};function z(e){return e.reduce(((e,t)=>e.then((()=>w(t)))),Promise.resolve())}return R}({history:function(e){const t=Xs(e=Ps(e)),n=function(e,t,n,a){let o=[],l=[],r=null;const i=({state:l})=>{const i=Ys(e,location),s=n.value,u=t.value;let c=0;if(l){if(n.value=i,t.value=l,r&&r===s)return void(r=null);c=u?l.position-u.position:0}else a(i);o.forEach((e=>{e(n.value,s,{delta:c,type:Bs.pop,direction:c?c>0?Hs.forward:Hs.back:Hs.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(ls({},e.state,{scroll:Ks()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){r=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return l.push(t),t},destroy:function(){for(const e of l)e();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace),a=ls({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:js.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}("/aixiaocaishen"),routes:RZ});function BZ(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function NZ(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]} +*/let LK=1;const RK=Sa({name:"ElTable",directives:{Mousewheel:{beforeMount(e,t){!function(e,t){if(e&&e.addEventListener){const n=function(e){const n=AK(e);t&&Reflect.apply(t,this,[e,n])};e.addEventListener("wheel",n,{passive:!0})}}(e,t.value)}}},components:{TableHeader:Xj,TableBody:nK,TableFooter:oK,ElScrollbar:rT,hColgroup:sK},props:iK,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t:t}=wg(),n=Kd("table"),a=lr();To(Uj,a);const o=Hj(a,e);a.store=o;const l=new Fj({store:a.store,table:a,fit:e.fit,showHeader:e.showHeader});a.layout=l;const r=Sr((()=>0===(o.states.data.value||[]).length)),{setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,sort:h,updateKeyChildren:m}=function(e){return{setCurrentRow:t=>{e.commit("setCurrentRow",t)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(t,n,a=!0)=>{e.toggleRowSelection(t,n,!1,a),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:t=>{e.clearFilter(t)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(t,n)=>{e.toggleRowExpansionAdapter(t,n)},clearSort:()=>{e.clearSort()},sort:(t,n)=>{e.commit("sort",{prop:t,order:n})},updateKeyChildren:(t,n)=>{e.updateKeyChildren(t,n)}}}(o),{isHidden:g,renderExpanded:y,setDragVisible:b,isGroup:w,handleMouseLeave:x,handleHeaderFooterMousewheel:C,tableSize:k,emptyBlockStyle:S,handleFixedMousewheel:_,resizeProxyVisible:M,bodyWidth:E,resizeState:T,doLayout:O,tableBodyStyles:$,tableLayout:I,scrollbarViewStyle:V,scrollbarStyle:A}=lK(e,l,o,a),{scrollBarRef:L,scrollTo:R,setScrollLeft:z,setScrollTop:B}=(()=>{const e=At(),t=(t,n)=>{const a=e.value;a&&cm(n)&&["Top","Left"].includes(t)&&a[`setScroll${t}`](n)};return{scrollBarRef:e,scrollTo:(t,n)=>{const a=e.value;a&&a.scrollTo(t,n)},setScrollTop:e=>t("Top",e),setScrollLeft:e=>t("Left",e)}})(),N=Ah(O,50),H=`${n.namespace.value}-table_${LK++}`;a.tableId=H,a.state={isGroup:w,resizeState:T,doLayout:O,debouncedUpdateLayout:N};const D=Sr((()=>{var n;return null!=(n=e.sumText)?n:t("el.table.sumText")})),P=Sr((()=>{var n;return null!=(n=e.emptyText)?n:t("el.table.emptyText")})),F=Sr((()=>Gj(o.states.originColumns.value)[0]));return rK(a),Da((()=>{N.cancel()})),{ns:n,layout:l,store:o,columns:F,handleHeaderFooterMousewheel:C,handleMouseLeave:x,tableId:H,tableSize:k,isHidden:g,isEmpty:r,renderExpanded:y,resizeProxyVisible:M,resizeState:T,isGroup:w,bodyWidth:E,tableBodyStyles:$,emptyBlockStyle:S,debouncedUpdateLayout:N,handleFixedMousewheel:_,setCurrentRow:i,getSelectionRows:s,toggleRowSelection:u,clearSelection:c,clearFilter:d,toggleAllSelection:p,toggleRowExpansion:f,clearSort:v,doLayout:O,sort:h,updateKeyChildren:m,t:t,setDragVisible:b,context:a,computedSumText:D,computedEmptyText:P,tableLayout:I,scrollbarViewStyle:V,scrollbarStyle:A,scrollBarRef:L,scrollTo:R,setScrollLeft:z,setScrollTop:B,allowDragLastColumn:e.allowDragLastColumn}}});var zK=Fg(RK,[["render",function(e,t,n,a,o,l){const r=qa("hColgroup"),i=qa("table-header"),s=qa("table-body"),u=qa("table-footer"),c=qa("el-scrollbar"),d=Ga("mousewheel");return Al(),Bl("div",{ref:"tableWrapper",class:W([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:0!==(e.store.states.data.value||[]).length&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:D(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[jl("div",{class:W(e.ns.e("inner-wrapper"))},[jl("div",{ref:"hiddenColumns",class:"hidden-columns"},[eo(e.$slots,"default")],512),e.showHeader&&"fixed"===e.tableLayout?Xn((Al(),Bl("div",{key:0,ref:"headerWrapper",class:W(e.ns.e("header-wrapper"))},[jl("table",{ref:"tableHeader",class:W(e.ns.e("header")),style:D(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Kl(i,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[d,e.handleHeaderFooterMousewheel]]):Xl("v-if",!0),jl("div",{ref:"bodyWrapper",class:W(e.ns.e("body-wrapper"))},[Kl(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,onScroll:t=>e.$emit("scroll",t)},{default:Yn((()=>[jl("table",{ref:"tableBody",class:W(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:D({width:e.bodyWidth,tableLayout:e.tableLayout})},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&"auto"===e.tableLayout?(Al(),Nl(i,{key:0,ref:"tableHeaderRef",class:W(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):Xl("v-if",!0),Kl(s,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&"auto"===e.tableLayout?(Al(),Nl(u,{key:1,class:W(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):Xl("v-if",!0)],6),e.isEmpty?(Al(),Bl("div",{key:0,ref:"emptyBlock",style:D(e.emptyBlockStyle),class:W(e.ns.e("empty-block"))},[jl("span",{class:W(e.ns.e("empty-text"))},[eo(e.$slots,"empty",{},(()=>[Yl(te(e.computedEmptyText),1)]))],2)],6)):Xl("v-if",!0),e.$slots.append?(Al(),Bl("div",{key:1,ref:"appendWrapper",class:W(e.ns.e("append-wrapper"))},[eo(e.$slots,"append")],2)):Xl("v-if",!0)])),_:3},8,["view-style","wrap-style","always","tabindex","onScroll"])],2),e.showSummary&&"fixed"===e.tableLayout?Xn((Al(),Bl("div",{key:1,ref:"footerWrapper",class:W(e.ns.e("footer-wrapper"))},[jl("table",{class:W(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:D(e.tableBodyStyles)},[Kl(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Kl(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[ei,!e.isEmpty],[d,e.handleHeaderFooterMousewheel]]):Xl("v-if",!0),e.border||e.isGroup?(Al(),Bl("div",{key:2,class:W(e.ns.e("border-left-patch"))},null,2)):Xl("v-if",!0)],2),Xn(jl("div",{ref:"resizeProxy",class:W(e.ns.e("column-resize-proxy"))},null,2),[[ei,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}],["__file","table.vue"]]);const BK={selection:"table-column--selection",expand:"table__expand-column"},NK={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},HK={selection:{renderHeader:({store:e,column:t})=>_r(lA,{disabled:e.states.data.value&&0===e.states.data.value.length,size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label}),renderCell:({row:e,column:t,store:n,$index:a})=>_r(lA,{disabled:!!t.selectable&&!t.selectable.call(null,e,a),size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:e=>e.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label}),sortable:!1,resizable:!1},index:{renderHeader:({column:e})=>e.label||"#",renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return cm(a)?n=t+a:h(a)&&(n=a(t)),_r("div",{},[n])},sortable:!1},expand:{renderHeader:({column:e})=>e.label||"",renderCell({row:e,store:t,expanded:n}){const{ns:a}=t,o=[a.e("expand-icon")];n&&o.push(a.em("expand-icon","expanded"));return _r("div",{class:o,onClick:function(n){n.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[_r(py,null,{default:()=>[_r(Vy)]})]})},sortable:!1,resizable:!1}};function DK({row:e,column:t,$index:n}){var a;const o=t.property,l=o&&Ag(e,o).value;return t&&t.formatter?t.formatter(e,t,l,n):(null==(a=null==l?void 0:l.toString)?void 0:a.call(l))||""}function PK(e,t){return e.reduce(((e,t)=>(e[t]=t,e)),t)}function FK(e,t,n){const a=lr(),o=At(""),l=At(!1),r=At(),i=At(),s=Kd("table");ul((()=>{r.value=e.align?`is-${e.align}`:null,r.value})),ul((()=>{i.value=e.headerAlign?`is-${e.headerAlign}`:r.value,i.value}));const u=Sr((()=>{let e=a.vnode.vParent||a.parent;for(;e&&!e.tableId&&!e.columnId;)e=e.vnode.vParent||e.parent;return e})),c=Sr((()=>{const{store:e}=a.parent;if(!e)return!1;const{treeData:t}=e.states,n=t.value;return n&&Object.keys(n).length>0})),p=At(xj(e.width)),f=At(Cj(e.minWidth));return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:i,columnOrTableParent:u,setColumnWidth:e=>(p.value&&(e.width=p.value),f.value&&(e.minWidth=f.value),!p.value&&f.value&&(e.width=void 0),e.minWidth||(e.minWidth=80),e.realWidth=Number(sm(e.width)?e.minWidth:e.width),e),setColumnForcedProps:e=>{const t=e.type,n=HK[t]||{};Object.keys(n).forEach((t=>{const a=n[t];"className"===t||sm(a)||(e[t]=a)}));const a=(e=>BK[e]||"")(t);if(a){const t=`${Bt(s.namespace)}-${a}`;e.className=e.className?`${e.className} ${t}`:t}return e},setColumnRenders:o=>{e.renderHeader?cg("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==o.type&&(o.renderHeader=e=>(a.columnConfig.value.label,eo(t,"header",e,(()=>[o.label])))),t["filter-icon"]&&(o.renderFilterIcon=e=>eo(t,"filter-icon",e));let l=o.renderCell;return"expand"===o.type?(o.renderCell=e=>_r("div",{class:"cell"},[l(e)]),n.value.renderExpanded=e=>t.default?t.default(e):t.default):(l=l||DK,o.renderCell=e=>{let r=null;if(t.default){const n=t.default(e);r=n.some((e=>e.type!==Ol))?n:l(e)}else r=l(e);const{columns:i}=n.value.store.states,u=i.value.findIndex((e=>"default"===e.type)),p=function({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[_r("span",{class:o.e("placeholder")})]:null;const l=[],r=function(a){a.stopPropagation(),t.loading||n.loadOrToggle(e)};if(t.indent&&l.push(_r("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),um(t.expanded)&&!t.noLazyChildren){const e=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let n=Vy;t.loading&&(n=Fk),l.push(_r("div",{class:e,onClick:r},{default:()=>[_r(py,{class:{[o.is("loading")]:t.loading}},{default:()=>[_r(n)]})]}))}else l.push(_r("span",{class:o.e("placeholder")}));return l}(e,c.value&&e.cellIndex===u),f={class:"cell",style:{}};return o.showOverflowTooltip&&(f.class=`${f.class} ${Bt(s.namespace)}-tooltip`,f.style={width:(e.column.realWidth||Number(e.column.width))-1+"px"}),(e=>{function t(e){var t;"ElTableColumn"===(null==(t=null==e?void 0:e.type)?void 0:t.name)&&(e.vParent=a)}d(e)?e.forEach((e=>t(e))):t(e)})(r),_r("div",f,[p,r])}),o},getPropsData:(...t)=>t.reduce(((t,n)=>(d(n)&&n.forEach((n=>{t[n]=e[n]})),t)),{}),getColumnElIndex:(e,t)=>Array.prototype.indexOf.call(e,t),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var jK={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every((e=>["ascending","descending",null].includes(e)))}};let KK=1;var WK=Sa({name:"ElTableColumn",components:{ElCheckbox:lA},props:jK,setup(e,{slots:t}){const n=lr(),a=At({}),o=Sr((()=>{let e=n.parent;for(;e&&!e.tableId;)e=e.parent;return e})),{registerNormalWatchers:l,registerComplexWatchers:r}=function(e,t){const n=lr();return{registerComplexWatchers:()=>{const a={realWidth:"width",realMinWidth:"minWidth"},o=PK(["fixed"],a);Object.keys(o).forEach((o=>{const l=a[o];c(t,l)&&cl((()=>t[l]),(t=>{let a=t;"width"===l&&"realWidth"===o&&(a=xj(t)),"minWidth"===l&&"realMinWidth"===o&&(a=Cj(t)),n.columnConfig.value[l]=a,n.columnConfig.value[o]=a;const r="fixed"===l;e.value.store.scheduleLayout(r)}))}))},registerNormalWatchers:()=>{const e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},a=PK(["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter"],e);Object.keys(a).forEach((a=>{const o=e[a];c(t,o)&&cl((()=>t[o]),(e=>{n.columnConfig.value[a]=e}))}))}}}(o,e),{columnId:i,isSubColumn:s,realHeaderAlign:u,columnOrTableParent:d,setColumnWidth:p,setColumnForcedProps:f,setColumnRenders:v,getPropsData:h,getColumnElIndex:m,realAlign:g,updateColumnOrder:y}=FK(e,t,o),b=d.value;i.value=`${b.tableId||b.columnId}_column_${KK++}`,za((()=>{s.value=o.value!==b;const t=e.type||"default",d=""===e.sortable||e.sortable,m=sm(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,y=sm(e.tooltipFormatter)?b.props.tooltipFormatter:e.tooltipFormatter,w={...NK[t],id:i.value,type:t,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:m,tooltipFormatter:y,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:d,index:e.index,rawColumnKey:n.vnode.key};let x=h(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);x=function(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(c(t,a)){const e=t[a];sm(e)||(n[a]=e)}return n}(w,x);x=function(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}(v,p,f)(x),a.value=x,l(),r()})),Ba((()=>{var e;const t=d.value,l=s.value?t.vnode.el.children:null==(e=t.refs.hiddenColumns)?void 0:e.children,r=()=>m(l||[],n.vnode.el);a.value.getColumnIndex=r;r()>-1&&o.value.store.commit("insertColumn",a.value,s.value?t.columnConfig.value:null,y)})),Da((()=>{const e=a.value.getColumnIndex;(e?e():-1)>-1&&o.value.store.commit("removeColumn",a.value,s.value?b.columnConfig.value:null,y)})),n.columnId=i.value,n.columnConfig=a},render(){var e,t,n;try{const a=null==(t=(e=this.$slots).default)?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(d(a))for(const e of a)"ElTableColumn"===(null==(n=e.type)?void 0:n.name)||2&e.shapeFlag?o.push(e):e.type===El&&d(e.children)&&e.children.forEach((e=>{1024===(null==e?void 0:e.patchFlag)||m(null==e?void 0:e.children)||o.push(e)}));return _r("div",o)}catch(yR){return _r("div",[])}}});const qK=ry(zK,{TableColumn:WK}),UK=sy(WK);var YK=(e=>(e.ASC="asc",e.DESC="desc",e))(YK||{}),GK=(e=>(e.CENTER="center",e.RIGHT="right",e))(GK||{}),XK=(e=>(e.LEFT="left",e.RIGHT="right",e))(XK||{});const JK={asc:"desc",desc:"asc"},ZK=Symbol("placeholder");const QK=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const i=lr(),{emit:s}=i,u=Lt(!1),c=At(e.defaultExpandedRowKeys||[]),d=At(-1),p=Lt(null),f=At({}),v=At({}),h=Lt({}),m=Lt({}),g=Lt({}),y=Sr((()=>cm(e.estimatedRowHeight)));const b=Ah((()=>{var e,o,l,r;u.value=!0,f.value={...Bt(f),...Bt(v)},w(Bt(p),!1),v.value={},p.value=null,null==(e=t.value)||e.forceUpdate(),null==(o=n.value)||o.forceUpdate(),null==(l=a.value)||l.forceUpdate(),null==(r=i.proxy)||r.$forceUpdate(),u.value=!1}),0);function w(e,o=!1){Bt(y)&&[t,n,a].forEach((t=>{const n=Bt(t);n&&n.resetAfterRowIndex(e,o)}))}return{expandedRowKeys:c,lastRenderedRowIndex:d,isDynamic:y,isResetting:u,rowHeights:f,resetAfterIndex:w,onRowExpanded:function({expanded:t,rowData:n,rowIndex:a,rowKey:o}){var l,r;const i=[...Bt(c)],u=i.indexOf(o);t?-1===u&&i.push(o):u>-1&&i.splice(u,1),c.value=i,s("update:expandedRowKeys",i),null==(l=e.onRowExpand)||l.call(e,{expanded:t,rowData:n,rowIndex:a,rowKey:o}),null==(r=e.onExpandedRowsChange)||r.call(e,i)},onRowHovered:function({hovered:e,rowKey:t}){if(r.value)return;o.vnode.el.querySelectorAll(`[rowkey="${String(t)}"]`).forEach((t=>{e?t.classList.add(l.is("hovered")):t.classList.remove(l.is("hovered"))}))},onRowsRendered:function(t){var n;null==(n=e.onRowsRendered)||n.call(e,t),t.rowCacheEnd>Bt(d)&&(d.value=t.rowCacheEnd)},onRowHeightChange:function({rowKey:e,height:t,rowIndex:n},a){a?a===XK.RIGHT?g.value[e]=t:h.value[e]=t:m.value[e]=t;const o=Math.max(...[h,g,m].map((t=>t.value[e]||0)));Bt(f)[e]!==o&&(!function(e,t,n){const a=Bt(p);(null===a||a>n)&&(p.value=n),v.value[e]=t}(e,o,n),b())}}},eW=(e,t)=>e+t,tW=e=>d(e)?e.reduce(eW,0):e,nW=(e,t,n={})=>h(e)?e(t):null!=e?e:n,aW=e=>(["width","maxWidth","minWidth","height"].forEach((t=>{e[t]=Jg(e[t])})),e),oW=e=>Hl(e)?t=>_r(e,t):e;function lW(e){const t=At(),n=At(),a=At(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,hasFixedColumns:u,mainColumns:c,onColumnSorted:p}=function(e,t,n){const a=Sr((()=>Bt(t).map(((e,t)=>{var n,a;return{...e,key:null!=(a=null!=(n=e.key)?n:e.dataKey)?a:t}})))),o=Sr((()=>Bt(a).filter((e=>!e.hidden)))),l=Sr((()=>Bt(o).filter((e=>"left"===e.fixed||!0===e.fixed)))),r=Sr((()=>Bt(o).filter((e=>"right"===e.fixed)))),i=Sr((()=>Bt(o).filter((e=>!e.fixed)))),s=Sr((()=>{const e=[];return Bt(l).forEach((t=>{e.push({...t,placeholderSign:ZK})})),Bt(i).forEach((t=>{e.push(t)})),Bt(r).forEach((t=>{e.push({...t,placeholderSign:ZK})})),e})),u=Sr((()=>Bt(l).length||Bt(r).length)),c=Sr((()=>Bt(a).reduce(((t,a)=>(t[a.key]=((e,t,n)=>{var a;const o={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(o.flexShrink=1);const l={...null!=(a=e.style)?a:{},...o,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(l.maxWidth=e.maxWidth),e.minWidth&&(l.minWidth=e.minWidth)),l})(a,Bt(n),e.fixed),t)),{}))),d=Sr((()=>Bt(o).reduce(((e,t)=>e+t.width),0))),p=e=>Bt(a).find((t=>t.key===e));return{columns:a,columnsStyles:c,columnsTotalWidth:d,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:u,mainColumns:s,normalColumns:i,visibleColumns:o,getColumn:p,getColumnStyle:e=>Bt(c)[e],updateColumnWidth:(e,t)=>{e.width=t},onColumnSorted:function(t){var n;const{key:a}=t.currentTarget.dataset;if(!a)return;const{sortState:o,sortBy:l}=e;let r=YK.ASC;r=y(o)?JK[o[a]]:JK[l.order],null==(n=e.onColumnSort)||n.call(e,{column:p(a),key:a,order:r})}}}(e,Kt(e,"columns"),Kt(e,"fixed")),{scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:b,scrollPos:w}=((e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=At({scrollLeft:0,scrollTop:0});function r(e){var o,l,r;const{scrollTop:i}=e;null==(o=t.value)||o.scrollTo(e),null==(l=n.value)||l.scrollToTop(i),null==(r=a.value)||r.scrollToTop(i)}function i(e){l.value=e,r(e)}function s(e){l.value.scrollTop=e,r(Bt(l))}return cl((()=>Bt(l).scrollTop),((e,t)=>{e>t&&o()})),{scrollPos:l,scrollTo:i,scrollToLeft:function(e){var n,a;l.value.scrollLeft=e,null==(a=null==(n=t.value)?void 0:n.scrollTo)||a.call(n,Bt(l))},scrollToTop:s,scrollToRow:function(e,n="auto"){var a;null==(a=t.value)||a.scrollToRow(e,n)},onScroll:function(t){var n;i(t),null==(n=e.onScroll)||n.call(e,t)},onVerticalScroll:function({scrollTop:e}){const{scrollTop:t}=Bt(l);e!==t&&s(e)}}})(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:function(){const{onEndReached:t}=e;if(!t)return;const{scrollTop:n}=Bt(w),a=Bt(z),o=Bt(j),l=a-(n+o)+e.hScrollbarSize;Bt(_)>=0&&a===n+Bt(H)-Bt(U)&&t(l)}}),x=Kd("table-v2"),C=lr(),k=Lt(!1),{expandedRowKeys:S,lastRenderedRowIndex:_,isDynamic:M,isResetting:E,rowHeights:T,resetAfterIndex:O,onRowExpanded:$,onRowHeightChange:I,onRowHovered:V,onRowsRendered:A}=QK(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:C,ns:x,isScrolling:k}),{data:L,depthMap:R}=((e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=At({}),l=Sr((()=>{const n={},{data:a,rowKey:l}=e,r=Bt(t);if(!r||!r.length)return a;const i=[],s=new Set;r.forEach((e=>s.add(e)));let u=a.slice();for(u.forEach((e=>n[e[l]]=0));u.length>0;){const e=u.shift();i.push(e),s.has(e[l])&&d(e.children)&&e.children.length>0&&(u=[...e.children,...u],e.children.forEach((t=>n[t[l]]=n[e[l]]+1)))}return o.value=n,i})),r=Sr((()=>{const{data:t,expandColumnKey:n}=e;return n?Bt(l):t}));return cl(r,((e,t)=>{e!==t&&(n.value=-1,a(0,!0))})),{data:r,depthMap:o}})(e,{expandedRowKeys:S,lastRenderedRowIndex:_,resetAfterIndex:O}),z=Sr((()=>{const{estimatedRowHeight:t,rowHeight:n}=e,a=Bt(L);return cm(t)?Object.values(Bt(T)).reduce(((e,t)=>e+t),0):a.length*n})),{bodyWidth:B,fixedTableHeight:N,mainTableHeight:H,leftTableWidth:D,rightTableWidth:P,headerWidth:F,windowHeight:j,footerHeight:K,emptyStyle:W,rootStyle:q,headerHeight:U}=((e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=Sr((()=>{const{fixed:n,width:a,vScrollbarSize:o}=e,l=a-o;return n?Math.max(Math.round(Bt(t)),l):l})),r=Sr((()=>Bt(l)+e.vScrollbarSize)),i=Sr((()=>{const{height:t=0,maxHeight:a=0,footerHeight:o,hScrollbarSize:l}=e;if(a>0){const e=Bt(f),t=Bt(n),r=Bt(p)+e+t+l;return Math.min(r,a-o)}return t-o})),s=Sr((()=>{const{maxHeight:t}=e,a=Bt(i);if(cm(t)&&t>0)return a;const o=Bt(n)+Bt(p)+Bt(f);return Math.min(a,o)})),u=e=>e.width,c=Sr((()=>tW(Bt(a).map(u)))),d=Sr((()=>tW(Bt(o).map(u)))),p=Sr((()=>tW(e.headerHeight))),f=Sr((()=>{var t;return((null==(t=e.fixedData)?void 0:t.length)||0)*e.rowHeight})),v=Sr((()=>Bt(i)-Bt(p)-Bt(f))),h=Sr((()=>{const{style:t={},height:n,width:a}=e;return aW({...t,height:n,width:a})})),m=Sr((()=>aW({height:e.footerHeight}))),g=Sr((()=>({top:Jg(Bt(p)),bottom:Jg(e.footerHeight),width:Jg(e.width)})));return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:i,leftTableWidth:c,rightTableWidth:d,headerWidth:r,windowHeight:v,footerHeight:m,emptyStyle:g,rootStyle:h,headerHeight:p}})(e,{columnsTotalWidth:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,rowsHeight:z}),Y=At(),G=Sr((()=>{const t=0===Bt(L).length;return d(e.fixedData)?0===e.fixedData.length&&t:t}));return cl((()=>e.expandedRowKeys),(e=>S.value=e),{deep:!0}),{columns:o,containerRef:Y,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:E,isScrolling:k,hasFixedColumns:u,columnsStyles:l,columnsTotalWidth:r,data:L,expandedRowKeys:S,depthMap:R,fixedColumnsOnLeft:i,fixedColumnsOnRight:s,mainColumns:c,bodyWidth:B,emptyStyle:W,rootStyle:q,headerWidth:F,footerHeight:K,mainTableHeight:H,fixedTableHeight:N,leftTableWidth:D,rightTableWidth:P,showEmpty:G,getRowHeight:function(t){const{estimatedRowHeight:n,rowHeight:a,rowKey:o}=e;return n?Bt(T)[Bt(L)[t][o]]||n:a},onColumnSorted:p,onRowHovered:V,onRowExpanded:$,onRowsRendered:A,onRowHeightChange:I,scrollTo:f,scrollToLeft:v,scrollToTop:h,scrollToRow:m,onScroll:g,onVerticalScroll:b}}const rW=Symbol("tableV2"),iW=String,sW={type:Array,required:!0},uW={type:Array},cW={...uW,required:!0},dW={type:Array,default:()=>[]},pW={type:Number,required:!0},fW={type:[String,Number,Symbol],default:"id"},vW={type:Object},hW=Cg({class:String,columns:sW,columnsStyles:{type:Object,required:!0},depth:Number,expandColumnKey:String,estimatedRowHeight:{...eF.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Function},onRowHover:{type:Function},onRowHeightChange:{type:Function},rowData:{type:Object,required:!0},rowEventHandlers:{type:Object},rowIndex:{type:Number,required:!0},rowKey:fW,style:{type:Object}}),mW={type:Number,required:!0},gW=Cg({class:String,columns:sW,fixedHeaderData:{type:Array},headerData:{type:Array,required:!0},headerHeight:{type:[Number,Array],default:50},rowWidth:mW,rowHeight:{type:Number,default:50},height:mW,width:mW}),yW=Cg({columns:sW,data:cW,fixedData:uW,estimatedRowHeight:hW.estimatedRowHeight,width:pW,height:pW,headerWidth:pW,headerHeight:gW.headerHeight,bodyWidth:pW,rowHeight:pW,cache:XP.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:eF.scrollbarAlwaysOn,scrollbarStartGap:eF.scrollbarStartGap,scrollbarEndGap:eF.scrollbarEndGap,class:iW,style:vW,containerStyle:vW,getRowHeight:{type:Function,required:!0},rowKey:hW.rowKey,onRowsRendered:{type:Function},onScroll:{type:Function}}),bW=Cg({cache:yW.cache,estimatedRowHeight:hW.estimatedRowHeight,rowKey:fW,headerClass:{type:[String,Function]},headerProps:{type:[Object,Function]},headerCellProps:{type:[Object,Function]},headerHeight:gW.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:[String,Function]},rowProps:{type:[Object,Function]},rowHeight:{type:Number,default:50},cellProps:{type:[Object,Function]},columns:sW,data:cW,dataGetter:{type:Function},fixedData:uW,expandColumnKey:hW.expandColumnKey,expandedRowKeys:dW,defaultExpandedRowKeys:dW,class:iW,fixed:Boolean,style:{type:Object},width:pW,height:pW,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:eF.hScrollbarSize,vScrollbarSize:eF.vScrollbarSize,scrollbarAlwaysOn:tF.alwaysOn,sortBy:{type:Object,default:()=>({})},sortState:{type:Object,default:void 0},onColumnSort:{type:Function},onExpandedRowsChange:{type:Function},onEndReached:{type:Function},onRowExpand:hW.onRowExpand,onScroll:yW.onScroll,onRowsRendered:yW.onRowsRendered,rowEventHandlers:hW.rowEventHandlers});var wW=Sa({name:"ElTableV2Header",props:gW,setup(e,{slots:t,expose:n}){const a=Kd("table-v2"),o=Oo("tableV2GridScrollLeft"),l=At(),r=Sr((()=>aW({width:e.width,height:e.height}))),i=Sr((()=>aW({width:e.rowWidth,height:e.height}))),s=Sr((()=>yv(Bt(e.headerHeight)))),u=e=>{const t=Bt(l);gn((()=>{(null==t?void 0:t.scroll)&&t.scroll({left:e})}))},c=()=>{const n=a.e("fixed-header-row"),{columns:o,fixedHeaderData:l,rowHeight:r}=e;return null==l?void 0:l.map(((e,a)=>{var l;const i=aW({height:r,width:"100%"});return null==(l=t.fixed)?void 0:l.call(t,{class:n,columns:o,rowData:e,rowIndex:-(a+1),style:i})}))},d=()=>{const n=a.e("dynamic-header-row"),{columns:o}=e;return Bt(s).map(((e,a)=>{var l;const r=aW({width:"100%",height:e});return null==(l=t.dynamic)?void 0:l.call(t,{class:n,columns:o,headerIndex:a,style:r})}))};return Ha((()=>{(null==o?void 0:o.value)&&u(o.value)})),n({scrollToLeft:u}),()=>{if(!(e.height<=0))return Kl("div",{ref:l,class:e.class,style:Bt(r),role:"rowgroup"},[Kl("div",{style:Bt(i),class:a.e("header")},[d(),c()])])}}});const xW=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:i,getRowOffset:s,getRowPosition:u,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:p,initCache:f,injectToInstance:v,validateProps:h})=>Sa({name:null!=e?e:"ElVirtualList",props:eF,emits:["itemRendered","scroll"],setup(e,{emit:g,expose:y,slots:b}){const w=Kd("vl");h(e);const x=lr(),C=At(f(e,x));null==v||v(x,C);const k=At(),S=At(),_=At(),M=At(null),E=At({isScrolling:!1,scrollLeft:cm(e.initScrollLeft)?e.initScrollLeft:0,scrollTop:cm(e.initScrollTop)?e.initScrollTop:0,updateRequested:!1,xAxisScrollDir:"forward",yAxisScrollDir:"forward"}),T=NP(),O=Sr((()=>Number.parseInt(`${e.height}`,10))),$=Sr((()=>Number.parseInt(`${e.width}`,10))),I=Sr((()=>{const{totalColumn:t,totalRow:n,columnCache:l}=e,{isScrolling:r,xAxisScrollDir:i,scrollLeft:s}=Bt(E);if(0===t||0===n)return[0,0,0,0];const u=a(e,s,Bt(C)),c=o(e,u,s,Bt(C)),d=r&&"backward"!==i?1:Math.max(1,l),p=r&&"forward"!==i?1:Math.max(1,l);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]})),V=Sr((()=>{const{totalColumn:t,totalRow:n,rowCache:a}=e,{isScrolling:o,yAxisScrollDir:l,scrollTop:r}=Bt(E);if(0===t||0===n)return[0,0,0,0];const i=d(e,r,Bt(C)),s=p(e,i,r,Bt(C)),u=o&&"backward"!==l?1:Math.max(1,a),c=o&&"forward"!==l?1:Math.max(1,a);return[Math.max(0,i-u),Math.max(0,Math.min(n-1,s+c)),i,s]})),A=Sr((()=>l(e,Bt(C)))),L=Sr((()=>r(e,Bt(C)))),R=Sr((()=>{var t;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:e.direction,height:cm(e.height)?`${e.height}px`:e.height,width:cm(e.width)?`${e.width}px`:e.width},null!=(t=e.style)?t:{}]})),z=Sr((()=>{const e=`${Bt(L)}px`;return{height:`${Bt(A)}px`,pointerEvents:Bt(E).isScrolling?"none":void 0,width:e}})),B=()=>{const{totalColumn:t,totalRow:n}=e;if(t>0&&n>0){const[e,t,n,a]=Bt(I),[o,l,r,i]=Bt(V);g("itemRendered",{columnCacheStart:e,columnCacheEnd:t,rowCacheStart:o,rowCacheEnd:l,columnVisibleStart:n,columnVisibleEnd:a,rowVisibleStart:r,rowVisibleEnd:i})}const{scrollLeft:a,scrollTop:o,updateRequested:l,xAxisScrollDir:r,yAxisScrollDir:i}=Bt(E);g("scroll",{xAxisScrollDir:r,scrollLeft:a,yAxisScrollDir:i,scrollTop:o,updateRequested:l})},N=t=>{const{clientHeight:n,clientWidth:a,scrollHeight:o,scrollLeft:l,scrollTop:r,scrollWidth:i}=t.currentTarget,s=Bt(E);if(s.scrollTop===r&&s.scrollLeft===l)return;let u=l;if(oF(e.direction))switch(rF()){case"negative":u=-l;break;case"positive-descending":u=i-a-l}E.value={...s,isScrolling:!0,scrollLeft:u,scrollTop:Math.max(0,Math.min(r,o-n)),updateRequested:!0,xAxisScrollDir:nF(s.scrollLeft,u),yAxisScrollDir:nF(s.scrollTop,r)},gn((()=>K())),W(),B()},H=(e,t)=>{const n=Bt(O),a=(A.value-n)/t*e;F({scrollTop:Math.min(A.value-n,a)})},D=(e,t)=>{const n=Bt($),a=(L.value-n)/t*e;F({scrollLeft:Math.min(L.value-n,a)})},{onWheel:P}=(({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,i=0;const s=(o,l)=>{const r=o<=0&&t.value||o>=0&&e.value,i=l<=0&&a.value||l>=0&&n.value;return r&&i};return{hasReachedEdge:s,onWheel:e=>{Kg(l);let t=e.deltaX,n=e.deltaY;Math.abs(t)>Math.abs(n)?n=0:t=0,e.shiftKey&&0!==n&&(t=n,n=0),s(r,i)&&s(r+t,i+n)||(r+=t,i+=n,e.preventDefault(),l=jg((()=>{o(r,i),r=0,i=0})))}}})({atXStartEdge:Sr((()=>E.value.scrollLeft<=0)),atXEndEdge:Sr((()=>E.value.scrollLeft>=L.value-Bt($))),atYStartEdge:Sr((()=>E.value.scrollTop<=0)),atYEndEdge:Sr((()=>E.value.scrollTop>=A.value-Bt(O)))},((e,t)=>{var n,a,o,l;null==(a=null==(n=S.value)?void 0:n.onMouseUp)||a.call(n),null==(l=null==(o=_.value)?void 0:o.onMouseUp)||l.call(o);const r=Bt($),i=Bt(O);F({scrollLeft:Math.min(E.value.scrollLeft+e,L.value-r),scrollTop:Math.min(E.value.scrollTop+t,A.value-i)})}));Hm(k,"wheel",P,{passive:!1});const F=({scrollLeft:e=E.value.scrollLeft,scrollTop:t=E.value.scrollTop})=>{e=Math.max(e,0),t=Math.max(t,0);const n=Bt(E);t===n.scrollTop&&e===n.scrollLeft||(E.value={...n,xAxisScrollDir:nF(n.scrollLeft,e),yAxisScrollDir:nF(n.scrollTop,t),scrollLeft:e,scrollTop:t,updateRequested:!0},gn((()=>K())),W(),B())},j=(a,o)=>{const{columnWidth:l,direction:r,rowHeight:i}=e,s=T.value(t&&l,t&&i,t&&r),d=`${a},${o}`;if(c(s,d))return s[d];{const[,t]=n(e,o,Bt(C)),l=Bt(C),i=oF(r),[c,p]=u(e,a,l),[f]=n(e,o,l);return s[d]={position:"absolute",left:i?void 0:`${t}px`,right:i?`${t}px`:void 0,top:`${p}px`,height:`${c}px`,width:`${f}px`},s[d]}},K=()=>{E.value.isScrolling=!1,gn((()=>{T.value(-1,null,null)}))};Ba((()=>{if(!Sm)return;const{initScrollLeft:t,initScrollTop:n}=e,a=Bt(k);a&&(cm(t)&&(a.scrollLeft=t),cm(n)&&(a.scrollTop=n)),B()}));const W=()=>{const{direction:t}=e,{scrollLeft:n,scrollTop:a,updateRequested:o}=Bt(E),l=Bt(k);if(o&&l){if(t===HP)switch(rF()){case"negative":l.scrollLeft=-n;break;case"positive-ascending":l.scrollLeft=n;break;default:{const{clientWidth:e,scrollWidth:t}=l;l.scrollLeft=t-e-n;break}}else l.scrollLeft=Math.max(0,n);l.scrollTop=Math.max(0,a)}},{resetAfterColumnIndex:q,resetAfterRowIndex:U,resetAfter:Y}=x.proxy;y({windowRef:k,innerRef:M,getItemStyleCache:T,scrollTo:F,scrollToItem:(t=0,n=0,a="auto")=>{const o=Bt(E);n=Math.max(0,Math.min(n,e.totalColumn-1)),t=Math.max(0,Math.min(t,e.totalRow-1));const u=ty(w.namespace.value),c=Bt(C),d=l(e,c),p=r(e,c);F({scrollLeft:i(e,n,a,o.scrollLeft,c,p>e.width?u:0),scrollTop:s(e,t,a,o.scrollTop,c,d>e.height?u:0)})},states:E,resetAfterColumnIndex:q,resetAfterRowIndex:U,resetAfter:Y});const G=()=>{const t=Ya(e.innerElement),n=(()=>{var t;const[n,a]=Bt(I),[o,l]=Bt(V),{data:r,totalColumn:i,totalRow:s,useIsScrolling:u,itemKey:c}=e,d=[];if(s>0&&i>0)for(let e=o;e<=l;e++)for(let o=n;o<=a;o++){const n=c({columnIndex:o,data:r,rowIndex:e});d.push(_r(El,{key:n},null==(t=b.default)?void 0:t.call(b,{columnIndex:o,data:r,isScrolling:u?Bt(E).isScrolling:void 0,style:j(e,o),rowIndex:e})))}return d})();return[_r(t,{style:Bt(z),ref:M},m(t)?n:{default:()=>n})]};return()=>{const t=Ya(e.containerElement),{horizontalScrollbar:n,verticalScrollbar:a}=(()=>{const{scrollbarAlwaysOn:t,scrollbarStartGap:n,scrollbarEndGap:a,totalColumn:o,totalRow:l}=e,r=Bt($),i=Bt(O),s=Bt(L),u=Bt(A),{scrollLeft:c,scrollTop:d}=Bt(E);return{horizontalScrollbar:_r(iF,{ref:S,alwaysOn:t,startGap:n,endGap:a,class:w.e("horizontal"),clientSize:r,layout:"horizontal",onScroll:D,ratio:100*r/s,scrollFrom:c/(s-r),total:l,visible:!0}),verticalScrollbar:_r(iF,{ref:_,alwaysOn:t,startGap:n,endGap:a,class:w.e("vertical"),clientSize:i,layout:"vertical",onScroll:H,ratio:100*i/u,scrollFrom:d/(u-i),total:o,visible:!0})}})(),o=G();return _r("div",{key:0,class:w.e("wrapper"),role:e.role},[_r(t,{class:e.className,style:Bt(R),onScroll:N,ref:k},m(t)?o:{default:()=>o}),n,a])}}}),{max:CW,min:kW,floor:SW}=Math,_W={column:"columnWidth",row:"rowHeight"},MW={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},EW=(e,t,n,a)=>{const[o,l,r]=[n[a],e[_W[a]],n[MW[a]]];if(t>r){let e=0;if(r>=0){const t=o[r];e=t.offset+t.size}for(let n=r+1;n<=t;n++){const t=l(n);o[n]={offset:e,size:t},e+=t}n[MW[a]]=t}return o[t]},TW=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+SW((a-n)/2),i=EW(e,r,t,l).offset;if(i===o)return r;i{const[o,l]=[t[a],t[MW[a]]];return(l>0?o[l].offset:0)>=n?TW(e,t,0,l,n,a):((e,t,n,a,o)=>{const l="column"===o?e.totalColumn:e.totalRow;let r=1;for(;n{let o=0;if(n>=e&&(n=e-1),n>=0){const e=a[n];o=e.offset+e.size}return o+(e-n-1)*t},IW=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const e=t[a];o=e.offset+e.size}return o+(e-a-1)*n},VW={column:IW,row:$W},AW=(e,t,n,a,o,l,r)=>{const[i,s]=["row"===l?e.height:e.width,VW[l]],u=EW(e,t,o,l),c=s(e,o),d=CW(0,kW(c-i,u.offset)),p=CW(0,u.offset-i+r+u.size);switch("smart"===n&&(n=a>=p-i&&a<=d+i?"auto":"center"),n){case"start":return d;case"end":return p;case"center":return Math.round(p+(d-p)/2);default:return a>=p&&a<=d?a:p>d||a{const a=EW(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=EW(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>AW(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>AW(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>OW(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=EW(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,i=t;for(;iOW(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=EW(e,t,a,"row"),i=n+l;let s=r.size+r.offset,u=t;for(;u{const n=({columnIndex:n,rowIndex:a},o)=>{var l,r;o=!!sm(o)||o,cm(n)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,n-1)),cm(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),null==(l=e.exposed)||l.getItemStyleCache.value(-1,null,null),o&&(null==(r=e.proxy)||r.$forceUpdate())};Object.assign(e.proxy,{resetAfterColumnIndex:(e,t)=>{n({columnIndex:e},t)},resetAfterRowIndex:(e,t)=>{n({rowIndex:e},t)},resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{h(e)||ug("ElDynamicSizeGrid",`\n "columnWidth" must be passed as function,\n instead ${typeof e} was given.\n `),h(t)||ug("ElDynamicSizeGrid",`\n "rowHeight" must be passed as function,\n instead ${typeof t} was given.\n `)}}),RW=xW({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,i)=>{n=Number(n);const s=Math.max(0,e*t-n),u=Math.min(s,a*t),c=Math.max(0,a*t-n+i+t);switch("smart"===o&&(o=l>=c-n&&l<=u+n?"auto":"center"),o){case"start":return u;case"end":return c;case"center":{const e=Math.round(c+(u-c)/2);return es+Math.floor(n/2)?s:e}default:return l>=c&&l<=u?l:c>u||l{t=Number(t);const s=Math.max(0,n*e-t),u=Math.min(s,a*e),c=Math.max(0,a*e-t+i+e);switch("smart"===o&&(o=l>=c-t&&l<=u+t?"auto":"center"),o){case"start":return u;case"end":return c;case"center":{const e=Math.round(c+(u-c)/2);return es+Math.floor(t/2)?s:e}default:return l>=c&&l<=u?l:c>u||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{cm(e)||ug("ElFixedSizeGrid",`\n "columnWidth" must be passed as number,\n instead ${typeof e} was given.\n `),cm(t)||ug("ElFixedSizeGrid",`\n "columnWidth" must be passed as number,\n instead ${typeof t} was given.\n `)}});var zW=Sa({name:"ElTableV2Grid",props:yW,setup(e,{slots:t,expose:n}){const{ns:a}=Oo(rW),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:i,headerRef:s,headerHeight:u,totalHeight:c,forceUpdate:d,itemKey:p,onItemRendered:f,resetAfterRowIndex:v,scrollTo:h,scrollToTop:m,scrollToRow:g,scrollLeft:b}=(e=>{const t=At(),n=At(),a=At(0),o=Sr((()=>{const{data:t,rowHeight:n,estimatedRowHeight:a}=e;if(!a)return t.length*n})),l=Sr((()=>{const{fixedData:t,rowHeight:n}=e;return((null==t?void 0:t.length)||0)*n})),r=Sr((()=>tW(e.headerHeight))),i=Sr((()=>{const{height:t}=e;return Math.max(0,t-Bt(r)-Bt(l))})),s=Sr((()=>Bt(r)+Bt(l)>0));return cl((()=>e.bodyWidth),(()=>{var t;cm(e.estimatedRowHeight)&&(null==(t=n.value)||t.resetAfter({columnIndex:0},!1))})),{bodyRef:n,forceUpdate:function(){var e,a;null==(e=Bt(n))||e.$forceUpdate(),null==(a=Bt(t))||a.$forceUpdate()},fixedRowHeight:l,gridHeight:i,hasHeader:s,headerHeight:r,headerRef:t,totalHeight:o,itemKey:({data:t,rowIndex:n})=>t[n][e.rowKey],onItemRendered:function({rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:a,rowVisibleEnd:o}){var l;null==(l=e.onRowsRendered)||l.call(e,{rowCacheStart:t,rowCacheEnd:n,rowVisibleStart:a,rowVisibleEnd:o})},resetAfterRowIndex:function(e,t){var a;null==(a=n.value)||a.resetAfterRowIndex(e,t)},scrollTo:function(e,o){const l=Bt(t),r=Bt(n);y(e)?(null==l||l.scrollToLeft(e.scrollLeft),a.value=e.scrollLeft,null==r||r.scrollTo(e)):(null==l||l.scrollToLeft(e),a.value=e,null==r||r.scrollTo({scrollLeft:e,scrollTop:o}))},scrollToTop:function(e){var t;null==(t=Bt(n))||t.scrollTo({scrollTop:e})},scrollToRow:function(e,t){var a;null==(a=Bt(n))||a.scrollToItem(e,1,t)},scrollLeft:a}})(e);To("tableV2GridScrollLeft",b),n({forceUpdate:d,totalHeight:c,scrollTo:h,scrollToTop:m,scrollToRow:g,resetAfterRowIndex:v});const w=()=>e.bodyWidth;return()=>{const{cache:n,columns:c,data:d,fixedData:v,useIsScrolling:h,scrollbarAlwaysOn:m,scrollbarEndGap:g,scrollbarStartGap:y,style:b,rowHeight:x,bodyWidth:C,estimatedRowHeight:k,headerWidth:S,height:_,width:M,getRowHeight:E,onScroll:T}=e,O=cm(k),$=O?LW:RW,I=Bt(u);return Kl("div",{role:"table",class:[a.e("table"),e.class],style:b},[Kl($,{ref:o,data:d,useIsScrolling:h,itemKey:p,columnCache:0,columnWidth:O?w:C,totalColumn:1,totalRow:d.length,rowCache:n,rowHeight:O?E:x,width:M,height:Bt(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:y,scrollbarEndGap:g,scrollbarAlwaysOn:m,onScroll:T,onItemRendered:f,perfMode:!1},{default:e=>{var n;const a=d[e.rowIndex];return null==(n=t.row)?void 0:n.call(t,{...e,columns:c,rowData:a})}}),Bt(i)&&Kl(wW,{ref:s,class:a.e("header-wrapper"),columns:c,headerData:d,headerHeight:e.headerHeight,fixedHeaderData:v,rowWidth:S,rowHeight:x,width:M,height:Math.min(I+Bt(l),_)},{dynamic:t.header,fixed:t.row})])}}});var BW=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};var NW=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};var HW=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Kl(zW,er({ref:n},a),"function"==typeof(o=t)||"[object Object]"===Object.prototype.toString.call(o)&&!Hl(o)?t:{default:()=>[t]});var o};const DW=e=>{const{isScrolling:t}=Oo(rW),n=At(!1),a=At(),o=Sr((()=>cm(e.estimatedRowHeight)&&e.rowIndex>=0)),l=Sr((()=>{const{rowData:t,rowIndex:n,rowKey:a,onRowHover:o}=e,l=e.rowEventHandlers||{},r={};return Object.entries(l).forEach((([e,o])=>{h(o)&&(r[e]=e=>{o({event:e,rowData:t,rowIndex:n,rowKey:a})})})),o&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach((({name:e,hovered:l})=>{const i=r[e];r[e]=e=>{o({event:e,hovered:l,rowData:t,rowIndex:n,rowKey:a}),null==i||i(e)}})),r}));return Ba((()=>{Bt(o)&&((t=!1)=>{const o=Bt(a);if(!o)return;const{columns:l,onRowHeightChange:r,rowKey:i,rowIndex:s,style:u}=e,{height:c}=o.getBoundingClientRect();n.value=!0,gn((()=>{if(t||c!==Number.parseInt(u.height)){const e=l[0],t=(null==e?void 0:e.placeholderSign)===ZK;null==r||r({rowKey:i,height:c,rowIndex:s},e&&!t&&e.fixed)}}))})(!0)})),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:l,onExpand:t=>{const{onRowExpand:n,rowData:a,rowIndex:o,rowKey:l}=e;null==n||n({expanded:t,rowData:a,rowIndex:o,rowKey:l})}}};var PW=Sa({name:"ElTableV2TableRow",props:hW,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:i,rowRef:s,onExpand:u}=DW(e);return t({onExpand:u}),()=>{const{columns:t,columnsStyles:c,expandColumnKey:p,depth:f,rowData:v,rowIndex:h,style:m}=e;let g=t.map(((e,a)=>{const o=d(v.children)&&v.children.length>0&&e.key===p;return n.cell({column:e,columns:t,columnIndex:a,depth:f,style:c[e.key],rowData:v,rowIndex:h,isScrolling:Bt(l),expandIconProps:o?{rowData:v,rowIndex:h,onExpand:u}:void 0})}));if(n.row&&(g=n.row({cells:g.map((e=>d(e)&&1===e.length?e[0]:e)),style:m,columns:t,depth:f,rowData:v,rowIndex:h,isScrolling:Bt(l)})),Bt(r)){const{height:t,...n}=m||{},l=Bt(i);return Kl("div",er({ref:s,class:e.class,style:l?m:n,role:"row"},a,Bt(o)),[g])}return Kl("div",er(a,{ref:s,class:e.class,style:m,role:"row"},Bt(o)),[g])}}});var FW=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:i,hasFixedColumns:s,rowData:u,rowIndex:c,style:d,isScrolling:p,rowProps:f,rowClass:v,rowKey:h,rowEventHandlers:m,ns:g,onRowHovered:y,onRowExpanded:b}=e,w=nW(v,{columns:n,rowData:u,rowIndex:c},""),x=nW(f,{columns:n,rowData:u,rowIndex:c}),C=u[h],k=o[C]||0,S=Boolean(l),_=c<0,M=[g.e("row"),w,{[g.e(`row-depth-${k}`)]:S&&c>=0,[g.is("expanded")]:S&&r.includes(C),[g.is("fixed")]:!k&&_,[g.is("customized")]:Boolean(t.row)}],E=s?y:void 0,T={...x,columns:n,columnsStyles:a,class:M,depth:k,expandColumnKey:l,estimatedRowHeight:_?void 0:i,isScrolling:p,rowIndex:c,rowData:u,rowKey:C,rowEventHandlers:m,style:d};return Kl(PW,er(T,{onRowExpand:b,onMouseenter:e=>{null==E||E({hovered:!0,rowKey:C,event:e,rowData:u,rowIndex:c})},onMouseleave:e=>{null==E||E({hovered:!1,rowKey:C,event:e,rowData:u,rowIndex:c})},rowkey:C}),"function"==typeof(O=t)||"[object Object]"===Object.prototype.toString.call(O)&&!Hl(O)?t:{default:()=>[t]});var O};const jW=(e,{slots:t})=>{var n;const{cellData:a,style:o}=e,l=(null==(n=null==a?void 0:a.toString)?void 0:n.call(a))||"",r=eo(t,"default",e,(()=>[l]));return Kl("div",{class:e.class,title:l,style:o},[r])};jW.displayName="ElTableV2Cell",jW.inheritAttrs=!1;var KW=jW;var WW=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l}=e,r={onClick:n?()=>a(!t):void 0,class:e.class};return Kl(py,er(r,{size:l,style:o}),{default:()=>[Kl(Vy,null,null)]})};const qW=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:i,style:s,expandedRowKeys:u,ns:c,cellProps:d,expandColumnKey:p,indentSize:f,iconSize:v,rowKey:m},{slots:g})=>{const b=aW(s);if(t.placeholderSign===ZK)return Kl("div",{class:c.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:x,dataGetter:C}=t,k=h(C)?C({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:i}):ov(r,null!=x?x:""),S=nW(d,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:i,rowData:r}),_={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:i},M=oW(w),E=M?M(_):eo(g,"default",_,(()=>[Kl(KW,_,null)])),T=[c.e("row-cell"),t.class,t.align===GK.CENTER&&c.is("align-center"),t.align===GK.RIGHT&&c.is("align-right")],O=i>=0&&p&&t.key===p,$=i>=0&&u.includes(r[m]);let I;const V=`margin-inline-start: ${a*f}px;`;return O&&(I=y(o)?Kl(WW,er(o,{class:[c.e("expand-icon"),c.is("expanded",$)],size:v,expanded:$,style:V,expandable:!0}),null):Kl("div",{style:[V,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Kl("div",er({class:T,style:b},S,{role:"cell"}),[I,E])};qW.inheritAttrs=!1;var UW=qW;var YW=Sa({name:"ElTableV2HeaderRow",props:Cg({class:String,columns:sW,columnsStyles:{type:Object,required:!0},headerIndex:Number,style:{type:Object}}),setup:(e,{slots:t})=>()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map(((e,l)=>t.cell({columns:n,column:e,columnIndex:l,headerIndex:o,style:a[e.key]})));return t.header&&(r=t.header({cells:r.map((e=>d(e)&&1===e.length?e[0]:e)),columns:n,headerIndex:o})),Kl("div",{class:e.class,style:l,role:"row"},[r])}});var GW=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:i})=>{const s={columns:e,headerIndex:n},u=[r.e("header-row"),nW(o,s,""),{[r.is("customized")]:Boolean(i.header)}],c={...nW(l,s),columnsStyles:t,class:u,columns:e,headerIndex:n,style:a};return Kl(YW,c,"function"==typeof(d=i)||"[object Object]"===Object.prototype.toString.call(d)&&!Hl(d)?i:{default:()=>[i]});var d};const XW=(e,{slots:t})=>eo(t,"default",e,(()=>{var t,n;return[Kl("div",{class:e.class,title:null==(t=e.column)?void 0:t.title},[null==(n=e.column)?void 0:n.title])]}));XW.displayName="ElTableV2HeaderCell",XW.inheritAttrs=!1;var JW=XW;var ZW=e=>{const{sortOrder:t}=e;return Kl(py,{size:14,class:e.class},{default:()=>[t===YK.ASC?Kl(gM,null,null):Kl(mM,null,null)]})};var QW=(e,{slots:t})=>{const{column:n,ns:a,style:o,onColumnSorted:l}=e,r=aW(o);if(n.placeholderSign===ZK)return Kl("div",{class:a.em("header-row-cell","placeholder"),style:r},null);const{headerCellRenderer:i,headerClass:s,sortable:u}=n,c={...e,class:a.e("header-cell-text")},d=oW(i),p=d?d(c):eo(t,"default",c,(()=>[Kl(JW,c,null)])),{sortBy:f,sortState:v,headerCellProps:h}=e;let m,g;if(v){const e=v[n.key];m=Boolean(JK[e]),g=m?e:YK.ASC}else m=n.key===f.key,g=m?f.order:YK.ASC;const y=[a.e("header-cell"),nW(s,e,""),n.align===GK.CENTER&&a.is("align-center"),n.align===GK.RIGHT&&a.is("align-right"),u&&a.is("sortable")],b={...nW(h,e),onClick:n.sortable?l:void 0,class:y,style:r,"data-key":n.key};return Kl("div",er(b,{role:"columnheader"}),[p,u&&Kl(ZW,{class:[a.e("sort-icon"),m&&a.is("sorting")],sortOrder:g},null)])};const eq=(e,{slots:t})=>{var n;return Kl("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};eq.displayName="ElTableV2Footer";var tq=eq;const nq=(e,{slots:t})=>{const n=eo(t,"default",{},(()=>[Kl(CN,null,null)]));return Kl("div",{class:e.class,style:e.style},[n])};nq.displayName="ElTableV2Empty";var aq=nq;const oq=(e,{slots:t})=>{var n;return Kl("div",{class:e.class,style:e.style},[null==(n=t.default)?void 0:n.call(t)])};oq.displayName="ElTableV2Overlay";var lq=oq;function rq(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Hl(e)}var iq=Sa({name:"ElTableV2",props:bW,setup(e,{slots:t,expose:n}){const a=Kd("table-v2"),{columnsStyles:o,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,mainColumns:i,mainTableHeight:s,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:d,data:p,depthMap:f,expandedRowKeys:v,hasFixedColumns:h,mainTableRef:m,leftTableRef:g,rightTableRef:y,isDynamic:b,isResetting:w,isScrolling:x,bodyWidth:C,emptyStyle:k,rootStyle:S,headerWidth:_,footerHeight:M,showEmpty:E,scrollTo:T,scrollToLeft:O,scrollToTop:$,scrollToRow:I,getRowHeight:V,onColumnSorted:A,onRowHeightChange:L,onRowHovered:R,onRowExpanded:z,onRowsRendered:B,onScroll:N,onVerticalScroll:H}=lW(e);return n({scrollTo:T,scrollToLeft:O,scrollToTop:$,scrollToRow:I}),To(rW,{ns:a,isResetting:w,isScrolling:x}),()=>{const{cache:n,cellProps:w,estimatedRowHeight:x,expandColumnKey:T,fixedData:O,headerHeight:$,headerClass:I,headerProps:D,headerCellProps:P,sortBy:F,sortState:j,rowHeight:K,rowClass:W,rowEventHandlers:q,rowKey:U,rowProps:Y,scrollbarAlwaysOn:G,indentSize:X,iconSize:J,useIsScrolling:Z,vScrollbarSize:Q,width:ee}=e,te=Bt(p),ne={cache:n,class:a.e("main"),columns:Bt(i),data:te,fixedData:O,estimatedRowHeight:x,bodyWidth:Bt(C)+Q,headerHeight:$,headerWidth:Bt(_),height:Bt(s),mainTableRef:m,rowKey:U,rowHeight:K,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,useIsScrolling:Z,width:ee,getRowHeight:V,onRowsRendered:B,onScroll:N},ae=Bt(c),oe=Bt(u),le={cache:n,class:a.e("left"),columns:Bt(l),data:te,fixedData:O,estimatedRowHeight:x,leftTableRef:g,rowHeight:K,bodyWidth:ae,headerWidth:ae,headerHeight:$,height:oe,rowKey:U,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,useIsScrolling:Z,width:ae,getRowHeight:V,onScroll:H},re=Bt(d)+Q,ie={cache:n,class:a.e("right"),columns:Bt(r),data:te,fixedData:O,estimatedRowHeight:x,rightTableRef:y,rowHeight:K,bodyWidth:re,headerWidth:re,headerHeight:$,height:oe,rowKey:U,scrollbarAlwaysOn:G,scrollbarStartGap:2,scrollbarEndGap:Q,width:re,style:`--${Bt(a.namespace)}-table-scrollbar-size: ${Q}px`,useIsScrolling:Z,getRowHeight:V,onScroll:H},se=Bt(o),ue={ns:a,depthMap:Bt(f),columnsStyles:se,expandColumnKey:T,expandedRowKeys:Bt(v),estimatedRowHeight:x,hasFixedColumns:Bt(h),rowProps:Y,rowClass:W,rowKey:U,rowEventHandlers:q,onRowHovered:R,onRowExpanded:z,onRowHeightChange:L},ce={cellProps:w,expandColumnKey:T,indentSize:X,iconSize:J,rowKey:U,expandedRowKeys:Bt(v),ns:a},de={ns:a,headerClass:I,headerProps:D,columnsStyles:se},pe={ns:a,sortBy:F,sortState:j,headerCellProps:P,onColumnSorted:A},fe={row:e=>Kl(FW,er(e,ue),{row:t.row,cell:e=>{let n;return t.cell?Kl(UW,er(e,ce,{style:se[e.column.key]}),rq(n=t.cell(e))?n:{default:()=>[n]}):Kl(UW,er(e,ce,{style:se[e.column.key]}),null)}}),header:e=>Kl(GW,er(e,de),{header:t.header,cell:e=>{let n;return t["header-cell"]?Kl(QW,er(e,pe,{style:se[e.column.key]}),rq(n=t["header-cell"](e))?n:{default:()=>[n]}):Kl(QW,er(e,pe,{style:se[e.column.key]}),null)}})},ve=[e.class,a.b(),a.e("root"),{[a.is("dynamic")]:Bt(b)}],he={class:a.e("footer"),style:Bt(M)};return Kl("div",{class:ve,style:Bt(S)},[Kl(BW,ne,rq(fe)?fe:{default:()=>[fe]}),Kl(NW,le,rq(fe)?fe:{default:()=>[fe]}),Kl(HW,ie,rq(fe)?fe:{default:()=>[fe]}),t.footer&&Kl(tq,he,{default:t.footer}),Bt(E)&&Kl(aq,{class:a.e("empty"),style:Bt(k)},{default:t.empty}),t.overlay&&Kl(lq,{class:a.e("overlay")},{default:t.overlay})])}}});const sq=Cg({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Function}});var uq=Sa({name:"ElAutoResizer",props:sq,setup(e,{slots:t}){const n=Kd("auto-resizer"),{height:a,width:o,sizer:l}=(e=>{const t=At(),n=At(0),a=At(0);let o;return Ba((()=>{o=Ym(t,(([e])=>{const{width:t,height:o}=e.contentRect,{paddingLeft:l,paddingRight:r,paddingTop:i,paddingBottom:s}=getComputedStyle(e.target),u=Number.parseInt(l)||0,c=Number.parseInt(r)||0,d=Number.parseInt(i)||0,p=Number.parseInt(s)||0;n.value=t-u-c,a.value=o-d-p})).stop})),Da((()=>{null==o||o()})),cl([n,a],(([t,n])=>{var a;null==(a=e.onResize)||a.call(e,{width:t,height:n})})),{sizer:t,width:n,height:a}})(e),r={width:"100%",height:"100%"};return()=>{var e;return Kl("div",{ref:l,class:n.b(),style:r},[null==(e=t.default)?void 0:e.call(t,{height:a.value,width:o.value})])}}});const cq=ry(iq),dq=ry(uq),pq=Symbol("tabsRootContextKey"),fq=Cg({tabs:{type:Array,default:()=>[]}}),vq=Sa({name:"ElTabBar"});var hq=Fg(Sa({...vq,props:fq,setup(e,{expose:t}){const n=e,a=lr(),o=Oo(pq);o||ug("ElTabBar","");const l=Kd("tabs"),r=At(),i=At(),s=()=>i.value=(()=>{let e=0,t=0;const l=["top","bottom"].includes(o.props.tabPosition)?"width":"height",r="width"===l?"x":"y",i="x"===r?"left":"top";return n.tabs.every((n=>{var o,r;const s=null==(r=null==(o=a.parent)?void 0:o.refs)?void 0:r[`tab-${n.uid}`];if(!s)return!1;if(!n.active)return!0;e=s[`offset${VA(i)}`],t=s[`client${VA(l)}`];const u=window.getComputedStyle(s);return"width"===l&&(t-=Number.parseFloat(u.paddingLeft)+Number.parseFloat(u.paddingRight),e+=Number.parseFloat(u.paddingLeft)),!1})),{[l]:`${t}px`,transform:`translate${VA(r)}(${e}px)`}})(),u=[];cl((()=>n.tabs),(async()=>{await gn(),s(),(()=>{var e;u.forEach((e=>e.stop())),u.length=0;const t=null==(e=a.parent)?void 0:e.refs;if(t)for(const n in t)if(n.startsWith("tab-")){const e=t[n];e&&u.push(Ym(e,s))}})()}),{immediate:!0});const c=Ym(r,(()=>s()));return Da((()=>{u.forEach((e=>e.stop())),u.length=0,c.stop()})),t({ref:r,update:s}),(e,t)=>(Al(),Bl("div",{ref_key:"barRef",ref:r,class:W([Bt(l).e("active-bar"),Bt(l).is(Bt(o).props.tabPosition)]),style:D(i.value)},null,6))}}),[["__file","tab-bar.vue"]]);const mq=Cg({panes:{type:Array,default:()=>[]},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),gq=Sa({name:"ElTabNav",props:mq,emits:{tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},setup(e,{expose:t,emit:n}){const a=Oo(pq);a||ug("ElTabNav","");const o=Kd("tabs"),l=function({document:e=Nm}={}){if(!e)return At("visible");const t=At(e.visibilityState);return Hm(e,"visibilitychange",(()=>{t.value=e.visibilityState})),t}(),r=function({window:e=Bm}={}){if(!e)return At(!1);const t=At(e.document.hasFocus());return Hm(e,"blur",(()=>{t.value=!1})),Hm(e,"focus",(()=>{t.value=!0})),t}(),i=At(),s=At(),u=At(),c=At(),d=At(!1),p=At(0),f=At(!1),v=At(!0),h=Sr((()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height")),m=Sr((()=>({transform:`translate${"width"===h.value?"X":"Y"}(-${p.value}px)`}))),g=()=>{if(!i.value)return;const e=i.value[`offset${VA(h.value)}`],t=p.value;if(!t)return;const n=t>e?t-e:0;p.value=n},y=()=>{if(!i.value||!s.value)return;const e=s.value[`offset${VA(h.value)}`],t=i.value[`offset${VA(h.value)}`],n=p.value;if(e-n<=t)return;const a=e-n>2*t?n+t:e-t;p.value=a},b=async()=>{const e=s.value;if(!(d.value&&u.value&&i.value&&e))return;await gn();const t=u.value.querySelector(".is-active");if(!t)return;const n=i.value,o=["top","bottom"].includes(a.props.tabPosition),l=t.getBoundingClientRect(),r=n.getBoundingClientRect(),c=o?e.offsetWidth-r.width:e.offsetHeight-r.height,f=p.value;let v=f;o?(l.leftr.right&&(v=f+l.right-r.right)):(l.topr.bottom&&(v=f+(l.bottom-r.bottom))),v=Math.max(v,0),p.value=Math.min(v,c)},w=()=>{var t;if(!s.value||!i.value)return;e.stretch&&(null==(t=c.value)||t.update());const n=s.value[`offset${VA(h.value)}`],a=i.value[`offset${VA(h.value)}`],o=p.value;a0&&(p.value=0))},x=e=>{let t=0;switch(e.code){case qT.left:case qT.up:t=-1;break;case qT.right:case qT.down:t=1;break;default:return}const n=Array.from(e.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let a=n.indexOf(e.target)+t;a<0?a=n.length-1:a>=n.length&&(a=0),n[a].focus({preventScroll:!0}),n[a].click(),C()},C=()=>{v.value&&(f.value=!0)},k=()=>f.value=!1;return cl(l,(e=>{"hidden"===e?v.value=!1:"visible"===e&&setTimeout((()=>v.value=!0),50)})),cl(r,(e=>{e?setTimeout((()=>v.value=!0),50):v.value=!1})),Ym(u,w),Ba((()=>setTimeout((()=>b()),0))),Ha((()=>w())),t({scrollToActiveTab:b,removeFocus:k}),()=>{const t=d.value?[Kl("span",{class:[o.e("nav-prev"),o.is("disabled",!d.value.prev)],onClick:g},[Kl(py,null,{default:()=>[Kl(Ty,null,null)]})]),Kl("span",{class:[o.e("nav-next"),o.is("disabled",!d.value.next)],onClick:y},[Kl(py,null,{default:()=>[Kl(Vy,null,null)]})])]:null,l=e.panes.map(((t,l)=>{var r,i,s,u;const c=t.uid,d=t.props.disabled,p=null!=(i=null!=(r=t.props.name)?r:t.index)?i:`${l}`,v=!d&&(t.isClosable||e.editable);t.index=`${l}`;const h=v?Kl(py,{class:"is-icon-close",onClick:e=>n("tabRemove",t,e)},{default:()=>[Kl(mw,null,null)]}):null,m=(null==(u=(s=t.slots).label)?void 0:u.call(s))||t.props.label,g=!d&&t.active?0:-1;return Kl("div",{ref:`tab-${c}`,class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",t.active),o.is("disabled",d),o.is("closable",v),o.is("focus",f.value)],id:`tab-${p}`,key:`tab-${c}`,"aria-controls":`pane-${p}`,role:"tab","aria-selected":t.active,tabindex:g,onFocus:()=>C(),onBlur:()=>k(),onClick:e=>{k(),n("tabClick",t,p,e)},onKeydown:e=>{!v||e.code!==qT.delete&&e.code!==qT.backspace||n("tabRemove",t,e)}},[m,h])}));return Kl("div",{ref:u,class:[o.e("nav-wrap"),o.is("scrollable",!!d.value),o.is(a.props.tabPosition)]},[t,Kl("div",{class:o.e("nav-scroll"),ref:i},[Kl("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:s,style:m.value,role:"tablist",onKeydown:x},[e.type?null:Kl(hq,{ref:c,tabs:[...e.panes]},null),l])])])}}}),yq=Cg({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Function,default:()=>!0},stretch:Boolean}),bq=e=>m(e)||cm(e),wq={[Hg]:e=>bq(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>bq(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>bq(e),tabAdd:()=>!0};var xq=Sa({name:"ElTabs",props:yq,emits:wq,setup(e,{emit:t,slots:n,expose:a}){var o;const l=Kd("tabs"),r=Sr((()=>["left","right"].includes(e.tabPosition))),{children:i,addChild:s,removeChild:u}=RV(lr(),"ElTabPane"),c=At(),d=At(null!=(o=e.modelValue)?o:"0"),p=async(n,a=!1)=>{var o,l;if(d.value!==n&&!sm(n))try{let r;if(e.beforeLeave){const t=e.beforeLeave(n,d.value);r=t instanceof Promise?await t:t}else r=!0;!1!==r&&(d.value=n,a&&(t(Hg,n),t("tabChange",n)),null==(l=null==(o=c.value)?void 0:o.removeFocus)||l.call(o))}catch(yR){}},f=(e,n,a)=>{e.props.disabled||(p(n,!0),t("tabClick",e,a))},v=(e,n)=>{e.props.disabled||sm(e.props.name)||(n.stopPropagation(),t("edit",e.props.name,"remove"),t("tabRemove",e.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};cl((()=>e.modelValue),(e=>p(e))),cl(d,(async()=>{var e;await gn(),null==(e=c.value)||e.scrollToActiveTab()})),To(pq,{props:e,currentName:d,registerPane:e=>{i.value.push(e)},sortPane:s,unregisterPane:u}),a({currentName:d});const m=({render:e})=>e();return()=>{const t=n["add-icon"],a=e.editable||e.addable?Kl("div",{class:[l.e("new-tab"),r.value&&l.e("new-tab-vertical")],tabindex:"0",onClick:h,onKeydown:e=>{[qT.enter,qT.numpadEnter].includes(e.code)&&h()}},[t?eo(n,"add-icon"):Kl(py,{class:l.is("icon-plus")},{default:()=>[Kl(O_,null,null)]})]):null,o=Kl("div",{class:[l.e("header"),r.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[Kl(m,{render:()=>{const t=i.value.some((e=>e.slots.label));return Kl(gq,{ref:c,currentName:d.value,editable:e.editable,type:e.type,panes:i.value,stretch:e.stretch,onTabClick:f,onTabRemove:v},{$stable:!t})}},null),a]),s=Kl("div",{class:l.e("content")},[eo(n,"default")]);return Kl("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:"card"===e.type,[l.m("border-card")]:"border-card"===e.type}]},[s,o])}}});const Cq=Cg({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),kq=Sa({name:"ElTabPane"});var Sq=Fg(Sa({...kq,props:Cq,setup(e){const t=e,n=lr(),a=io(),o=Oo(pq);o||ug("ElTabPane","usage: ");const l=Kd("tab-pane"),r=At(),i=Sr((()=>t.closable||o.props.closable)),s=km((()=>{var e;return o.currentName.value===(null!=(e=t.name)?e:r.value)})),u=At(s.value),c=Sr((()=>{var e;return null!=(e=t.name)?e:r.value})),d=km((()=>!t.lazy||u.value||s.value));cl(s,(e=>{e&&(u.value=!0)}));const p=bt({uid:n.uid,slots:a,props:t,paneName:c,active:s,index:r,isClosable:i});return o.registerPane(p),Ba((()=>{o.sortPane(p)})),Pa((()=>{o.unregisterPane(p.uid)})),(e,t)=>Bt(d)?Xn((Al(),Bl("div",{key:0,id:`pane-${Bt(c)}`,class:W(Bt(l).b()),role:"tabpanel","aria-hidden":!Bt(s),"aria-labelledby":`tab-${Bt(c)}`},[eo(e.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[ei,Bt(s)]]):Xl("v-if",!0)}}),[["__file","tab-pane.vue"]]);const _q=ry(xq,{TabPane:Sq}),Mq=sy(Sq),Eq=Cg({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:kg,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),Tq=Sa({name:"ElText"});const Oq=ry(Fg(Sa({...Tq,props:Eq,setup(e){const t=e,n=At(),a=WE(),o=Kd("text"),l=Sr((()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!sm(t.lineClamp))])),r=so().title,i=()=>{var e,a,o,l,i;if(r)return;let s=!1;const u=(null==(e=n.value)?void 0:e.textContent)||"";if(t.truncated){const e=null==(a=n.value)?void 0:a.offsetWidth,t=null==(o=n.value)?void 0:o.scrollWidth;e&&t&&t>e&&(s=!0)}else if(!sm(t.lineClamp)){const e=null==(l=n.value)?void 0:l.offsetHeight,t=null==(i=n.value)?void 0:i.scrollHeight;e&&t&&t>e&&(s=!0)}s?n.value.setAttribute("title",u):n.value.removeAttribute("title")};return Ba(i),Ha(i),(e,t)=>(Al(),Nl(Ya(e.tag),{ref_key:"textRef",ref:n,class:W(Bt(l)),style:D({"-webkit-line-clamp":e.lineClamp})},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["class","style"]))}}),[["__file","text.vue"]])),$q=Cg({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Sg,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,includeEndTime:{type:Boolean,default:!1},name:String,prefixIcon:{type:[String,Object],default:()=>pw},clearIcon:{type:[String,Object],default:()=>rw},...Og}),Iq=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&12===n?n=0:o.includes("PM")&&12!==n&&(n+=12),{hours:n,minutes:a}}return null},Vq=(e,t)=>{const n=Iq(e);if(!n)return-1;const a=Iq(t);if(!a)return-1;const o=n.minutes+60*n.hours,l=a.minutes+60*a.hours;return o===l?0:o>l?1:-1},Aq=e=>`${e}`.padStart(2,"0"),Lq=e=>`${Aq(e.hours)}:${Aq(e.minutes)}`,Rq=(e,t)=>{const n=Iq(e);if(!n)return"";const a=Iq(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,Lq(o)},zq=Sa({name:"ElTimeSelect"});const Bq=ry(Fg(Sa({...zq,props:$q,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;tV.extend(xR);const{Option:a}=ED,o=Kd("input"),l=At(),r=qE(),{lang:i}=wg(),s=Sr((()=>n.modelValue)),u=Sr((()=>{const e=Iq(n.start);return e?Lq(e):null})),c=Sr((()=>{const e=Iq(n.end);return e?Lq(e):null})),d=Sr((()=>{const e=Iq(n.step);return e?Lq(e):null})),p=Sr((()=>{const e=Iq(n.minTime||"");return e?Lq(e):null})),f=Sr((()=>{const e=Iq(n.maxTime||"");return e?Lq(e):null})),v=Sr((()=>{var e;const t=[],a=(e,n)=>{t.push({value:e,disabled:Vq(n,p.value||"-1:-1")<=0||Vq(n,f.value||"100:100")>=0})};if(n.start&&n.end&&n.step){let o,l=u.value;for(;l&&c.value&&Vq(l,c.value)<=0;)o=tV(l,"HH:mm").locale(i.value).format(n.format),a(o,l),l=Rq(l,d.value);if(n.includeEndTime&&c.value&&(null==(e=t[t.length-1])?void 0:e.value)!==c.value){a(tV(c.value,"HH:mm").locale(i.value).format(n.format),c.value)}}return t}));return t({blur:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.blur)||t.call(e)},focus:()=>{var e,t;null==(t=null==(e=l.value)?void 0:e.focus)||t.call(e)}}),(e,t)=>(Al(),Nl(Bt(ED),{ref_key:"select",ref:l,"model-value":Bt(s),disabled:Bt(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"onUpdate:modelValue":t=>e.$emit("update:modelValue",t),onChange:t=>e.$emit("change",t),onBlur:t=>e.$emit("blur",t),onFocus:t=>e.$emit("focus",t),onClear:()=>e.$emit("clear")},{prefix:Yn((()=>[e.prefixIcon?(Al(),Nl(Bt(py),{key:0,class:W(Bt(o).e("prefix-icon"))},{default:Yn((()=>[(Al(),Nl(Ya(e.prefixIcon)))])),_:1},8,["class"])):Xl("v-if",!0)])),default:Yn((()=>[(Al(!0),Bl(El,null,Za(Bt(v),(e=>(Al(),Nl(Bt(a),{key:e.value,label:e.value,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"])))),128))])),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}}),[["__file","time-select.vue"]])),Nq=Sa({name:"ElTimeline",setup(e,{slots:t}){const n=Kd("timeline");return To("timeline",t),()=>_r("ul",{class:[n.b()]},[eo(t,"default")])}}),Hq=Cg({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:hE},hollow:Boolean}),Dq=Sa({name:"ElTimelineItem"});var Pq=Fg(Sa({...Dq,props:Hq,setup(e){const t=e,n=Kd("timeline-item"),a=Sr((()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]));return(e,t)=>(Al(),Bl("li",{class:W([Bt(n).b(),{[Bt(n).e("center")]:e.center}])},[jl("div",{class:W(Bt(n).e("tail"))},null,2),e.$slots.dot?Xl("v-if",!0):(Al(),Bl("div",{key:0,class:W(Bt(a)),style:D({backgroundColor:e.color})},[e.icon?(Al(),Nl(Bt(py),{key:0,class:W(Bt(n).e("icon"))},{default:Yn((()=>[(Al(),Nl(Ya(e.icon)))])),_:1},8,["class"])):Xl("v-if",!0)],6)),e.$slots.dot?(Al(),Bl("div",{key:1,class:W(Bt(n).e("dot"))},[eo(e.$slots,"dot")],2)):Xl("v-if",!0),jl("div",{class:W(Bt(n).e("wrapper"))},[e.hideTimestamp||"top"!==e.placement?Xl("v-if",!0):(Al(),Bl("div",{key:0,class:W([Bt(n).e("timestamp"),Bt(n).is("top")])},te(e.timestamp),3)),jl("div",{class:W(Bt(n).e("content"))},[eo(e.$slots,"default")],2),e.hideTimestamp||"bottom"!==e.placement?Xl("v-if",!0):(Al(),Bl("div",{key:1,class:W([Bt(n).e("timestamp"),Bt(n).is("bottom")])},te(e.timestamp),3))],2)],2))}}),[["__file","timeline-item.vue"]]);const Fq=ry(Nq,{TimelineItem:Pq}),jq=sy(Pq),Kq=Cg({nowrap:Boolean});var Wq=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(Wq||{});const qq=Object.values(Wq),Uq=Cg({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Object,default:null}}),Yq=Cg({side:{type:String,values:qq,required:!0}}),Gq=Cg({arrowPadding:{type:Number,default:5},effect:{type:String,default:"light"},contentClass:String,placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},offset:{type:Number,default:8},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},showArrow:Boolean,...$E(["ariaLabel"])}),Xq=Cg({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Jq={type:Function},Zq=Cg({onBlur:Jq,onClick:Jq,onFocus:Jq,onMouseDown:Jq,onMouseEnter:Jq,onMouseLeave:Jq}),Qq=Cg({...Xq,...Uq,...Zq,...Gq,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Object,default:null},teleported:Boolean,to:{type:String,default:"body"}}),eU=Symbol("tooltipV2"),tU=Symbol("tooltipV2Content"),nU=Sa({name:"ElTooltipV2Root"});var aU=Fg(Sa({...nU,props:Xq,setup(e,{expose:t}){const n=e,a=At(n.defaultOpen),o=At(null),l=Sr({get:()=>fm(n.open)?a.value:n.open,set:e=>{var t;a.value=e,null==(t=n["onUpdate:open"])||t.call(n,e)}}),r=Sr((()=>cm(n.delayDuration)&&n.delayDuration>0)),{start:i,stop:s}=Rm((()=>{l.value=!0}),Sr((()=>n.delayDuration)),{immediate:!1}),u=Kd("tooltip-v2"),c=PE(),d=()=>{s(),l.value=!0},p=d,f=()=>{s(),l.value=!1};return cl(l,(e=>{var t;e&&(document.dispatchEvent(new CustomEvent("tooltip_v2.open")),p()),null==(t=n.onOpenChange)||t.call(n,e)})),Ba((()=>{document.addEventListener("tooltip_v2.open",f)})),Da((()=>{s(),document.removeEventListener("tooltip_v2.open",f)})),To(eU,{contentId:c,triggerRef:o,ns:u,onClose:f,onDelayOpen:()=>{Bt(r)?i():d()},onOpen:p}),t({onOpen:p,onClose:f}),(e,t)=>eo(e.$slots,"default",{open:Bt(l)})}}),[["__file","root.vue"]]);const oU=Sa({name:"ElTooltipV2Arrow"});var lU=Fg(Sa({...oU,props:{...Uq,...Yq},setup(e){const t=e,{ns:n}=Oo(eU),{arrowRef:a}=Oo(tU),o=Sr((()=>{const{style:e,width:a,height:o}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${o}px`,[`--${l}-tooltip-v2-arrow-border-width`]:a/2+"px",[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...e||{}}}));return(e,t)=>(Al(),Bl("span",{ref_key:"arrowRef",ref:a,style:D(Bt(o)),class:W(Bt(n).e("arrow"))},null,6))}}),[["__file","arrow.vue"]]);const rU=Math.min,iU=Math.max,sU=Math.round,uU=Math.floor,cU=e=>({x:e,y:e}),dU={left:"right",right:"left",bottom:"top",top:"bottom"},pU={start:"end",end:"start"};function fU(e,t,n){return iU(e,rU(t,n))}function vU(e,t){return"function"==typeof e?e(t):e}function hU(e){return e.split("-")[0]}function mU(e){return e.split("-")[1]}function gU(e){return"x"===e?"y":"x"}function yU(e){return"y"===e?"height":"width"}function bU(e){return["top","bottom"].includes(hU(e))?"y":"x"}function wU(e){return gU(bU(e))}function xU(e,t,n){void 0===n&&(n=!1);const a=mU(e),o=wU(e),l=yU(o);let r="x"===o?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=kU(r)),[r,kU(r)]}function CU(e){return e.replace(/start|end/g,(e=>pU[e]))}function kU(e){return e.replace(/left|right|bottom|top/g,(e=>dU[e]))}function SU(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _U(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function MU(e,t,n){let{reference:a,floating:o}=e;const l=bU(t),r=wU(t),i=yU(r),s=hU(t),u="y"===l,c=a.x+a.width/2-o.width/2,d=a.y+a.height/2-o.height/2,p=a[i]/2-o[i]/2;let f;switch(s){case"top":f={x:c,y:a.y-o.height};break;case"bottom":f={x:c,y:a.y+a.height};break;case"right":f={x:a.x+a.width,y:d};break;case"left":f={x:a.x-o.width,y:d};break;default:f={x:a.x,y:a.y}}switch(mU(t)){case"start":f[r]-=p*(n&&u?-1:1);break;case"end":f[r]+=p*(n&&u?-1:1)}return f}async function EU(e,t){var n;void 0===t&&(t={});const{x:a,y:o,platform:l,rects:r,elements:i,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=vU(t,e),v=SU(f),h=i[p?"floating"===d?"reference":"floating":d],m=_U(await l.getClippingRect({element:null==(n=await(null==l.isElement?void 0:l.isElement(h)))||n?h:h.contextElement||await(null==l.getDocumentElement?void 0:l.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:s})),g="floating"===d?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(i.floating)),b=await(null==l.isElement?void 0:l.isElement(y))&&await(null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},w=_U(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:s}):g);return{top:(m.top-w.top+v.top)/b.y,bottom:(w.bottom-m.bottom+v.bottom)/b.y,left:(m.left-w.left+v.left)/b.x,right:(w.right-m.right+v.right)/b.x}}function TU(){return"undefined"!=typeof window}function OU(e){return VU(e)?(e.nodeName||"").toLowerCase():"#document"}function $U(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function IU(e){var t;return null==(t=(VU(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function VU(e){return!!TU()&&(e instanceof Node||e instanceof $U(e).Node)}function AU(e){return!!TU()&&(e instanceof Element||e instanceof $U(e).Element)}function LU(e){return!!TU()&&(e instanceof HTMLElement||e instanceof $U(e).HTMLElement)}function RU(e){return!(!TU()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof $U(e).ShadowRoot)}function zU(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=FU(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!["inline","contents"].includes(o)}function BU(e){return["table","td","th"].includes(OU(e))}function NU(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(yR){return!1}}))}function HU(e){const t=DU(),n=AU(e)?FU(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function DU(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function PU(e){return["html","body","#document"].includes(OU(e))}function FU(e){return $U(e).getComputedStyle(e)}function jU(e){return AU(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function KU(e){if("html"===OU(e))return e;const t=e.assignedSlot||e.parentNode||RU(e)&&e.host||IU(e);return RU(t)?t.host:t}function WU(e){const t=KU(e);return PU(t)?e.ownerDocument?e.ownerDocument.body:e.body:LU(t)&&zU(t)?t:WU(t)}function qU(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=WU(e),l=o===(null==(a=e.ownerDocument)?void 0:a.body),r=$U(o);if(l){const e=UU(r);return t.concat(r,r.visualViewport||[],zU(o)?o:[],e&&n?qU(e):[])}return t.concat(o,qU(o,[],n))}function UU(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function YU(e){const t=FU(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=LU(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,i=sU(n)!==l||sU(a)!==r;return i&&(n=l,a=r),{width:n,height:a,$:i}}function GU(e){return AU(e)?e:e.contextElement}function XU(e){const t=GU(e);if(!LU(t))return cU(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=YU(t);let r=(l?sU(n.width):n.width)/a,i=(l?sU(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}const JU=cU(0);function ZU(e){const t=$U(e);return DU()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:JU}function QU(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),l=GU(e);let r=cU(1);t&&(a?AU(a)&&(r=XU(a)):r=XU(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$U(e))&&t}(l,n,a)?ZU(l):cU(0);let s=(o.left+i.x)/r.x,u=(o.top+i.y)/r.y,c=o.width/r.x,d=o.height/r.y;if(l){const e=$U(l),t=a&&AU(a)?$U(a):a;let n=e,o=UU(n);for(;o&&a&&t!==n;){const e=XU(o),t=o.getBoundingClientRect(),a=FU(o),l=t.left+(o.clientLeft+parseFloat(a.paddingLeft))*e.x,r=t.top+(o.clientTop+parseFloat(a.paddingTop))*e.y;s*=e.x,u*=e.y,c*=e.x,d*=e.y,s+=l,u+=r,n=$U(o),o=UU(n)}}return _U({width:c,height:d,x:s,y:u})}function eY(e,t){const n=jU(e).scrollLeft;return t?t.left+n:QU(IU(e)).left+n}function tY(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=$U(e),a=IU(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,i=0,s=0;if(o){l=o.width,r=o.height;const e=DU();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,s=o.offsetTop)}return{width:l,height:r,x:i,y:s}}(e,n);else if("document"===t)a=function(e){const t=IU(e),n=jU(e),a=e.ownerDocument.body,o=iU(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=iU(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+eY(e);const i=-n.scrollTop;return"rtl"===FU(a).direction&&(r+=iU(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:i}}(IU(e));else if(AU(t))a=function(e,t){const n=QU(e,!0,"fixed"===t),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=LU(e)?XU(e):cU(1);return{width:e.clientWidth*l.x,height:e.clientHeight*l.y,x:o*l.x,y:a*l.y}}(t,n);else{const n=ZU(e);a={...t,x:t.x-n.x,y:t.y-n.y}}return _U(a)}function nY(e,t){const n=KU(e);return!(n===t||!AU(n)||PU(n))&&("fixed"===FU(n).position||nY(n,t))}function aY(e,t,n){const a=LU(t),o=IU(t),l="fixed"===n,r=QU(e,!0,l,t);let i={scrollLeft:0,scrollTop:0};const s=cU(0);if(a||!a&&!l)if(("body"!==OU(t)||zU(o))&&(i=jU(t)),a){const e=QU(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=eY(o));let u=0,c=0;if(o&&!a&&!l){const e=o.getBoundingClientRect();c=e.top+i.scrollTop,u=e.left+i.scrollLeft-eY(o,e)}return{x:r.left+i.scrollLeft-s.x-u,y:r.top+i.scrollTop-s.y-c,width:r.width,height:r.height}}function oY(e){return"static"===FU(e).position}function lY(e,t){if(!LU(e)||"fixed"===FU(e).position)return null;if(t)return t(e);let n=e.offsetParent;return IU(e)===n&&(n=n.ownerDocument.body),n}function rY(e,t){const n=$U(e);if(NU(e))return n;if(!LU(e)){let t=KU(e);for(;t&&!PU(t);){if(AU(t)&&!oY(t))return t;t=KU(t)}return n}let a=lY(e,t);for(;a&&BU(a)&&oY(a);)a=lY(a,t);return a&&PU(a)&&oY(a)&&!HU(a)?n:a||function(e){let t=KU(e);for(;LU(t)&&!PU(t);){if(HU(t))return t;if(NU(t))return null;t=KU(t)}return null}(e)||n}const iY={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l="fixed"===o,r=IU(a),i=!!t&&NU(t.floating);if(a===r||i&&l)return n;let s={scrollLeft:0,scrollTop:0},u=cU(1);const c=cU(0),d=LU(a);if((d||!d&&!l)&&(("body"!==OU(a)||zU(r))&&(s=jU(a)),LU(a))){const e=QU(a);u=XU(a),c.x=e.x+a.clientLeft,c.y=e.y+a.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:IU,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const l="clippingAncestors"===n?NU(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=qU(e,[],!1).filter((e=>AU(e)&&"body"!==OU(e))),o=null;const l="fixed"===FU(e).position;let r=l?KU(e):e;for(;AU(r)&&!PU(r);){const t=FU(r),n=HU(r);n||"fixed"!==t.position||(o=null),(l?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||zU(r)&&!n&&nY(e,r))?a=a.filter((e=>e!==r)):o=t,r=KU(r)}return t.set(e,a),a}(t,this._c):[].concat(n),r=[...l,a],i=r[0],s=r.reduce(((e,n)=>{const a=tY(t,n,o);return e.top=iU(a.top,e.top),e.right=rU(a.right,e.right),e.bottom=rU(a.bottom,e.bottom),e.left=iU(a.left,e.left),e}),tY(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:rY,getElementRects:async function(e){const t=this.getOffsetParent||rY,n=this.getDimensions,a=await n(e.floating);return{reference:aY(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=YU(e);return{width:t,height:n}},getScale:XU,isElement:AU,isRTL:function(e){return"rtl"===FU(e).direction}};function sY(e,t,n,a){void 0===a&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=a,u=GU(e),c=o||l?[...u?qU(u):[],...qU(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));const d=u&&i?function(e,t){let n,a=null;const o=IU(e);function l(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function r(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),l();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(i||t(),!d||!p)return;const f={rootMargin:-uU(c)+"px "+-uU(o.clientWidth-(u+d))+"px "+-uU(o.clientHeight-(c+p))+"px "+-uU(u)+"px",threshold:iU(0,rU(1,s))||1};let v=!0;function h(e){const t=e[0].intersectionRatio;if(t!==s){if(!v)return r();t?r(!1,t):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}v=!1}try{a=new IntersectionObserver(h,{...f,root:o.ownerDocument})}catch(yR){a=new IntersectionObserver(h,f)}a.observe(e)}(!0),l}(u,n):null;let p,f=-1,v=null;r&&(v=new ResizeObserver((e=>{let[a]=e;a&&a.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),u&&!s&&v.observe(u),v.observe(t));let h=s?QU(e):null;return s&&function t(){const a=QU(e);!h||a.x===h.x&&a.y===h.y&&a.width===h.width&&a.height===h.height||n();h=a,p=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=v)||e.disconnect(),v=null,s&&cancelAnimationFrame(p)}}const uY=EU,cY=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:i}=t,s=await async function(e,t){const{placement:n,platform:a,elements:o}=e,l=await(null==a.isRTL?void 0:a.isRTL(o.floating)),r=hU(n),i=mU(n),s="y"===bU(n),u=["left","top"].includes(r)?-1:1,c=l&&s?-1:1,d=vU(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof v&&(f="end"===i?-1*v:v),s?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return r===(null==(n=i.offset)?void 0:n.placement)&&null!=(a=i.arrow)&&a.alignmentOffset?{}:{x:o+s.x,y:l+s.y,data:{...s,placement:r}}}}},dY=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:l=!0,crossAxis:r=!1,limiter:i={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=vU(e,t),u={x:n,y:a},c=await EU(t,s),d=bU(hU(o)),p=gU(d);let f=u[p],v=u[d];if(l){const e="y"===p?"bottom":"right";f=fU(f+c["y"===p?"top":"left"],f,f-c[e])}if(r){const e="y"===d?"bottom":"right";v=fU(v+c["y"===d?"top":"left"],v,v-c[e])}const h=i.fn({...t,[p]:f,[d]:v});return{...h,data:{x:h.x-n,y:h.y-a,enabled:{[p]:l,[d]:r}}}}}},pY=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:l,rects:r,initialPlacement:i,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...m}=vU(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};const g=hU(o),y=bU(i),b=hU(i)===i,w=await(null==s.isRTL?void 0:s.isRTL(u.floating)),x=p||(b||!h?[kU(i)]:function(e){const t=kU(e);return[CU(e),t,CU(t)]}(i)),C="none"!==v;!p&&C&&x.push(...function(e,t,n,a){const o=mU(e);let l=function(e,t,n){const a=["left","right"],o=["right","left"],l=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:a:t?a:o;case"left":case"right":return t?l:r;default:return[]}}(hU(e),"start"===n,a);return o&&(l=l.map((e=>e+"-"+o)),t&&(l=l.concat(l.map(CU)))),l}(i,h,v,w));const k=[i,...x],S=await EU(t,m),_=[];let M=(null==(a=l.flip)?void 0:a.overflows)||[];if(c&&_.push(S[g]),d){const e=xU(o,r,w);_.push(S[e[0]],S[e[1]])}if(M=[...M,{placement:o,overflows:_}],!_.every((e=>e<=0))){var E,T;const e=((null==(E=l.flip)?void 0:E.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(T=M.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:T.placement;if(!n)switch(f){case"bestFit":{var O;const e=null==(O=M.filter((e=>{if(C){const t=bU(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},fY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:i,middlewareData:s}=t,{element:u,padding:c=0}=vU(e,t)||{};if(null==u)return{};const d=SU(c),p={x:n,y:a},f=wU(o),v=yU(f),h=await r.getDimensions(u),m="y"===f,g=m?"top":"left",y=m?"bottom":"right",b=m?"clientHeight":"clientWidth",w=l.reference[v]+l.reference[f]-p[f]-l.floating[v],x=p[f]-l.reference[f],C=await(null==r.getOffsetParent?void 0:r.getOffsetParent(u));let k=C?C[b]:0;k&&await(null==r.isElement?void 0:r.isElement(C))||(k=i.floating[b]||l.floating[v]);const S=w/2-x/2,_=k/2-h[v]/2-1,M=rU(d[g],_),E=rU(d[y],_),T=M,O=k-h[v]-E,$=k/2-h[v]/2+S,I=fU(T,$,O),V=!s.arrow&&null!=mU(o)&&$!==I&&l.reference[v]/2-(${const a=new Map,o={platform:iY,...n},l={...o.platform,_c:a};return(async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,i=l.filter(Boolean),s=await(null==r.isRTL?void 0:r.isRTL(t));let u=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=MU(u,a,s),p=a,f={},v=0;for(let h=0;h({})}}),mY=Sa({name:"ElVisuallyHidden"});var gY=Fg(Sa({...mY,props:hY,setup(e){const t=e,n=Sr((()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]));return(e,t)=>(Al(),Bl("span",er(e.$attrs,{style:Bt(n)}),[eo(e.$slots,"default")],16))}}),[["__file","visual-hidden.vue"]]);Cg({});const yY=({middleware:e,placement:t,strategy:n})=>{const a=At(),o=At(),l=At(),r=At(),i=At({}),s={x:l,y:r,placement:t,strategy:n,middlewareData:i},u=async()=>{if(!Sm)return;const l=(e=>{if(!Sm)return;if(!e)return e;const t=zm(e);return t||(Vt(e)?t:e)})(a),r=zm(o);if(!l||!r)return;const i=await vY(l,r,{placement:Bt(t),strategy:Bt(n),middleware:Bt(e)});Ig(s).forEach((e=>{s[e].value=i[e]}))};return Ba((()=>{ul((()=>{u()}))})),{...s,update:u,referenceRef:a,contentRef:o}},bY=Sa({name:"ElTooltipV2Content"});var wY=Fg(Sa({...bY,props:{...Gq,...Kq},setup(e){const t=e,{triggerRef:n,contentId:a}=Oo(eU),o=At(t.placement),l=At(t.strategy),r=At(null),{referenceRef:i,contentRef:s,middlewareData:u,x:c,y:d,update:p}=yY({placement:o,strategy:l,middleware:Sr((()=>{const e=[cY(t.offset)];return t.showArrow&&e.push((({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const a=Bt(e);return a?fY({element:a,padding:t}).fn(n):{}}}))({arrowRef:r})),e}))}),f=hg().nextZIndex(),v=Kd("tooltip-v2"),h=Sr((()=>o.value.split("-")[0])),m=Sr((()=>({position:Bt(l),top:`${Bt(d)||0}px`,left:`${Bt(c)||0}px`,zIndex:f}))),g=Sr((()=>{if(!t.showArrow)return{};const{arrow:e}=Bt(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${null==e?void 0:e.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${null==e?void 0:e.y}px`||""}})),y=Sr((()=>[v.e("content"),v.is("dark","dark"===t.effect),v.is(Bt(l)),t.contentClass]));return cl(r,(()=>p())),cl((()=>t.placement),(e=>o.value=e)),Ba((()=>{cl((()=>t.reference||n.value),(e=>{i.value=e||void 0}),{immediate:!0})})),To(tU,{arrowRef:r}),(e,t)=>(Al(),Bl("div",{ref_key:"contentRef",ref:s,style:D(Bt(m)),"data-tooltip-v2-root":""},[e.nowrap?Xl("v-if",!0):(Al(),Bl("div",{key:0,"data-side":Bt(h),class:W(Bt(y))},[eo(e.$slots,"default",{contentStyle:Bt(m),contentClass:Bt(y)}),Kl(Bt(gY),{id:Bt(a),role:"tooltip"},{default:Yn((()=>[e.ariaLabel?(Al(),Bl(El,{key:0},[Yl(te(e.ariaLabel),1)],64)):eo(e.$slots,"default",{key:1})])),_:3},8,["id"]),eo(e.$slots,"arrow",{style:D(Bt(g)),side:Bt(h)})],10,["data-side"]))],4))}}),[["__file","content.vue"]]);var xY=Sa({props:Cg({setRef:{type:Function,required:!0},onlyChild:Boolean}),setup(e,{slots:t}){const n=At(),a=dB(n,(t=>{t?e.setRef(t.nextElementSibling):e.setRef(null)}));return()=>{var n;const[o]=(null==(n=t.default)?void 0:n.call(t))||[],l=e.onlyChild?(e=>{if(!d(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]})(o.children):o.children;return Kl(El,{ref:a},[l])}}});const CY=Sa({name:"ElTooltipV2Trigger"}),kY=Sa({...CY,props:{...Kq,...Zq},setup(e){const t=e,{onClose:n,onOpen:a,onDelayOpen:o,triggerRef:l,contentId:r}=Oo(eU);let i=!1;const s=e=>{l.value=e},u=()=>{i=!1},c=N$(t.onMouseEnter,o),d=N$(t.onMouseLeave,n),p=N$(t.onMouseDown,(()=>{n(),i=!0,document.addEventListener("mouseup",u,{once:!0})})),f=N$(t.onFocus,(()=>{i||a()})),v=N$(t.onBlur,n),h=N$(t.onClick,(e=>{0===e.detail&&n()})),m={blur:v,click:h,focus:f,mousedown:p,mouseenter:c,mouseleave:d},g=(e,t,n)=>{e&&Object.entries(t).forEach((([t,a])=>{e[n](t,a)}))};return cl(l,((e,t)=>{g(e,m,"addEventListener"),g(t,m,"removeEventListener"),e&&e.setAttribute("aria-describedby",r.value)})),Da((()=>{g(l.value,m,"removeEventListener"),document.removeEventListener("mouseup",u)})),(e,t)=>e.nowrap?(Al(),Nl(Bt(xY),{key:0,"set-ref":s,"only-child":""},{default:Yn((()=>[eo(e.$slots,"default")])),_:3})):(Al(),Bl("button",er({key:1,ref_key:"triggerRef",ref:l},e.$attrs),[eo(e.$slots,"default")],16))}});var SY=Fg(kY,[["__file","trigger.vue"]]);const _Y=Sa({name:"ElTooltipV2"});const MY=ry(Fg(Sa({..._Y,props:Qq,setup(e){const t=Pt(e),n=bt(om(t,Object.keys(Uq))),a=bt(om(t,Object.keys(Gq))),o=bt(om(t,Object.keys(Xq))),l=bt(om(t,Object.keys(Zq)));return(e,t)=>(Al(),Nl(aU,q(Wl(o)),{default:Yn((({open:t})=>[Kl(SY,er(l,{nowrap:""}),{default:Yn((()=>[eo(e.$slots,"trigger")])),_:3},16),Kl(Bt(j$),{to:e.to,disabled:!e.teleported},{default:Yn((()=>[e.fullTransition?(Al(),Nl(Nr,q(er({key:0},e.transitionProps)),{default:Yn((()=>[e.alwaysOn||t?(Al(),Nl(wY,q(er({key:0},a)),{arrow:Yn((({style:t,side:a})=>[e.showArrow?(Al(),Nl(lU,er({key:0},n,{style:t,side:a}),null,16,["style","side"])):Xl("v-if",!0)])),default:Yn((()=>[eo(e.$slots,"default")])),_:3},16)):Xl("v-if",!0)])),_:2},1040)):(Al(),Bl(El,{key:1},[e.alwaysOn||t?(Al(),Nl(wY,q(er({key:0},a)),{arrow:Yn((({style:t,side:a})=>[e.showArrow?(Al(),Nl(lU,er({key:0},n,{style:t,side:a}),null,16,["style","side"])):Xl("v-if",!0)])),default:Yn((()=>[eo(e.$slots,"default")])),_:3},16)):Xl("v-if",!0)],64))])),_:2},1032,["to","disabled"])])),_:3},16))}}),[["__file","tooltip.vue"]])),EY=Cg({data:{type:Array,default:()=>[]},titles:{type:Array,default:()=>[]},buttonTexts:{type:Array,default:()=>[]},filterPlaceholder:String,filterMethod:{type:Function},leftDefaultChecked:{type:Array,default:()=>[]},rightDefaultChecked:{type:Array,default:()=>[]},renderContent:{type:Function},modelValue:{type:Array,default:()=>[]},format:{type:Object,default:()=>({})},filterable:Boolean,props:{type:Object,default:()=>({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),TY=(e,t)=>[e,t].every(d)||d(e)&&Yh(t),OY={change:(e,t,n)=>[e,n].every(d)&&["left","right"].includes(t),[Hg]:e=>d(e),"left-check-change":TY,"right-check-change":TY},$Y=Cg({data:EY.data,optionRender:{type:Function},placeholder:String,title:String,filterable:Boolean,format:EY.format,filterMethod:EY.filterMethod,defaultChecked:EY.leftDefaultChecked,props:EY.props}),IY={"checked-change":TY},VY=e=>{const t={label:"label",key:"key",disabled:"disabled"};return Sr((()=>({...t,...e.props})))},AY=Sa({name:"ElTransferPanel"}),LY=Sa({...AY,props:$Y,emits:IY,setup(e,{expose:t,emit:n}){const a=e,o=io(),l=({option:e})=>e,{t:r}=wg(),i=Kd("transfer"),s=bt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=VY(a),{filteredData:c,checkedSummary:d,isIndeterminate:p,handleAllCheckedChange:f}=((e,t,n)=>{const a=VY(e),o=Sr((()=>e.data.filter((n=>h(e.filterMethod)?e.filterMethod(t.query,n):String(n[a.value.label]||n[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))))),l=Sr((()=>o.value.filter((e=>!e[a.value.disabled])))),r=Sr((()=>{const n=t.checked.length,a=e.data.length,{noChecked:o,hasChecked:l}=e.format;return o&&l?n>0?l.replace(/\${checked}/g,n.toString()).replace(/\${total}/g,a.toString()):o.replace(/\${total}/g,a.toString()):`${n}/${a}`})),i=Sr((()=>{const e=t.checked.length;return e>0&&e{const e=l.value.map((e=>e[a.value.key]));t.allChecked=e.length>0&&e.every((e=>t.checked.includes(e)))};return cl((()=>t.checked),((e,a)=>{if(s(),t.checkChangeByUser){const t=e.concat(a).filter((t=>!e.includes(t)||!a.includes(t)));n("checked-change",e,t)}else n("checked-change",e),t.checkChangeByUser=!0})),cl(l,(()=>{s()})),cl((()=>e.data),(()=>{const e=[],n=o.value.map((e=>e[a.value.key]));t.checked.forEach((t=>{n.includes(t)&&e.push(t)})),t.checkChangeByUser=!1,t.checked=e})),cl((()=>e.defaultChecked),((e,n)=>{if(n&&e.length===n.length&&e.every((e=>n.includes(e))))return;const o=[],r=l.value.map((e=>e[a.value.key]));e.forEach((e=>{r.includes(e)&&o.push(e)})),t.checkChangeByUser=!1,t.checked=o}),{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:i,updateAllChecked:s,handleAllCheckedChange:e=>{t.checked=e?l.value.map((e=>e[a.value.key])):[]}}})(a,s,n),v=Sr((()=>!dm(s.query)&&dm(c.value))),m=Sr((()=>!dm(o.default()[0].children))),{checked:g,allChecked:y,query:b}=Pt(s);return t({query:b}),(e,t)=>(Al(),Bl("div",{class:W(Bt(i).b("panel"))},[jl("p",{class:W(Bt(i).be("panel","header"))},[Kl(Bt(lA),{modelValue:Bt(y),"onUpdate:modelValue":e=>Vt(y)?y.value=e:null,indeterminate:Bt(p),"validate-event":!1,onChange:Bt(f)},{default:Yn((()=>[Yl(te(e.title)+" ",1),jl("span",null,te(Bt(d)),1)])),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),jl("div",{class:W([Bt(i).be("panel","body"),Bt(i).is("with-footer",Bt(m))])},[e.filterable?(Al(),Nl(Bt(XE),{key:0,modelValue:Bt(b),"onUpdate:modelValue":e=>Vt(b)?b.value=e:null,class:W(Bt(i).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":Bt(Q_),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):Xl("v-if",!0),Xn(Kl(Bt(iA),{modelValue:Bt(g),"onUpdate:modelValue":e=>Vt(g)?g.value=e:null,"validate-event":!1,class:W([Bt(i).is("filterable",e.filterable),Bt(i).be("panel","list")])},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(Bt(c),(t=>(Al(),Nl(Bt(lA),{key:t[Bt(u).key],class:W(Bt(i).be("panel","item")),value:t[Bt(u).key],disabled:t[Bt(u).disabled],"validate-event":!1},{default:Yn((()=>{var n;return[Kl(l,{option:null==(n=e.optionRender)?void 0:n.call(e,t)},null,8,["option"])]})),_:2},1032,["class","value","disabled"])))),128))])),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[ei,!Bt(v)&&!Bt(dm)(e.data)]]),Xn(jl("div",{class:W(Bt(i).be("panel","empty"))},[eo(e.$slots,"empty",{},(()=>[Yl(te(Bt(v)?Bt(r)("el.transfer.noMatch"):Bt(r)("el.transfer.noData")),1)]))],2),[[ei,Bt(v)||Bt(dm)(e.data)]])],2),Bt(m)?(Al(),Bl("p",{key:0,class:W(Bt(i).be("panel","footer"))},[eo(e.$slots,"default")],2)):Xl("v-if",!0)],2))}});var RY=Fg(LY,[["__file","transfer-panel.vue"]]);const zY=Sa({name:"ElTransfer"}),BY=Sa({...zY,props:EY,emits:OY,setup(e,{expose:t,emit:n}){const a=e,o=io(),{t:l}=wg(),r=Kd("transfer"),{formItem:i}=FE(),s=bt({leftChecked:[],rightChecked:[]}),u=VY(a),{sourceData:c,targetData:d}=(e=>{const t=VY(e),n=Sr((()=>e.data.reduce(((e,n)=>(e[n[t.value.key]]=n)&&e),{})));return{sourceData:Sr((()=>e.data.filter((n=>!e.modelValue.includes(n[t.value.key]))))),targetData:Sr((()=>"original"===e.targetOrder?e.data.filter((n=>e.modelValue.includes(n[t.value.key]))):e.modelValue.reduce(((e,t)=>{const a=n.value[t];return a&&e.push(a),e}),[])))}})(a),{onSourceCheckedChange:p,onTargetCheckedChange:f}=((e,t)=>({onSourceCheckedChange:(n,a)=>{e.leftChecked=n,a&&t("left-check-change",n,a)},onTargetCheckedChange:(n,a)=>{e.rightChecked=n,a&&t("right-check-change",n,a)}}))(s,n),{addToLeft:v,addToRight:h}=((e,t,n)=>{const a=VY(e),o=(e,t,a)=>{n(Hg,e),n("change",e,t,a)};return{addToLeft:()=>{const n=e.modelValue.slice();t.rightChecked.forEach((e=>{const t=n.indexOf(e);t>-1&&n.splice(t,1)})),o(n,"left",t.rightChecked)},addToRight:()=>{let n=e.modelValue.slice();const l=e.data.filter((n=>{const o=n[a.value.key];return t.leftChecked.includes(o)&&!e.modelValue.includes(o)})).map((e=>e[a.value.key]));n="unshift"===e.targetOrder?l.concat(n):n.concat(l),"original"===e.targetOrder&&(n=e.data.filter((e=>n.includes(e[a.value.key]))).map((e=>e[a.value.key]))),o(n,"right",t.leftChecked)}}})(a,s,n),m=At(),g=At(),y=Sr((()=>2===a.buttonTexts.length)),b=Sr((()=>a.titles[0]||l("el.transfer.titles.0"))),w=Sr((()=>a.titles[1]||l("el.transfer.titles.1"))),x=Sr((()=>a.filterPlaceholder||l("el.transfer.filterPlaceholder")));cl((()=>a.modelValue),(()=>{var e;a.validateEvent&&(null==(e=null==i?void 0:i.validate)||e.call(i,"change").catch((e=>cg(e))))}));const C=Sr((()=>e=>{var t;if(a.renderContent)return a.renderContent(_r,e);const n=((null==(t=o.default)?void 0:t.call(o,{option:e}))||[]).filter((e=>e.type!==Ol));return n.length?n:_r("span",e[u.value.label]||e[u.value.key])}));return t({clearQuery:e=>{switch(e){case"left":m.value.query="";break;case"right":g.value.query=""}},leftPanel:m,rightPanel:g}),(e,t)=>(Al(),Bl("div",{class:W(Bt(r).b())},[Kl(RY,{ref_key:"leftPanel",ref:m,data:Bt(c),"option-render":Bt(C),placeholder:Bt(x),title:Bt(b),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:Bt(p)},{empty:Yn((()=>[eo(e.$slots,"left-empty")])),default:Yn((()=>[eo(e.$slots,"left-footer")])),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),jl("div",{class:W(Bt(r).e("buttons"))},[Kl(Bt(ZI),{type:"primary",class:W([Bt(r).e("button"),Bt(r).is("with-texts",Bt(y))]),disabled:Bt(dm)(s.rightChecked),onClick:Bt(v)},{default:Yn((()=>[Kl(Bt(py),null,{default:Yn((()=>[Kl(Bt(Ty))])),_:1}),Bt(sm)(e.buttonTexts[0])?Xl("v-if",!0):(Al(),Bl("span",{key:0},te(e.buttonTexts[0]),1))])),_:1},8,["class","disabled","onClick"]),Kl(Bt(ZI),{type:"primary",class:W([Bt(r).e("button"),Bt(r).is("with-texts",Bt(y))]),disabled:Bt(dm)(s.leftChecked),onClick:Bt(h)},{default:Yn((()=>[Bt(sm)(e.buttonTexts[1])?Xl("v-if",!0):(Al(),Bl("span",{key:0},te(e.buttonTexts[1]),1)),Kl(Bt(py),null,{default:Yn((()=>[Kl(Bt(Vy))])),_:1})])),_:1},8,["class","disabled","onClick"])],2),Kl(RY,{ref_key:"rightPanel",ref:g,data:Bt(d),"option-render":Bt(C),placeholder:Bt(x),filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:Bt(w),"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:Bt(f)},{empty:Yn((()=>[eo(e.$slots,"right-empty")])),default:Yn((()=>[eo(e.$slots,"right-footer")])),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});const NY=ry(Fg(BY,[["__file","transfer.vue"]])),HY="$treeNodeId",DY=function(e,t){t&&!t[HY]&&Object.defineProperty(t,HY,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},PY=(e,t)=>null==t?void 0:t[e||HY],FY=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},jY=e=>{let t=!0,n=!0,a=!0;for(let o=0,l=e.length;o0&&e.lazy&&e.defaultExpandAll&&!this.isLeafByUser&&this.expand(),d(this.data)||DY(this,this.data),!this.data)return;const n=e.defaultExpandedKeys,a=e.key;a&&n&&n.includes(this.key)&&this.expand(null,e.autoExpandParent),a&&void 0!==e.currentNodeKey&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),!this.parent||1!==this.level&&!0!==this.parent.expanded||(this.canFocus=!0)}setData(e){let t;d(e)||DY(this,e),this.data=e,this.childNodes=[],t=0===this.level&&d(this.data)?this.data:WY(this,"children")||[];for(let n=0,a=t.length;n-1)return e.childNodes[t+1]}return null}get previousSibling(){const e=this.parent;if(e){const t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}contains(e,t=!0){return(this.childNodes||[]).some((n=>n===e||t&&n.contains(e)))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,n){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof UY)){if(!n){const n=this.getChildren(!0);n.includes(e.data)||(sm(t)||t<0?n.push(e.data):n.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),(e=bt(new UY(e)))instanceof UY&&e.initialize()}e.level=this.level+1,sm(t)||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState()}insertBefore(e,t){let n;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)}insertAfter(e,t){let n;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)}removeChild(e){const t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let n=0;n{if(t){let e=this.parent;for(;e.level>0;)e.expanded=!0,e=e.parent}this.expanded=!0,e&&e(),this.childNodes.forEach((e=>{e.canFocus=!0}))};this.shouldLoadData()?this.loadData((e=>{d(e)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||KY(this),n())})):n()}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild(Object.assign({data:e},t),void 0,!0)}))}collapse(){this.expanded=!1,this.childNodes.forEach((e=>{e.canFocus=!1}))}shouldLoadData(){return!0===this.store.lazy&&this.store.load&&!this.loaded}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.isLeafByUser)return void(this.isLeaf=this.isLeafByUser);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,n,a){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;if(!this.shouldLoadData()||this.store.checkDescendants){const{all:n,allWithoutDisable:o}=jY(this.childNodes);this.isLeaf||n||!o||(this.checked=!1,e=!1);const l=()=>{if(t){const n=this.childNodes;for(let r=0,i=n.length;r{l(),KY(this)}),{checked:!1!==e});l()}const o=this.parent;o&&0!==o.level&&(n||KY(o))}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const n=this.store.props;let a="children";return n&&(a=n.children||"children"),void 0===t[a]&&(t[a]=null),e&&!t[a]&&(t[a]=[]),t[a]}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.map((e=>e.data)),n={},a=[];e.forEach(((e,o)=>{const l=e[HY];!!l&&t.findIndex((e=>e[HY]===l))>=0?n[l]={index:o,data:e}:a.push({index:o,data:e})})),this.store.lazy||t.forEach((e=>{n[e[HY]]||this.removeChildByData(e)})),a.forEach((({index:e,data:t})=>{this.insertChild({data:t},e)})),this.updateLeafState()}loadData(e,t={}){if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(t).length)e&&e.call(this);else{this.loading=!0;const n=n=>{this.childNodes=[],this.doCreateChildren(n,t),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,n)},a=()=>{this.loading=!1};this.store.load(this,n,a)}}eachNode(e){const t=[this];for(;t.length;){const n=t.shift();t.unshift(...n.childNodes),e(n)}}reInitChecked(){this.store.checkStrictly||KY(this)}}class YY{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)c(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new UY({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){(0,this.load)(this.root,(e=>{this.root.doCreateChildren(e),this._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[n,r]of l.entries())r.visible=t.call(r,e,r.data,r),n%80==0&&n>0&&await gn(),a(r);if(!o.visible&&l.length){let e=!0;e=!l.some((e=>e.visible)),o.root?o.root.visible=!1===e:o.visible=!1===e}e&&o.visible&&!o.isLeaf&&(n&&!o.loaded||o.expand())};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof UY)return e;const t=y(e)?PY(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){const n=this.getNode(t);n.parent.insertBefore({data:e},n)}insertAfter(e,t){const n=this.getNode(t);n.parent.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=fm(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach((e=>{const n=t[e];n&&n.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(e&&e.data)if(t){void 0!==e.key&&(this.nodesMap[e.key]=e)}else this.nodesMap[e.id]=e}deregisterNode(e){this.key&&e&&e.data&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach((o=>{(o.checked||t&&o.indeterminate)&&(!e||e&&o.isLeaf)&&n.push(o.data),a(o)}))};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach((n=>{n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)c(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const e=a[o];this.remove(e.data)}for(let o=0,l=t.length;oe.level-t.level)),o=Object.create(null),l=Object.keys(n);a.forEach((e=>e.setChecked(!1,!1)));const r=t=>{t.childNodes.forEach((t=>{var n;o[t.data[e]]=!0,(null==(n=t.childNodes)?void 0:n.length)&&r(t)}))};for(let i=0,s=a.length;i{t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(n)}}else n.checked&&!o[s]&&n.setChecked(!1,!1)}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach((e=>{a[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach((e=>{a[e]=!0})),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}var GY=Fg(Sa({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Kd("tree"),n=Oo("NodeInstance"),a=Oo("RootTree");return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(_r,{_self:n,node:o,data:l,store:r}):eo(a.ctx.slots,"default",{node:o,data:l},(()=>[_r("span",{class:t.be("node","label")},[o.label])]))}}}),[["__file","tree-node-content.vue"]]);function XY(e){const t=Oo("TreeNodeMap",null),n={treeNodeExpand:t=>{e.node!==t&&e.node.collapse()},children:[]};return t&&t.children.push(n),To("TreeNodeMap",n),{broadcastExpanded:t=>{if(e.accordion)for(const e of n.children)e.treeNodeExpand(t)}}}const JY=Symbol("dragEvents");const ZY=Sa({name:"ElTreeNode",components:{ElCollapseTransition:yL,ElCheckbox:lA,NodeContent:GY,ElIcon:py,Loading:Fk},props:{node:{type:UY,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Kd("tree"),{broadcastExpanded:a}=XY(e),o=Oo("RootTree"),l=At(!1),r=At(!1),i=At(),s=At(),u=At(),c=Oo(JY),d=lr();To("NodeInstance",d),o||cg("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const p=o.props.props.children||"children";cl((()=>{var t;const n=null==(t=e.node.data)?void 0:t[p];return n&&[...n]}),(()=>{e.node.updateChildren()})),cl((()=>e.node.indeterminate),(t=>{v(e.node.checked,t)})),cl((()=>e.node.checked),(t=>{v(t,e.node.indeterminate)})),cl((()=>e.node.childNodes.length),(()=>e.node.reInitChecked())),cl((()=>e.node.expanded),(e=>{gn((()=>l.value=e)),e&&(r.value=!0)}));const f=e=>PY(o.props.nodeKey,e.data),v=(t,n)=>{i.value===t&&s.value===n||o.ctx.emit("check-change",e.node.data,t,n),i.value=t,s.value=n},g=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,d),e.node.collapse()):e.node.expand((()=>{t.emit("node-expand",e.node.data,e.node,d)})))},y=t=>{e.node.setChecked(t,!(null==o?void 0:o.props.checkStrictly)),gn((()=>{const t=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:t.getCheckedNodes(),checkedKeys:t.getCheckedKeys(),halfCheckedNodes:t.getHalfCheckedNodes(),halfCheckedKeys:t.getHalfCheckedKeys()})}))};return{ns:n,node$:u,tree:o,expanded:l,childNodeRendered:r,oldChecked:i,oldIndeterminate:s,getNodeKey:f,getNodeClass:t=>{const n=e.props.class;if(!n)return{};let a;if(h(n)){const{data:e}=t;a=n(e,t)}else a=n;return m(a)?{[a]:!0}:a},handleSelectChange:v,handleClick:t=>{FY(o.store,o.ctx.emit,(()=>{var t;if(null==(t=null==o?void 0:o.props)?void 0:t.nodeKey){const t=f(e.node);o.store.value.setCurrentNodeKey(t)}else o.store.value.setCurrentNode(e.node)})),o.currentNode.value=e.node,o.props.expandOnClickNode&&g(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf)&&!e.node.disabled&&y(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,d,t)},handleContextMenu:t=>{var n;(null==(n=o.instance.vnode.props)?void 0:n.onNodeContextmenu)&&(t.stopPropagation(),t.preventDefault()),o.ctx.emit("node-contextmenu",t,e.node.data,e.node,d)},handleExpandIconClick:g,handleCheckChange:y,handleChildNodeExpand:(e,t,n)=>{a(t),o.ctx.emit("node-expand",e,t,n)},handleDragStart:t=>{o.props.draggable&&c.treeNodeDragStart({event:t,treeNode:e})},handleDragOver:t=>{t.preventDefault(),o.props.draggable&&c.treeNodeDragOver({event:t,treeNode:{$el:u.value,node:e.node}})},handleDrop:e=>{e.preventDefault()},handleDragEnd:e=>{o.props.draggable&&c.treeNodeDragEnd(e)},CaretRight:Mb}}});const QY=Sa({name:"ElTree",components:{ElTreeNode:Fg(ZY,[["render",function(e,t,n,a,o,l){const r=qa("el-icon"),i=qa("el-checkbox"),s=qa("loading"),u=qa("node-content"),c=qa("el-tree-node"),d=qa("el-collapse-transition");return Xn((Al(),Bl("div",{ref:"node$",class:W([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:Fi(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:Fi(e.handleDragStart,["stop"]),onDragover:Fi(e.handleDragOver,["stop"]),onDragend:Fi(e.handleDragEnd,["stop"]),onDrop:Fi(e.handleDrop,["stop"])},[jl("div",{class:W(e.ns.be("node","content")),style:D({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(Al(),Nl(r,{key:0,class:W([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Fi(e.handleExpandIconClick,["stop"])},{default:Yn((()=>[(Al(),Nl(Ya(e.tree.props.icon||e.CaretRight)))])),_:1},8,["class","onClick"])):Xl("v-if",!0),e.showCheckbox?(Al(),Nl(i,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:Fi((()=>{}),["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):Xl("v-if",!0),e.node.loading?(Al(),Nl(r,{key:2,class:W([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:Yn((()=>[Kl(s)])),_:1},8,["class"])):Xl("v-if",!0),Kl(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Kl(d,null,{default:Yn((()=>[!e.renderAfterExpand||e.childNodeRendered?Xn((Al(),Bl("div",{key:0,class:W(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(Al(!0),Bl(El,null,Za(e.node.childNodes,(t=>(Al(),Nl(c,{key:e.getNodeKey(t),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:t,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"])))),128))],10,["aria-expanded"])),[[ei,e.expanded]]):Xl("v-if",!0)])),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[ei,e.node.visible]])}],["__file","tree-node.vue"]])},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:hE}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=wg(),a=Kd("tree"),o=Oo(bD,null),l=At(new YY({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));l.value.initialize();const r=At(l.value.root),i=At(null),s=At(null),u=At(null),{broadcastExpanded:c}=XY(e),{dragState:d}=function({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=Kd("tree"),r=At({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return To(JY,{treeNodeDragStart:({event:n,treeNode:a})=>{if(h(e.allowDrag)&&!e.allowDrag(a.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(yR){}r.value.draggingNode=a,t.emit("node-drag-start",a.node,n)},treeNodeDragOver:({event:o,treeNode:i})=>{const s=i,u=r.value.dropNode;u&&u.node.id!==s.node.id&&Yg(u.$el,l.is("drop-inner"));const c=r.value.draggingNode;if(!c||!s)return;let d=!0,p=!0,f=!0,v=!0;h(e.allowDrop)&&(d=e.allowDrop(c.node,s.node,"prev"),v=p=e.allowDrop(c.node,s.node,"inner"),f=e.allowDrop(c.node,s.node,"next")),o.dataTransfer.dropEffect=p||d||f?"move":"none",(d||p||f)&&(null==u?void 0:u.node.id)!==s.node.id&&(u&&t.emit("node-drag-leave",c.node,u.node,o),t.emit("node-drag-enter",c.node,s.node,o)),r.value.dropNode=d||p||f?s:null,s.node.nextSibling===c.node&&(f=!1),s.node.previousSibling===c.node&&(d=!1),s.node.contains(c.node,!1)&&(p=!1),(c.node===s.node||c.node.contains(s.node))&&(d=!1,p=!1,f=!1);const m=s.$el.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),g=n.value.getBoundingClientRect();let y;const b=d?p?.25:f?.45:1:-1,w=f?p?.75:d?.55:0:1;let x=-9999;const C=o.clientY-m.top;y=Cm.height*w?"after":p?"inner":"none";const k=s.$el.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),S=a.value;"before"===y?x=k.top-g.top:"after"===y&&(x=k.bottom-g.top),S.style.top=`${x}px`,S.style.left=k.right-g.left+"px","inner"===y?Ug(s.$el,l.is("drop-inner")):Yg(s.$el,l.is("drop-inner")),r.value.showDropIndicator="before"===y||"after"===y,r.value.allowDrop=r.value.showDropIndicator||v,r.value.dropType=y,t.emit("node-drag-over",c.node,s.node,o)},treeNodeDragEnd:e=>{const{draggingNode:n,dropType:a,dropNode:i}=r.value;if(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move"),n&&i){const r={data:n.node.data};"none"!==a&&n.node.remove(),"before"===a?i.node.parent.insertBefore(r,i.node):"after"===a?i.node.parent.insertAfter(r,i.node):"inner"===a&&i.node.insertChild(r),"none"!==a&&(o.value.registerNode(r),o.value.key&&n.node.eachNode((e=>{var t;null==(t=o.value.nodesMap[e.data[o.value.key]])||t.setChecked(e.checked,!o.value.checkStrictly)}))),Yg(i.$el,l.is("drop-inner")),t.emit("node-drag-end",n.node,i.node,a,e),"none"!==a&&t.emit("node-drop",n.node,i.node,a,e)}n&&!i&&t.emit("node-drag-end",n.node,null,a,e),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}({props:e,ctx:t,el$:s,dropIndicator$:u,store:l});!function({el$:e},t){const n=Kd("tree"),a=Lt([]),o=Lt([]);Ba((()=>{l()})),Ha((()=>{a.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))})),cl(o,(e=>{e.forEach((e=>{e.setAttribute("tabindex","-1")}))})),Hm(e,"keydown",(o=>{const l=o.target;if(!l.className.includes(n.b("node")))return;const r=o.code;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const i=a.value.indexOf(l);let s;if([qT.up,qT.down].includes(r)){if(o.preventDefault(),r===qT.up){s=-1===i?0:0!==i?i-1:a.value.length-1;const e=s;for(;!t.value.getNode(a.value[s].dataset.key).canFocus;){if(s--,s===e){s=-1;break}s<0&&(s=a.value.length-1)}}else{s=-1===i?0:i=a.value.length&&(s=0)}}-1!==s&&a.value[s].focus()}[qT.left,qT.right].includes(r)&&(o.preventDefault(),l.click());const u=l.querySelector('[type="checkbox"]');[qT.enter,qT.numpadEnter,qT.space].includes(r)&&u&&(o.preventDefault(),u.click())}));const l=()=>{var t;a.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),o.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);l.length?l[0].setAttribute("tabindex","0"):null==(t=a.value[0])||t.setAttribute("tabindex","0")}}({el$:s},l);const p=Sr((()=>{const{childNodes:e}=r.value,t=!!o&&0!==o.hasFilteredOptions;return(!e||0===e.length||e.every((({visible:e})=>!e)))&&!t}));cl((()=>e.currentNodeKey),(e=>{l.value.setCurrentNodeKey(e)})),cl((()=>e.defaultCheckedKeys),(e=>{l.value.setDefaultCheckedKey(e)})),cl((()=>e.defaultExpandedKeys),(e=>{l.value.setDefaultExpandedKeys(e)})),cl((()=>e.data),(e=>{l.value.setData(e)}),{deep:!0}),cl((()=>e.checkStrictly),(e=>{l.value.checkStrictly=e}));const f=()=>{const e=l.value.getCurrentNode();return e?e.data:null};return To("RootTree",{ctx:t,props:e,store:l,root:r,currentNode:i,instance:lr()}),To(BE,void 0),{ns:a,store:l,root:r,currentNode:i,dragState:d,el$:s,dropIndicator$:u,isEmpty:p,filter:t=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");l.value.filter(t)},getNodeKey:t=>PY(e.nodeKey,t.data),getNodePath:t=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const n=l.value.getNode(t);if(!n)return[];const a=[n.data];let o=n.parent;for(;o&&o!==r.value;)a.push(o.data),o=o.parent;return a.reverse()},getCheckedNodes:(e,t)=>l.value.getCheckedNodes(e,t),getCheckedKeys:e=>l.value.getCheckedKeys(e),getCurrentNode:f,getCurrentKey:()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const t=f();return t?t[e.nodeKey]:null},setCheckedNodes:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");l.value.setCheckedNodes(t,n)},setCheckedKeys:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");l.value.setCheckedKeys(t,n)},setChecked:(e,t,n)=>{l.value.setChecked(e,t,n)},getHalfCheckedNodes:()=>l.value.getHalfCheckedNodes(),getHalfCheckedKeys:()=>l.value.getHalfCheckedKeys(),setCurrentNode:(n,a=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");FY(l,t.emit,(()=>{c(n),l.value.setUserCurrentNode(n,a)}))},setCurrentKey:(n,a=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");FY(l,t.emit,(()=>{c(),l.value.setCurrentNodeKey(n,a)}))},t:n,getNode:e=>l.value.getNode(e),remove:e=>{l.value.remove(e)},append:(e,t)=>{l.value.append(e,t)},insertBefore:(e,t)=>{l.value.insertBefore(e,t)},insertAfter:(e,t)=>{l.value.insertAfter(e,t)},handleNodeExpand:(e,n,a)=>{c(n),t.emit("node-expand",e,n,a)},updateKeyChildren:(t,n)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");l.value.updateChildren(t,n)}}}});const eG=ry(Fg(QY,[["render",function(e,t,n,a,o,l){const r=qa("el-tree-node");return Al(),Bl("div",{ref:"el$",class:W([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner","inner"===e.dragState.dropType),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(Al(!0),Bl(El,null,Za(e.root.childNodes,(t=>(Al(),Nl(r,{key:e.getNodeKey(t),node:t,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"])))),128)),e.isEmpty?(Al(),Bl("div",{key:0,class:W(e.ns.e("empty-block"))},[eo(e.$slots,"empty",{},(()=>{var t;return[jl("span",{class:W(e.ns.e("empty-text"))},te(null!=(t=e.emptyText)?t:e.t("el.tree.emptyText")),3)]}))],2)):Xl("v-if",!0),Xn(jl("div",{ref:"dropIndicator$",class:W(e.ns.e("drop-indicator"))},null,2),[[ei,e.dragState.showDropIndicator]])],2)}],["__file","tree.vue"]])),tG=Sa({extends:TD,setup(e,t){const n=TD.setup(e,t);delete n.selectOptionClick;const a=lr().proxy;return gn((()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)})),cl((()=>t.attrs.visible),(e=>{gn((()=>{n.states.visible=e}))}),{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function nG(e){return e||0===e}function aG(e){return d(e)&&e.length}function oG(e){return d(e)?e:nG(e)?[e]:[]}function lG(e,t,n,a,o){for(let l=0;l[]}},setup(e){const t=Oo(bD);return cl((()=>e.data),(()=>{var n;e.data.forEach((e=>{t.states.cachedOptions.has(e.value)||t.states.cachedOptions.set(e.value,e)}));const a=(null==(n=t.selectRef)?void 0:n.querySelectorAll("input"))||[];Sm&&!Array.from(a).includes(document.activeElement)&&t.setSelected()}),{flush:"post",immediate:!0}),()=>{}}});const sG=Sa({name:"ElTreeSelect",inheritAttrs:!1,props:{...ED.props,...eG.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a}=t,o=At(),l=At(),r=Sr((()=>e.nodeKey||e.valueKey||"value")),i=((e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=Kd("tree-select");return cl((()=>e.data),(()=>{e.filterable&&gn((()=>{var e,t;null==(t=o.value)||t.filter(null==(e=a.value)?void 0:e.states.inputValue)}))}),{flush:"post"}),{...om(Pt(e),Object.keys(ED.props)),...t,class:Sr((()=>t.class)),style:Sr((()=>t.style)),"onUpdate:modelValue":e=>n(Hg,e),valueKey:l,popperClass:Sr((()=>{const t=[r.e("popper")];return e.popperClass&&t.push(e.popperClass),t.join(" ")})),filterMethod:(t="")=>{var n;e.filterMethod?e.filterMethod(t):e.remoteMethod?e.remoteMethod(t):null==(n=o.value)||n.filter(t)}}})(e,t,{select:o,tree:l,key:r}),{cacheOptions:s,...u}=((e,{attrs:t,slots:n,emit:a},{select:o,tree:l,key:r})=>{cl((()=>e.modelValue),(()=>{e.showCheckbox&&gn((()=>{const t=l.value;t&&!Uh(t.getCheckedKeys(),oG(e.modelValue))&&t.setCheckedKeys(oG(e.modelValue))}))}),{immediate:!0,deep:!0});const i=Sr((()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props}))),s=(e,t)=>{var n;const a=i.value[e];return h(a)?a(t,null==(n=l.value)?void 0:n.getNode(s("value",t))):t[a]},u=oG(e.modelValue).map((t=>lG(e.data||[],(e=>s("value",e)===t),(e=>s("children",e)),((e,t,n,a)=>a&&s("value",a))))).filter((e=>nG(e))),c=Sr((()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const t=[];return rG(e.data.concat(e.cacheData),(e=>{const n=s("value",e);t.push({value:n,currentLabel:s("label",e),isDisabled:s("disabled",e)})}),(e=>s("children",e))),t})),d=()=>{var e;return null==(e=l.value)?void 0:e.getCheckedKeys().filter((e=>{var t;const n=null==(t=l.value)?void 0:t.getNode(e);return!Yh(n)&&dm(n.childNodes)}))};return{...om(Pt(e),Object.keys(eG.props)),...t,nodeKey:r,expandOnClickNode:Sr((()=>!e.checkStrictly&&e.expandOnClickNode)),defaultExpandedKeys:Sr((()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u)),renderContent:(t,{node:a,data:o,store:l})=>t(tG,{value:s("value",o),label:s("label",o),disabled:s("disabled",o),visible:a.visible},e.renderContent?()=>e.renderContent(t,{node:a,data:o,store:l}):n.default?()=>n.default({node:a,data:o,store:l}):void 0),filterNodeMethod:(t,n,a)=>e.filterNodeMethod?e.filterNodeMethod(t,n,a):!t||new RegExp(IA(t),"i").test(s("label",n)||""),onNodeClick:(n,a,l)=>{var r,i,u,c;if(null==(r=t.onNodeClick)||r.call(t,n,a,l),!e.showCheckbox||!e.checkOnClickNode){if(e.showCheckbox||!e.checkStrictly&&!a.isLeaf)e.expandOnClickNode&&l.proxy.handleExpandIconClick();else if(!s("disabled",n)){const e=null==(i=o.value)?void 0:i.states.options.get(s("value",n));null==(u=o.value)||u.handleOptionSelect(e)}null==(c=o.value)||c.focus()}},onCheck:(n,r)=>{var i;if(!e.showCheckbox)return;const u=s("value",n),c={};rG([l.value.store.root],(e=>c[e.key]=e),(e=>e.childNodes));const p=r.checkedKeys,f=e.multiple?oG(e.modelValue).filter((e=>!(e in c)&&!p.includes(e))):[],v=f.concat(p);if(e.checkStrictly)a(Hg,e.multiple?v:v.includes(u)?u:void 0);else if(e.multiple){const e=d();a(Hg,f.concat(e))}else{const t=lG([n],(e=>!aG(s("children",e))&&!s("disabled",e)),(e=>s("children",e))),o=t?s("value",t):void 0,l=nG(e.modelValue)&&!!lG([n],(t=>s("value",t)===e.modelValue),(e=>s("children",e)));a(Hg,o===e.modelValue||l?void 0:o)}gn((()=>{var a;const o=oG(e.modelValue);l.value.setCheckedKeys(o),null==(a=t.onCheck)||a.call(t,n,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})})),null==(i=o.value)||i.focus()},onNodeExpand:(n,o,r)=>{var i;null==(i=t.onNodeExpand)||i.call(t,n,o,r),gn((()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&o.checked){const t={},n=l.value.getCheckedKeys();rG([l.value.store.root],(e=>t[e.key]=e),(e=>e.childNodes));const o=oG(e.modelValue).filter((e=>!(e in t)&&!n.includes(e))),r=d();a(Hg,o.concat(r))}}))},cacheOptions:c}})(e,t,{select:o,tree:l,key:r}),c=bt({});return a(c),Ba((()=>{Object.assign(c,{...om(l.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...om(o.value,["focus","blur","selectedLabel"])})})),()=>_r(ED,bt({...i,ref:e=>o.value=e}),{...n,default:()=>[_r(iG,{data:s.value}),_r(eG,bt({...u,ref:e=>l.value=e}))]})}});const uG=ry(Fg(sG,[["__file","tree-select.vue"]])),cG=Symbol(),dG={key:-1,level:-1,data:{}};var pG=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e))(pG||{}),fG=(e=>(e.ADD="add",e.DELETE="delete",e))(fG||{});const vG={type:Number,default:26},hG=Cg({data:{type:Array,default:()=>[]},emptyText:{type:String},height:{type:Number,default:200},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled",value:"id",class:""})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Array,default:()=>[]},indent:{type:Number,default:16},itemSize:vG,icon:{type:hE},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:[String,Number]},accordion:{type:Boolean,default:!1},filterMethod:{type:Function},perfMode:{type:Boolean,default:!0}}),mG=Cg({node:{type:Object,default:()=>dG},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:vG}),gG=Cg({node:{type:Object,required:!0}}),yG={"node-click":(e,t,n)=>e&&t&&n,"node-drop":(e,t,n)=>e&&t&&n,"node-expand":(e,t)=>e&&t,"node-collapse":(e,t)=>e&&t,"current-change":(e,t)=>e&&t,check:(e,t)=>e&&t,"check-change":(e,t)=>e&&um(t),"node-contextmenu":(e,t,n)=>e&&t&&n},bG={click:(e,t)=>!(!e||!t),drop:(e,t)=>!(!e||!t),toggle:e=>!!e,check:(e,t)=>e&&um(t)};function wG(e,t){const n=At(new Set(e.defaultExpandedKeys)),a=At(),o=Lt(),l=At();cl((()=>e.currentNodeKey),(e=>{a.value=e}),{immediate:!0}),cl((()=>e.data),(e=>{L(e)}),{immediate:!0});const{isIndeterminate:r,isChecked:i,toggleCheckbox:s,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v}=function(e,t){const n=At(new Set),a=At(new Set),{emit:o}=lr();cl([()=>t.value,()=>e.defaultCheckedKeys],(()=>gn((()=>{d(e.defaultCheckedKeys)}))),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:o,maxLevel:l}=t.value,r=n.value,i=new Set;for(let e=l-1;e>=1;--e){const t=o.get(e);t&&t.forEach((e=>{const t=e.children;if(t){let n=!0,a=!1;for(const e of t){const t=e.key;if(r.has(t))a=!0;else{if(i.has(t)){n=!1,a=!0;break}n=!1}}n?r.add(e.key):a?(i.add(e.key),r.delete(e.key)):(r.delete(e.key),i.delete(e.key))}}))}a.value=i},r=e=>n.value.has(e.key),i=(t,a,o=!0,r=!0)=>{const i=n.value,u=(t,n)=>{i[n?fG.ADD:fG.DELETE](t.key);const a=t.children;!e.checkStrictly&&a&&a.forEach((e=>{e.disabled||u(e,n)}))};u(t,a),r&&l(),o&&s(t,a)},s=(e,t)=>{const{checkedNodes:n,checkedKeys:a}=u(),{halfCheckedNodes:l,halfCheckedKeys:r}=c();o("check",e.data,{checkedKeys:a,checkedNodes:n,halfCheckedKeys:r,halfCheckedNodes:l}),o("check-change",e.data,t)};function u(a=!1){const o=[],l=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;n.value.forEach((t=>{const n=e.get(t);n&&(!a||a&&n.isLeaf)&&(l.push(t),o.push(n.data))}))}return{checkedKeys:l,checkedNodes:o}}function c(){const n=[],o=[];if((null==t?void 0:t.value)&&e.showCheckbox){const{treeNodeMap:e}=t.value;a.value.forEach((t=>{const a=e.get(t);a&&(o.push(t),n.push(a.data))}))}return{halfCheckedNodes:n,halfCheckedKeys:o}}function d(n){if(null==t?void 0:t.value){const{treeNodeMap:a}=t.value;if(e.showCheckbox&&a&&(null==n?void 0:n.length)>0){for(const e of n){const t=a.get(e);t&&!r(t)&&i(t,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:i,isChecked:r,isIndeterminate:e=>a.value.has(e.key),getCheckedKeys:function(e=!1){return u(e).checkedKeys},getCheckedNodes:function(e=!1){return u(e).checkedNodes},getHalfCheckedKeys:function(){return c().halfCheckedKeys},getHalfCheckedNodes:function(){return c().halfCheckedNodes},setChecked:function(n,a){if((null==t?void 0:t.value)&&e.showCheckbox){const e=t.value.treeNodeMap.get(n);e&&i(e,a,!1)}},setCheckedKeys:function(e){n.value.clear(),a.value.clear(),gn((()=>{d(e)}))}}}(e,o),{doFilter:m,hiddenNodeKeySet:g,isForceHiddenExpandIcon:b}=function(e,t){const n=At(new Set([])),a=At(new Set([])),o=Sr((()=>h(e.filterMethod)));return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:function(l){var r;if(!o.value)return;const i=new Set,s=a.value,u=n.value,c=[],d=(null==(r=t.value)?void 0:r.treeNodes)||[],p=e.filterMethod;return u.clear(),function e(t){t.forEach((t=>{c.push(t),(null==p?void 0:p(l,t.data,t))?c.forEach((e=>{i.add(e.key)})):t.isLeaf&&u.add(t.key);const n=t.children;if(n&&e(n),!t.isLeaf)if(i.has(t.key)){if(n){let e=!0;for(const t of n)if(!u.has(t.key)){e=!1;break}e?s.add(t.key):s.delete(t.key)}}else u.add(t.key);c.pop()}))}(d),i},isForceHiddenExpandIcon:function(e){return a.value.has(e.key)}}}(e,o),w=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.value)||pG.KEY})),x=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.children)||pG.CHILDREN})),C=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.disabled)||pG.DISABLED})),k=Sr((()=>{var t;return(null==(t=e.props)?void 0:t.label)||pG.LABEL})),S=Sr((()=>{var e;const t=n.value,a=g.value,l=[],r=(null==(e=o.value)?void 0:e.treeNodes)||[],i=[];for(let n=r.length-1;n>=0;--n)i.push(r[n]);for(;i.length;){const e=i.pop();if(!a.has(e.key)&&(l.push(e),e.children&&t.has(e.key)))for(let t=e.children.length-1;t>=0;--t)i.push(e.children[t])}return l})),_=Sr((()=>S.value.length>0));function M(e){return e[x.value]}function E(e){return e?e[w.value]:""}function T(e){return e[C.value]}function O(e){return e[k.value]}function $(e){n.value.has(e.key)?V(e):I(e)}function I(a){const l=n.value;if(o.value&&e.accordion){const{treeNodeMap:e}=o.value;l.forEach((t=>{const n=e.get(t);a&&a.level===(null==n?void 0:n.level)&&l.delete(t)}))}l.add(a.key),t("node-expand",a.data,a)}function V(e){n.value.delete(e.key),t("node-collapse",e.data,e)}function A(e){const t=a.value;return void 0!==t&&t===e.key}function L(e){gn((()=>o.value=function(e){const t=new Map,n=new Map;let a=1;const o=function e(o,l=1,r){var i;const s=[];for(const a of o){const o=E(a),u={level:l,key:o,data:a};u.label=O(a),u.parent=r;const c=M(a);u.disabled=T(a),u.isLeaf=!c||0===c.length,c&&c.length&&(u.children=e(c,l+1,u)),s.push(u),t.set(o,u),n.has(l)||n.set(l,[]),null==(i=n.get(l))||i.push(u)}return l>a&&(a=l),s}(e);return{treeNodeMap:t,levelTreeNodeMap:n,maxLevel:a,treeNodes:o}}(e)))}function R(e){var t;const n=y(e)?E(e):e;return null==(t=o.value)?void 0:t.treeNodeMap.get(n)}return{tree:o,flattenTree:S,isNotEmpty:_,listRef:l,getKey:E,getChildren:M,toggleExpand:$,toggleCheckbox:s,isExpanded:function(e){return n.value.has(e.key)},isChecked:i,isIndeterminate:r,isDisabled:function(e){return!!e.disabled},isCurrent:A,isForceHiddenExpandIcon:b,handleNodeClick:function(n,o){t("node-click",n.data,n,o),function(e){A(e)||(a.value=e.key,t("current-change",e.data,e))}(n),e.expandOnClickNode&&$(n),e.showCheckbox&&(e.checkOnClickNode||n.isLeaf&&e.checkOnClickLeaf)&&!n.disabled&&s(n,!i(n),!0)},handleNodeDrop:function(e,n){t("node-drop",e.data,e,n)},handleNodeCheck:function(e,t){s(e,t)},getCurrentNode:function(){var e,t;if(a.value)return null==(t=null==(e=o.value)?void 0:e.treeNodeMap.get(a.value))?void 0:t.data},getCurrentKey:function(){return a.value},setCurrentKey:function(e){a.value=e},getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:d,getHalfCheckedNodes:p,setChecked:f,setCheckedKeys:v,filter:function(e){const t=m(e);t&&(n.value=t)},setData:L,getNode:R,expandNode:I,collapseNode:V,setExpandedKeys:function(e){const t=new Set,a=o.value.treeNodeMap;e.forEach((e=>{let n=a.get(e);for(;n&&!t.has(n.key);)t.add(n.key),n=n.parent})),n.value=t},scrollToNode:function(e,t="auto"){const n=R(e);n&&l.value&&l.value.scrollToItem(S.value.indexOf(n),t)},scrollTo:function(e){var t;null==(t=l.value)||t.scrollTo(e)}}}var xG=Sa({name:"ElTreeNodeContent",props:gG,setup(e){const t=Oo(cG),n=Kd("tree");return()=>{const a=e.node,{data:o}=a;return(null==t?void 0:t.ctx.slots.default)?t.ctx.slots.default({node:a,data:o}):_r("span",{class:n.be("node","label")},[null==a?void 0:a.label])}}});const CG=Sa({name:"ElTreeNode"}),kG=Sa({...CG,props:mG,emits:bG,setup(e,{emit:t}){const n=e,a=Oo(cG),o=Kd("tree"),l=Sr((()=>{var e;return null!=(e=null==a?void 0:a.props.indent)?e:16})),r=Sr((()=>{var e;return null!=(e=null==a?void 0:a.props.icon)?e:Mb})),i=e=>{const t=null==a?void 0:a.props.props.class;if(!t)return{};let n;if(h(t)){const{data:a}=e;n=t(a,e)}else n=t;return m(n)?{[n]:!0}:n},s=e=>{t("click",n.node,e)},u=e=>{t("drop",n.node,e)},c=()=>{t("toggle",n.node)},d=e=>{t("check",n.node,e)},p=e=>{var t,o,l,r;(null==(l=null==(o=null==(t=null==a?void 0:a.instance)?void 0:t.vnode)?void 0:o.props)?void 0:l.onNodeContextmenu)&&(e.stopPropagation(),e.preventDefault()),null==a||a.ctx.emit("node-contextmenu",e,null==(r=n.node)?void 0:r.data,n.node)};return(e,t)=>{var n,a,f;return Al(),Bl("div",{ref:"node$",class:W([Bt(o).b("node"),Bt(o).is("expanded",e.expanded),Bt(o).is("current",e.current),Bt(o).is("focusable",!e.disabled),Bt(o).is("checked",!e.disabled&&e.checked),i(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":null==(n=e.node)?void 0:n.key,onClick:Fi(s,["stop"]),onContextmenu:p,onDragover:Fi((()=>{}),["prevent"]),onDragenter:Fi((()=>{}),["prevent"]),onDrop:Fi(u,["stop"])},[jl("div",{class:W(Bt(o).be("node","content")),style:D({paddingLeft:(e.node.level-1)*Bt(l)+"px",height:e.itemSize+"px"})},[Bt(r)?(Al(),Nl(Bt(py),{key:0,class:W([Bt(o).is("leaf",!!(null==(a=e.node)?void 0:a.isLeaf)),Bt(o).is("hidden",e.hiddenExpandIcon),{expanded:!(null==(f=e.node)?void 0:f.isLeaf)&&e.expanded},Bt(o).be("node","expand-icon")]),onClick:Fi(c,["stop"])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(r))))])),_:1},8,["class","onClick"])):Xl("v-if",!0),e.showCheckbox?(Al(),Nl(Bt(lA),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:d,onClick:Fi((()=>{}),["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):Xl("v-if",!0),Kl(Bt(xG),{node:e.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var SG=Fg(kG,[["__file","tree-node.vue"]]);const _G=Sa({name:"ElTreeV2"}),MG=Sa({..._G,props:hG,emits:yG,setup(e,{expose:t,emit:n}){const a=e,o=io(),l=Sr((()=>a.itemSize));To(cG,{ctx:{emit:n,slots:o},props:a,instance:lr()}),To(BE,void 0);const{t:r}=wg(),i=Kd("tree"),{flattenTree:s,isNotEmpty:u,listRef:c,toggleExpand:d,isExpanded:p,isIndeterminate:f,isChecked:v,isDisabled:h,isCurrent:m,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeDrop:b,handleNodeCheck:w,toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:T,setChecked:O,setCheckedKeys:$,filter:I,setData:V,getNode:A,expandNode:L,collapseNode:R,setExpandedKeys:z,scrollToNode:B,scrollTo:N}=wG(a,n);return t({toggleCheckbox:x,getCurrentNode:C,getCurrentKey:k,setCurrentKey:S,getCheckedKeys:_,getCheckedNodes:M,getHalfCheckedKeys:E,getHalfCheckedNodes:T,setChecked:O,setCheckedKeys:$,filter:I,setData:V,getNode:A,expandNode:L,collapseNode:R,setExpandedKeys:z,scrollToNode:B,scrollTo:N}),(e,t)=>(Al(),Bl("div",{class:W([Bt(i).b(),{[Bt(i).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[Bt(u)?(Al(),Nl(Bt(uF),{key:0,ref_key:"listRef",ref:c,"class-name":Bt(i).b("virtual-list"),data:Bt(s),total:Bt(s).length,height:e.height,"item-size":Bt(l),"perf-mode":e.perfMode},{default:Yn((({data:t,index:n,style:a})=>[(Al(),Nl(SG,{key:t[n].key,style:D(a),node:t[n],expanded:Bt(p)(t[n]),"show-checkbox":e.showCheckbox,checked:Bt(v)(t[n]),indeterminate:Bt(f)(t[n]),"item-size":Bt(l),disabled:Bt(h)(t[n]),current:Bt(m)(t[n]),"hidden-expand-icon":Bt(g)(t[n]),onClick:Bt(y),onToggle:Bt(d),onCheck:Bt(w),onDrop:Bt(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))])),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(Al(),Bl("div",{key:1,class:W(Bt(i).e("empty-block"))},[eo(e.$slots,"empty",{},(()=>{var t;return[jl("span",{class:W(Bt(i).e("empty-text"))},te(null!=(t=e.emptyText)?t:Bt(r)("el.tree.emptyText")),3)]}))],2))],2))}});const EG=ry(Fg(MG,[["__file","tree.vue"]])),TG=Symbol("uploadContextKey");class OG extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}}function $G(e,t,n){let a;return a=n.response?`${n.response.error||n.response}`:n.responseText?`${n.responseText}`:`fail to ${t.method} ${e} ${n.status}`,new OG(a,n.status,t.method,e)}const IG=["text","picture","picture-card"];let VG=1;const AG=()=>Date.now()+VG++,LG=Cg({action:{type:String,default:"#"},headers:{type:Object},method:{type:String,default:"post"},data:{type:[Object,Function,Promise],default:()=>({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Array,default:()=>[]},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:IG,default:"text"},httpRequest:{type:Function,default:e=>{"undefined"==typeof XMLHttpRequest&&ug("ElUpload","XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",(t=>{const n=t;n.percent=t.total>0?t.loaded/t.total*100:0,e.onProgress(n)}));const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))d(r)&&r.length?a.append(l,...r):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",(()=>{e.onError($G(n,e,t))})),t.addEventListener("load",(()=>{if(t.status<200||t.status>=300)return e.onError($G(n,e,t));e.onSuccess(function(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(yR){return t}}(t))})),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach(((e,n)=>t.setRequestHeader(n,e)));else for(const[l,r]of Object.entries(o))Yh(r)||t.setRequestHeader(l,String(r));return t.send(a),t}},disabled:Boolean,limit:Number}),RG=Cg({...LG,beforeUpload:{type:Function,default:a},beforeRemove:{type:Function},onRemove:{type:Function,default:a},onChange:{type:Function,default:a},onPreview:{type:Function,default:a},onSuccess:{type:Function,default:a},onProgress:{type:Function,default:a},onError:{type:Function,default:a},onExceed:{type:Function,default:a},crossorigin:{type:String}}),zG=Cg({files:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},handlePreview:{type:Function,default:a},listType:{type:String,values:IG,default:"text"},crossorigin:{type:String}}),BG=Sa({name:"ElUploadList"}),NG=Sa({...BG,props:zG,emits:{remove:e=>!!e},setup(e,{emit:t}){const n=e,{t:a}=wg(),o=Kd("upload"),l=Kd("icon"),r=Kd("list"),i=qE(),s=At(!1),u=Sr((()=>[o.b("list"),o.bm("list",n.listType),o.is("disabled",n.disabled)])),c=e=>{t("remove",e)};return(e,t)=>(Al(),Nl(Mi,{tag:"ul",class:W(Bt(u)),name:Bt(r).b()},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(e.files,((t,n)=>(Al(),Bl("li",{key:t.uid||t.name,class:W([Bt(o).be("list","item"),Bt(o).is(t.status),{focusing:s.value}]),tabindex:"0",onKeydown:Ki((e=>!Bt(i)&&c(t)),["delete"]),onFocus:e=>s.value=!0,onBlur:e=>s.value=!1,onClick:e=>s.value=!1},[eo(e.$slots,"default",{file:t,index:n},(()=>["picture"===e.listType||"uploading"!==t.status&&"picture-card"===e.listType?(Al(),Bl("img",{key:0,class:W(Bt(o).be("list","item-thumbnail")),src:t.url,crossorigin:e.crossorigin,alt:""},null,10,["src","crossorigin"])):Xl("v-if",!0),"uploading"===t.status||"picture-card"!==e.listType?(Al(),Bl("div",{key:1,class:W(Bt(o).be("list","item-info"))},[jl("a",{class:W(Bt(o).be("list","item-name")),onClick:Fi((n=>e.handlePreview(t)),["prevent"])},[Kl(Bt(py),{class:W(Bt(l).m("document"))},{default:Yn((()=>[Kl(Bt($x))])),_:1},8,["class"]),jl("span",{class:W(Bt(o).be("list","item-file-name")),title:t.name},te(t.name),11,["title"])],10,["onClick"]),"uploading"===t.status?(Al(),Nl(Bt(fP),{key:0,type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:Number(t.percentage),style:D("picture-card"===e.listType?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Xl("v-if",!0)],2)):Xl("v-if",!0),jl("label",{class:W(Bt(o).be("list","item-status-label"))},["text"===e.listType?(Al(),Nl(Bt(py),{key:0,class:W([Bt(l).m("upload-success"),Bt(l).m("circle-check")])},{default:Yn((()=>[Kl(Bt(nw))])),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(Al(),Nl(Bt(py),{key:1,class:W([Bt(l).m("upload-success"),Bt(l).m("check")])},{default:Yn((()=>[Kl(Bt(Kb))])),_:1},8,["class"])):Xl("v-if",!0)],2),Bt(i)?Xl("v-if",!0):(Al(),Nl(Bt(py),{key:2,class:W(Bt(l).m("close")),onClick:e=>c(t)},{default:Yn((()=>[Kl(Bt(mw))])),_:2},1032,["class","onClick"])),Xl(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Xl(" This is a bug which needs to be fixed "),Xl(" TODO: Fix the incorrect navigation interaction "),Bt(i)?Xl("v-if",!0):(Al(),Bl("i",{key:3,class:W(Bt(l).m("close-tip"))},te(Bt(a)("el.upload.deleteTip")),3)),"picture-card"===e.listType?(Al(),Bl("span",{key:4,class:W(Bt(o).be("list","item-actions"))},[jl("span",{class:W(Bt(o).be("list","item-preview")),onClick:n=>e.handlePreview(t)},[Kl(Bt(py),{class:W(Bt(l).m("zoom-in"))},{default:Yn((()=>[Kl(Bt(pE))])),_:1},8,["class"])],10,["onClick"]),Bt(i)?Xl("v-if",!0):(Al(),Bl("span",{key:0,class:W(Bt(o).be("list","item-delete")),onClick:e=>c(t)},[Kl(Bt(py),{class:W(Bt(l).m("delete"))},{default:Yn((()=>[Kl(Bt(cx))])),_:1},8,["class"])],10,["onClick"]))],2)):Xl("v-if",!0)]))],42,["onKeydown","onFocus","onBlur","onClick"])))),128)),eo(e.$slots,"append")])),_:3},8,["class","name"]))}});var HG=Fg(NG,[["__file","upload-list.vue"]]);const DG=Cg({disabled:{type:Boolean,default:!1}}),PG={file:e=>d(e)},FG=Sa({name:"ElUploadDrag"}),jG=Sa({...FG,props:DG,emits:PG,setup(e,{emit:t}){Oo(TG)||ug("ElUploadDrag","usage: ");const n=Kd("upload"),a=At(!1),o=qE(),l=e=>{if(o.value)return;a.value=!1,e.stopPropagation();const n=Array.from(e.dataTransfer.files);t("file",n)},r=()=>{o.value||(a.value=!0)};return(e,t)=>(Al(),Bl("div",{class:W([Bt(n).b("dragger"),Bt(n).is("dragover",a.value)]),onDrop:Fi(l,["prevent"]),onDragover:Fi(r,["prevent"]),onDragleave:Fi((e=>a.value=!1),["prevent"])},[eo(e.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var KG=Fg(jG,[["__file","upload-dragger.vue"]]);const WG=Cg({...LG,beforeUpload:{type:Function,default:a},onRemove:{type:Function,default:a},onStart:{type:Function,default:a},onSuccess:{type:Function,default:a},onProgress:{type:Function,default:a},onError:{type:Function,default:a},onExceed:{type:Function,default:a}}),qG=Sa({name:"ElUploadContent",inheritAttrs:!1}),UG=Sa({...qG,props:WG,setup(e,{expose:t}){const n=e,a=Kd("upload"),o=qE(),l=Lt({}),r=Lt(),i=e=>{if(0===e.length)return;const{autoUpload:t,limit:a,fileList:o,multiple:l,onStart:r,onExceed:i}=n;if(a&&o.length+e.length>a)i(e,o);else{l||(e=e.slice(0,1));for(const n of e){const e=n;e.uid=AG(),r(e),t&&s(e)}}},s=async e=>{if(r.value.value="",!n.beforeUpload)return u(e);let t,a={};try{const o=n.data,l=n.beforeUpload(e);a=k(n.data)?lh(n.data):n.data,t=await l,k(n.data)&&Uh(o,a)&&(a=lh(n.data))}catch(yR){t=!1}if(!1===t)return void n.onRemove(e);let o=e;t instanceof Blob&&(o=t instanceof File?t:new File([t],e.name,{type:e.type})),u(Object.assign(o,{uid:e.uid}),a)},u=async(e,t)=>{const{headers:a,data:o,method:r,withCredentials:i,name:s,action:u,onProgress:c,onSuccess:d,onError:p,httpRequest:f}=n;try{t=await(async(e,t)=>h(e)?e(t):e)(null!=t?t:o,e)}catch(yR){return void n.onRemove(e)}const{uid:v}=e,m={headers:a||{},withCredentials:i,file:e,data:t,method:r,filename:s,action:u,onProgress:t=>{c(t,e)},onSuccess:t=>{d(t,e),delete l.value[v]},onError:t=>{p(t,e),delete l.value[v]}},g=f(m);l.value[v]=g,g instanceof Promise&&g.then(m.onSuccess,m.onError)},c=e=>{const t=e.target.files;t&&i(Array.from(t))},d=()=>{o.value||(r.value.value="",r.value.click())},p=()=>{d()};return t({abort:e=>{const t=Vg(l.value).filter(e?([t])=>String(e.uid)===t:()=>!0);t.forEach((([e,t])=>{t instanceof XMLHttpRequest&&t.abort(),delete l.value[e]}))},upload:s}),(e,t)=>(Al(),Bl("div",{class:W([Bt(a).b(),Bt(a).m(e.listType),Bt(a).is("drag",e.drag),Bt(a).is("disabled",Bt(o))]),tabindex:Bt(o)?"-1":"0",onClick:d,onKeydown:Ki(Fi(p,["self"]),["enter","space"])},[e.drag?(Al(),Nl(KG,{key:0,disabled:Bt(o),onFile:i},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["disabled"])):eo(e.$slots,"default",{key:1}),jl("input",{ref_key:"inputRef",ref:r,class:W(Bt(a).e("input")),name:e.name,disabled:Bt(o),multiple:e.multiple,accept:e.accept,type:"file",onChange:c,onClick:Fi((()=>{}),["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var YG=Fg(UG,[["__file","upload-content.vue"]]);const GG=e=>{var t;(null==(t=e.url)?void 0:t.startsWith("blob:"))&&URL.revokeObjectURL(e.url)},XG=Sa({name:"ElUpload"});const JG=ry(Fg(Sa({...XG,props:RG,setup(e,{expose:t}){const n=e,a=qE(),o=Lt(),{abort:l,submit:r,clearFiles:i,uploadFiles:s,handleStart:u,handleError:c,handleRemove:d,handleSuccess:p,handleProgress:f,revokeFileObjectURL:v}=((e,t)=>{const n=ig(e,"fileList",void 0,{passive:!0}),a=e=>n.value.find((t=>t.uid===e.uid));function o(e){var n;null==(n=t.value)||n.abort(e)}function l(e){n.value=n.value.filter((t=>t.uid!==e.uid))}return cl((()=>e.listType),(t=>{"picture-card"!==t&&"picture"!==t||(n.value=n.value.map((t=>{const{raw:a,url:o}=t;if(!o&&a)try{t.url=URL.createObjectURL(a)}catch(l){e.onError(l,t,n.value)}return t})))})),cl(n,(e=>{for(const t of e)t.uid||(t.uid=AG()),t.status||(t.status="success")}),{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:function(e=["ready","uploading","success","fail"]){n.value=n.value.filter((t=>!e.includes(t.status)))},handleError:(t,o)=>{const r=a(o);r&&(console.error(t),r.status="fail",l(r),e.onError(t,r,n.value),e.onChange(r,n.value))},handleProgress:(t,o)=>{const l=a(o);l&&(e.onProgress(t,l,n.value),l.status="uploading",l.percentage=Math.round(t.percent))},handleStart:t=>{Yh(t.uid)&&(t.uid=AG());const a={name:t.name,percentage:0,status:"ready",size:t.size,raw:t,uid:t.uid};if("picture-card"===e.listType||"picture"===e.listType)try{a.url=URL.createObjectURL(t)}catch(o){cg("ElUpload",o.message),e.onError(o,a,n.value)}n.value=[...n.value,a],e.onChange(a,n.value)},handleSuccess:(t,o)=>{const l=a(o);l&&(l.status="success",l.response=t,e.onSuccess(t,l,n.value),e.onChange(l,n.value))},handleRemove:async t=>{const r=t instanceof File?a(t):t;r||ug("ElUpload","file to be removed not found");const i=t=>{o(t),l(t),e.onRemove(t,n.value),GG(t)};e.beforeRemove?!1!==await e.beforeRemove(r,n.value)&&i(r):i(r)},submit:function(){n.value.filter((({status:e})=>"ready"===e)).forEach((({raw:e})=>{var n;return e&&(null==(n=t.value)?void 0:n.upload(e))}))},revokeFileObjectURL:GG}})(n,o),h=Sr((()=>"picture-card"===n.listType)),m=Sr((()=>({...n,fileList:s.value,onStart:u,onProgress:f,onSuccess:p,onError:c,onRemove:d})));return Da((()=>{s.value.forEach(v)})),To(TG,{accept:Kt(n,"accept")}),t({abort:l,submit:r,clearFiles:i,handleStart:u,handleRemove:d}),(e,t)=>(Al(),Bl("div",null,[Bt(h)&&e.showFileList?(Al(),Nl(HG,{key:0,disabled:Bt(a),"list-type":e.listType,files:Bt(s),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Bt(d)},Qa({append:Yn((()=>[Kl(YG,er({ref_key:"uploadRef",ref:o},Bt(m)),{default:Yn((()=>[e.$slots.trigger?eo(e.$slots,"trigger",{key:0}):Xl("v-if",!0),!e.$slots.trigger&&e.$slots.default?eo(e.$slots,"default",{key:1}):Xl("v-if",!0)])),_:3},16)])),_:2},[e.$slots.file?{name:"default",fn:Yn((({file:t,index:n})=>[eo(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Xl("v-if",!0),!Bt(h)||Bt(h)&&!e.showFileList?(Al(),Nl(YG,er({key:1,ref_key:"uploadRef",ref:o},Bt(m)),{default:Yn((()=>[e.$slots.trigger?eo(e.$slots,"trigger",{key:0}):Xl("v-if",!0),!e.$slots.trigger&&e.$slots.default?eo(e.$slots,"default",{key:1}):Xl("v-if",!0)])),_:3},16)):Xl("v-if",!0),e.$slots.trigger?eo(e.$slots,"default",{key:2}):Xl("v-if",!0),eo(e.$slots,"tip"),!Bt(h)&&e.showFileList?(Al(),Nl(HG,{key:3,disabled:Bt(a),"list-type":e.listType,files:Bt(s),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:Bt(d)},Qa({_:2},[e.$slots.file?{name:"default",fn:Yn((({file:t,index:n})=>[eo(e.$slots,"file",{file:t,index:n})]))}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):Xl("v-if",!0)]))}}),[["__file","upload.vue"]])),ZG=Cg({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:[String,Array],default:"Element Plus"},font:{type:Object},gap:{type:Array,default:()=>[100,100]},offset:{type:Array}});function QG(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function eX(){return function(e,t,n,a,o,l,r,i){const[s,u,c,p]=QG(a,o,n);if(e instanceof HTMLImageElement)s.drawImage(e,0,0,c,p);else{const{color:t,fontSize:a,fontStyle:r,fontWeight:i,fontFamily:u,textAlign:p,textBaseline:f}=l,v=Number(a)*n;s.font=`${r} normal ${i} ${v}px/${o}px ${u}`,s.fillStyle=t,s.textAlign=p,s.textBaseline=f;const h=d(e)?e:[e];null==h||h.forEach(((e,t)=>{s.fillText(null!=e?e:"",c/2,t*(v+3*n))}))}const f=Math.PI/180*Number(t),v=Math.max(a,o),[h,m,g]=QG(v,v,n);h.translate(g/2,g/2),h.rotate(f),c>0&&p>0&&h.drawImage(u,-c/2,-p/2);let y=0,b=0,w=0,x=0;const C=c/2,k=p/2;[[0-C,0-k],[0+C,0-k],[0+C,0+k],[0-C,0+k]].forEach((([e,t])=>{const[n,a]=function(e,t){return[e*Math.cos(f)-t*Math.sin(f),e*Math.sin(f)+t*Math.cos(f)]}(e,t);y=Math.min(y,n),b=Math.max(b,n),w=Math.min(w,a),x=Math.max(x,a)}));const S=y+g/2,_=w+g/2,M=b-y,E=x-w,T=r*n,O=i*n,$=2*(M+T),I=E+O,[V,A]=QG($,I);function L(e=0,t=0){V.drawImage(m,S,_,M,E,e,t,M,E)}return L(),L(M+T,-E/2-O/2),L(M+T,+E/2+O/2),[A.toDataURL(),$/n,I/n]}}const tX=Sa({name:"ElWatermark"});const nX=ry(Fg(Sa({...tX,props:ZG,setup(e){const t=e,n={position:"relative"},a=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.color)?n:"rgba(0,0,0,.15)"})),o=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontSize)?n:16})),l=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontWeight)?n:"normal"})),r=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontStyle)?n:"normal"})),i=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.fontFamily)?n:"sans-serif"})),s=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textAlign)?n:"center"})),u=Sr((()=>{var e,n;return null!=(n=null==(e=t.font)?void 0:e.textBaseline)?n:"hanging"})),c=Sr((()=>t.gap[0])),p=Sr((()=>t.gap[1])),f=Sr((()=>c.value/2)),v=Sr((()=>p.value/2)),h=Sr((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[0])?n:f.value})),m=Sr((()=>{var e,n;return null!=(n=null==(e=t.offset)?void 0:e[1])?n:v.value})),g=()=>{const e={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let n=h.value-f.value,a=m.value-v.value;return n>0&&(e.left=`${n}px`,e.width=`calc(100% - ${n}px)`,n=0),a>0&&(e.top=`${a}px`,e.height=`calc(100% - ${a}px)`,a=0),e.backgroundPosition=`${n}px ${a}px`,e},y=Lt(null),b=Lt(),w=At(!1),x=()=>{b.value&&(b.value.remove(),b.value=void 0)},C=(e,t)=>{var n;y.value&&b.value&&(w.value=!0,b.value.setAttribute("style",function(e){return Object.keys(e).map((t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`)).join(" ")}({...g(),backgroundImage:`url('${e}')`,backgroundSize:`${Math.floor(t)}px`})),null==(n=y.value)||n.append(b.value),setTimeout((()=>{w.value=!1})))},k=eX(),S=()=>{const e=document.createElement("canvas").getContext("2d"),n=t.image,f=t.content,v=t.rotate;if(e){b.value||(b.value=document.createElement("div"));const h=window.devicePixelRatio||1,[m,g]=(e=>{let n=120,a=64;const l=t.image,r=t.content,s=t.width,u=t.height;if(!l&&e.measureText){e.font=`${Number(o.value)}px ${i.value}`;const t=d(r)?r:[r],l=t.map((t=>{const n=e.measureText(t);return[n.width,void 0!==n.fontBoundingBoxAscent?n.fontBoundingBoxAscent+n.fontBoundingBoxDescent:n.actualBoundingBoxAscent+n.actualBoundingBoxDescent]}));n=Math.ceil(Math.max(...l.map((e=>e[0])))),a=Math.ceil(Math.max(...l.map((e=>e[1]))))*t.length+3*(t.length-1)}return[null!=s?s:n,null!=u?u:a]})(e),y=e=>{const[t,n]=k(e||"",v,h,m,g,{color:a.value,fontSize:o.value,fontStyle:r.value,fontWeight:l.value,fontFamily:i.value,textAlign:s.value,textBaseline:u.value},c.value,p.value);C(t,n)};if(n){const e=new Image;e.onload=()=>{y(e)},e.onerror=()=>{y(f)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=n}else y(f)}};Ba((()=>{S()})),cl((()=>t),(()=>{S()}),{deep:!0,flush:"post"}),Da((()=>{x()}));return tg(y,(e=>{w.value||e.forEach((e=>{((e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),"attributes"===e.type&&e.target===t&&(n=!0),n})(e,b.value)&&(x(),S())}))}),{attributes:!0,subtree:!0,childList:!0}),(e,t)=>(Al(),Bl("div",{ref_key:"containerRef",ref:y,style:D([n])},[eo(e.$slots,"default")],4))}}),[["__file","watermark.vue"]])),aX=Cg({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:Object},targetAreaClickable:{type:Boolean,default:!0}}),oX=(e,t,n,a,o)=>{const l=At(null),r=()=>{let t;return t=m(e.value)?document.querySelector(e.value):h(e.value)?e.value():e.value,t},i=()=>{const e=r();if(!e||!t.value)return void(l.value=null);(function(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n})(e)||e.scrollIntoView(o.value);const{left:n,top:a,width:i,height:s}=e.getBoundingClientRect();l.value={left:n,top:a,width:i,height:s,radius:0}};Ba((()=>{cl([t,e],(()=>{i()}),{immediate:!0}),window.addEventListener("resize",i)})),Da((()=>{window.removeEventListener("resize",i)}));const s=e=>{var t;return null!=(t=d(n.value.offset)?n.value.offset[e]:n.value.offset)?t:6},u=Sr((()=>{var e;if(!l.value)return l.value;const t=s(0),a=s(1),o=(null==(e=n.value)?void 0:e.radius)||2;return{left:l.value.left-t,top:l.value.top-a,width:l.value.width+2*t,height:l.value.height+2*a,radius:o}})),c=Sr((()=>{const e=r();return a.value&&e&&window.DOMRect?{getBoundingClientRect(){var e,t,n,a;return window.DOMRect.fromRect({width:(null==(e=u.value)?void 0:e.width)||0,height:(null==(t=u.value)?void 0:t.height)||0,x:(null==(n=u.value)?void 0:n.left)||0,y:(null==(a=u.value)?void 0:a.top)||0})}}:e||void 0}));return{mergedPosInfo:u,triggerTarget:c}},lX=Symbol("ElTour");const rX=()=>({name:"overflow",async fn(e){const t=await uY(e);let n=0;t.left>0&&(n=t.left),t.right>0&&(n=t.right);return{data:{maxWidth:e.rects.floating.width-n}}}}),iX=Sa({name:"ElTourMask",inheritAttrs:!1});var sX=Fg(Sa({...iX,props:aX,setup(e){const t=e,{ns:n}=Oo(lX),a=Sr((()=>{var e,n;return null!=(n=null==(e=t.pos)?void 0:e.radius)?n:2})),o=Sr((()=>{const e=a.value,t=`a${e},${e} 0 0 1`;return{topRight:`${t} ${e},${e}`,bottomRight:`${t} ${-e},${e}`,bottomLeft:`${t} ${-e},${-e}`,topLeft:`${t} ${e},${-e}`}})),l=Sr((()=>{const e=window.innerWidth,n=window.innerHeight,l=o.value,r=`M${e},0 L0,0 L0,${n} L${e},${n} L${e},0 Z`,i=a.value;return t.pos?`${r} M${t.pos.left+i},${t.pos.top} h${t.pos.width-2*i} ${l.topRight} v${t.pos.height-2*i} ${l.bottomRight} h${-t.pos.width+2*i} ${l.bottomLeft} v${-t.pos.height+2*i} ${l.topLeft} z`:r})),r=Sr((()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"})));return gB(Kt(t,"visible"),{ns:n}),(e,t)=>e.visible?(Al(),Bl("div",er({key:0,class:Bt(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:e.zIndex,pointerEvents:e.pos&&e.targetAreaClickable?"none":"auto"}},e.$attrs),[(Al(),Bl("svg",{style:{width:"100%",height:"100%"}},[jl("path",{class:W(Bt(n).e("hollow")),style:D(Bt(r)),d:Bt(l)},null,14,["d"])]))],16)):Xl("v-if",!0)}}),[["__file","mask.vue"]]);const uX=Cg({placement:{type:String,values:["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],default:"bottom"},reference:{type:Object,default:null},strategy:{type:String,values:["absolute","fixed"],default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),cX=Sa({name:"ElTourContent"});var dX=Fg(Sa({...cX,props:uX,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,a=At(n.placement),o=At(n.strategy),l=At(null),r=At(null);cl((()=>n.placement),(()=>{a.value=n.placement}));const{contentStyle:i,arrowStyle:s}=((e,t,n,a,o,l,r,i)=>{const s=At(),u=At(),c=At({}),d={x:s,y:u,placement:a,strategy:o,middlewareData:c},p=Sr((()=>{const e=[cY(Bt(l)),pY(),dY(),rX()];return Bt(i)&&Bt(n)&&e.push(fY({element:Bt(n)})),e})),f=async()=>{if(!Sm)return;const n=Bt(e),l=Bt(t);if(!n||!l)return;const r=await vY(n,l,{placement:Bt(a),strategy:Bt(o),middleware:Bt(p)});Ig(d).forEach((e=>{d[e].value=r[e]}))},v=Sr((()=>{if(!Bt(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:Bt(r)};const{overflow:t}=Bt(c);return{position:Bt(o),zIndex:Bt(r),top:null!=Bt(u)?`${Bt(u)}px`:"",left:null!=Bt(s)?`${Bt(s)}px`:"",maxWidth:(null==t?void 0:t.maxWidth)?`${null==t?void 0:t.maxWidth}px`:""}})),h=Sr((()=>{if(!Bt(i))return{};const{arrow:e}=Bt(c);return{left:null!=(null==e?void 0:e.x)?`${null==e?void 0:e.x}px`:"",top:null!=(null==e?void 0:e.y)?`${null==e?void 0:e.y}px`:""}}));let m;return Ba((()=>{const n=Bt(e),a=Bt(t);n&&a&&(m=sY(n,a,f)),ul((()=>{f()}))})),Da((()=>{m&&m()})),{update:f,contentStyle:v,arrowStyle:h}})(Kt(n,"reference"),l,r,a,o,Kt(n,"offset"),Kt(n,"zIndex"),Kt(n,"showArrow")),u=Sr((()=>a.value.split("-")[0])),{ns:c}=Oo(lX),d=()=>{t("close")},p=e=>{"pointer"===e.detail.focusReason&&e.preventDefault()};return(e,t)=>(Al(),Bl("div",{ref_key:"contentRef",ref:l,style:D(Bt(i)),class:W(Bt(c).e("content")),"data-side":Bt(u),tabindex:"-1"},[Kl(Bt(XT),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":l.value||void 0,onReleaseRequested:d,onFocusoutPrevented:p},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["focus-trap-el"]),e.showArrow?(Al(),Bl("span",{key:0,ref_key:"arrowRef",ref:r,style:D(Bt(s)),class:W(Bt(c).e("arrow"))},null,6)):Xl("v-if",!0)],14,["data-side"]))}}),[["__file","content.vue"]]),pX=Sa({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var o,l;const r=null==(o=t.default)?void 0:o.call(t),i=[];let s=0;var u;return r.length&&(u=LV(null==(l=r[0])?void 0:l.children),d(u)&&u.forEach((e=>{var t;"ElTourStep"===(null==(t=(null==e?void 0:e.type)||{})?void 0:t.name)&&(i.push(e),s+=1)}))),a!==s&&(a=s,n("update-total",s)),i.length?i[e.current]:null}}});const fX=Cg({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:hE},placement:uX.placement,contentStyle:{type:[Object]},mask:{type:[Boolean,Object],default:!0},gap:{type:Object,default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:[Boolean,Object],default:()=>({block:"center"})},type:{type:String},appendTo:{type:[String,Object],default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),vX={[Hg]:e=>um(e),"update:current":e=>cm(e),close:e=>cm(e),finish:()=>!0,change:e=>cm(e)},hX=Sa({name:"ElTour"});var mX=Fg(Sa({...hX,props:fX,emits:vX,setup(e,{emit:t}){const n=e,a=Kd("tour"),o=At(0),l=At(),r=ig(n,"current",t,{passive:!0}),i=Sr((()=>{var e;return null==(e=l.value)?void 0:e.target})),s=Sr((()=>[a.b(),"primary"===m.value?a.m("primary"):""])),u=Sr((()=>{var e;return(null==(e=l.value)?void 0:e.placement)||n.placement})),c=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.contentStyle)?t:n.contentStyle})),d=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.mask)?t:n.mask})),p=Sr((()=>!!d.value&&n.modelValue)),f=Sr((()=>um(d.value)?void 0:d.value)),v=Sr((()=>{var e,t;return!!i.value&&(null!=(t=null==(e=l.value)?void 0:e.showArrow)?t:n.showArrow)})),h=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.scrollIntoViewOptions)?t:n.scrollIntoViewOptions})),m=Sr((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.type)?t:n.type})),{nextZIndex:g}=hg(),y=g(),b=Sr((()=>{var e;return null!=(e=n.zIndex)?e:y})),{mergedPosInfo:w,triggerTarget:x}=oX(i,Kt(n,"modelValue"),Kt(n,"gap"),d,h);cl((()=>n.modelValue),(e=>{e||(r.value=0)}));const C=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",r.value))},k=e=>{o.value=e},S=io();return To(lX,{currentStep:l,current:r,total:o,showClose:Kt(n,"showClose"),closeIcon:Kt(n,"closeIcon"),mergedType:m,ns:a,slots:S,updateModelValue(e){t("update:modelValue",e)},onClose(){t("close",r.value)},onFinish(){t("finish")},onChange(){t("change",r.value)}}),(e,t)=>(Al(),Bl(El,null,[Kl(Bt(j$),{to:e.appendTo},{default:Yn((()=>{var t,n;return[jl("div",er({class:Bt(s)},e.$attrs),[Kl(sX,{visible:Bt(p),fill:null==(t=Bt(f))?void 0:t.color,style:D(null==(n=Bt(f))?void 0:n.style),pos:Bt(w),"z-index":Bt(b),"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(Al(),Nl(dX,{key:Bt(r),reference:Bt(x),placement:Bt(u),"show-arrow":Bt(v),"z-index":Bt(b),style:D(Bt(c)),onClose:C},{default:Yn((()=>[Kl(Bt(pX),{current:Bt(r),onUpdateTotal:k},{default:Yn((()=>[eo(e.$slots,"default")])),_:3},8,["current"])])),_:3},8,["reference","placement","show-arrow","z-index","style"])):Xl("v-if",!0)],16)]})),_:3},8,["to"]),Xl(" just for IDE "),Xl("v-if",!0)],64))}}),[["__file","tour.vue"]]);const gX=Cg({target:{type:[String,Object,Function]},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:hE},showArrow:{type:Boolean,default:void 0},placement:uX.placement,mask:{type:[Boolean,Object],default:void 0},contentStyle:{type:[Object]},prevButtonProps:{type:Object},nextButtonProps:{type:Object},scrollIntoViewOptions:{type:[Boolean,Object],default:void 0},type:{type:String}}),yX=Sa({name:"ElTourStep"}),bX=Sa({...yX,props:gX,emits:{close:()=>!0},setup(e,{emit:t}){const n=e,{Close:a}=mE,{t:o}=wg(),{currentStep:l,current:r,total:i,showClose:s,closeIcon:u,mergedType:c,ns:d,slots:p,updateModelValue:f,onClose:v,onFinish:h,onChange:m}=Oo(lX);cl(n,(e=>{l.value=e}),{immediate:!0});const g=Sr((()=>{var e;return null!=(e=n.showClose)?e:s.value})),y=Sr((()=>{var e,t;return null!=(t=null!=(e=n.closeIcon)?e:u.value)?t:a})),b=e=>{if(e)return tm(e,["children","onClick"])},w=()=>{var e,t;r.value-=1,(null==(e=n.prevButtonProps)?void 0:e.onClick)&&(null==(t=n.prevButtonProps)||t.onClick()),m()},x=()=>{var e;r.value>=i.value-1?C():r.value+=1,(null==(e=n.nextButtonProps)?void 0:e.onClick)&&n.nextButtonProps.onClick(),m()},C=()=>{k(),h()},k=()=>{f(!1),v(),t("close")};return(e,t)=>(Al(),Bl(El,null,[Bt(g)?(Al(),Bl("button",{key:0,"aria-label":"Close",class:W(Bt(d).e("closebtn")),type:"button",onClick:k},[Kl(Bt(py),{class:W(Bt(d).e("close"))},{default:Yn((()=>[(Al(),Nl(Ya(Bt(y))))])),_:1},8,["class"])],2)):Xl("v-if",!0),jl("header",{class:W([Bt(d).e("header"),{"show-close":Bt(s)}])},[eo(e.$slots,"header",{},(()=>[jl("span",{role:"heading",class:W(Bt(d).e("title"))},te(e.title),3)]))],2),jl("div",{class:W(Bt(d).e("body"))},[eo(e.$slots,"default",{},(()=>[jl("span",null,te(e.description),1)]))],2),jl("footer",{class:W(Bt(d).e("footer"))},[jl("div",{class:W(Bt(d).b("indicators"))},[Bt(p).indicators?(Al(),Nl(Ya(Bt(p).indicators),{key:0,current:Bt(r),total:Bt(i)},null,8,["current","total"])):(Al(!0),Bl(El,{key:1},Za(Bt(i),((e,t)=>(Al(),Bl("span",{key:e,class:W([Bt(d).b("indicator"),t===Bt(r)?"is-active":""])},null,2)))),128))],2),jl("div",{class:W(Bt(d).b("buttons"))},[Bt(r)>0?(Al(),Nl(Bt(ZI),er({key:0,size:"small",type:Bt(c)},b(e.prevButtonProps),{onClick:w}),{default:Yn((()=>{var t,n;return[Yl(te(null!=(n=null==(t=e.prevButtonProps)?void 0:t.children)?n:Bt(o)("el.tour.previous")),1)]})),_:1},16,["type"])):Xl("v-if",!0),Bt(r)<=Bt(i)-1?(Al(),Nl(Bt(ZI),er({key:1,size:"small",type:"primary"===Bt(c)?"default":"primary"},b(e.nextButtonProps),{onClick:x}),{default:Yn((()=>{var t,n;return[Yl(te(null!=(n=null==(t=e.nextButtonProps)?void 0:t.children)?n:Bt(r)===Bt(i)-1?Bt(o)("el.tour.finish"):Bt(o)("el.tour.next")),1)]})),_:1},16,["type"])):Xl("v-if",!0)],2)],2)],64))}});var wX=Fg(bX,[["__file","step.vue"]]);const xX=ry(mX,{TourStep:wX}),CX=sy(wX),kX=Cg({container:{type:[String,Object]},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:String,default:"default"},direction:{type:String,default:"vertical"},selectScrollTop:{type:Boolean,default:!1}}),SX={change:e=>m(e),click:(e,t)=>e instanceof MouseEvent&&(m(t)||sm(t))},_X=Symbol("anchor"),MX=e=>{if(!Sm||""===e)return null;if(m(e))try{return document.querySelector(e)}catch(yR){return null}return e};const EX=Sa({name:"ElAnchor"}),TX=Sa({...EX,props:kX,emits:SX,setup(e,{expose:t,emit:n}){const a=e,o=At(""),l=At(null),r=At(null),i=At(),s={};let u=!1,c=0;const d=Kd("anchor"),p=Sr((()=>[d.b(),"underline"===a.type?d.m("underline"):"",d.m(a.direction)])),f=e=>{o.value!==e&&(o.value=e,n("change",e))};let v=null;const m=e=>{if(!i.value)return;const t=MX(e);if(!t)return;v&&v(),u=!0;const n=ay(t,i.value),o=OL(t,n),l=n.scrollHeight-n.clientHeight,r=Math.min(o-a.offset,l);v=function(e,t,n,a,o){const l=Date.now();let r;const i=()=>{const s=Date.now()-l,u=function(e,t,n,a){const o=n-t;return(e/=a/2)<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}(s>a?a:s,t,n,a);vm(e)?e.scrollTo(window.pageXOffset,u):e.scrollTop=u,s{r&&Kg(r)}}(i.value,c,r,a.duration,(()=>{setTimeout((()=>{u=!1}),20)}))},g=e=>{e&&(f(e),m(e))},y=function(e){let t=0;const n=(...n)=>{t&&Kg(t),t=jg((()=>{e(...n),t=0}))};return n.cancel=()=>{Kg(t),t=0},n}((()=>{i.value&&(c=oy(i.value));const e=b();u||sm(e)||f(e)})),b=()=>{if(!i.value)return;const e=oy(i.value),t=[];for(const n of Object.keys(s)){const e=MX(n);if(!e)continue;const o=ay(e,i.value),l=OL(e,o);t.push({top:l-a.offset-a.bound,href:n})}t.sort(((e,t)=>e.top-t.top));for(let n=0;ne))return o.href}},w=()=>{const e=MX(a.container);!e||vm(e)?i.value=window:i.value=e};Hm(i,"scroll",y);const x=Sr((()=>{if(!l.value||!r.value||!o.value)return{};const e=s[o.value];if(!e)return{};const t=l.value.getBoundingClientRect(),n=r.value.getBoundingClientRect(),i=e.getBoundingClientRect();if("horizontal"===a.direction){return{left:`${i.left-t.left}px`,width:`${i.width}px`,opacity:1}}return{top:`${i.top-t.top+(i.height-n.height)/2}px`,opacity:1}}));return Ba((()=>{w();const e=decodeURIComponent(window.location.hash);MX(e)?g(e):y()})),cl((()=>a.container),(()=>{w()})),To(_X,{ns:d,direction:a.direction,currentAnchor:o,addLink:e=>{s[e.href]=e.el},removeLink:e=>{delete s[e]},handleClick:(e,t)=>{n("click",e,t),g(t)}}),t({scrollTo:g}),(e,t)=>(Al(),Bl("div",{ref_key:"anchorRef",ref:l,class:W(Bt(p))},[e.marker?(Al(),Bl("div",{key:0,ref_key:"markerRef",ref:r,class:W(Bt(d).e("marker")),style:D(Bt(x))},null,6)):Xl("v-if",!0),jl("div",{class:W(Bt(d).e("list"))},[eo(e.$slots,"default")],2)],2))}});var OX=Fg(TX,[["__file","anchor.vue"]]);const $X=Cg({title:String,href:String}),IX=Sa({name:"ElAnchorLink"}),VX=Sa({...IX,props:$X,setup(e){const t=e,n=At(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:i,handleClick:s}=Oo(_X),u=Sr((()=>[a.e("link"),a.is("active",l.value===t.href)])),c=e=>{s(e,t.href)};return cl((()=>t.href),((e,t)=>{gn((()=>{t&&i(t),e&&r({href:e,el:n.value})}))})),Ba((()=>{const{href:e}=t;e&&r({href:e,el:n.value})})),Da((()=>{const{href:e}=t;e&&i(e)})),(e,t)=>(Al(),Bl("div",{class:W(Bt(a).e("item"))},[jl("a",{ref_key:"linkRef",ref:n,class:W(Bt(u)),href:e.href,onClick:c},[eo(e.$slots,"default",{},(()=>[Yl(te(e.title),1)]))],10,["href"]),e.$slots["sub-link"]&&"vertical"===Bt(o)?(Al(),Bl("div",{key:0,class:W(Bt(a).e("list"))},[eo(e.$slots,"sub-link")],2)):Xl("v-if",!0)],2))}});var AX=Fg(VX,[["__file","anchor-link.vue"]]);const LX=ry(OX,{AnchorLink:AX}),RX=sy(AX),zX=Cg({direction:{type:String,default:"horizontal"},options:{type:Array,default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:Sg,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...$E(["ariaLabel"])}),BX={[Hg]:e=>m(e)||cm(e)||um(e),change:e=>m(e)||cm(e)||um(e)},NX=Sa({name:"ElSegmented"}),HX=Sa({...NX,props:zX,emits:BX,setup(e,{emit:t}){const n=e,a=Kd("segmented"),o=PE(),l=WE(),r=qE(),{formItem:i}=FE(),{inputId:s,isLabeledByFormItem:u}=jE(n,{formItemContext:i}),c=At(null),d=function(e={}){var t;const{window:n=Bm}=e,a=null!=(t=e.document)?t:null==n?void 0:n.document,o=$m((()=>null),(()=>null==a?void 0:a.activeElement));return n&&(Hm(n,"blur",(e=>{null===e.relatedTarget&&o.trigger()}),!0),Hm(n,"focus",o.trigger,!0)),o}(),p=bt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),f=e=>y(e)?e.value:e,v=e=>y(e)?e.label:e,h=e=>!!(r.value||y(e)&&e.disabled),m=e=>n.modelValue===f(e),g=e=>[a.e("item"),a.is("selected",m(e)),a.is("disabled",h(e))],b=()=>{if(!c.value)return;const e=c.value.querySelector(".is-selected"),t=c.value.querySelector(".is-selected input");if(!e||!t)return p.width=0,p.height=0,p.translateX=0,p.translateY=0,void(p.focusVisible=!1);const a=e.getBoundingClientRect();p.isInit=!0,"vertical"===n.direction?(p.height=a.height,p.translateY=e.offsetTop):(p.width=a.width,p.translateX=e.offsetLeft);try{p.focusVisible=t.matches(":focus-visible")}catch(yR){}},w=Sr((()=>[a.b(),a.m(l.value),a.is("block",n.block)])),x=Sr((()=>({width:"vertical"===n.direction?"100%":`${p.width}px`,height:"vertical"===n.direction?`${p.height}px`:"100%",transform:"vertical"===n.direction?`translateY(${p.translateY}px)`:`translateX(${p.translateX}px)`,display:p.isInit?"block":"none"}))),C=Sr((()=>{return[a.e("item-selected"),a.is("disabled",h((e=n.modelValue,n.options.find((t=>f(t)===e))))),a.is("focus-visible",p.focusVisible)];var e})),k=Sr((()=>n.name||o.value));return Ym(c,b),cl(d,b),cl((()=>n.modelValue),(()=>{var e;b(),n.validateEvent&&(null==(e=null==i?void 0:i.validate)||e.call(i,"change").catch((e=>cg(e))))}),{flush:"post"}),(e,o)=>e.options.length?(Al(),Bl("div",{key:0,id:Bt(s),ref_key:"segmentedRef",ref:c,class:W(Bt(w)),role:"radiogroup","aria-label":Bt(u)?void 0:e.ariaLabel||"segmented","aria-labelledby":Bt(u)?Bt(i).labelId:void 0},[jl("div",{class:W([Bt(a).e("group"),Bt(a).m(n.direction)])},[jl("div",{style:D(Bt(x)),class:W(Bt(C))},null,6),(Al(!0),Bl(El,null,Za(e.options,((n,o)=>(Al(),Bl("label",{key:o,class:W(g(n))},[jl("input",{class:W(Bt(a).e("item-input")),type:"radio",name:Bt(k),disabled:h(n),checked:m(n),onChange:e=>(e=>{const n=f(e);t(Hg,n),t("change",n)})(n)},null,42,["name","disabled","checked","onChange"]),jl("div",{class:W(Bt(a).e("item-label"))},[eo(e.$slots,"default",{item:n},(()=>[Yl(te(v(n)),1)]))],2)],2)))),128))],2)],10,["id","aria-label","aria-labelledby"])):Xl("v-if",!0)}});const DX=ry(Fg(HX,[["__file","segmented.vue"]])),PX=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},FX=Cg({...IE,options:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@",validator:e=>m(e)?1===e.length:e.every((e=>m(e)&&1===e.length))},split:{type:String,default:" ",validator:e=>1===e.length},filterOption:{type:[Boolean,Function],default:()=>PX,validator:e=>!1===e||h(e)},placement:{type:String,default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:Function},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})}}),jX={[Hg]:e=>m(e),search:(e,t)=>m(e)&&m(t),select:(e,t)=>m(e.value)&&m(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},KX=Cg({options:{type:Array,default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),WX={select:e=>m(e.value)},qX=Sa({name:"ElMentionDropdown"}),UX=Sa({...qX,props:KX,emits:WX,setup(e,{expose:t,emit:n}){const a=e,o=Kd("mention"),{t:l}=wg(),r=At(-1),i=At(),s=At(),u=At(),c=(e,t)=>[o.be("dropdown","item"),o.is("hovering",r.value===t),o.is("disabled",e.disabled||a.disabled)],d=Sr((()=>a.disabled||a.options.every((e=>e.disabled)))),p=Sr((()=>a.options[r.value])),f=e=>{const{options:t}=a;if(0===t.length||d.value)return;"next"===e?(r.value++,r.value===t.length&&(r.value=0)):"prev"===e&&(r.value--,r.value<0&&(r.value=t.length-1));const n=t[r.value];n.disabled?f(e):gn((()=>v(n)))},v=e=>{var t,n,l,r;const{options:c}=a,d=c.findIndex((t=>t.value===e.value)),p=null==(t=s.value)?void 0:t[d];if(p){const e=null==(l=null==(n=u.value)?void 0:n.querySelector)?void 0:l.call(n,`.${o.be("dropdown","wrap")}`);e&&ny(e,p)}null==(r=i.value)||r.handleScroll()};return cl((()=>a.options),(()=>{d.value||0===a.options.length?r.value=-1:r.value=0}),{immediate:!0}),t({hoveringIndex:r,navigateOptions:f,selectHoverOption:()=>{p.value&&n("select",p.value)},hoverOption:p}),(e,t)=>(Al(),Bl("div",{ref_key:"dropdownRef",ref:u,class:W(Bt(o).b("dropdown"))},[e.$slots.header?(Al(),Bl("div",{key:0,class:W(Bt(o).be("dropdown","header"))},[eo(e.$slots,"header")],2)):Xl("v-if",!0),Xn(Kl(Bt(rT),{id:e.contentId,ref_key:"scrollbarRef",ref:i,tag:"ul","wrap-class":Bt(o).be("dropdown","wrap"),"view-class":Bt(o).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:Yn((()=>[(Al(!0),Bl(El,null,Za(e.options,((t,o)=>(Al(),Bl("li",{id:`${e.contentId}-${o}`,ref_for:!0,ref_key:"optionRefs",ref:s,key:o,class:W(c(t,o)),role:"option","aria-disabled":t.disabled||e.disabled||void 0,"aria-selected":r.value===o,onMousemove:e=>(e=>{r.value=e})(o),onClick:Fi((e=>(e=>{e.disabled||a.disabled||n("select",e)})(t)),["stop"])},[eo(e.$slots,"label",{item:t,index:o},(()=>{var e;return[jl("span",null,te(null!=(e=t.label)?e:t.value),1)]}))],42,["id","aria-disabled","aria-selected","onMousemove","onClick"])))),128))])),_:3},8,["id","wrap-class","view-class","aria-label"]),[[ei,e.options.length>0&&!e.loading]]),e.loading?(Al(),Bl("div",{key:1,class:W(Bt(o).be("dropdown","loading"))},[eo(e.$slots,"loading",{},(()=>[Yl(te(Bt(l)("el.mention.loading")),1)]))],2)):Xl("v-if",!0),e.$slots.footer?(Al(),Bl("div",{key:2,class:W(Bt(o).be("dropdown","footer"))},[eo(e.$slots,"footer")],2)):Xl("v-if",!0)],2))}});var YX=Fg(UX,[["__file","mention-dropdown.vue"]]);const GX=Sa({name:"ElMention",inheritAttrs:!1}),XX=Sa({...GX,props:FX,emits:jX,setup(e,{expose:t,emit:n}){const a=e,o=Sr((()=>om(a,Object.keys(IE)))),l=Kd("mention"),r=qE(),i=PE(),s=At(),u=At(),c=At(),d=At(!1),p=At(),f=At(),v=Sr((()=>a.showArrow?a.placement:`${a.placement}-start`)),m=Sr((()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"])),g=Sr((()=>{const{filterOption:e,options:t}=a;return f.value&&e?t.filter((t=>e(f.value.pattern,t))):t})),y=Sr((()=>d.value&&(!!g.value.length||a.loading))),b=Sr((()=>{var e;return`${i.value}-${null==(e=c.value)?void 0:e.hoveringIndex}`})),w=e=>{n("update:modelValue",e),M()},x=e=>{var t,o,l,r;if("code"in e&&!(null==(t=s.value)?void 0:t.isComposing))switch(e.code){case qT.left:case qT.right:M();break;case qT.up:case qT.down:if(!d.value)return;e.preventDefault(),null==(o=c.value)||o.navigateOptions(e.code===qT.up?"prev":"next");break;case qT.enter:case qT.numpadEnter:if(!d.value)return;e.preventDefault(),(null==(l=c.value)?void 0:l.hoverOption)?null==(r=c.value)||r.selectHoverOption():d.value=!1;break;case qT.esc:if(!d.value)return;e.preventDefault(),d.value=!1;break;case qT.backspace:if(a.whole&&f.value){const{splitIndex:t,selectionEnd:o,pattern:l,prefixIndex:r,prefix:i}=f.value,s=_();if(!s)return;const u=s.value,c=a.options.find((e=>e.value===l));if((h(a.checkIsWhole)?a.checkIsWhole(l,i):c)&&-1!==t&&t+1===o){e.preventDefault();const a=u.slice(0,r)+u.slice(t+1);n(Hg,a);const o=r;gn((()=>{s.selectionStart=o,s.selectionEnd=o,T()}))}}}},{wrapperRef:C}=UE(s,{beforeFocus:()=>r.value,afterFocus(){M()},beforeBlur(e){var t;return null==(t=u.value)?void 0:t.isFocusInsideContent(e)},afterBlur(){d.value=!1}}),k=()=>{M()},S=e=>{if(!f.value)return;const t=_();if(!t)return;const o=t.value,{split:l}=a,r=o.slice(f.value.end),i=r.startsWith(l),s=`${e.value}${i?"":l}`,u=o.slice(0,f.value.start)+s+r;n(Hg,u),n("select",e,f.value.prefix);const c=f.value.start+s.length+(i?1:0);gn((()=>{t.selectionStart=c,t.selectionEnd=c,t.focus(),T()}))},_=()=>{var e,t;return"textarea"===a.type?null==(e=s.value)?void 0:e.textarea:null==(t=s.value)?void 0:t.input},M=()=>{setTimeout((()=>{E(),T(),gn((()=>{var e;return null==(e=u.value)?void 0:e.updatePopper()}))}),0)},E=()=>{const e=_();if(!e)return;const t=((e,t={debug:!1,useSelectionEnd:!1})=>{const n=null!==e.selectionStart?e.selectionStart:0,a=null!==e.selectionEnd?e.selectionEnd:0,o=t.useSelectionEnd?a:n;if(t.debug){const e=document.querySelector("#input-textarea-caret-position-mirror-div");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}const l=document.createElement("div");l.id="input-textarea-caret-position-mirror-div",document.body.appendChild(l);const r=l.style,i=window.getComputedStyle(e),s="INPUT"===e.nodeName;r.whiteSpace=s?"nowrap":"pre-wrap",s||(r.wordWrap="break-word"),r.position="absolute",t.debug||(r.visibility="hidden"),["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"].forEach((e=>{if(s&&"lineHeight"===e)if("border-box"===i.boxSizing){const e=Number.parseInt(i.height),t=Number.parseInt(i.paddingTop)+Number.parseInt(i.paddingBottom)+Number.parseInt(i.borderTopWidth)+Number.parseInt(i.borderBottomWidth),n=t+Number.parseInt(i.lineHeight);r.lineHeight=e>n?e-t+"px":e===n?i.lineHeight:"0"}else r.lineHeight=i.height;else r[e]=i[e]})),SE()?e.scrollHeight>Number.parseInt(i.height)&&(r.overflowY="scroll"):r.overflow="hidden",l.textContent=e.value.slice(0,Math.max(0,o)),s&&l.textContent&&(l.textContent=l.textContent.replace(/\s/g," "));const u=document.createElement("span");u.textContent=e.value.slice(Math.max(0,o))||".",u.style.position="relative",u.style.left=-e.scrollLeft+"px",u.style.top=-e.scrollTop+"px",l.appendChild(u);const c={top:u.offsetTop+Number.parseInt(i.borderTopWidth),left:u.offsetLeft+Number.parseInt(i.borderLeftWidth),height:1.5*Number.parseInt(i.fontSize)};return t.debug?u.style.backgroundColor="#aaa":document.body.removeChild(l),c.left>=e.clientWidth&&(c.left=e.clientWidth),c})(e),n=e.getBoundingClientRect(),a=s.value.$el.getBoundingClientRect();p.value={position:"absolute",width:0,height:`${t.height}px`,left:t.left+n.left-a.left+"px",top:t.top+n.top-a.top+"px"}},T=()=>{const e=_();if(document.activeElement!==e)return void(d.value=!1);const{prefix:t,split:o}=a;if(f.value=((e,t,n)=>{const{selectionEnd:a}=e;if(null===a)return;const o=e.value,l=yv(t);let r,i=-1;for(let s=a-1;s>=0;--s){const e=o[s];if(e!==n&&"\n"!==e&&"\r"!==e){if(l.includes(e)){const t=-1===i?a:i;r={pattern:o.slice(s+1,t),start:s+1,end:t,prefix:e,prefixIndex:s,splitIndex:i,selectionEnd:a};break}}else i=s}return r})(e,t,o),f.value&&-1===f.value.splitIndex)return d.value=!0,void n("search",f.value.pattern,f.value.prefix);d.value=!1};return t({input:s,tooltip:u,dropdownVisible:y}),(e,t)=>(Al(),Bl("div",{ref_key:"wrapperRef",ref:C,class:W([Bt(l).b(),Bt(l).is("disabled",Bt(r))])},[Kl(Bt(XE),er(er(Bt(o),e.$attrs),{ref_key:"elInputRef",ref:s,"model-value":e.modelValue,disabled:Bt(r),role:Bt(y)?"combobox":void 0,"aria-activedescendant":Bt(y)?Bt(b)||"":void 0,"aria-controls":Bt(y)?Bt(i):void 0,"aria-expanded":Bt(y)||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":Bt(y)?"none":void 0,"aria-haspopup":Bt(y)?"listbox":void 0,onInput:w,onKeydown:x,onMousedown:k}),Qa({_:2},[Za(e.$slots,((t,n)=>({name:n,fn:Yn((t=>[eo(e.$slots,n,q(Wl(t)))]))})))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Kl(Bt(G$),{ref_key:"tooltipRef",ref:u,visible:Bt(y),"popper-class":[Bt(l).e("popper"),e.popperClass],"popper-options":e.popperOptions,placement:Bt(v),"fallback-placements":Bt(m),effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:Yn((()=>[jl("div",{style:D(p.value)},null,4)])),content:Yn((()=>{var t;return[Kl(YX,{ref_key:"dropdownRef",ref:c,options:Bt(g),disabled:Bt(r),loading:e.loading,"content-id":Bt(i),"aria-label":e.ariaLabel,onSelect:S,onClick:Fi(null==(t=s.value)?void 0:t.focus,["stop"])},Qa({_:2},[Za(e.$slots,((t,n)=>({name:n,fn:Yn((t=>[eo(e.$slots,n,q(Wl(t)))]))})))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]})),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});const JX=ry(Fg(XX,[["__file","mention.vue"]]));var ZX=[uy,kE,Q$,dq,oI,sI,dI,wI,xI,ZI,QI,SV,EV,KV,WV,tL,jA,lL,lA,rA,iA,uL,kL,SL,yL,QL,nR,fR,vR,hR,mR,gR,Wz,nB,aB,wB,kB,TB,vN,hN,mN,CN,sH,uH,py,bH,vH,XE,SH,OH,AH,eD,tD,nD,aD,iD,XD,tP,cP,S$,fP,kA,_A,SA,yP,kP,MP,rT,ED,TD,OD,yF,SF,_F,HF,FF,WF,QF,ij,sj,vj,qK,UK,cq,_q,Mq,UA,Oq,rz,Bq,Fq,jq,G$,MY,NY,eG,uG,EG,JG,nX,xX,CX,LX,RX,DX,JX];const QX="ElInfiniteScroll",eJ={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},tJ=(e,t)=>Object.entries(eJ).reduce(((n,[a,o])=>{var l,r;const{type:i,default:s}=o,u=e.getAttribute(`infinite-scroll-${a}`);let c=null!=(r=null!=(l=t[u])?l:u)?r:s;return c="false"!==c&&c,c=i(c),n[a]=Number.isNaN(c)?s:c,n}),{}),nJ=e=>{const{observer:t}=e[QX];t&&(t.disconnect(),delete e[QX].observer)},aJ=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[QX],{disabled:i,distance:s}=tJ(e,o),{clientHeight:u,scrollHeight:c,scrollTop:d}=a,p=d-r;if(e[QX].lastScrollTop=d,l||i||p<0)return;let f=!1;if(n===e)f=c-(u+d)<=s;else{const{clientTop:t,scrollHeight:n}=e;f=d+u>=OL(e,a)+t+n-s}f&&t.call(o)};function oJ(e,t){const{containerEl:n,instance:a}=e[QX],{disabled:o}=tJ(e,a);o||0===n.clientHeight||(n.scrollHeight<=n.clientHeight?t.call(a):nJ(e))}const lJ={async mounted(e,t){const{instance:n,value:a}=t;h(a)||ug(QX,"'v-infinite-scroll' binding value must be a function"),await gn();const{delay:o,immediate:l}=tJ(e,n),r=Qg(e,!0),i=r===window?document.documentElement:r,s=lm(aJ.bind(null,e,a),o);if(r){if(e[QX]={instance:n,container:r,containerEl:i,delay:o,cb:a,onScroll:s,lastScrollTop:i.scrollTop},l){const t=new MutationObserver(lm(oJ.bind(null,e,a),50));e[QX].observer=t,t.observe(e,{childList:!0,subtree:!0}),oJ(e,a)}r.addEventListener("scroll",s)}},unmounted(e){if(!e[QX])return;const{container:t,onScroll:n}=e[QX];null==t||t.removeEventListener("scroll",n),nJ(e)},async updated(e){if(e[QX]){const{containerEl:t,cb:n,observer:a}=e[QX];t.clientHeight&&a&&oJ(e,n)}else await gn()},install:e=>{e.directive("InfiniteScroll",lJ)}},rJ=lJ;function iJ(e){let t;const n=At(!1),a=bt({...e,originalPosition:"",originalOverflow:"",visible:!1});function o(){var e,t;null==(t=null==(e=s.$el)?void 0:e.parentNode)||t.removeChild(s.$el)}function l(){if(!n.value)return;const e=a.parent;n.value=!1,e.vLoadingAddClassList=void 0,function(){const e=a.parent,t=s.ns;if(!e.vLoadingAddClassList){let n=e.getAttribute("loading-number");n=Number.parseInt(n)-1,n?e.setAttribute("loading-number",n.toString()):(Yg(e,t.bm("parent","relative")),e.removeAttribute("loading-number")),Yg(e,t.bm("parent","hidden"))}o(),i.unmount()}()}const r=Sa({name:"ElLoading",setup(e,{expose:t}){const{ns:n,zIndex:o}=zg("loading");return t({ns:n,zIndex:o}),()=>{const e=a.spinner||a.svg,t=_r("svg",{class:"circular",viewBox:a.svgViewBox?a.svgViewBox:"0 0 50 50",...e?{innerHTML:e}:{}},[_r("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),o=a.text?_r("p",{class:n.b("text")},[a.text]):void 0;return _r(Nr,{name:n.b("fade"),onAfterLeave:l},{default:Yn((()=>[Xn(Kl("div",{style:{backgroundColor:a.background||""},class:[n.b("mask"),a.customClass,a.fullscreen?"is-fullscreen":""]},[_r("div",{class:n.b("spinner")},[t,o])]),[[ei,a.visible]])]))})}}}),i=Gi(r),s=i.mount(document.createElement("div"));return{...Pt(a),setText:function(e){a.text=e},removeElLoadingChild:o,close:function(){var o;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),a.visible=!1,null==(o=e.closed)||o.call(e))},handleAfterLeave:l,vm:s,get $el(){return s.$el}}}let sJ;const uJ=function(e={}){if(!Sm)return;const t=cJ(e);if(t.fullscreen&&sJ)return sJ;const n=iJ({...t,closed:()=>{var e;null==(e=t.closed)||e.call(t),t.fullscreen&&(sJ=void 0)}});dJ(t,t.parent,n),pJ(t,t.parent,n),t.parent.vLoadingAddClassList=()=>pJ(t,t.parent,n);let a=t.parent.getAttribute("loading-number");return a=a?`${Number.parseInt(a)+1}`:"1",t.parent.setAttribute("loading-number",a),t.parent.appendChild(n.$el),gn((()=>n.visible.value=t.visible)),t.fullscreen&&(sJ=n),n},cJ=e=>{var t,n,a,o;let l;return l=m(e.target)?null!=(t=document.querySelector(e.target))?t:document.body:e.target||document.body,{parent:l===document.body||e.body?document.body:l,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:l===document.body&&(null==(n=e.fullscreen)||n),lock:null!=(a=e.lock)&&a,customClass:e.customClass||"",visible:null==(o=e.visible)||o,beforeClose:e.beforeClose,closed:e.closed,target:l}},dJ=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=Gg(document.body,"position"),n.originalOverflow.value=Gg(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=Gg(document.body,"position"),await gn();for(const t of["top","left"]){const n="top"===t?"scrollTop":"scrollLeft";o[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]-Number.parseInt(Gg(document.body,`margin-${t}`),10)+"px"}for(const t of["height","width"])o[t]=`${e.target.getBoundingClientRect()[t]}px`}else n.originalPosition.value=Gg(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},pJ=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Yg(t,a.bm("parent","relative")):Ug(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ug(t,a.bm("parent","hidden")):Yg(t,a.bm("parent","hidden"))},fJ=Symbol("ElLoading"),vJ=(e,t)=>{var n,a,o,l;const r=t.instance,i=e=>y(t.value)?t.value[e]:void 0,s=t=>(e=>{const t=m(e)&&(null==r?void 0:r[e])||e;return t?At(t):t})(i(t)||e.getAttribute(`element-loading-${I(t)}`)),u=null!=(n=i("fullscreen"))?n:t.modifiers.fullscreen,c={text:s("text"),svg:s("svg"),svgViewBox:s("svgViewBox"),spinner:s("spinner"),background:s("background"),customClass:s("customClass"),fullscreen:u,target:null!=(a=i("target"))?a:u?void 0:e,body:null!=(o=i("body"))?o:t.modifiers.body,lock:null!=(l=i("lock"))?l:t.modifiers.lock};e[fJ]={options:c,instance:uJ(c)}},hJ={mounted(e,t){t.value&&vJ(e,t)},updated(e,t){const n=e[fJ];t.oldValue!==t.value&&(t.value&&!t.oldValue?vJ(e,t):t.value&&t.oldValue?y(t.value)&&((e,t)=>{for(const n of Object.keys(t))Vt(t[n])&&(t[n].value=e[n])})(t.value,n.options):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[fJ])||t.instance.close(),e[fJ]=null}},mJ={install(e){e.directive("loading",hJ),e.config.globalProperties.$loading=uJ},directive:hJ,service:uJ},gJ=["success","info","warning","error"],yJ={customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Sm?document.body:void 0},bJ=Cg({customClass:{type:String,default:yJ.customClass},center:{type:Boolean,default:yJ.center},dangerouslyUseHTMLString:{type:Boolean,default:yJ.dangerouslyUseHTMLString},duration:{type:Number,default:yJ.duration},icon:{type:hE,default:yJ.icon},id:{type:String,default:yJ.id},message:{type:[String,Object,Function],default:yJ.message},onClose:{type:Function,default:yJ.onClose},showClose:{type:Boolean,default:yJ.showClose},type:{type:String,values:gJ,default:yJ.type},plain:{type:Boolean,default:yJ.plain},offset:{type:Number,default:yJ.offset},zIndex:{type:Number,default:yJ.zIndex},grouping:{type:Boolean,default:yJ.grouping},repeatNum:{type:Number,default:yJ.repeatNum}}),wJ=wt([]),xJ=e=>{const{prev:t}=(e=>{const t=wJ.findIndex((t=>t.id===e)),n=wJ[t];let a;return t>0&&(a=wJ[t-1]),{current:n,prev:a}})(e);return t?t.vm.exposed.bottom.value:0},CJ=Sa({name:"ElMessage"});var kJ=Fg(Sa({...CJ,props:bJ,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{Close:a}=gE,{ns:o,zIndex:l}=zg("message"),{currentZIndex:r,nextZIndex:i}=l,s=At(),u=At(!1),c=At(0);let d;const p=Sr((()=>n.type?"error"===n.type?"danger":n.type:"info")),f=Sr((()=>{const e=n.type;return{[o.bm("icon",e)]:e&&yE[e]}})),v=Sr((()=>n.icon||yE[n.type]||"")),h=Sr((()=>xJ(n.id))),m=Sr((()=>((e,t)=>wJ.findIndex((t=>t.id===e))>0?16:t)(n.id,n.offset)+h.value)),g=Sr((()=>c.value+m.value)),y=Sr((()=>({top:`${m.value}px`,zIndex:r.value})));function b(){0!==n.duration&&({stop:d}=Rm((()=>{x()}),n.duration))}function w(){null==d||d()}function x(){u.value=!1}return Ba((()=>{b(),i(),u.value=!0})),cl((()=>n.repeatNum),(()=>{w(),b()})),Hm(document,"keydown",(function({code:e}){e===qT.esc&&x()})),Ym(s,(()=>{c.value=s.value.getBoundingClientRect().height})),t({visible:u,bottom:g,close:x}),(e,t)=>(Al(),Nl(Nr,{name:Bt(o).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:Yn((()=>[Xn(jl("div",{id:e.id,ref_key:"messageRef",ref:s,class:W([Bt(o).b(),{[Bt(o).m(e.type)]:e.type},Bt(o).is("center",e.center),Bt(o).is("closable",e.showClose),Bt(o).is("plain",e.plain),e.customClass]),style:D(Bt(y)),role:"alert",onMouseenter:w,onMouseleave:b},[e.repeatNum>1?(Al(),Nl(Bt(dI),{key:0,value:e.repeatNum,type:Bt(p),class:W(Bt(o).e("badge"))},null,8,["value","type","class"])):Xl("v-if",!0),Bt(v)?(Al(),Nl(Bt(py),{key:1,class:W([Bt(o).e("icon"),Bt(f)])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(v))))])),_:1},8,["class"])):Xl("v-if",!0),eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Bl(El,{key:1},[Xl(" Caution here, message could've been compromised, never use user's input as message "),jl("p",{class:W(Bt(o).e("content")),innerHTML:e.message},null,10,["innerHTML"])],2112)):(Al(),Bl("p",{key:0,class:W(Bt(o).e("content"))},te(e.message),3))])),e.showClose?(Al(),Nl(Bt(py),{key:2,class:W(Bt(o).e("closeBtn")),onClick:Fi(x,["stop"])},{default:Yn((()=>[Kl(Bt(a))])),_:1},8,["class","onClick"])):Xl("v-if",!0)],46,["id"]),[[ei,u.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}),[["__file","message.vue"]]);let SJ=1;const _J=e=>{const t=!e||m(e)||Hl(e)||h(e)?{message:e}:e,n={...yJ,...t};if(n.appendTo){if(m(n.appendTo)){let e=document.querySelector(n.appendTo);pm(e)||(cg("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),e=document.body),n.appendTo=e}}else n.appendTo=document.body;return um(tR.grouping)&&!n.grouping&&(n.grouping=tR.grouping),cm(tR.duration)&&3e3===n.duration&&(n.duration=tR.duration),cm(tR.offset)&&16===n.offset&&(n.offset=tR.offset),um(tR.showClose)&&!n.showClose&&(n.showClose=tR.showClose),n},MJ=({appendTo:e,...t},n)=>{const a="message_"+SJ++,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{null==o||o(),(e=>{const t=wJ.indexOf(e);if(-1===t)return;wJ.splice(t,1);const{handler:n}=e;n.close()})(c)},onDestroy:()=>{Yi(null,l)}},i=Kl(kJ,r,h(r.message)||Hl(r.message)?{default:h(r.message)?r.message:()=>r.message}:null);i.appContext=n||EJ._context,Yi(i,l),e.appendChild(l.firstElementChild);const s=i.component,u={close:()=>{s.exposed.visible.value=!1}},c={id:a,vnode:i,vm:s,handler:u,props:i.component.props};return c},EJ=(e={},t)=>{if(!Sm)return{close:()=>{}};const n=_J(e);if(n.grouping&&wJ.length){const e=wJ.find((({vnode:e})=>{var t;return(null==(t=e.props)?void 0:t.message)===n.message}));if(e)return e.props.repeatNum+=1,e.props.type=n.type,e.handler}if(cm(tR.max)&&wJ.length>=tR.max)return{close:()=>{}};const a=MJ(n,t);return wJ.push(a),a.handler};gJ.forEach((e=>{EJ[e]=(t={},n)=>{const a=_J(t);return EJ({...a,type:e},n)}})),EJ.closeAll=function(e){for(const t of wJ)e&&e!==t.props.type||t.handler.close()},EJ._context=null;const TJ=iy(EJ,"$message"),OJ=[],$J=e=>{if(0===OJ.length)return;const t=OJ[OJ.length-1]["_trap-focus-children"];if(t.length>0&&e.code===qT.tab){if(1===t.length)return e.preventDefault(),void(document.activeElement!==t[0]&&t[0].focus());const n=e.shiftKey,a=e.target===t[0],o=e.target===t[t.length-1];a&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},IJ=Sa({name:"ElMessageBox",directives:{TrapFocus:{beforeMount(e){e["_trap-focus-children"]=yT(e),OJ.push(e),OJ.length<=1&&document.addEventListener("keydown",$J)},updated(e){gn((()=>{e["_trap-focus-children"]=yT(e)}))},unmounted(){OJ.shift(),0===OJ.length&&document.removeEventListener("keydown",$J)}}},components:{ElButton:ZI,ElFocusTrap:XT,ElInput:XE,ElOverlay:iB,ElIcon:py,...gE},inheritAttrs:!1,props:{buttonSize:{type:String,validator:uj},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=zg("message-box",Sr((()=>e.buttonSize))),{t:r}=n,{nextZIndex:i}=a,s=At(!1),u=bt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ot(Fk),cancelButtonLoadingIcon:Ot(Fk),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:i()}),c=Sr((()=>{const e=u.type;return{[o.bm("icon",e)]:e&&yE[e]}})),d=PE(),p=PE(),f=Sr((()=>{const e=u.type;return u.icon||e&&yE[e]||""})),v=Sr((()=>!!u.message)),g=At(),y=At(),b=At(),w=At(),x=At(),C=Sr((()=>u.confirmButtonClass));cl((()=>u.inputValue),(async t=>{await gn(),"prompt"===e.boxType&&t&&O()}),{immediate:!0}),cl((()=>s.value),(t=>{var n,a;t&&("prompt"!==e.boxType&&(u.autofocus?b.value=null!=(a=null==(n=x.value)?void 0:n.$el)?a:g.value:b.value=g.value),u.zIndex=i()),"prompt"===e.boxType&&(t?gn().then((()=>{var e;w.value&&w.value.$el&&(u.autofocus?b.value=null!=(e=$())?e:g.value:b.value=g.value)})):(u.editorErrorMessage="",u.validateError=!1))}));const k=Sr((()=>e.draggable)),S=Sr((()=>e.overflow));function _(){s.value&&(s.value=!1,gn((()=>{u.action&&t("action",u.action)})))}cB(g,y,k,S),Ba((async()=>{await gn(),e.closeOnHashChange&&window.addEventListener("hashchange",_)})),Da((()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",_)}));const M=()=>{e.closeOnClickModal&&T(u.distinguishCancelAndClose?"close":"cancel")},E=oB(M),T=t=>{var n;("prompt"!==e.boxType||"confirm"!==t||O())&&(u.action=t,u.beforeClose?null==(n=u.beforeClose)||n.call(u,t,u,_):_())},O=()=>{if("prompt"===e.boxType){const e=u.inputPattern;if(e&&!e.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;const t=u.inputValidator;if(h(t)){const e=t(u.inputValue);if(!1===e)return u.editorErrorMessage=u.inputErrorMessage||r("el.messagebox.error"),u.validateError=!0,!1;if(m(e))return u.editorErrorMessage=e,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},$=()=>{var e,t;const n=null==(e=w.value)?void 0:e.$refs;return null!=(t=null==n?void 0:n.input)?t:null==n?void 0:n.textarea},I=()=>{T("close")};return e.lockScroll&&gB(s),{...Pt(u),ns:o,overlayEvent:E,visible:s,hasMessage:v,typeClass:c,contentId:d,inputId:p,btnSize:l,iconComponent:f,confirmButtonClasses:C,rootRef:g,focusStartRef:b,headerRef:y,inputRef:w,confirmRef:x,doClose:_,handleClose:I,onCloseRequested:()=>{e.closeOnPressEscape&&I()},handleWrapperClick:M,handleInputEnter:e=>{if("textarea"!==u.inputType)return e.preventDefault(),T("confirm")},handleAction:T,t:r}}});var VJ=Fg(IJ,[["render",function(e,t,n,a,o,l){const r=qa("el-icon"),i=qa("el-input"),s=qa("el-button"),u=qa("el-focus-trap"),c=qa("el-overlay");return Al(),Nl(Nr,{name:"fade-in-linear",onAfterLeave:t=>e.$emit("vanish"),persisted:""},{default:Yn((()=>[Xn(Kl(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:Yn((()=>[jl("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:W(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[Kl(u,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Yn((()=>[jl("div",{ref:"rootRef",class:W([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:D(e.customStyle),tabindex:"-1",onClick:Fi((()=>{}),["stop"])},[null!==e.title&&void 0!==e.title?(Al(),Bl("div",{key:0,ref:"headerRef",class:W([e.ns.e("header"),{"show-close":e.showClose}])},[jl("div",{class:W(e.ns.e("title"))},[e.iconComponent&&e.center?(Al(),Nl(r,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:Yn((()=>[(Al(),Nl(Ya(e.iconComponent)))])),_:1},8,["class"])):Xl("v-if",!0),jl("span",null,te(e.title),1)],2),e.showClose?(Al(),Bl("button",{key:0,type:"button",class:W(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:Ki(Fi((t=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),["prevent"]),["enter"])},[Kl(r,{class:W(e.ns.e("close"))},{default:Yn((()=>[(Al(),Nl(Ya(e.closeIcon||"close")))])),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):Xl("v-if",!0)],2)):Xl("v-if",!0),jl("div",{id:e.contentId,class:W(e.ns.e("content"))},[jl("div",{class:W(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(Al(),Nl(r,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:Yn((()=>[(Al(),Nl(Ya(e.iconComponent)))])),_:1},8,["class"])):Xl("v-if",!0),e.hasMessage?(Al(),Bl("div",{key:1,class:W(e.ns.e("message"))},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Nl(Ya(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(Al(),Nl(Ya(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:Yn((()=>[Yl(te(e.dangerouslyUseHTMLString?"":e.message),1)])),_:1},8,["for"]))]))],2)):Xl("v-if",!0)],2),Xn(jl("div",{class:W(e.ns.e("input"))},[Kl(i,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t=>e.inputValue=t,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:W({invalid:e.validateError}),onKeydown:Ki(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),jl("div",{class:W(e.ns.e("errormsg")),style:D({visibility:e.editorErrorMessage?"visible":"hidden"})},te(e.editorErrorMessage),7)],2),[[ei,e.showInput]])],10,["id"]),jl("div",{class:W(e.ns.e("btns"))},[e.showCancelButton?(Al(),Nl(s,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:W([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t=>e.handleAction("cancel"),onKeydown:Ki(Fi((t=>e.handleAction("cancel")),["prevent"]),["enter"])},{default:Yn((()=>[Yl(te(e.cancelButtonText||e.t("el.messagebox.cancel")),1)])),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):Xl("v-if",!0),Xn(Kl(s,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:W([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t=>e.handleAction("confirm"),onKeydown:Ki(Fi((t=>e.handleAction("confirm")),["prevent"]),["enter"])},{default:Yn((()=>[Yl(te(e.confirmButtonText||e.t("el.messagebox.confirm")),1)])),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[ei,e.showConfirmButton]])],2)],14,["onClick"])])),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])])),_:3},8,["z-index","overlay-class","mask"]),[[ei,e.visible]])])),_:3},8,["onAfterLeave"])}],["__file","index.vue"]]);const AJ=new Map,LJ=(e,t,n=null)=>{const a=Kl(VJ,e,h(e.message)||Hl(e.message)?{default:h(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Yi(a,t),(e=>{let t=document.body;return e.appendTo&&(m(e.appendTo)&&(t=document.querySelector(e.appendTo)),pm(e.appendTo)&&(t=e.appendTo),pm(t)||(cg("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t})(e).appendChild(t.firstElementChild),a.component},RJ=(e,t)=>{const n=document.createElement("div");e.onVanish=()=>{Yi(null,n),AJ.delete(o)},e.onAction=t=>{const n=AJ.get(o);let l;l=e.showInput?{value:o.inputValue,action:t}:t,e.callback?e.callback(l,a.proxy):"cancel"===t||"close"===t?e.distinguishCancelAndClose&&"cancel"!==t?n.reject("close"):n.reject("cancel"):n.resolve(l)};const a=LJ(e,n,t),o=a.proxy;for(const l in e)c(e,l)&&!c(o.$props,l)&&("closeIcon"===l&&y(e[l])?o[l]=Ot(e[l]):o[l]=e[l]);return o.visible=!0,o};function zJ(e,t=null){if(!Sm)return Promise.reject();let n;return m(e)||Hl(e)?e={message:e}:n=e.callback,new Promise(((a,o)=>{const l=RJ(e,null!=t?t:zJ._context);AJ.set(l,{options:e,callback:n,resolve:a,reject:o})}))}const BJ={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};["alert","confirm","prompt"].forEach((e=>{zJ[e]=function(e){return(t,n,a,o)=>{let l="";return y(n)?(a=n,l=""):l=sm(n)?"":n,zJ(Object.assign({title:l,message:t,type:"",...BJ[e]},a,{boxType:e}),o)}}(e)})),zJ.close=()=>{AJ.forEach(((e,t)=>{t.doClose()})),AJ.clear()},zJ._context=null;const NJ=zJ;NJ.install=e=>{NJ._context=e._context,e.config.globalProperties.$msgbox=NJ,e.config.globalProperties.$messageBox=NJ,e.config.globalProperties.$alert=NJ.alert,e.config.globalProperties.$confirm=NJ.confirm,e.config.globalProperties.$prompt=NJ.prompt};const HJ=NJ,DJ=["success","info","warning","error"],PJ=Cg({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:hE},id:{type:String,default:""},message:{type:[String,Object,Function],default:""},offset:{type:Number,default:0},onClick:{type:Function,default:()=>{}},onClose:{type:Function,required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...DJ,""],default:""},zIndex:Number}),FJ=Sa({name:"ElNotification"});var jJ=Fg(Sa({...FJ,props:PJ,emits:{destroy:()=>!0},setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=zg("notification"),{nextZIndex:l,currentZIndex:r}=o,{Close:i}=mE,s=At(!1);let u;const c=Sr((()=>{const e=n.type;return e&&yE[n.type]?a.m(e):""})),d=Sr((()=>n.type&&yE[n.type]||n.icon)),p=Sr((()=>n.position.endsWith("right")?"right":"left")),f=Sr((()=>n.position.startsWith("top")?"top":"bottom")),v=Sr((()=>{var e;return{[f.value]:`${n.offset}px`,zIndex:null!=(e=n.zIndex)?e:r.value}}));function h(){n.duration>0&&({stop:u}=Rm((()=>{s.value&&g()}),n.duration))}function m(){null==u||u()}function g(){s.value=!1}return Ba((()=>{h(),l(),s.value=!0})),Hm(document,"keydown",(function({code:e}){e===qT.delete||e===qT.backspace?m():e===qT.esc?s.value&&g():h()})),t({visible:s,close:g}),(e,t)=>(Al(),Nl(Nr,{name:Bt(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:t=>e.$emit("destroy"),persisted:""},{default:Yn((()=>[Xn(jl("div",{id:e.id,class:W([Bt(a).b(),e.customClass,Bt(p)]),style:D(Bt(v)),role:"alert",onMouseenter:m,onMouseleave:h,onClick:e.onClick},[Bt(d)?(Al(),Nl(Bt(py),{key:0,class:W([Bt(a).e("icon"),Bt(c)])},{default:Yn((()=>[(Al(),Nl(Ya(Bt(d))))])),_:1},8,["class"])):Xl("v-if",!0),jl("div",{class:W(Bt(a).e("group"))},[jl("h2",{class:W(Bt(a).e("title")),textContent:te(e.title)},null,10,["textContent"]),Xn(jl("div",{class:W(Bt(a).e("content")),style:D(e.title?void 0:{margin:0})},[eo(e.$slots,"default",{},(()=>[e.dangerouslyUseHTMLString?(Al(),Bl(El,{key:1},[Xl(" Caution here, message could've been compromised, never use user's input as message "),jl("p",{innerHTML:e.message},null,8,["innerHTML"])],2112)):(Al(),Bl("p",{key:0},te(e.message),1))]))],6),[[ei,e.message]]),e.showClose?(Al(),Nl(Bt(py),{key:0,class:W(Bt(a).e("closeBtn")),onClick:Fi(g,["stop"])},{default:Yn((()=>[Kl(Bt(i))])),_:1},8,["class","onClick"])):Xl("v-if",!0)],2)],46,["id","onClick"]),[[ei,s.value]])])),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}}),[["__file","notification.vue"]]);const KJ={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let WJ=1;const qJ=function(e={},t){if(!Sm)return{close:()=>{}};(m(e)||Hl(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;KJ[n].forEach((({vm:e})=>{var t;a+=((null==(t=e.el)?void 0:t.offsetHeight)||0)+16})),a+=16;const o="notification_"+WJ++,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{!function(e,t,n){const a=KJ[t],o=a.findIndex((({vm:t})=>{var n;return(null==(n=t.component)?void 0:n.props.id)===e}));if(-1===o)return;const{vm:l}=a[o];if(!l)return;null==n||n(l);const r=l.el.offsetHeight,i=t.split("-")[0];a.splice(o,1);const s=a.length;if(s<1)return;for(let u=o;ur.message:null);return u.appContext=sm(t)?qJ._context:t,u.props.onDestroy=()=>{Yi(null,s)},Yi(u,s),KJ[n].push({vm:u}),i.appendChild(s.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};DJ.forEach((e=>{qJ[e]=(t={},n)=>((m(t)||Hl(t))&&(t={message:t}),qJ({...t,type:e},n))})),qJ.closeAll=function(){for(const e of Object.values(KJ))e.forEach((({vm:e})=>{e.component.exposed.visible.value=!1}))},qJ._context=null;const UJ=iy(qJ,"$notify");var YJ=((e=[])=>({version:"2.9.6",install:(t,n)=>{t[Hd]||(t[Hd]=!0,e.forEach((e=>t.use(e))),n&&Bg(n,t,!0))}}))([...ZX,...[rJ,mJ,TJ,HJ,UJ,iP]]),GJ=Object.freeze(Object.defineProperty({__proto__:null,default:{env:"development",title:"开发",baseUrl:"",baseApi:"",APPSECRET:"xxx",$cdn:"https://imgs.solui.cn"}},Symbol.toStringTag,{value:"Module"})),XJ=Object.freeze(Object.defineProperty({__proto__:null,default:{env:"production",title:"生产",baseUrl:"",baseApi:"https://api.homilychart.com/scms/api",APPSECRET:"xxx",$cdn:"https://imgs.solui.cn"}},Symbol.toStringTag,{value:"Module"}));const JJ={},ZJ={"./env.development.js":GJ,"./env.production.js":XJ};console.log("已加载所有环境模块:",ZJ),Object.entries(ZJ).forEach((([e,t])=>{const n=e.replace(/\.\/env\.(.*)\.js$/,"$1");JJ[n]=t}));const QJ=JJ.development?JJ.development.default:null;QJ||console.error("未找到对应 development 环境的配置文件,请检查。"),console.log("根据环境引入不同配置",QJ);const eZ={badRequest:"请求错误(400)",unauthorized:"未授权,请登录(401)",forbidden:"拒绝访问(403)",notFound:"请求地址出错: [具体 URL 将在这里被替换]",methodNotAllowed:"请求方法未允许(405)",requestTimeout:"请求超时(408)",internalServerError:"服务器内部错误(500)",notImplemented:"服务未实现(501)",badGateway:"网络错误(502)",serviceUnavailable:"服务不可用(503)",gatewayTimeout:"网络超时(504)",httpVersionNotSupported:"HTTP 版本不受支持(505)",defaultConnectionError:"连接错误: [原始错误消息]",networkError:"网络异常,请检查后重试!",serverFailure:"连接到服务器失败,请联系管理员"},tZ=Nd.create({baseURL:"",withCredentials:!1});tZ.interceptors.request.use((e=>e),(e=>Promise.reject(e))),tZ.interceptors.response.use((async e=>{const t=e.data;return 200!==t.code?(t.msg,e.data):e.data}),(e=>{const t=(e=>{if(e&&e.response)switch(e.response.status){case 400:e.message=eZ.badRequest;break;case 401:e.message=eZ.unauthorized;break;case 403:e.message=eZ.forbidden;break;case 404:e.message=eZ.notFound.replace("[具体 URL 将在这里被替换]",e.response.config.url);break;case 405:e.message=eZ.methodNotAllowed;break;case 408:e.message=eZ.requestTimeout;break;case 500:e.message=eZ.internalServerError;break;case 501:e.message=eZ.notImplemented;break;case 502:e.message=eZ.badGateway;break;case 503:e.message=eZ.serviceUnavailable;break;case 504:e.message=eZ.gatewayTimeout;break;case 505:e.message=eZ.httpVersionNotSupported;break;default:e.message=eZ.defaultConnectionError.replace("[原始错误消息]",e.message)}else"Network Error"===e.message?e.message=eZ.networkError:e.message=eZ.serverFailure;return e.message})(e);return TJ.error(t),Promise.reject(e)}));const nZ="https://hwjb.homilychart.com",aZ="https://hwjb.homilychart.com",oZ="https://hwjb.homilychart.com/hljw",lZ=function(e){return tZ({url:`${nZ}/api/brain/privilege`,method:"post",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},rZ=function(e){const t=new URLSearchParams(Object.entries(e).map((([e,t])=>[e,String(t)])));return tZ({url:`${nZ}/api/brain/data`,method:"post",data:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})},iZ=function(){return tZ({url:`${nZ}/api/ai_god/news`,method:"POST"})},sZ=function(){return tZ({url:`${nZ}/api/ai_god/shows`,method:"POST",data:new URLSearchParams({type:"3",num:"1",state:"1"})})},uZ=function(e){return tZ({url:`${nZ}/api/aiEmotion/client/getRemainNum`,method:"POST",data:e})},cZ=function(e){return tZ({url:`${nZ}/api/ai_god/shows/click`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},dZ=function(e){return tZ({url:`${nZ}/api/ai_god/news/click`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},pZ=function(e){return tZ({url:`${nZ}/api/ai_god/feedback/add`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},fZ=function(e){return tZ({url:`${nZ}/api/ai_god/feedback/select`,method:"POST",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})},vZ=function(e){return tZ({url:`${nZ}/api/ai_god/market/list`,method:"POST",data:new URLSearchParams(e),headers:{token:"pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q","Content-Type":"application/x-www-form-urlencoded"}})},hZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbFirst`,method:"POST",data:e})},mZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondOne`,method:"POST",data:e})},gZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondTwo`,method:"POST",data:e})},yZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondThree`,method:"POST",data:e})},bZ=function(e){return tZ({url:`${aZ}/api/workflow/dbqbSecondFour`,method:"POST",data:e})},wZ=function(e){return tZ({url:`${nZ}/api/workflow/listHistory`,method:"POST",data:e})},xZ=function(e){return tZ({url:`${nZ}/api/workflow/topRecord`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},CZ=function(e){return tZ({url:`${nZ}/api/workflow/deleteRecord`,method:"POST",data:e})},kZ=function(e){return tZ({url:`${nZ}/api/workflow/clickRecord`,method:"POST",data:e})},SZ=function(e){return tZ({url:`${nZ}/api/showExchange`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},_Z=function(e){return tZ({url:`${nZ}/api/godExchange`,method:"POST",data:e,headers:{token:localStorage.getItem("localToken")}})},MZ=function(e){return tZ({url:`${nZ}/api/exchange`,method:"POST",data:e})},EZ=function(e){return tZ({url:`${oZ}/api/haiwai/user/getGoldCoin`,method:"POST",data:e})},TZ=function(e){return tZ({url:`${oZ}/api/v2/member/info`,method:"POST",data:e})},OZ=function(e,t){return tZ({url:`${nZ}/api/workflow/checkStatus`,method:"POST",data:t,headers:e})};function $Z(e){const t=rc(),n=At(Date.now()),a=At(!0),o=At("true"===sessionStorage.getItem("hasRecordedEntry"));let l=!1;const r=()=>{if(o.value)return;n.value=Date.now();const e=new Date(n.value),t=`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")} ${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}`;sessionStorage.setItem("projectEntryTime",t),sessionStorage.setItem("hasRecordedEntry","true"),a.value=!0,o.value=!0;const l=localStorage.getItem("localToken");if(l){const e=tZ({url:`${nZ}/api/ai_god/useAiGod`,method:"post",data:new URLSearchParams({token:l}),headers:{"Content-Type":"application/x-www-form-urlencoded"}});console.log(e)}else console.log("没有token");console.log("记录首次进入时间:",t)},i=async()=>{if(!a.value)return;const e=sessionStorage.getItem("projectEntryTime");if(!e)return void console.warn("未找到存储的进入时间,取消发送跟踪数据");let t;try{if(t=new Date(e.replace(" ","T")).getTime(),isNaN(t))throw new Error("无效日期")}catch(s){return void console.error("解析存储的进入时间时出错:",s)}const n=Date.now(),l=Math.floor((n-t)/1e3),r=localStorage.getItem("localToken");console.log("进入项目的时间",e),console.log("停留时间",l);const i={stayTime:l,token:r};if(r)try{const e=await function(e){return tZ({url:`${nZ}/api/ai_god/updateStayTime`,method:"post",data:new URLSearchParams(e),headers:{"Content-Type":"application/x-www-form-urlencoded"}})}(i);console.log("跟踪数据已发送:",e),sessionStorage.removeItem("projectEntryTime"),sessionStorage.removeItem("hasRecordedEntry"),a.value=!1,o.value=!1}catch(s){console.error("发送跟踪数据失败:",s)}},s=()=>{"hidden"===document.visibilityState&&(console.log("页面不可见,用户可能离开或切换标签页"),i())},u=e=>{l?console.log("页面刷新,不触发数据发送"):(console.log("页面即将关闭或跳转"),i())},c=()=>{l=!0};return cl((()=>t.currentRoute.value.path),(t=>{const n=e.some((e=>t.startsWith(e)));let a=e[0];console.log(a);const l=window.location.pathname.includes("duobaoqibing");n||l?a&&!o.value&&(console.log("首次进入项目路由:",t),r()):(console.log("离开项目路由:",t),i())})),Ba((()=>{document.addEventListener("visibilitychange",s),window.addEventListener("beforeunload",u),window.addEventListener("unload",c)})),Da((()=>{document.removeEventListener("visibilitychange",s),window.removeEventListener("beforeunload",u),window.removeEventListener("unload",c)})),{entryTime:n,isInProject:a,sendTrackingData:i}}var IZ=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};var VZ=IZ({__name:"App",setup:e=>($Z(["/Selectmodel","/homePage","/AIchat","/AIfind","/Announcement","/DBQBmodel","/Emotionsmodel"]),(e,t)=>{const n=qa("router-view");return Al(),Nl(n)})},[["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/App.vue"]]);const AZ={},LZ=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/aixiaocaishen/${e}`)in AZ)return;AZ[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const a=document.createElement("link");return a.rel=t?"stylesheet":"modulepreload",t||(a.as="script",a.crossOrigin=""),a.href=e,document.head.appendChild(a),t?new Promise(((t,n)=>{a.addEventListener("load",t),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())):e()},RZ=[{path:"/",redirect:"Selectmodel"},{path:"/Selectmodel",name:"Selectmodel",component:()=>LZ((()=>import("./Selectmodel-28751654.js")),["static/js/Selectmodel-28751654.js","static/css/Selectmodel-e01f4832.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/dataList-3b7c4b7e.js","static/js/userPessionCode-33b4794f.js","static/js/index-bce0856e.js"])},{path:"/homePage",name:"homePage",component:()=>LZ((()=>import("./homePage-515c2cee.js")),["static/js/homePage-515c2cee.js","static/css/homePage-3e278ddf.css","static/js/setHeight-96dcefe6.js","static/js/userPessionCode-33b4794f.js","static/js/chat-52f319e2.js","static/js/dataList-3b7c4b7e.js","static/js/index-bce0856e.js","static/js/marked.esm-cf4f21f5.js","static/js/AiEmotion-99036b55.js","static/css/AiEmotion-5436ed6b.css","static/js/moment-6961f857.js","static/js/emoEnergyConverter-7a8b83fd.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-3afd7f01.js","static/css/marketTemperature-f0fcbc4c.css","static/js/AIfind-b761aee6.js","static/css/AIfind-9eb4eb4f.css","static/js/Feedback-5e237f54.js","static/css/Feedback-562dc0cd.css","static/js/back-9e899973.js","static/js/Announcement-911e0476.js","static/css/Announcement-24809191.css"]),children:[{name:"AiEmotion",path:"/AiEmotion",component:()=>LZ((()=>import("./AiEmotion-99036b55.js").then((function(e){return e.c}))),["static/js/AiEmotion-99036b55.js","static/css/AiEmotion-5436ed6b.css","static/js/moment-6961f857.js","static/js/emoEnergyConverter-7a8b83fd.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-3afd7f01.js","static/css/marketTemperature-f0fcbc4c.css","static/js/index-bce0856e.js","static/js/chat-52f319e2.js","static/js/marked.esm-cf4f21f5.js","static/js/userPessionCode-33b4794f.js"])}]},{path:"/AIfind",name:"AIfind",component:()=>LZ((()=>import("./AIfind-b761aee6.js").then((function(e){return e.a}))),["static/js/AIfind-b761aee6.js","static/css/AIfind-9eb4eb4f.css","static/js/marked.esm-cf4f21f5.js"]),meta:{title:"发现"}},{path:"/Announcement",name:"Announcement",component:()=>LZ((()=>import("./Announcement-911e0476.js")),["static/js/Announcement-911e0476.js","static/css/Announcement-24809191.css","static/js/back-9e899973.js","static/js/dataList-3b7c4b7e.js","static/js/userPessionCode-33b4794f.js","static/js/index-bce0856e.js","static/js/chat-52f319e2.js"])},{path:"/Feedback",name:"Feedback",component:()=>LZ((()=>import("./Feedback-5e237f54.js")),["static/js/Feedback-5e237f54.js","static/css/Feedback-562dc0cd.css","static/js/dataList-3b7c4b7e.js","static/js/userPessionCode-33b4794f.js","static/js/index-bce0856e.js","static/js/back-9e899973.js","static/js/moment-6961f857.js"])},{path:"/DBQBmodel",name:"DBQBmodel",component:()=>LZ((()=>import("./DBQBmodel-ceb87c4b.js")),["static/js/DBQBmodel-ceb87c4b.js","static/css/DBQBmodel-93377554.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/setHeight-96dcefe6.js","static/js/BackToHomeButton-59f18a35.js"])},{path:"/Emotionsmodel",name:"Emotionsmodel",component:()=>LZ((()=>import("./Emotionsmodel-9a0283d9.js")),["static/js/Emotionsmodel-9a0283d9.js","static/css/Emotionsmodel-44988940.css","static/css/BackToHomeButton.vue_vue_type_style_index_0_scoped_true_lang-f67b9b28.css","static/js/setHeight-96dcefe6.js","static/js/BackToHomeButton-59f18a35.js"])},{path:"/emotionsEcharts",name:"emotionsEcharts",component:()=>LZ((()=>import("./emotionsEcharts-0a5469dd.js")),["static/js/emotionsEcharts-0a5469dd.js","static/js/emoEnergyConverter-7a8b83fd.js","static/css/emoEnergyConverter-73d5d9f1.css","static/js/marketTemperature-3afd7f01.js","static/css/marketTemperature-f0fcbc4c.css","static/js/moment-6961f857.js","static/js/index-bce0856e.js"])},{path:"/marketTemperature",name:"marketTemperature",component:()=>LZ((()=>import("./marketTemperature-3afd7f01.js").then((function(e){return e.a}))),["static/js/marketTemperature-3afd7f01.js","static/css/marketTemperature-f0fcbc4c.css","static/js/moment-6961f857.js"])},{path:"/goldenWheel",name:"goldenWheel",component:()=>LZ((()=>import("./goldenWheel-482272f3.js")),["static/js/goldenWheel-482272f3.js","static/css/goldenWheel-900ad187.css"])}],zZ=function(e){const t=vu(e.routes,e),n=e.parseQuery||_u,a=e.stringifyQuery||Mu,o=e.history;if(!o)throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');const l=Au(),r=Au(),i=Au(),s=Lt(zs);let u=zs;as&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=rs.bind(null,(e=>""+e)),d=rs.bind(null,Ms),p=rs.bind(null,Es);function f(e,l){if(l=ls({},l||s.value),"string"==typeof e){const a=Os(n,e,l.path),r=t.resolve({path:a.path},l),i=o.createHref(a.fullPath);return i.startsWith("//")?us(`Location "${e}" resolved to "${i}". A resolved location cannot start with multiple slashes.`):r.matched.length||us(`No match found for location with path "${e}"`),ls(a,r,{params:p(r.params),hash:Es(a.hash),redirectedFrom:void 0,href:i})}if(!Js(e))return us("router.resolve() was passed an invalid location. This will fail in production.\n- Location:",e),f({});let r;if(null!=e.path)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&us(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),r=ls({},e,{path:Os(n,e.path,l.path).path});else{const t=ls({},e.params);for(const e in t)null==t[e]&&delete t[e];r=ls({},e,{params:d(t)}),l.params=d(l.params)}const i=t.resolve(r,l),u=e.hash||"";u&&!u.startsWith("#")&&us(`A \`hash\` should always start with the character "#". Replace "${u}" with "#${u}".`),i.params=c(p(i.params));const v=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(a,ls({},e,{hash:(h=u,Ss(h).replace(ws,"{").replace(Cs,"}").replace(ys,"^")),path:i.path}));var h;const m=o.createHref(v);return m.startsWith("//")?us(`Location "${e}" resolved to "${m}". A resolved location cannot start with multiple slashes.`):i.matched.length||us(`No match found for location with path "${null!=e.path?e.path:e}"`),ls({fullPath:v,hash:u,query:a===Mu?Eu(e.query):e.query||{}},i,{redirectedFrom:void 0,href:m})}function v(e){return"string"==typeof e?Os(n,e,s.value.path):ls({},e)}function h(e,t){if(u!==e)return au(8,{from:t,to:e})}function m(e){return y(e)}function g(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let a="function"==typeof n?n(e):n;if("string"==typeof a&&(a=a.includes("?")||a.includes("#")?a=v(a):{path:a},a.params={}),null==a.path&&!("name"in a))throw us(`Invalid redirect found:\n${JSON.stringify(a,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return ls({query:e.query,hash:e.hash,params:null!=a.path?{}:e.params},a)}}function y(e,t){const n=u=f(e),o=s.value,l=e.state,r=e.force,i=!0===e.replace,c=g(n);if(c)return y(ls(v(c),{state:"object"==typeof c?ls({},l,c.state):l,force:r,replace:i}),t||n);const d=n;let p;return d.redirectedFrom=t,!r&&Is(a,o,n)&&(p=au(16,{to:d,from:o}),I(o,o,!0,!1)),(p?Promise.resolve(p):x(d,o)).catch((e=>ou(e)?ou(e,2)?e:$(e):O(e,d,o))).then((e=>{if(e){if(ou(e,2))return Is(a,f(e.to),d)&&t&&(t._count=t._count?t._count+1:1)>30?(us(`Detected a possibly infinite redirection in a navigation guard when going from "${o.fullPath}" to "${d.fullPath}". Aborting to avoid a Stack Overflow.\n Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):y(ls({replace:i},v(e.to),{state:"object"==typeof e.to?ls({},l,e.to.state):l,force:r}),t||d)}else e=k(d,o,!0,i,l);return C(d,o,e),e}))}function b(e,t){const n=h(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){const t=L.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function x(e,t){let n;const[a,o,i]=function(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rVs(e,l)))?a.push(l):n.push(l));const i=e.matched[r];i&&(t.matched.find((e=>Vs(e,i)))||o.push(i))}return[n,a,o]}(e,t);n=Ru(a.reverse(),"beforeRouteLeave",e,t);for(const l of a)l.leaveGuards.forEach((a=>{n.push(Lu(a,e,t))}));const s=b.bind(null,e,t);return n.push(s),z(n).then((()=>{n=[];for(const a of l.list())n.push(Lu(a,e,t));return n.push(s),z(n)})).then((()=>{n=Ru(o,"beforeRouteUpdate",e,t);for(const a of o)a.updateGuards.forEach((a=>{n.push(Lu(a,e,t))}));return n.push(s),z(n)})).then((()=>{n=[];for(const a of i)if(a.beforeEnter)if(ss(a.beforeEnter))for(const o of a.beforeEnter)n.push(Lu(o,e,t));else n.push(Lu(a.beforeEnter,e,t));return n.push(s),z(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Ru(i,"beforeRouteEnter",e,t,w),n.push(s),z(n)))).then((()=>{n=[];for(const a of r.list())n.push(Lu(a,e,t));return n.push(s),z(n)})).catch((e=>ou(e,8)?e:Promise.reject(e)))}function C(e,t,n){i.list().forEach((a=>w((()=>a(e,t,n)))))}function k(e,t,n,a,l){const r=h(e,t);if(r)return r;const i=t===zs,u=as?history.state:{};n&&(a||i?o.replace(e.fullPath,ls({scroll:i&&u&&u.scroll},l)):o.push(e.fullPath,l)),s.value=e,I(e,t,n,i),$()}let S;function _(){S||(S=o.listen(((e,t,n)=>{if(!R.listening)return;const a=f(e),l=g(a);if(l)return void y(ls(l,{replace:!0}),a).catch(is);u=a;const r=s.value;var i,c;as&&(i=qs(r.fullPath,n.delta),c=Ks(),Us.set(i,c)),x(a,r).catch((e=>ou(e,12)?e:ou(e,2)?(y(e.to,a).then((e=>{ou(e,20)&&!n.delta&&n.type===Bs.pop&&o.go(-1,!1)})).catch(is),Promise.reject()):(n.delta&&o.go(-n.delta,!1),O(e,a,r)))).then((e=>{(e=e||k(a,r,!1))&&(n.delta&&!ou(e,8)?o.go(-n.delta,!1):n.type===Bs.pop&&ou(e,20)&&o.go(-1,!1)),C(a,r,e)})).catch(is)})))}let M,E=Au(),T=Au();function O(e,t,n){$(e);const a=T.list();return a.length?a.forEach((a=>a(e,t,n))):(us("uncaught error during route navigation:"),console.error(e)),Promise.reject(e)}function $(e){return M||(M=!e,_(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function I(t,n,a,o){const{scrollBehavior:l}=e;if(!as||!l)return Promise.resolve();const r=!a&&function(e){const t=Us.get(e);return Us.delete(e),t}(qs(t.fullPath,0))||(o||!a)&&history.state&&history.state.scroll||null;return gn().then((()=>l(t,n,r))).then((e=>e&&Ws(e))).catch((e=>O(e,t,n)))}const V=e=>o.go(e);let A;const L=new Set,R={currentRoute:s,listening:!0,addRoute:function(e,n){let a,o;return Zs(e)?(a=t.getRecordMatcher(e),a||us(`Parent route "${String(e)}" not found when adding child route`,n),o=n):o=e,t.addRoute(o,a)},removeRoute:function(e){const n=t.getRecordMatcher(e);n?t.removeRoute(n):us(`Cannot remove non-existent route "${String(e)}"`)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:m,replace:function(e){return m(ls(v(e),{replace:!0}))},go:V,back:()=>V(-1),forward:()=>V(1),beforeEach:l.add,beforeResolve:r.add,afterEach:i.add,onError:T.add,isReady:function(){return M&&s.value!==zs?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){const n=this;e.component("RouterLink",Bu),e.component("RouterView",Fu),e.config.globalProperties.$router=n,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Bt(s)}),as&&!A&&s.value===zs&&(A=!0,m(o.location).catch((e=>{us("Unexpected error when starting the router:",e)})));const a={};for(const t in zs)Object.defineProperty(a,t,{get:()=>s.value[t],enumerable:!0});e.provide($u,n),e.provide(Iu,wt(a)),e.provide(Vu,s);const l=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(u=zs,S&&S(),S=null,s.value=zs,A=!1,M=!1),l()},as&&qu(e,n,t)}};function z(e){return e.reduce(((e,t)=>e.then((()=>w(t)))),Promise.resolve())}return R}({history:function(e){const t=Xs(e=Ps(e)),n=function(e,t,n,a){let o=[],l=[],r=null;const i=({state:l})=>{const i=Ys(e,location),s=n.value,u=t.value;let c=0;if(l){if(n.value=i,t.value=l,r&&r===s)return void(r=null);c=u?l.position-u.position:0}else a(i);o.forEach((e=>{e(n.value,s,{delta:c,type:Bs.pop,direction:c?c>0?Hs.forward:Hs.back:Hs.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(ls({},e.state,{scroll:Ks()}),"")}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",s,{passive:!0}),{pauseListeners:function(){r=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return l.push(t),t},destroy:function(){for(const e of l)e();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",s)}}}(e,t.state,t.location,t.replace),a=ls({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:js.bind(null,e)},t,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}("/aixiaocaishen"),routes:RZ});function BZ(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function NZ(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]} /*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote diff --git a/dev/static/js/index-5d1237a4.js b/dev/static/js/index-bce0856e.js similarity index 99% rename from dev/static/js/index-5d1237a4.js rename to dev/static/js/index-bce0856e.js index 8ef3a97..2c4e85d 100644 --- a/dev/static/js/index-5d1237a4.js +++ b/dev/static/js/index-bce0856e.js @@ -1 +1 @@ -import{r as i,k as e}from"./index-4cb6f38c.js";const n={cn:{language:"简体中文",suoxie:"cn",greeting:"超级云脑",greeting1:"夺宝利剑",greeting2:"AI预测大模型",greeting3:"AI探牛",daoqi:"夺宝奇兵服务期限",wei:"为:",hotStocks:"热门股票",content:"夺宝奇兵",content_1:"“夺宝奇兵”是一款",content_2:"高度智能化",content_3:"的股票分析工具,利用大数据、机器学习和人工智能技术,挖掘并解析股票市场的复杂性,以提供",content_4:"精准",content_5:"的的压力支撑点,资金流向和趋势分析。“夺宝奇兵”凭借其精密的算法及高效的分析,正快速成为",content_6:"股市投资者的绝佳助手",content_7:",它使投资者能够清楚地理解这些数据的真正含义,帮助投资者理解和掌握股市,助力投资者实现",content_8:"高效、智慧的投资管理。",global:"全球指数",results:"根据超级云脑大数据计算引擎的结果:",endTerm:"点击查看服务期限",noTerms:"暂无权限",shuru:"请输入股票名称/代码",guzhi:"股票估值",yunnaotanmi:"云脑探秘",jigoudongxiang:"机构动向",duobaolijian:"夺宝利剑",aidamoxing:"AI预测大模型",feixian:"飞线",zhoongxian:"中线",liuxian:"流线",tianxian:"天线",maipan:"买盘",maipan1:"卖盘",kai:"开",shou:"收",gao:"高",di:"低",huolichouma:"获利筹码",fudongchouma:"浮动筹码",taolaochouma:"套牢筹码",liuselp:"六色罗盘",gupiaoguzhi:"股票估值",qushi1:"趋势线1",qushi2:"趋势线2",qushi3:"趋势线3",endDateText:"试用期限剩余:",endTianShu:"天",newUsers:"新用户注册可得30天使用权",dangrigujia:"当日股价",gupiaodaima:"股票代码",riqi:"日期",zhangdieedu:"涨跌额度",zhangdiebaifenbi:"涨跌百分比",dangrizijin:"当日资金",dangriduofangzijin:"当日多方资金",liuru:"流入",liuchu:"流出",zhulizijin:"主力资金",zhulizijin1:"当前市场多头资金开始占优。",zhulizijin2:"当前市场多头资金占优,且多头资金呈现持续流入状态。",zhulizijin3:"当前市场多头资金占优,但多头资金出现撤退迹象, 主力似乎有洗盘的动作。",zhulizijin4:"当前市场多头资金占优。",zhulizijin5:"当前市场仍是多头资金占优,但多头资金出现持续流出。",zhulizijin6:"当前市场多头资金占优,且多头资金再次开始流入。",zhulizijin7:"当前市场空头资金开始占优。",zhulizijin8:"当前市场空头资金占优,且空头力量呈增加趋势。",zhulizijin9:"当前市场空头资金占优,主力似乎有砸盘的动作。",zhulizijin10:"当前市场空头资金占优,但空头资金出现撤退迹象。",zhulizijin11:"当前市场仍是空头资金占优。",zhulizijin12:"当前市场仍是空头资金占优,但空头力量呈下降趋势。",zhulizijin13:"当前市场空头资金占优,且空头力量再次呈增加趋势。",zhulixichou:"主力吸筹",zhulixichou1:"近日出现主力集中吸筹。",zhulixichou2:"近日没有出现主力集中吸筹。",zhuangsanduijue:"庄散对决",zhuangsanduijue1:"近期主力持仓比例大于散户持仓比例。",zhuangsanduijue2:"近期主力持仓比例小于散户持仓比例。",zhuangsanduijue3:"当日主力持仓增加。",zhuangsanduijue4:"当日主力持仓减少。",zhuangsanduijue5:"当日散户持仓增加。",zhuangsanduijue6:"当日散户持仓减少。",anquanjibei:"安全级别",more:"更多",chuyu1:"根据超级云脑六色罗盘的全方位检测结果,该股当前处于",chuyu2:"安全级别为",dengji1:"弱撑强压区",dengji2:"弱撑中压区",dengji3:"弱撑弱压区",dengji4:"强撑强压区",dengji5:"强撑中压区",dengji6:"强撑弱压区",dengji7:"极高风险",dengji8:"较高风险",dengji9:"中等风险",dengji10:"一般安全",dengji11:"较为安全",dengji12:"非常安全",yali:"压力支撑",yali1:"根据超级云脑大数据计算引擎的结果",yali2:"该股当前股价为",yali3:"该股压力位为",yali_contral:"该股支撑位为",yali4:"压力强度较弱,温和放量即可突破。",yali5:"压力强度一般,需明显放量方可突破。",yali6:"压力强度较大,需放出巨量方可有效突破。",yali7:"支撑强度较弱。",yali8:"支撑强度一般。",yali9:"支撑强度较大。",yali10:"压力强度较弱。",yali11:"压力强度一般。",yali12:"压力强度较大。",yali13:"暂无数据",qushi:"趋势研判",qushitext1:"该股中长期处于",qushitext2:"上升趋势,",qushitext3:"短期处于",qushitext4:"强势状态。",qushitext5:"下降趋势,",qushitext6:"弱势状态。",zhuangjia:"庄家成本",zhuangjia1:"根据超级云脑大数据筹码模型的结果,该股庄家中长期筹码成本价格为",zhuangjia2:"短期资金成本价格为",zhuangjia3:"该股筹码集中。",zhuangjia4:"该股筹码较为集中。",zhuangjia5:"该股筹码较为分散。",zhuangjia6:"该股筹码分散。",zhuangjia7:"当日筹码成本价格为",zhibiaojieshao:"指标介绍",qingxujiazhi:"情绪价值",qingxujiazhi1:"根据超级云脑大数据筹码模型的结果,",qingxujiazhi2:"近期获利筹码显著增加,短期获利了结抛售明显。",qingxujiazhi3:"近期获利筹码显著增加,股民获利了结意愿不明显,筹码稳定性较好。",qingxujiazhi4:"近期获利筹码出现减少,短期获利盘抛售明显。",qingxujiazhi5:"近期获利筹码出现增加,股民获利了结意愿不明显,筹码稳定性较好。",qingxujiazhi6:"近期套牢筹码显著增加,割肉离场筹码显著明显。",qingxujiazhi7:"近期套牢筹码显著增加,股民离场意愿不明显,筹码被套牢锁定。",qingxujiazhi8:"近期套牢筹码出现减少,有新资金入场吸货和前期套牢筹码进行摊薄。",qingxujiazhi9:"近期套牢筹码出现减少,短期获利了解意愿不明显,多数筹码呈现观望状态。",gongnengshuoming:"功能说明",feitian:"飞天功能",liucaishenlong:"六彩神龙",red:"红色柱线:获利筹码(主力资金)",purple:"紫色柱线:获利筹码10日均线",blue:"蓝色柱线:套牢筹码10日均线",yellow:"黄色柱线:浮动筹码(游资)",green:"绿色柱线:套牢筹码(散户资金)",pink:"粉色柱线:浮动筹码10日均线",bodongliang:"波动量",gongneng:"波动量指标由红色的买盘、绿色的卖盘和能量波动线构成。",tebietongzhi:"特别通知",tongzhi1:"尊敬的用户",tongzhi2:"我们非常高兴地通知您,“夺宝利剑”模块现正开放限时体验!在此期间,您将免费体验这个全新功能,感受其独特魅力和强大功能。",tongzhi3:"体验时间",tongzhi4:"开始时间:即日起(2024年8月2日)",tongzhi5:"结束时间:请持续关注后续通知",tongzhi6:"功能亮点",tongzhi7:"深度研究庄家的各种行为,让庄家的动作无处遁形。祝您使用愉快!",tongzhi8:"搭载全新AI大数据模型,深入探究股价运行背后的盈利逻辑,被誉为“最聪明的AI智能均线”。",tongzhi9:"祝您使用愉快!",tongzhi10:"弘历智能研发团队",tongzhi11:"我们非常高兴地通知您,AI预测大模型模块现正开放限时体验!在此期间,您将免费体验这个全新功能,感受其独特魅力和强大功能。",tongzhi12:"AI预测大模型是一种创新的预测工具,颠覆了传统股市的预测理念,运用深度学习和先进算法,对历史数据进行深度挖掘,精准捕捉藏在数据之中的难以察觉的模式和趋势。即使面对市场的快速变化,也能迅速调整策略,预测出即将来到的高点和低点。",aiyuce:"根据AI预测大模型测算,",gujia:"股价",stockPricePrediction:"股价预测",timeSpacePrediction:"时空预测",bodongfenxi:"股价波动分析",jinrishangzhanglv:"近日上涨概率",yucejia:"预测价:",zuidijia:"最低价",zuigaojia:"最高价",weilaizhangdiegailv:"未来涨跌概率",ri5:"5日",ri13:"13日",ri21:"21日",lishibodongqujian:"历史波动区间",shangzhanggailv:"上涨概率",gaodian:"高点",didian:"低点",jiage1:"现价:",jiage2:"卖出价",jiage3:"买回价",jiage4:"预测低一",jiage5:"预测低二",jiage6:"预测高一",jiage7:"预测高二",bt:"AI时空共振",gnjx:"功能简介",gnjx_nr1:"AI时空共振",gnjx_nr2:",结合了最前沿的AI技术和时空共振理念,其主旨在于通过借鉴和运用时空共振理论的原理,",gnjx_nr3:"精准探索和识别",gnjx_nr4:"出特定情境、环境或过程中的变盘点。是一种具备",gnjx_nr5:"深度预测能力",gnjx_nr6:"的“未来眼”,为股市分析提供了一种全新的视角。",jl:"下一个变盘点是:",jl_1:"距离下下次股市变盘点还有",jl_2:"",wlyc1:"未来预测",wlyc2:",是一个充满创新与想象力的功能,其核心在于将",wlyc3:"高阶数据科学",wlyc4:"和",wlyc5:"AI科技",wlyc6:"相结合,利用经过训练的AI来找出隐藏在海量数据之中的模式,揭示内在规律,为预测提供强大的技术支持。使我们能够在变化莫测的世界中抓住",wlyc7:"关键机遇",wlyc8:",做出最",wlyc9:"科学决策。",daima:"代码:",gupiao:"名称:",up:"涨幅:",now_price:"现价:",searchCode:"请输入股票名称/代码",mostViewed:"浏览最多",toLearn:"不知道应该如何使用?点击学习 >",learn:"学习",toLogin:"去登录",login:"登录",aifindCow:"AI探牛",duanluo:"以AI尖端技术和知识图谱分析为核心,精确识别市场攻防转换点,在复杂震荡行情中,去伪存真,识别真正的投资机会。为投资者提供投资新视角,让投资更加高效稳健。",gujiayuce_red:"红色:进攻K线,多方展开进攻;",gujiayuce_yello:"黄色:防守K线,多空临界点,最后的防守;",gujiayuce_blue:"蓝色:推进K线,一直蓝一直持有;",cyan:"青色:撤退K线,坚决空仓;",findcowrope:"牵牛绳:红色表示上升趋势,绿色表示下降趋势。",title_2:"功能介绍",Klinetext_1:"进攻K线",Klinetext_2:"防守K线",Klinetext_3:"推进K线",Klinetext_4:"撤退K线",Klinetext_5:"龙线",Klinetext_6:"虫线",FCX:"牵牛绳",overText_1:"“AI探牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_2:"开始时间:",overText_3:"结束时间:",xinshouyunnaoText1:"轻松识别股票的压力支撑及安全级别,机构动向一览无余",xinshoulijianText1:"一飞冲天,精准捕捉市场行情",xinshouAiText1:"未来股价的及变盘点预测,一目了然",xinshoutannText:"专为夺市场投资者量身打造的智能助手!",tiaoguo:"跳过",xiayiye:"下一页",shangyiye:"上一页",kaishitiyan:"开始体验",zcw:"支撑位",ylw:"压力位",cnxs:"猜你想搜",searchName:"前往搜索所持股票",dqcb:"短期成本",zcqcb:"中长期成本",new_yali7:"支撑强度较弱",new_yali8:"支撑强度一般",new_yali9:"支撑强度较大",new_zhuangjia3:"该股筹码集中",new_zhuangjia4:"该股筹码较为集中",new_zhuangjia5:"该股筹码较为分散",new_zhuangjia6:"该股筹码分散",goldCow:"AI金牛",yiGn:"以",AIjianduan:"AI尖端技术",heGn:"和",zhishitupu:"知识图谱分析",contentGN1:"为核心,精确识别市场攻防转换点,犹如明灯照亮金牛所在之处,在复杂震荡行情中,去伪存真,识别真正的投资机会。",GN:"金牛版",contentGN2:"不仅为投资者开辟了全新的投资视野,更让投资之旅变得稳定且高效,是引领每一位投资者走向成功的快车道。",ndaoxiaoshi:"牛刀小试:洞悉牛股基因,预判股市未来股市之星;",danyouxing:"大牛有形:彰显牛股飙升之姿,把握迅猛上涨的辉煌阶段;",jinnsongfu:"金牛送福:携翻倍拉升之威,预示个股将启壮阔上涨的辉煌篇章;",yinbeiliang:"阴倍量:较昨日成交量放大一倍及以上(阴线);",yangbeiliang:"阳倍量:较昨日成交量放大一倍及以上(阳线)。",huiyuanzhaunxiang:"弘历会员专享",yidaoqi:"该功能已到期",fufeizanwuquanxian:"付费功能,暂无权限",zanwushichangquanxian:"您目前暂无该市场权限",zanwugaiquanxian:"您暂无该功能权限",chengjiaoliang:"成交量",jinntitle1:"牛股照妖镜",jinntitle2:"疯牛出栏",gupiaonoresult:"暂无数据,请联系客服",jinnqibao:"金牛起爆",dunchi:"度牛尺:衡量牛股的标尺。",DNC:"度牛尺",dunqu:"度牛区",aiRadar:"AI雷达",tiangui:"天轨",digui:"地轨",leidagongnengliangdian1:"AI雷达,通过升维分析,将市场数据提升至更高维度,从而能够跨越空间障碍,为投资者提供全面且深入的投资视角。它精准地揭示隐藏在复杂市场中的真正投资机会,帮助投资者洞悉市场走势。同时,AI雷达的降维打击功能将复杂的市场信息简化,让投资者在瞬息万变的市场环境中迅速抓住关键信息,从而做出明智且及时的投资决策。跨越空间,透视未来,AI雷达无疑是投资者的得力助手。",tianguimiaoshu1:"天地双轨:共由两条曲线组成。",tianguimiaoshu2:"上方的蓝色线为天轨,代表着做多的主力机构对价格空间的控制线。",tianguimiaoshu3:"下方的黄色线为地轨,代表着做空的主力机构对价格空间的控制线。",tanbao:"探宝:",tiandishaungxian:"天地双线:该指标巧妙的融合了时空因素,用新颖的形式体现股价波动的规律,提前提示股价运动的底部前兆和顶部预警。",tancei:"探测:对特定区域和目标的深入分析和识别,旨在识别并确认股价的一级底部、二级底部和三级底部,这些级别反映了股价下跌的不同深和可能的反弹力度。",saoshe:"扫射:在一定范围内快速搜索和追踪目标的过程,目的是发现不同强度的加速点。这些加速点在向右扫描、向左扫描和向上扫描时,其强度依次增强。",tanbao1:"探宝",overText_11:"“AI金牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_12:"“AI雷达”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",zhutuqiangshixinhao:"主图K线",shezhikxian:"k线设置",quxiao:"取消",queding:"确定",aiEmotion:"AI情绪大模型",StockTemperature:"股票温度",MarketTemperature:"市场温度",CurrentStockPopularity:"当前股票热度为",StockPopularity:"股票热度",MarketPopularity:"市场热度",StockMarketTemperatureTrend:"股市温度趋势",TemperatureTrend:"温度趋势",StockMarketTemperatureCalendar:"股市温度日历",TemperatureCalendar:"温度日历",FunctionOverview:"功能介绍",FeatureHighlights:"功能亮点",current1_1:"当前股票温度为",current1:"处于狂热区间",current2:"处于过热区间",current3:"处于中性区间",current4:"处于冷淡区间",current5:"处于冰冷区间",current2_1:"当前市场温度为",current6:"行情处于狂热区间",current7:"行情处于过热区间",current8:"行情处于中性区间",current9:"行情处于冷淡区间",current10:"行情处于冰冷区间",current11:"当前温度趋势说明",yi:"周一",er:"周二",san:"周三",si:"周四",wu:"周五",liu:"周六",ri:"周日",ait:"股票温度计",aie:"情绪解码器"},hk:{language:"繁体中文",suoxie:"hk",greeting:"超級雲腦",greeting1:"奪寶利劍",greeting2:"AI預測大模型",daoqi:"奪寶奇兵服務期限",wei:"為:",hotStocks:"熱門股票",sousuo:"請輸入股票名稱/代碼",content:"奪寶奇兵",content_1:"奪寶奇兵”是一款",content_2:"高度智能化",content_3:"的股票分析工具,利用大數據、機器學習和人工智能技術,挖掘並解析股票市場的複雜性,以提供",content_4:"精準",content_5:"的壓力支撐點,資金流向和趨勢分析。“奪寶奇兵”憑藉其精密的算法及高效的分析,正快速成為",content_6:"股市投資者的絕佳助手",content_7:",它使投資者能夠清楚地理解這些數據的真正含義,幫助投資者理解和掌握股市,助力投資者實現",content_8:"高效、智慧的投資管理。",global:"全球指數",results:"根據超級雲腦大數據計算引擎的結果:",endTerm:"點擊查看服務期限",noTerms:"暫無權限",shuru:"請輸入股票名稱/程式碼",guzhi:"股票估值",yunnaotanmi:"雲腦探秘",jigoudongxiang:"機構動向",duobaolijian:"奪寶利劍",aidamoxing:"AI預測大模型",feixian:"飛線",zhoongxian:"中線",liuxian:"流線",tianxian:"天線",maipan:"買盤",maipan1:"賣盤",huolichouma:"獲利籌碼",fudongchouma:"浮動籌碼",taolaochouma:"套牢籌碼",kai:"開",shou:"收",gao:"高",di:"低",liuselp:"六色羅盤",gupiaoguzhi:"股票估值",qushi1:"趨勢線1",qushi2:"趨勢線2",qushi3:"趨勢線3",endDateText:"試用期限剩餘:",endTianShu:"天",newUsers:"新用戶註冊可得30天使用權",dangrigujia:"當日股價",gupiaodaima:"股票代碼",riqi:"日期",zhangdieedu:"漲跌額度",zhangdiebaifenbi:"漲跌百分比",dangrizijin:"當日資金",dangriduofangzijin:"當日多方資金",liuru:"流入",liuchu:"流出",zhulizijin:"主力資金",zhulizijin1:"當前市場多頭資金開始占優。",zhulizijin2:"當前市場多頭資金占優,且多頭資金呈現持續流入狀態。",zhulizijin3:"當前市場多頭資金占優,但多頭資金出現撤退迹象, 主力似乎有洗盤的動作。",zhulizijin4:"當前市場多頭資金占優。",zhulizijin5:"當前市場仍是多頭資金占優,但多頭資金出現持續流出。",zhulizijin6:"當前市場多頭資金占優,且多頭資金再次開始流入。",zhulizijin7:"當前市場空頭資金開始占優。",zhulizijin8:"當前市場空頭資金占優,且空頭力量呈增加趨勢。",zhulizijin9:"當前市場空頭資金占優,主力似乎有砸盤的動作。",zhulizijin10:"當前市場空頭資金占優,但空頭資金出現撤退迹象。",zhulizijin11:"當前市場仍是空頭資金占優。",zhulizijin12:"當前市場仍是空頭資金占優,但空頭力量呈下降趨勢。",zhulizijin13:"當前市場空頭資金占優,且空頭力量再次呈增加趨勢。",zhulixichou:"主力吸籌",zhulixichou1:"近日出現主力集中吸籌。",zhulixichou2:"近日沒有出現主力集中吸籌。",zhuangsanduijue:"莊散對決",zhuangsanduijue1:"近期主力持倉比例大於散户持倉比例。",zhuangsanduijue2:"近期主力持倉比例小於散户持倉比例。",zhuangsanduijue3:"當日主力持倉增加。",zhuangsanduijue4:"當日主力持倉減少。",zhuangsanduijue5:"當日散户持倉增加。",zhuangsanduijue6:"當日散户持倉減少。",anquanjibei:"安全級別",more:"更多",chuyu1:"根據超級雲腦六色羅盤的全方位檢測結果,該股當前處於",chuyu2:"安全級別為",dengji1:"弱撐強壓區",dengji2:"弱撐中壓區",dengji3:"弱撐弱壓區",dengji4:"强撐強壓區",dengji5:"强撐中壓區",dengji6:"强撐弱壓區",dengji7:"極高風險",dengji8:"較高風險",dengji9:"中等風險",dengji10:"一般安全",dengji11:"較為安全",dengji12:"非常安全",yali:"壓力支撐",yali1:"根據超級雲腦大數據計算引擎的結果",yali2:"該股當前股價為",yali3:"該股壓力位為",yali_contral:"該股支撐位為",yali4:"壓力強度較弱,温和放量即可突破。",yali5:"壓力強度一般,需明顯放量方可突破。",yali6:"壓力強度較大,需放出巨量方可有效突破。",yali7:"支撐強度較弱。",yali8:"支撐強度一般。",yali9:"支撐強度較大。",yali10:"壓力強度較弱。",yali11:"壓力強度一般。",yali12:"壓力強度較大。",yali13:"暫無數據",qushi:"趨勢研判",qushitext1:"該股中長期處於",qushitext2:"上升趨勢,",qushitext3:"短期處於",qushitext4:"強勢狀態。",qushitext5:"下降趨勢,",qushitext6:"弱勢狀態。",zhuangjia:"莊家成本",zhuangjia1:"根據超級雲腦大數據籌碼模型的結果,該股莊家中長期籌碼成本價格為",zhuangjia2:"短期資金成本價格為",zhuangjia3:"該股籌碼集中,",zhuangjia4:"該股籌碼較為集中,",zhuangjia5:"该股筹码较为分散,",zhuangjia6:"該股籌碼較為分散,",zhuangjia7:"當日籌碼成本價格為",zhibiaojieshao:"名額介紹",qingxujiazhi:"情緒價值",qingxujiazhi1:"根據超級雲腦大數據籌碼模型的結果,",qingxujiazhi2:"近期獲利籌碼顯著增加,短期獲利了結拋售明顯。",qingxujiazhi3:"近期獲利籌碼顯著增加,股民獲利了結意願不明顯,籌碼穩定性較好。",qingxujiazhi4:"近期獲利籌碼出現減少,短期獲利盤拋售明顯。",qingxujiazhi5:"近期獲利籌碼出現增加,股民獲利了結意願不明顯,籌碼穩定性較好。",qingxujiazhi6:"近期套牢籌碼顯著增加,割肉離場籌碼顯著明顯。",qingxujiazhi7:"近期套牢籌碼顯著增加,股民離場意願不明顯,籌碼被套牢鎖定。",qingxujiazhi8:"近期套牢籌碼出現減少,有新資金入場吸貨和前期套牢籌碼進行攤薄。",qingxujiazhi9:"近期套牢籌碼出現減少,短期獲利了解意願不明顯,多數籌碼呈現觀望狀態。",gongnengshuoming:"功能說明",feitian:"飛天功能",liucaishenlong:"六彩神龍",red:"紅色柱線:獲利籌碼(主力資金)",purple:"紫色柱線:獲利籌碼10日均線",blue:"藍色柱線:套牢籌碼10日均線",yellow:"黃色柱線:浮動籌碼(遊資)",green:"綠色柱線:套牢籌碼(散戶資金)",pink:"粉色柱線:浮動籌碼10日均線",bodongliang:"波動量",gongneng:"波動量指標由紅色的買盤、綠色的賣盤和能量波動線構成。",tebietongzhi:"特別通知",tongzhi1:"尊敬的用戶",tongzhi2:"我們非常高興地通知您,“奪寶利劍”模塊現正開放限時體驗!在此期間,您將免費體驗這個全新功能,感受其獨特魅力和强大功能。",tongzhi3:"體驗時間",tongzhi4:"開始時間:即日起(2024年8月2日)",tongzhi5:"結束時間:請持續關注後續通知",tongzhi6:"功能亮點",tongzhi7:"深度研究莊家的各種行為,讓莊家的動作無處遁形。祝您使用愉快!",tongzhi8:"搭載全新AI大資料模型,深入探究股價運行背後的盈利邏輯,被譽為“最聰明的AI智慧均線”。",tongzhi9:"祝您使用愉快!",tongzhi10:"弘曆智慧研發團隊",tongzhi11:"我們非常高興地通知您,AI預測大模型模塊現正開放限時體驗!在此期間,您將免費體驗這個全新功能,感受其獨特魅力和强大功能。",tongzhi12:"AI預測大模型是一種創新的預測工具,顛覆了傳統股市的預測理念,運用深度學習和先進算法,對歷史資料進行深度挖掘,精准捕捉藏在數據之中的難以察覺的模式和趨勢。 即使面對市場的快速變化,也能迅速調整策略,預測出即將來到的高點和低點。",aiyuce:"根據AI預測大模型估算,",gujia:"股價",stockPricePrediction:"股價預測",timeSpacePrediction:"時空預測",bodongfenxi:"股價波動分析",jinrishangzhanglv:"近日上漲概率",yucejia:"預測價:",zuidijia:"最低價",zuigaojia:"最高價",weilaizhangdiegailv:"未來漲跌概率",ri5:"5日",ri13:"13日",ri21:"21日",lishibodongqujian:"歷史波動區間",shangzhanggailv:"上漲概率",gaodian:"高點",didian:"低點",jiage1:"現價:",jiage2:"賣出價",jiage3:"買回價",jiage4:"預測低一",jiage5:"預測低二",jiage6:"預測高一",jiage7:"預測高二",bt:"AI時空共振",gnjx:"功能簡介",gnjx_nr1:"AI時空共振",gnjx_nr2:",結合了最前沿的AI技術和時空共振理念,其主旨在於通過借鑒和運用時空共振理論的原理,",gnjx_nr3:"精准探索和識別",gnjx_nr4:"出特定情境、環境或過程中的變盤點。是一種具備",gnjx_nr5:"深度預測能力",gnjx_nr6:"的“未來眼”,為股市分析提供了一種全新的視角。",jl:"下一个變盤點是:",jl_1:"距離下下次股市變盤點還有",jl_2:"",wlyc1:"未來預測",wlyc2:",是一個充滿創新與想像力的功能,其核心在於將",wlyc3:"高階數據科學",wlyc4:"和",wlyc5:"AI科技",wlyc6:"相結合,利用經過訓練的AI來找出隱藏在海量數據之中的模式,揭示內在規律,為預測提供強大的技術支持。使我們能夠在變化莫測的世界中抓住",wlyc7:"關鍵機遇",wlyc8:",做出最",wlyc9:"科學決策。",daima:"代碼:",gupiao:"名稱:",up:"漲幅:",now_price:"現價:",searchCode:"請輸入股票名稱/代碼",mostViewed:"瀏覽最多",toLearn:"不知道應該如何使用?點擊學習 >",learn:"學習",toLogin:"去登録",login:"登録",aifindCow:"AI探牛",duanluo:"以AI尖端技術和知識圖譜分析為核心,精確識別市場攻防轉換點,在複雜震盪行情中,去偽存真,識別真正的投資機會。為投資者提供投資新視角,讓投資更加高效穩健。",gujiayuce_red:"紅色:進攻K線,多方展開進攻",gujiayuce_yello:"黃色:防守K線,多空臨界點,最後的防守",gujiayuce_blue:"藍色:推進K線,一直藍一直持有",cyan:"淺藍色:撤退K線,堅決空倉",findcowrope:"牽牛繩:紅色表示上升趨勢,綠色表示下降趨勢",title_2:"功能介紹",Klinetext_1:"進攻K線",Klinetext_2:"防守K線",Klinetext_3:"推進K線",Klinetext_4:"撤退K線",Klinetext_5:"龍線",Klinetext_6:"蟲線",FCX:"牽牛繩",overText_1:"“AI探牛”為付費功能,可用市場與您的弘曆軟體雲版靜態一致! 敬請知悉!",tiaoguo:"跳過",xiayiye:"下一頁",shangyiye:"上一頁",kaishitiyan:"開始體驗",overText_2:"開始時間:",overText_3:"結束時間:",zcw:"支撐位",ylw:"壓力位",cnxs:"猜你想搜",searchName:"前往搜索所持股票",dqcb:"短期成本",zcqcb:"中長期成本",new_yali7:"支撐強度較弱",new_yali8:"支撐強度一般",new_yali9:"支撐強度較大",new_zhuangjia3:"該股籌碼集中",new_zhuangjia4:"該股籌碼較為集中",new_zhuangjia5:"该股筹码较为分散",new_zhuangjia6:"該股籌碼較為分散",goldCow:"AI金牛",yiGn:"以",AIjianduan:"AI尖端技術",heGn:"和",zhishitupu:"知識圖譜分析",contentGN1:"為核心,精確識別市場攻防轉換點,猶如明燈照亮金牛所在之處,在複雜震蕩行情中,去偽存真,識別真正的投資機會。",GN:"金牛版",contentGN2:"不僅為投資者開闢了全新的投資視野,更讓投資之旅變得穩定且高效,是引領每一位投資者走向成功的快車道。",ndaoxiaoshi:"牛刀小試:洞悉牛股基因,預判股市未來股市之星",danyouxing:"大牛有形:彰顯牛股飆升之姿,把握迅猛上漲的輝煌階段",jinnsongfu:"金牛送福:攜翻倍拉升之威,預示個股將啟壯闊上漲的輝煌篇章",yinbeiliang:"陰倍量、較昨日成交量放大一倍及以上(陰線)",yangbeiliang:"陽倍量:較昨日成交量放大一倍及以上(陽線)",huiyuanzhaunxiang:"弘歷會員專享",yidaoqi:"該功能已到期",fufeizanwuquanxian:"付費功能,暫無許可權",zanwushichangquanxian:"您目前暫無該市場許可權",zanwugaiquanxian:"您暫無該功能許可權",chengjiaoliang:"成交量",jinntitle1:"牛股照妖鏡",jinntitle2:"瘋牛出欄",gupiaonoresult:"暫無數據,請聯繫客服",jinnqibao:"金牛起爆",dunchi:"度牛尺:衡量牛股的標尺。",DNC:"度牛尺",dunqu:"度牛區",aiRadar:"AI雷達",tiangui:"天軌",digui:"地軌",leidagongnengliangdian1:"AI雷達,通過升維分析,將市場數據提升至更高維度,從而能夠跨越空間障礙,為投資者提供全面且深入的投資視角。 它精準地揭示隱藏在複雜市場中的真正投資機會,幫助投資者洞悉市場走勢。同時,AI雷達的降維打擊功能將複雜的市場信息簡化,讓投資者在瞬息萬變的市場環境中迅速抓住關鍵資訊,從而做出明智且及時的投資決策。跨越空間,透視未來,AI雷達無疑是投資者的得力助手。",tianguimiaoshu1:"天地雙軌:共由兩條曲線組成。",tianguimiaoshu2:"上方的蓝色線為天軌,代表著做多的主力機構對價格空間的控制線。",tianguimiaoshu3:"下方的黄色線為地軌,代表著做空的主力機構對價格空間的控制線。",tanbao:"探寶:",tiandishaungxian:"天地雙線:該指標巧妙的融合了時空因素,用新穎的形式體現股價波動的規律,提前提示股價運動的底部前兆和頂部預警。",tancei:"探測:對特定區域和目標的深入分析和識別,旨在識別並確認股價的一級底部、二級底部和三級底部,這些級別反映了股價下跌的不同深和可能的反彈力度。",saoshe:"掃射:在一定範圍內快速搜索和追蹤目標的過程,目的是發現不同強度的加速點。這些加速點在向右掃描、向左掃描和向上掃描時,其強度依次增強。",tanbao1:"探寶",overText_11:"“AI金牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_12:"“AI雷達”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",zhutuqiangshixinhao:"主圖K线",shezhikxian:"k線設置",quxiao:"取消",queding:"确定",aiEmotion:"AI情緒大模型",StockTemperature:"股票溫度"},en:{language:"English",suoxie:"en",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI Prediction Large Model",daoqi:"Treasure Hunt Raiders Service Period",wei:"is:",hotStocks:"Hot Stocks",sousuo:"Please enter the stock name/code",content:"Treasure Hunt Raiders",content_1:'"Tomb Raider" is a',content_2:"highly intelligent",content_3:"stock analysis tool that uses big data, machine learning, and artificial intelligence to mine and interpret the complexities of the stock market to provide",content_4:"precise",content_5:"support and resistance points, fund direction and trend analysis. Tomb Raider, with its precise algorithms and efficient analysis, is quickly becoming",content_6:"an excellent helper for stock investors",content_7:". It allows investors to clearly understand the true meaning of these data, helping investors understand and control the stock market to achieve",content_8:"efficient and intelligent investment management.",global:"Global Index",results:"According to the results of the Super Cloud Brain big data computing engine:",endTerm:"Click to view service term",noTerms:"No permission",shuru:"Please enter the stock name/code",guzhi:"Stock Valuation",yunnaotanmi:"Cloud Brain Exploration",jigoudongxiang:"Institutional Trends",duobaolijian:"Treasure Sword",aidamoxing:"AI Forecast Big Model",feixian:"Flying Line",zhoongxian:"Midline",liuxian:"Streamline",tianxian:"Antenna",maipan:"Buy",maipan1:"Sell",huolichouma:"Profit chips",fudongchouma:"Floating chips",taolaochouma:"Secure the chips",kai:"Open",shou:"Close",gao:"High",di:"Low",liuselp:"Six color compass",gupiaoguzhi:"Stock’s Assessment \nValueValuation",qushi1:"Trend Line 1",qushi2:"Trend Line 2",qushi3:"Trend Line 3",endDateText:"Trial period remaining:",endTianShu:"days",newUsers:"New users can register to get 30 days of usage rights",dangrigujia:"Daily stock price",gupiaodaima:"Stock code",riqi:"date",zhangdieedu:"Price Change",zhangdiebaifenbi:"Price Change Percentage",dangrizijin:"Fund Flow Analysis",dangriduofangzijin:"Fund Flow Analysis",liuru:"Inflowing",liuchu:"Outflow",zhulizijin:"Banker’s Funds",zhulizijin1:"The bullish funds start to prevail.",zhulizijin2:"The bullish funds prevail and keep increasing.",zhulizijin3:"The bullish funds prevail but start to outflow, The main force seems to be washing the plate.",zhulizijin4:"The bullish funds prevail.",zhulizijin5:"The bullish funds still prevail but start to outflow continuously.",zhulizijin6:"The bullish funds prevail and start to inflow again.",zhulizijin7:"The bearish funds start to prevail.",zhulizijin8:"The bearish funds prevail and keep increasing.",zhulizijin9:"The bearish funds prevail and keep inflowing, The main force seems to be smashing the plate.",zhulizijin10:"The bearish funds prevail but start to outflow.",zhulizijin11:"The bearish funds still prevail.",zhulizijin12:"The bearish funds still prevail but start to outflow continuously.",zhulizijin13:"The bearish funds prevail and start to inflow again.",zhulixichou:"Banker’s Chips",zhulixichou1:"Recently, the banker starts to focus on buying in.",zhulixichou2:"Recently, there is no banker focusing on buying in.",zhuangsanduijue:"Banker’s Funds Comparison",zhuangsanduijue1:"The banker's position is greater than that of retail investors at present.",zhuangsanduijue2:"The banker's position is less than that of retail investors at present.",zhuangsanduijue3:" Increase in banker position on the same day.",zhuangsanduijue4:"The banker position of the day decreased.",zhuangsanduijue5:"Increase in daily retail investors.",zhuangsanduijue6:"Reduction in daily retail investors.",anquanjibei:"Indicator Analysis",more:"More",chuyu1:"According to the all-round detection results of the Cloud Diagonastic Six-Color Compass, the stock is currently in",chuyu2:"a security level of",dengji1:"Weak Push, Strong Pressure Zone",dengji2:"Weak Push, Medium Pressure Zone",dengji3:"Weak Push, Weak Pressure Zone",dengji4:"Strong Push, Strong Pressure Zone",dengji5:"Strong Push, Medium Pressure Zone",dengji6:"Strong Push, Weak Pressure Zone",dengji7:"Extremely High Risk",dengji8:"Higher Risk",dengji9:"Medium Risk",dengji10:"Generally Safe",dengji11:"Relatively Safe",dengji12:"Very Safe",yali:"Pressure Support",yali1:"According to the results of the Super Cloud Diagnosis big data computing model",yali2:"The current stock price is",yali3:"The resistance level of the stock is ",yali_contral:"The support level of the stock is ",yali4:"It is a weak resistance which will be broken out under moderate volumn increase ",yali5:"It is a ordinary resistance which will be broken out under obvious volumn increase ",yali6:"It is a strong resistance which will be broken out under large volumn increase ",yali7:"It is a weak support",yali8:"It is a ordinary support",yali9:"It is a strong support",yali10:"It is a weak resistance",yali11:"It is a ordinary resistance",yali12:"It is a strong resistance",yali13:"No permission yet",qushi:"Trend Research and Judgment",qushitext1:"It is in a medium and long term ",qushitext2:"uptrend,",qushitext3:"is in a short-term",qushitext4:"strong trend.",qushitext5:"downtrend,",qushitext6:"weak state.",zhuangjia:"Market Maker Cost",zhuangjia1:"According to the results of the Super Cloud Diagnosis big data computing model The cost of medium and long term chips is ",zhuangjia2:"The cost of short term funds is ",zhuangjia3:"The chips of the stock are intensive obviously,",zhuangjia4:"The chips of the stock are intensive,",zhuangjia5:"The chips of the stock are disperse,",zhuangjia6:"The chips of the stock are disperse obviously,",zhuangjia7:"The cost price of chips on that day is ",zhibiaojieshao:"Indicator Introduction",qingxujiazhi:"Emotional Value",qingxujiazhi1:"According to the results of the Super Cloud Diagnosis big data computing model,",qingxujiazhi2:"The profitable chips increase notably recently and the short term profitable investors are selling their shares.",qingxujiazhi3:"The profitable chips increase notably recently and there is no obvious phenomenon of unloading the profitable shares, which reflects a steady chips control.",qingxujiazhi4:"The profitable chips decrease recently and the short term profitable investors are selling their shares notably.",qingxujiazhi5:"The profitable chips increase notably recently and there is no obvious phenomenon of unloading the profitable shares, which reflects a steady chips control.",qingxujiazhi6:"The locked chips increase recently and the losing investors are unloading their shares notably.",qingxujiazhi7:"The locked chips increase recently and there is no obvious phenomenon of unloading shares, which reflects the chips are locked well.",qingxujiazhi8:"The locked chips decrease recently and there are new funds inflow to dilute the previous locked chips.",qingxujiazhi9:"The locked chips decrease recently;there is no obvious phenomenon of profit taking and most chips are sideways.",gongnengshuoming:"Function Description",feitian:"Flying Sky function",liucaishenlong:"Multi-Colour Dragon",red:"Red Column Line: Profit chips (Main capital)",purple:"Purple Column Line: Profit chips 10-day moving average",blue:"Blue Column Line: Locked-in chips 10-day moving average",yellow:"Yellow Column Line: Floating chips (Speculative capital)",green:"Green Column Line: Locked-in chips (Retail investors’ capital)",pink:"Pink Column Line: Floating chips 10-day moving average",bodongliang:"Volatility Indicator",gongneng:"The volatility indicator consists of red buy orders, green sell orders,and energy fluctuation lines.",tebietongzhi:"Special Announcement",tongzhi1:"Respected Users:",tongzhi2:'We are thrilled to inform you that the "Treasure Sword" module is now available for a limited-time trial! Free Experience:During this period, you will have the opportunity to experience this brand-new feature at no cost. Discover its unique appeal and powerful capabilities.',tongzhi3:"Experience Time",tongzhi4:"Start Time: From now (August 2, 2024)",tongzhi5:"End Time: Please stay tuned for follow-up notices.",tongzhi6:"Feature Highlights",tongzhi7:"Conducts in-depth research on the various behaviors of market manipulators, leaving no place for their actions to hide. Enjoy Your Use:Wishing you a pleasant experience!",tongzhi8:'Equipped with a new AI big data model, it deeply explores the profit logic behind stock price movements, acclaimed as "the smartest AI intelligent moving average."',tongzhi9:"Wish you a pleasant use!",tongzhi10:"Homily Intelligent R&D Team",tongzhi11:"We are thrilled to inform you that the AI Prediction Big Model module is now available for a limited-time trial! Free Experience:During this period, you will have the opportunity to experience this brand-new feature at no cost. Discover its unique appeal and powerful capabilities.",tongzhi12:"AI Prediction Big Model is an innovative forecasting tool that disrupts traditional stock market prediction conceptions. By utilizing deep learning and advanced algorithms, it delves deep into historical data, accurately capturing subtle patterns and trends hidden within the data. Even when facing rapid market changes, it is able to quickly adjust its strategies and predict upcoming highs and lows.",aiyuce:"Calculation based on AI PredictionLarge Model,",gujia:"Stock price",stockPricePrediction:"Stock Price Prediction",timeSpacePrediction:"Time-Space Prediction",bodongfenxi:"Price Fluctuation Analysis",jinrishangzhanglv:"Short-term Rise Probability",yucejia:"Forecast Price:",zuigaojia:"High",zuidijia:"Low",weilaizhangdiegailv:"Future Flctuation Probability",ri5:"5 Days",ri13:"13 Days",ri21:"21 Days",lishibodongqujian:"Historical Range",shangzhanggailv:"Rise Probability",gaodian:"Highs",didian:"Lows",jiage1:"Current Price:",jiage2:"Sell Price",jiage3:"Buy Back Price",jiage4:"Forecast Low One",jiage5:"Forecast Low Two",jiage6:"Forecast High One",jiage7:"Forecast High Two",bt:"AI Space-Time Resonance",gnjx:"Function Overview",gnjx_nr1:"AI Space-Time resonance",gnjx_nr2:" combines cutting-edge AI technology with the concept of Space-Time resonance. Its main purpose is to ",gnjx_nr3:"accurately explore and identify",gnjx_nr4:" turning points in specific situations, environments, or processes by leveraging and applying the principles of Space-Time resonance theory. It is a ",gnjx_nr5:'"future eye" with deep predictive capabilities',gnjx_nr6:", providing a new perspective for stock market analysis.",jl:"The next stock market turning point:",jl_1:"There are ",jl_2:"",wlyc1:"Future prediction",wlyc2:" is a function full of innovation and imagination. Its core lies in combining ",wlyc3:"advanced data science ",wlyc4:"and ",wlyc5:"AI technology",wlyc6:", using trained AI to find patterns hidden in vast amounts of data, revealing underlying rules, and providing strong technical support for predictions. This enables us to ",wlyc7:"seize key opportunities",wlyc8:" in an unpredictable world and make the most ",wlyc9:"scientific decisions.",daima:"Code:",gupiao:"Name:",up:"Rise:",now_price:"Current Price:",searchCode:"Please enter the stock name/code",mostViewed:"Most Viewed",toLearn:"Don’t know how to use it? Click to learn >",learn:"learn",toLogin:"Go to log in",login:"Log in",aifindCow:"AI Exploring Bull Stocks",duanluo:"With cutting-edge AI technology and knowledge graph analysis at its core, it accurately identifies market turning points in terms of offense and defense. In complex and volatile market conditions, it filters out the noise and identifies genuine investment opportunities. This provides investors with a fresh perspective, making investments more efficient and robust.",gujiayuce_red:"Red: Offensive Candlestick, Bulls Launching an Attack",gujiayuce_yello:"Yellow: Defensive Candlestick, Critical Point Between Bulls and Bears, Last Line of Defense",gujiayuce_blue:"Blue: Advancing Candlestick, Hold as Long as Blue",cyan:"Light Blue: Pullback Candlestick, Exit All Positions",findcowrope:"Bull Rope: Red for Uptrend, Green for Downtrend",title_2:"Function Overview",Klinetext_1:"Offensive Candlestick",Klinetext_2:"Defensive Candlestick",Klinetext_3:"Advancing Candlestick",Klinetext_4:"Pullback Candlestick",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"Bull Rope",overText_1:'Kindly be informed."AI Exploring Bull Stocks" is a paid function, the available markets are the same as Homily Software cloud version!',tiaoguo:"Skip",xiayiye:"Next page",shangyiye:"Previous page",kaishitiyan:"Start journey",overText_2:"Start Time: ",overText_3:"End Time: ",zcw:"Support level",ylw:"Resistance level",cnxs:"Guess you want to search",searchName:"Go to search for stocks held",dqcb:"Short term cost",zcqcb:"Mid and Long term costs",new_yali7:"It is a weak support",new_yali8:"It is a ordinary support",new_yali9:"It is a strong support",new_zhuangjia3:"The chips of the stock are intensive obviously",new_zhuangjia4:"The chips of the stock are intensive",new_zhuangjia5:"The chips of the stock are disperse",new_zhuangjia6:"The chips of the stock are disperse obviously",goldCow:"AI Golden Bull",yiGn:"with ",AIjianduan:"AI cutting-edge technology ",heGn:"and ",zhishitupu:"knowledge graph analysis ",contentGN1:"as the core, it accurately identifies the market’s offensive and defensive transition points, just like a beacon lighting up where the golden bulls are. In complex and volatile market conditions, it can eliminate falsehoods and retain true ones, and identify real investment opportunities.",GN:"The Golden Bull Edition",contentGN2:"not only opens up a new investment horizon for investors, but also makes the investment journey stable and efficient, leading every investor on the fast track to success.",ndaoxiaoshi:"Potential Bullish: Insight into the genes of bull stocks and predict the future stock market stars",danyouxing:"Mature Bullish:Highlight the soaring appearance of bull stocks and seize the glorious stage of rapid rise",jinnsongfu:"Excellent Bullish:With the power of doubling, it indicates that individual stocks will start a glorious chapter of magnificent rise",yinbeiliang:"Negative double volume: double or more than yesterday’s trading volume (Yin line)",yangbeiliang:"Positive multiple volume: The trading volume is doubled or more than yesterday’s (Yang line)",huiyuanzhaunxiang:"Exclusive for Homily members",yidaoqi:"This function has expired",fufeizanwuquanxian:"Paid function, no permissions yet",zanwushichangquanxian:"You currently do not have access to this market",zanwugaiquanxian:"You currently do not have permission for this function",chengjiaoliang:"Trading volume",jinntitle1:"Bull Stock Demon Mirror",jinntitle2:"Crazy Bull",gupiaonoresult:"No permission yet, please contact customer service",jinnqibao:"Golden Bull Surge",dunchi:"Bull Ruler: A yardstick for measuring bullish stocks.",DNC:"Bull Ruler",dunqu:"Bull Zone",aiRadar:"The AI radar",tiangui:"Heaven Track",digui:"Earth Track",leidagongnengliangdian1:"The AI radar,through dimensionality elevation analysis, elevates market data to a higher dimension, enabling it to overcome spatial barriers and provide investors with a comprehensive and in-depth investment perspective. It accurately reveals the real investment opportunities hidden in the complex market, helping investors understand market trends. At the same time, the dimensionality reduction strike function of the AI radar simplifies complex market information, allowing investors to quickly grasp key information in the rapidly changing market environment and make wise and timely investment decisions. Crossing space and seeing through the future, the AI radar is undoubtedly a powerful assistant for investors.",tianguimiaoshu1:"Heaven and Earth Double Tracks: Composed of two curves in total.",tianguimiaoshu2:"The upper blue line is the Heaven Track, representing the price space control line of the bullish major institutions.",tianguimiaoshu3:"The lower yellow line is the Earth Track, representing the price space control line of the bearish major institutions.",tanbao:"Treasure Hunting:",tiandishaungxian:"Heaven and Earth Double Tracks: This indicator ingeniously integrates space-time factors, reflecting the laws of stock price fluctuations in a novel form, and giving early warnings of the bottom precursors and top alerts of stock price movements.",tancei:"Detection: It refers to the in-depth analysis and identification of specific areas and targets, aiming to identify and confirm the primary, secondary, and tertiary bottoms of stock prices. These levels reflect different depths of stock price declines and possible rebound strengths.",saoshe:"Scanning: It is the process of quickly searching for and tracking targets within a certain range, with the aim of discovering acceleration points of different intensities. The intensities of these acceleration points increase in sequence when scanning to the right, to the left, and upwards.",tanbao1:"Treasure Hunting",overText_11:'Kindly be informed."AI Golden Bull"is a paid function, the available markets are the same as Homily Software cloud version!',overText_12:'Kindly be informed."The AI radar"is a paid function, the available markets are the same as Homily Software cloud version!',zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"AI Sentiment Analysis Model",StockTemperature:"Stock Temperature",MarketTemperature:"Market Temperature",CurrentStockPopularity:"Current Stock Popularity",StockPopularity:"Stock Popularity",MarketPopularity:"Market Popularity",StockMarketTemperatureTrend:"Stock Market Temperature Trend",TemperatureTrend:"Temperature Trend",StockMarketTemperatureCalendar:"Stock Market Temperature Calendar",TemperatureCalendar:"Temperature Calendar",FunctionOverview:"Function Overview",FeatureHighlights:"Feature Highlights",current1_1:"The current stock temperature is",current1:"in the frenzy zone",current2:"in the overheating range",current3:"in neutral territory",current4:"in the cold range",current5:"in the icy range",current2_1:"The current market temperature is",current6:"indicating a frenzy phase.",current7:"indicating is in an overheated range",current8:"indicating is in a neutral range",current9:"indicating is in a cold range",current10:"indicating is in an icy range",current11:"Current Temperature Trend Explanation",yi:"Mon",er:"Tue",san:"Wed",si:"Thu",wu:"Fri",liu:"Sat",tian:"Sun",WDRL:"When the stock temperature is higher than the market temperature, the calendar background color is purple;When the stock temperature is lower than the market temperature, the calendar background color is blue; When the stock temperature equals the market temperature, the calendar background color is white",ait:"股票温度计",aie:"情绪解码器"},th:{language:"ภาษาไทย",suoxie:"th",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI คาดการณ์อัจฉริยะ",daoqi:"ระยะเวลาบริการของ Treasure Hunt Raiders",wei:"คือ:",hotStocks:"หุ้นที่กำลังมาแรง",sousuo:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",content:"Treasure Hunt Raiders",content_1:'"Treasure Hunt Raiders"เป็นเครื่องมือในการวิเคราะห์หุ้น',content_2:"อัจฉริยะขั้นสูง",content_3:"โดยใช้ Big Data การเรียนรู้ของหุ่นยนต์และเทคโนโลยีปัญญาประดิษฐ์ (AI) เพื่อช่วยวิเคราะห์ความซับซ้อนของตลาดหุ้น สามารถหาแนวรับ-แนวต้านได้",content_4:"อย่างแม่นยำ",content_5:'ทิศทางของกระแสเงินทุน รวมถึงการวิเคราะห์แนวโน้มของหุ้น ซึ่ง"Treasure Hunt Raiders " กำลังกลายเป็น',content_6:"ผู้ช่วยที่ยอดเยี่ยมสำหรับนักลงทุนในตลาดหุ้น",content_7:"และใช้วิธีการวิเคราะห์ที่มีประสิทธิภาพด้วยอัลกอริทึมที่แม่นยำ เพื่อให้นักลงทุนตระหนักรู้ถึงความหมายของข้อมูลหล่านี้อย่างแท้จริง พร้อมทั้งช่วยให้นักลงทุนเข้าใจและเชี่ยวชาญการลงทุนในตลาดหุ้นอย่าง",content_8:"มีประสิทธิผล และสามารถลงทุนในตลาดหุ้นได้อย่างชาญฉลาด",global:"Global Index",results:"ตามผลลัพธ์การประมวลผลของ Big Data จาก Super Cloud:",endTerm:"Click to view service term",noTerms:"No permission",shuru:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",guzhi:"ประเมิณมูลค่าหุ้น",yunnaotanmi:"สำรวจความลับซูเปอร์คลาวด์",jigoudongxiang:"ทิศทางรายใหญ่",duobaolijian:"Treasure Sword",aidamoxing:"AI คาดการณ์อัจฉริยะ ",feixian:"Flying",zhoongxian:"Middle",liuxian:"Stream",tianxian:"Sky",maipan:"แรงซื้อ",maipan1:"แรงขาย",huolichouma:"Profitable chips",fudongchouma:"Floating chips",taolaochouma:"Locked chips",endDateText:"ระยะเวลาทดลองใช้งานเหลือ:",endTianShu:"วัน",newUsers:"ผู้ใช้ใหม่ที่ลงทะเบียนจะได้รับสิทธิ์ใช้งาน 30 วัน",kai:"เปิด",shou:"รับ",gao:"สูง",di:"ต่ำ",liuselp:"วงล้อเข็มทิศ 6 สี",gupiaoguzhi:"ประเมิณมูลค่าหุ้น",qushi1:"เส้นแนวโน้ม 1",qushi2:"เส้นแนวโน้ม 2",qushi3:"เส้นแนวโน้ม 3",dangrigujia:"ราคาหุ้นของวัน",gupiaodaima:"รหัสสินค้า",riqi:"วันที่",zhangdieedu:"วงเงินขึ้น-ลง",zhangdiebaifenbi:"เปอร์เซ็นต์การขึ้นและลง",dangrizijin:"เงินทุนของวัน",dangriduofangzijin:"เงินทุนแรงซื้อของวัน",liuru:"ไหลเข้า",liuchu:"ไหลออก",zhulizijin:"เงินทุนรายใหญ่",zhulizijin1:"ปัจจุบันเงินทุนของแรงซื้อเริ่มเหนือกว่า.",zhulizijin2:"ขณะนี้เงินทุนของแรงซื้อชนะ และเงินทุนแรงซื้อมีการไหลเข้าอย่างต่อเนื่อง.",zhulizijin3:"ขณะนี้เงินทุนของแรงซื้อชนะ แต่ส่งสัญญาณทุนใหญ่เริ่มถอนตัว และดูเหมือนว่ารายใหญ่เขย่าหุ้น.",zhulizijin4:"ขณะนี้เงินทุนของแรงซื้อชนะ.",zhulizijin5:"ขณะนี้เงินทุนของแรงซื้อยังคงชนะ และพบว่าเงินทุนแรงซื้อมีการไหลออกอย่างต่อเนื่อง.",zhulizijin6:"ขณะนี้เงินทุนของแรงซื้อชนะและเงินทุนแรงซื้อจํานวนมากเริ่มไหลเข้าอีกครั้ง.",zhulizijin7:"ขณะนี้เงินทุนของแรงขายเริ่มมากกว่า.",zhulizijin8:"ขณะนี้เงินทุนของแรงขายชนะ และปริมาณแรงขายแนวโน้มเพิ่มขึ้น.",zhulizijin9:"ขณะนี้เงินทุนของแรงขายชนะ และดูเหมือนว่ารายใหญ่ทุบราคา.",zhulizijin10:"ขณะนี้เงินทุนของแรงขายชนะ แต่ส่งสัญญาณเงินทุนแรงขายเริ่มถอนตัว.",zhulizijin11:"ขณะนี้ตลาดหุ้นเงินทุนของแรงขายยังคงชนะ.",zhulizijin12:"ขณะนี้ตลาดหุ้นเงินทุนของแรงขายยังคงชนะ แต่ว่าปริมาณแรงซื้อมีแนวโน้มลดลง.",zhulizijin13:"ขณะนี้เงินทุนของแรงขายชนะ และปริมาณแรงขายมีแนวโน้มเพิ่มขึ้นอีกครั้ง.",zhulixichou:"banker chips",zhulixichou1:"ล่าสุดพบว่ารายใหญ่เก็บของ.",zhulixichou2:"ล่าสุดไม่พบว่ารายใหญ่เก็บของ.",zhuangsanduijue:"การแข่งขันของรายใหญ่และรายย่อย",zhuangsanduijue1:"ในช่วงนี้รายใหญ่ถือหุ้นมากกว่ารายย่อย.",zhuangsanduijue2:"ในช่วงนี้รายใหญ่ถือหุ้นน้อยกว่ารายย่อย.",zhuangsanduijue3:"แต่ในวันนี้การถือหุ้นของรายใหญ่เพิ่มขึ้น.",zhuangsanduijue4:"แต่ในวันนี้การถือหุ้นของรายใหญ่ลดลง.",zhuangsanduijue5:"ขณะที่การถือหุ้นของรายย่อยเพิ่มขึ้น.",zhuangsanduijue6:"ขณะที่การถือหุ้นของรายย่อยลดลง.",anquanjibei:"ระดับความปลอดภัย",more:"เพิ่มเติม",chuyu1:"จากผลลัพธ์ของข้อมูล Super Cloud วงล้อเข็มทิศ 6 สีประเมินว่าปัจจุบันหุ้นตัวนี้อยู่ในเขต",chuyu2:"ระดับความปลอดภัยอยู่ในระดับ",dengji1:"โซนแนวรับอ่อนแอแนวต้านแข็งแกร่ง",dengji2:"โซนแนวรับอ่อนแอแนวต้านปานกลาง",dengji3:"โซนแนวรับอ่อนแอแนวต้านอ่อนแอ",dengji4:"โซนแนวรับแข็งแกร่งแนวต้านแข็งแกร่ง",dengji5:"โซนแนวรับแข็งแกร่งแนวต้านปานกลาง",dengji6:"โซนแนวรับแข็งแกร่งแนวต้านอ่อนแอ",dengji7:"เสี่ยงสูงมาก",dengji8:"ค่อนข้างเสี่ยง",dengji9:"เสี่ยงกลาง",dengji10:"ปลอดภัยปกติ",dengji11:"ปลอดภัย",dengji12:"ปลอดภัยมาก",yali:"แนวรับแนวต้าน",yali1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud",yali2:"ราคาหุ้นล่าสุดคือ",yali3:"แนวต้านของหุ้นอยู่ที่",yali_contral:"ส่วนแนวรับของหุ้นอยู่ที่",yali4:"โดยแนวต้านค่อนข้างอ่อนแอ หากมีการเพิ่มปริมาณการซื้อขาย อาจมีโอกาสที่จะสามารถทะลุต้านได้ ",yali5:"แนวต้านแข็งแกร่งปานกลาง ต้องการปริมาณการซื้อขายจำนวนมากถึงจะสามารถทะลุต้านได้ ",yali6:"โดยแนวต้านค่อนข้างแข็งแกร่ง ต้องมีแรงซื้อจำนวนมาก ถึงจะสามารถทะลุต้านได้ ",yali7:"แนวรับค่อนข้างอ่อน.",yali8:"แนวรับค่อนข้างแข็งแกร่งปานกลาง.",yali9:"ซึ่งแนวรับค่อนข้างแข็งแกร่ง.",yali10:"โดยแนวต้านค่อนข้างอ่อนแอ",yali11:"แนวต้านแข็งแกร่งปานกลาง",yali12:"โดยแนวต้านค่อนข้างแข็งแกร่ง",yali13:"ขณะนี้ยังไม่มีข้อมูล",qushi:"วิเคราะห์แนวโน้ม",qushitext1:"หุ้นตัวนี้ระยะกลางและระยะยาวอยู่ในช่วง",qushitext2:"แนวโน้มขาขึ้น,",qushitext3:"ส่วนระยะสั้นอยู่ใน",qushitext4:"สภาวะแข็งแกร่ง.",qushitext5:"แนวโน้มขาลง,",qushitext6:"สถานะอ่อนแอ.",zhuangjia:"ต้นทุนรายใหญ่",zhuangjia1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud ต้นทุนของรายใหญ่ ในระยะกลางและระยะยาวอยู่ที่",zhuangjia2:"ต้นทุนระยะสั้นอยู่ที่",zhuangjia3:"หุ้นตัวนี้พบมีชิปกระจุกตัว,",zhuangjia4:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจุกตัว,",zhuangjia5:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจายตัว,",zhuangjia6:"หุ้นตัวนี้พบมีชิปกระจายตัว,",zhuangjia7:"ส่วนราคาต้นทุนของวันอยู่ที่",zhibiaojieshao:"การแนะนำอินดิเคเตอร์",qingxujiazhi:"คุณค่าทางอารมณ์",qingxujiazhi1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud ,",qingxujiazhi2:"ช่วงนี้ชิปทำกำไรอย่างเห็นได้ชัด และมีการขายทำกำไรในช่วงระยะสั้นค่อนข้างชัดเจน.",qingxujiazhi3:"ชิปทำกำไรเพิ่มขึ้น การทำกำไรของนักลงทุนนั้นไม่ชัดเจน ความเสถียรของนักลงทุนอยู่ในระดับค่อนข้างดี.",qingxujiazhi4:"ในช่วงนี้ชิปทำกำไรลดลง และมีขายทำกำไรในช่วงระยะสั้นค่อนข้างชัดเจน.",qingxujiazhi5:"ชิปทำกำไรเพิ่มขึ้น การทำกำไรของนักลงทุนนั้นไม่ชัดเจน ความเสถียรของนักลงทุนอยู่ในระดับค่อนข้างดี.",qingxujiazhi6:"ในช่วงนี้ชิปติดดอยเพิ่มขึ้นอย่างชัดเจน นักลงทุนที่ขาดทุนมีแนวโน้มที่จะขายหุ้นออกอย่างชัดเจน.",qingxujiazhi7:"ในช่วงนี้ชิปติดดอยเพิ่มขึ้นอย่างชัดเจน นักลงทุนออกจากตลาดนั้นไม่ชัดเจน มีชิปติดดอยอยู่.",qingxujiazhi8:"ในช่วงนี้ชิปติดดอยเริ่มลดลง มีเงินทุนใหม่เข้ามาและชิปติดดอยเบาบางลง.",qingxujiazhi9:"ชิปติดดอยลดลง ซึ่งการทำกำไรในช่วงระยะสั้นนั้นไม่ชัดเจน และนักลงทุนส่วนใหญ่อยู่ในสถานะที่กำลังรอดูสถานการณ์อยู่.",gongnengshuoming:"คำอธิบายฟังก์ชั่น",feitian:"Flying Sky function",liucaishenlong:"Multi-Colour Dragon",red:"แท่งสีแดง:Profitable chips(เงินทุนของรายใหญ่)",purple:"เส้นสีม่วง:เส้นค่าเฉลี่ย10วันของรายใหญ่",blue:"เส้นสีฟ้า:เส้นค่าเฉลี่ย 10 วันของผู้ติดดอย",yellow:"แท่งเหลือง:Floating chips(รายย่อยเกร็งกำไร)",green:"แท่งสีเขียว:Locked chips(ผู้ติดดอย)",pink:"เส้นสีชมพู:เส้นค่าเฉลี่ย 10 วันของรายย่อยเกร็งกำไร",bodongliang:"Volitility CJ ประกอบด้วย",gongneng:"Volitility CJประกอบด้วย สีแดง คือ แรงซื้อ สีเขียว คือ แรงขาย Volitility CJ Line",tebietongzhi:"ประกาศพิเศษ",tongzhi1:"เรียน ผู้ใช้งานที่เคารพ",tongzhi2:'"คำอธิบายเพิ่มเติม:เรียน ผู้ใช้งานที่เคารพ เรายินดีอย่างยิ่งที่จะแจ้งให้ท่านทราบว่าฟังก์ชัน "Treasure Sword" ในช่วงเวลานี้ได้เปิดให้ทดลองใช้งานแบบจำกัดเวลา!ท่านจะได้สัมผัสกับฟังก์ชันใหม่ฟรี และสามารถรับรู้ถึงเสน่ห์อันเป็นเอกลักษณ์และทรงคุณค่า',tongzhi3:"ระยะเวลาทดลองใช้งาน",tongzhi4:"เวลาเริ่มต้น:ตั้งแต่วันนี้ (02/08/2024)",tongzhi5:"เวลาสิ้นสุด:โปรดติดตามการประกาศอีกครั้ง",tongzhi6:"ไฮไลท์ฟังก์ชัน",tongzhi7:"คือ การศึกษาพฤติกรรมต่าง ๆ ของรายใหญ่อย่างละเอียด โดยทุกการกระทำของรายใหญ่ไม่สามารถปกปิดข้อมูลได้! ขอให้ท่านใช้งานอย่างมีความสุข",tongzhi8:'มาพร้อมกับโมเดล AI Big Dataแบบใหม่ โดยอาศัยการวิเคราะห์ถึงเชิงลึกของตรรกะการทำกำไรเบื้องหลังการเคลื่อนไหวของราคาหุ้น ซึ่งได้รับการยกย่องว่าเป็น "เส้นค่าเฉลี่ย AI อัจฉริยะที่ฉลาดที่สุด"',tongzhi9:"ขอให้ท่านใช้งานอย่างมีความสุข!",tongzhi10:"ทีมวิจัยและพัฒนาอัจฉริยะHomily",tongzhi11:'เรายินดีอย่างยิ่งที่จะแจ้งให้ท่านทราบว่าฟังก์ชัน "AI คาดการณ์อัจฉริยะ" ในช่วงเวลานี้ได้เปิดให้ทดลองใช้งานแบบจำกัดเวลา!ท่านจะได้สัมผัสกับฟังก์ชันใหม่ฟรี และสามารถรับรู้ถึงเสน่ห์อันเป็นเอกลักษณ์และทรงคุณค่า',tongzhi12:"AI คาดการณ์อัจฉริยะถือว่าเป็นเครื่องมือคาดการณ์เชิงนวัตกรรม ที่ได้ลบล้างทฤษฏีการคาดการณ์ตลาดแบบดั้งเดิม โดยใช้วิธีการเรียนรู้เชิงลึกและอัลกอริทึมขั้นสูง เพื่อเจาะลึกข้อมูลในอดีตพร้อมกับการตรวจจับรูปแบบและแนวโน้มที่ซ่อนอยู่ในชุดข้อมูลที่ยากจะตระหนักรู้ได้อย่างแม่นยำ ถึงแม้จะเผชิญกับตลาดที่มีการเปลี่ยนแปลงอย่างรวดเร็วก็สามารถปรับกลยุทธ์ได้ทันที โดยคาดการณ์จุดสูงสุดและจุุดต่ำสุดที่กำลังจะเกิดขึ้น",aiyuce:"จากการประเมินผลของ AI คาดการณ์อัจฉริยะ,",gujia:"ราคาหุ้น",stockPricePrediction:"Stock Price Prediction",timeSpacePrediction:"Time-Space Prediction",bodongfenxi:"การวิเคราะห์ความผันผวนของราคาหุ้น",jinrishangzhanglv:"เพิ่มขึ้นล่าสุด ความน่าจะเป็น",yucejia:"คาดการณ์ราคา",zuigaojia:"ราคาสูงสุด",zuidijia:"ราคาต่ำสุด",weilaizhangdiegailv:"ความน่าจะเป็นการขึ้นหรือลงในอนาคต",ri5:"5 Days",ri13:"13 Days",ri21:"21 Days",lishibodongqujian:"ประวัติความผันผวน โซน",shangzhanggailv:"ความน่าจะเป็นที่เพิ่มขึ้น",gaodian:"Highs",didian:"Lows",jiage1:"ราคาล่าสุด:",jiage2:"ราคาขาย",jiage3:"ราคาซื้อกลับ",jiage4:"คาดการณ์ราคาต่ำ1",jiage5:"คาดการณ์ราคาต่ำ2",jiage6:"คาดการณ์ราคาสูง1 ",jiage7:"คาดการณ์ราคาสูง2",bt:"AIการสั่นพ้องของเวลาและช่องว่าง",gnjx:"คำอธิบายฟังก์ชัน",gnjx_nr1:"การสั่นพ้องของเวลาและช่องว่าง",gnjx_nr2:",ผสมผสานเทคโนโลยี AI ที่ทันสมัยที่สุดเข้ากับทฤษฎีการสั่นพ้องของเวลาและช่องว่าง จุดมุ่งหมายหลักคือการนำทฤษฎีการสั่นพ้องนี้มาใช้ในการวิเคราะห์,",gnjx_nr3:"เพื่อค้นหาและระบุจุดเปลี่ยนสำคัญในตลาด",gnjx_nr4:"หรือกระบวนการทางการลงทุน AIนี้เป็นเสมือน",gnjx_nr5:'"ตาแห่งอนาคต"',gnjx_nr6:"ที่มีความสามารถในการคาดการณ์ที่ลึกซึ้ง เปิดมุมมองใหม่ในการวิเคราะห์ตลาดหุ้น.",jl:"จุดเปลี่ยนทิศทางของตลาดคือ:",jl_1:"เหลืออีก",jl_2:"",wlyc1:"ฟังก์ชันการคาดการณ์อนาคตนี้",wlyc2:",ถือเป็นนวัตกรรมที่เต็มไปด้วยความคิดสร้างสรรค์และจินตนาการ",wlyc3:"โดยมีหลักการคือ การผสานอัลกอริทึม高",wlyc4:"กับ",wlyc6:"ที่ผ่านการพัฒนามาเป็นอย่างดี เพื่อค้นหารูปแบบที่ซ่อนอยู่ในข้อมูลจำนวนมหาศาลให้ออกมาได้อย่างสมบูรณ์แบบ และเปิดเผยกฎเกณฑ์ภายในเพื่อสนับสนุนการคาดการณ์ในอนาคต สามารถช่วยให้นักลงทุนคว้า",wlyc7:"โอกาสสำคัญที่ไม่แน่นอนในตลาด",wlyc8:",และทำการตัดสินใจ",wlyc9:"ได้อย่างแม่นยำและรอบคอบที่สุด.",daima:"รหัสโค้ด:",gupiao:"ชื่อ:",up:"%change:",now_price:"ราคาล่าสุด:",searchCode:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",mostViewed:"ยอดเข้าชมมากที่สุด",toLearn:"หากไม่ทราบวิธีการใช้งาน? คลิกที่นี่เพื่อเรียนรู้เพิ่มเติม >",learn:"เรียนรู้",toLogin:"Go to log in",login:"Log in",aifindCow:"AI สำรวจหุ้นกระทิง",duanluo:"ใช้เทคโนโลยี AIขั้นสูงและการวิเคราะห์ข้อมูลเพื่อระบุจุดเปลี่ยนของตลาดอย่างแม่นยำ ในสภาวะตลาดที่ผันผวนและซับซ้อน เพื่อแยกโอกาสการลงทุนที่แท้จริง มอบมุมมองใหม่ในการลงทุนให้กับนักลงทุน ทำให้การลงทุนมีประสิทธิภาพและมีเสถียรภาพมากยิ่งขึ้น",gujiayuce_red:"สีแดง: แท่งเทียนเชิงรุก ฝ่ายซื้อเริ่มการโจมตี",gujiayuce_yello:"สีเหลือง: แท่งเทียนป้องกัน จุดสำคัญสุดท้ายของการป้องกัน",gujiayuce_blue:"สีน้ำเงิน: แท่งเทียนขับเคลื่อน ถือครองต่อเนื่องตราบใดที่ยังเป็นสีน้ำเงิน",cyan:"สีฟ้าอ่อน: แท่งเทียนถอย ควรขายออกทั้งหมด",findcowrope:"เชือกจูงกระทิง: สีแดงแสดงแนวโน้มขาขึ้น สีเขียวแสดงแนวโน้มขาลง",title_2:"การแนะนำฟังก์ชัน",Klinetext_1:"แท่งเทียนเชิงรุก",Klinetext_2:"แท่งเทียนเชิงรับ",Klinetext_3:"แท่งเทียนขับเคลื่อน",Klinetext_4:"แท่งเทียนถอย",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"เชือกจูงกระทิง",overText_1:'"AI สำรวจหุ้นกระทิง" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',tiaoguo:"ข้าม",xiayiye:"ถัดไป",shangyiye:"ก่อนหน้า",kaishitiyan:"เข้าใช้งาน",overText_2:"เริ่มต้น: ",overText_3:"เวลาสิ้นสุด:",zcw:"ระดับการสนับสนุน",ylw:"ระดับความดัน",cnxs:"เดาว่าคุณต้องการค้นหา",searchName:"ไปที่ค้นหาการถือครองหุ้นของคุณ",dqcb:"ค่าใช้จ่ายระยะสั้น ",zcqcb:"ต้นทุนระยะกลางและระยะยาว ",new_yali7:"แนวรับค่อนข้างอ่อน",new_yali8:"แนวรับค่อนข้างแข็งแกร่งปานกลาง",new_yali9:"ซึ่งแนวรับค่อนข้างแข็งแกร่ง",new_zhuangjia3:"หุ้นตัวนี้พบมีชิปกระจุกตัว",new_zhuangjia4:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจุกตัว",new_zhuangjia5:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจายตัว",new_zhuangjia6:"หุ้นตัวนี้พบมีชิปกระจายตัว",goldCow:"AI กระทิงทอง",yiGn:"ด้วย",AIjianduan:"เทคโนโลยี AI ที่ล้ำสมัย",heGn:"และ",zhishitupu:"การวิเคราะห์กราฟแผนภูมิ",contentGN1:"เป็นแกนหลัก สามารถระบุจุดเปลี่ยนแปลงเชิงรุกและเชิงรับของตลาดได้อย่างแม่นยำ ราวกับเป็นแสงสว่างที่ชี้ทางไปยังจุดที่มีโอกาสลงทุนในสภาวะตลาดที่ซับซ้อนและผันผวน เทคโนโลยีนี้สามารถกำจัดข้อมูลที่ไม่ถูกต้องและรักษาข้อมูลที่แท้จริงไว้ได้ ทำให้สามารถระบุโอกาสการลงทุนที่แท้จริงได้ .",GN:"Golden Bull",contentGN2:'ไม่เพียงแต่เปิดมุมมองการลงทุนใหม่ให้กับนักลงทุน แต่ยังทำให้เส้นทางการลงทุนมีความมั่นคงและมีประสิทธิภาพ นำพานักลงทุนทุกคนไปสู่เส้นทางแห่งความสำเร็จได้อย่างรวดเร็ว".',ndaoxiaoshi:"กระทิงทดลอง: เข้าใจรหัสพันธุกรรมของหุ้นกระทิงและคาดการณ์ดาวรุ่งแห่งตลาดหุ้นในอนาคต",danyouxing:"กระทิงเปล่งประกาย: สะท้อนถึงการพุ่งทะยานของหุ้นกระทิง และคว้าช่วงเวลาแห่งความสำเร็จในช่วงขาขึ้น",jinnsongfu:"กระทิงทองมอบโชค: พร้อมพลังแห่งการเพิ่มขึ้นเท่าตัว เป็นสัญญาณเริ่มต้นของบทใหม่ในความทะยานอย่างยิ่งใหญ่ของหุ้น",yinbeiliang:"Volumeแท่งแดงเท่าตัว: ปริมาณซื้อขายวันนี้เพิ่มขึ้นสองเท่าหรือมากกว่าวันก่อนหน้า (แท่งแดง)",yangbeiliang:"Volumeแท่งเขียวเท่าตัว: ปริมาณซื้อขายวันนี้เพิ่มขึ้นสองเท่าหรือมากกว่าวันก่อนหน้า (แท่งเขียว)",huiyuanzhaunxiang:"สิทธิพิเศษเฉพาะสมาชิก Homily",yidaoqi:"ฟังก์ชันนี้หมดอายุการใช้งานแล้ว",fufeizanwuquanxian:"ฟังก์ชันนี้สำหรับผู้ใช้งานแบบชำระเงิน คุณยังไม่มีสิทธิ์ใช้งาน",zanwushichangquanxian:"ขณะนี้คุณยังไม่มีสิทธิ์เข้าถึงตลาดนี้",zanwugaiquanxian:"ขณะนี้คุณยังไม่มีสิทธิ์ใช้งานฟังก์ชันนี้",chengjiaoliang:"Trading volume",jinntitle1:"Bullish stock Monster-revealing mirror",jinntitle2:"หุ้นกระทิงคลั่ง",gupiaonoresult:"ขณะนี้ยังไม่มีข้อมูล กรุณาติดต่อฝ่ายบริการลูกค้า",jinnqibao:"golden bull boom",dunchi:"ไม้บรรทัดหุ้นกระทิง: มาตรฐานสำหรับวัดหุ้นกระทิง.",DNC:"ไม้บรรทัดวัว",dunqu:"Bull Zone",aiRadar:"The AI radar",tiangui:"Heaven Track",digui:"Earth Track",leidagongnengliangdian1:"The AI radar,through dimensionality elevation analysis, elevates market data to a higher dimension, enabling it to overcome spatial barriers and provide investors with a comprehensive and in-depth investment perspective. It accurately reveals the real investment opportunities hidden in the complex market, helping investors understand market trends. At the same time, the dimensionality reduction strike function of the AI radar simplifies complex market information, allowing investors to quickly grasp key information in the rapidly changing market environment and make wise and timely investment decisions. Crossing space and seeing through the future, the AI radar is undoubtedly a powerful assistant for investors.",tianguimiaoshu1:"Heaven and Earth Double Tracks: Composed of two curves in total.",tianguimiaoshu2:"The upper blue line is the Heaven Track, representing the price space control line of the bullish major institutions.",tianguimiaoshu3:"The lower yellow line is the Earth Track, representing the price space control line of the bearish major institutions.",tanbao:"Treasure Hunting:",tiandishaungxian:"Heaven and Earth Double Tracks: This indicator ingeniously integrates space-time factors, reflecting the laws of stock price fluctuations in a novel form, and giving early warnings of the bottom precursors and top alerts of stock price movements.",tancei:"Detection: It refers to the in-depth analysis and identification of specific areas and targets, aiming to identify and confirm the primary, secondary, and tertiary bottoms of stock prices. These levels reflect different depths of stock price declines and possible rebound strengths.",saoshe:"Scanning: It is the process of quickly searching for and tracking targets within a certain range, with the aim of discovering acceleration points of different intensities. The intensities of these acceleration points increase in sequence when scanning to the right, to the left, and upwards.",tanbao1:"Treasure Hunting",overText_11:'"AI กระทิงทอง" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',overText_12:'"The AI radar" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"โมเดลอารมณ์ AI",ait:"เทอร์โมมิเตอร์ตลาดหุ้น",aie:"ตัวถอดรหัสอารมณ์"},kr:{language:"한국어",suoxie:"kr",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI 예측 기능",daoqi:"TREASURE HUNTER 서비스 사용 기한",wei:"은",wei_kr:"로",hotStocks:"인기 주식",content:"TREASURE HUNTER",content_1:'"TREASURE HUNTER"는',content_2:"고도로 지능화",content_3:"된 주식 분석 도구로, 빅데이터, 머신러닝 및 인공지능 기술을 활용하여 복잡한 주식 시장을 파악하고 분석하여",content_4:"정확한",content_5:'저항 및 지지점, 자금 흐름, 트렌드 분석을 제공합니다. "TREASURE HUNTER"는 정밀한 알고리즘과 효율적인 분석을 바탕으로',content_6:"주식 투자자들의 서포터가 되어줍니다",content_7:",또한, 투자자들이 데이터의 진정한 의미를 명확히 이해할 수 있도록 하여, 주식 시장을 이해하고 파악하는 것을 서포트하며, 투자자들이",content_8:"효율적이고 스마트한 투자 관리를 실현할 수 있도록 지원합니다。",results:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면:",global:"글로벌 주가 지수",endTerm:"Click to view service term",noTerms:"No permission",shuru:"종목명 또는 코드를 입력하세요",guzhi:"주식 평가",yunnaotanmi:"CLOUD BRAIN",jigoudongxiang:"기관 동향",feixian:"Fly Line",zhoongxian:"Middle Line",liuxian:"Stream Line",tianxian:"Sky Line",maipan:"매수 세력",maipan1:"매도 세력",kai:"시가",shou:"종가",gao:"고가",di:"저가",huolichouma:"수익 자산",fudongchouma:"변동성 자산",taolaochouma:"묶인 자산",liuselp:"리스크 레벨 나침반",gupiaoguzhi:"주식 평가",qushi1:"추세선 1 ",qushi2:"추세선 2",qushi3:"추세선 3",endDateText:"남은 무료 체험 기간:",endTianShu:"일",newUsers:"신규 회원 가입 시 30일간 무료로 체험하실 수 있습니다",dangrigujia:"당일 주가",gupiaodaima:"주식 코드",riqi:"날짜",zhangdieedu:"등락 한도",zhangdiebaifenbi:"등락 비율",dangrizijin:"당일 자금",dangriduofangzijin:"당일 매수 세력 자금",liuru:"유입",liuchu:"유출",zhulizijin:"세력 자금",zhulizijin1:"해당 시장의 매수 자금이 우세를 점하기 시작했습니다。",zhulizijin2:"해당 시장은 매수 자금이 우세하며, 매수 자금이 지속적으로 유입되고 있는 상태입니다。",zhulizijin3:"해당 시장은 매수 자금이 우세하지만, 매수 자금이 철수하려는 조짐을 보이며, 세력이 시장 조정 작업을 하는 것처럼 확인됩니다。",zhulizijin4:"해당 시장은 매수 자금이 우세를 점하고 있습니다。",zhulizijin5:"해당 시장은 매수 자금이 우세하지만, 매수 자금이 지속적으로 유출되고 있는 상태입니다。",zhulizijin6:"해당 시장은 매수 자금이 우세하며, 매수 자금이 다시 유입되고 있는 상태입니다。",zhulizijin7:"해당 시장의 매도 자금이 우세를 점하기 시작했습니다。",zhulizijin8:"해당 시장은 매도 자금이 우세하며, 매도세가 증가하는 추세를 보이는 상태입니다。",zhulizijin9:"해당 시장은 매도 자금이 우세하며, 세력이 개미털기 작업을 하는 것처럼 확인됩니다。",zhulizijin10:"해당 시장은 매도 자금이 우세하지만, 매도 자금이 철수하려는 조짐을 보입니다。",zhulizijin11:"해당 시장은 여전히 매도 자금이 우세합니다。",zhulizijin12:"해당 시장은 여전히 매도 자금이 우세하지만, 매도 자금이 감소하는 추세를 보이는 상태입니다。",zhulizijin13:"해당 시장은 매도 자금이 우세하며, 매도세가 다시 증가하고 있는 상태로 보입니다。",zhulixichou:"세력 매집",zhulixichou1:"최근 세력이 집중적으로 매집하고 있습니다。",zhulixichou2:"최근 세력이 집중적으로 매집한 모습이 없습니다。",zhuangsanduijue:"세력 vs 개인",zhuangsanduijue1:"최근 기관투자자의 주식 보유 비율이 개인투자자의 주식 보유 비율보다 높습니다。",zhuangsanduijue2:"최근 기관투자자의 주식 보유 비율이 개인 투자자의 주식 보유 비율보다 낮습니다。",zhuangsanduijue3:"당일 기관투자자의 주식 보유 비율이 증가했습니다。",zhuangsanduijue4:"당일 기관투자자의 주식 보유 비율이 감소했습니다。",zhuangsanduijue5:"당일 개인투자자의 주식 보유 비율이 증가했습니다 。",zhuangsanduijue6:"당일 개인투자자의 주식 보유 비율이 감소했습니다。",anquanjibei:"Safety 레벨",more:"Safety 레벨",chuyu1:"Super Cloud Brain의 리스크 레벨 나침반의 측정 결과에 따르면, 해당 주식은 현재 에 있으며",chuyu2:"Safety 레벨은 입니다",dengji1:"Safety 레벨은 입니다.",dengji2:"약한 지지와 보통의 저항 구간",dengji3:"약한 지지와 약한 지항 구간",dengji4:"강한 지지와 강한 저항 구간",dengji5:"강한 지지와 보통의 저항 구간",dengji6:"강한 지지와 약한 저항 구간",dengji7:"매우 위험",dengji8:"매우 위험",dengji9:"보통 위험",dengji10:"보통 안전",dengji11:"비교적 안전",dengji12:"매우 안전",yali:"지지와 저항",yali1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면",yali2:"해당 주식의 현재 주가는 이며",yali3:"저항선은 로",yali_contral:"또한 지지선은 로",yali4:"비교적 약한 저항을 가지고 있으며, 천천히 거래량이 증가하면 돌파할 수 있습니다 ",yali5:"보통 수준의 저항을 가지고 있으며, 명확한 거래량 증가가 보여야 돌파할 수 있습니다 ",yali6:"비교적 강한 저항을 가지고 있으며, 대량의 거래량 증가가 있어야 돌파할 수 있습니다 ",yali7:"지지 강도는 상당히 약한 편입니다。",yali8:"지지 강도는 보통 수준입니다。",yali9:"지지 강도는 상당히 강한 편입니다。",yali10:"비교적 약한 저항을 가지고 있으며",yali11:"보통 수준의 저항을 가지고 있으며",yali12:"비교적 강한 저항을 가지고 있으며",yali13:"현재 데이터가 없습니다",qushi:"추세 분석",qushitext1:"해당 주식은 중장기적으로",qushitext2:"상승 추세",qushitext22:"에 있으며,",qushitext3:"단기적으로는",qushitext33:"에 있습니다",qushitext4:"강세 상태。",qushitext5:"하락 추세,",qushitext6:"약세 상태。",zhuangjia:"세력 매집 원가",zhuangjia1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면, 해당 주식의 세력 중장기 평균 매집가는 이며",zhuangjia2:"단기 평균 매집가는 입니다",zhuangjia3:"해당 주식의 자산은 집중되어 있으며,",zhuangjia4:"해당 주식의 자산은 비교적 집중되어 있으며,",zhuangjia5:"해당 주식의 자산은 비교적 분산되어 있으며,",zhuangjia6:"해당 주식의 자산은 분산되어 있으며,",zhuangjia7:"또한 당일 매집가는 입니다",zhibiaojieshao:"지표 소개",qingxujiazhi:"시장 심리",qingxujiazhi1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면,",qingxujiazhi2:"최근 수익 자산의 비중이 증가했습니다. 또한 단기 수익 실현을 매도세가 뚜렷해졌으며。",qingxujiazhi3:"최근 수익 자산의 비중이 증가했습니다. 또한 시장 참여자들의 수익 실현 의사는 뚜렷하지 않으며, 자금의 안정성이 비교적 좋은 편입니다。",qingxujiazhi4:"최근 수익 자산의 비중이 감소하고 있습니다. 또한 단기 수익 실현을 위한 매도세가 뚜렷해졌으며。",qingxujiazhi5:"최근 수익 자산의 비중이 증가하고 있습니다. 또한 시장 참여자들의 수익 실현 의사는 뚜렷하지 않으며, 자금의 안정성이 비교적 좋은 편입니다。",qingxujiazhi6:"최근 묶인 자산의 비중이 증가했습니다. 또한 손절매를 통한 매도세가 뚜렷해졌으며。",qingxujiazhi7:"최근 묶인 자산의 비중이 증가했습니다. 또한 시장 참여자들의 시장 이탈 의사는 뚜렷하지 않으며, 자금이 손실로 인해 묶여 있는 상태입니다。",qingxujiazhi8:"최근 묶인 자산의 비중이 감소하고 있습니다. 또한 새로운 자금이 유입되어 매수되며, 기존의 묶인 자금을 분산시키고 있습니다。",qingxujiazhi9:"최근 묶인 자산의 비중이 감소하고 있습니다. 또한 단기 수익 실현을 위한 매도세는 뚜렷하지 않으며, 대부분의 자금은 관망 되고 있는 상태입니다。",gongnengshuoming:"기능 설명",feitian:"Flying Sky",liucaishenlong:"육색신룡",red:"빨간색 캔들: 수익 자산(세력 자금)",purple:"보라색 캔들: 수익 자산 10일 이동평균선",blue:"파란색 캔들: 묶인 자산 10일 이동평균선",yellow:"노란색 캔들: 변동성 자산(투기 자금)",green:"초록색 캔들: 묶인 자산 (개인 투자자 자금)",pink:"분홍색 캔들: 변동성 자산 10일 이동평균선",bodongliang:"3D Deviation",gongneng:"3D Deviation 지표는 빨간 색의 매수 세력, 하늘 색의 매도 세력과 에너지 변동선으로 구성되어 있습니다",tebietongzhi:"중요 공지",tongzhi1:"TREASURE HUNTER를 사용하시는 회원님들께,",tongzhi2:'현재 "TREASURE SWORD" 기능의 기간 한정 체험 이벤트가 진행중임을 알려드립니다 ! TREASURE HUNTER의 새로운 기능 TREASURE SWORD를 무료로 체험하시며, 해당 기능의 독특한 매력과 뛰어난 성능을 느끼실 수 있길 바랍니다.',tongzhi3:"무료 체험 기간",tongzhi4:"시작 시간: 오늘부터 (2024년 8월 2일)",tongzhi5:"종료 시간: 추후 공지를 통해 안내드릴 예정입니다",tongzhi6:"하이라이트",tongzhi7:"투자자들의 다양한 행동 패턴을 분석하고 연구하여, 시장에서의 움직임을 파악합니다. 즐겁게 사용하시길 바랍니다!",tongzhi8:'최신 AI 데이터 모델을 탑재하여 주가 움직임 이면에 있는 수익 구조를 심도 있게 분석하는, "가장 진보된 AI 스마트 이동평균선"이라 할 수 있습니다',tongzhi9:"Wish you a pleasant use!",tongzhi10:"Homily Intelligent R&D Team",tongzhi11:'현재 "AI 예측 기능"의 기간 한정 체험 이벤트가 진행중임을 알려드립니다 ! 해당 기간 동안 새로운 기능의 독특한 매력과 뛰어난 성능을 느끼실 수 있길 바랍니다.',tongzhi12:"AI 예측 기능은 혁신적인 예측 도구로, 전통적인 주식 시장 예측 개념을 새롭게 혁신합니다. 심층 학습과 고급 알고리즘을 활용하여 과거 데이터를 반영함과 동시에, 데이터 속에 숨겨진 미세한 패턴과 트렌드를 정확히 포착합니다. 빠른 시장의 변화 속에도 신속하게 전략을 조정 및 수립하여 미래의 고점과 저점을 예측할 수 있습니다",aiyuce:"AI Prediction Model의 측정 결과에 따르면,",gujia:"주식 가격",stockPricePrediction:"주가 예측",timeSpacePrediction:"시공간 예측",bodongfenxi:"주가 변동 분석",jinrishangzhanglv:"단기 상승 확률",yucejia:"예측가:",zuidijia:"최저가",zuigaojia:"최고가",weilaizhangdiegailv:"단기 등락 확률",ri5:"5일",ri13:"13일",ri21:"21일",lishibodongqujian:"과거 변동 구간",shangzhanggailv:"상승 확률",gaodian:"고점",didian:"저점",jiage1:"현재가:",jiage2:"매도가",jiage3:"매수가",jiage4:"예측 저점 1",jiage5:"예측 저점 2",jiage6:"예측 고점 1",jiage7:"예측 고점 2",aidamoxing:"AI 예측 기능",bt:"예측 고점",gnjx:"예측 고점",gnjx_nr1:"AI 시공간 공명",gnjx_nr2:",은 최첨단 AI 기술과 시공간 공명 이론을 결합한 것으로, 시공간 공명 이론의 원리를 활용하여,",gnjx_nr3:"변동포인트를 정확하게 탐색 및 식별하고",gnjx_nr4:"특정 상황, 환경 또는 과정에서의",gnjx_nr5:"새로운 시각을 제공합니다",gnjx_nr6:"주식 시장 분석에 ",jl:"다음 변동 포인트:",jl_1:"距离下下次股市变盘点还有",jl_2:"",wlyc1:"미래 예측",wlyc2:",기능은",wlyc3:"데이터 과학",wlyc4:"과 ",wlyc5:"AI 기술",wlyc6:"이 결합하여 만들어진 기능으로, 훈련된 AI를 활용해 방대한 데이터 속에 숨겨진 패턴과 규칙을 찾아내어 예측에 강력한 기술적 지원을 제공하는 기능입니다. 이를 통해 사용자는 변화무쌍한 시장에서",wlyc7:"중요한 기회",wlyc8:",를 포착하고 ",wlyc9:"가장 과학적인 결정",wlyc10:"을 내릴 수 있게 됩니다。",daima:"종목 코드:",gupiao:"종목 코드:",up:"상승폭:",now_price:"현재가:",searchCode:"종목명 또는 코드를 입력하세요",mostViewed:"인기 검색어",toLearn:"TREASURE HUNTER 강의 영상 보러가기 >",learn:"강의 보기",toLogin:"Go to log in",login:"Log in",aifindCow:"AI Bull Catcher",duanluo:"첨단 AI 기술과 지식 그래프 분석을 기반으로, 시장의 공격점과 수비점을 정확히 식별합니다. 또한, 복잡한 시장의 변동 속에서 진정한 투자 기회를 포착하여 투자자에게 새로운 투자 관점을 제시하고, 더욱 효율적이고 안정적인 투자 환경을 제공합니다.",gujiayuce_red:"빨간색 캔들: 공격형 캔들,상승세가 공격을 시작했다는 신호",gujiayuce_yello:"노란색 캔들: 수비형 캔들,상승세와 하락세의 분기점,최후의 캔들",gujiayuce_blue:"파란색 캔들: 진행형 캔들,파란 캔들이 유지되면 보유",cyan:"하늘색 캔들: 후퇴형 캔들,매도 포지션 유지",findcowrope:"Bull Rope: 빨간색 선은 상승 추세를 뜻하고, 초록색 선은 하락 추세를 뜻합니다.",title_2:"기능 소개",Klinetext_1:"공격형 캔들",Klinetext_2:"수비형 캔들",Klinetext_3:"진행형 캔들",Klinetext_4:"후퇴형 캔들",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"Bull Rope",overText_1:"AI Bull Catcher는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",tiaoguo:"건너뛰다",xiayiye:"다음 페이지",shangyiye:"앞페이지",kaishitiyan:"체험 시작하기",overText_2:"시작 시간: ",overText_3:"종료 시간: ",zcw:"지지선",ylw:"저항선",cnxs:"추천 검색어",searchName:"종목,종목코드 검색",dqcb:"단기 매집",zcqcb:"중장기 매집가",new_yali7:"지지 강도는 상당히 약한 편입니다",new_yali8:"지지 강도는 보통 수준입니다",new_yali9:"지지 강도는 상당히 강한 편입니다",new_zhuangjia3:"해당 주식의 자산은 집중되어 있으며",new_zhuangjia4:"해당 주식의 자산은 비교적 집중되어 있으며",new_zhuangjia5:"해당 주식의 자산은 비교적 분산되어 있으며",new_zhuangjia6:"해당 주식의 자산은 분산되어 있으며",goldCow:"AI Golden Bull",yiGn:"은",AIjianduan:"첨단 AI 기술",heGn:"과",zhishitupu:"지식 그래프 분석",contentGN1:"을 핵심으로 공격과 방어 전환점을 정확히 식별합니다. 이는 마치 금은보화가 있는 곳을 비추는 조명처럼, 복잡한 시장의 변동 속에서 진정한 투자 기회를 포착하게 합니다。",GN:"골드 버전",contentGN2:"은 투자자에게 새로운 투자 시각을 제공할 뿐만 아니라, 안정적이고 효율적인 투자 여정을 만들어 주며, 투자를 성공으로 이끌어 주는 빠른 길을 찾아냅니다。",ndaoxiaoshi:"Potential Bullish: 우량주의 본질을 이해하고, 미래의 우량주를 예측합니다.",danyouxing:"Mature Bullish: 급등하는 우량주의 모습을 포착하고, 급등 중인 종목의 매수 타이밍을 제공합니다.",jinnsongfu:"Fortune Bullsih: 보다 큰 힘으로 상승하는 우량주가 투자자에게 부를 안겨줄 것을 암시합니다.",yinbeiliang:"음배량: 음봉 거래량이 전날의 거래량 보다 두 배 이상 증가함",yangbeiliang:"양배량: 양봉 거래량이 전날의 거래량 보다 두 배 이상 증가함",huiyuanzhaunxiang:"회원 전용",yidaoqi:"서비스 사용 기간이 만료되었습니다.",fufeizanwuquanxian:"유료 서비스, 현재 서비스 사용 권한이 없습니다.",zanwushichangquanxian:"해당 시장 서비스 권한이 없습니다.",zanwugaiquanxian:"해당 서비스 사용 권한이 업습니다.",chengjiaoliang:"Trading volume",jinntitle1:"Bullish stork 탐지경",jinntitle2:"Crazy Bull",gupiaonoresult:"현재 데이터가 없습니다. 고객센터에 문의해 주시기 바랍니다.",jinnqibao:"golden bull boom",dunchi:"Bull Stock: 지표 - 우량주 측정 기준。",DNC:"Bull Stock",dunqu:"Bull Zone",aiRadar:"AI 레이더",tiangui:"하늘 선 궤도",digui:"땅 선 궤도",leidagongnengliangdian1:"AI 레이더는 다차원 분석을 통해 시장 데이터를 더 높은 차원으로 끌어올려 공간적 장벽을 넘어 투자자에게 종합적이고 심층적인 투자 관점을 제공합니다. 또한 복잡한 시장에 숨겨진 진정한 투자 기회를 정확하게 드러내어 투자자가 시장 동향을 파악하는 데 도움을 줍니다. 동시에 AI 레이더의 차원 축소 기능은 복잡한 시장 정보를 간소화하여 투자자가 빠르게 핵심 정보를 포착할 수 있게 하여, 현명하고 적절한 투자 결정을 내릴 수 있게 합니다. 공간과 시간을 넘어 미래를 통찰하는 AI 레이더는 투자자의 확실한 서포터가 되어 줍니다.",tianguimiaoshu1:"하늘 땅 이중 궤도",tianguimiaoshu2:"위쪽의 파란 선은 하늘 선 궤도로, 매수 세력인 기관이 가격 공간을 제어하는 선을 나타냅니다.",tianguimiaoshu3:"아래의 노란 선은 땅 선 궤도로, 매도 세력인 기관이 가격 공간을 제어하는 선을 나타냅니다.",tanbao:"보물 찾기:",tiandishaungxian:"하늘 땅 이중 궤도:이 지표는 시공간 요소를 교묘하게 융합하여 주가 변동의 규칙을 새롭고 독창적인 형태로 나타내며, 주가 변동의 바닥 전조와 정점의 신호를 미리 알려줍니다.",tancei:"탐색: 특정 영역과 목표에 대한 심층 분석 및 식별로, 주가의 1차 바닥, 2차 바닥 및 3차 바닥까지 식별하고 확인하는 것을 목표로 하며, 주가 하락의 다양한 폭과 실현 가능한 반등 강도를 반영합니다.",saoshe:"스캔: 일정 범위 내에서 빠르게 목표를 검색하고 추정하는 과정으로, 다양한 강도의 가속점을 식별하",tanbao1:"보물 찾기",overText_11:"“AI Golden Bull는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",overText_12:"“AI 레이더는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"AI 감정 모델",StockTemperature:"주식 온도"}},a=i(localStorage.getItem("userLanguage")||"cn"),t=e((()=>n[a.value]||n.cn));function o(i){n[i]?(a.value=i,localStorage.setItem("userLanguage",i)):console.error(`Language pack not found: ${i}`)}const u=Object.keys(n);export{u as a,o as c,n as l,t}; +import{r as i,k as e}from"./index-7d881374.js";const n={cn:{language:"简体中文",suoxie:"cn",greeting:"超级云脑",greeting1:"夺宝利剑",greeting2:"AI预测大模型",greeting3:"AI探牛",daoqi:"夺宝奇兵服务期限",wei:"为:",hotStocks:"热门股票",content:"夺宝奇兵",content_1:"“夺宝奇兵”是一款",content_2:"高度智能化",content_3:"的股票分析工具,利用大数据、机器学习和人工智能技术,挖掘并解析股票市场的复杂性,以提供",content_4:"精准",content_5:"的的压力支撑点,资金流向和趋势分析。“夺宝奇兵”凭借其精密的算法及高效的分析,正快速成为",content_6:"股市投资者的绝佳助手",content_7:",它使投资者能够清楚地理解这些数据的真正含义,帮助投资者理解和掌握股市,助力投资者实现",content_8:"高效、智慧的投资管理。",global:"全球指数",results:"根据超级云脑大数据计算引擎的结果:",endTerm:"点击查看服务期限",noTerms:"暂无权限",shuru:"请输入股票名称/代码",guzhi:"股票估值",yunnaotanmi:"云脑探秘",jigoudongxiang:"机构动向",duobaolijian:"夺宝利剑",aidamoxing:"AI预测大模型",feixian:"飞线",zhoongxian:"中线",liuxian:"流线",tianxian:"天线",maipan:"买盘",maipan1:"卖盘",kai:"开",shou:"收",gao:"高",di:"低",huolichouma:"获利筹码",fudongchouma:"浮动筹码",taolaochouma:"套牢筹码",liuselp:"六色罗盘",gupiaoguzhi:"股票估值",qushi1:"趋势线1",qushi2:"趋势线2",qushi3:"趋势线3",endDateText:"试用期限剩余:",endTianShu:"天",newUsers:"新用户注册可得30天使用权",dangrigujia:"当日股价",gupiaodaima:"股票代码",riqi:"日期",zhangdieedu:"涨跌额度",zhangdiebaifenbi:"涨跌百分比",dangrizijin:"当日资金",dangriduofangzijin:"当日多方资金",liuru:"流入",liuchu:"流出",zhulizijin:"主力资金",zhulizijin1:"当前市场多头资金开始占优。",zhulizijin2:"当前市场多头资金占优,且多头资金呈现持续流入状态。",zhulizijin3:"当前市场多头资金占优,但多头资金出现撤退迹象, 主力似乎有洗盘的动作。",zhulizijin4:"当前市场多头资金占优。",zhulizijin5:"当前市场仍是多头资金占优,但多头资金出现持续流出。",zhulizijin6:"当前市场多头资金占优,且多头资金再次开始流入。",zhulizijin7:"当前市场空头资金开始占优。",zhulizijin8:"当前市场空头资金占优,且空头力量呈增加趋势。",zhulizijin9:"当前市场空头资金占优,主力似乎有砸盘的动作。",zhulizijin10:"当前市场空头资金占优,但空头资金出现撤退迹象。",zhulizijin11:"当前市场仍是空头资金占优。",zhulizijin12:"当前市场仍是空头资金占优,但空头力量呈下降趋势。",zhulizijin13:"当前市场空头资金占优,且空头力量再次呈增加趋势。",zhulixichou:"主力吸筹",zhulixichou1:"近日出现主力集中吸筹。",zhulixichou2:"近日没有出现主力集中吸筹。",zhuangsanduijue:"庄散对决",zhuangsanduijue1:"近期主力持仓比例大于散户持仓比例。",zhuangsanduijue2:"近期主力持仓比例小于散户持仓比例。",zhuangsanduijue3:"当日主力持仓增加。",zhuangsanduijue4:"当日主力持仓减少。",zhuangsanduijue5:"当日散户持仓增加。",zhuangsanduijue6:"当日散户持仓减少。",anquanjibei:"安全级别",more:"更多",chuyu1:"根据超级云脑六色罗盘的全方位检测结果,该股当前处于",chuyu2:"安全级别为",dengji1:"弱撑强压区",dengji2:"弱撑中压区",dengji3:"弱撑弱压区",dengji4:"强撑强压区",dengji5:"强撑中压区",dengji6:"强撑弱压区",dengji7:"极高风险",dengji8:"较高风险",dengji9:"中等风险",dengji10:"一般安全",dengji11:"较为安全",dengji12:"非常安全",yali:"压力支撑",yali1:"根据超级云脑大数据计算引擎的结果",yali2:"该股当前股价为",yali3:"该股压力位为",yali_contral:"该股支撑位为",yali4:"压力强度较弱,温和放量即可突破。",yali5:"压力强度一般,需明显放量方可突破。",yali6:"压力强度较大,需放出巨量方可有效突破。",yali7:"支撑强度较弱。",yali8:"支撑强度一般。",yali9:"支撑强度较大。",yali10:"压力强度较弱。",yali11:"压力强度一般。",yali12:"压力强度较大。",yali13:"暂无数据",qushi:"趋势研判",qushitext1:"该股中长期处于",qushitext2:"上升趋势,",qushitext3:"短期处于",qushitext4:"强势状态。",qushitext5:"下降趋势,",qushitext6:"弱势状态。",zhuangjia:"庄家成本",zhuangjia1:"根据超级云脑大数据筹码模型的结果,该股庄家中长期筹码成本价格为",zhuangjia2:"短期资金成本价格为",zhuangjia3:"该股筹码集中。",zhuangjia4:"该股筹码较为集中。",zhuangjia5:"该股筹码较为分散。",zhuangjia6:"该股筹码分散。",zhuangjia7:"当日筹码成本价格为",zhibiaojieshao:"指标介绍",qingxujiazhi:"情绪价值",qingxujiazhi1:"根据超级云脑大数据筹码模型的结果,",qingxujiazhi2:"近期获利筹码显著增加,短期获利了结抛售明显。",qingxujiazhi3:"近期获利筹码显著增加,股民获利了结意愿不明显,筹码稳定性较好。",qingxujiazhi4:"近期获利筹码出现减少,短期获利盘抛售明显。",qingxujiazhi5:"近期获利筹码出现增加,股民获利了结意愿不明显,筹码稳定性较好。",qingxujiazhi6:"近期套牢筹码显著增加,割肉离场筹码显著明显。",qingxujiazhi7:"近期套牢筹码显著增加,股民离场意愿不明显,筹码被套牢锁定。",qingxujiazhi8:"近期套牢筹码出现减少,有新资金入场吸货和前期套牢筹码进行摊薄。",qingxujiazhi9:"近期套牢筹码出现减少,短期获利了解意愿不明显,多数筹码呈现观望状态。",gongnengshuoming:"功能说明",feitian:"飞天功能",liucaishenlong:"六彩神龙",red:"红色柱线:获利筹码(主力资金)",purple:"紫色柱线:获利筹码10日均线",blue:"蓝色柱线:套牢筹码10日均线",yellow:"黄色柱线:浮动筹码(游资)",green:"绿色柱线:套牢筹码(散户资金)",pink:"粉色柱线:浮动筹码10日均线",bodongliang:"波动量",gongneng:"波动量指标由红色的买盘、绿色的卖盘和能量波动线构成。",tebietongzhi:"特别通知",tongzhi1:"尊敬的用户",tongzhi2:"我们非常高兴地通知您,“夺宝利剑”模块现正开放限时体验!在此期间,您将免费体验这个全新功能,感受其独特魅力和强大功能。",tongzhi3:"体验时间",tongzhi4:"开始时间:即日起(2024年8月2日)",tongzhi5:"结束时间:请持续关注后续通知",tongzhi6:"功能亮点",tongzhi7:"深度研究庄家的各种行为,让庄家的动作无处遁形。祝您使用愉快!",tongzhi8:"搭载全新AI大数据模型,深入探究股价运行背后的盈利逻辑,被誉为“最聪明的AI智能均线”。",tongzhi9:"祝您使用愉快!",tongzhi10:"弘历智能研发团队",tongzhi11:"我们非常高兴地通知您,AI预测大模型模块现正开放限时体验!在此期间,您将免费体验这个全新功能,感受其独特魅力和强大功能。",tongzhi12:"AI预测大模型是一种创新的预测工具,颠覆了传统股市的预测理念,运用深度学习和先进算法,对历史数据进行深度挖掘,精准捕捉藏在数据之中的难以察觉的模式和趋势。即使面对市场的快速变化,也能迅速调整策略,预测出即将来到的高点和低点。",aiyuce:"根据AI预测大模型测算,",gujia:"股价",stockPricePrediction:"股价预测",timeSpacePrediction:"时空预测",bodongfenxi:"股价波动分析",jinrishangzhanglv:"近日上涨概率",yucejia:"预测价:",zuidijia:"最低价",zuigaojia:"最高价",weilaizhangdiegailv:"未来涨跌概率",ri5:"5日",ri13:"13日",ri21:"21日",lishibodongqujian:"历史波动区间",shangzhanggailv:"上涨概率",gaodian:"高点",didian:"低点",jiage1:"现价:",jiage2:"卖出价",jiage3:"买回价",jiage4:"预测低一",jiage5:"预测低二",jiage6:"预测高一",jiage7:"预测高二",bt:"AI时空共振",gnjx:"功能简介",gnjx_nr1:"AI时空共振",gnjx_nr2:",结合了最前沿的AI技术和时空共振理念,其主旨在于通过借鉴和运用时空共振理论的原理,",gnjx_nr3:"精准探索和识别",gnjx_nr4:"出特定情境、环境或过程中的变盘点。是一种具备",gnjx_nr5:"深度预测能力",gnjx_nr6:"的“未来眼”,为股市分析提供了一种全新的视角。",jl:"下一个变盘点是:",jl_1:"距离下下次股市变盘点还有",jl_2:"",wlyc1:"未来预测",wlyc2:",是一个充满创新与想象力的功能,其核心在于将",wlyc3:"高阶数据科学",wlyc4:"和",wlyc5:"AI科技",wlyc6:"相结合,利用经过训练的AI来找出隐藏在海量数据之中的模式,揭示内在规律,为预测提供强大的技术支持。使我们能够在变化莫测的世界中抓住",wlyc7:"关键机遇",wlyc8:",做出最",wlyc9:"科学决策。",daima:"代码:",gupiao:"名称:",up:"涨幅:",now_price:"现价:",searchCode:"请输入股票名称/代码",mostViewed:"浏览最多",toLearn:"不知道应该如何使用?点击学习 >",learn:"学习",toLogin:"去登录",login:"登录",aifindCow:"AI探牛",duanluo:"以AI尖端技术和知识图谱分析为核心,精确识别市场攻防转换点,在复杂震荡行情中,去伪存真,识别真正的投资机会。为投资者提供投资新视角,让投资更加高效稳健。",gujiayuce_red:"红色:进攻K线,多方展开进攻;",gujiayuce_yello:"黄色:防守K线,多空临界点,最后的防守;",gujiayuce_blue:"蓝色:推进K线,一直蓝一直持有;",cyan:"青色:撤退K线,坚决空仓;",findcowrope:"牵牛绳:红色表示上升趋势,绿色表示下降趋势。",title_2:"功能介绍",Klinetext_1:"进攻K线",Klinetext_2:"防守K线",Klinetext_3:"推进K线",Klinetext_4:"撤退K线",Klinetext_5:"龙线",Klinetext_6:"虫线",FCX:"牵牛绳",overText_1:"“AI探牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_2:"开始时间:",overText_3:"结束时间:",xinshouyunnaoText1:"轻松识别股票的压力支撑及安全级别,机构动向一览无余",xinshoulijianText1:"一飞冲天,精准捕捉市场行情",xinshouAiText1:"未来股价的及变盘点预测,一目了然",xinshoutannText:"专为夺市场投资者量身打造的智能助手!",tiaoguo:"跳过",xiayiye:"下一页",shangyiye:"上一页",kaishitiyan:"开始体验",zcw:"支撑位",ylw:"压力位",cnxs:"猜你想搜",searchName:"前往搜索所持股票",dqcb:"短期成本",zcqcb:"中长期成本",new_yali7:"支撑强度较弱",new_yali8:"支撑强度一般",new_yali9:"支撑强度较大",new_zhuangjia3:"该股筹码集中",new_zhuangjia4:"该股筹码较为集中",new_zhuangjia5:"该股筹码较为分散",new_zhuangjia6:"该股筹码分散",goldCow:"AI金牛",yiGn:"以",AIjianduan:"AI尖端技术",heGn:"和",zhishitupu:"知识图谱分析",contentGN1:"为核心,精确识别市场攻防转换点,犹如明灯照亮金牛所在之处,在复杂震荡行情中,去伪存真,识别真正的投资机会。",GN:"金牛版",contentGN2:"不仅为投资者开辟了全新的投资视野,更让投资之旅变得稳定且高效,是引领每一位投资者走向成功的快车道。",ndaoxiaoshi:"牛刀小试:洞悉牛股基因,预判股市未来股市之星;",danyouxing:"大牛有形:彰显牛股飙升之姿,把握迅猛上涨的辉煌阶段;",jinnsongfu:"金牛送福:携翻倍拉升之威,预示个股将启壮阔上涨的辉煌篇章;",yinbeiliang:"阴倍量:较昨日成交量放大一倍及以上(阴线);",yangbeiliang:"阳倍量:较昨日成交量放大一倍及以上(阳线)。",huiyuanzhaunxiang:"弘历会员专享",yidaoqi:"该功能已到期",fufeizanwuquanxian:"付费功能,暂无权限",zanwushichangquanxian:"您目前暂无该市场权限",zanwugaiquanxian:"您暂无该功能权限",chengjiaoliang:"成交量",jinntitle1:"牛股照妖镜",jinntitle2:"疯牛出栏",gupiaonoresult:"暂无数据,请联系客服",jinnqibao:"金牛起爆",dunchi:"度牛尺:衡量牛股的标尺。",DNC:"度牛尺",dunqu:"度牛区",aiRadar:"AI雷达",tiangui:"天轨",digui:"地轨",leidagongnengliangdian1:"AI雷达,通过升维分析,将市场数据提升至更高维度,从而能够跨越空间障碍,为投资者提供全面且深入的投资视角。它精准地揭示隐藏在复杂市场中的真正投资机会,帮助投资者洞悉市场走势。同时,AI雷达的降维打击功能将复杂的市场信息简化,让投资者在瞬息万变的市场环境中迅速抓住关键信息,从而做出明智且及时的投资决策。跨越空间,透视未来,AI雷达无疑是投资者的得力助手。",tianguimiaoshu1:"天地双轨:共由两条曲线组成。",tianguimiaoshu2:"上方的蓝色线为天轨,代表着做多的主力机构对价格空间的控制线。",tianguimiaoshu3:"下方的黄色线为地轨,代表着做空的主力机构对价格空间的控制线。",tanbao:"探宝:",tiandishaungxian:"天地双线:该指标巧妙的融合了时空因素,用新颖的形式体现股价波动的规律,提前提示股价运动的底部前兆和顶部预警。",tancei:"探测:对特定区域和目标的深入分析和识别,旨在识别并确认股价的一级底部、二级底部和三级底部,这些级别反映了股价下跌的不同深和可能的反弹力度。",saoshe:"扫射:在一定范围内快速搜索和追踪目标的过程,目的是发现不同强度的加速点。这些加速点在向右扫描、向左扫描和向上扫描时,其强度依次增强。",tanbao1:"探宝",overText_11:"“AI金牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_12:"“AI雷达”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",zhutuqiangshixinhao:"主图K线",shezhikxian:"k线设置",quxiao:"取消",queding:"确定",aiEmotion:"AI情绪大模型",StockTemperature:"股票温度",MarketTemperature:"市场温度",CurrentStockPopularity:"当前股票热度为",StockPopularity:"股票热度",MarketPopularity:"市场热度",StockMarketTemperatureTrend:"股市温度趋势",TemperatureTrend:"温度趋势",StockMarketTemperatureCalendar:"股市温度日历",TemperatureCalendar:"温度日历",FunctionOverview:"功能介绍",FeatureHighlights:"功能亮点",current1_1:"当前股票温度为",current1:"处于狂热区间",current2:"处于过热区间",current3:"处于中性区间",current4:"处于冷淡区间",current5:"处于冰冷区间",current2_1:"当前市场温度为",current6:"行情处于狂热区间",current7:"行情处于过热区间",current8:"行情处于中性区间",current9:"行情处于冷淡区间",current10:"行情处于冰冷区间",current11:"当前温度趋势说明",yi:"周一",er:"周二",san:"周三",si:"周四",wu:"周五",liu:"周六",ri:"周日",ait:"股票温度计",aie:"情绪解码器"},hk:{language:"繁体中文",suoxie:"hk",greeting:"超級雲腦",greeting1:"奪寶利劍",greeting2:"AI預測大模型",daoqi:"奪寶奇兵服務期限",wei:"為:",hotStocks:"熱門股票",sousuo:"請輸入股票名稱/代碼",content:"奪寶奇兵",content_1:"奪寶奇兵”是一款",content_2:"高度智能化",content_3:"的股票分析工具,利用大數據、機器學習和人工智能技術,挖掘並解析股票市場的複雜性,以提供",content_4:"精準",content_5:"的壓力支撐點,資金流向和趨勢分析。“奪寶奇兵”憑藉其精密的算法及高效的分析,正快速成為",content_6:"股市投資者的絕佳助手",content_7:",它使投資者能夠清楚地理解這些數據的真正含義,幫助投資者理解和掌握股市,助力投資者實現",content_8:"高效、智慧的投資管理。",global:"全球指數",results:"根據超級雲腦大數據計算引擎的結果:",endTerm:"點擊查看服務期限",noTerms:"暫無權限",shuru:"請輸入股票名稱/程式碼",guzhi:"股票估值",yunnaotanmi:"雲腦探秘",jigoudongxiang:"機構動向",duobaolijian:"奪寶利劍",aidamoxing:"AI預測大模型",feixian:"飛線",zhoongxian:"中線",liuxian:"流線",tianxian:"天線",maipan:"買盤",maipan1:"賣盤",huolichouma:"獲利籌碼",fudongchouma:"浮動籌碼",taolaochouma:"套牢籌碼",kai:"開",shou:"收",gao:"高",di:"低",liuselp:"六色羅盤",gupiaoguzhi:"股票估值",qushi1:"趨勢線1",qushi2:"趨勢線2",qushi3:"趨勢線3",endDateText:"試用期限剩餘:",endTianShu:"天",newUsers:"新用戶註冊可得30天使用權",dangrigujia:"當日股價",gupiaodaima:"股票代碼",riqi:"日期",zhangdieedu:"漲跌額度",zhangdiebaifenbi:"漲跌百分比",dangrizijin:"當日資金",dangriduofangzijin:"當日多方資金",liuru:"流入",liuchu:"流出",zhulizijin:"主力資金",zhulizijin1:"當前市場多頭資金開始占優。",zhulizijin2:"當前市場多頭資金占優,且多頭資金呈現持續流入狀態。",zhulizijin3:"當前市場多頭資金占優,但多頭資金出現撤退迹象, 主力似乎有洗盤的動作。",zhulizijin4:"當前市場多頭資金占優。",zhulizijin5:"當前市場仍是多頭資金占優,但多頭資金出現持續流出。",zhulizijin6:"當前市場多頭資金占優,且多頭資金再次開始流入。",zhulizijin7:"當前市場空頭資金開始占優。",zhulizijin8:"當前市場空頭資金占優,且空頭力量呈增加趨勢。",zhulizijin9:"當前市場空頭資金占優,主力似乎有砸盤的動作。",zhulizijin10:"當前市場空頭資金占優,但空頭資金出現撤退迹象。",zhulizijin11:"當前市場仍是空頭資金占優。",zhulizijin12:"當前市場仍是空頭資金占優,但空頭力量呈下降趨勢。",zhulizijin13:"當前市場空頭資金占優,且空頭力量再次呈增加趨勢。",zhulixichou:"主力吸籌",zhulixichou1:"近日出現主力集中吸籌。",zhulixichou2:"近日沒有出現主力集中吸籌。",zhuangsanduijue:"莊散對決",zhuangsanduijue1:"近期主力持倉比例大於散户持倉比例。",zhuangsanduijue2:"近期主力持倉比例小於散户持倉比例。",zhuangsanduijue3:"當日主力持倉增加。",zhuangsanduijue4:"當日主力持倉減少。",zhuangsanduijue5:"當日散户持倉增加。",zhuangsanduijue6:"當日散户持倉減少。",anquanjibei:"安全級別",more:"更多",chuyu1:"根據超級雲腦六色羅盤的全方位檢測結果,該股當前處於",chuyu2:"安全級別為",dengji1:"弱撐強壓區",dengji2:"弱撐中壓區",dengji3:"弱撐弱壓區",dengji4:"强撐強壓區",dengji5:"强撐中壓區",dengji6:"强撐弱壓區",dengji7:"極高風險",dengji8:"較高風險",dengji9:"中等風險",dengji10:"一般安全",dengji11:"較為安全",dengji12:"非常安全",yali:"壓力支撐",yali1:"根據超級雲腦大數據計算引擎的結果",yali2:"該股當前股價為",yali3:"該股壓力位為",yali_contral:"該股支撐位為",yali4:"壓力強度較弱,温和放量即可突破。",yali5:"壓力強度一般,需明顯放量方可突破。",yali6:"壓力強度較大,需放出巨量方可有效突破。",yali7:"支撐強度較弱。",yali8:"支撐強度一般。",yali9:"支撐強度較大。",yali10:"壓力強度較弱。",yali11:"壓力強度一般。",yali12:"壓力強度較大。",yali13:"暫無數據",qushi:"趨勢研判",qushitext1:"該股中長期處於",qushitext2:"上升趨勢,",qushitext3:"短期處於",qushitext4:"強勢狀態。",qushitext5:"下降趨勢,",qushitext6:"弱勢狀態。",zhuangjia:"莊家成本",zhuangjia1:"根據超級雲腦大數據籌碼模型的結果,該股莊家中長期籌碼成本價格為",zhuangjia2:"短期資金成本價格為",zhuangjia3:"該股籌碼集中,",zhuangjia4:"該股籌碼較為集中,",zhuangjia5:"该股筹码较为分散,",zhuangjia6:"該股籌碼較為分散,",zhuangjia7:"當日籌碼成本價格為",zhibiaojieshao:"名額介紹",qingxujiazhi:"情緒價值",qingxujiazhi1:"根據超級雲腦大數據籌碼模型的結果,",qingxujiazhi2:"近期獲利籌碼顯著增加,短期獲利了結拋售明顯。",qingxujiazhi3:"近期獲利籌碼顯著增加,股民獲利了結意願不明顯,籌碼穩定性較好。",qingxujiazhi4:"近期獲利籌碼出現減少,短期獲利盤拋售明顯。",qingxujiazhi5:"近期獲利籌碼出現增加,股民獲利了結意願不明顯,籌碼穩定性較好。",qingxujiazhi6:"近期套牢籌碼顯著增加,割肉離場籌碼顯著明顯。",qingxujiazhi7:"近期套牢籌碼顯著增加,股民離場意願不明顯,籌碼被套牢鎖定。",qingxujiazhi8:"近期套牢籌碼出現減少,有新資金入場吸貨和前期套牢籌碼進行攤薄。",qingxujiazhi9:"近期套牢籌碼出現減少,短期獲利了解意願不明顯,多數籌碼呈現觀望狀態。",gongnengshuoming:"功能說明",feitian:"飛天功能",liucaishenlong:"六彩神龍",red:"紅色柱線:獲利籌碼(主力資金)",purple:"紫色柱線:獲利籌碼10日均線",blue:"藍色柱線:套牢籌碼10日均線",yellow:"黃色柱線:浮動籌碼(遊資)",green:"綠色柱線:套牢籌碼(散戶資金)",pink:"粉色柱線:浮動籌碼10日均線",bodongliang:"波動量",gongneng:"波動量指標由紅色的買盤、綠色的賣盤和能量波動線構成。",tebietongzhi:"特別通知",tongzhi1:"尊敬的用戶",tongzhi2:"我們非常高興地通知您,“奪寶利劍”模塊現正開放限時體驗!在此期間,您將免費體驗這個全新功能,感受其獨特魅力和强大功能。",tongzhi3:"體驗時間",tongzhi4:"開始時間:即日起(2024年8月2日)",tongzhi5:"結束時間:請持續關注後續通知",tongzhi6:"功能亮點",tongzhi7:"深度研究莊家的各種行為,讓莊家的動作無處遁形。祝您使用愉快!",tongzhi8:"搭載全新AI大資料模型,深入探究股價運行背後的盈利邏輯,被譽為“最聰明的AI智慧均線”。",tongzhi9:"祝您使用愉快!",tongzhi10:"弘曆智慧研發團隊",tongzhi11:"我們非常高興地通知您,AI預測大模型模塊現正開放限時體驗!在此期間,您將免費體驗這個全新功能,感受其獨特魅力和强大功能。",tongzhi12:"AI預測大模型是一種創新的預測工具,顛覆了傳統股市的預測理念,運用深度學習和先進算法,對歷史資料進行深度挖掘,精准捕捉藏在數據之中的難以察覺的模式和趨勢。 即使面對市場的快速變化,也能迅速調整策略,預測出即將來到的高點和低點。",aiyuce:"根據AI預測大模型估算,",gujia:"股價",stockPricePrediction:"股價預測",timeSpacePrediction:"時空預測",bodongfenxi:"股價波動分析",jinrishangzhanglv:"近日上漲概率",yucejia:"預測價:",zuidijia:"最低價",zuigaojia:"最高價",weilaizhangdiegailv:"未來漲跌概率",ri5:"5日",ri13:"13日",ri21:"21日",lishibodongqujian:"歷史波動區間",shangzhanggailv:"上漲概率",gaodian:"高點",didian:"低點",jiage1:"現價:",jiage2:"賣出價",jiage3:"買回價",jiage4:"預測低一",jiage5:"預測低二",jiage6:"預測高一",jiage7:"預測高二",bt:"AI時空共振",gnjx:"功能簡介",gnjx_nr1:"AI時空共振",gnjx_nr2:",結合了最前沿的AI技術和時空共振理念,其主旨在於通過借鑒和運用時空共振理論的原理,",gnjx_nr3:"精准探索和識別",gnjx_nr4:"出特定情境、環境或過程中的變盤點。是一種具備",gnjx_nr5:"深度預測能力",gnjx_nr6:"的“未來眼”,為股市分析提供了一種全新的視角。",jl:"下一个變盤點是:",jl_1:"距離下下次股市變盤點還有",jl_2:"",wlyc1:"未來預測",wlyc2:",是一個充滿創新與想像力的功能,其核心在於將",wlyc3:"高階數據科學",wlyc4:"和",wlyc5:"AI科技",wlyc6:"相結合,利用經過訓練的AI來找出隱藏在海量數據之中的模式,揭示內在規律,為預測提供強大的技術支持。使我們能夠在變化莫測的世界中抓住",wlyc7:"關鍵機遇",wlyc8:",做出最",wlyc9:"科學決策。",daima:"代碼:",gupiao:"名稱:",up:"漲幅:",now_price:"現價:",searchCode:"請輸入股票名稱/代碼",mostViewed:"瀏覽最多",toLearn:"不知道應該如何使用?點擊學習 >",learn:"學習",toLogin:"去登録",login:"登録",aifindCow:"AI探牛",duanluo:"以AI尖端技術和知識圖譜分析為核心,精確識別市場攻防轉換點,在複雜震盪行情中,去偽存真,識別真正的投資機會。為投資者提供投資新視角,讓投資更加高效穩健。",gujiayuce_red:"紅色:進攻K線,多方展開進攻",gujiayuce_yello:"黃色:防守K線,多空臨界點,最後的防守",gujiayuce_blue:"藍色:推進K線,一直藍一直持有",cyan:"淺藍色:撤退K線,堅決空倉",findcowrope:"牽牛繩:紅色表示上升趨勢,綠色表示下降趨勢",title_2:"功能介紹",Klinetext_1:"進攻K線",Klinetext_2:"防守K線",Klinetext_3:"推進K線",Klinetext_4:"撤退K線",Klinetext_5:"龍線",Klinetext_6:"蟲線",FCX:"牽牛繩",overText_1:"“AI探牛”為付費功能,可用市場與您的弘曆軟體雲版靜態一致! 敬請知悉!",tiaoguo:"跳過",xiayiye:"下一頁",shangyiye:"上一頁",kaishitiyan:"開始體驗",overText_2:"開始時間:",overText_3:"結束時間:",zcw:"支撐位",ylw:"壓力位",cnxs:"猜你想搜",searchName:"前往搜索所持股票",dqcb:"短期成本",zcqcb:"中長期成本",new_yali7:"支撐強度較弱",new_yali8:"支撐強度一般",new_yali9:"支撐強度較大",new_zhuangjia3:"該股籌碼集中",new_zhuangjia4:"該股籌碼較為集中",new_zhuangjia5:"该股筹码较为分散",new_zhuangjia6:"該股籌碼較為分散",goldCow:"AI金牛",yiGn:"以",AIjianduan:"AI尖端技術",heGn:"和",zhishitupu:"知識圖譜分析",contentGN1:"為核心,精確識別市場攻防轉換點,猶如明燈照亮金牛所在之處,在複雜震蕩行情中,去偽存真,識別真正的投資機會。",GN:"金牛版",contentGN2:"不僅為投資者開闢了全新的投資視野,更讓投資之旅變得穩定且高效,是引領每一位投資者走向成功的快車道。",ndaoxiaoshi:"牛刀小試:洞悉牛股基因,預判股市未來股市之星",danyouxing:"大牛有形:彰顯牛股飆升之姿,把握迅猛上漲的輝煌階段",jinnsongfu:"金牛送福:攜翻倍拉升之威,預示個股將啟壯闊上漲的輝煌篇章",yinbeiliang:"陰倍量、較昨日成交量放大一倍及以上(陰線)",yangbeiliang:"陽倍量:較昨日成交量放大一倍及以上(陽線)",huiyuanzhaunxiang:"弘歷會員專享",yidaoqi:"該功能已到期",fufeizanwuquanxian:"付費功能,暫無許可權",zanwushichangquanxian:"您目前暫無該市場許可權",zanwugaiquanxian:"您暫無該功能許可權",chengjiaoliang:"成交量",jinntitle1:"牛股照妖鏡",jinntitle2:"瘋牛出欄",gupiaonoresult:"暫無數據,請聯繫客服",jinnqibao:"金牛起爆",dunchi:"度牛尺:衡量牛股的標尺。",DNC:"度牛尺",dunqu:"度牛區",aiRadar:"AI雷達",tiangui:"天軌",digui:"地軌",leidagongnengliangdian1:"AI雷達,通過升維分析,將市場數據提升至更高維度,從而能夠跨越空間障礙,為投資者提供全面且深入的投資視角。 它精準地揭示隱藏在複雜市場中的真正投資機會,幫助投資者洞悉市場走勢。同時,AI雷達的降維打擊功能將複雜的市場信息簡化,讓投資者在瞬息萬變的市場環境中迅速抓住關鍵資訊,從而做出明智且及時的投資決策。跨越空間,透視未來,AI雷達無疑是投資者的得力助手。",tianguimiaoshu1:"天地雙軌:共由兩條曲線組成。",tianguimiaoshu2:"上方的蓝色線為天軌,代表著做多的主力機構對價格空間的控制線。",tianguimiaoshu3:"下方的黄色線為地軌,代表著做空的主力機構對價格空間的控制線。",tanbao:"探寶:",tiandishaungxian:"天地雙線:該指標巧妙的融合了時空因素,用新穎的形式體現股價波動的規律,提前提示股價運動的底部前兆和頂部預警。",tancei:"探測:對特定區域和目標的深入分析和識別,旨在識別並確認股價的一級底部、二級底部和三級底部,這些級別反映了股價下跌的不同深和可能的反彈力度。",saoshe:"掃射:在一定範圍內快速搜索和追蹤目標的過程,目的是發現不同強度的加速點。這些加速點在向右掃描、向左掃描和向上掃描時,其強度依次增強。",tanbao1:"探寶",overText_11:"“AI金牛”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",overText_12:"“AI雷達”为付费功能,可用市场与您的弘历软件云版静态一致!敬请知悉!",zhutuqiangshixinhao:"主圖K线",shezhikxian:"k線設置",quxiao:"取消",queding:"确定",aiEmotion:"AI情緒大模型",StockTemperature:"股票溫度"},en:{language:"English",suoxie:"en",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI Prediction Large Model",daoqi:"Treasure Hunt Raiders Service Period",wei:"is:",hotStocks:"Hot Stocks",sousuo:"Please enter the stock name/code",content:"Treasure Hunt Raiders",content_1:'"Tomb Raider" is a',content_2:"highly intelligent",content_3:"stock analysis tool that uses big data, machine learning, and artificial intelligence to mine and interpret the complexities of the stock market to provide",content_4:"precise",content_5:"support and resistance points, fund direction and trend analysis. Tomb Raider, with its precise algorithms and efficient analysis, is quickly becoming",content_6:"an excellent helper for stock investors",content_7:". It allows investors to clearly understand the true meaning of these data, helping investors understand and control the stock market to achieve",content_8:"efficient and intelligent investment management.",global:"Global Index",results:"According to the results of the Super Cloud Brain big data computing engine:",endTerm:"Click to view service term",noTerms:"No permission",shuru:"Please enter the stock name/code",guzhi:"Stock Valuation",yunnaotanmi:"Cloud Brain Exploration",jigoudongxiang:"Institutional Trends",duobaolijian:"Treasure Sword",aidamoxing:"AI Forecast Big Model",feixian:"Flying Line",zhoongxian:"Midline",liuxian:"Streamline",tianxian:"Antenna",maipan:"Buy",maipan1:"Sell",huolichouma:"Profit chips",fudongchouma:"Floating chips",taolaochouma:"Secure the chips",kai:"Open",shou:"Close",gao:"High",di:"Low",liuselp:"Six color compass",gupiaoguzhi:"Stock’s Assessment \nValueValuation",qushi1:"Trend Line 1",qushi2:"Trend Line 2",qushi3:"Trend Line 3",endDateText:"Trial period remaining:",endTianShu:"days",newUsers:"New users can register to get 30 days of usage rights",dangrigujia:"Daily stock price",gupiaodaima:"Stock code",riqi:"date",zhangdieedu:"Price Change",zhangdiebaifenbi:"Price Change Percentage",dangrizijin:"Fund Flow Analysis",dangriduofangzijin:"Fund Flow Analysis",liuru:"Inflowing",liuchu:"Outflow",zhulizijin:"Banker’s Funds",zhulizijin1:"The bullish funds start to prevail.",zhulizijin2:"The bullish funds prevail and keep increasing.",zhulizijin3:"The bullish funds prevail but start to outflow, The main force seems to be washing the plate.",zhulizijin4:"The bullish funds prevail.",zhulizijin5:"The bullish funds still prevail but start to outflow continuously.",zhulizijin6:"The bullish funds prevail and start to inflow again.",zhulizijin7:"The bearish funds start to prevail.",zhulizijin8:"The bearish funds prevail and keep increasing.",zhulizijin9:"The bearish funds prevail and keep inflowing, The main force seems to be smashing the plate.",zhulizijin10:"The bearish funds prevail but start to outflow.",zhulizijin11:"The bearish funds still prevail.",zhulizijin12:"The bearish funds still prevail but start to outflow continuously.",zhulizijin13:"The bearish funds prevail and start to inflow again.",zhulixichou:"Banker’s Chips",zhulixichou1:"Recently, the banker starts to focus on buying in.",zhulixichou2:"Recently, there is no banker focusing on buying in.",zhuangsanduijue:"Banker’s Funds Comparison",zhuangsanduijue1:"The banker's position is greater than that of retail investors at present.",zhuangsanduijue2:"The banker's position is less than that of retail investors at present.",zhuangsanduijue3:" Increase in banker position on the same day.",zhuangsanduijue4:"The banker position of the day decreased.",zhuangsanduijue5:"Increase in daily retail investors.",zhuangsanduijue6:"Reduction in daily retail investors.",anquanjibei:"Indicator Analysis",more:"More",chuyu1:"According to the all-round detection results of the Cloud Diagonastic Six-Color Compass, the stock is currently in",chuyu2:"a security level of",dengji1:"Weak Push, Strong Pressure Zone",dengji2:"Weak Push, Medium Pressure Zone",dengji3:"Weak Push, Weak Pressure Zone",dengji4:"Strong Push, Strong Pressure Zone",dengji5:"Strong Push, Medium Pressure Zone",dengji6:"Strong Push, Weak Pressure Zone",dengji7:"Extremely High Risk",dengji8:"Higher Risk",dengji9:"Medium Risk",dengji10:"Generally Safe",dengji11:"Relatively Safe",dengji12:"Very Safe",yali:"Pressure Support",yali1:"According to the results of the Super Cloud Diagnosis big data computing model",yali2:"The current stock price is",yali3:"The resistance level of the stock is ",yali_contral:"The support level of the stock is ",yali4:"It is a weak resistance which will be broken out under moderate volumn increase ",yali5:"It is a ordinary resistance which will be broken out under obvious volumn increase ",yali6:"It is a strong resistance which will be broken out under large volumn increase ",yali7:"It is a weak support",yali8:"It is a ordinary support",yali9:"It is a strong support",yali10:"It is a weak resistance",yali11:"It is a ordinary resistance",yali12:"It is a strong resistance",yali13:"No permission yet",qushi:"Trend Research and Judgment",qushitext1:"It is in a medium and long term ",qushitext2:"uptrend,",qushitext3:"is in a short-term",qushitext4:"strong trend.",qushitext5:"downtrend,",qushitext6:"weak state.",zhuangjia:"Market Maker Cost",zhuangjia1:"According to the results of the Super Cloud Diagnosis big data computing model The cost of medium and long term chips is ",zhuangjia2:"The cost of short term funds is ",zhuangjia3:"The chips of the stock are intensive obviously,",zhuangjia4:"The chips of the stock are intensive,",zhuangjia5:"The chips of the stock are disperse,",zhuangjia6:"The chips of the stock are disperse obviously,",zhuangjia7:"The cost price of chips on that day is ",zhibiaojieshao:"Indicator Introduction",qingxujiazhi:"Emotional Value",qingxujiazhi1:"According to the results of the Super Cloud Diagnosis big data computing model,",qingxujiazhi2:"The profitable chips increase notably recently and the short term profitable investors are selling their shares.",qingxujiazhi3:"The profitable chips increase notably recently and there is no obvious phenomenon of unloading the profitable shares, which reflects a steady chips control.",qingxujiazhi4:"The profitable chips decrease recently and the short term profitable investors are selling their shares notably.",qingxujiazhi5:"The profitable chips increase notably recently and there is no obvious phenomenon of unloading the profitable shares, which reflects a steady chips control.",qingxujiazhi6:"The locked chips increase recently and the losing investors are unloading their shares notably.",qingxujiazhi7:"The locked chips increase recently and there is no obvious phenomenon of unloading shares, which reflects the chips are locked well.",qingxujiazhi8:"The locked chips decrease recently and there are new funds inflow to dilute the previous locked chips.",qingxujiazhi9:"The locked chips decrease recently;there is no obvious phenomenon of profit taking and most chips are sideways.",gongnengshuoming:"Function Description",feitian:"Flying Sky function",liucaishenlong:"Multi-Colour Dragon",red:"Red Column Line: Profit chips (Main capital)",purple:"Purple Column Line: Profit chips 10-day moving average",blue:"Blue Column Line: Locked-in chips 10-day moving average",yellow:"Yellow Column Line: Floating chips (Speculative capital)",green:"Green Column Line: Locked-in chips (Retail investors’ capital)",pink:"Pink Column Line: Floating chips 10-day moving average",bodongliang:"Volatility Indicator",gongneng:"The volatility indicator consists of red buy orders, green sell orders,and energy fluctuation lines.",tebietongzhi:"Special Announcement",tongzhi1:"Respected Users:",tongzhi2:'We are thrilled to inform you that the "Treasure Sword" module is now available for a limited-time trial! Free Experience:During this period, you will have the opportunity to experience this brand-new feature at no cost. Discover its unique appeal and powerful capabilities.',tongzhi3:"Experience Time",tongzhi4:"Start Time: From now (August 2, 2024)",tongzhi5:"End Time: Please stay tuned for follow-up notices.",tongzhi6:"Feature Highlights",tongzhi7:"Conducts in-depth research on the various behaviors of market manipulators, leaving no place for their actions to hide. Enjoy Your Use:Wishing you a pleasant experience!",tongzhi8:'Equipped with a new AI big data model, it deeply explores the profit logic behind stock price movements, acclaimed as "the smartest AI intelligent moving average."',tongzhi9:"Wish you a pleasant use!",tongzhi10:"Homily Intelligent R&D Team",tongzhi11:"We are thrilled to inform you that the AI Prediction Big Model module is now available for a limited-time trial! Free Experience:During this period, you will have the opportunity to experience this brand-new feature at no cost. Discover its unique appeal and powerful capabilities.",tongzhi12:"AI Prediction Big Model is an innovative forecasting tool that disrupts traditional stock market prediction conceptions. By utilizing deep learning and advanced algorithms, it delves deep into historical data, accurately capturing subtle patterns and trends hidden within the data. Even when facing rapid market changes, it is able to quickly adjust its strategies and predict upcoming highs and lows.",aiyuce:"Calculation based on AI PredictionLarge Model,",gujia:"Stock price",stockPricePrediction:"Stock Price Prediction",timeSpacePrediction:"Time-Space Prediction",bodongfenxi:"Price Fluctuation Analysis",jinrishangzhanglv:"Short-term Rise Probability",yucejia:"Forecast Price:",zuigaojia:"High",zuidijia:"Low",weilaizhangdiegailv:"Future Flctuation Probability",ri5:"5 Days",ri13:"13 Days",ri21:"21 Days",lishibodongqujian:"Historical Range",shangzhanggailv:"Rise Probability",gaodian:"Highs",didian:"Lows",jiage1:"Current Price:",jiage2:"Sell Price",jiage3:"Buy Back Price",jiage4:"Forecast Low One",jiage5:"Forecast Low Two",jiage6:"Forecast High One",jiage7:"Forecast High Two",bt:"AI Space-Time Resonance",gnjx:"Function Overview",gnjx_nr1:"AI Space-Time resonance",gnjx_nr2:" combines cutting-edge AI technology with the concept of Space-Time resonance. Its main purpose is to ",gnjx_nr3:"accurately explore and identify",gnjx_nr4:" turning points in specific situations, environments, or processes by leveraging and applying the principles of Space-Time resonance theory. It is a ",gnjx_nr5:'"future eye" with deep predictive capabilities',gnjx_nr6:", providing a new perspective for stock market analysis.",jl:"The next stock market turning point:",jl_1:"There are ",jl_2:"",wlyc1:"Future prediction",wlyc2:" is a function full of innovation and imagination. Its core lies in combining ",wlyc3:"advanced data science ",wlyc4:"and ",wlyc5:"AI technology",wlyc6:", using trained AI to find patterns hidden in vast amounts of data, revealing underlying rules, and providing strong technical support for predictions. This enables us to ",wlyc7:"seize key opportunities",wlyc8:" in an unpredictable world and make the most ",wlyc9:"scientific decisions.",daima:"Code:",gupiao:"Name:",up:"Rise:",now_price:"Current Price:",searchCode:"Please enter the stock name/code",mostViewed:"Most Viewed",toLearn:"Don’t know how to use it? Click to learn >",learn:"learn",toLogin:"Go to log in",login:"Log in",aifindCow:"AI Exploring Bull Stocks",duanluo:"With cutting-edge AI technology and knowledge graph analysis at its core, it accurately identifies market turning points in terms of offense and defense. In complex and volatile market conditions, it filters out the noise and identifies genuine investment opportunities. This provides investors with a fresh perspective, making investments more efficient and robust.",gujiayuce_red:"Red: Offensive Candlestick, Bulls Launching an Attack",gujiayuce_yello:"Yellow: Defensive Candlestick, Critical Point Between Bulls and Bears, Last Line of Defense",gujiayuce_blue:"Blue: Advancing Candlestick, Hold as Long as Blue",cyan:"Light Blue: Pullback Candlestick, Exit All Positions",findcowrope:"Bull Rope: Red for Uptrend, Green for Downtrend",title_2:"Function Overview",Klinetext_1:"Offensive Candlestick",Klinetext_2:"Defensive Candlestick",Klinetext_3:"Advancing Candlestick",Klinetext_4:"Pullback Candlestick",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"Bull Rope",overText_1:'Kindly be informed."AI Exploring Bull Stocks" is a paid function, the available markets are the same as Homily Software cloud version!',tiaoguo:"Skip",xiayiye:"Next page",shangyiye:"Previous page",kaishitiyan:"Start journey",overText_2:"Start Time: ",overText_3:"End Time: ",zcw:"Support level",ylw:"Resistance level",cnxs:"Guess you want to search",searchName:"Go to search for stocks held",dqcb:"Short term cost",zcqcb:"Mid and Long term costs",new_yali7:"It is a weak support",new_yali8:"It is a ordinary support",new_yali9:"It is a strong support",new_zhuangjia3:"The chips of the stock are intensive obviously",new_zhuangjia4:"The chips of the stock are intensive",new_zhuangjia5:"The chips of the stock are disperse",new_zhuangjia6:"The chips of the stock are disperse obviously",goldCow:"AI Golden Bull",yiGn:"with ",AIjianduan:"AI cutting-edge technology ",heGn:"and ",zhishitupu:"knowledge graph analysis ",contentGN1:"as the core, it accurately identifies the market’s offensive and defensive transition points, just like a beacon lighting up where the golden bulls are. In complex and volatile market conditions, it can eliminate falsehoods and retain true ones, and identify real investment opportunities.",GN:"The Golden Bull Edition",contentGN2:"not only opens up a new investment horizon for investors, but also makes the investment journey stable and efficient, leading every investor on the fast track to success.",ndaoxiaoshi:"Potential Bullish: Insight into the genes of bull stocks and predict the future stock market stars",danyouxing:"Mature Bullish:Highlight the soaring appearance of bull stocks and seize the glorious stage of rapid rise",jinnsongfu:"Excellent Bullish:With the power of doubling, it indicates that individual stocks will start a glorious chapter of magnificent rise",yinbeiliang:"Negative double volume: double or more than yesterday’s trading volume (Yin line)",yangbeiliang:"Positive multiple volume: The trading volume is doubled or more than yesterday’s (Yang line)",huiyuanzhaunxiang:"Exclusive for Homily members",yidaoqi:"This function has expired",fufeizanwuquanxian:"Paid function, no permissions yet",zanwushichangquanxian:"You currently do not have access to this market",zanwugaiquanxian:"You currently do not have permission for this function",chengjiaoliang:"Trading volume",jinntitle1:"Bull Stock Demon Mirror",jinntitle2:"Crazy Bull",gupiaonoresult:"No permission yet, please contact customer service",jinnqibao:"Golden Bull Surge",dunchi:"Bull Ruler: A yardstick for measuring bullish stocks.",DNC:"Bull Ruler",dunqu:"Bull Zone",aiRadar:"The AI radar",tiangui:"Heaven Track",digui:"Earth Track",leidagongnengliangdian1:"The AI radar,through dimensionality elevation analysis, elevates market data to a higher dimension, enabling it to overcome spatial barriers and provide investors with a comprehensive and in-depth investment perspective. It accurately reveals the real investment opportunities hidden in the complex market, helping investors understand market trends. At the same time, the dimensionality reduction strike function of the AI radar simplifies complex market information, allowing investors to quickly grasp key information in the rapidly changing market environment and make wise and timely investment decisions. Crossing space and seeing through the future, the AI radar is undoubtedly a powerful assistant for investors.",tianguimiaoshu1:"Heaven and Earth Double Tracks: Composed of two curves in total.",tianguimiaoshu2:"The upper blue line is the Heaven Track, representing the price space control line of the bullish major institutions.",tianguimiaoshu3:"The lower yellow line is the Earth Track, representing the price space control line of the bearish major institutions.",tanbao:"Treasure Hunting:",tiandishaungxian:"Heaven and Earth Double Tracks: This indicator ingeniously integrates space-time factors, reflecting the laws of stock price fluctuations in a novel form, and giving early warnings of the bottom precursors and top alerts of stock price movements.",tancei:"Detection: It refers to the in-depth analysis and identification of specific areas and targets, aiming to identify and confirm the primary, secondary, and tertiary bottoms of stock prices. These levels reflect different depths of stock price declines and possible rebound strengths.",saoshe:"Scanning: It is the process of quickly searching for and tracking targets within a certain range, with the aim of discovering acceleration points of different intensities. The intensities of these acceleration points increase in sequence when scanning to the right, to the left, and upwards.",tanbao1:"Treasure Hunting",overText_11:'Kindly be informed."AI Golden Bull"is a paid function, the available markets are the same as Homily Software cloud version!',overText_12:'Kindly be informed."The AI radar"is a paid function, the available markets are the same as Homily Software cloud version!',zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"AI Sentiment Analysis Model",StockTemperature:"Stock Temperature",MarketTemperature:"Market Temperature",CurrentStockPopularity:"Current Stock Popularity",StockPopularity:"Stock Popularity",MarketPopularity:"Market Popularity",StockMarketTemperatureTrend:"Stock Market Temperature Trend",TemperatureTrend:"Temperature Trend",StockMarketTemperatureCalendar:"Stock Market Temperature Calendar",TemperatureCalendar:"Temperature Calendar",FunctionOverview:"Function Overview",FeatureHighlights:"Feature Highlights",current1_1:"The current stock temperature is",current1:"in the frenzy zone",current2:"in the overheating range",current3:"in neutral territory",current4:"in the cold range",current5:"in the icy range",current2_1:"The current market temperature is",current6:"indicating a frenzy phase.",current7:"indicating is in an overheated range",current8:"indicating is in a neutral range",current9:"indicating is in a cold range",current10:"indicating is in an icy range",current11:"Current Temperature Trend Explanation",yi:"Mon",er:"Tue",san:"Wed",si:"Thu",wu:"Fri",liu:"Sat",tian:"Sun",WDRL:"When the stock temperature is higher than the market temperature, the calendar background color is purple;When the stock temperature is lower than the market temperature, the calendar background color is blue; When the stock temperature equals the market temperature, the calendar background color is white",ait:"股票温度计",aie:"情绪解码器"},th:{language:"ภาษาไทย",suoxie:"th",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI คาดการณ์อัจฉริยะ",daoqi:"ระยะเวลาบริการของ Treasure Hunt Raiders",wei:"คือ:",hotStocks:"หุ้นที่กำลังมาแรง",sousuo:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",content:"Treasure Hunt Raiders",content_1:'"Treasure Hunt Raiders"เป็นเครื่องมือในการวิเคราะห์หุ้น',content_2:"อัจฉริยะขั้นสูง",content_3:"โดยใช้ Big Data การเรียนรู้ของหุ่นยนต์และเทคโนโลยีปัญญาประดิษฐ์ (AI) เพื่อช่วยวิเคราะห์ความซับซ้อนของตลาดหุ้น สามารถหาแนวรับ-แนวต้านได้",content_4:"อย่างแม่นยำ",content_5:'ทิศทางของกระแสเงินทุน รวมถึงการวิเคราะห์แนวโน้มของหุ้น ซึ่ง"Treasure Hunt Raiders " กำลังกลายเป็น',content_6:"ผู้ช่วยที่ยอดเยี่ยมสำหรับนักลงทุนในตลาดหุ้น",content_7:"และใช้วิธีการวิเคราะห์ที่มีประสิทธิภาพด้วยอัลกอริทึมที่แม่นยำ เพื่อให้นักลงทุนตระหนักรู้ถึงความหมายของข้อมูลหล่านี้อย่างแท้จริง พร้อมทั้งช่วยให้นักลงทุนเข้าใจและเชี่ยวชาญการลงทุนในตลาดหุ้นอย่าง",content_8:"มีประสิทธิผล และสามารถลงทุนในตลาดหุ้นได้อย่างชาญฉลาด",global:"Global Index",results:"ตามผลลัพธ์การประมวลผลของ Big Data จาก Super Cloud:",endTerm:"Click to view service term",noTerms:"No permission",shuru:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",guzhi:"ประเมิณมูลค่าหุ้น",yunnaotanmi:"สำรวจความลับซูเปอร์คลาวด์",jigoudongxiang:"ทิศทางรายใหญ่",duobaolijian:"Treasure Sword",aidamoxing:"AI คาดการณ์อัจฉริยะ ",feixian:"Flying",zhoongxian:"Middle",liuxian:"Stream",tianxian:"Sky",maipan:"แรงซื้อ",maipan1:"แรงขาย",huolichouma:"Profitable chips",fudongchouma:"Floating chips",taolaochouma:"Locked chips",endDateText:"ระยะเวลาทดลองใช้งานเหลือ:",endTianShu:"วัน",newUsers:"ผู้ใช้ใหม่ที่ลงทะเบียนจะได้รับสิทธิ์ใช้งาน 30 วัน",kai:"เปิด",shou:"รับ",gao:"สูง",di:"ต่ำ",liuselp:"วงล้อเข็มทิศ 6 สี",gupiaoguzhi:"ประเมิณมูลค่าหุ้น",qushi1:"เส้นแนวโน้ม 1",qushi2:"เส้นแนวโน้ม 2",qushi3:"เส้นแนวโน้ม 3",dangrigujia:"ราคาหุ้นของวัน",gupiaodaima:"รหัสสินค้า",riqi:"วันที่",zhangdieedu:"วงเงินขึ้น-ลง",zhangdiebaifenbi:"เปอร์เซ็นต์การขึ้นและลง",dangrizijin:"เงินทุนของวัน",dangriduofangzijin:"เงินทุนแรงซื้อของวัน",liuru:"ไหลเข้า",liuchu:"ไหลออก",zhulizijin:"เงินทุนรายใหญ่",zhulizijin1:"ปัจจุบันเงินทุนของแรงซื้อเริ่มเหนือกว่า.",zhulizijin2:"ขณะนี้เงินทุนของแรงซื้อชนะ และเงินทุนแรงซื้อมีการไหลเข้าอย่างต่อเนื่อง.",zhulizijin3:"ขณะนี้เงินทุนของแรงซื้อชนะ แต่ส่งสัญญาณทุนใหญ่เริ่มถอนตัว และดูเหมือนว่ารายใหญ่เขย่าหุ้น.",zhulizijin4:"ขณะนี้เงินทุนของแรงซื้อชนะ.",zhulizijin5:"ขณะนี้เงินทุนของแรงซื้อยังคงชนะ และพบว่าเงินทุนแรงซื้อมีการไหลออกอย่างต่อเนื่อง.",zhulizijin6:"ขณะนี้เงินทุนของแรงซื้อชนะและเงินทุนแรงซื้อจํานวนมากเริ่มไหลเข้าอีกครั้ง.",zhulizijin7:"ขณะนี้เงินทุนของแรงขายเริ่มมากกว่า.",zhulizijin8:"ขณะนี้เงินทุนของแรงขายชนะ และปริมาณแรงขายแนวโน้มเพิ่มขึ้น.",zhulizijin9:"ขณะนี้เงินทุนของแรงขายชนะ และดูเหมือนว่ารายใหญ่ทุบราคา.",zhulizijin10:"ขณะนี้เงินทุนของแรงขายชนะ แต่ส่งสัญญาณเงินทุนแรงขายเริ่มถอนตัว.",zhulizijin11:"ขณะนี้ตลาดหุ้นเงินทุนของแรงขายยังคงชนะ.",zhulizijin12:"ขณะนี้ตลาดหุ้นเงินทุนของแรงขายยังคงชนะ แต่ว่าปริมาณแรงซื้อมีแนวโน้มลดลง.",zhulizijin13:"ขณะนี้เงินทุนของแรงขายชนะ และปริมาณแรงขายมีแนวโน้มเพิ่มขึ้นอีกครั้ง.",zhulixichou:"banker chips",zhulixichou1:"ล่าสุดพบว่ารายใหญ่เก็บของ.",zhulixichou2:"ล่าสุดไม่พบว่ารายใหญ่เก็บของ.",zhuangsanduijue:"การแข่งขันของรายใหญ่และรายย่อย",zhuangsanduijue1:"ในช่วงนี้รายใหญ่ถือหุ้นมากกว่ารายย่อย.",zhuangsanduijue2:"ในช่วงนี้รายใหญ่ถือหุ้นน้อยกว่ารายย่อย.",zhuangsanduijue3:"แต่ในวันนี้การถือหุ้นของรายใหญ่เพิ่มขึ้น.",zhuangsanduijue4:"แต่ในวันนี้การถือหุ้นของรายใหญ่ลดลง.",zhuangsanduijue5:"ขณะที่การถือหุ้นของรายย่อยเพิ่มขึ้น.",zhuangsanduijue6:"ขณะที่การถือหุ้นของรายย่อยลดลง.",anquanjibei:"ระดับความปลอดภัย",more:"เพิ่มเติม",chuyu1:"จากผลลัพธ์ของข้อมูล Super Cloud วงล้อเข็มทิศ 6 สีประเมินว่าปัจจุบันหุ้นตัวนี้อยู่ในเขต",chuyu2:"ระดับความปลอดภัยอยู่ในระดับ",dengji1:"โซนแนวรับอ่อนแอแนวต้านแข็งแกร่ง",dengji2:"โซนแนวรับอ่อนแอแนวต้านปานกลาง",dengji3:"โซนแนวรับอ่อนแอแนวต้านอ่อนแอ",dengji4:"โซนแนวรับแข็งแกร่งแนวต้านแข็งแกร่ง",dengji5:"โซนแนวรับแข็งแกร่งแนวต้านปานกลาง",dengji6:"โซนแนวรับแข็งแกร่งแนวต้านอ่อนแอ",dengji7:"เสี่ยงสูงมาก",dengji8:"ค่อนข้างเสี่ยง",dengji9:"เสี่ยงกลาง",dengji10:"ปลอดภัยปกติ",dengji11:"ปลอดภัย",dengji12:"ปลอดภัยมาก",yali:"แนวรับแนวต้าน",yali1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud",yali2:"ราคาหุ้นล่าสุดคือ",yali3:"แนวต้านของหุ้นอยู่ที่",yali_contral:"ส่วนแนวรับของหุ้นอยู่ที่",yali4:"โดยแนวต้านค่อนข้างอ่อนแอ หากมีการเพิ่มปริมาณการซื้อขาย อาจมีโอกาสที่จะสามารถทะลุต้านได้ ",yali5:"แนวต้านแข็งแกร่งปานกลาง ต้องการปริมาณการซื้อขายจำนวนมากถึงจะสามารถทะลุต้านได้ ",yali6:"โดยแนวต้านค่อนข้างแข็งแกร่ง ต้องมีแรงซื้อจำนวนมาก ถึงจะสามารถทะลุต้านได้ ",yali7:"แนวรับค่อนข้างอ่อน.",yali8:"แนวรับค่อนข้างแข็งแกร่งปานกลาง.",yali9:"ซึ่งแนวรับค่อนข้างแข็งแกร่ง.",yali10:"โดยแนวต้านค่อนข้างอ่อนแอ",yali11:"แนวต้านแข็งแกร่งปานกลาง",yali12:"โดยแนวต้านค่อนข้างแข็งแกร่ง",yali13:"ขณะนี้ยังไม่มีข้อมูล",qushi:"วิเคราะห์แนวโน้ม",qushitext1:"หุ้นตัวนี้ระยะกลางและระยะยาวอยู่ในช่วง",qushitext2:"แนวโน้มขาขึ้น,",qushitext3:"ส่วนระยะสั้นอยู่ใน",qushitext4:"สภาวะแข็งแกร่ง.",qushitext5:"แนวโน้มขาลง,",qushitext6:"สถานะอ่อนแอ.",zhuangjia:"ต้นทุนรายใหญ่",zhuangjia1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud ต้นทุนของรายใหญ่ ในระยะกลางและระยะยาวอยู่ที่",zhuangjia2:"ต้นทุนระยะสั้นอยู่ที่",zhuangjia3:"หุ้นตัวนี้พบมีชิปกระจุกตัว,",zhuangjia4:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจุกตัว,",zhuangjia5:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจายตัว,",zhuangjia6:"หุ้นตัวนี้พบมีชิปกระจายตัว,",zhuangjia7:"ส่วนราคาต้นทุนของวันอยู่ที่",zhibiaojieshao:"การแนะนำอินดิเคเตอร์",qingxujiazhi:"คุณค่าทางอารมณ์",qingxujiazhi1:"จากผลลัพธ์โมเดลชิปของ Big Data Super Cloud ,",qingxujiazhi2:"ช่วงนี้ชิปทำกำไรอย่างเห็นได้ชัด และมีการขายทำกำไรในช่วงระยะสั้นค่อนข้างชัดเจน.",qingxujiazhi3:"ชิปทำกำไรเพิ่มขึ้น การทำกำไรของนักลงทุนนั้นไม่ชัดเจน ความเสถียรของนักลงทุนอยู่ในระดับค่อนข้างดี.",qingxujiazhi4:"ในช่วงนี้ชิปทำกำไรลดลง และมีขายทำกำไรในช่วงระยะสั้นค่อนข้างชัดเจน.",qingxujiazhi5:"ชิปทำกำไรเพิ่มขึ้น การทำกำไรของนักลงทุนนั้นไม่ชัดเจน ความเสถียรของนักลงทุนอยู่ในระดับค่อนข้างดี.",qingxujiazhi6:"ในช่วงนี้ชิปติดดอยเพิ่มขึ้นอย่างชัดเจน นักลงทุนที่ขาดทุนมีแนวโน้มที่จะขายหุ้นออกอย่างชัดเจน.",qingxujiazhi7:"ในช่วงนี้ชิปติดดอยเพิ่มขึ้นอย่างชัดเจน นักลงทุนออกจากตลาดนั้นไม่ชัดเจน มีชิปติดดอยอยู่.",qingxujiazhi8:"ในช่วงนี้ชิปติดดอยเริ่มลดลง มีเงินทุนใหม่เข้ามาและชิปติดดอยเบาบางลง.",qingxujiazhi9:"ชิปติดดอยลดลง ซึ่งการทำกำไรในช่วงระยะสั้นนั้นไม่ชัดเจน และนักลงทุนส่วนใหญ่อยู่ในสถานะที่กำลังรอดูสถานการณ์อยู่.",gongnengshuoming:"คำอธิบายฟังก์ชั่น",feitian:"Flying Sky function",liucaishenlong:"Multi-Colour Dragon",red:"แท่งสีแดง:Profitable chips(เงินทุนของรายใหญ่)",purple:"เส้นสีม่วง:เส้นค่าเฉลี่ย10วันของรายใหญ่",blue:"เส้นสีฟ้า:เส้นค่าเฉลี่ย 10 วันของผู้ติดดอย",yellow:"แท่งเหลือง:Floating chips(รายย่อยเกร็งกำไร)",green:"แท่งสีเขียว:Locked chips(ผู้ติดดอย)",pink:"เส้นสีชมพู:เส้นค่าเฉลี่ย 10 วันของรายย่อยเกร็งกำไร",bodongliang:"Volitility CJ ประกอบด้วย",gongneng:"Volitility CJประกอบด้วย สีแดง คือ แรงซื้อ สีเขียว คือ แรงขาย Volitility CJ Line",tebietongzhi:"ประกาศพิเศษ",tongzhi1:"เรียน ผู้ใช้งานที่เคารพ",tongzhi2:'"คำอธิบายเพิ่มเติม:เรียน ผู้ใช้งานที่เคารพ เรายินดีอย่างยิ่งที่จะแจ้งให้ท่านทราบว่าฟังก์ชัน "Treasure Sword" ในช่วงเวลานี้ได้เปิดให้ทดลองใช้งานแบบจำกัดเวลา!ท่านจะได้สัมผัสกับฟังก์ชันใหม่ฟรี และสามารถรับรู้ถึงเสน่ห์อันเป็นเอกลักษณ์และทรงคุณค่า',tongzhi3:"ระยะเวลาทดลองใช้งาน",tongzhi4:"เวลาเริ่มต้น:ตั้งแต่วันนี้ (02/08/2024)",tongzhi5:"เวลาสิ้นสุด:โปรดติดตามการประกาศอีกครั้ง",tongzhi6:"ไฮไลท์ฟังก์ชัน",tongzhi7:"คือ การศึกษาพฤติกรรมต่าง ๆ ของรายใหญ่อย่างละเอียด โดยทุกการกระทำของรายใหญ่ไม่สามารถปกปิดข้อมูลได้! ขอให้ท่านใช้งานอย่างมีความสุข",tongzhi8:'มาพร้อมกับโมเดล AI Big Dataแบบใหม่ โดยอาศัยการวิเคราะห์ถึงเชิงลึกของตรรกะการทำกำไรเบื้องหลังการเคลื่อนไหวของราคาหุ้น ซึ่งได้รับการยกย่องว่าเป็น "เส้นค่าเฉลี่ย AI อัจฉริยะที่ฉลาดที่สุด"',tongzhi9:"ขอให้ท่านใช้งานอย่างมีความสุข!",tongzhi10:"ทีมวิจัยและพัฒนาอัจฉริยะHomily",tongzhi11:'เรายินดีอย่างยิ่งที่จะแจ้งให้ท่านทราบว่าฟังก์ชัน "AI คาดการณ์อัจฉริยะ" ในช่วงเวลานี้ได้เปิดให้ทดลองใช้งานแบบจำกัดเวลา!ท่านจะได้สัมผัสกับฟังก์ชันใหม่ฟรี และสามารถรับรู้ถึงเสน่ห์อันเป็นเอกลักษณ์และทรงคุณค่า',tongzhi12:"AI คาดการณ์อัจฉริยะถือว่าเป็นเครื่องมือคาดการณ์เชิงนวัตกรรม ที่ได้ลบล้างทฤษฏีการคาดการณ์ตลาดแบบดั้งเดิม โดยใช้วิธีการเรียนรู้เชิงลึกและอัลกอริทึมขั้นสูง เพื่อเจาะลึกข้อมูลในอดีตพร้อมกับการตรวจจับรูปแบบและแนวโน้มที่ซ่อนอยู่ในชุดข้อมูลที่ยากจะตระหนักรู้ได้อย่างแม่นยำ ถึงแม้จะเผชิญกับตลาดที่มีการเปลี่ยนแปลงอย่างรวดเร็วก็สามารถปรับกลยุทธ์ได้ทันที โดยคาดการณ์จุดสูงสุดและจุุดต่ำสุดที่กำลังจะเกิดขึ้น",aiyuce:"จากการประเมินผลของ AI คาดการณ์อัจฉริยะ,",gujia:"ราคาหุ้น",stockPricePrediction:"Stock Price Prediction",timeSpacePrediction:"Time-Space Prediction",bodongfenxi:"การวิเคราะห์ความผันผวนของราคาหุ้น",jinrishangzhanglv:"เพิ่มขึ้นล่าสุด ความน่าจะเป็น",yucejia:"คาดการณ์ราคา",zuigaojia:"ราคาสูงสุด",zuidijia:"ราคาต่ำสุด",weilaizhangdiegailv:"ความน่าจะเป็นการขึ้นหรือลงในอนาคต",ri5:"5 Days",ri13:"13 Days",ri21:"21 Days",lishibodongqujian:"ประวัติความผันผวน โซน",shangzhanggailv:"ความน่าจะเป็นที่เพิ่มขึ้น",gaodian:"Highs",didian:"Lows",jiage1:"ราคาล่าสุด:",jiage2:"ราคาขาย",jiage3:"ราคาซื้อกลับ",jiage4:"คาดการณ์ราคาต่ำ1",jiage5:"คาดการณ์ราคาต่ำ2",jiage6:"คาดการณ์ราคาสูง1 ",jiage7:"คาดการณ์ราคาสูง2",bt:"AIการสั่นพ้องของเวลาและช่องว่าง",gnjx:"คำอธิบายฟังก์ชัน",gnjx_nr1:"การสั่นพ้องของเวลาและช่องว่าง",gnjx_nr2:",ผสมผสานเทคโนโลยี AI ที่ทันสมัยที่สุดเข้ากับทฤษฎีการสั่นพ้องของเวลาและช่องว่าง จุดมุ่งหมายหลักคือการนำทฤษฎีการสั่นพ้องนี้มาใช้ในการวิเคราะห์,",gnjx_nr3:"เพื่อค้นหาและระบุจุดเปลี่ยนสำคัญในตลาด",gnjx_nr4:"หรือกระบวนการทางการลงทุน AIนี้เป็นเสมือน",gnjx_nr5:'"ตาแห่งอนาคต"',gnjx_nr6:"ที่มีความสามารถในการคาดการณ์ที่ลึกซึ้ง เปิดมุมมองใหม่ในการวิเคราะห์ตลาดหุ้น.",jl:"จุดเปลี่ยนทิศทางของตลาดคือ:",jl_1:"เหลืออีก",jl_2:"",wlyc1:"ฟังก์ชันการคาดการณ์อนาคตนี้",wlyc2:",ถือเป็นนวัตกรรมที่เต็มไปด้วยความคิดสร้างสรรค์และจินตนาการ",wlyc3:"โดยมีหลักการคือ การผสานอัลกอริทึม高",wlyc4:"กับ",wlyc6:"ที่ผ่านการพัฒนามาเป็นอย่างดี เพื่อค้นหารูปแบบที่ซ่อนอยู่ในข้อมูลจำนวนมหาศาลให้ออกมาได้อย่างสมบูรณ์แบบ และเปิดเผยกฎเกณฑ์ภายในเพื่อสนับสนุนการคาดการณ์ในอนาคต สามารถช่วยให้นักลงทุนคว้า",wlyc7:"โอกาสสำคัญที่ไม่แน่นอนในตลาด",wlyc8:",และทำการตัดสินใจ",wlyc9:"ได้อย่างแม่นยำและรอบคอบที่สุด.",daima:"รหัสโค้ด:",gupiao:"ชื่อ:",up:"%change:",now_price:"ราคาล่าสุด:",searchCode:"กรุณากรอกชื่อหุ้น/รหัสโค้ด",mostViewed:"ยอดเข้าชมมากที่สุด",toLearn:"หากไม่ทราบวิธีการใช้งาน? คลิกที่นี่เพื่อเรียนรู้เพิ่มเติม >",learn:"เรียนรู้",toLogin:"Go to log in",login:"Log in",aifindCow:"AI สำรวจหุ้นกระทิง",duanluo:"ใช้เทคโนโลยี AIขั้นสูงและการวิเคราะห์ข้อมูลเพื่อระบุจุดเปลี่ยนของตลาดอย่างแม่นยำ ในสภาวะตลาดที่ผันผวนและซับซ้อน เพื่อแยกโอกาสการลงทุนที่แท้จริง มอบมุมมองใหม่ในการลงทุนให้กับนักลงทุน ทำให้การลงทุนมีประสิทธิภาพและมีเสถียรภาพมากยิ่งขึ้น",gujiayuce_red:"สีแดง: แท่งเทียนเชิงรุก ฝ่ายซื้อเริ่มการโจมตี",gujiayuce_yello:"สีเหลือง: แท่งเทียนป้องกัน จุดสำคัญสุดท้ายของการป้องกัน",gujiayuce_blue:"สีน้ำเงิน: แท่งเทียนขับเคลื่อน ถือครองต่อเนื่องตราบใดที่ยังเป็นสีน้ำเงิน",cyan:"สีฟ้าอ่อน: แท่งเทียนถอย ควรขายออกทั้งหมด",findcowrope:"เชือกจูงกระทิง: สีแดงแสดงแนวโน้มขาขึ้น สีเขียวแสดงแนวโน้มขาลง",title_2:"การแนะนำฟังก์ชัน",Klinetext_1:"แท่งเทียนเชิงรุก",Klinetext_2:"แท่งเทียนเชิงรับ",Klinetext_3:"แท่งเทียนขับเคลื่อน",Klinetext_4:"แท่งเทียนถอย",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"เชือกจูงกระทิง",overText_1:'"AI สำรวจหุ้นกระทิง" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',tiaoguo:"ข้าม",xiayiye:"ถัดไป",shangyiye:"ก่อนหน้า",kaishitiyan:"เข้าใช้งาน",overText_2:"เริ่มต้น: ",overText_3:"เวลาสิ้นสุด:",zcw:"ระดับการสนับสนุน",ylw:"ระดับความดัน",cnxs:"เดาว่าคุณต้องการค้นหา",searchName:"ไปที่ค้นหาการถือครองหุ้นของคุณ",dqcb:"ค่าใช้จ่ายระยะสั้น ",zcqcb:"ต้นทุนระยะกลางและระยะยาว ",new_yali7:"แนวรับค่อนข้างอ่อน",new_yali8:"แนวรับค่อนข้างแข็งแกร่งปานกลาง",new_yali9:"ซึ่งแนวรับค่อนข้างแข็งแกร่ง",new_zhuangjia3:"หุ้นตัวนี้พบมีชิปกระจุกตัว",new_zhuangjia4:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจุกตัว",new_zhuangjia5:"หุ้นตัวนี้พบมีชิปค่อนข้างกระจายตัว",new_zhuangjia6:"หุ้นตัวนี้พบมีชิปกระจายตัว",goldCow:"AI กระทิงทอง",yiGn:"ด้วย",AIjianduan:"เทคโนโลยี AI ที่ล้ำสมัย",heGn:"และ",zhishitupu:"การวิเคราะห์กราฟแผนภูมิ",contentGN1:"เป็นแกนหลัก สามารถระบุจุดเปลี่ยนแปลงเชิงรุกและเชิงรับของตลาดได้อย่างแม่นยำ ราวกับเป็นแสงสว่างที่ชี้ทางไปยังจุดที่มีโอกาสลงทุนในสภาวะตลาดที่ซับซ้อนและผันผวน เทคโนโลยีนี้สามารถกำจัดข้อมูลที่ไม่ถูกต้องและรักษาข้อมูลที่แท้จริงไว้ได้ ทำให้สามารถระบุโอกาสการลงทุนที่แท้จริงได้ .",GN:"Golden Bull",contentGN2:'ไม่เพียงแต่เปิดมุมมองการลงทุนใหม่ให้กับนักลงทุน แต่ยังทำให้เส้นทางการลงทุนมีความมั่นคงและมีประสิทธิภาพ นำพานักลงทุนทุกคนไปสู่เส้นทางแห่งความสำเร็จได้อย่างรวดเร็ว".',ndaoxiaoshi:"กระทิงทดลอง: เข้าใจรหัสพันธุกรรมของหุ้นกระทิงและคาดการณ์ดาวรุ่งแห่งตลาดหุ้นในอนาคต",danyouxing:"กระทิงเปล่งประกาย: สะท้อนถึงการพุ่งทะยานของหุ้นกระทิง และคว้าช่วงเวลาแห่งความสำเร็จในช่วงขาขึ้น",jinnsongfu:"กระทิงทองมอบโชค: พร้อมพลังแห่งการเพิ่มขึ้นเท่าตัว เป็นสัญญาณเริ่มต้นของบทใหม่ในความทะยานอย่างยิ่งใหญ่ของหุ้น",yinbeiliang:"Volumeแท่งแดงเท่าตัว: ปริมาณซื้อขายวันนี้เพิ่มขึ้นสองเท่าหรือมากกว่าวันก่อนหน้า (แท่งแดง)",yangbeiliang:"Volumeแท่งเขียวเท่าตัว: ปริมาณซื้อขายวันนี้เพิ่มขึ้นสองเท่าหรือมากกว่าวันก่อนหน้า (แท่งเขียว)",huiyuanzhaunxiang:"สิทธิพิเศษเฉพาะสมาชิก Homily",yidaoqi:"ฟังก์ชันนี้หมดอายุการใช้งานแล้ว",fufeizanwuquanxian:"ฟังก์ชันนี้สำหรับผู้ใช้งานแบบชำระเงิน คุณยังไม่มีสิทธิ์ใช้งาน",zanwushichangquanxian:"ขณะนี้คุณยังไม่มีสิทธิ์เข้าถึงตลาดนี้",zanwugaiquanxian:"ขณะนี้คุณยังไม่มีสิทธิ์ใช้งานฟังก์ชันนี้",chengjiaoliang:"Trading volume",jinntitle1:"Bullish stock Monster-revealing mirror",jinntitle2:"หุ้นกระทิงคลั่ง",gupiaonoresult:"ขณะนี้ยังไม่มีข้อมูล กรุณาติดต่อฝ่ายบริการลูกค้า",jinnqibao:"golden bull boom",dunchi:"ไม้บรรทัดหุ้นกระทิง: มาตรฐานสำหรับวัดหุ้นกระทิง.",DNC:"ไม้บรรทัดวัว",dunqu:"Bull Zone",aiRadar:"The AI radar",tiangui:"Heaven Track",digui:"Earth Track",leidagongnengliangdian1:"The AI radar,through dimensionality elevation analysis, elevates market data to a higher dimension, enabling it to overcome spatial barriers and provide investors with a comprehensive and in-depth investment perspective. It accurately reveals the real investment opportunities hidden in the complex market, helping investors understand market trends. At the same time, the dimensionality reduction strike function of the AI radar simplifies complex market information, allowing investors to quickly grasp key information in the rapidly changing market environment and make wise and timely investment decisions. Crossing space and seeing through the future, the AI radar is undoubtedly a powerful assistant for investors.",tianguimiaoshu1:"Heaven and Earth Double Tracks: Composed of two curves in total.",tianguimiaoshu2:"The upper blue line is the Heaven Track, representing the price space control line of the bullish major institutions.",tianguimiaoshu3:"The lower yellow line is the Earth Track, representing the price space control line of the bearish major institutions.",tanbao:"Treasure Hunting:",tiandishaungxian:"Heaven and Earth Double Tracks: This indicator ingeniously integrates space-time factors, reflecting the laws of stock price fluctuations in a novel form, and giving early warnings of the bottom precursors and top alerts of stock price movements.",tancei:"Detection: It refers to the in-depth analysis and identification of specific areas and targets, aiming to identify and confirm the primary, secondary, and tertiary bottoms of stock prices. These levels reflect different depths of stock price declines and possible rebound strengths.",saoshe:"Scanning: It is the process of quickly searching for and tracking targets within a certain range, with the aim of discovering acceleration points of different intensities. The intensities of these acceleration points increase in sequence when scanning to the right, to the left, and upwards.",tanbao1:"Treasure Hunting",overText_11:'"AI กระทิงทอง" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',overText_12:'"The AI radar" เป็นฟีเจอร์ที่ต้องเสียค่าใช้จ่าย ตลาดที่สามารถใช้งานได้จะตรงกับข้อมูลในเวอร์ชัน Cloud ของซอฟต์แวร์ Homily ของคุณ! กรุณาทราบไว้!',zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"โมเดลอารมณ์ AI",ait:"เทอร์โมมิเตอร์ตลาดหุ้น",aie:"ตัวถอดรหัสอารมณ์"},kr:{language:"한국어",suoxie:"kr",greeting:"Super cloud brain",greeting1:"Treasure Sword",greeting2:"AI 예측 기능",daoqi:"TREASURE HUNTER 서비스 사용 기한",wei:"은",wei_kr:"로",hotStocks:"인기 주식",content:"TREASURE HUNTER",content_1:'"TREASURE HUNTER"는',content_2:"고도로 지능화",content_3:"된 주식 분석 도구로, 빅데이터, 머신러닝 및 인공지능 기술을 활용하여 복잡한 주식 시장을 파악하고 분석하여",content_4:"정확한",content_5:'저항 및 지지점, 자금 흐름, 트렌드 분석을 제공합니다. "TREASURE HUNTER"는 정밀한 알고리즘과 효율적인 분석을 바탕으로',content_6:"주식 투자자들의 서포터가 되어줍니다",content_7:",또한, 투자자들이 데이터의 진정한 의미를 명확히 이해할 수 있도록 하여, 주식 시장을 이해하고 파악하는 것을 서포트하며, 투자자들이",content_8:"효율적이고 스마트한 투자 관리를 실현할 수 있도록 지원합니다。",results:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면:",global:"글로벌 주가 지수",endTerm:"Click to view service term",noTerms:"No permission",shuru:"종목명 또는 코드를 입력하세요",guzhi:"주식 평가",yunnaotanmi:"CLOUD BRAIN",jigoudongxiang:"기관 동향",feixian:"Fly Line",zhoongxian:"Middle Line",liuxian:"Stream Line",tianxian:"Sky Line",maipan:"매수 세력",maipan1:"매도 세력",kai:"시가",shou:"종가",gao:"고가",di:"저가",huolichouma:"수익 자산",fudongchouma:"변동성 자산",taolaochouma:"묶인 자산",liuselp:"리스크 레벨 나침반",gupiaoguzhi:"주식 평가",qushi1:"추세선 1 ",qushi2:"추세선 2",qushi3:"추세선 3",endDateText:"남은 무료 체험 기간:",endTianShu:"일",newUsers:"신규 회원 가입 시 30일간 무료로 체험하실 수 있습니다",dangrigujia:"당일 주가",gupiaodaima:"주식 코드",riqi:"날짜",zhangdieedu:"등락 한도",zhangdiebaifenbi:"등락 비율",dangrizijin:"당일 자금",dangriduofangzijin:"당일 매수 세력 자금",liuru:"유입",liuchu:"유출",zhulizijin:"세력 자금",zhulizijin1:"해당 시장의 매수 자금이 우세를 점하기 시작했습니다。",zhulizijin2:"해당 시장은 매수 자금이 우세하며, 매수 자금이 지속적으로 유입되고 있는 상태입니다。",zhulizijin3:"해당 시장은 매수 자금이 우세하지만, 매수 자금이 철수하려는 조짐을 보이며, 세력이 시장 조정 작업을 하는 것처럼 확인됩니다。",zhulizijin4:"해당 시장은 매수 자금이 우세를 점하고 있습니다。",zhulizijin5:"해당 시장은 매수 자금이 우세하지만, 매수 자금이 지속적으로 유출되고 있는 상태입니다。",zhulizijin6:"해당 시장은 매수 자금이 우세하며, 매수 자금이 다시 유입되고 있는 상태입니다。",zhulizijin7:"해당 시장의 매도 자금이 우세를 점하기 시작했습니다。",zhulizijin8:"해당 시장은 매도 자금이 우세하며, 매도세가 증가하는 추세를 보이는 상태입니다。",zhulizijin9:"해당 시장은 매도 자금이 우세하며, 세력이 개미털기 작업을 하는 것처럼 확인됩니다。",zhulizijin10:"해당 시장은 매도 자금이 우세하지만, 매도 자금이 철수하려는 조짐을 보입니다。",zhulizijin11:"해당 시장은 여전히 매도 자금이 우세합니다。",zhulizijin12:"해당 시장은 여전히 매도 자금이 우세하지만, 매도 자금이 감소하는 추세를 보이는 상태입니다。",zhulizijin13:"해당 시장은 매도 자금이 우세하며, 매도세가 다시 증가하고 있는 상태로 보입니다。",zhulixichou:"세력 매집",zhulixichou1:"최근 세력이 집중적으로 매집하고 있습니다。",zhulixichou2:"최근 세력이 집중적으로 매집한 모습이 없습니다。",zhuangsanduijue:"세력 vs 개인",zhuangsanduijue1:"최근 기관투자자의 주식 보유 비율이 개인투자자의 주식 보유 비율보다 높습니다。",zhuangsanduijue2:"최근 기관투자자의 주식 보유 비율이 개인 투자자의 주식 보유 비율보다 낮습니다。",zhuangsanduijue3:"당일 기관투자자의 주식 보유 비율이 증가했습니다。",zhuangsanduijue4:"당일 기관투자자의 주식 보유 비율이 감소했습니다。",zhuangsanduijue5:"당일 개인투자자의 주식 보유 비율이 증가했습니다 。",zhuangsanduijue6:"당일 개인투자자의 주식 보유 비율이 감소했습니다。",anquanjibei:"Safety 레벨",more:"Safety 레벨",chuyu1:"Super Cloud Brain의 리스크 레벨 나침반의 측정 결과에 따르면, 해당 주식은 현재 에 있으며",chuyu2:"Safety 레벨은 입니다",dengji1:"Safety 레벨은 입니다.",dengji2:"약한 지지와 보통의 저항 구간",dengji3:"약한 지지와 약한 지항 구간",dengji4:"강한 지지와 강한 저항 구간",dengji5:"강한 지지와 보통의 저항 구간",dengji6:"강한 지지와 약한 저항 구간",dengji7:"매우 위험",dengji8:"매우 위험",dengji9:"보통 위험",dengji10:"보통 안전",dengji11:"비교적 안전",dengji12:"매우 안전",yali:"지지와 저항",yali1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면",yali2:"해당 주식의 현재 주가는 이며",yali3:"저항선은 로",yali_contral:"또한 지지선은 로",yali4:"비교적 약한 저항을 가지고 있으며, 천천히 거래량이 증가하면 돌파할 수 있습니다 ",yali5:"보통 수준의 저항을 가지고 있으며, 명확한 거래량 증가가 보여야 돌파할 수 있습니다 ",yali6:"비교적 강한 저항을 가지고 있으며, 대량의 거래량 증가가 있어야 돌파할 수 있습니다 ",yali7:"지지 강도는 상당히 약한 편입니다。",yali8:"지지 강도는 보통 수준입니다。",yali9:"지지 강도는 상당히 강한 편입니다。",yali10:"비교적 약한 저항을 가지고 있으며",yali11:"보통 수준의 저항을 가지고 있으며",yali12:"비교적 강한 저항을 가지고 있으며",yali13:"현재 데이터가 없습니다",qushi:"추세 분석",qushitext1:"해당 주식은 중장기적으로",qushitext2:"상승 추세",qushitext22:"에 있으며,",qushitext3:"단기적으로는",qushitext33:"에 있습니다",qushitext4:"강세 상태。",qushitext5:"하락 추세,",qushitext6:"약세 상태。",zhuangjia:"세력 매집 원가",zhuangjia1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면, 해당 주식의 세력 중장기 평균 매집가는 이며",zhuangjia2:"단기 평균 매집가는 입니다",zhuangjia3:"해당 주식의 자산은 집중되어 있으며,",zhuangjia4:"해당 주식의 자산은 비교적 집중되어 있으며,",zhuangjia5:"해당 주식의 자산은 비교적 분산되어 있으며,",zhuangjia6:"해당 주식의 자산은 분산되어 있으며,",zhuangjia7:"또한 당일 매집가는 입니다",zhibiaojieshao:"지표 소개",qingxujiazhi:"시장 심리",qingxujiazhi1:"SUPER CLOUD BRAIN의 빅데이터 분석 결과에 따르면,",qingxujiazhi2:"최근 수익 자산의 비중이 증가했습니다. 또한 단기 수익 실현을 매도세가 뚜렷해졌으며。",qingxujiazhi3:"최근 수익 자산의 비중이 증가했습니다. 또한 시장 참여자들의 수익 실현 의사는 뚜렷하지 않으며, 자금의 안정성이 비교적 좋은 편입니다。",qingxujiazhi4:"최근 수익 자산의 비중이 감소하고 있습니다. 또한 단기 수익 실현을 위한 매도세가 뚜렷해졌으며。",qingxujiazhi5:"최근 수익 자산의 비중이 증가하고 있습니다. 또한 시장 참여자들의 수익 실현 의사는 뚜렷하지 않으며, 자금의 안정성이 비교적 좋은 편입니다。",qingxujiazhi6:"최근 묶인 자산의 비중이 증가했습니다. 또한 손절매를 통한 매도세가 뚜렷해졌으며。",qingxujiazhi7:"최근 묶인 자산의 비중이 증가했습니다. 또한 시장 참여자들의 시장 이탈 의사는 뚜렷하지 않으며, 자금이 손실로 인해 묶여 있는 상태입니다。",qingxujiazhi8:"최근 묶인 자산의 비중이 감소하고 있습니다. 또한 새로운 자금이 유입되어 매수되며, 기존의 묶인 자금을 분산시키고 있습니다。",qingxujiazhi9:"최근 묶인 자산의 비중이 감소하고 있습니다. 또한 단기 수익 실현을 위한 매도세는 뚜렷하지 않으며, 대부분의 자금은 관망 되고 있는 상태입니다。",gongnengshuoming:"기능 설명",feitian:"Flying Sky",liucaishenlong:"육색신룡",red:"빨간색 캔들: 수익 자산(세력 자금)",purple:"보라색 캔들: 수익 자산 10일 이동평균선",blue:"파란색 캔들: 묶인 자산 10일 이동평균선",yellow:"노란색 캔들: 변동성 자산(투기 자금)",green:"초록색 캔들: 묶인 자산 (개인 투자자 자금)",pink:"분홍색 캔들: 변동성 자산 10일 이동평균선",bodongliang:"3D Deviation",gongneng:"3D Deviation 지표는 빨간 색의 매수 세력, 하늘 색의 매도 세력과 에너지 변동선으로 구성되어 있습니다",tebietongzhi:"중요 공지",tongzhi1:"TREASURE HUNTER를 사용하시는 회원님들께,",tongzhi2:'현재 "TREASURE SWORD" 기능의 기간 한정 체험 이벤트가 진행중임을 알려드립니다 ! TREASURE HUNTER의 새로운 기능 TREASURE SWORD를 무료로 체험하시며, 해당 기능의 독특한 매력과 뛰어난 성능을 느끼실 수 있길 바랍니다.',tongzhi3:"무료 체험 기간",tongzhi4:"시작 시간: 오늘부터 (2024년 8월 2일)",tongzhi5:"종료 시간: 추후 공지를 통해 안내드릴 예정입니다",tongzhi6:"하이라이트",tongzhi7:"투자자들의 다양한 행동 패턴을 분석하고 연구하여, 시장에서의 움직임을 파악합니다. 즐겁게 사용하시길 바랍니다!",tongzhi8:'최신 AI 데이터 모델을 탑재하여 주가 움직임 이면에 있는 수익 구조를 심도 있게 분석하는, "가장 진보된 AI 스마트 이동평균선"이라 할 수 있습니다',tongzhi9:"Wish you a pleasant use!",tongzhi10:"Homily Intelligent R&D Team",tongzhi11:'현재 "AI 예측 기능"의 기간 한정 체험 이벤트가 진행중임을 알려드립니다 ! 해당 기간 동안 새로운 기능의 독특한 매력과 뛰어난 성능을 느끼실 수 있길 바랍니다.',tongzhi12:"AI 예측 기능은 혁신적인 예측 도구로, 전통적인 주식 시장 예측 개념을 새롭게 혁신합니다. 심층 학습과 고급 알고리즘을 활용하여 과거 데이터를 반영함과 동시에, 데이터 속에 숨겨진 미세한 패턴과 트렌드를 정확히 포착합니다. 빠른 시장의 변화 속에도 신속하게 전략을 조정 및 수립하여 미래의 고점과 저점을 예측할 수 있습니다",aiyuce:"AI Prediction Model의 측정 결과에 따르면,",gujia:"주식 가격",stockPricePrediction:"주가 예측",timeSpacePrediction:"시공간 예측",bodongfenxi:"주가 변동 분석",jinrishangzhanglv:"단기 상승 확률",yucejia:"예측가:",zuidijia:"최저가",zuigaojia:"최고가",weilaizhangdiegailv:"단기 등락 확률",ri5:"5일",ri13:"13일",ri21:"21일",lishibodongqujian:"과거 변동 구간",shangzhanggailv:"상승 확률",gaodian:"고점",didian:"저점",jiage1:"현재가:",jiage2:"매도가",jiage3:"매수가",jiage4:"예측 저점 1",jiage5:"예측 저점 2",jiage6:"예측 고점 1",jiage7:"예측 고점 2",aidamoxing:"AI 예측 기능",bt:"예측 고점",gnjx:"예측 고점",gnjx_nr1:"AI 시공간 공명",gnjx_nr2:",은 최첨단 AI 기술과 시공간 공명 이론을 결합한 것으로, 시공간 공명 이론의 원리를 활용하여,",gnjx_nr3:"변동포인트를 정확하게 탐색 및 식별하고",gnjx_nr4:"특정 상황, 환경 또는 과정에서의",gnjx_nr5:"새로운 시각을 제공합니다",gnjx_nr6:"주식 시장 분석에 ",jl:"다음 변동 포인트:",jl_1:"距离下下次股市变盘点还有",jl_2:"",wlyc1:"미래 예측",wlyc2:",기능은",wlyc3:"데이터 과학",wlyc4:"과 ",wlyc5:"AI 기술",wlyc6:"이 결합하여 만들어진 기능으로, 훈련된 AI를 활용해 방대한 데이터 속에 숨겨진 패턴과 규칙을 찾아내어 예측에 강력한 기술적 지원을 제공하는 기능입니다. 이를 통해 사용자는 변화무쌍한 시장에서",wlyc7:"중요한 기회",wlyc8:",를 포착하고 ",wlyc9:"가장 과학적인 결정",wlyc10:"을 내릴 수 있게 됩니다。",daima:"종목 코드:",gupiao:"종목 코드:",up:"상승폭:",now_price:"현재가:",searchCode:"종목명 또는 코드를 입력하세요",mostViewed:"인기 검색어",toLearn:"TREASURE HUNTER 강의 영상 보러가기 >",learn:"강의 보기",toLogin:"Go to log in",login:"Log in",aifindCow:"AI Bull Catcher",duanluo:"첨단 AI 기술과 지식 그래프 분석을 기반으로, 시장의 공격점과 수비점을 정확히 식별합니다. 또한, 복잡한 시장의 변동 속에서 진정한 투자 기회를 포착하여 투자자에게 새로운 투자 관점을 제시하고, 더욱 효율적이고 안정적인 투자 환경을 제공합니다.",gujiayuce_red:"빨간색 캔들: 공격형 캔들,상승세가 공격을 시작했다는 신호",gujiayuce_yello:"노란색 캔들: 수비형 캔들,상승세와 하락세의 분기점,최후의 캔들",gujiayuce_blue:"파란색 캔들: 진행형 캔들,파란 캔들이 유지되면 보유",cyan:"하늘색 캔들: 후퇴형 캔들,매도 포지션 유지",findcowrope:"Bull Rope: 빨간색 선은 상승 추세를 뜻하고, 초록색 선은 하락 추세를 뜻합니다.",title_2:"기능 소개",Klinetext_1:"공격형 캔들",Klinetext_2:"수비형 캔들",Klinetext_3:"진행형 캔들",Klinetext_4:"후퇴형 캔들",Klinetext_5:"Dragon line",Klinetext_6:"Worm line",FCX:"Bull Rope",overText_1:"AI Bull Catcher는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",tiaoguo:"건너뛰다",xiayiye:"다음 페이지",shangyiye:"앞페이지",kaishitiyan:"체험 시작하기",overText_2:"시작 시간: ",overText_3:"종료 시간: ",zcw:"지지선",ylw:"저항선",cnxs:"추천 검색어",searchName:"종목,종목코드 검색",dqcb:"단기 매집",zcqcb:"중장기 매집가",new_yali7:"지지 강도는 상당히 약한 편입니다",new_yali8:"지지 강도는 보통 수준입니다",new_yali9:"지지 강도는 상당히 강한 편입니다",new_zhuangjia3:"해당 주식의 자산은 집중되어 있으며",new_zhuangjia4:"해당 주식의 자산은 비교적 집중되어 있으며",new_zhuangjia5:"해당 주식의 자산은 비교적 분산되어 있으며",new_zhuangjia6:"해당 주식의 자산은 분산되어 있으며",goldCow:"AI Golden Bull",yiGn:"은",AIjianduan:"첨단 AI 기술",heGn:"과",zhishitupu:"지식 그래프 분석",contentGN1:"을 핵심으로 공격과 방어 전환점을 정확히 식별합니다. 이는 마치 금은보화가 있는 곳을 비추는 조명처럼, 복잡한 시장의 변동 속에서 진정한 투자 기회를 포착하게 합니다。",GN:"골드 버전",contentGN2:"은 투자자에게 새로운 투자 시각을 제공할 뿐만 아니라, 안정적이고 효율적인 투자 여정을 만들어 주며, 투자를 성공으로 이끌어 주는 빠른 길을 찾아냅니다。",ndaoxiaoshi:"Potential Bullish: 우량주의 본질을 이해하고, 미래의 우량주를 예측합니다.",danyouxing:"Mature Bullish: 급등하는 우량주의 모습을 포착하고, 급등 중인 종목의 매수 타이밍을 제공합니다.",jinnsongfu:"Fortune Bullsih: 보다 큰 힘으로 상승하는 우량주가 투자자에게 부를 안겨줄 것을 암시합니다.",yinbeiliang:"음배량: 음봉 거래량이 전날의 거래량 보다 두 배 이상 증가함",yangbeiliang:"양배량: 양봉 거래량이 전날의 거래량 보다 두 배 이상 증가함",huiyuanzhaunxiang:"회원 전용",yidaoqi:"서비스 사용 기간이 만료되었습니다.",fufeizanwuquanxian:"유료 서비스, 현재 서비스 사용 권한이 없습니다.",zanwushichangquanxian:"해당 시장 서비스 권한이 없습니다.",zanwugaiquanxian:"해당 서비스 사용 권한이 업습니다.",chengjiaoliang:"Trading volume",jinntitle1:"Bullish stork 탐지경",jinntitle2:"Crazy Bull",gupiaonoresult:"현재 데이터가 없습니다. 고객센터에 문의해 주시기 바랍니다.",jinnqibao:"golden bull boom",dunchi:"Bull Stock: 지표 - 우량주 측정 기준。",DNC:"Bull Stock",dunqu:"Bull Zone",aiRadar:"AI 레이더",tiangui:"하늘 선 궤도",digui:"땅 선 궤도",leidagongnengliangdian1:"AI 레이더는 다차원 분석을 통해 시장 데이터를 더 높은 차원으로 끌어올려 공간적 장벽을 넘어 투자자에게 종합적이고 심층적인 투자 관점을 제공합니다. 또한 복잡한 시장에 숨겨진 진정한 투자 기회를 정확하게 드러내어 투자자가 시장 동향을 파악하는 데 도움을 줍니다. 동시에 AI 레이더의 차원 축소 기능은 복잡한 시장 정보를 간소화하여 투자자가 빠르게 핵심 정보를 포착할 수 있게 하여, 현명하고 적절한 투자 결정을 내릴 수 있게 합니다. 공간과 시간을 넘어 미래를 통찰하는 AI 레이더는 투자자의 확실한 서포터가 되어 줍니다.",tianguimiaoshu1:"하늘 땅 이중 궤도",tianguimiaoshu2:"위쪽의 파란 선은 하늘 선 궤도로, 매수 세력인 기관이 가격 공간을 제어하는 선을 나타냅니다.",tianguimiaoshu3:"아래의 노란 선은 땅 선 궤도로, 매도 세력인 기관이 가격 공간을 제어하는 선을 나타냅니다.",tanbao:"보물 찾기:",tiandishaungxian:"하늘 땅 이중 궤도:이 지표는 시공간 요소를 교묘하게 융합하여 주가 변동의 규칙을 새롭고 독창적인 형태로 나타내며, 주가 변동의 바닥 전조와 정점의 신호를 미리 알려줍니다.",tancei:"탐색: 특정 영역과 목표에 대한 심층 분석 및 식별로, 주가의 1차 바닥, 2차 바닥 및 3차 바닥까지 식별하고 확인하는 것을 목표로 하며, 주가 하락의 다양한 폭과 실현 가능한 반등 강도를 반영합니다.",saoshe:"스캔: 일정 범위 내에서 빠르게 목표를 검색하고 추정하는 과정으로, 다양한 강도의 가속점을 식별하",tanbao1:"보물 찾기",overText_11:"“AI Golden Bull는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",overText_12:"“AI 레이더는 유료 서비스이며, 사용자가 접근 가능한 시장 데이터와 Homily Software 클라우드 버전 서비스가 동일하게 적용되니, 참고하시기 바랍니다!",zhutuqiangshixinhao:"main chart K line",shezhikxian:"candle settings",quxiao:"取消",queding:"确定",aiEmotion:"AI 감정 모델",StockTemperature:"주식 온도"}},a=i(localStorage.getItem("userLanguage")||"cn"),t=e((()=>n[a.value]||n.cn));function o(i){n[i]?(a.value=i,localStorage.setItem("userLanguage",i)):console.error(`Language pack not found: ${i}`)}const u=Object.keys(n);export{u as a,o as c,n as l,t}; diff --git a/dev/static/js/marketTemperature-7871708f.js b/dev/static/js/marketTemperature-3afd7f01.js similarity index 99% rename from dev/static/js/marketTemperature-7871708f.js rename to dev/static/js/marketTemperature-3afd7f01.js index 429ae4e..33ea135 100644 --- a/dev/static/js/marketTemperature-7871708f.js +++ b/dev/static/js/marketTemperature-3afd7f01.js @@ -1 +1 @@ -import{l as t,_ as e,r as i,k as n,a8 as a,b as r,c as o,e as s,d as l,f as h,C as u,F as c,A as d,X as p}from"./index-4cb6f38c.js";import{h as f}from"./moment-6961f857.js";var g={},m={};"undefined"!=typeof window||void 0!==t&&t.__DEV__;var v={},y=2311;var x=function(){return y++};var _="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]);a&&(i.ie=!0,i.version=a[1]);r&&(i.edge=!0,i.version=r[1]);o&&(i.weChat=!0);return{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11)}}(navigator.userAgent),b={},w={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},S={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},M=Object.prototype.toString,I=Array.prototype,A=I.forEach,T=I.filter,C=I.slice,L=I.map,D=I.reduce,P={};function k(t){if(null==t||"object"!=typeof t)return t;var e=t,i=M.call(t);if("[object Array]"===i){e=[];for(var n=0,a=t.length;n3&&(e=at.call(e,1));for(var n=this._$handlers[t],a=n.length,r=0;r4&&(e=at.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],r=a.length,o=0;o=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=ft(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),"silent"!==o)){a.target=n[r];break}}return a}},st.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){pt.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mosueup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||lt.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),st.mixin(pt,ut),st.mixin(pt,ht);var gt=pt,mt={},vt="undefined"==typeof Float32Array?Array:Float32Array;function yt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}mt.create=function(){var t=new vt(6);return yt(t),t},mt.identity=yt,mt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mt.mul=function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=s,t[5]=l,t},mt.translate=function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},mt.rotate=function(t,e,i){var n=e[0],a=e[2],r=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*h,t[1]=-n*h+o*u,t[2]=a*u+s*h,t[3]=-a*h+u*s,t[4]=u*r+h*l,t[5]=u*l-h*r,t},mt.scale=function(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t},mt.invert=function(t,e){var i=e[0],n=e[2],a=e[4],r=e[1],o=e[3],s=e[5],l=i*o-r*n;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*a)*l,t[5]=(r*a-i*s)*l,t):null};var xt=mt,_t=U,bt=xt.identity;function wt(t){return t>5e-5||t<-5e-5}var St=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Mt=St.prototype;Mt.transform=null,Mt.needLocalTransform=function(){return wt(this.rotation)||wt(this.position[0])||wt(this.position[1])||wt(this.scale[0]-1)||wt(this.scale[1]-1)},Mt.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;i||e?(n=n||xt.create(),i?this.getLocalTransform(n):bt(n),e&&(i?xt.mul(n,t.transform,n):xt.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||xt.create(),xt.invert(this.invTransform,n)):n&&bt(n)},Mt.getLocalTransform=function(t){return St.getLocalTransform(this,t)},Mt.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Mt.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var It=[];Mt.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(xt.mul(It,t.invTransform,e),e=It);var i=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=this.position,r=this.scale;wt(i-1)&&(i=Math.sqrt(i)),wt(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(i=-i),e[3]<0&&(n=-n),a[0]=e[4],a[1]=e[5],r[0]=i,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/i)}},Mt.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},Mt.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&_t.applyTransform(i,i,n),i},Mt.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&_t.applyTransform(i,i,n),i},St.getLocalTransform=function(t,e){bt(e=e||[]);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,r=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),xt.scale(e,e,n),a&&xt.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=r[0],e[5]+=r[1],e};var At=St,Tt={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Tt.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Tt.bounceIn(2*t):.5*Tt.bounceOut(2*t-1)+.5}},Ct=Tt;function Lt(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}Lt.prototype={constructor:Lt,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?Ct[n]:n,r="function"==typeof a?a(i):i;return this.fire("frame",r),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Dt=Lt,Pt={},kt=function(){this.head=null,this.tail=null,this._len=0},Ot=kt.prototype;Ot.insert=function(t){var e=new zt(t);return this.insertEntry(e),e},Ot.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Ot.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Ot.len=function(){return this._len},Ot.clear=function(){this.head=this.tail=null,this._len=0};var zt=function(t){this.value=t,this.next,this.prev},Et=function(t){this._list=new kt,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Rt=Et.prototype;Rt.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var r=i.len(),o=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new zt(e),o.key=t,i.insertEntry(o),n[t]=o}return a},Rt.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Rt.clear=function(){this._list.clear(),this._map={}};var Nt=Et,Vt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Bt(t){return(t=Math.round(t))<0?0:t>255?255:t}function Gt(t){return t<0?0:t>1?1:t}function Wt(t){return t.length&&"%"===t.charAt(t.length-1)?Bt(parseFloat(t)/100*255):Bt(parseInt(t,10))}function Ht(t){return t.length&&"%"===t.charAt(t.length-1)?Gt(parseFloat(t)/100):Gt(parseFloat(t))}function Ft(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Zt(t,e,i){return t+(e-t)*i}function Ut(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var qt=new Nt(20),Xt=null;function Yt(t,e){Xt&&jt(Xt,e),Xt=qt.put(t,Xt||e.slice())}function $t(t,e){if(t){e=e||[];var i=qt.get(t);if(i)return jt(e,i);var n,a=(t+="").replace(/ /g,"").toLowerCase();if(a in Vt)return jt(e,Vt[a]),Yt(t,e),e;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(Ut(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),Yt(t,e),e):void Ut(e,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(Ut(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),Yt(t,e),e):void Ut(e,0,0,0,1):void 0;var r=a.indexOf("("),o=a.indexOf(")");if(-1!==r&&o+1===a.length){var s=a.substr(0,r),l=a.substr(r+1,o-(r+1)).split(","),h=1;switch(s){case"rgba":if(4!==l.length)return void Ut(e,0,0,0,1);h=Ht(l.pop());case"rgb":return 3!==l.length?void Ut(e,0,0,0,1):(Ut(e,Wt(l[0]),Wt(l[1]),Wt(l[2]),h),Yt(t,e),e);case"hsla":return 4!==l.length?void Ut(e,0,0,0,1):(l[3]=Ht(l[3]),Kt(l,e),Yt(t,e),e);case"hsl":return 3!==l.length?void Ut(e,0,0,0,1):(Kt(l,e),Yt(t,e),e);default:return}}Ut(e,0,0,0,1)}}function Kt(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ht(t[1]),a=Ht(t[2]),r=a<=.5?a*(n+1):a+n-a*n,o=2*a-r;return Ut(e=e||[],Bt(255*Ft(o,r,i+1/3)),Bt(255*Ft(o,r,i)),Bt(255*Ft(o,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Jt(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=e[a],s=e[r],l=n-a;return i[0]=Bt(Zt(o[0],s[0],l)),i[1]=Bt(Zt(o[1],s[1],l)),i[2]=Bt(Zt(o[2],s[2],l)),i[3]=Gt(Zt(o[3],s[3],l)),i}}var Qt=Jt;function te(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=$t(e[a]),s=$t(e[r]),l=n-a,h=ie([Bt(Zt(o[0],s[0],l)),Bt(Zt(o[1],s[1],l)),Bt(Zt(o[2],s[2],l)),Gt(Zt(o[3],s[3],l))],"rgba");return i?{color:h,leftIndex:a,rightIndex:r,value:n}:h}}var ee=te;function ie(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}Pt.parse=$t,Pt.lift=function(t,e){var i=$t(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return ie(i,4===i.length?"rgba":"rgb")}},Pt.toHex=function(t){var e=$t(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},Pt.fastLerp=Jt,Pt.fastMapToColor=Qt,Pt.lerp=te,Pt.mapToColor=ee,Pt.modifyHSL=function(t,e,i,n){if(t=$t(t))return t=function(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,h=(s+o)/2;if(0===l)e=0,i=0;else{i=h<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+u-d:r===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,h];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=i&&(t[1]=Ht(i)),null!=n&&(t[2]=Ht(n)),ie(Kt(t),"rgba")},Pt.modifyAlpha=function(t,e){if((t=$t(t))&&null!=e)return t[3]=Gt(e),ie(t,"rgba")},Pt.stringify=ie;var ne=Dt,ae=Pt,re=b.isArrayLike,oe=Array.prototype.slice;function se(t,e){return t[e]}function le(t,e,i){t[e]=i}function he(t,e,i){return(e-t)*i+t}function ue(t,e,i){return i>.5?e:t}function ce(t,e,i,n,a){var r=t.length;if(1==a)for(var o=0;oa)t.length=a;else for(var r=n;r=0&&!(m[i]<=e);i--);i=Math.min(i,h-2)}else{for(i=L;ie);i++);i=Math.min(i-1,h-2)}L=i,D=e;var n=m[i+1]-m[i];if(0!==n)if(M=(e-m[i])/n,l)if(A=v[i],I=v[0===i?i:i-1],T=v[i>h-2?h-1:i+1],C=v[i>h-3?h-1:i+2],d)fe(I,A,T,C,M,M*M,M*M*M,o(t,a),g);else{if(p)r=fe(I,A,T,C,M,M*M,M*M*M,P,1),r=ve(P);else{if(f)return ue(A,T,M);r=ge(I,A,T,C,M,M*M,M*M*M)}s(t,a,r)}else if(d)ce(v[i],v[i+1],M,o(t,a),g);else{var r;if(p)ce(v[i],v[i+1],M,P,1),r=ve(P);else{if(f)return ue(v[i],v[i+1],M);r=he(v[i],v[i+1],M)}s(t,a,r)}},ondestroy:i});return e&&"spline"!==e&&(k.easing=e),k}}}var xe=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||se,this._setter=n||le,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};xe.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:me(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t1&&(Ie=function(){for(var t in arguments)console.log(arguments[t])});var Ae=Ie,Te=_e,Ce=Ae,Le=b,De=Le.isString,Pe=Le.isFunction,ke=Le.isObject,Oe=Le.isArrayLike,ze=Le.indexOf,Ee=function(){this.animators=[]};Ee.prototype={constructor:Ee,animate:function(t,e){var i,n=!1,a=this,r=this.__zr;if(t){var o=t.split("."),s=a;n="shape"===o[0];for(var l=0,h=o.length;l0&&this.animate(t,!1).when(null==n?500:n,r).delay(a||0),this}};var Re=x,Ne=ot,Ve=At,Be=Ee,Ge=b,We=function(t){Ve.call(this,t),Ne.call(this,t),Be.call(this,t),this.id=t.id||Re()};We.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Ge.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new Ke(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Ke.create=function(t){return new Ke(t.x,t.y,t.width,t.height)};var Je=Ke,Qe=b,ti=je,ei=Je,ii=function(t){for(var e in t=t||{},ti.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};ii.prototype={constructor:ii,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof ii&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,a=Qe.indexOf(n,t);return a<0||(n.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof ii&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=0;)a++;return a-e}function ri(t,e,i,n,a){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var h=n-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=o}}function oi(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){for(s=n-a;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var h=o;o=a-l,l=a-h}for(o++;o>>1);r(t,e[i+u])>0?o=u+1:l=u}return l}function si(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){for(s=a+1;ls&&(l=s);var h=o;o=a-l,l=a-h}else{for(s=n-a;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);r(t,e[i+u])<0?l=u:o=u+1}return l}function li(t,e){var i,n,a=7,r=0;t.length;var o=[];function s(s){var l=i[s],h=n[s],u=i[s+1],c=n[s+1];n[s]=h+c,s===r-3&&(i[s+1]=i[s+2],n[s+1]=n[s+2]),r--;var d=si(t[u],t,l,h,0,e);l+=d,0!==(h-=d)&&0!==(c=oi(t[l+h-1],t,u,c,c-1,e))&&(h<=c?function(i,n,r,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((a=g)<1&&(a=1),1===n){for(l=0;l=0;l--)t[p+l]=t[d+l];return void(t[c]=o[u])}var f=a;for(;;){var g=0,m=0,v=!1;do{if(e(o[u],t[h])<0){if(t[c--]=t[h--],g++,m=0,0==--n){v=!0;break}}else if(t[c--]=o[u--],m++,g=0,1==--s){v=!0;break}}while((g|m)=0;l--)t[p+l]=t[d+l];if(0===n){v=!0;break}}if(t[c--]=o[u--],1==--s){v=!0;break}if(0!==(m=s-oi(t[h],o,0,s,s-1,e))){for(s-=m,p=(c-=m)+1,d=(u-=m)+1,l=0;l=7||m>=7);if(v)break;f<0&&(f=0),f+=2}(a=f)<1&&(a=1);if(1===s){for(p=(c-=n)+1,d=(h-=n)+1,l=n-1;l>=0;l--)t[p+l]=t[d+l];t[c]=o[u]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l1;){var t=r-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;s(t)}},this.forceMergeRuns=function(){for(;r>1;){var t=r-2;t>0&&n[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((r=ai(t,i,n,e))s&&(l=s),ri(t,i,i+l,i+r,e),r=l}o.pushRun(i,r),o.mergeRuns(),a-=r,i+=r}while(0!==a);o.forceMergeRuns()}}},ui=b,ci=_,di=ni,pi=hi;function fi(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var gi=function(){this._roots=[],this._displayList=[],this._displayListLen=0};gi.prototype={constructor:gi,traverse:function(t,e){for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof di&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:fi};var mi=gi,vi=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],yi=function(t,e){this.extendFrom(t,!1),this.host=e};function xi(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,r=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),t.createLinearGradient(n,r,a,o)}function _i(t,e,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*a+i.y,l*=r),t.createRadialGradient(o,s,0,o,s,l)}for(var bi=yi.prototype={constructor:yi,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=this,a=i&&i.style,r=!a,o=0;o0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?_i:xi)(t,e,i),a=e.colorStops,r=0;r5e3&&($i=0,Yi={}),$i++,Yi[i]=a,a}function tn(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function en(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function nn(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=an(e,i,n,a);for(var o=0,s=r.length;o=r;s++)o-=r;var l=Qi(i);return l>o&&(i="",l=0),o=t-l,n.ellipsis=i,n.ellipsisWidth=l,n.contentWidth=o,n.containerWidth=t,n}function rn(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=Qi(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?on(t,a,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*a/r):0;r=Qi(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function on(t,e,i,n){for(var a=0,r=0,o=t.length;rl)t="",r=[];else if(null!=h)for(var u=an(h-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=r.length;ca&&cn(i,t.substring(a,r)),cn(i,n[2],n[1]),a=Ki.lastIndex}ap)return{lines:[],width:0,height:0};L.textWidth=Qi(L.text,b);var S=x.textWidth,M=null==S||"auto"===S;if("string"==typeof S&&"%"===S.charAt(S.length-1))L.percentWidth=S,h.push(L),S=0;else{if(M){S=L.textWidth;var I=x.textBackgroundColor,A=I&&I.image;A&&(A=Fi.findExistImage(A),Fi.isImageReady(A)&&(S=Math.max(S,A.width*w/A.height)))}var T=_?_[1]+_[3]:0;S+=T;var C=null!=d?d-v:null;null!=C&&Ch&&(i*=h/(o=i+n),n*=h/o),a+r>h&&(a*=h/(o=a+r),r*=h/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),i+r>u&&(i*=u/(o=i+r),r*=u/o),t.moveTo(s+i,l),t.lineTo(s+h-n,l),0!==n&&t.quadraticCurveTo(s+h,l,s+h,l+n),t.lineTo(s+h,l+u-a),0!==a&&t.quadraticCurveTo(s+h,l+u,s+h-a,l+u),t.lineTo(s+r,l+u),0!==r&&t.quadraticCurveTo(s,l+u,s,l+u-r),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)};var pn=b,fn=pn.retrieve2,gn=pn.retrieve3,mn=pn.each,vn=pn.normalizeCssArray,yn=pn.isString,xn=pn.isObject,_n=Ni,bn=dn,wn=Vi,Sn={left:1,right:1,center:1},Mn={top:1,bottom:1,middle:1};function In(t){if(t){t.font=_n.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Sn[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||Mn[i]?i:"top",t.textPadding&&(t.textPadding=vn(t.textPadding))}}function An(t,e,i,n,a){if(i&&e.textRotation){var r=e.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function Tn(t,e,i,n,a,r,o,s){var l=n.rich[i.styleName]||{},h=i.textVerticalAlign,u=r+a/2;"top"===h?u=r+i.height/2:"bottom"===h&&(u=r+a-i.height/2),!i.isLineHolder&&Cn(l)&&Ln(t,e,l,"right"===s?o-i.width:"center"===s?o-i.width/2:o,u-i.height/2,i.width,i.height);var c=i.textPadding;c&&(o=Rn(o,s,c),u-=i.height/2-c[2]-i.textHeight/2),kn(e,"shadowBlur",gn(l.textShadowBlur,n.textShadowBlur,0)),kn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),kn(e,"shadowOffsetX",gn(l.textShadowOffsetX,n.textShadowOffsetX,0)),kn(e,"shadowOffsetY",gn(l.textShadowOffsetY,n.textShadowOffsetY,0)),kn(e,"textAlign",s),kn(e,"textBaseline","middle"),kn(e,"font",i.font||_n.DEFAULT_FONT);var d=On(l.textStroke||n.textStroke,f),p=zn(l.textFill||n.textFill),f=fn(l.textStrokeWidth,n.textStrokeWidth);d&&(kn(e,"lineWidth",f),kn(e,"strokeStyle",d),e.strokeText(i.text,o,u)),p&&(kn(e,"fillStyle",p),e.fillText(i.text,o,u))}function Cn(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function Ln(t,e,i,n,a,r,o){var s=i.textBackgroundColor,l=i.textBorderWidth,h=i.textBorderColor,u=yn(s);if(kn(e,"shadowBlur",i.textBoxShadowBlur||0),kn(e,"shadowColor",i.textBoxShadowColor||"transparent"),kn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),kn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=i.textBorderRadius;c?bn.buildPath(e,{x:n,y:a,width:r,height:o,r:c}):e.rect(n,a,r,o),e.closePath()}if(u)kn(e,"fillStyle",s),e.fill();else if(xn(s)){var d=s.image;(d=wn.createOrUpdateImage(d,null,t,Dn,s))&&wn.isImageReady(d)&&e.drawImage(d,n,a,r,o)}l&&h&&(kn(e,"lineWidth",l),kn(e,"strokeStyle",h),e.stroke())}function Dn(t,e){e.image=t}function Pn(t,e,i){var n=e.x||0,a=e.y||0,r=e.textAlign,o=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+En(s[0],i.width),a=i.y+En(s[1],i.height);else{var l=_n.adjustTextPositionOnRect(s,i,e.textDistance);n=l.x,a=l.y,r=r||l.textAlign,o=o||l.textVerticalAlign}var h=e.textOffset;h&&(n+=h[0],a+=h[1])}return{baseX:n,baseY:a,textAlign:r,textVerticalAlign:o}}function kn(t,e,i){return t[e]=i,t[e]}function On(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function En(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Rn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}Ri.normalizeTextStyle=function(t){return In(t),mn(t.rich,In),t},Ri.renderText=function(t,e,i,n,a){n.rich?function(t,e,i,n,a){var r=t.__textCotentBlock;r&&!t.__dirty||(r=t.__textCotentBlock=_n.parseRichText(i,n));!function(t,e,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,h=Pn(s,n,a),u=h.baseX,c=h.baseY,d=h.textAlign,p=h.textVerticalAlign;An(e,n,a,u,c);var f=_n.adjustTextX(u,o,d),g=_n.adjustTextY(c,s,p),m=f,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;Cn(n)&&Ln(t,e,n,f,g,o,s);for(var x=0;x=0&&"right"===(_=w[L]).textAlign;)Tn(t,e,_,n,M,v,C,"right"),I-=_.width,C-=_.width,L--;for(T+=(r-(T-m)-(y-C)-I)/2;A<=L;)Tn(t,e,_=w[A],n,M,v,T+_.width/2,"center"),T+=_.width,A++;v+=M}}(t,e,r,n,a)}(t,e,i,n,a):function(t,e,i,n,a){var r=kn(e,"font",n.font||_n.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=_n.parsePlainText(i,r,o,n.truncate));var l=s.outerHeight,h=s.lines,u=s.lineHeight,c=Pn(l,n,a),d=c.baseX,p=c.baseY,f=c.textAlign,g=c.textVerticalAlign;An(e,n,a,d,p);var m=_n.adjustTextY(p,l,g),v=d,y=m,x=Cn(n);if(x||o){var _=_n.getWidth(i,r);o&&(_+=o[1]+o[3]);var b=_n.adjustTextX(d,_,f);x&&Ln(t,e,n,b,m,_,l),o&&(v=Rn(d,f,o),y+=o[0])}kn(e,"textAlign",f||"left"),kn(e,"textBaseline","middle"),kn(e,"shadowBlur",n.textShadowBlur||0),kn(e,"shadowColor",n.textShadowColor||"transparent"),kn(e,"shadowOffsetX",n.textShadowOffsetX||0),kn(e,"shadowOffsetY",n.textShadowOffsetY||0),y+=u/2;var w=n.textStrokeWidth,S=On(n.textStroke,w),M=zn(n.textFill);S&&(kn(e,"lineWidth",w),kn(e,"strokeStyle",S));M&&kn(e,"fillStyle",M);for(var I=0;I=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i=0){if(!o){if((o=this._progressiveLayers[Math.min(l++,4)]).ctx.save(),o.renderScope={},o&&o.__progress>o.__maxProgress){p=o.__nextIdxNotProg-1;continue}s=o.__progress,o.__dirty||(c=s),o.__progress=c+1}v===c&&this._doPaintEl(g,o,!0,o.renderScope)}else this._doPaintEl(g,i,e,r);g.__dirty=!1}}o&&d(o),a&&a.restore(),this._furtherProgressive=!1,ta.each(this._progressiveLayers,(function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)}),this)},_doPaintEl:function(t,e,i,n){var a=e.ctx,r=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!r||r[0]||r[3])&&(!t.culling||!function(t,e,i){return ua.copy(t.getBoundingRect()),t.transform&&ua.applyTransform(t.transform),ca.width=e,ca.height=i,!ua.intersect(ca)}(t,this._width,this._height))){var o=t.__clipPaths;(n.prevClipLayer!==e||function(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i0&&t>n[0]){for(o=0;ot);o++);r=i[n[o]]}if(n.splice(o+1,0,t),i[t]=e,!e.virtual)if(r){var l=r.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else ea("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n=0){o!==p&&(o=p,l++);var f=c.__frame=l-1;if(!r){var g=Math.min(s,4);(r=i[g])||(r=i[g]=new aa("progressive",this,this.dpr)).initContext(),r.__maxProgress=0}r.__dirty=r.__dirty||c.__dirty,r.elCount++,r.__maxProgress=Math.max(r.__maxProgress,f),r.__maxProgress>=r.__progress&&(d.__dirty=!0)}else c.__frame=-1,r&&(r.__nextIdxNotProg=h,s++,r=null)}r&&(s++,r.__nextIdxNotProg=h),this.eachBuiltinLayer((function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)})),i.length=Math.min(s,5),ta.each(i,(function(t,e){a[e]!==t.elCount&&(c.__dirty=!0),t.__dirty&&(t.__progress=0)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?ta.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&ta.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(ta.indexOf(i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);ta.each(this._progressiveLayers,(function(i){i.resize(t,e)})),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new aa("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();var i,n=this.storage.getDisplayList(!0),a={},r=this;function o(t,i){var n,a=r._zlevelList;null==t&&(t=-1/0);for(var o=0;ot&&s=0){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&xa(t,a,e,i)}else xa(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&ya.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e},fa.addEventListener=function(t,e,i){va?t.addEventListener(e,i):t.attachEvent("on"+e,i)},fa.removeEventListener=function(t,e,i){va?t.removeEventListener(e,i):t.detachEvent("on"+e,i)},fa.stop=ba,fa.notLeftMouse=function(t){return t.which>1};var wa=b,Sa=fa.Dispatcher,Ma=Ei,Ia=_e,Aa=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,Sa.call(this)};Aa.prototype={constructor:Aa,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i1&&a&&a.length>1){var o=Da(a)/Da(r);!isFinite(o)&&(o=1),e.pinchScale=o;var s=[((n=a)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},ka=La,Oa=fa,za=Oa.addEventListener,Ea=Oa.removeEventListener,Ra=Oa.normalizeEvent,Na=b,Va=ot,Ba=_,Ga=ka,Wa=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ha=["touchstart","touchend","touchmove"],Fa={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Za=Na.map(Wa,(function(t){var e=t.replace("mouse","pointer");return Fa[e]?e:t}));function Ua(t){return"mousewheel"===t&&Ba.browser.firefox?"DOMMouseScroll":t}function ja(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var r=a.type;e.gestureEvent=r,t.handler.dispatchToElement({target:a.target},r,a.event)}}function qa(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout((function(){t._touching=!1}),700)}var Xa={mousemove:function(t){t=Ra(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=Ra(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,ja(this,t,"start"),Xa.mousemove.call(this,t),Xa.mousedown.call(this,t),qa(this)},touchmove:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,ja(this,t,"change"),Xa.mousemove.call(this,t),qa(this)},touchend:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,ja(this,t,"end"),Xa.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Xa.click.call(this,t),qa(this)},pointerdown:function(t){Xa.mousedown.call(this,t)},pointermove:function(t){Ya(t)||Xa.mousemove.call(this,t)},pointerup:function(t){Xa.mouseup.call(this,t)},pointerout:function(t){Ya(t)||Xa.mouseout.call(this,t)}};function Ya(t){var e=t.pointerType;return"pen"===e||"touch"===e}function $a(t){var e;function i(e,i){Na.each(e,(function(e){za(t,Ua(e),i._handlers[e])}),i)}Va.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new Ga,this._handlers={},e=this,Na.each(Ha,(function(t){e._handlers[t]=Na.bind(Xa[t],e)})),Na.each(Za,(function(t){e._handlers[t]=Na.bind(Xa[t],e)})),Na.each(Wa,(function(t){var i,n;e._handlers[t]=(i=Xa[t],n=e,function(){if(!n._touching)return i.apply(n,arguments)})})),Ba.pointerEventsSupported?i(Za,this):(Ba.touchEventsSupported&&i(Ha,this),i(Wa,this))}Na.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Xa[t]=function(e){e=Ra(this.dom,e),this.trigger(t,e)}}));var Ka=$a.prototype;Ka.dispose=function(){for(var t=Wa.concat(Ha),e=0;e0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]},dr.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(i=t,i.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i},dr.round=function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},dr.asc=function(t){return t.sort((function(t,e){return t-e})),t},dr.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},dr.getPrecisionSafe=function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a},dr.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},dr.getPercentWithPrecision=function(t,e,i){if(!t[e])return 0;var n=pr.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return 0;for(var a=Math.pow(10,i),r=pr.map(t,(function(t){return(isNaN(t)?0:t)/n*a*100})),o=100*a,s=pr.map(r,(function(t){return Math.floor(t)})),l=pr.reduce(s,(function(t,e){return t+e}),0),h=pr.map(r,(function(t,e){return t-s[e]}));lu&&(u=h[d],c=d);++s[c],h[c]=0,++l}return s[e]/a},dr.MAX_SAFE_INTEGER=9007199254740991,dr.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},dr.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4},dr.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=fr.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},dr.quantity=function(t){return Math.pow(10,gr(t))},dr.nice=function(t,e){var i=gr(t),n=Math.pow(10,i),a=t/n;return t=(e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*n,i>=-20?+t.toFixed(i<0?-i:0):t},dr.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n=0};var mr=b,vr=Ni,yr=dr;var xr=mr.normalizeCssArray;function _r(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var br=["a","b","c","d","e","f","g"],wr=function(t,e){return"{"+t+(null==e?"":e)+"}"};var Sr=function(t){return t<10?"0"+t:t};var Mr=vr.truncateText,Ir=vr.getBoundingRect;cr.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},cr.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},cr.normalizeCssArray=xr,cr.encodeHTML=_r,cr.formatTpl=function(t,e,i){mr.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],r=0;r':""},cr.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=yr.parseDate(e),a=i?"UTC":"",r=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),h=n["get"+a+"Minutes"](),u=n["get"+a+"Seconds"]();return t=t.replace("MM",Sr(o)).replace("M",o).replace("yyyy",r).replace("yy",r%100).replace("dd",Sr(s)).replace("d",s).replace("hh",Sr(l)).replace("h",l).replace("mm",Sr(h)).replace("m",h).replace("ss",Sr(u)).replace("s",u)},cr.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},cr.truncateText=Mr,cr.getTextRect=Ir;var Ar={},Tr=b,Cr="___EC__COMPONENT__CONTAINER___";function Lr(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}function Dr(t,e){var i=Tr.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function Pr(t,e,i){return this.superClass.prototype[e].apply(t,i)}Ar.set=function(t,e,i){return t["\0ec_\0"+e]=i},Ar.get=function(t,e){return t["\0ec_\0"+e]},Ar.hasOwn=function(t,e){return t.hasOwnProperty("\0ec_\0"+e)},Ar.parseClassType=Lr,Ar.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return Tr.extend(i.prototype,t),i.extend=this.extend,i.superCall=Dr,i.superApply=Pr,Tr.inherits(i,this),i.superClass=e,i}},Ar.enableClassManagement=function(t,e){e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(function(t){Tr.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=Lr(e)).sub){if(e.sub!==Cr){var n=function(t){var e=i[t.main];e&&e[Cr]||((e=i[t.main]={})[Cr]=!0);return e}(e);n[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var a=i[t];if(a&&a[Cr]&&(a=e?a[e]:null),n&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=Lr(t);var e=[],n=i[t.main];return n&&n[Cr]?Tr.each(n,(function(t,i){i!==Cr&&e.push(t)})):e.push(n),e},t.hasClass=function(t){return t=Lr(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return Tr.each(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=Lr(t);var e=i[t.main];return e&&e[Cr]},t.parseClassType=Lr,e.registerWhenExtend){var n=t.extend;n&&(t.extend=function(e){var i=n.call(this,e);return t.registerClass(i,e.type)})}return t},Ar.setReadOnly=function(t,e){};var kr=b;var Or=function(t){for(var e=0;e=0||n&&kr.indexOf(n,o)<0)){var s=e.getShallow(o);null!=s&&(a[t[r][0]]=s)}}return a}},zr=Or([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Er={getLineStyle:function(t){var e=zr(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Rr=Or([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Nr={getAreaStyle:function(t,e){return Rr(this,t,e)}},Vr={},Br={},Gr={},Wr=U,Hr=Wr.create,Fr=Wr.distSquare,Zr=Math.pow,Ur=Math.sqrt,jr=Ur(3),qr=1/3,Xr=Hr(),Yr=Hr(),$r=Hr();function Kr(t){return t>-1e-8&&t<1e-8}function Jr(t){return t>1e-8||t<-1e-8}function Qr(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function to(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}Gr.cubicAt=Qr,Gr.cubicDerivativeAt=function(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)},Gr.cubicRootAt=function(t,e,i,n,a,r){var o=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-a,u=s*s-3*o*l,c=s*l-9*o*h,d=l*l-3*s*h,p=0;if(Kr(u)&&Kr(c)){if(Kr(s))r[0]=0;else(M=-l/s)>=0&&M<=1&&(r[p++]=M)}else{var f=c*c-4*u*d;if(Kr(f)){var g=c/u,m=-g/2;(M=-s/o+g)>=0&&M<=1&&(r[p++]=M),m>=0&&m<=1&&(r[p++]=m)}else if(f>0){var v=Ur(f),y=u*s+1.5*o*(-c+v),x=u*s+1.5*o*(-c-v);(M=(-s-((y=y<0?-Zr(-y,qr):Zr(y,qr))+(x=x<0?-Zr(-x,qr):Zr(x,qr))))/(3*o))>=0&&M<=1&&(r[p++]=M)}else{var _=(2*u*s-3*o*c)/(2*Ur(u*u*u)),b=Math.acos(_)/3,w=Ur(u),S=Math.cos(b),M=(-s-2*w*S)/(3*o),I=(m=(-s+w*(S+jr*Math.sin(b)))/(3*o),(-s+w*(S-jr*Math.sin(b)))/(3*o));M>=0&&M<=1&&(r[p++]=M),m>=0&&m<=1&&(r[p++]=m),I>=0&&I<=1&&(r[p++]=I)}}return p},Gr.cubicExtrema=function(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Kr(o)){if(Jr(r))(u=-s/r)>=0&&u<=1&&(a[l++]=u)}else{var h=r*r-4*o*s;if(Kr(h))a[0]=-r/(2*o);else if(h>0){var u,c=Ur(h),d=(-r-c)/(2*o);(u=(-r+c)/(2*o))>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l},Gr.cubicSubdivide=function(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,h=(s-o)*a+o,u=(l-s)*a+s,c=(u-h)*a+h;r[0]=t,r[1]=o,r[2]=h,r[3]=c,r[4]=c,r[5]=u,r[6]=l,r[7]=n},Gr.cubicProjectPoint=function(t,e,i,n,a,r,o,s,l,h,u){var c,d,p,f,g,m=.005,v=1/0;Xr[0]=l,Xr[1]=h;for(var y=0;y<1;y+=.05)Yr[0]=Qr(t,i,a,o,y),Yr[1]=Qr(e,n,r,s,y),(f=Fr(Xr,Yr))=0&&f=0&&u<=1&&(a[l++]=u)}else{var h=o*o-4*r*s;if(Kr(h))(u=-o/(2*r))>=0&&u<=1&&(a[l++]=u);else if(h>0){var u,c=Ur(h),d=(-o-c)/(2*r);(u=(-o+c)/(2*r))>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l},Gr.quadraticExtremum=function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},Gr.quadraticSubdivide=function(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i},Gr.quadraticProjectPoint=function(t,e,i,n,a,r,o,s,l){var h,u=.005,c=1/0;Xr[0]=o,Xr[1]=s;for(var d=0;d<1;d+=.05){Yr[0]=to(t,i,a,d),Yr[1]=to(e,n,r,d),(m=Fr(Xr,Yr))=0&&m1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(ho[0]=so(a)*i+t,ho[1]=oo(a)*n+e,uo[0]=so(r)*i+t,uo[1]=oo(r)*n+e,h(s,ho,uo),u(l,ho,uo),(a%=lo)<0&&(a+=lo),(r%=lo)<0&&(r+=lo),a>r&&!o?r+=lo:aa&&(co[0]=so(p)*i+t,co[1]=oo(p)*n+e,h(s,co,s),u(l,co,l))};var go=Gr,mo=U,vo=eo,yo=Je,xo=be.devicePixelRatio,_o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bo=[],wo=[],So=[],Mo=[],Io=Math.min,Ao=Math.max,To=Math.cos,Co=Math.sin,Lo=Math.sqrt,Do=Math.abs,Po="undefined"!=typeof Float32Array,ko=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};ko.prototype={constructor:ko,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Do(1/xo/t)||0,this._uy=Do(1/xo/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(_o.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=Do(t-this._xi)>this._ux||Do(e-this._yi)>this._uy||this._len<5;return this.addData(_o.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(_o.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(_o.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(_o.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=To(a)*i+t,this._yi=Co(a)*i+t,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(_o.R,t,e,i,n),this},closePath:function(){this.addData(_o.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&p<=t||u<0&&p>=t||0==u&&(c>0&&f<=e||c<0&&f>=e);)p+=u*(i=o[n=this._dashIdx]),f+=c*i,this._dashIdx=(n+1)%g,u>0&&pl||c>0&&fh||s[n%2?"moveTo":"lineTo"](u>=0?Io(p,t):Ao(p,t),c>=0?Io(f,e):Ao(f,e));u=p-t,c=f-e,this._dashOffset=-Lo(u*u+c*c)},_dashedBezierTo:function(t,e,i,n,a,r){var o,s,l,h,u,c=this._dashSum,d=this._dashOffset,p=this._lineDash,f=this._ctx,g=this._xi,m=this._yi,v=go.cubicAt,y=0,x=this._dashIdx,_=p.length,b=0;for(d<0&&(d=c+d),d%=c,o=0;o<1;o+=.1)s=v(g,t,i,a,o+.1)-v(g,t,i,a,o),l=v(m,e,n,r,o+.1)-v(m,e,n,r,o),y+=Lo(s*s+l*l);for(;x<_&&!((b+=p[x])>d);x++);for(o=(b-d)/y;o<=1;)h=v(g,t,i,a,o),u=v(m,e,n,r,o),x%2?f.moveTo(h,u):f.lineTo(h,u),o+=p[x]/y,x=(x+1)%_;x%2!=0&&f.lineTo(a,r),s=a-h,l=r-u,this._dashOffset=-Lo(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Po&&(this.data=new Float32Array(t)))},getBoundingRect:function(){bo[0]=bo[1]=So[0]=So[1]=Number.MAX_VALUE,wo[0]=wo[1]=Mo[0]=Mo[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,a=0,r=0;rl||Do(o-a)>h||c===u-1)&&(t.lineTo(r,o),n=r,a=o);break;case _o.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case _o.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case _o.A:var p=s[c++],f=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(p,f),t.rotate(x),t.scale(w,S),t.arc(0,0,b,v,M,1-_),t.scale(1/w,1/S),t.rotate(-x),t.translate(-p,-f)):t.arc(p,f,b,v,M,1-_),1==c&&(e=To(v)*g+p,i=Co(v)*m+f),n=To(M)*g+p,a=Co(M)*m+f;break;case _o.R:e=n=s[c],i=a=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case _o.Z:t.closePath(),n=e,a=i}}}},ko.CMD=_o;var Oo=ko,zo={},Eo={};Eo.containStroke=function(t,e,i,n,a,r,o){if(0===a)return!1;var s=a,l=0;if(o>e+s&&o>n+s||ot+s&&r>i+s||re+c&&u>n+c&&u>r+c&&u>s+c||ut+c&&h>i+c&&h>a+c&&h>o+c||he+h&&l>n+h&&l>r+h||lt+h&&s>i+h&&s>a+h||si||u+ha&&(a+=Zo);var d=Math.atan2(l,s);return d<0&&(d+=Zo),d>=n&&d<=a||d+Zo>=n&&d+Zo<=a};var Uo=function(t,e,i,n,a,r){if(r>e&&r>n||ra?o:0},jo=Oo,qo=Eo,Xo=Ro,Yo=Vo,$o=Go,Ko=Wo.normalizeRadian,Jo=Gr,Qo=Uo,ts=jo.CMD,es=2*Math.PI;var is=[-1,-1,-1],ns=[-1,-1];function as(t,e,i,n,a,r,o,s,l,h){if(h>e&&h>n&&h>r&&h>s||h1&&(u=void 0,u=ns[0],ns[0]=ns[1],ns[1]=u),d=Jo.cubicAt(e,n,r,s,ns[0]),g>1&&(p=Jo.cubicAt(e,n,r,s,ns[1]))),2==g?ve&&s>n&&s>r||s=0&&h<=1){for(var u=0,c=Jo.quadraticAt(e,n,r,h),d=0;di||s<-i)return 0;var l=Math.sqrt(i*i-s*s);is[0]=-l,is[1]=l;var h=Math.abs(n-a);if(h<1e-4)return 0;if(h%es<1e-4){n=0,a=es;var u=r?1:-1;return o>=is[0]+t&&o<=is[1]+t?u:0}if(r){l=n;n=Ko(a),a=Ko(l)}else n=Ko(n),a=Ko(a);n>a&&(a+=es);for(var c=0,d=0;d<2;d++){var p=is[d];if(p+t>o){var f=Math.atan2(s,p);u=r?1:-1;f<0&&(f=es+f),(f>=n&&f<=a||f+es>=n&&f+es<=a)&&(f>Math.PI/2&&f<1.5*Math.PI&&(u=-u),c+=u)}}return c}function ss(t,e,i,n,a){for(var r,o,s=0,l=0,h=0,u=0,c=0,d=0;d1&&(i||(s+=Qo(l,h,u,c,n,a))),1==d&&(u=l=t[d],c=h=t[d+1]),p){case ts.M:l=u=t[d++],h=c=t[d++];break;case ts.L:if(i){if(qo.containStroke(l,h,t[d],t[d+1],e,n,a))return!0}else s+=Qo(l,h,t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.C:if(i){if(Xo.containStroke(l,h,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,n,a))return!0}else s+=as(l,h,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.Q:if(i){if(Yo.containStroke(l,h,t[d++],t[d++],t[d],t[d+1],e,n,a))return!0}else s+=rs(l,h,t[d++],t[d++],t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.A:var f=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];t[d++];var _=1-t[d++],b=Math.cos(y)*m+f,w=Math.sin(y)*v+g;d>1?s+=Qo(l,h,b,w,n,a):(u=b,c=w);var S=(n-f)*v/m+f;if(i){if($o.containStroke(f,g,v,y,y+x,_,e,S,a))return!0}else s+=os(f,g,v,y,y+x,_,S,a);l=Math.cos(y+x)*m+f,h=Math.sin(y+x)*v+g;break;case ts.R:u=l=t[d++],c=h=t[d++];b=u+t[d++],w=c+t[d++];if(i){if(qo.containStroke(u,c,b,c,e,n,a)||qo.containStroke(b,c,b,w,e,n,a)||qo.containStroke(b,w,u,w,e,n,a)||qo.containStroke(u,w,u,c,e,n,a))return!0}else s+=Qo(b,c,b,w,n,a),s+=Qo(u,w,u,c,n,a);break;case ts.Z:if(i){if(qo.containStroke(l,h,u,c,e,n,a))return!0}else s+=Qo(l,h,u,c,n,a);l=u,h=c}}return i||(r=h,o=c,Math.abs(r-o)<1e-4)||(s+=Qo(l,h,u,c,n,a)||0),0!==s}zo.contain=function(t,e,i){return ss(t,0,!1,e,i)},zo.containStroke=function(t,e,i,n){return ss(t,e,!0,i,n)};var ls=jn,hs=b,us=Oo,cs=zo,ds=Ai.prototype.getCanvasPattern,ps=Math.abs,fs=new us(!0);function gs(t){ls.call(this,t),this.path=null}gs.prototype={constructor:gs,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i,n=this.style,a=this.path||fs,r=n.hasStroke(),o=n.hasFill(),s=n.fill,l=n.stroke,h=o&&!!s.colorStops,u=r&&!!l.colorStops,c=o&&!!s.image,d=r&&!!l.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,s,i)),u&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,l,i)));h?t.fillStyle=this._fillGradient:c&&(t.fillStyle=ds.call(s,t)),u?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=ds.call(l,t));var p=n.lineDash,f=n.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();a.setScale(m[0],m[1]),this.__dirtyPath||p&&!g&&r?(a.beginPath(t),p&&!g&&(a.setLineDash(p),a.setLineDashOffset(f)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&a.fill(t),p&&g&&(t.setLineDash(p),t.lineDashOffset=f),r&&a.stroke(t),p&&g&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new us},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new us),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var r=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),o>1e-10&&(a.width+=r/o,a.height+=r/o,a.x-=r/o/2,a.y-=r/o/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var o=a.lineWidth,s=a.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(a.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),cs.containStroke(r,o/s,t,e)))return!0}if(a.hasFill())return cs.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ls.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(hs.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ps(t[0]-1)>1e-10&&ps(t[3]-1)>1e-10?Math.sqrt(ps(t[0]*t[3]-t[2]*t[1])):1}},gs.extend=function(t){var e=function(e){gs.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};for(var i in hs.inherits(e,gs),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},hs.inherits(gs,ls);var ms=gs,vs=Oo,ys=U.applyTransform,xs=vs.CMD,_s=[[],[],[]],bs=Math.sqrt,ws=Math.atan2;var Ss=function(t,e){var i,n,a,r,o,s=t.data,l=xs.M,h=xs.C,u=xs.L,c=xs.R,d=xs.A,p=xs.Q;for(a=0,r=0;a1&&(o*=Cs(f),s*=Cs(f));var g=(a===r?-1:1)*Cs((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,m=g*o*p/s,v=g*-s*d/o,y=(t+i)/2+Ds(c)*m-Ls(c)*v,x=(e+n)/2+Ls(c)*m+Ds(c)*v,_=zs([1,0],[(d-m)/o,(p-v)/s]),b=[(d-m)/o,(p-v)/s],w=[(-1*d-m)/o,(-1*p-v)/s],S=zs(b,w);Os(b,w)<=-1&&(S=Ps),Os(b,w)>=1&&(S=0),0===r&&S>0&&(S-=2*Ps),1===r&&S<0&&(S+=2*Ps),u.addData(h,y,x,o,s,_,S,c,r)}function Rs(t,e){var i=function(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===p[0]&&p.shift();for(var f=0;f=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ai-2?i-1:c+1],h=t[c>i-3?i-1:c+2]);var f=d*d,g=d*f;n.push([Qs(s[0],p[0],l[0],h[0],d,f,g),Qs(s[1],p[1],l[1],h[1],d,f,g)])}return n},el=U,il=el.min,nl=el.max,al=el.scale,rl=el.distance,ol=el.add,sl=el.clone,ll=el.sub;var hl=function(t,e,i,n){var a,r,o,s,l=[],h=[],u=[],c=[];if(n){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d=2){if(a&&"spline"!==a){var r=cl(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(i?o:o-1);s++){var l=r[2*s],h=r[2*s+1],u=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===a&&(n=ul(n,i)),t.moveTo(n[0][0],n[0][1]);s=1;for(var c=n.length;s=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=i.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}function Gh(t,e,i,n,a,r){if("function"==typeof a&&(r=a,a=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),h=n.getShallow("animationDelay"+o);"function"==typeof h&&(h=h(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,h||0,l,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function Wh(t,e,i,n,a){Gh(!0,t,e,i,n,a)}function Hh(t,e,i){return e&&!Ul.isArrayLike(e)&&(e=Kl.getLocalTransform(e)),i&&(e=Xl.invert([],e)),Yl.applyTransform([],t,e)}Vr.extendShape=function(t){return $l.extend(t)},Vr.extendPath=function(t,e){return jl.extendFromString(t,e)},Vr.makePath=yh,Vr.makeImage=function(t,e,i){var n=new Jl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(xh(e,a))}}});return n},Vr.mergePath=_h,Vr.resizePath=bh,Vr.subPixelOptimizeLine=function(t){var e=t.shape,i=t.style.lineWidth;return fh(2*e.x1)===fh(2*e.x2)&&(e.x1=e.x2=wh(e.x1,i,!0)),fh(2*e.y1)===fh(2*e.y2)&&(e.y1=e.y2=wh(e.y1,i,!0)),t},Vr.subPixelOptimizeRect=function(t){var e=t.shape,i=t.style.lineWidth,n=e.x,a=e.y,r=e.width,o=e.height;return e.x=wh(e.x,i,!0),e.y=wh(e.y,i,!0),e.width=Math.max(wh(n+r,i,!1)-e.x,0===r?0:1),e.height=Math.max(wh(a+o,i,!1)-e.y,0===o?0:1),t},Vr.subPixelOptimize=wh,Vr.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t.traverse((function(t){"group"!==t.type&&Dh(t,e)})):Dh(t,e),t.on("mouseover",Ph).on("mouseout",kh),t.on("emphasis",Oh).on("normal",zh)},Vr.setLabelStyle=function(t,e,i,n,a,r,o){var s=(a=a||vh).labelFetcher,l=a.labelDataIndex,h=a.labelDimIndex,u=i.getShallow("show"),c=n.getShallow("show"),d=u||c?Ul.retrieve2(s?s.getFormattedLabel(l,"normal",null,h):null,a.defaultText):null,p=u?d:null,f=c?Ul.retrieve2(s?s.getFormattedLabel(l,"emphasis",null,h):null,d):null;null==p&&null==f||(Eh(t,i,r,a),Eh(e,n,o,a,!0)),t.text=p,e.text=f},Vr.setTextStyle=Eh,Vr.setText=function(t,e,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,Rh(t,e,a,n),t.host&&t.host.dirty&&t.host.dirty(!1)},Vr.getFont=function(t,e){var i=e||e.getModel("textStyle");return[t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" ")},Vr.updateProps=Wh,Vr.initProps=function(t,e,i,n,a){Gh(!1,t,e,i,n,a)},Vr.getTransform=function(t,e){for(var i=Xl.identity([]);t&&t!==e;)Xl.mul(i,t.getLocalTransform(),i),t=t.parent;return i},Vr.applyTransform=Hh,Vr.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return r=Hh(r,e,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},Vr.groupTransition=function(t,e,i,n){if(t&&e){var a,r=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),Wh(t,n,i,t.dataIndex)}}}))}function o(t){var e={position:Yl.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=Ul.extend({},t.shape)),e}},Vr.clipPointsByRect=function(t,e){return Ul.map(t,(function(t){var i=t[0];i=gh(i,e.x),i=mh(i,e.x+e.width);var n=t[1];return n=gh(n,e.y),[i,n=mh(n,e.y+e.height)]}))},Vr.clipRectByRect=function(t,e){var i=gh(t.x,e.x),n=mh(t.x+t.width,e.x+e.width),a=gh(t.y,e.y),r=mh(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}},Vr.createIcon=function(t,e,i){var n=(e=Ul.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),Ul.defaults(n,i),new Jl(e)):yh(t.replace("path://",""),e,i,"center")};var Fh=Ni,Zh=Vr,Uh=["textStyle","color"],jh={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Uh):null)},getFont:function(){return Zh.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Fh.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},qh=Or([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),Xh=b,Yh=_,$h=Ar,Kh=Er,Jh=Nr,Qh=jh,tu={getItemStyle:function(t,e){var i=qh(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},eu=Xh.mixin;function iu(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function nu(t,e,i){for(var n=0;n=i.length&&i.push({option:t})}})),i},ur.makeIdAndName=function(t){var e=ou.createHashMap();uu(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),uu(t,(function(t,i){var n=t.option;ou.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),uu(t,(function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(cu(a)){if(r.name=null!=a.name?a.name+"":n?n.name:"\0-",n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(e.get(r.id))}e.set(r.id,t)}}))},ur.isIdInner=fu,ur.compressBatches=function(t,e){var i={},n={};return a(t||[],i),a(e||[],n,i),[r(i),r(n)];function a(t,e,i){for(var n=0,a=t.length;n=0&&i.push(t)})),i}(o.originalDeps=e(r),t);o.entryCount=s.length,0===o.entryCount&&a.push(r),xu.each(s,(function(t){xu.indexOf(o.predecessor,t)<0&&o.predecessor.push(t);var e=i(n,t);xu.indexOf(e.successor,t)<0&&e.successor.push(r)}))})),{graph:n,noEntryList:a}}(n),s=o.graph,l=o.noEntryList,h={};for(xu.each(t,(function(t){h[t]=!0}));l.length;){var u=l.pop(),c=s[u],d=!!h[u];d&&(a.call(r,u,c.originalDeps.slice()),delete h[u]),xu.each(c.successor,d?f:p)}xu.each(h,(function(){throw new Error("Circle dependency may exists")}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){h[t]=!0,p(t)}}};var wu={},Su=b,Mu=Je,Iu=dr.parsePercent,Au=cr,Tu=Su.each,Cu=["left","right","top","bottom","width","height"],Lu=[["width","left","right"],["height","top","bottom"]];function Du(t,e,i,n,a){var r=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild((function(l,h){var u,c,d=l.position,p=l.getBoundingRect(),f=e.childAt(h+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=p.width+(g?-g.x+p.x:0);(u=r+m)>n||l.newline?(r=0,u=m,o+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);(c=o+v)>a||l.newline?(r+=s+i,o=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=u+i:o=c+i)}))}var Pu=Du,ku=Su.curry(Du,"vertical"),Ou=Su.curry(Du,"horizontal");function zu(t,e,i){i=Au.normalizeCssArray(i||0);var n=e.width,a=e.height,r=Iu(t.left,n),o=Iu(t.top,a),s=Iu(t.right,n),l=Iu(t.bottom,a),h=Iu(t.width,n),u=Iu(t.height,a),c=i[2]+i[0],d=i[1]+i[3],p=t.aspect;switch(isNaN(h)&&(h=n-s-d-r),isNaN(u)&&(u=a-l-c-o),null!=p&&(isNaN(h)&&isNaN(u)&&(p>n/a?h=.8*n:u=.8*a),isNaN(h)&&(h=p*u),isNaN(u)&&(u=h/p)),isNaN(r)&&(r=n-s-h-d),isNaN(o)&&(o=a-l-u-c),t.left||t.right){case"center":r=n/2-h/2-i[3];break;case"right":r=n-h-d}switch(t.top||t.bottom){case"middle":case"center":o=a/2-u/2-i[0];break;case"bottom":o=a-u-c}r=r||0,o=o||0,isNaN(h)&&(h=n-d-r-(s||0)),isNaN(u)&&(u=a-c-o-(l||0));var f=new Mu(r+i[3],o+i[0],h,u);return f.margin=i,f}function Eu(t,e){return e&&t&&Tu(Cu,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}wu.LOCATION_PARAMS=Cu,wu.HV_NAMES=Lu,wu.box=Pu,wu.vbox=ku,wu.hbox=Ou,wu.getAvailableSize=function(t,e,i){var n=e.width,a=e.height,r=Iu(t.x,n),o=Iu(t.y,a),s=Iu(t.x2,n),l=Iu(t.y2,a);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=Au.normalizeCssArray(i||0),{width:Math.max(s-r-i[1]-i[3],0),height:Math.max(l-o-i[0]-i[2],0)}},wu.getLayoutRect=zu,wu.positionElement=function(t,e,i,n,a){var r=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(r||o){var l;if("raw"===s)l="group"===t.type?new Mu(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(l=l.clone()).applyTransform(h)}e=zu(Su.defaults({width:l.width,height:l.height},e),i,n);var u=t.position,c=r?e.x-l.x:0,d=o?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[u[0]+c,u[1]+d])}},wu.sizeCalculable=function(t,e){return null!=t[Lu[e][0]]||null!=t[Lu[e][1]]&&null!=t[Lu[e][2]]},wu.mergeLayoutParam=function(t,e,i){!Su.isObject(i)&&(i={});var n=i.ignoreSize;!Su.isArray(n)&&(n=[n,n]);var a=o(Lu[0],0),r=o(Lu[1],1);function o(i,a){var r={},o=0,h={},u=0;if(Tu(i,(function(e){h[e]=t[e]})),Tu(i,(function(t){s(e,t)&&(r[t]=h[t]=e[t]),l(r,t)&&o++,l(h,t)&&u++})),n[a])return l(e,i[1])?h[i[2]]=null:l(e,i[2])&&(h[i[1]]=null),h;if(2!==u&&o){if(o>=2)return r;for(var c=0;c=0;a--)n=Ru.merge(n,t[a],!0);Bu.set(this,"__defaultOption",n)}return Bu.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Bu.enableClassManagement(Fu,{registerWhenExtend:!0}),Vu.enableSubTypeDefaulter(Fu),Vu.enableTopologicalTravel(Fu,(function(t){var e=[];return Ru.each(Fu.getClassesByMainType(t),(function(t){Hu.apply(e,t.prototype.dependencies||[])})),Ru.map(e,(function(t){return Bu.parseClassType(t).main}))})),Ru.mixin(Fu,Wu);var Zu=Fu,Uu="";"undefined"!=typeof navigator&&(Uu=navigator.platform||"");var ju={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:Uu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},qu=Ar,Xu=qu.set,Yu=qu.get,$u={clearColorPalette:function(){Xu(this,"colorIdx",0),Xu(this,"colorNameMap",{})},getColorFromPalette:function(t,e){var i=Yu(e=e||this,"colorIdx")||0,n=Yu(e,"colorNameMap")||Xu(e,"colorNameMap",{});if(n.hasOwnProperty(t))return n[t];var a=this.get("color",!0)||[];if(a.length){var r=a[i];return t&&(n[t]=r),Xu(e,"colorIdx",(i+1)%a.length),r}}},Ku=b,Ju=ur,Qu=ru,tc=Zu,ec=ju,ic=$u,nc=Ku.each,ac=Ku.filter,rc=Ku.map,oc=Ku.isArray,sc=Ku.indexOf,lc=Ku.isObject,hc=Qu.extend({constructor:hc,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new Qu(i),this._optionManager=n},setOption:function(t,e){Ku.assert(!("\0_ec_inner"in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):uc.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var r=i.getMediaOption(this,this._api);r.length&&nc(r,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];nc(t,(function(t,i){null!=t&&(tc.hasClass(i)?n.push(i):e[i]=null==e[i]?Ku.clone(t):Ku.merge(e[i],t,!0))})),tc.topologicalTravel(n,tc.getAllClassMainTypes(),(function(n,a){var r=Ju.normalizeToArray(t[n]),o=Ju.mappingToExists(i.get(n),r);Ju.makeIdAndName(o),nc(o,(function(t,e){var i=t.option;lc(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,i){return e.type?e.type:i?i.subType:tc.determineSubType(t,e)}(n,i,t.exist))}));var s=function(t,e){Ku.isArray(e)||(e=e?[e]:[]);var i={};return nc(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,a);e[n]=[],i.set(n,[]),nc(o,(function(t,a){var r=t.exist,o=t.option;if(Ku.assert(lc(o)||r,"Empty component definition"),o){var l=tc.getClass(n,t.keyInfo.subType,!0);if(r&&r instanceof l)r.name=t.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var h=Ku.extend({dependentModels:s,componentIndex:a},t.keyInfo);r=new l(o,this,this,h),Ku.extend(r,h),r.init(o,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,e[n][a]=r.option}),this),"series"===n&&(this._seriesIndices=cc(i.get("series")))}),this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=Ku.clone(this.option);return nc(t,(function(e,i){if(tc.hasClass(i)){for(var n=(e=Ju.normalizeToArray(e)).length-1;n>=0;n--)Ju.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t["\0_ec_inner"],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,a=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];if(null!=n)oc(n)||(n=[n]),i=ac(rc(n,(function(t){return o[t]})),(function(t){return!!t}));else if(null!=a){var s=oc(a);i=ac(o,(function(t){return s&&sc(a,t.id)>=0||!s&&t.id===a}))}else if(null!=r){var l=oc(r);i=ac(o,(function(t){return l&&sc(r,t.name)>=0||!l&&t.name===r}))}else i=o.slice();return dc(i,t)},findComponents:function(t){var e,i,n,a,r,o=t.query,s=t.mainType,l=(i=s+"Index",n=s+"Id",a=s+"Name",!(e=o)||null==e[i]&&null==e[n]&&null==e[a]?null:{mainType:s,index:e[i],id:e[n],name:e[a]}),h=l?this.queryComponents(l):this._componentsMap.get(s);return r=dc(h,t),t.filter?ac(r,t.filter):r},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each((function(t,n){nc(t,(function(t,a){e.call(i,n,t,a)}))}));else if(Ku.isString(t))nc(n.get(t),e,i);else if(lc(t)){var a=this.findComponents(t);nc(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return ac(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return ac(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},eachSeries:function(t,e){nc(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){nc(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){nc(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)}),this)},eachRawSeriesByType:function(t,e,i){return nc(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Ku.indexOf(this._seriesIndices,t.componentIndex)<0},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var i=ac(this._componentsMap.get("series"),t,e);this._seriesIndices=cc(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=cc(t.get("series"));var e=[];t.each((function(t,i){e.push(i)})),tc.topologicalTravel(e,tc.getAllClassMainTypes(),(function(e,i){nc(t.get(e),(function(t){t.restoreData()}))}))}});function uc(t){var e,i;this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=Ku.createHashMap({series:[]}),this._seriesIndices=null,e=t,i=this._theme.option,Ku.each(i,(function(t,i){tc.hasClass(i)||("object"==typeof t?e[i]=e[i]?Ku.merge(e[i],t,!1):Ku.clone(t):null==e[i]&&(e[i]=t))})),Ku.merge(t,ec,!1),this.mergeOption(t)}function cc(t){return rc(t,(function(t){return t.componentIndex}))||[]}function dc(t,e){return e.hasOwnProperty("subType")?ac(t,(function(t){return t.subType===e.subType})):t}Ku.mixin(hc,ic);var pc=hc,fc=b,gc=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var mc=function(t){fc.each(gc,(function(e){this[e]=fc.bind(t[e],t)}),this)},vc=b,yc={};function xc(){this._coordinateSystems=[]}xc.prototype={constructor:xc,create:function(t,e){var i=[];vc.each(yc,(function(n,a){var r=n.create(t,e);i=i.concat(r||[])})),this._coordinateSystems=i},update:function(t,e){vc.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},xc.register=function(t,e){yc[t]=e},xc.get=function(t){return yc[t]};var _c=xc,bc=b,wc=ur,Sc=Zu,Mc=bc.each,Ic=bc.clone,Ac=bc.map,Tc=bc.merge,Cc=/^(min|max)?(.+)$/;function Lc(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Dc(t,e,i){var n,a,r=[],o=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},r=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;Mc(l,(function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))}))}return a||(a=t),a.timeline||(a.timeline=s),Mc([a].concat(r).concat(bc.map(o,(function(t){return t.option}))),(function(t){Mc(e,(function(e){e(t,i)}))})),{baseOption:a,timelineOptions:r,mediaDefault:n,mediaList:o}}function Pc(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return bc.each(t,(function(t,e){var i=e.match(Cc);if(i&&i[1]&&i[2]){var r=i[1],o=i[2].toLowerCase();(function(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e})(n[o],t,r)||(a=!1)}})),a}Lc.prototype={constructor:Lc,setOption:function(t,e){t=Ic(t,!0);var i,n,a=this._optionBackup,r=Dc.call(this,t,e,!a);this._newBaseOption=r.baseOption,a?(i=a.baseOption,n=r.baseOption,Mc(n=n||{},(function(t,e){if(null!=t){var n=i[e];if(Sc.hasClass(e)){t=wc.normalizeToArray(t),n=wc.normalizeToArray(n);var a=wc.mappingToExists(n,t);i[e]=Ac(a,(function(t){return t.option&&t.exist?Tc(t.exist,t.option,!0):t.exist||t.option}))}else i[e]=Tc(n,t,!0)}})),r.timelineOptions.length&&(a.timelineOptions=r.timelineOptions),r.mediaList.length&&(a.mediaList=r.mediaList),r.mediaDefault&&(a.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ac(e.timelineOptions,Ic),this._mediaList=Ac(e.mediaList,Ic),this._mediaDefault=Ic(e.mediaDefault),this._currentMediaIndices=[],Ic(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=Ic(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,i,n=this._api.getWidth(),a=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!r.length&&!o)return l;for(var h=0,u=r.length;h":"")+r.join(a?"
":", ")}(a):rd(od(a)),o=n.getName(t),s=n.getItemVisual(t,"color");ed.isObject(s)&&s.colorStops&&(s=(s.colorStops[0]||{}).color);var l=sd(s=s||"transparent"),h=this.name;return"\0-"===h&&(h=""),h=h?rd(h)+(e?": ":"
"):"",e?l+h+r:h+l+(o?rd(o)+": "+r:r)},isAnimationEnabled:function(){if(id.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){hd(this,"data",ud(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var i=this.ecModel,n=pd.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipData:null,getTooltipPosition:null});ed.mixin(vd,cd.dataFormatMixin),ed.mixin(vd,pd);var yd=vd,xd=ni,_d=yu,bd=Ar,wd=function(){this.group=new xd,this.uid=_d.getUID("viewComponent")},Sd=wd.prototype={constructor:wd,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};Sd.updateView=Sd.updateLayout=Sd.updateVisual=function(t,e,i,n){},bd.enableClassExtend(wd),bd.enableClassManagement(wd,{registerWhenExtend:!0});var Md=wd,Id=b,Ad=ni,Td=yu,Cd=Ar,Ld=ur;function Dd(){this.group=new Ad,this.uid=Td.getUID("viewChart")}Dd.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Od(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){Od(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var Pd=Dd.prototype;function kd(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i=0?c():u=setTimeout(c,-a),l=n};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}Ed.throttle=Vd,Ed.createOrUpdate=function(t,e,i,n){var a=t[e];if(a){var r=a[Rd]||a,o=a["\0__throttleType"];if(a[Nd]!==i||o!==n){if(null==i||!n)return t[e]=r;(a=t[e]=Vd(r,i,"debounce"===n))[Rd]=r,a["\0__throttleType"]=n,a[Nd]=i}return a}},Ed.clear=function(t,e){var i=t[e];i&&i[Rd]&&(t[e]=i[Rd])};var Bd=Rl;var Gd=function(t){t.eachRawSeries((function(e){var i=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),n=e.getData(),a=e.get(i)||e.getColorFromPalette(e.get("name"));n.setVisual("color",a),t.isSeriesFiltered(e)||("function"!=typeof a||a instanceof Bd||n.each((function(t){n.setItemVisual(t,"color",a(e.getDataParams(t)))})),n.each((function(t){var e=n.getItemModel(t).get(i,!0);null!=e&&n.setItemVisual(t,"color",e)})))}))},Wd=b,Hd=Vr,Fd=Math.PI;var Zd=function(t,e){e=e||{},Wd.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new Hd.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new Hd.Arc({shape:{startAngle:-Fd/2,endAngle:-Fd/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),a=new Hd.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*Fd/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Fd/2}).delay(300).start("circularInOut");var r=new Hd.Group;return r.add(n),r.add(a),r.add(i),r.resize=function(){var e=t.getWidth()/2,r=t.getHeight()/2;n.setShape({cx:e,cy:r});var o=n.shape.r;a.setShape({x:e-o,y:r-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r},Ud={},jd={};function qd(t){return t}function Xd(t,e,i,n,a){this._old=t,this._new=e,this._oldKeyGetter=i||qd,this._newKeyGetter=n||qd,this.context=a}function Yd(t,e,i,n,a){for(var r=0;r=0?a[s]=new l.constructor(r[s].length):a[s]=r[s]}return n}lp.type="list",lp.hasItemOption=!0,lp.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},lp.getDimensionInfo=function(t){return Kd.clone(this._dimensionInfos[this.getDimension(t)])},lp.initData=function(t,e,i){t=t||[],Kd.isArray(t)&&(t=new op(t)),this._rawData=t;var n,a=this._storage={},r=this.indices=[],o=this.dimensions,s=this._dimensionInfos,l=t.count(),h=[],u={};e=e||[];for(var c=0;c0&&(x+="__ec__"+u[y]),u[y]++),x&&(h[c]=x)}this._nameList=e,this._idList=h},lp.count=function(){return this.indices.length},lp.get=function(t,e,i){var n=this._storage,a=this.indices[e];if(null==a||!n[t])return NaN;var r=n[t][a];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(r>=0&&l>0||r<=0&&l<0)&&(r+=l),s=s.stackedOn}}return r},lp.getValues=function(t,e,i){var n=[];Kd.isArray(t)||(i=e,e=t,t=this.dimensions);for(var a=0,r=t.length;al&&(l=r));return this._extent[t+!!e]=[s,l]}return[1/0,-1/0]},lp.getSum=function(t,e){var i=0;if(this._storage[t])for(var n=0,a=this.count();nt))return r;a=r-1}}return-1},lp.indicesOfNearest=function(t,e,i,n){var a=[];if(!this._storage[t])return a;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,s=0,l=this.count();s=0&&o<0)&&(r=u,o=h,a.length=0),a.push(s))}return a},lp.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},lp.getRawDataItem=function(t){return this._rawData.getItem(this.getRawIndex(t))},lp.getName=function(t){return this._nameList[this.indices[t]]||""},lp.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},lp.each=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]);var a=[],r=(t=Kd.map(hp(t),this.getDimension,this)).length,o=this.indices;n=n||this;for(var s=0;sp-f&&(c=p-f,h.length=c);for(var g=0;g1){n=[];for(var s=0;s=0&&function(t){var e=function(t){for(var e=0;e=e[0]&&t<=e[1]},Vp.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Vp.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Vp.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Vp.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},Vp.prototype.getExtent=function(){return this._extent.slice()},Vp.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Vp.prototype.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;it[1]&&(t[0]=t[1])}Up.intervalScaleNiceTicks=function(t,e,i,n){var a={},r=t[1]-t[0],o=a.interval=jp.nice(r/e,!0);null!=i&&on&&(o=a.interval=n);var s=a.intervalPrecision=Xp(o);return $p(a.niceTickExtent=[qp(Math.ceil(t[0]/o)*o,s),qp(Math.floor(t[1]/o)*o,s)],t),a},Up.getIntervalPrecision=Xp,Up.fixExtent=$p,Up.intervalScaleGetTicks=function(t,e,i,n){var a=[];if(!t)return a;e[0]1e4)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a};var Kp=dr,Jp=cr,Qp=Bp,tf=Up,ef=Kp.round,nf=Qp.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),nf.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=tf.getIntervalPrecision(t)},getTicks:function(){return tf.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;ii&&(r=i);var o=gf.length,s=function(t,e,i,n){for(;i>>1;t[a][1]0})))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=yf.quantity(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var a=[yf.round(If(e[0]/n)*n),yf.round(Mf(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){bf.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Lf(t,e){return Sf(t,wf(e))}mf.each(["contain","normalize"],(function(t){Cf.prototype[t]=function(e){return e=Tf(e)/Tf(this.base),_f[t].call(this,e)}})),Cf.create=function(){return new Cf};var Df=b,Pf=Ni,kf=Zp,Of=af,zf=Bp,Ef=dr;function Rf(t,e){var i,n,a,r=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,h=null!=s,u=t.getExtent();return"ordinal"===r?i=(e.get("data")||[]).length:(n=e.get("boundaryGap"),Df.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Ef.parsePercent(n[0],1),n[1]=Ef.parsePercent(n[1],1),a=u[1]-u[0]||Math.abs(u[0])),null==o&&(o="ordinal"===r?i?0:NaN:u[0]-n[0]*a),null==s&&(s="ordinal"===r?i?i-1:NaN:u[1]+n[1]*a),"dataMin"===o?o=u[0]:"function"==typeof o&&(o=o({min:u[0],max:u[1]})),"dataMax"===s?s=u[1]:"function"==typeof s&&(s=s({min:u[0],max:u[1]})),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(Df.eqNaN(o)||Df.eqNaN(s)),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!h&&(s=0)),[o,s]}function Nf(t,e){return"category"===t.type?t.scale.getLabel(e):e}Rp.getScaleExtent=Rf,Rp.niceScaleExtent=function(t,e){var i=Rf(t,e),n=null!=e.getMin(),a=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n,fixMax:a,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},Rp.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kf(t.getCategories(),[1/0,-1/0]);case"value":return new Of;default:return(zf.getClass(e)||Of).create(t)}},Rp.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},Rp.getAxisLabelInterval=function(t,e,i,n,a){var r,o=0,s=0,l=(n-a)/180*Math.PI,h=1;e.length>40&&(h=Math.floor(e.length/40));for(var u=0;u1?h:(o+1)*h-1},Rp.getFormattedLabels=function(t,e){var i,n=t.scale,a=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(i=e,e=function(t){return i.replace("{value}",null!=t?t:"")},Df.map(a,e)):"function"==typeof e?Df.map(r,(function(i,n){return e(Nf(t,i),n)}),this):a},Rp.getAxisRawValue=Nf;var Vf=b,Bf=Rp;function Gf(t){return Vf.isObject(t)&&null!=t.value?t.value:t+""}var Wf={getFormattedLabels:function(){return Bf.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&Vf.map(this.get("data"),Gf)},getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!Vf.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!Vf.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:Vf.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},Hf={},Ff=b,Zf=Vr,Uf=Je,jf=Zf.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n+r),t.lineTo(i-a,n+r),t.closePath()}}),qf=Zf.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n),t.lineTo(i,n+r),t.lineTo(i-a,n),t.closePath()}}),Xf=Zf.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,r=Math.max(a,e.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,h=Math.asin(s/o),u=Math.cos(h)*o,c=Math.sin(h),d=Math.cos(h),p=.6*o,f=.7*o;t.moveTo(i-u,l+s),t.arc(i,l,o,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-c*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-u+c*p,l+s+d*p,i-u,l+s),t.closePath()}}),Yf=Zf.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,r=e.y,o=n/3*2;t.moveTo(a,r),t.lineTo(a+o,r+i),t.lineTo(a,r+i/4*3),t.lineTo(a-o,r+i),t.lineTo(a,r),t.closePath()}}),$f={line:Zf.Line,rect:Zf.Rect,roundRect:Zf.Rect,square:Zf.Rect,circle:Zf.Circle,diamond:qf,pin:Xf,arrow:Yf,triangle:jf},Kf={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var r=Math.min(i,n);a.x=t,a.y=e,a.width=r,a.height=r},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},Jf={};Ff.each($f,(function(t,e){Jf[e]=new t}));var Qf=Zf.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,a=Jf[n];"none"!==e.symbolType&&(a||(a=Jf[n="rect"]),Kf[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i))}});function tg(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}Hf.createSymbol=function(t,e,i,n,a,r,o){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Zf.makeImage(t.slice(8),new Uf(e,i,n,a),o?"center":"cover"):0===t.indexOf("path://")?Zf.makePath(t.slice(7),{},new Uf(e,i,n,a),o?"center":"cover"):new Qf({shape:{symbolType:t,x:e,y:i,width:n,height:a}})).__isEmptyBrush=l,s.setColor=tg,s.setColor(r),s};var eg=b,ig=Ep,ng=Rp,ag=Wf,rg=ru,og=wp;jd.completeDimensions=og;var sg=Hf;jd.createSymbol=sg.createSymbol,jd.createList=function(t){var e=t.get("data");return ig(e,t,t.ecModel)},jd.createScale=function(t,e){var i=e;e instanceof rg||(i=new rg(e),eg.mixin(i,ag));var n=ng.createScaleByModel(i);return n.setExtent(t[0],t[1]),ng.niceScaleExtent(n,i),n},jd.mixinAxisModelCommonMethods=function(t){eg.mixin(t,ag)};var lg=b,hg=dr,ug=Rp,cg=hg.linearMap;function dg(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}var pg=[0,1],fg=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};fg.prototype={constructor:fg,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return hg.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&dg(i=i.slice(),n.count()),cg(t,pg,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&dg(i=i.slice(),n.count());var a=cg(t,i,pg,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n>1^-(1&s),l=l>>1^-(1&l),a=s+=a,r=l+=r,n.push([s/i,l/i])}return n}var Cg=function(t){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n0})),(function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&Ig.each(n,(function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var r=new Ag(e.name,a,e.cp);return r.properties=e,r}))},Lg=v;Ud.zrender=Lg;var Dg=mt;Ud.matrix=Dg;var Pg=U;Ud.vector=Pg;var kg=b,Og=Pt;Ud.color=Og;var zg=Vr;Ud.graphic=zg;var Eg=dr;Ud.number=Eg;var Rg=cr;Ud.format=Rg;var Ng=Ed;Ng.throttle,Ud.throttle=Ng.throttle;var Vg=jd;Ud.helper=Vg;var Bg=dp;Ud.List=Bg;var Gg=ru;Ud.Model=Gg;var Wg=gg;Ud.Axis=Wg;var Hg=_;Ud.env=Hg;var Fg=Cg;Ud.parseGeoJson=Fg;var Zg={};kg.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){Zg[t]=kg[t]})),Ud.util=Zg,function(t){var e=v,i=b,n=Pt,a=_,r=hi,o=ot,s=pc,l=mc,h=_c,u=kc,c=td,d=Zu,p=yd,f=Md,g=zd,m=Vr,y=ur,x=Ed.throttle,w=Gd,S=Zd,M=i.each,I=d.parseClassType,A={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},T="__flagInMainProcess",C=/^[a-zA-Z0-9_]+$/;function L(t){return function(e,i,n){e=e&&e.toLowerCase(),o.prototype[t].call(this,e,i,n)}}function D(){o.call(this)}function P(t,n,a){a=a||{},"string"==typeof n&&(n=it[n]),this.id,this.group,this._dom=t;var s,u,d=this._zr=e.init(t,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height});function p(t,e){return t.prio-e.prio}this._throttledZrFlush=x(i.bind(d.flush,d),17),(n=i.clone(n))&&c(n,!0),this._theme=n,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h,this._api=(u=(s=this)._coordSysMgr,i.extend(new l(s),{getCoordinateSystems:i.bind(u.getCoordinateSystems,u),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return s._model.getComponent(e.mainType,e.index);t=t.parent}}})),o.call(this),this._messageCenter=new D,this._initEvents(),this.resize=i.bind(this.resize,this),this._pendingActions=[],r(et,p),r(J,p),d.animation.on("frame",this._onframe,this),i.setAsPrimitive(this)}D.prototype.on=L("on"),D.prototype.off=L("off"),D.prototype.one=L("one"),i.mixin(D,o);var k=P.prototype;function O(t,e,i){var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=y.parseFinder(a,e);for(var o=0;o=0&&i.each(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n|=!!i.containPoint(e);else if("seriesModels"===a){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n|=r.containPoint(e,t))}}),this)}),this),!!n},k.getVisual=function(t,e){var i=this._model,n=(t=y.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=a?n.getItemVisual(a,e):n.getVisual(e)},k.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},k.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var z={update:function(t){var e=this._model,i=this._api,r=this._coordSysMgr,o=this._zr;if(e){e.restoreData(),r.create(this._model,this._api),W.call(this,e,i),H.call(this,e),r.update(e,i),Z.call(this,e,t),U.call(this,e,t);var s=e.get("backgroundColor")||"transparent",l=o.painter;if(l.isSingleCanvas&&l.isSingleCanvas())o.configLayer(0,{clearColor:s});else{if(!a.canvasSupported){var h=n.parse(s);s=n.stringify(h,"rgb"),0===h[3]&&(s="transparent")}s.colorStops||s.image?(o.configLayer(0,{clearColor:s}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&o.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=s)}M(tt,(function(t){t(e,i)}))}},updateView:function(t){var e=this._model;e&&(e.eachSeries((function(t){t.getData().clearAllVisual()})),Z.call(this,e,t),B.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries((function(t){t.getData().clearAllVisual()})),Z.call(this,e,t,!0),B.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(F.call(this,e,t),B.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;G.call(this,"component",e),G.call(this,"chart",e),z.update.call(this,t)}};function E(t,e,i,n,a){var r=t._model;if(n){var o={};o[n+"Id"]=i[n+"Id"],o[n+"Index"]=i[n+"Index"],o[n+"Name"]=i[n+"Name"];var s={mainType:n,query:o};a&&(s.subType=a),r&&r.eachComponent(s,(function(e,i){l(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else M(t._componentsViews.concat(t._chartsViews),l);function l(n){n&&n.__alive&&n[e]&&n[e](n.__model,r,t._api,i)}}function R(t,e){var n=t.type,a=t.escapeConnect,r=$[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&I(s[0]),this[T]=!0;var h=[t],u=!1;t.batch&&(u=!0,h=i.map(t.batch,(function(e){return(e=i.defaults(i.extend({},e),t)).batch=null,e})));var c,d=[],p="highlight"===n||"downplay"===n;M(h,(function(t){(c=(c=r.action(t,this._model,this._api))||i.extend({},t)).type=o.event||c.type,d.push(c),p?E(this,l,t,"series"):s&&E(this,l,t,s.main,s.sub)}),this),"none"===l||p||s||(this.__optionUpdated?(z.prepareAndUpdate.call(this,t),this.__optionUpdated=!1):z[l].call(this,t)),c=u?{type:o.event||n,escapeConnect:a,batch:d}:d[0],this[T]=!1,!e&&this._messageCenter.trigger(c.type,c)}function N(t){for(var e=this._pendingActions;e.length;){var i=e.shift();R.call(this,i,t)}}function V(t){!t&&this.trigger("updated")}function B(t,e,i){var n=this._api;M(this._componentsViews,(function(a){var r=a.__model;a[t](r,e,n,i),Y(r,a)}),this),e.eachSeries((function(a,r){var o=this._chartsMap[a.__viewId];o[t](a,e,n,i),Y(a,o),X(a,o)}),this),q(this._zr,e),M(tt,(function(t){t(e,n)}))}function G(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,a=i?this._componentsMap:this._chartsMap,r=this._zr,o=0;oe.get("hoverLayerThreshold")&&!a.node&&i.traverse((function(t){t.isGroup||(t.useHoverLayer=!0)}))}function X(t,e){var i=0;e.group.traverse((function(t){"group"===t.type||t.ignore||i++}));var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!a.node;r&&e.group.traverse((function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))}));var o=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.setStyle("blend",o)}))}function Y(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}k._initEvents=function(){M(j,(function(t){this._zr.on(t,(function(e){var n,a=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var o=r.dataModel||a.getSeriesByIndex(r.seriesIndex);n=o&&o.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=i.extend({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))}),this)}),this),M(K,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},k.isDisposed=function(){return this._disposed},k.clear=function(){this.setOption({series:[]},!0)},k.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;M(this._componentsViews,(function(i){i.dispose(e,t)})),M(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete at[this.id]}},i.mixin(P,o);var $={},K={},J=[],Q=[],tt=[],et=[],it={},nt={},at={},rt={},st=new Date-0,lt=new Date-0,ht="_echarts_instance_",ut={};function ct(t){rt[t]=!1}var dt=ct;function pt(t){var e;return e=t.getAttribute?t.getAttribute(ht):t._echarts_instance_,at[e]}function ft(t){Q.push(t)}function gt(t,e,n){"function"==typeof e&&(n=e,e="");var a=i.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||a).toLowerCase(),e=t.event,i.assert(C.test(a)&&C.test(e)),$[a]||($[a]={action:n,actionInfo:t}),K[e]=a}function mt(t,e){"function"==typeof t&&(e=t,t=3e3),et.push({prio:t,func:e})}function vt(t,e){nt[t]=e}mt(2e3,w),ft(c),vt("default",S),gt({type:"highlight",event:"highlight",update:"highlight"},i.noop),gt({type:"downplay",event:"downplay",update:"downplay"},i.noop);t.version="3.8.5",t.dependencies={zrender:"3.7.4"},t.PRIORITY=A,t.init=function(t,e,n){var a=pt(t);if(a)return a;var r=new P(t,e,n);return r.id="ec_"+st++,at[r.id]=r,t.setAttribute?t.setAttribute(ht,r.id):t._echarts_instance_=r.id,function(t){var e="__connectUpdateStatus";function n(t,i){for(var n=0;n=0?1:-1}function gm(t,e,i){for(var n,a=t.getBaseAxis(),r=t.getOtherAxis(a),o=a.onZero?0:r.scale.getExtent()[0],s=r.dim,l="x"===s||"radius"===s?1:0,h=e.stackedOn,u=e.get(s,i);h&&fm(h.get(s,i))===fm(u);){n=h;break}var c=[];return c[l]=e.get(a.dim,i),c[1-l]=n?n.get(s,i,!0):o,t.dataToPoint(c)}var mm=function(t,e,i,n,a,r){for(var o=function(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}(t,e),s=[],l=[],h=[],u=[],c=[],d=[],p=[],f=r.dimensions,g=0;g=a||d<0)break;if(Cm(f)){if(u){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](f[0],f[1]),Mm(Am,f);else if(l>0){var g=d+r,m=e[g];if(u)for(;m&&Cm(e[g]);)m=e[g+=r];var v=.5,y=e[c];if(!(m=e[g])||Cm(m))Mm(Tm,f);else{var x,_;if(Cm(m)&&!u&&(m=f),xm.sub(Im,m,y),"x"===h||"y"===h){var b="x"===h?0:1;x=Math.abs(f[b]-y[b]),_=Math.abs(f[b]-m[b])}else x=xm.dist(f,y),_=xm.dist(f,m);Sm(Tm,f,Im,-l*(1-(v=_/(_+x))))}bm(Am,Am,s),wm(Am,Am,o),bm(Tm,Tm,s),wm(Tm,Tm,o),t.bezierCurveTo(Am[0],Am[1],Tm[0],Tm[1],f[0],f[1]),Sm(Am,f,Im,l*v)}else t.lineTo(f[0],f[1]);c=d,d+=r}return p}function Dm(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}var Pm=ym.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:_m(ym.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,a=i.length,r=Dm(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&Cm(i[a-1]);a--);for(;n0&&Cm(i[r-1]);r--);for(;ae[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function jm(t){return t>=0?1:-1}function qm(t,e,i){return"polar"===t.type?function(t,e,i){var n=t.getAngleAxis(),a=t.getRadiusAxis().getExtent(),r=n.getExtent(),o=Math.PI/180,s=new Nm.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-r[0]*o,endAngle:-r[1]*o,clockwise:n.inverse}});return e&&(s.shape.endAngle=-r[0]*o,Nm.initProps(s,{shape:{endAngle:-r[1]*o}},i)),s}(t,e,i):function(t,e,i){var n=Um(t.getAxis("x")),a=Um(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),o=Math.min(n[0],n[1]),s=Math.min(a[0],a[1]),l=Math.max(n[0],n[1])-o,h=Math.max(a[0],a[1])-s,u=i.get("lineStyle.normal.width")||2,c=i.get("clipOverflow")?u/2:Math.max(l,h);r?(s-=c,h+=2*c):(o-=c,l+=2*c);var d=new Nm.Rect({shape:{x:o,y:s,width:l,height:h}});return e&&(d.shape[r?"width":"height"]=0,Nm.initProps(d,{shape:{width:l,height:h}},i)),d}(t,e,i)}function Xm(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o0?a=r[0]:r[1]<0&&(a=r[1])}var o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],(function(n,r){for(var l,h=e.stackedOn;h&&jm(h.get(o,r))===jm(n);){l=h;break}var u=[];return u[s]=e.get(i.dim,r),u[1-s]=l?l.get(o,r,!0):a,t.dataToPoint(u)}),!0)}(n,r),y=t.get("showSymbol"),x=y&&!h&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(r,n),_=this._data;_&&_.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),_.setItemGraphicEl(e,null))})),y||c.remove(),a.add(f);var b=!h&&t.get("step");d&&u.type===n.type&&b===this._step?(m&&!p?p=this._newPolygon(l,v,n,g):p&&!m&&(f.remove(p),p=this._polygon=null),f.setClipPath(qm(n,!1,t)),y&&c.updateData(r,x),r.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),Fm(this._stackedOnPoints,v)&&Fm(this._points,l)||(g?this._updateAnimation(r,v,n,i,b):(b&&(l=Xm(l,n,b),v=Xm(v,n,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:v})))):(y&&c.updateData(r,x),b&&(l=Xm(l,n,b),v=Xm(v,n,b)),d=this._newPolyline(l,n,g),m&&(p=this._newPolygon(l,v,n,g)),f.setClipPath(qm(n,!0,t)));var w=function(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()){for(var n,a=i.length-1;a>=0;a--)if(i[a].dimension<2){n=i[a];break}if(n&&"cartesian2d"===e.type){var r=n.dimension,o=t.dimensions[r],s=e.getAxis(o),l=Om.map(n.stops,(function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}})),h=l.length,u=n.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),u.reverse());var c=l[0].coord-10,d=l[h-1].coord+10,p=d-c;if(p<.001)return"transparent";Om.each(l,(function(t){t.offset=(t.coord-c)/p})),l.push({offset:h?l[h-1].offset:.5,color:u[1]||"transparent"}),l.unshift({offset:h?l[0].offset:.5,color:u[0]||"transparent"});var f=new Nm.LinearGradient(0,0,0,0,l,!0);return f[o]=c,f[o+"2"]=d,f}}}(r,n)||r.getVisual("color");d.useStyle(Om.defaults(o.getLineStyle(),{fill:"none",stroke:w,lineJoin:"bevel"}));var S=t.get("smooth");if(S=Zm(t.get("smooth")),d.setShape({smooth:S,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var M=r.stackedOn,I=0;if(p.useStyle(Om.defaults(s.getAreaStyle(),{fill:w,opacity:.7,lineJoin:"bevel"})),M)I=Zm(M.hostModel.get("smooth"));p.setShape({smooth:S,stackedOnSmooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=r,this._coordSys=n,this._stackedOnPoints=v,this._points=l,this._step=b},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=Vm.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var o=a.getItemGraphicEl(r);if(!o){var s=a.getItemLayout(r);if(!s)return;(o=new Em(a,r)).position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else Hm.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=Vm.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else Hm.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Gm({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Wm({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale("ordinal")[0];if(i&&i.isLabelIgnored)return Om.bind(i.isLabelIgnored,i)},_updateAnimation:function(t,e,i,n,a){var r=this._polyline,o=this._polygon,s=t.hostModel,l=Rm(this._data,t,this._stackedOnPoints,e,this._coordSys,i),h=l.current,u=l.stackedOnCurrent,c=l.next,d=l.stackedOnNext;a&&(h=Xm(l.current,i,a),u=Xm(l.stackedOnCurrent,i,a),c=Xm(l.next,i,a),d=Xm(l.stackedOnNext,i,a)),r.shape.__points=l.current,r.shape.points=h,Nm.updateProps(r,{shape:{points:c}},s),o&&(o.setShape({points:h,stackedOnPoints:u}),Nm.updateProps(o,{shape:{points:c,stackedOnPoints:d}},s));for(var p=[],f=l.status,g=0;ge&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1)"string"==typeof i?a=Km[i]:"function"==typeof i&&(a=i),a&&(e=e.downSample(o.dim,1/h,a,Jm),t.setData(e))}}),this)},tv=b;function ev(t){return this._axes[t]}var iv=function(t){this._axes={},this._dimList=[],this.name=t||""};iv.prototype={constructor:iv,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return tv.map(this._dimList,ev,this)},getAxesByScale:function(t){return t=t.toLowerCase(),tv.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;ae[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},sv.inherits(hv,lv);var uv=hv,cv=b,dv={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},pv={};pv.categoryAxis=cv.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dv),pv.valueAxis=cv.merge({boundaryGap:[0,0],splitNumber:5},dv),pv.timeAxis=cv.defaults({scale:!0,min:"dataMin",max:"dataMax"},pv.valueAxis),pv.logAxis=cv.defaults({scale:!0,logBase:10},pv.valueAxis);var fv=pv,gv=b,mv=fv,vv=Zu,yv=wu,xv=yv.getLayoutParams,_v=yv.mergeLayoutParam,bv=["value","category","time","log"];var wv=function(t,e,i,n){gv.each(bv,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var r=this.layoutMode,o=r?xv(e):{},s=n.getTheme();gv.merge(e,s.get(a+"Axis")),gv.merge(e,this.getDefaultOption()),e.type=i(t,e),r&&_v(e,o,r)},defaultOption:gv.mergeAll([{},mv[a+"Axis"],n],!0)})})),vv.registerSubTypeDefaulter(t+"Axis",gv.curry(i,t))},Sv=b,Mv=wv,Iv=Wf,Av=Zu.extend({type:"cartesian2dAxis",axis:null,init:function(){Av.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Av.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Av.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function Tv(t,e){return e.type||(e.data?"category":"value")}Sv.merge(Av.prototype,Iv);var Cv={offset:0};Mv("x",Av,Tv,Cv),Mv("y",Av,Tv,Cv),Zu.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Lv=b,Dv=Je,Pv=wu.getLayoutRect,kv=Rp,Ov=ov,zv=uv,Ev=_c,Rv=Lv.each,Nv=kv.ifAxisCrossZero,Vv=kv.niceScaleExtent;function Bv(t,e,i){return t.getCoordSysModel()===e}function Gv(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}var Wv=Gv.prototype;function Hv(t,e,i){var n=t[e];if(i.onZero){var a=i.onZeroAxisIndex;if(null==a){for(var r in n){if(n.hasOwnProperty(r))if((o=n[r])&&!Fv(o)){a=+r;break}}null==a&&(i.onZero=!1),i.onZeroAxisIndex=a}else{var o;(o=n[a])&&Fv(o)&&(i.onZero=!1)}}}function Fv(t){return"category"===t.type||"time"===t.type||!Nv(t)}Wv.type="grid",Wv.axisPointerEnabled=!0,Wv.getRect=function(){return this._rect},Wv.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),Rv(i.x,(function(t){Vv(t.scale,t.model)})),Rv(i.y,(function(t){Vv(t.scale,t.model)})),Rv(i.x,(function(t){Hv(i,"y",t)})),Rv(i.y,(function(t){Hv(i,"x",t)})),this.resize(this.model,e)},Wv.resize=function(t,e,i){var n=Pv(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var a=this._axesList;function r(){Rv(a,(function(t){var e=t.isHorizontal(),i=e?[0,n.width]:[0,n.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?n.x:n.y)}))}r(),!i&&t.get("containLabel")&&(Rv(a,(function(t){if(!t.model.get("axisLabel.inside")){var e=function(t){var e,i,n,a,r,o,s,l,h=t.model,u=h.getFormattedLabels(),c=h.getModel("axisLabel"),d=1,p=u.length;p>40&&(d=Math.ceil(p/40));for(var f=0;fh[1]?-1:1,c=["start"===r?h[0]-u*l:"end"===r?h[1]+u*l:(h[0]+h[1])/2,gy(r)?t.labelOffset+o*l:0],d=e.get("nameRotate");null!=d&&(d=d*sy/180),gy(r)?n=cy(t.rotation,null!=d?d:t.rotation,o):(n=function(t,e,i,n){var a,r,o=ny(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;iy(o-sy/2)?(r=l?"bottom":"top",a="center"):iy(o-1.5*sy)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*sy&&o>sy/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:a,textVerticalAlign:r}}(t,r,d||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var p=s.getFont(),f=e.get("nameTruncate",!0)||{},g=f.ellipsis,m=Xv(t.nameTruncateMaxWidth,f.maxWidth,a),v=null!=g&&null!=m?Jv.truncateText(i,m,p,g,{minChar:2,placeholder:f.placeholder}):i,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:i,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new Qv.Text({anid:"name",__fullText:i,__truncatedText:v,position:c,rotation:n.rotation,silent:dy(e),z2:1,tooltip:y&&y.show?$v({content:i,formatter:function(){return i},formatterParams:_},y):null});Qv.setTextStyle(b.style,s,{text:v,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=ly(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},cy=hy.innerTextLayout=function(t,e,i){var n,a,r=ny(e-t);return iy(r)?(a=i>0?"top":"bottom",n="center"):iy(r-sy)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}};function dy(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function py(t){t&&(t.ignore=!0)}function fy(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var r=ry.identity([]);return ry.rotate(r,r,-t.rotation),n.applyTransform(ry.mul([],r,t.getLocalTransform())),a.applyTransform(ry.mul([],r,e.getLocalTransform())),n.intersect(a)}}function gy(t){return"middle"===t||"center"===t}var my=hy.ifIgnoreOnTick=function(t,e,i,n,a,r){if(0===e&&a||e===n-1&&r)return!1;var o,s=t.scale;return"ordinal"===s.type&&("function"==typeof i?!i(o=s.getTicks()[e],s.getLabel(o)):e%(i+1))},vy=hy.getInterval=function(t,e){var i=t.get("interval");return null!=i&&"auto"!=i||(i=e),i};var yy=hy,xy={},_y=b,by=ru,wy=_y.each,Sy=_y.curry;function My(t,e){return"all"===t||_y.isArray(t)&&_y.indexOf(t,e)>=0||t===e}function Iy(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ty(t)]}function Ay(t){return!!t.get("handle.show")}function Ty(t){return t.type+"||"+t.id}xy.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),r=a.get("link",!0)||[],o=[];wy(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var s=Ty(i.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=i;var h=i.model.getModel("tooltip",n);if(wy(i.getAxes(),Sy(p,!1,null)),i.getTooltipAxes&&n&&h.get("show")){var u="axis"===h.get("trigger"),c="cross"===h.get("axisPointer.type"),d=i.getTooltipAxes(h.get("axisPointer.axis"));(u||c)&&wy(d.baseAxes,Sy(p,!c||"cross",u)),c&&wy(d.otherAxes,Sy(p,"cross",!1))}}function p(n,s,u){var c=u.model.getModel("axisPointer",a),d=c.get("show");if(d&&("auto"!==d||n||Ay(c))){null==s&&(s=c.get("triggerTooltip")),c=n?function(t,e,i,n,a,r){var o=e.getModel("axisPointer"),s={};wy(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=_y.clone(o.get(t))})),s.snap="category"!==t.type&&!!r,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a&&(l.show=!0,!r)){var h=s.lineStyle=o.get("crossStyle");h&&_y.defaults(l,h.textStyle)}return t.model.getModel("axisPointer",new by(s,i,n))}(u,h,a,e,n,s):c;var p=c.get("snap"),f=Ty(u.model),g=s||p||"category"===u.type,m=t.axesInfo[f]={key:f,axis:u,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:p,useHandle:Ay(c),seriesModels:[]};l[f]=m,t.seriesInvolved|=g;var v=function(t,e){for(var i=e.model,n=e.dim,a=0;al[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o=0?"p":"n",v=g[i],y=r[s][i][m],x=o[s][i][m];c.isHorizontal()?(n=y,a=v[1]+h,l=v[0]-x,f=u,o[s][i][m]+=l,Math.abs(l)0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function Ix(t,e,i,n,a,r,o,s){var l=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),u=n.getModel("itemStyle.normal"),c=n.getModel("itemStyle.emphasis").getBarItemStyle();s||t.setShape("r",u.get("barBorderRadius")||0),t.useStyle(gx.defaults({fill:l,opacity:h},u.getBarItemStyle()));var d=n.getShallow("cursor");d&&t.attr("cursor",d);var p=o?a.height>0?"bottom":"top":a.width>0?"left":"right";s||vx(t.style,c,n,l,r,i,p),mx.setHoverStyle(t,c)}var Ax=m,Tx=b,Cx=ox;Ax.registerLayout(Tx.curry(Cx,"bar")),Ax.registerVisual((function(t){t.eachSeriesByType("bar",(function(t){t.getData().setVisual("legendSymbol","roundRect")}))}));var Lx=b,Dx={updateSelectedMap:function(t){this._targetList=t.slice(),this._selectTargetMap=Lx.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),Lx.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},Px=m,kx=dp,Ox=b,zx=ur,Ex=dr.getPercentWithPrecision,Rx=wp,Nx=Dx,Vx=Px.extendSeriesModel({type:"series.pie",init:function(t){Vx.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){Vx.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getInitialData:function(t,e){var i=Rx(["value"],t.data),n=new kx(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this.getData(),i=Vx.superCall(this,"getDataParams",t),n=[];return e.each("value",(function(t){n.push(t)})),i.percent=Ex(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){zx.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});Ox.mixin(Vx,Nx);var Bx=b,Gx=Vr,Wx=zd;function Hx(t,e,i,n){var a=e.getData(),r=this.dataIndex,o=a.getName(r),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),a.each((function(t){Fx(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),s,i)}))}function Fx(t,e,i,n,a){var r=(e.startAngle+e.endAngle)/2,o=i?n:0,s=[Math.cos(r)*o,Math.sin(r)*o];a?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function Zx(t,e){Gx.Group.call(this);var i=new Gx.Sector({z2:2}),n=new Gx.Polyline,a=new Gx.Text;function r(){n.ignore=n.hoverIgnore,a.ignore=a.hoverIgnore}function o(){n.ignore=n.normalIgnore,a.ignore=a.normalIgnore}this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0),this.on("emphasis",r).on("normal",o).on("mouseover",r).on("mouseout",o)}var Ux=Zx.prototype;Ux.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=Bx.extend({},o);(s.label=null,i)?(n.setShape(s),"scale"===a.getShallow("animationType")?(n.shape.r=o.r0,Gx.initProps(n,{shape:{r:o.r}},a,e)):(n.shape.endAngle=o.startAngle,Gx.updateProps(n,{shape:{endAngle:o.endAngle}},a,e))):Gx.updateProps(n,{shape:s},a,e);var l=r.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.useStyle(Bx.defaults({lineJoin:"bevel",fill:h},l.getModel("normal").getItemStyle())),n.hoverStyle=l.getModel("emphasis").getItemStyle();var u=r.getShallow("cursor");function c(){n.stopAnimation(!0),n.animateTo({shape:{r:o.r+a.get("hoverOffset")}},300,"elasticOut")}function d(){n.stopAnimation(!0),n.animateTo({shape:{r:o.r}},300,"elasticOut")}u&&n.attr("cursor",u),Fx(this,t.getItemLayout(e),r.get("selected"),a.get("selectedOffset"),a.get("animation")),n.off("mouseover").off("mouseout").off("emphasis").off("normal"),r.get("hoverAnimation")&&a.isAnimationEnabled()&&n.on("mouseover",c).on("mouseout",d).on("emphasis",c).on("normal",d),this._updateLabel(t,e),Gx.setHoverStyle(this)},Ux._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");Gx.updateProps(i,{shape:{points:o.linePoints||[[o.x,o.y],[o.x,o.y],[o.x,o.y]]}},a,e),Gx.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label.normal"),h=r.getModel("label.emphasis"),u=r.getModel("labelLine.normal"),c=r.getModel("labelLine.emphasis");s=t.getItemVisual(e,"color");Gx.setLabelStyle(n.style,n.hoverStyle={},l,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle();var d=u.get("smooth");d&&!0===d&&(d=.4),i.setShape({smooth:d})},Bx.inherits(Zx,Gx.Group),Wx.extend({type:"pie",init:function(){var t=new Gx.Group;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var a=t.getData(),r=this._data,o=this.group,s=e.get("animation"),l=!r,h=t.get("animationType"),u=Bx.curry(Hx,this.uid,t,s,i),c=t.get("selectedMode");if(a.diff(r).add((function(t){var e=new Zx(a,t);l&&"scale"!==h&&e.eachChild((function(t){t.stopAnimation(!0)})),c&&e.on("click",u),a.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var i=r.getItemGraphicEl(e);i.updateData(a,t),i.off("click"),c&&i.on("click",u),o.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=r.getItemGraphicEl(t);o.remove(e)})).execute(),s&&l&&a.count()>0&&"scale"!==h){var d=a.getItemLayout(0),p=Math.max(i.getWidth(),i.getHeight())/2,f=Bx.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(d.cx,d.cy,p,d.startAngle,d.clockwise,f,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,r,o){var s=new Gx.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return Gx.initProps(s,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},o,r),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}});var jx=m,qx=b;var Xx=function(t,e){qx.each(e,(function(e){e.update="updateView",jx.registerAction(e,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:a}}))}))};var Yx=function(t,e){var i={};e.eachRawSeriesByType(t,(function(t){var n=t.getRawData(),a={};if(!e.isSeriesFiltered(t)){var r=t.getData();r.each((function(t){var e=r.getRawIndex(t);a[e]=t})),n.each((function(e){var o=a[e],s=null!=o&&r.getItemVisual(o,"color",!0);if(s)n.setItemVisual(e,"color",s);else{var l=n.getItemModel(e).get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",l),null!=o&&r.setItemVisual(o,"color",l)}}))}}))},$x=Ni;function Kx(t,e,i,n,a,r,o){function s(e,i,n,a){for(var r=e;re&&r+1t[r].y+t[r].height)return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function h(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var u,c=0,d=t.length,p=[],f=[],g=0;g=i?f.push(t[g]):p.push(t[g]);h(p,!1,e,i,n,a),h(f,!0,e,i,n,a)}var Jx=function(t,e,i,n){var a,r,o=t.getData(),s=[],l=!1;o.each((function(i){var n,h,u,c,d=o.getItemLayout(i),p=o.getItemModel(i),f=p.getModel("label.normal"),g=f.get("position")||p.get("label.emphasis.position"),m=p.getModel("labelLine.normal"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),b=Math.sin(x);a=d.cx,r=d.cy;var w="inside"===g||"inner"===g;if("center"===g)n=d.cx,h=d.cy,c="center";else{var S=(w?(d.r+d.r0)/2*_:d.r*_)+a,M=(w?(d.r+d.r0)/2*b:d.r*b)+r;if(n=S+3*_,h=M+3*b,!w){var I=S+_*(v+e-d.r),A=M+b*(v+e-d.r),T=I+(_<0?-1:1)*y;n=T+(_<0?-5:5),h=A,u=[[S,M],[I,A],[T,A]]}c=w?"center":_>0?"left":"right"}var C=f.getFont(),L=f.get("rotate")?_<0?-x+Math.PI:-x:0,D=t.getFormattedLabel(i,"normal")||o.getName(i),P=$x.getBoundingRect(D,C,c,"top");l=!!L,d.label={x:n,y:h,position:g,height:P.height,len:v,len2:y,linePoints:u,textAlign:c,verticalAlign:"middle",rotation:L,inside:w},w||s.push(d.label)})),!l&&t.get("avoidLabelOverlap")&&function(t,e,i,n,a,r){for(var o=[],s=[],l=0;l=0;r--){var o=n[r],s=a[r],l=o[0]-s[0]/2,h=o[1]-s[1]/2;if(t>=l&&e>=h&&t<=l+s[0]&&e<=h+s[1])return r}return-1}});function m_(){this.group=new p_.Group,this._symbolEl=new g_({})}var v_=m_.prototype;v_.updateData=function(t){this.group.removeAll();var e=this._symbolEl,i=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray((function(e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array||(i=[i,i]),i}))}),e.symbolProxy=f_(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(i.getModel("itemStyle.normal").getItemStyle(["color"]));var n=t.getVisual("color");n&&e.setColor(n),e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>=0&&(e.dataIndex=i)})),this.group.add(e)},v_.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},v_.remove=function(){this.group.removeAll()};var y_=pm,x_=m_;m.extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new y_,this._largeSymbolDraw=new x_},render:function(t,e,i){var n=t.getData(),a=this._largeSymbolDraw,r=this._normalSymbolDraw,o=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?a:r;this._symbolDraw=s,s.updateData(n),o.add(s.group),o.remove(s===a?r.group:a.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}});var __=m,b_=b,w_=Ym,S_=$m;__.registerVisual(b_.curry(w_,"scatter","circle",null)),__.registerLayout(b_.curry(S_,"scatter"));var M_=gg;function I_(t,e,i){M_.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}b.inherits(I_,M_);var A_=b,T_=I_,C_=af,L_=dr,D_=Rp,P_=D_.getScaleExtent,k_=D_.niceScaleExtent,O_=_c;function z_(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=A_.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new T_(i,new C_);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}z_.prototype.getIndicatorAxes=function(){return this._indicatorAxes},z_.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},z_.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},z_.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;li[0]&&isFinite(c)&&isFinite(i[0]))}else{o.getTicks().length-1>a&&(h=r(h));var d=Math.round((i[0]+i[1])/2/h)*h,p=Math.round(a/2);o.setExtent(L_.round(d-p*h),L_.round(d+(a-p)*h)),o.setInterval(h)}}))},z_.dimensions=[],z_.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new z_(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},O_.register("radar",z_);var E_=m,R_=b,N_=ru,V_=Wf,B_=fv.valueAxis;function G_(t,e){return R_.defaults({show:e},t)}E_.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),h=this.get("nameGap"),u=this.get("triggerEvent"),c=R_.map(this.get("indicator")||[],(function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=o;if(null!=c.color&&(d=R_.defaults({color:c.color},o)),c=R_.merge(R_.clone(c),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisLabel:r,name:c.text,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:u},!1),s||(c.name=""),"string"==typeof l){var p=c.name;c.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(c.name=l(c.name,c));var f=R_.extend(new N_(c,null,this.ecModel),V_);return f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:R_.merge({lineStyle:{color:"#bbb"}},B_.axisLine),axisLabel:G_(B_.axisLabel,!1),axisTick:G_(B_.axisTick,!1),splitLine:G_(B_.splitLine,!0),splitArea:G_(B_.splitArea,!0),indicator:[]}});var W_=b,H_=yy,F_=Vr,Z_=["axisLine","axisTickLabel","axisName"];m.extendComponentView({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=W_.map(i,(function(t){return new H_(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));W_.each(n,(function(t){W_.each(Z_,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),a=t.getModel("splitLine"),r=t.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),h=r.get("show"),u=o.get("color"),c=s.get("color");u=W_.isArray(u)?u:[u],c=W_.isArray(c)?c:[c];var d=[],p=[];if("circle"===n)for(var f=i[0].getTicksCoords(),g=e.cx,m=e.cy,v=0;v"+X_.map(i,(function(t,i){return Y_(t.name+" : "+e[i])})).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}}),K_=Vr,J_=b,Q_=Hf;m.extendChartView({type:"radar",render:function(t,e,i){var n=t.coordinateSystem,a=this.group,r=t.getData(),o=this._data;function s(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var a=function(t){return J_.isArray(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),r=Q_.createSymbol(i,-1,-1,2,2,n);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),r}}function l(e,i,n,a,r,o){n.removeAll();for(var l=0;l1?(f.width=l,f.height=l/d):(f.height=l,f.width=l*d),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else(r=t.getBoxLayoutParams()).aspect=d,f=Wb.getLayoutRect(r,{width:h,height:u});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Zb(t,e){Bb.each(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var Ub={dimensions:Gb.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var a=t.get("map"),r=Vb.getMap(a),o=new Gb(a+n,a,r&&r.geoJson,r&&r.specialAreas,t.get("nameMap"));o.zoomLimit=t.get("scaleLimit"),i.push(o),Zb(o,t),t.coordinateSystem=o,o.model=t,o.resize=Fb,o.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),Bb.each(n,(function(t,n){var a=Vb.getMap(n),r=Bb.map(t,(function(t){return t.get("nameMap")})),o=new Gb(n,n,a&&a.geoJson,a&&a.specialAreas,Bb.mergeAll(r));o.zoomLimit=Bb.retrieve.apply(null,Bb.map(t,(function(t){return t.get("scaleLimit")}))),i.push(o),o.resize=Fb,o.resize(t[0],e),Bb.each(t,(function(t){t.coordinateSystem=o,Zb(o,t)}))})),i},getFilledRegions:function(t,e,i){var n=(t||[]).slice();i=i||{};var a=Vb.getMap(e),r=a&&a.geoJson;if(!r)return t;for(var o=Bb.createHashMap(),s=r.features,l=0;l"+Jb(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});qb.mixin(iw,tw);var nw={},aw="\0_ec_interaction_mutex";function rw(t){return t[aw]||(t[aw]={})}m.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),nw.take=function(t,e,i){rw(t)[e]=i},nw.release=function(t,e,i){var n=rw(t);n[e]===i&&(n[e]=null)},nw.isTaken=function(t,e){return!!rw(t)[e]};var ow=b,sw=ot,lw=fa,hw=nw;function uw(t){this.pointerChecker,this._zr=t,this._opt={};var e=ow.bind,i=e(cw,this),n=e(dw,this),a=e(pw,this),r=e(fw,this),o=e(gw,this);sw.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=ow.defaults(ow.clone(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",o))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",o)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function cw(t){if(!(lw.notLeftMouse(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function dw(t){if(!lw.notLeftMouse(t)&&vw(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!hw.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,r=e-n,o=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&lw.stop(t.event),this.trigger("pan",r,o,n,a,e,i)}}function pw(t){lw.notLeftMouse(t)||(this._dragging=!1)}function fw(t){if(vw(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta){var e=t.wheelDelta>0?1.1:1/1.1;mw.call(this,t,e,t.offsetX,t.offsetY)}}function gw(t){if(!hw.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;mw.call(this,t,e,t.pinchX,t.pinchY)}}function mw(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(lw.stop(t.event),this.trigger("zoom",e,i,n))}function vw(t,e,i){var n=t._opt[e];return n&&(!ow.isString(n)||i.event[n+"Key"])}ow.mixin(uw,sw);var yw=uw,xw={};xw.updateViewOnPan=function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},xw.updateViewOnZoom=function(t,e,i,n){var a=t.target,r=t.zoomLimit,o=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var h=r.min||0,u=r.max||1/0;l=Math.max(Math.min(u,l),h)}var c=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()};var _w={},bw={axisPointer:1,tooltip:1,brush:1};_w.onIrrelevantElement=function(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!bw[n.mainType]&&a&&a.model!==i};var ww=b,Sw=yw,Mw=xw,Iw=_w.onIrrelevantElement,Aw=Vr;function Tw(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function Cw(t,e){e.eachChild((function(e){ww.each(e.__regions,(function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")}))}))}function Lw(t,e){var i=new Aw.Group;this._controller=new Sw(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}Lw.prototype={constructor:Lw,draw:function(t,e,i,n,a){var r="geo"===t.mainType,o=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s=t.coordinateSystem,l=this.group,h=s.scale,u={position:s.position,scale:h};!l.childAt(0)||a?l.attr(u):Aw.updateProps(l,u,t),l.removeAll();var c=["itemStyle","normal"],d=["itemStyle","emphasis"],p=["label","normal"],f=["label","emphasis"],g=ww.createHashMap();ww.each(s.regions,(function(e){var i=g.get(e.name)||g.set(e.name,new Aw.Group),n=new Aw.CompoundPath({shape:{paths:[]}});i.add(n);var a,s=(C=t.getRegionModel(e.name)||t).getModel(c),u=C.getModel(d),m=Tw(s),v=Tw(u),y=C.getModel(p),x=C.getModel(f);if(o){a=o.indexOfName(e.name);var _=o.getItemVisual(a,"color",!0);_&&(m.fill=_)}ww.each(e.geometries,(function(t){if("polygon"===t.type){n.shape.paths.push(new Aw.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new Aw.Polygon({shape:{points:t.interiors[e]}}))}})),n.setStyle(m),n.style.strokeNoScale=!0,n.culling=!0;var b=y.get("show"),w=x.get("show"),S=o&&isNaN(o.get("value",a)),M=o&&o.getItemLayout(a);if(r||S&&(b||w)||M&&M.showLabel){var I,A=r?e.name:a;(!o||a>=0)&&(I=t);var T=new Aw.Text({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});Aw.setLabelStyle(T.style,T.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(T)}if(o)o.setItemGraphicEl(a,i);else{var C=t.getRegionModel(e.name);n.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:C&&C.option||{}}}(i.__regions||(i.__regions=[])).push(e),Aw.setHoverStyle(i,v,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)})),this._updateController(t,e,i),function(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",(function(){t._mouseDownFlag=!0})),i.on("click",(function(r){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var o=r.target;!o.__regions;)o=o.parent;if(o){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:ww.map(o.__regions,(function(t){return{name:t.name,from:a.uid}}))};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),Cw(e,i)}}})))}(this,t,l,i,n),Cw(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){var n=t.coordinateSystem,a=this._controller,r=this._controllerHost;r.zoomLimit=t.get("scaleLimit"),r.zoom=n.getZoom(),a.enable(t.get("roam")||!1);var o=t.mainType;function s(){var e={type:"geoRoam",componentType:o};return e[o+"Id"]=t.id,e}a.off("pan").on("pan",(function(t,e){this._mouseDownFlag=!1,Mw.updateViewOnPan(r,t,e),i.dispatchAction(ww.extend(s(),{dx:t,dy:e}))}),this),a.off("zoom").on("zoom",(function(t,e,n){if(this._mouseDownFlag=!1,Mw.updateViewOnZoom(r,t,e,n),i.dispatchAction(ww.extend(s(),{zoom:t,originX:e,originY:n})),this._updateGroup){var a=this.group,o=a.scale;a.traverse((function(t){"text"===t.type&&t.attr("scale",[1/o[0],1/o[1]])}))}}),this),a.setPointerChecker((function(e,a,r){return n.getViewRectAfterRoam().contain(a,r)&&!Iw(e,i,t)}))}};var Dw=Lw,Pw=b,kw=Vr,Ow=Dw;m.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(r=this._mapDraw)&&a.add(r.group);else if(t.needsDrawMap){var r=this._mapDraw||new Ow(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,a=this.group;n.each("value",(function(e,i){if(!isNaN(e)){var r=n.getItemLayout(i);if(r&&r.point){var o=r.point,s=r.offset,l=new kw.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:s?8:10});if(!s){var h=t.mainSeries.getData(),u=n.getName(i),c=h.indexOfName(u),d=n.getItemModel(i),p=d.getModel("label.normal"),f=d.getModel("label.emphasis"),g=h.getItemGraphicEl(c),m=Pw.retrieve2(t.getFormattedLabel(i,"normal"),u),v=Pw.retrieve2(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=kw.setTextStyle({},f,{text:f.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){kw.setTextStyle(l.style,p,{text:p.get("show")?m:null,textPosition:p.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}a.add(l)}}}))}});var zw={};zw.updateCenterAndZoom=function(t,e,i){var n=t.getZoom(),a=t.getCenter(),r=e.zoom,o=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;a=t.pointToData(o);t.setCenter(a)}if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}t.scale[0]*=r,t.scale[1]*=r;var h=t.position,u=(e.originX-h[0])*(r-1),c=(e.originY-h[1])*(r-1);h[0]-=u,h[1]-=c,t.updateTransform();a=t.pointToData(o);t.setCenter(a),t.setZoom(r*n)}return{center:t.getCenter(),zoom:t.getZoom()}};var Ew=m,Rw=b,Nw=zw.updateCenterAndZoom;Ew.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=Nw(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&Rw.each(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}));var Vw=b;var Bw=b;var Gw=function(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),Bw.each(e,(function(t,e){for(var i,n,a,r,o=(i=Bw.map(t,(function(t){return t.getData()})),n=t[0].get("mapValueCalculation"),a={},r=["value"],Bw.each(i,(function(t){t.each(r,(function(e,i){var n="ec-"+t.getName(i);a[n]=a[n]||[],isNaN(e)||a[n].push(e)}))})),i[0].map(r,(function(t,e){for(var r="ec-"+i[0].getName(e),o=0,s=1/0,l=-1/0,h=a[r].length,u=0;ue&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},cS.prototype={constructor:cS,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;ir&&(r=t.depth)}));var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o})),a.data},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),r=n.name;n&&n!==i;)r=n.parentNode.name+"."+r,n=n.parentNode;return gS(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"horizontal",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{normal:{color:"#ccc",width:1.5,curveness:.5}},itemStyle:{normal:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5}},label:{normal:{show:!0,color:"#555"}},leaves:{label:{normal:{show:!0}}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});var mS={},vS=wu;function yS(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function xS(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function _S(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function bS(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function wS(t,e){return t.parentNode===e.parentNode?1:2}mS.init=function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}},mS.firstWalk=function(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){var e=t.children,i=e.length,n=0,a=0;for(;--i>=0;){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}(t);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var a=t,r=t,o=r.parentNode.children[0],s=e,l=a.hierNode.modifier,h=r.hierNode.modifier,u=o.hierNode.modifier,c=s.hierNode.modifier;s=yS(s),r=xS(r),s&&r;){a=yS(a),o=xS(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-r.hierNode.prelim-h+n(s,r);d>0&&(bS(_S(s,t,i),t,d),h+=d,l+=d),c+=s.hierNode.modifier,h+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!yS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),r&&!xS(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=h-u,i=t)}return i}(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)},mS.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},mS.separation=function(t){return arguments.length?t:wS},mS.radialCoordinate=function(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i},mS.getViewRect=function(t,e){return vS.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})};var SS=b,MS=Vr,IS=sm,AS=mS.radialCoordinate;function TS(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function CS(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle.normal").getItemStyle(),i.hoverItemStyle=e.getModel("itemStyle.emphasis").getItemStyle(),i.lineStyle=e.getModel("lineStyle.normal").getLineStyle(),i.labelModel=e.getModel("label.normal"),i.hoverLabelModel=e.getModel("label.emphasis"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function LS(t,e,i,n,a,r){var o=!i,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),h=(r=CS(s,l,r),t.tree.root),u=s.parentNode===h?s:s.parentNode||s,c=t.getItemGraphicEl(u.dataIndex),d=u.getLayout(),p=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,f=s.getLayout();o?(i=new IS(t,e,r)).attr("position",[p.x,p.y]):i.updateData(t,e,r),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=f.rawX,i.__radialRawY=f.rawY,n.add(i),t.setItemGraphicEl(e,i),MS.updateProps(i,{position:[f.x,f.y]},a);var g=i.getSymbolPath();if("radial"===r.layout){var m,v,y=h.children[0],x=y.getLayout(),_=y.children.length;if(f.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?"left":"right";g.setStyle({textPosition:w,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==h){var S=i.__edge;S||(S=i.__edge=new MS.BezierCurve({shape:PS(r,p,p),style:SS.defaults({opacity:0},r.lineStyle)})),MS.updateProps(S,{shape:PS(r,d,f),style:{opacity:1}},a),n.add(S)}}function DS(t,e,i,n,a,r){for(var o,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,h=s.getModel(),u=(r=CS(s,h,r),s.parentNode===l?s:s.parentNode||s);null==(o=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;MS.updateProps(i,{position:[o.x+1,o.y+1]},a,(function(){n.remove(i),t.setItemGraphicEl(e,null)})),i.fadeOut(null,{keepLabel:!0});var c=i.__edge;c&&MS.updateProps(c,{shape:PS(r,o,o),style:{opacity:0}},a,(function(){n.remove(c)}))}function PS(t,e,i){var n,a,r,o,s=t.orient;if("radial"===t.layout){var l=e.rawX,h=e.rawY,u=i.rawX,c=i.rawY,d=AS(l,h),p=AS(l,h+(c-h)*t.curvature),f=AS(u,c+(h-c)*t.curvature),g=AS(u,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:p.x,cpy1:p.y,cpx2:f.x,cpy2:f.y}}l=e.x,h=e.y,u=i.x,c=i.y;return"horizontal"===s&&(n=l+(u-l)*t.curvature,a=h,r=u+(l-u)*t.curvature,o=c),"vertical"===s&&(n=l,a=h+(c-h)*t.curvature,r=u,o=c+(h-c)*t.curvature),{x1:l,y1:h,x2:u,y2:c,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}m.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new MS.Group,this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),r=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]);var l=this._data,h={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.get("orient"),curvature:t.get("lineStyle.normal.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add((function(e){TS(a,e)&&LS(a,e,null,o,t,h)})).update((function(e,i){var n=l.getItemGraphicEl(i);TS(a,e)?LS(a,e,n,o,t,h):n&&DS(a,e,n,o,t,h)})).remove((function(e){var i=l.getItemGraphicEl(e);DS(a,e,i,o,t,h)})).execute(),!0===h.expandAndCollapse&&a.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=a},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}}),m.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand}))}));var kS={};kS.eachAfter=function(t,e,i){for(var n,a=[t],r=[];n=a.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;r--)n.push(a[r])}};var OS=kS,zS=OS.eachAfter,ES=OS.eachBefore,RS=mS,NS=RS.init,VS=RS.firstWalk,BS=RS.secondWalk,GS=RS.separation,WS=RS.radialCoordinate,HS=RS.getViewRect;var FS=function(t,e){var i=HS(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,r=0,o=null;"radial"===n?(a=2*Math.PI,r=Math.min(i.height,i.width)/2,o=GS((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=i.width,r=i.height,o=GS());var s=t.getData().tree.root,l=s.children[0];NS(s),zS(l,VS,o),s.hierNode.modifier=-l.hierNode.prelim,ES(l,BS);var h=l,u=l,c=l;ES(l,(function(t){var e=t.getLayout().x;eu.getLayout().x&&(u=t),t.depth>c.depth&&(c=t)}));var d=h===u?1:o(h,u)/2,p=d-h.getLayout().x,f=0,g=0,m=0,v=0;"radial"===n?(f=a/(u.getLayout().x+d+p),g=r/(c.depth-1||1),ES(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=WS(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}))):"horizontal"===t.get("orient")?(g=r/(u.getLayout().x+d+p),f=a/(c.depth-1||1),ES(l,(function(t){v=(t.getLayout().x+p)*g,m=(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):(f=a/(u.getLayout().x+d+p),g=r/(c.depth-1||1),ES(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))},ZS=FS;var US=FS;var jS=m,qS=b,XS=Ym,YS=function(t,e){t.eachSeriesByType("tree",(function(t){ZS(t,e)}))},$S=function(t,e){t.eachSeriesByType("tree",(function(t){US(t,e)}))};jS.registerVisual(qS.curry(XS,"tree","circle",null)),jS.registerLayout(YS),jS.registerLayout($S);var KS={},JS=b;function QS(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}KS.retrieveTargetInfo=function(t,e){if(t&&("treemapZoomToNode"===t.type||"treemapRootToNode"===t.type)){var i=e.getData().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var a=t.targetNodeId;if(null!=a&&(n=i.getNodeById(a)))return{node:n}}},KS.getPathToRoot=QS,KS.aboveViewRoot=function(t,e){var i=QS(t);return JS.indexOf(i,e)>=0},KS.wrapTreePathInfo=function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i};var tM=b,eM=yd,iM=dS,nM=ru,aM=cr,rM=aM.encodeHTML,oM=aM.addCommas,sM=KS.wrapTreePathInfo;function lM(t){var e=0;tM.each(t.children,(function(t){lM(t);var i=t.value;tM.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;tM.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),tM.isArray(t.value)?t.value[0]=i:t.value=i}eM.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0}},upperLabel:{normal:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},emphasis:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};lM(i);var n=t.levels||[];n=t.levels=function(t,e){var i,n=e.get("color");if(!n)return;if(t=t||[],tM.each(t,(function(t){var e=new nM(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)})),!i){(t[0]||(t[0]={})).color=n.slice()}return t}(n,e);var a={};return a.levels=n,iM.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=tM.isArray(i)?oM(i[0]):oM(i),a=e.getName(t);return rM(a+": "+n)},getDataParams:function(t){var e=eM.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=sM(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},tM.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=tM.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var hM=Vr,uM=wu,cM=b,dM=KS.wrapTreePathInfo;function pM(t){this.group=new hM.Group,t.add(this.group)}function fM(t,e,i,n,a,r){var o=[[a?t:t-5,e],[t+i,e],[t+i,e+n],[a?t:t-5,e+n]];return!r&&o.splice(2,0,[t+i+5,e+n/2]),!a&&o.push([t,e+n/2]),o}function gM(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&dM(i,e)}}pM.prototype={constructor:pM,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&i){var o=a.getModel("itemStyle.normal"),s=o.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,o,s,n),uM.positionElement(r,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:n,text:a,width:o})}},_renderContent:function(t,e,i,n,a){for(var r=0,o=e.emptyItemWidth,s=t.get("breadcrumb.height"),l=uM.getAvailableSize(e.pos,e.box),h=e.totalWidth,u=e.renderList,c=u.length-1;c>=0;c--){var d=u[c],p=d.node,f=d.width,g=d.text;h>l.width&&(h-=f-o,f=o,g=null);var m=new hM.Polygon({shape:{points:fM(r,0,f,s,c===u.length-1,0===c)},style:cM.defaults(i.getItemStyle(),{lineJoin:"bevel",text:g,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:cM.curry(a,p)});this.group.add(m),gM(m,t,p),r+=f+8}},remove:function(){this.group.removeAll()}};var mM=pM,vM={},yM=b;vM.createWrap=function(){var t,e=[],i={};return{add:function(t,n,a,r,o){return yM.isString(r)&&(o=r,r=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:r,easing:o}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,r=e.length;a3||Math.abs(e)>3)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new AM(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=TM.create();TM.translate(s,s,[-e,-i]),TM.scale(s,s,[t,t]),TM.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&window.open(r,o)}}}}}),this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new MM(this.group))).render(t,e,i.node,DM((function(e){"animating"!==this._state&&(SM.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});for(var HM=m,FM=KS,ZM=function(){},UM=["treemapZoomToNode","treemapRender","treemapMove"],jM=0;jM=0;r--)null==i[r]&&(delete n[e[r]],e.pop())}(n):tI(n,!0):(qM.assert("linear"!==e||n.dataExtent),tI(n))};JM.prototype={constructor:JM,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return qM.bind(this._normalizeData,this)}};var QM=JM.visualHandlers={color:{applyVisual:nI("color"),getColorMapper:function(){var t=this.option;return qM.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),aI.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=XM.fastLerp(e,t.parsedVisual,n),a?n:XM.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return XM.stringify(XM.fastLerp(t,this.option.parsedVisual),"rgba")},category:aI,piecewise:function(t,e){var i=sI.call(this,e);return null==i&&(i=XM.stringify(XM.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:rI}},colorHue:eI((function(t,e){return XM.modifyHSL(t,e)})),colorSaturation:eI((function(t,e){return XM.modifyHSL(t,null,e)})),colorLightness:eI((function(t,e){return XM.modifyHSL(t,null,null,e)})),colorAlpha:eI((function(t,e){return XM.modifyAlpha(t,e)})),opacity:{applyVisual:nI("opacity"),_doMap:oI([0,1])},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(qM.isString(n))i("symbol",n);else if(KM(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:iI,category:aI,piecewise:function(t,e){var i=sI.call(this,e);return null==i&&(i=iI.call(this,t)),i},fixed:rI}},symbolSize:{applyVisual:nI("symbolSize"),_doMap:oI([0,1])}};function tI(t,e){var i=t.visual,n=[];qM.isObject(i)?$M(i,(function(t){n.push(t)})):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),lI(t,n)}function eI(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:oI([0,1])}}function iI(t){var e=this.option.visual;return e[Math.round(YM(t,[0,1],[0,e.length-1],!0))]||{}}function nI(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function aI(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function rI(){return this.option.visual[0]}function oI(t){return{linear:function(e){return YM(e,t,this.option.visual,!0)},category:aI,piecewise:function(e,i){var n=sI.call(this,i);return null==n&&(n=YM(e,t,this.option.visual,!0)),n},fixed:rI}}function sI(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[JM.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function lI(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=qM.map(e,(function(t){return XM.parse(t)}))),e}var hI={linear:function(t){return YM(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=JM.findPieceIndex(t,e,!0);if(null!=i)return YM(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:qM.noop};function uI(t,e,i){return t?e<=i:eh[1]&&(h[1]=l);var u=e.get("colorMappingBy"),c={type:o.name,dataExtent:h,visual:o.range};"color"!==c.type||"index"!==u&&"id"!==u?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new dI(c);return d.__drColorMappingBy=u,d}(0,o,s,0,u,p);fI.each(p,(function(t,e){if(t.depth>=a.length||t===a[t.depth]){var s=function(t,e,i,n,a,r){var o=fI.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,h="index"===l?n:"id"===l?r.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(h)}return o}(o,u,t,e,f,r);mI(t,s,i,n,a,r)}}))}else l=vI(u),t.setVisual("color",l)}}function vI(t){var e=yI(t,"color");if(e){var i=yI(t,"colorAlpha"),n=yI(t,"colorSaturation");return n&&(e=pI.modifyHSL(e,null,null,n)),i&&(e=pI.modifyAlpha(e,i)),e}}function yI(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function xI(t,e){var i=t.get(e);return gI(i)&&i.length?{name:e,range:i}:null}var _I=function(t,e,i){var n={mainType:"series",subType:"treemap",query:i};t.eachComponent(n,(function(t){var e=t.getData().tree,i=e.root,n=t.getModel("itemStyle.normal");i.isRemoved()||mI(i,{},fI.map(e.levelModels,(function(t){return t?t.get("itemStyle.normal"):null})),n,t.getViewRoot().getAncestors(),t)}))},bI=b,wI=Je,SI=dr,MI=SI.parsePercent,II=SI.MAX_SAFE_INTEGER,AI=wu,TI=KS,CI=Math.max,LI=Math.min,DI=bI.retrieve,PI=bI.each,kI=["itemStyle","normal","borderWidth"],OI=["itemStyle","normal","gapWidth"],zI=["upperLabel","normal","show"],EI=["upperLabel","normal","height"];function RI(t,e,i,n){var a,r;if(!t.isRemoved()){var o=t.getLayout();a=o.width,r=o.height;var s=(p=t.getModel()).get(kI),l=p.get(OI)/2,h=GI(p),u=Math.max(s,h),c=s-l,d=u-l,p=t.getModel();t.setLayout({borderWidth:s,upperHeight:u,upperLabelHeight:h},!0);var f=(a=CI(a-2*c,0))*(r=CI(r-c-d,0)),g=function(t,e,i,n,a,r){var o=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=r;if(a&&!l)return t.viewChildren=[];o=bI.filter(o,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}))}(o,s);var h=function(t,e,i){for(var n=0,a=0,r=e.length;as[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}(e,o,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,i,n,a){if(!n)return i;for(var r=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var h=a["asc"===n?o-l-1:l].getValue();h/i*ea&&(a=n));var l=t.area*t.area,h=e*e*i;return l?CI(h*a/l,l/(h*r)):1/0}function VI(t,e,i,n,a){var r=e===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],h=i[s[r]],u=e?t.area/e:0;(a||u>i[l[o]])&&(u=i[l[o]]);for(var c=0,d=t.length;cII&&(h=II),o=r}h=0&&t.call(e,i[a],a)},XI.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},XI.breadthFirstTraverse=function(t,e,i,n){if(e instanceof YI||(e=this._nodesMap[jI(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};UI.mixin(YI,KI("hostGraph","data")),UI.mixin($I,KI("hostGraph","edgeData")),qI.Node=YI,qI.Edge=$I;var JI=b,QI=dp,tA=qI,eA=aS,iA=wp,nA=_c,aA=Ep;var rA=function(t,e,i,n,a){for(var r=new tA(n),o=0;o "+d)),h++)}var p,f=i.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=aA(t,i,i.ecModel);else{var g=nA.get(f),m=iA((g&&"view"!==g.type&&g.dimensions||[]).concat(["value"]),t);(p=new QI(m,i)).initData(t)}var v=new QI(["value"],i);return v.initData(l,s),a&&a(p,v),eA({mainData:p,struct:r,structAttr:"graph",datas:{node:p,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r},oA=m,sA=dp,lA=b,hA=ur.defaultEmphasis,uA=ru,cA=cr.encodeHTML,dA=rA,pA=oA.extendSeriesModel({type:"series.graph",init:function(t){pA.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){pA.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){pA.superApply(this,"mergeDefaultAndTheme",arguments),hA(t.edgeLabel,["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return dA(n,i,this,!0,(function(t,i){t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=a.getModel("edgeLabel"),r=new uA({label:n.option},n.parentModel,e);function o(t){return(t=this.parsePath(t))&&"label"===t[0]?r:this.parentModel}i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(o),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=cA(l.join(" > ")),a.value&&(l+=" : "+cA(a.value)),l}return pA.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=lA.map(this.option.categories||[],(function(t){return null!=t.value?t:lA.extend({value:0},t)})),e=new sA(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return pA.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}}),fA=Vr,gA=U,mA=fA.Line.prototype,vA=fA.BezierCurve.prototype;function yA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var xA=fA.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(yA(e)?mA:vA).buildPath(t,e)},pointAt:function(t){return yA(this.shape)?mA.pointAt.call(this,t):vA.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=yA(e)?[e.x2-e.x1,e.y2-e.y1]:vA.tangentAt.call(this,t);return gA.normalize(i,i)}}),_A=b,bA=U,wA=Hf,SA=xA,MA=Vr,IA=dr.round,AA=["fromSymbol","toSymbol"];function TA(t){return"_"+t+"Type"}function CA(t,e,i){var n=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t),r=e.getItemVisual(i,t+"Size");if(a&&"none"!==a){_A.isArray(r)||(r=[r,r]);var o=wA.createSymbol(a,-r[0]/2,-r[1]/2,r[0],r[1],n);return o.name=t,o}}function LA(t,e){var i=e[0],n=e[1],a=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=NaN,t.cpy1=NaN)}function DA(t,e,i){MA.Group.call(this),this._createLine(t,e,i)}var PA=DA.prototype;PA.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var a=1,r=this.parent;r;)r.scale&&(a/=r.scale[0]),r=r.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),h=o.pointAt(s),u=bA.sub([],h,l);if(bA.normalize(u,u),e){e.attr("position",l);var c=o.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[a*s,a*s])}if(i){i.attr("position",h);c=o.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),i.attr("scale",[a*s,a*s])}if(!n.ignore){var d,p,f;n.attr("position",h);var g=5*a;if("end"===n.__position)d=[u[0]*g+h[0],u[1]*g+h[1]],p=u[0]>.8?"left":u[0]<-.8?"right":"center",f=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,v=[(c=o.tangentAt(m))[1],-c[0]],y=o.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],p="center",f="bottom";var x=-Math.atan2(c[1],c[0]);h[0].8?"right":u[0]<-.8?"left":"center",f=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||p},position:d,scale:[a,a]})}}}},PA._createLine=function(t,e,i){var n=t.hostModel,a=function(t){var e=new SA({name:"line"});return LA(e.shape,t),e}(t.getItemLayout(e));a.shape.percent=0,MA.initProps(a,{shape:{percent:1}},n,e),this.add(a);var r=new MA.Text({name:"label"});this.add(r),_A.each(AA,(function(i){var n=CA(i,t,e);this.add(n),this[TA(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},PA.updateData=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=t.getItemLayout(e),o={shape:{}};LA(o.shape,r),MA.updateProps(a,o,n,e),_A.each(AA,(function(i){var n=t.getItemVisual(e,i),a=TA(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=CA(i,t,e);this.add(r)}this[a]=n}),this),this._updateCommonStl(t,e,i)},PA._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=i&&i.lineStyle,o=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);r=h.getModel("lineStyle.normal").getLineStyle(),o=h.getModel("lineStyle.emphasis").getLineStyle(),s=h.getModel("label.normal"),l=h.getModel("label.emphasis")}var u=t.getItemVisual(e,"color"),c=_A.retrieve3(t.getItemVisual(e,"opacity"),r.opacity,1);a.useStyle(_A.defaults({strokeNoScale:!0,fill:"none",stroke:u,opacity:c},r)),a.hoverStyle=o,_A.each(AA,(function(t){var e=this.childOfName(t);e&&(e.setColor(u),e.setStyle({opacity:c}))}),this);var d,p,f,g,m=s.getShallow("show"),v=l.getShallow("show"),y=this.childOfName("label");if(m||v){var x=n.getRawValue(e);p=null==x?p=t.getName(e):isFinite(x)?IA(x):x,d=u||"#000",f=_A.retrieve2(n.getFormattedLabel(e,"normal",t.dataType),p),g=_A.retrieve2(n.getFormattedLabel(e,"emphasis",t.dataType),f)}if(m){var _=MA.setTextStyle(y.style,s,{text:f},{autoColor:d});y.__textAlign=_.textAlign,y.__verticalAlign=_.textVerticalAlign,y.__position=s.get("position")||"middle"}else y.setStyle("text",null);y.hoverStyle=v?{text:g,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,MA.setHoverStyle(this)},PA.highlight=function(){this.trigger("emphasis")},PA.downplay=function(){this.trigger("normal")},PA.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},PA.setLinePoints=function(t){var e=this.childOfName("line");LA(e.shape,t),e.dirty()},_A.inherits(DA,MA.Group);var kA=DA,OA=Vr,zA=kA;function EA(t){return isNaN(t[0])||isNaN(t[1])}function RA(t){return!EA(t[0])&&!EA(t[1])}function NA(t){this._ctor=t||zA,this.group=new OA.Group}var VA=NA.prototype;VA.updateData=function(t){var e=this._lineData,i=this.group,n=this._ctor,a=t.hostModel,r={lineStyle:a.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:a.getModel("lineStyle.emphasis").getLineStyle(),labelModel:a.getModel("label.normal"),hoverLabelModel:a.getModel("label.emphasis")};t.diff(e).add((function(e){if(RA(t.getItemLayout(e))){var a=new n(t,e,r);t.setItemGraphicEl(e,a),i.add(a)}})).update((function(a,o){var s=e.getItemGraphicEl(o);RA(t.getItemLayout(a))?(s?s.updateData(t,a,r):s=new n(t,a,r),t.setItemGraphicEl(a,s),i.add(s)):i.remove(s)})).remove((function(t){i.remove(e.getItemGraphicEl(t))})).execute(),this._lineData=t},VA.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},VA.remove=function(){this.group.removeAll()};var BA=NA,GA=Gr,WA=U,HA=[],FA=[],ZA=[],UA=GA.quadraticAt,jA=WA.distSquare,qA=Math.abs;function XA(t,e,i){for(var n,a=t[0],r=t[1],o=t[2],s=1/0,l=i*i,h=.1,u=.1;u<=.9;u+=.1){HA[0]=UA(a[0],r[0],o[0],u),HA[1]=UA(a[1],r[1],o[1],u),(p=qA(jA(HA,e)-l))=0?n+=h:n-=h:f>=0?n-=h:n+=h}return n}var YA=function(t,e){var i=[],n=GA.quadraticSubdivide,a=[[],[],[]],r=[[],[]],o=[];function s(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge((function(t,l){var h=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");h.__original||(h.__original=[WA.clone(h[0]),WA.clone(h[1])],h[2]&&h.__original.push(WA.clone(h[2])));var d=h.__original;if(null!=h[2]){if(WA.copy(a[0],d[0]),WA.copy(a[1],d[2]),WA.copy(a[2],d[1]),u&&"none"!=u){var p=s(t.node1),f=XA(a,d[0],p*e);n(a[0][0],a[1][0],a[2][0],f,i),a[0][0]=i[3],a[1][0]=i[4],n(a[0][1],a[1][1],a[2][1],f,i),a[0][1]=i[3],a[1][1]=i[4]}if(c&&"none"!=c){p=s(t.node2),f=XA(a,d[1],p*e);n(a[0][0],a[1][0],a[2][0],f,i),a[1][0]=i[1],a[2][0]=i[2],n(a[0][1],a[1][1],a[2][1],f,i),a[1][1]=i[1],a[2][1]=i[2]}WA.copy(h[0],a[0]),WA.copy(h[1],a[2]),WA.copy(h[2],a[1])}else{if(WA.copy(r[0],d[0]),WA.copy(r[1],d[1]),WA.sub(o,r[1],r[0]),WA.normalize(o,o),u&&"none"!=u){p=s(t.node1);WA.scaleAndAdd(r[0],r[0],o,p*e)}if(c&&"none"!=c){p=s(t.node2);WA.scaleAndAdd(r[1],r[1],o,-p*e)}WA.copy(h[0],r[0]),WA.copy(h[1],r[1])}}))},$A=m,KA=b,JA=pm,QA=BA,tT=yw,eT=xw,iT=_w.onIrrelevantElement,nT=Vr,aT=YA,rT=["itemStyle","normal","opacity"],oT=["lineStyle","normal","opacity"];function sT(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function lT(t,e,i){var n=t.getGraphicEl(),a=sT(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",a)}))}function hT(t,e){var i=sT(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",i)}))}$A.extendChartView({type:"graph",init:function(t,e){var i=new JA,n=new QA,a=this.group;this._controller=new tT(e.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var a=this._symbolDraw,r=this._lineDraw,o=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?o.attr(s):nT.updateProps(o,s,t)}aT(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();a.updateData(l);var h=t.getEdgeData();r.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var u=t.forceLayout,c=t.get("force.layoutAnimation");u&&this._startForceLayoutIteration(u,c),l.eachItemGraphicEl((function(e,n){var a=l.getItemModel(n);e.off("drag").off("dragend");var r=l.getItemModel(n).get("draggable");r&&e.on("drag",(function(){u&&(u.warmUp(),!this._layouting&&this._startForceLayoutIteration(u,c),u.setFixed(n),l.setItemLayout(n,e.position))}),this).on("dragend",(function(){u&&u.setUnfixed(n)}),this),e.setDraggable(r&&u),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}),this),l.graph.eachEdge((function(e){var n=e.getGraphicEl();n.off("mouseover",n.__focusNodeAdjacency),n.off("mouseout",n.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),n.on("mouseout",n.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}));var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),p=l.getLayout("cx"),f=l.getLayout("cy");l.eachItemGraphicEl((function(t,e){var i=t.getSymbolPath();if(d){var n=l.getItemLayout(e),a=Math.atan2(n[1]-f,n[0]-p);a<0&&(a=2*Math.PI+a);var r=n[0]=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}}),QT=Vr,tC=zd,eC=dr,iC=eC.parsePercent,nC=eC.round,aC=eC.linearMap;function rC(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var oC=2*Math.PI;tC.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),r=Math.min(n,a);return{cx:iC(i[0],e.getWidth()),cy:iC(i[1],e.getHeight()),r:iC(t.get("radius"),r/2)}}(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var r=this.group,o=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,h=((p=-t.get("endAngle")/180*Math.PI)-l)%oC,u=l,c=o.get("width"),d=0;d=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:T<-.4?"left":T>.4?"right":"center"},{autoColor:k}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){T=Math.cos(b),C=Math.sin(b);var z=new QT.Line({shape:{x1:T*c+h,y1:C*c+u,x2:T*(c-_)+h,y2:C*(c-_)+u},silent:!0,style:I});"auto"===I.stroke&&z.setStyle({stroke:n((A+O/y)/v)}),l.add(z),b+=S}b-=S}else b+=w}},_renderPointer:function(t,e,i,n,a,r,o,s){var l=this.group,h=this._data;if(t.get("pointer.show")){var u=[+t.get("min"),+t.get("max")],c=[r,o],d=t.getData();d.diff(h).add((function(e){var i=new JT({shape:{angle:r}});QT.initProps(i,{shape:{angle:aC(d.get("value",e),u,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)})).update((function(e,i){var n=h.getItemGraphicEl(i);QT.updateProps(n,{shape:{angle:aC(d.get("value",e),u,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)})).remove((function(t){var e=h.getItemGraphicEl(t);l.remove(e)})).execute(),d.eachItemGraphicEl((function(t,e){var i=d.getItemModel(e),r=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:iC(r.get("width"),a.r),r:iC(r.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(aC(d.get("value",e),u,[0,1],!0))),QT.setHoverStyle(t,i.getModel("itemStyle.emphasis").getItemStyle())})),this._data=d}else h&&h.eachItemGraphicEl((function(t){l.remove(t)}))},_renderTitle:function(t,e,i,n,a){var r=t.getModel("title");if(r.get("show")){var o=r.get("offsetCenter"),s=a.cx+iC(o[0],a.r),l=a.cy+iC(o[1],a.r),h=+t.get("min"),u=+t.get("max"),c=t.getData().get("value",0),d=n(aC(c,[h,u],[0,1],!0));this.group.add(new QT.Text({silent:!0,style:QT.setTextStyle({},r,{x:s,y:l,text:t.getData().getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:d,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var r=t.getModel("detail"),o=+t.get("min"),s=+t.get("max");if(r.get("show")){var l=r.get("offsetCenter"),h=a.cx+iC(l[0],a.r),u=a.cy+iC(l[1],a.r),c=iC(r.get("width"),a.r),d=iC(r.get("height"),a.r),p=t.getData().get("value",0),f=n(aC(p,[o,s],[0,1],!0));this.group.add(new QT.Text({silent:!0,style:QT.setTextStyle({},r,{x:h,y:u,text:rC(p,r.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}}});var sC=m,lC=dp,hC=ur.defaultEmphasis,uC=wp,cC=sC.extendSeriesModel({type:"series.funnel",init:function(t){cC.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var i=uC(["value"],t.data),n=new lC(i,this);return n.initData(t.data),n},_defaultLabelLine:function(t){hC(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),i=cC.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}}),dC=Vr,pC=b,fC=zd;function gC(t,e){dC.Group.call(this);var i=new dC.Polygon,n=new dC.Polyline,a=new dC.Text;function r(){n.ignore=n.hoverIgnore,a.ignore=a.hoverIgnore}function o(){n.ignore=n.normalIgnore,a.ignore=a.normalIgnore}this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0),this.on("emphasis",r).on("normal",o).on("mouseover",r).on("mouseout",o)}var mC=gC.prototype,vC=["itemStyle","normal","opacity"];mC.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=t.getItemModel(e).get(vC);s=null==s?1:s,n.useStyle({}),i?(n.setShape({points:o.points}),n.setStyle({opacity:0}),dC.initProps(n,{style:{opacity:s}},a,e)):dC.updateProps(n,{style:{opacity:s},shape:{points:o.points}},a,e);var l=r.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.setStyle(pC.defaults({lineJoin:"round",fill:h},l.getModel("normal").getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),dC.setHoverStyle(this)},mC._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");dC.updateProps(i,{shape:{points:o.linePoints||o.linePoints}},a,e),dC.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label.normal"),h=r.getModel("label.emphasis"),u=r.getModel("labelLine.normal"),c=r.getModel("labelLine.emphasis");s=t.getItemVisual(e,"color");dC.setLabelStyle(n.style,n.hoverStyle={},l,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},pC.inherits(gC,dC.Group),fC.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,r=this.group;n.diff(a).add((function(t){var e=new gC(n,t);n.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),r.add(i),n.setItemGraphicEl(t,i)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});var yC=wu,xC=dr,_C=xC.parsePercent,bC=xC.linearMap;var wC=function(t,e,i){t.eachSeriesByType("funnel",(function(t){var i=t.getData(),n=t.get("sort"),a=function(t,e){return yC.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),r=function(t,e){for(var i=t.mapArray("value",(function(t){return t})),n=[],a="ascending"===e,r=0,o=t.count();r0?-1:i<0?1:e?-1:1}}function EC(t,e){return Math.min(e[1],Math.max(e[0],t))}OC.prototype={constructor:OC,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},PC.inherits(OC,kC);var RC=function(t,e,i,n,a,r){e[0]=EC(e[0],i),e[1]=EC(e[1],i),t=t||0;var o=i[1]-i[0];null!=a&&(a=EC(a,[0,o])),null!=r&&(r=Math.max(r,null!=a?a:0)),"all"===n&&(a=r=Math.abs(e[1]-e[0]),n=0);var s=zC(e,n);e[n]+=t;var l=a||0,h=i.slice();s.sign<0?h[0]+=l:h[1]-=l,e[n]=EC(e[n],h);var u=zC(e,n);return null!=a&&(u.sign!==s.sign||u.spanr&&(e[1-n]=e[n]+u.sign*r),e},NC=b,VC=mt,BC=wu,GC=Rp,WC=OC,HC=Vr,FC=dr,ZC=RC,UC=NC.each,jC=Math.min,qC=Math.max,XC=Math.floor,YC=Math.ceil,$C=FC.round,KC=Math.PI;function JC(t,e,i){this._axesMap=NC.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function QC(t,e){return jC(qC(t,e[0]),e[1])}function tL(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function eL(t,e){var i,n,a=e.layoutLength,r=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,h=s,u=!1;return t=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();UC(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,t),GC.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=BC.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],h=this.dimensions.length,u=QC(e.get("axisExpandWidth"),l),c=QC(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>c&&c>1&&u>0&&s>0,p=e.get("axisExpandWindow");p?(t=QC(p[1]-p[0],l),p[1]=p[0]+t):(t=QC(u*(c-1),l),(p=[u*(e.get("axisExpandCenter")||XC(h/2))-t/2])[1]=p[0]+t);var f=(s-t)/(h-c);f<3&&(f=0);var g=[XC($C(p[0]/u,1))+1,YC($C(p[1]/u,1))-1],m=f/u*p[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:h,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),UC(i,(function(i,r){var o=(n.axisExpandable?eL:tL)(r,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:KC/2,vertical:0},h=[s[a].x+t.x,s[a].y+t.y],u=l[a],c=VC.create();VC.rotate(c,c,u),VC.translate(c,c,h),this._axesLayout[i]={position:h,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1,labelInterval:e.get(i).getLabelInterval()}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i){for(var n=this.dimensions,a=this._axesMap,r=this.hasAxisBrushed(),o=0,s=t.count();oa*(1-u[0])?(l="jump",o=s-a*(1-u[2])):(o=s-a*u[1])>=0&&(o=s-a*(1-u[1]))<=0&&(o=0),(o*=e.axisExpandWidth/h)?ZC(o,n,r,"all"):l="none";else{a=n[1]-n[0];(n=[qC(0,r[1]*s/a-a/2)])[1]=jC(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var iL=JC;_c.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",(function(n,a){var r=new iL(n,t,e);r.name="parallel_"+a,r.resize(n,e),n.coordinateSystem=r,r.model=n,i.push(r)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}});var nL=b,aL=Or,rL=wv,oL=dr,sL=Wf,lL=Zu.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return aL([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=nL.clone(t);if(e)for(var i=e.length-1;i>=0;i--)oL.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var i=0,n=e.length;i1)return("e"===(i=[UL(t,(e=e.split(""))[0]),UL(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("");var i=fL.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return fL.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function jL(t,e,i,n,a,r,o,s){var l=n.__brushOption,h=t(l.range),u=XL(i,r,o);yL(a.split(""),(function(t){var e=SL[t];h[e[0]][e[1]]+=u[e[0]]})),l.range=e(ZL(h[0][0],h[1][0],h[0][1],h[1][1])),kL(i,n),NL(i,{isEnd:!1})}function qL(t,e,i,n,a){var r=e.__brushOption.range,o=XL(t,i,n);yL(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),kL(t,e),NL(t,{isEnd:!1})}function XL(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function YL(t,e,i){var n=EL(t,e);return n&&!0!==n?n.clipPath(i,t._transform):dL.clone(i)}function $L(t){var e=t.event;e.preventDefault&&e.preventDefault()}function KL(t,e,i){return t.childOfName("main").contain(e,i)}function JL(t,e,i,n){var a,r=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],r=i[1]-n[1];return wL(a*a+r*r,.5)>6}(t)||r){if(o&&!r){"single"===s.brushMode&&RL(t);var l=dL.clone(s);l.brushType=QL(l.brushType,o),l.panelId=!0===o?null:o.panelId,r=t._creatingCover=CL(t,l),t._covers.push(r)}if(r){var h=iD[QL(t._brushType,o)];r.__brushOption.range=h.getCreatingRange(YL(t,r,t._track)),n&&(LL(t,r),h.updateCommon(t,r)),DL(t,r),a={isEnd:n}}}else n&&"single"===s.brushMode&&s.removeOnClick&&zL(t,e,i)&&RL(t)&&(a={isEnd:n,removeOnClick:!0});return a}function QL(t,e){return"auto"===t?e.defaultBrushType:t}TL.prototype={constructor:TL,enableBrush:function(t){var e,i;return this._brushType&&(i=(e=this)._zr,gL.release(i,"globalPan",e._uid),yL(e._handlers,(function(t,e){i.off(e,t)})),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var i=t._zr;t._enableGlobalPan||gL.take(i,"globalPan",t._uid);yL(t._handlers,(function(t,e){i.on(e,t)})),t._brushType=e.brushType,t._brushOption=dL.merge(dL.clone(IL),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};dL.each(t,(function(t){e[t.panelId]=dL.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){yL(this._covers,t,e)},updateCovers:function(t){t=dL.map(t,(function(t){return dL.merge(dL.clone(IL),t,!0)}));var e=this._covers,i=this._covers=[],n=this,a=this._creatingCover;return new mL(e,t,(function(t,e){return r(t.__brushOption,e)}),r).add(o).update(o).remove((function(t){e[t]!==a&&n.group.remove(e[t])})).execute(),this;function r(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function o(r,o){var s=t[r];if(null!=o&&e[o]===a)i[r]=e[o];else{var l=i[r]=null!=o?(e[o].__brushOption=s,e[o]):LL(n,CL(n,s));kL(n,l)}}},unmount:function(){return this.enableBrush(!1),RL(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},dL.mixin(TL,pL);var tD={mousedown:function(t){if(this._dragging)eD.call(this,t);else if(!t.target||!t.target.draggable){$L(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=zL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,r=zL(t,e,i);if(!t._dragging)for(var o=0;o5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&SD(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function SD(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}yD.registerPreprocessor(bD);var MD=dp,ID=b,AD=wp;function TD(t){return+t.replace("dim","")}yd.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var i=e.getComponent("parallel",this.get("parallelIndex")),n=i.parallelAxisIndex,a=t.data,r=i.dimensions,o=function(t,e){var i=0;ID.each(t,(function(t){var e=TD(t);e>i&&(i=e)}));var n=e[0];n&&n.length-1>i&&(i=n.length-1);for(var a=[],r=0;r<=i;r++)a.push("dim"+r);return a}(r,a),s=ID.map(o,(function(t,i){var o=ID.indexOf(r,t),s=o>=0&&e.getComponent("parallelAxis",n[o]);return s&&"category"===s.get("type")?(function(t,e,i){var n=t.get("data"),a=TD(e);n&&n.length&&ID.each(i,(function(t){if(t){var e=ID.indexOf(n,t[a]);t[a]=e>=0?e:NaN}}))}(s,t,a),{name:t,type:"ordinal"}):o<0&&AD.guessOrdinal(a,i)?{name:t,type:"ordinal"}:t})),l=new MD(s,this);return l.initData(a),this.option.progressive&&(this.option.animation=!1),l},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,a){t===e&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}});var CD=Vr,LD=b;function DD(t,e,i,n){for(var a,r=[],o=0;o=t.length)return e;for(var a=-1,r=e.length,o=t[n++],s={},l={};++a=t.length)return i;var r=[],o=e[a++];return BD.each(i,(function(t,e){r.push({key:e,values:n(t,a)})})),o?r.sort((function(t,e){return o(t.key,e.key)})):r}return{key:function(e){return t.push(e),this},sortKeys:function(i){return e[t.length-1]=i,this},entries:function(t){return n(i(t,0),0)}}},WD=wu,HD=GD,FD=b;function ZD(t,e,i){FD.each(t,(function(t){var n,a,r,o=0,s=t.length;for(t.sort(QD),r=0;r0){var l=n.getLayout().y+a;n.setLayout({y:l},!0)}o=n.getLayout().y+n.getLayout().dy+e}if((a=o-e-i)>0){l=n.getLayout().y-a;for(n.setLayout({y:l},!0),o=n.getLayout().y,r=s-2;r>=0;--r)(a=(n=t[r]).getLayout().y+n.getLayout().dy+e-o)>0&&(l=n.getLayout().y-a,n.setLayout({y:l},!0)),o=n.getLayout().y}}))}function UD(t,e){FD.each(t.slice().reverse(),(function(t){FD.each(t,(function(t){if(t.outEdges.length){var i=KD(t.outEdges,jD)/KD(t.outEdges,eP),n=t.getLayout().y+(i-JD(t))*e;t.setLayout({y:n},!0)}}))}))}function jD(t){return JD(t.node2)*t.getValue()}function qD(t,e){FD.each(t,(function(t){FD.each(t,(function(t){if(t.inEdges.length){var i=KD(t.inEdges,XD)/KD(t.inEdges,eP),n=t.getLayout().y+(i-JD(t))*e;t.setLayout({y:n},!0)}}))}))}function XD(t){return JD(t.node1)*t.getValue()}function YD(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function $D(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function KD(t,e){for(var i=0,n=t.length,a=-1;++ae?1:t===e?0:NaN}function eP(t){return t.getValue()}var iP=function(t,e,i){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=function(t,e){return WD.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=a;var r=a.width,o=a.height,s=t.getGraph(),l=s.nodes,h=s.edges;!function(t){FD.each(t,(function(t){var e=KD(t.outEdges,eP),i=KD(t.inEdges,eP),n=Math.max(e,i);t.setLayout({value:n},!0)}))}(l),function(t,e,i,n,a,r,o){(function(t,e,i){var n=t,a=null,r=0;for(;n.length;){a=[];for(var o=0,s=n.length;o0;a--)UD(r,o*=.99),ZD(r,n,i),qD(r,o),ZD(r,n,i)}(t,e,r,n,o),function(t){FD.each(t,(function(t){t.outEdges.sort(YD),t.inEdges.sort($D)})),FD.each(t,(function(t){var e=0,i=0;FD.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),FD.each(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}(t)}(l,h,i,n,r,o,0!==FD.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"))}))},nP=cI,aP=b;var rP=m,oP=iP,sP=function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;e.sort((function(t,e){return t.getLayout().value-e.getLayout().value}));var i=e[0].getLayout().value,n=e[e.length-1].getLayout().value;aP.each(e,(function(e){var a=new nP({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var r=e.getModel().get("itemStyle.normal.color");null!=r&&e.setVisual("color",r)}))}))};rP.registerLayout(oP),rP.registerVisual(sP);var lP={},hP=b,uP=Vr,cP=ms.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(e.hasOwnProperty(i)&&0===i.indexOf("ends")){var n=e[i];t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1])}}});function dP(t,e,i,n){uP.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this.updateData(t,e,n),this._seriesModel}var pP=dP.prototype;function fP(t,e,i){return hP.map(t,(function(t){return(t=t.slice())[e]=i.initBaseline,t}))}function gP(t){var e={};return hP.each(t,(function(t,i){e["ends"+i]=t})),e}function mP(t){this.group=new uP.Group,this.styleUpdater=t}pP._createContent=function(t,e,i){var n=t.getItemLayout(e),a="horizontal"===n.chartLayout?1:0,r=0;this.add(new uP.Polygon({shape:{points:i?fP(n.bodyEnds,a,n):n.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=r++;var o=hP.map(n.whiskerEnds,(function(t){return i?fP(t,a,n):t}));this.add(new cP({shape:gP(o),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=r++},pP.updateData=function(t,e,i){var n=this._seriesModel=t.hostModel,a=t.getItemLayout(e),r=uP[i?"initProps":"updateProps"];r(this.childAt(this.bodyIndex),{shape:{points:a.bodyEnds}},n,e),r(this.childAt(this.whiskerIndex),{shape:gP(a.whiskerEnds)},n,e),this.styleUpdater.call(null,this,t,e)},hP.inherits(dP,uP.Group);var vP=mP.prototype;vP.updateData=function(t){var e=this.group,i=this._data,n=this.styleUpdater;t.diff(i).add((function(i){if(t.hasValue(i)){var a=new dP(t,i,n,!0);t.setItemGraphicEl(i,a),e.add(a)}})).update((function(a,r){var o=i.getItemGraphicEl(r);t.hasValue(a)?(o?o.updateData(t,a):o=new dP(t,a,n),e.add(o),t.setItemGraphicEl(a,o)):e.remove(o)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&e.remove(n)})).execute(),this._data=t},vP.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl((function(e){e&&t.remove(e)}))};var yP=dp,xP=wp,_P=mP,bP=b,wP={_baseAxisDim:null,getInitialData:function(t,e){var i,n,a=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(t.layout="horizontal",i=a.getCategories(),n=!0):"category"===s?(t.layout="vertical",i=r.getCategories(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],h="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[h],c=l[1-h],d=t.data;n&&bP.each(d,(function(t,e){t.value&&bP.isArray(t.value)?t.value.unshift(e):bP.isArray(t)&&t.unshift(e)}));var p=this.defaultValueDimensions,f=[{name:u,otherDims:{tooltip:!1},dimsDef:["base"]},{name:c,dimsDef:p.slice()}];f=xP(f,d,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions"),dimCount:p.length+1});var g=new yP(f,this);return g.initData(d,i?i.slice():null),g},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},SP={init:function(){var t=this._whiskerBoxDraw=new _P(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};lP.seriesModelMixin=wP,lP.viewMixin=SP;var MP=b,IP=yd,AP=lP.seriesModelMixin,TP=IP.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});MP.mixin(TP,AP,!0);var CP=b,LP=zd,DP=Vr,PP=lP.viewMixin,kP=LP.extend({type:"boxplot",getStyleUpdater:function(){return EP},dispose:CP.noop});CP.mixin(kP,PP,!0);var OP=["itemStyle","normal"],zP=["itemStyle","emphasis"];function EP(t,e,i){var n=e.getItemModel(i),a=n.getModel(OP),r=e.getItemVisual(i,"color"),o=a.getItemStyle(["borderColor"]),s=t.childAt(t.whiskerIndex);s.style.set(o),s.style.stroke=r,s.dirty();var l=t.childAt(t.bodyIndex);l.style.set(o),l.style.stroke=r,l.dirty();var h=n.getModel(zP).getItemStyle();DP.setHoverStyle(t,h)}var RP=["itemStyle","normal","borderColor"];var NP=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var n=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(RP)||n}),t.isSeriesFiltered(e)||a.each((function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(RP,!0)})}))}))},VP=b,BP=dr.parsePercent,GP=VP.each;var WP=m,HP=NP,FP=function(t){var e=function(t){var e=[],i=[];return t.eachSeriesByType("boxplot",(function(t){var n=t.getBaseAxis(),a=VP.indexOf(i,n);a<0&&(a=i.length,i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)})),e}(t);GP(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,i,n=t.axis,a=t.seriesModels,r=a.length,o=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var h=0;GP(a,(function(t){h=Math.max(h,t.getData().count())})),e=n.getExtent(),Math.abs(e[1]-e[0])}GP(a,(function(t){var e=t.get("boxWidth");VP.isArray(e)||(e=[e,e]),l.push([BP(e[0],i)||0,BP(e[1],i)||0])}));var u=.8*i-2,c=u/r*.3,d=(u-c*(r-1))/r,p=d/2-u/2;GP(a,(function(t,e){s.push(p),p+=c+d,o.push(Math.min(Math.max(d,l[e][0]),l[e][1]))}))}(t),GP(e,(function(e,i){!function(t,e,i){var n,a=t.coordinateSystem,r=t.getData(),o=i/2,s=t.get("layout"),l="horizontal"===s?0:1,h=1-l,u=["x","y"],c=[];if(VP.each(r.dimensions,(function(t){var e=r.getDimensionInfo(t).coordDim;e===u[h]?c.push(t):e===u[l]&&(n=t)})),null==n||c.length<5)return;r.each([n].concat(c),(function(){var t=arguments,i=t[0],n=t[c.length+1],u=m(t[3]),d=m(t[1]),p=m(t[5]),f=[[d,m(t[2])],[p,m(t[4])]];y(d),y(p),y(u);var g=[];function m(t){var n,r=[];return r[l]=i,r[h]=t,isNaN(i)||isNaN(t)?n=[NaN,NaN]:(n=a.dataToPoint(r))[l]+=e,n}function v(t,e){var i=t.slice(),n=t.slice();i[l]+=o,n[l]-=o,e?g.push(i,n):g.push(n,i)}function y(t){var e=[t.slice(),t.slice()];e[0][l]-=o,e[1][l]+=o,f.push(e)}v(f[0][1],0),v(f[1][1],1),r.setItemLayout(n,{chartLayout:s,initBaseline:u[h],median:u,bodyEnds:g,whiskerEnds:f})}))}(e,t.boxOffsetList[i],t.boxWidthList[i])})))}))};WP.registerVisual(HP),WP.registerLayout(FP);var ZP=b,UP=yd,jP=lP.seriesModelMixin,qP=UP.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return i.rect(n.brushRect)}});ZP.mixin(qP,jP,!0);var XP=b,YP=zd,$P=Vr,KP=lP.viewMixin,JP=YP.extend({type:"candlestick",getStyleUpdater:function(){return ek},dispose:XP.noop});XP.mixin(JP,KP,!0);var QP=["itemStyle","normal"],tk=["itemStyle","emphasis"];function ek(t,e,i){var n=e.getItemModel(i),a=n.getModel(QP),r=e.getItemVisual(i,"color"),o=e.getItemVisual(i,"borderColor")||r,s=a.getItemStyle(["color","color0","borderColor","borderColor0"]),l=t.childAt(t.whiskerIndex);l.useStyle(s),l.style.stroke=o;var h=t.childAt(t.bodyIndex);h.useStyle(s),h.style.fill=r,h.style.stroke=o;var u=n.getModel(tk).getItemStyle();$P.setHoverStyle(t,u)}var ik=b;var nk=function(t){t&&ik.isArray(t.series)&&ik.each(t.series,(function(t){ik.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))},ak=["itemStyle","normal","borderColor"],rk=["itemStyle","normal","borderColor0"],ok=["itemStyle","normal","color"],sk=["itemStyle","normal","color0"];var lk=function(t,e){t.eachRawSeriesByType("candlestick",(function(e){var i=e.getData();i.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||i.each((function(t){var e=i.getItemModel(t),n=i.getItemLayout(t).sign;i.setItemVisual(t,{color:e.get(n>0?ok:sk),borderColor:e.get(n>0?ak:rk)})}))}))},hk=b,uk=dr.parsePercent,ck=Vr.subPixelOptimize,dk=hk.retrieve2;var pk=m,fk=nk,gk=lk,mk=function(t){t.eachSeriesByType("candlestick",(function(t){var e,i=t.coordinateSystem,n=t.getData(),a=function(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=uk(dk(t.get("barMaxWidth"),a),a),o=uk(dk(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?uk(s,a):Math.max(Math.min(a/2,r),o)}(t,n),r=t.get("layout"),o="horizontal"===r?0:1,s=1-o,l=["x","y"],h=[];if(hk.each(n.dimensions,(function(t){var i=n.getDimensionInfo(t).coordDim;i===l[s]?h.push(t):i===l[o]&&(e=t)})),!(null==e||h.length<4)){var u=0;n.each([e].concat(h),(function(){var t,e=arguments,l=e[0],c=e[h.length+1],d=e[1],p=e[2],f=e[3],g=e[4],m=Math.min(d,p),v=Math.max(d,p),y=M(m),x=M(v),_=M(f),b=M(g),w=[[T(b),T(x)],[T(_),T(y)]],S=[];function M(t){var e=[];return e[o]=l,e[s]=t,isNaN(l)||isNaN(t)?[NaN,NaN]:i.dataToPoint(e)}function I(t,e){var i=t.slice(),n=t.slice();i[o]=ck(i[o]+a/2,1,!1),n[o]=ck(n[o]-a/2,1,!0),e?S.push(i,n):S.push(n,i)}function A(){var t=M(Math.min(d,p,f,g)),e=M(Math.max(d,p,f,g));return t[o]-=a/2,e[o]-=a/2,{x:t[0],y:t[1],width:s?a:e[0]-t[0],height:s?e[1]-t[1]:a}}function T(t){return t[o]=ck(t[o],1),t}I(x,0),I(y,1),t=d>p?-1:d0?n.getItemModel(u-1).get()[2]<=p?1:-1:1,n.setItemLayout(c,{chartLayout:r,sign:t,initBaseline:d>p?x[s]:y[s],bodyEnds:S,whiskerEnds:w,brushRect:A()}),++u}),!0)}}))};pk.registerPreprocessor(fk),pk.registerVisual(gk),pk.registerLayout(mk);var vk=Ep;yd.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return vk(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var yk=b,xk=Hf.createSymbol,_k=Vr.Group,bk=dr.parsePercent,wk=sm;function Sk(t,e){t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})}))}function Mk(t,e){_k.call(this);var i=new wk(t,e),n=new _k;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var Ik=Mk.prototype;Ik.stopEffectAnimation=function(){this.childAt(1).removeAll()},Ik.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<3;a++){var r=xk(e,-1,-1,2,2,i);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var o=-a/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(o).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(o).start(),n.add(r)}Sk(n,t)},Ik.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}}),Vk=Vr,Bk=kA,Gk=b,Wk=Hf.createSymbol,Hk=U,Fk=Gr;function Zk(t,e,i){Vk.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var Uk=Zk.prototype;Uk.createLine=function(t,e,i){return new Bk(t,e,i)},Uk._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),a=i.get("symbol");Gk.isArray(n)||(n=[n,n]);var r=i.get("color")||t.getItemVisual(e,"color"),o=this.childAt(1);this._symbolType!==a&&(this.remove(o),(o=Wk(a,-.5,-.5,1,1,r)).z2=100,o.culling=!0,this.add(o)),o&&(o.setStyle("shadowColor",r),o.setStyle(i.getItemStyle(["color"])),o.attr("scale",n),o.setColor(r),o.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,i,e))},Uk._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,r=t.getItemLayout(i),o=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),h=Gk.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3})),u="function"==typeof h;if(n.ignore=!0,this.updateAnimationPoints(n,r),l>0&&(o=this.getLineLength(n)/l*1e3),o!==this._period||s!==this._loop){n.stopAnimation();var c=h;u&&(c=h(i)),n.__t>0&&(c=-o*n.__t),n.__t=0;var d=n.animate("",s).when(o,{__t:1}).delay(c).during((function(){a.updateSymbolPosition(n)}));s||d.done((function(){a.remove(n)})),d.start()}this._period=o,this._loop=s}},Uk.getLineLength=function(t){return Hk.dist(t.__p1,t.__cp1)+Hk.dist(t.__cp1,t.__p2)},Uk.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},Uk.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},Uk.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=Fk.quadraticAt,s=Fk.quadraticDerivativeAt;r[0]=o(e[0],n[0],i[0],a),r[1]=o(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),h=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(h,l)-Math.PI/2,t.ignore=!1},Uk.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},Gk.inherits(Zk,Vk.Group);var jk=Zk,qk=Vr,Xk=b;function Yk(t,e,i){qk.Group.call(this),this._createPolyline(t,e,i)}var $k=Yk.prototype;$k._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new qk.Polyline({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},$k.updateData=function(t,e,i){var n=t.hostModel,a=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};qk.updateProps(a,r,n,e),this._updateCommonStl(t,e,i)},$k._updateCommonStl=function(t,e,i){var n=this.childAt(0),a=t.getItemModel(e),r=t.getItemVisual(e,"color"),o=i&&i.lineStyle,s=i&&i.hoverLineStyle;i&&!t.hasItemOption||(o=a.getModel("lineStyle.normal").getLineStyle(),s=a.getModel("lineStyle.emphasis").getLineStyle()),n.useStyle(Xk.defaults({strokeNoScale:!0,fill:"none",stroke:r},o)),n.hoverStyle=s,qk.setHoverStyle(this)},$k.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},Xk.inherits(Yk,qk.Group);var Kk=Yk,Jk=Kk,Qk=b,tO=jk,eO=U;function iO(t,e,i){tO.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var nO=iO.prototype;nO.createLine=function(t,e,i){return new Jk(t,e,i)},nO.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a=0&&!(n[o]<=e);o--);o=Math.min(o,a-2)}else{for(var o=r;oe);o++);o=Math.min(o-1,a-2)}eO.lerp(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var s=i[o+1][0]-i[o][0],l=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},Qk.inherits(iO,tO);var aO=iO,rO=Vr,oO=Eo,sO=Vo,lO=rO.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var i=e.segs,n=e.polyline,a=0;a2?t.quadraticCurveTo(r[2][0],r[2][1],r[1][0],r[1][1]):t.lineTo(r[1][0],r[1][1])}},findDataIndex:function(t,e){for(var i=this.shape,n=i.segs,a=i.polyline,r=Math.max(this.style.lineWidth,1),o=0;o2){if(sO.containStroke(s[0][0],s[0][1],s[2][0],s[2][1],s[1][0],s[1][1],r,t,e))return o}else if(oO.containStroke(s[0][0],s[0][1],s[1][0],s[1][1],r,t,e))return o}return-1}});function hO(){this.group=new rO.Group,this._lineEl=new lO}var uO=hO.prototype;uO.updateData=function(t){this.group.removeAll();var e=this._lineEl,i=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:i.get("polyline")}),e.useStyle(i.getModel("lineStyle.normal").getLineStyle());var n=t.getVisual("color");n&&e.setStyle("stroke",n),e.setStyle("fill"),e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i)})),this.group.add(e)},uO.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},uO.remove=function(){this.group.removeAll()};var cO=BA,dO=jk,pO=kA,fO=Kk,gO=aO,mO=hO;m.extendChartView({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),a=this._lineDraw,r=t.get("effect.show"),o=t.get("polyline"),s=t.get("large")&&n.count()>=t.get("largeThreshold");r===this._hasEffet&&o===this._isPolyline&&s===this._isLarge||(a&&a.remove(),a=this._lineDraw=s?new mO:new cO(o?r?gO:fO:r?dO:pO),this._hasEffet=r,this._isPolyline=o,this._isLarge=s);var l=t.get("zlevel"),h=t.get("effect.trailLength"),u=i.getZr(),c="svg"===u.painter.getType();c||u.painter.getLayer(l).clear(!0),null==this._lastZlevel||c||u.configLayer(this._lastZlevel,{motionBlur:!1}),r&&h&&(c||u.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(h/10+.9,1),0)})),this.group.add(a.group),a.updateData(n),this._lastZlevel=l},updateLayout:function(t,e,i){this._lineDraw.updateLayout(t);var n=i.getZr();"svg"===n.painter.getType()||n.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0);var i=e.getZr();"svg"===i.painter.getType()||i.painter.getLayer(this._lastZlevel).clear(!0)},dispose:function(){}});var vO=function(t){t.eachSeriesByType("lines",(function(t){var e=t.coordinateSystem,i=t.getData();i.each((function(n){var a=i.getItemModel(n),r=a.option instanceof Array?a.option:a.get("coords"),o=[];if(t.get("polyline"))for(var s=0;s0){var I=r(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),u},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=SO.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var IO=Vr,AO=MO,TO=b;m.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll();var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(a,t,i):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(a)&&this._renderOnGeo(a,t,n,i)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,i){if("cartesian2d"===t.type)var n=t.getAxis("x"),a=t.getAxis("y"),r=n.getBandWidth(),o=a.getBandWidth();var s=this.group,l=e.getData(),h="itemStyle.normal",u="itemStyle.emphasis",c=e.getModel(h).getItemStyle(["color"]),d=e.getModel(u).getItemStyle(),p=e.getModel("label.normal"),f=e.getModel("label.emphasis"),g=t.type,m="cartesian2d"===g?[e.coordDimToDataDim("x")[0],e.coordDimToDataDim("y")[0],e.coordDimToDataDim("value")[0]]:[e.coordDimToDataDim("time")[0],e.coordDimToDataDim("value")[0]];l.each((function(i){var n;if("cartesian2d"===g){if(isNaN(l.get(m[2],i)))return;var a=t.dataToPoint([l.get(m[0],i),l.get(m[1],i)]);n=new IO.Rect({shape:{x:a[0]-r/2,y:a[1]-o/2,width:r,height:o},style:{fill:l.getItemVisual(i,"color"),opacity:l.getItemVisual(i,"opacity")}})}else{if(isNaN(l.get(m[1],i)))return;n=new IO.Rect({z2:1,shape:t.dataToRect([l.get(m[0],i)]).contentShape,style:{fill:l.getItemVisual(i,"color"),opacity:l.getItemVisual(i,"opacity")}})}var v=l.getItemModel(i);l.hasItemOption&&(c=v.getModel(h).getItemStyle(["color"]),d=v.getModel(u).getItemStyle(),p=v.getModel("label.normal"),f=v.getModel("label.emphasis"));var y=e.getRawValue(i),x="-";y&&null!=y[2]&&(x=y[2]),IO.setLabelStyle(c,d,p,f,{labelFetcher:e,labelDataIndex:i,defaultText:x,isRectText:!0}),n.setStyle(c),IO.setHoverStyle(n,l.hasItemOption?d:TO.extend({},d)),s.add(n),l.setItemGraphicEl(i,n)}))},_renderOnGeo:function(t,e,i,n){var a=i.targetVisuals.inRange,r=i.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new AO;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),h=t.getRoamTransform().transform;l.applyTransform(h);var u=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),p=Math.min(l.height+l.y,n.getHeight()),f=d-u,g=p-c,m=o.mapArray(["lng","lat","value"],(function(e,i,n){var a=t.dataToPoint([e,i]);return a[0]-=u,a[1]-=c,a.push(n),a})),v=i.getExtent(),y="visualMap.continuous"===i.type?function(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}(v,i.option.range):function(t,e,i){var n=t[1]-t[0],a=(e=TO.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,r=0;return function(t){for(var n=r;n=0;n--){var o;if((o=e[n].interval)[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n0?1:r<0?-1:0}(i,r,a,n,c),function(t,e,i,n,a,r,o,s,l,h){var u=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),p=t.getItemVisual(e,"symbolSize");DO.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]);p[c.index]=zO(p[c.index],d),p[u.index]=zO(p[u.index],n?d:Math.abs(r)),h.symbolSize=p,(h.symbolScale=[p[0]/s,p[1]/s])[u.index]*=(l.isHorizontal?-1:1)*o}(t,e,a,r,0,c.boundingLength,c.pxSign,h,n,c),function(t,e,i,n,a){var r=t.get(NO)||0;r&&(BO.attr({scale:e.slice(),rotation:i}),BO.updateTransform(),r/=BO.getLineScale(),r*=e[n.valueDim.index]);a.valueLineWidth=r}(i,c.symbolScale,l,n,c);var d=c.symbolSize,p=i.get("symbolOffset");return DO.isArray(p)&&(p=[zO(p[0],d[0]),zO(p[1],d[1])]),function(t,e,i,n,a,r,o,s,l,h,u,c){var d=u.categoryDim,p=u.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(n){var v=Math.abs(l),y=DO.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=zO(y,e[p.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=EO(n),S=w?n:nz((v+b)/_);_=g+2*(y=(v-S*g)/2/(x?S:S-1)),b=x?0:2*y,w||"fixed"===n||(S=h?nz((Math.abs(h)+b)/_):0),m=S*_-b,c.repeatTimes=S,c.symbolMargin=y}var M=f*(m/2),I=c.pathPosition=[];I[d.index]=i[d.wh]/2,I[p.index]="start"===o?M:"end"===o?l-M:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var A=c.bundlePosition=[];A[d.index]=i[d.xy],A[p.index]=i[p.xy];var T=c.barRectShape=DO.extend({},i);T[p.wh]=f*Math.max(Math.abs(i[p.wh]),Math.abs(I[p.index]+M)),T[d.wh]=i[d.wh];var C=c.clipShape={};C[d.xy]=-i[d.xy],C[d.wh]=u.ecSize[d.wh],C[p.xy]=0,C[p.wh]=i[p.wh]}(i,d,a,r,0,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function WO(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function HO(t){var e=t.symbolPatternSize,i=kO(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function FO(t,e,i,n){var a=t.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,h=i.repeatTimes||0,u=0,c=r[e.valueDim.index]+o+2*i.symbolMargin;for(tz(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=h,u0:n<0)&&(a=h-1-t),e[l.index]=c*(a-h/2+.5)+s[l.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){tz(t,(function(t){t.trigger("emphasis")}))}function m(){tz(t,(function(t){t.trigger("normal")}))}}function ZO(t,e,i,n){var a=t.__pictorialBundle,r=t.__pictorialMainPath;r?ez(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=t.__pictorialMainPath=HO(i),a.add(r),ez(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),$O(r,i)}function UO(t,e,i){var n=DO.extend({},e.barRectShape),a=t.__pictorialBarRect;a?ez(a,null,{shape:n},e,i):(a=t.__pictorialBarRect=new PO.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function jO(t,e,i,n){if(i.symbolClip){var a=t.__pictorialClipPath,r=DO.extend({},i.clipShape),o=e.valueDim,s=i.animationModel,l=i.dataIndex;if(a)PO.updateProps(a,{shape:r},s,l);else{r[o.wh]=0,a=new PO.Rect({shape:r}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[o.wh]=i.clipShape[o.wh],PO[n?"updateProps":"initProps"](a,{shape:h},s,l)}}}function qO(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=XO,i.isAnimationEnabled=YO,i}function XO(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function YO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $O(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function KO(t,e,i,n){var a=new PO.Group,r=new PO.Group;return a.add(r),a.__pictorialBundle=r,r.attr("position",i.bundlePosition.slice()),i.symbolRepeat?FO(a,e,i):ZO(a,0,i),UO(a,i,n),jO(a,e,i,n),a.__pictorialShapeStr=QO(t,i),a.__pictorialSymbolMeta=i,a}function JO(t,e,i,n){var a=n.__pictorialBarRect;a&&(a.style.text=null);var r=[];tz(n,(function(t){r.push(t)})),n.__pictorialMainPath&&r.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),DO.each(r,(function(t){PO.updateProps(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function QO(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tz(t,e,i){DO.each(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function ez(t,e,i,n,a,r){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&PO[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,r)}function iz(t,e,i){var n=i.color,a=i.dataIndex,r=i.itemModel,o=r.getModel("itemStyle.normal").getItemStyle(["color"]),s=r.getModel("itemStyle.emphasis").getItemStyle(),l=r.getShallow("cursor");tz(t,(function(t){t.setColor(n),t.setStyle(DO.defaults({fill:n,opacity:i.opacity},o)),PO.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=i.z2}));var h={},u=e.valueDim.posDesc[+(i.boundingLength>0)],c=t.__pictorialBarRect;RO(c.style,h,r,n,e.seriesModel,a,u),PO.setHoverStyle(c,h)}function nz(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}LO.extendChartView({type:"pictorialBar",render:function(t,e,i){var n=this.group,a=t.getData(),r=this._data,o=t.coordinateSystem,s=!!o.getBaseAxis().isHorizontal(),l=o.grid.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:VO[+s],categoryDim:VO[1-s]};return a.diff(r).add((function(t){if(a.hasValue(t)){var e=qO(a,t),i=GO(a,t,e,h),r=KO(a,h,i);a.setItemGraphicEl(t,r),n.add(r),iz(r,h,i)}})).update((function(t,e){var i=r.getItemGraphicEl(e);if(a.hasValue(t)){var o=qO(a,t),s=GO(a,t,o,h),l=QO(a,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),a.setItemGraphicEl(t,null),i=null),i?function(t,e,i){var n=i.animationModel,a=i.dataIndex,r=t.__pictorialBundle;PO.updateProps(r,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?FO(t,e,i,!0):ZO(t,e,i,!0);UO(t,i,!0),jO(t,e,i,!0)}(i,h,s):i=KO(a,h,s,!0),a.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),iz(i,h,s)}else n.remove(i)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&JO(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=a,this.group},dispose:DO.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){JO(n,e.dataIndex,t,e)})):i.removeAll()}});var az=m,rz=b,oz=ox,sz=Ym;az.registerLayout(rz.curry(oz,"pictorialBar")),az.registerVisual(rz.curry(sz,"pictorialBar","roundRect",null));var lz=b,hz=gg,uz=function(t,e,i,n,a){hz.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null,this._labelInterval=null};uz.prototype={constructor:uz,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},lz.inherits(uz,hz);var cz=uz,dz=Rp,pz=wu.getLayoutRect;function fz(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}fz.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:fz,_init:function(t,e,i){var n=this.dimension,a=new cz(n,dz.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),r="category"===a.type;a.onBand=r&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(i)),dz.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=pz({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var gz=fz;_c.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",(function(n,a){var r=new gz(n,t,e);r.name="single_"+a,r.resize(n,e),n.coordinateSystem=r,i.push(r)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i},dimensions:gz.prototype.dimensions});var mz={},vz=b;mz.layout=function(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},r=n.position,o=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],h={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?h.vertical[r]:l[0],"horizontal"===o?h.horizontal[r]:l[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),vz.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var u=e.rotate;return null==u&&(u=t.get("axisLabel.rotate")),a.labelRotation="top"===r?-u:u,a.labelInterval=n.getLabelInterval(),a.z2=1,a};var yz=b,xz=yy,_z=Vr,bz=mz,wz=Oy,Sz=xz.getInterval,Mz=xz.ifIgnoreOnTick,Iz=["axisLine","axisTickLabel","axisName"],Az=wz.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var a=this.group;a.removeAll();var r=bz.layout(t),o=new xz(t,r);yz.each(Iz,o.add,o),a.add(o.getGroup()),t.get("splitLine.show")&&this._splitLine(t,r.labelInterval),Az.superCall(this,"render",t,e,i,n)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),a=n.getModel("lineStyle"),r=a.get("width"),o=a.get("color"),s=Sz(n,e);o=o instanceof Array?o:[o];for(var l=t.coordinateSystem.getRect(),h=i.isHorizontal(),u=[],c=0,d=i.getTicksCoords(),p=[],f=[],g=t.get("axisLabel.showMinLabel"),m=t.get("axisLabel.showMaxLabel"),v=0;v=0&&s<0)&&(o=f,s=p,a=h,r.length=0),Vz(u,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:a}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==a.seriesIndex&&zz.extend(a,s[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s,a),i.showTooltip(t,o,l)}else i.showPointer(t,e)}function Hz(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Fz(t,e,i,n){var a=i.payloadBatch,r=e.axis,o=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,h=Rz.makeKey(l),u=t.map[h];u||(u=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function Zz(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Uz(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var jz=function(t,e,i){var n=t.currTrigger,a=[t.x,t.y],r=t,o=t.dispatchAction||zz.bind(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Uz(a)&&(a=Nz({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=Uz(a),h=r.axesInfo,u=s.axesInfo,c="leave"===n||Uz(a),d={},p={},f={list:[],map:{}},g={showPointer:Bz(Hz,p),showTooltip:Bz(Fz,f)};Vz(s.coordSysMap,(function(t,e){var i=l||t.containPoint(a);Vz(s.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(h,t);if(!c&&i&&(!h||r)){var o=r&&r.value;null!=o||l||(o=n.pointToData(a)),null!=o&&Wz(t,o,g,!1,d)}}))}));var m={};return Vz(u,(function(t,e){var i=t.linkGroup;i&&!p[e]&&Vz(i.axesInfo,(function(e,n){var a=p[n];if(e!==t&&a){var r=a.value;i.mapper&&(r=t.axis.scale.parse(i.mapper(r,Zz(e),Zz(t)))),m[t.key]=r}}))})),Vz(m,(function(t,e){Wz(u[e],t,g,!0,d)})),function(t,e,i){var n=i.axesInfo=[];Vz(e,(function(e,i){var a=e.axisPointerModel.option,r=t[i];r?(!e.useHandle&&(a.status="show"),a.value=r.value,a.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})}))}(p,u,d),function(t,e,i,n){if(Uz(e)||!t.list.length)return void n({type:"hideTip"});var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}(f,a,t,o),function(t,e,i){var n=i.getZr(),a="axisPointerLastHighlights",r=Gz(n)[a]||{},o=Gz(n)[a]={};Vz(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&Vz(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var s=[],l=[];zz.each(r,(function(t,e){!o[e]&&l.push(t)})),zz.each(o,(function(t,e){!r[e]&&s.push(t)})),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}(u,0,i),d}};m.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var qz={},Xz=b,Yz=_,$z=ur.makeGetter(),Kz=Xz.each;function Jz(t,e,i){t.handler("leave",null,i)}function Qz(t,e,i,n){e.handler(t,i,n)}qz.register=function(t,e,i){if(!Yz.node){var n=e.getZr();$z(n).records||($z(n).records={}),function(t,e){if($z(t).initialized)return;function i(i,n){t.on(i,(function(i){var a=function(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);Kz($z(t).records,(function(t){t&&n(t,i,a.dispatchAction)})),function(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(a.pendings,e)}))}$z(t).initialized=!0,i("click",Xz.curry(Qz,"click")),i("mousemove",Xz.curry(Qz,"mousemove")),i("globalout",Jz)}(n,e),($z(n).records[t]||($z(n).records[t]={})).handler=i}},qz.unregister=function(t,e){if(!Yz.node){var i=e.getZr();($z(i).records||{})[t]&&($z(i).records[t]=null)}};var tE=qz,eE=m.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";tE.register("axisPointer",i,(function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){tE.unregister(e.getZr(),"axisPointer"),eE.superApply(this._model,"remove",arguments)},dispose:function(t,e){tE.unregister("axisPointer",e),eE.superApply(this._model,"dispose",arguments)}}),iE=b,nE=Ar,aE=Vr,rE=xy,oE=fa,sE=Ed,lE=ur.makeGetter(),hE=iE.clone,uE=iE.bind;function cE(){}function dE(t,e,i,n){pE(lE(i).lastProp,n)||(lE(i).lastProp=n,e?aE.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function pE(t,e){if(iE.isObject(t)&&iE.isObject(e)){var i=!0;return iE.each(e,(function(e,n){i=i&&pE(t[n],e)})),!!i}return t===e}function fE(t,e){t[e.get("label.show")?"show":"hide"]()}function gE(t){return{position:t.position.slice(),rotation:t.rotation||0}}function mE(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)}))}cE.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==r){this._lastValue=a,this._lastStatus=r;var o=this._group,s=this._handle;if(!r||"hide"===r)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,a,t,e,i);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=iE.curry(dE,e,u);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new aE.Group,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),i.getZr().add(o);mE(o,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(a&&n.getBandWidth()>o)return!0;if(r){var s=rE.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var r=lE(t).pointerEl=new aE[a.type](hE(e.pointer));t.add(r)}},createLabelEl:function(t,e,i,n){if(e.label){var a=lE(t).labelEl=new aE.Rect(hE(e.label));t.add(a),fE(a,n)}},updatePointerEl:function(t,e,i){var n=lE(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=lE(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),fE(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),a=this._handle,r=i.getModel("handle"),o=i.get("status");if(!r.get("show")||!o||"hide"===o)return a&&n.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=aE.createIcon(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){oE.stop(t.event)},onmousedown:uE(this._onHandleDragMove,this,0,0),drift:uE(this._onHandleDragMove,this),ondragend:uE(this._onHandleDragEnd,this)}),n.add(a)),mE(a,i,!1);a.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");iE.isArray(s)||(s=[s,s]),a.attr("scale",[s[0]/2,s[1]/2]),sE.createOrUpdate(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){dE(this._axisPointerModel,!e&&this._moveAnimation,this._handle,gE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(gE(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(gE(n)),lE(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}},cE.prototype.constructor=cE,nE.enableClassExtend(cE);var vE=cE,yE={},xE=b,_E=Vr,bE=Ni,wE=cr,SE=mt,ME=Rp,IE=yy;function AE(t,e,i,n,a){var r=TE(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),o=i.getModel("label"),s=wE.normalizeCssArray(o.get("padding")||0),l=o.getFont(),h=bE.getBoundingRect(r,l),u=a.position,c=h.width+s[1]+s[3],d=h.height+s[0]+s[2],p=a.align;"right"===p&&(u[0]-=c),"center"===p&&(u[0]-=c/2);var f=a.verticalAlign;"bottom"===f&&(u[1]-=d),"middle"===f&&(u[1]-=d/2),function(t,e,i,n){var a=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,c,d,n);var g=o.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:o.get("borderRadius")},position:u.slice(),style:{text:r,textFont:l,textFill:o.getTextColor(),textPosition:"inside",fill:g,stroke:o.get("borderColor")||"transparent",lineWidth:o.get("borderWidth")||0,shadowBlur:o.get("shadowBlur"),shadowColor:o.get("shadowColor"),shadowOffsetX:o.get("shadowOffsetX"),shadowOffsetY:o.get("shadowOffsetY")},z2:10}}function TE(t,e,i,n,a){var r=e.scale.getLabel(t,{precision:a.precision}),o=a.formatter;if(o){var s={value:ME.getAxisRawValue(e,t),seriesData:[]};xE.each(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)})),xE.isString(o)?r=o.replace("{value}",r):xE.isFunction(o)&&(r=o(s))}return r}function CE(t,e,i){var n=SE.create();return SE.rotate(n,n,i.rotation),SE.translate(n,n,i.position),_E.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}yE.buildElStyle=function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},yE.buildLabelElOption=AE,yE.getValueLabel=TE,yE.getTransformedPosition=CE,yE.buildCartesianSingleLabelElOption=function(t,e,i,n,a,r){var o=IE.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),AE(e,n,a,r,{position:CE(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},yE.makeLineShape=function(t,e,i){return{x1:t[i=i||0],y1:t[1-i],x2:e[i],y2:e[1-i]}},yE.makeRectShape=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},yE.makeSectorShape=function(t,e,i,n,a,r){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}};var LE=Vr,DE=yE,PE=zy,kE=Oy,OE=vE.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.grid,s=n.get("type"),l=zE(o,r).getOtherAxis(r).getGlobalExtent(),h=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var u=DE.buildElStyle(n),c=EE[s](r,h,l,u);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=PE.layout(o.model,i);DE.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=PE.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:DE.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=zE(r,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,h=t.position;h[l]+=e[l],h[l]=Math.min(o[1],h[l]),h[l]=Math.max(o[0],h[l]);var u=(s[1]+s[0])/2,c=[u,u];c[l]=h[l];return{position:h,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function zE(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var EE={line:function(t,e,i,n){var a=DE.makeLineShape([e,i[0]],[e,i[1]],RE(t));return LE.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:DE.makeRectShape([e-a/2,i[0]],[a,r],RE(t))}}};function RE(t){return"x"===t.dim?0:1}kE.registerAxisPointerClass("CartesianAxisPointer",OE);var NE=m,VE=b,BE=xy,GE=jz;NE.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!VE.isArray(e)&&(t.axisPointer.link=[e])}})),NE.registerProcessor(NE.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=BE.collect(t,e)})),NE.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GE);var WE=Vr,HE=yE,FE=mz,ZE=Oy,UE=["x","y"],jE=["width","height"],qE=vE.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.coordinateSystem,s=$E(o,1-YE(r)),l=o.dataToPoint(e)[0],h=n.get("type");if(h&&"none"!==h){var u=HE.buildElStyle(n),c=XE[h](r,l,s,u);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=FE.layout(i);HE.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=FE.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:HE.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.coordinateSystem,o=YE(a),s=$E(r,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var h=$E(r,1-o),u=(h[1]+h[0])/2,c=[u,u];return c[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),XE={line:function(t,e,i,n){var a=HE.makeLineShape([e,i[0]],[e,i[1]],YE(t));return WE.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:HE.makeRectShape([e-a/2,i[0]],[a,r],YE(t))}}};function YE(t){return t.isHorizontal()?0:1}function $E(t,e){var i=t.getRect();return[i[UE[e]],i[UE[e]]+i[jE[e]]]}ZE.registerAxisPointerClass("SingleAxisPointer",qE),m.extendComponentView({type:"single"});var KE=wp,JE=yd,QE=dp,tR=b,eR=cr.encodeHTML,iR=GD,nR=JE.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){nR.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=iR().key((function(t){return t[2]})).entries(t),n=tR.map(i,(function(t){return{name:t.key,dataList:t.values}})),a=n.length,r=-1,o=-1,s=0;sr&&(r=l,o=s)}for(var h=0;hr&&(r=h),n.push(h)}for(var u=0;ur&&(r=d)}return o.y0=a,o.max=r,o}(o),l=s.y0,h=i/s.max,u=r.length,c=r[0].indices.length,d=0;dn[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:DR.bind((function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o})),size:DR.bind(PR,t)}}},OR=b;var zR=function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:OR.bind(t.dataToPoint,t)}}},ER=m,RR=b,NR=Vr,VR=jg.findLabelValueDim,BR=Ep,GR=ox,WR=$d,HR=["itemStyle","normal"],FR=["itemStyle","emphasis"],ZR=["label","normal"],UR=["label","emphasis"],jR={cartesian2d:SR,geo:AR,singleAxis:LR,polar:kR,calendar:zR};function qR(t,e,i,n,a){null==i[t]||a||(e[t]=i[t],i[t]=n[t])}function XR(t){var e={};return RR.each(t.dimensions,(function(i,n){var a=t.getDimensionInfo(i);if(!a.isExtraCoord){var r=a.coordDim;(e[r]=e[r]||[])[a.coordDimIndex]=n}})),e}function YR(t,e,i,n,a,r){(t=$R(t,e,i,n,a,r))&&r.setItemGraphicEl(e,t)}function $R(t,e,i,n,a,r){var o=i.type;if(!t||o===t.__customGraphicType||"path"===o&&i.pathData===t.__customPathData||"image"===o&&i.style.image===t.__customImagePath||"text"===o&&i.style.text===t.__customText||(a.remove(t),t=null),null!=o){var s,l=!t;if(!t&&(t=function(t){var e,i=t.type;if("path"===i){var n=t.shape;(e=NR.makePath(n.pathData,null,{x:n.x||0,y:n.y||0,width:n.width||0,height:n.height||0},"center")).__customPathData=t.pathData}else"image"===i?(e=new NR.Image({})).__customImagePath=t.style.image:"text"===i?(e=new NR.Text({})).__customText=t.style.text:e=new(0,NR[i.charAt(0).toUpperCase()+i.slice(1)]);return e.__customGraphicType=i,e.name=t.name,e}(i)),function(t,e,i,n,a,r){var o={},s=i.style||{};if(i.shape&&(o.shape=RR.clone(i.shape)),i.position&&(o.position=i.position.slice()),i.scale&&(o.scale=i.scale.slice()),i.origin&&(o.origin=i.origin.slice()),i.rotation&&(o.rotation=i.rotation),"image"===t.type&&i.style){var l=o.style={};RR.each(["x","y","width","height"],(function(e){qR(e,l,s,t.style,r)}))}"text"===t.type&&i.style&&(l=o.style={},RR.each(["x","y"],(function(e){qR(e,l,s,t.style,r)})),!s.hasOwnProperty("textFill")&&s.fill&&(s.textFill=s.fill),!s.hasOwnProperty("textStroke")&&s.stroke&&(s.textStroke=s.stroke));if("group"!==t.type&&(t.useStyle(s),r)){t.style.opacity=0;var h=s.opacity;null==h&&(h=1),NR.initProps(t,{style:{opacity:h}},n,e)}r?t.attr(o):NR.updateProps(t,o,n,e),t.attr({z2:i.z2||0,silent:i.silent}),!1!==i.styleEmphasis&&NR.setHoverStyle(t,i.styleEmphasis)}(t,e,i,n,0,l),"group"===o){var h=t.children()||[],u=i.children||[];if(i.diffChildrenByName)new WR((s={oldChildren:h,newChildren:u,dataIndex:e,animatableModel:n,group:t,data:r}).oldChildren,s.newChildren,KR,KR,s).add(JR).update(JR).remove(QR).execute();else{for(var c=0;c=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},_flatten:function(t,e,i){eN.each(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oN(t,e,i,n){var a=i.type,r=new(0,nN[a.charAt(0).toUpperCase()+a.slice(1)])(i);e.add(r),n.set(t,r),r.__ecGraphicId=t}function sN(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){sN(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function lN(t,e){var i;return eN.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}tN.extendComponentView({type:"graphic",init:function(t,e){this._elMap=eN.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group;eN.each(i,(function(t){var e=t.$action,i=t.id,r=n.get(i),o=t.parentId,s=null!=o?n.get(o):a;if("text"===t.type){var l=t.style;t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=null),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}var h=function(t){return t=eN.extend({},t),eN.each(["id","parentId","$action","hv","bounding"].concat(aN.LOCATION_PARAMS),(function(e){delete t[e]})),t}(t);e&&"merge"!==e?"replace"===e?(sN(r,n),oN(i,s,h,n)):"remove"===e&&sN(r,n):r?r.attr(h):oN(i,s,h,n);var u=n.get(i);u&&(u.__ecGraphicWidth=t.width,u.__ecGraphicHeight=t.height)}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=i.length-1;r>=0;r--){var o=i[r],s=a.get(o.id);if(s){var l=s.parent,h=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};aN.positionElement(s,o,h,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){sN(e,t)})),this._elMap=eN.createHashMap()},dispose:function(){this._clear()}});var hN=b,uN=ru,cN=m.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){cN.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),dN=cN,pN=m,fN=b;function gN(t,e,i){var n,a={},r="toggleSelected"===t;return i.eachComponent("legend",(function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var o=i.getData();fN.each(o,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),{name:e.name,selected:a}}pN.registerAction("legendToggleSelect","legendselectchanged",fN.curry(gN,"toggleSelected")),pN.registerAction("legendSelect","legendselected",fN.curry(gN,"select")),pN.registerAction("legendUnSelect","legendunselected",fN.curry(gN,"unSelect"));var mN={},vN=wu,yN=vN.getLayoutRect,xN=vN.box,_N=vN.positionElement,bN=cr,wN=Vr;mN.layout=function(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),r={width:i.getWidth(),height:i.getHeight()},o=yN(n,r,a);xN(e.get("orient"),t,e.get("itemGap"),o.width,o.height),_N(t,n,r,a)},mN.makeBackground=function(t,e){var i=bN.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new wN.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})};var SN=m,MN=b,IN=Hf.createSymbol,AN=Vr,TN=mN.makeBackground,CN=wu,LN=MN.curry,DN=MN.each,PN=AN.Group;function kN(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function ON(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function zN(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var EN=SN.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new PN),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var a=t.getBoxLayoutParams(),r={width:i.getWidth(),height:i.getHeight()},o=t.get("padding"),s=CN.getLayoutRect(a,r,o),l=this.layoutInner(t,n,s),h=CN.getLayoutRect(MN.defaults({width:l.width,height:l.height},a),r,o);this.group.attr("position",[h.x-l.x,h.y-l.y]),this.group.add(this._backgroundEl=TN(l,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var a=this.getContentGroup(),r=MN.createHashMap(),o=e.get("selectedMode");DN(e.getData(),(function(s,l){var h=s.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var u=i.getSeriesByName(h)[0];if(!r.get(h))if(u){var c=u.getData(),d=c.getVisual("color");"function"==typeof d&&(d=d(u.getDataParams(0)));var p=c.getVisual("legendSymbol")||"roundRect",f=c.getVisual("symbol");this._createItem(h,l,s,e,p,f,t,d,o).on("click",LN(kN,h,n)).on("mouseover",LN(ON,u,null,n)).on("mouseout",LN(zN,u,null,n)),r.set(h,!0)}else i.eachRawSeries((function(i){if(!r.get(h)&&i.legendDataProvider){var a=i.legendDataProvider(),u=a.indexOfName(h);if(u<0)return;var c=a.getItemVisual(u,"color");this._createItem(h,l,s,e,"roundRect",null,t,c,o).on("click",LN(kN,h,n)).on("mouseover",LN(ON,i,h,n)).on("mouseout",LN(zN,i,h,n)),r.set(h,!0)}}),this)}else a.add(new PN({newline:!0}))}),this)},_createItem:function(t,e,i,n,a,r,o,s,l){var h=n.get("itemWidth"),u=n.get("itemHeight"),c=n.get("inactiveColor"),d=n.isSelected(t),p=new PN,f=i.getModel("textStyle"),g=i.get("icon"),m=i.getModel("tooltip"),v=m.parentModel;if(a=g||a,p.add(IN(a,0,0,h,u,d?s:c,!0)),!g&&r&&(r!==a||"none"==r)){var y=.8*u;"none"===r&&(r="circle"),p.add(IN(r,(h-y)/2,(u-y)/2,y,y,d?s:c))}var x="left"===o?h+5:-5,_=o,b=n.get("formatter"),w=t;"string"==typeof b&&b?w=b.replace("{name}",null!=t?t:""):"function"==typeof b&&(w=b(t)),p.add(new AN.Text({style:AN.setTextStyle({},f,{text:w,x:x,y:u/2,textFill:d?f.getTextColor():c,textAlign:_,textVerticalAlign:"middle"})}));var S=new AN.Rect({shape:p.getBoundingRect(),invisible:!0,tooltip:m.get("show")?MN.extend({content:t,formatter:v.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},m.option):null});return p.add(S),p.eachChild((function(t){t.silent=!0})),S.silent=!l,this.getContentGroup().add(p),AN.setHoverStyle(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,i){var n=this.getContentGroup();CN.box(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var a=n.getBoundingRect();return n.attr("position",[-a.x,-a.y]),this.group.getBoundingRect()}});var RN=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;ii[s],p=[-u.x,-u.y];p[o]=n.position[o];var f=[0,0],g=[-c.x,-c.y],m=ZN.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[o]+=i[s]-c[s]:f[o]+=c[s]+m);g[1-o]+=u[l]/2-c[l]/2,n.attr("position",p),a.attr("position",f),r.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:u[s],v[l]=Math.max(u[l],c[l]),v[h]=Math.min(0,c[h]+g[1-o]),a.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-c[s]-m,0),y[l]=v[l],a.setClipPath(new UN.Rect({shape:y})),a.__rectSize=y[s]}else r.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&UN.updateProps(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;ZN.each(["pagePrev","pageNext"],(function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var n=i.childOfName("pageText"),a=t.get("pageFormatter"),r=e.pageIndex,o=null!=r?r+1:0,s=e.pageCount;n&&a&&n.setStyle("text",ZN.isString(a)?a.replace("{current}",o).replace("{total}",s):a({current:o,total:s}))},_getPageInfo:function(t){var e,i,n,a,r=t.get("scrollDataIndex",!0),o=this.getContentGroup(),s=o.getBoundingRect(),l=this._containerGroup.__rectSize,h=t.getOrient().index,u=YN[h],c=YN[1-h],d=$N[h],p=o.position.slice();this._showController?o.eachChild((function(t){t.__legendDataIndex===r&&(a=t)})):a=o.childAt(0);var f=l?Math.ceil(s[u]/l):0;if(a){var g=a.getBoundingRect(),m=a.position[h]+g[d];p[h]=-m-s[d],e=Math.floor(f*(m+g[d]+l/2)/s[u]),e=s[u]&&f?Math.max(0,Math.min(f-1,e)):-1;var v,y={x:0,y:0};y[u]=l,y[c]=s[c],y[d]=-p[h]-s[d];var x=o.children();if(o.eachChild((function(t,e){var i=b(t);i.intersect(y)&&(null==v&&(v=e),n=t.__legendDataIndex),e===x.length-1&&i[d]+i[u]<=y[d]+y[u]&&(n=null)})),null!=v){var _=b(x[v]);if(y[d]=_[d]+_[u]-y[u],v<=0&&_[d]>=y[d])i=null;else{for(;v>0&&b(x[v-1]).intersect(y);)v--;i=x[v].__legendDataIndex}}}return{contentPosition:p,pageIndex:e,pageCount:f,pagePrevDataIndex:i,pageNextDataIndex:n};function b(t){var e=t.getBoundingRect().clone();return e[d]+=t.position[h],e}}});m.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))})),m.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var JN=b,QN=Pt,tV=fa,eV=_,iV=cr,nV=JN.each,aV=iV.toCamelCase,rV=["","-webkit-","-moz-","-o-"];function oV(t){var e,i,n,a=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.getModel("textStyle"),l=t.get("padding");return r&&a.push((n="left "+(e=r)+"s "+(i="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+i,JN.map(rV,(function(t){return t+"transition:"+n})).join(";"))),o&&(eV.canvasSupported?a.push("background-Color:"+o):(a.push("background-Color:#"+QN.toHex(o)),a.push("filter:alpha(opacity=70)"))),nV(["width","color","radius"],(function(e){var i="border-"+e,n=aV(i),r=t.get(n);null!=r&&a.push(i+":"+r+("color"===e?"":"px"))})),a.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),nV(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(s)),null!=l&&a.push("padding:"+iV.normalizeCssArray(l).join("px ")+"px"),a.join(";")+";"}function sV(t,e){var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;tV.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}sV.prototype={constructor:sV,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+oV(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(JN.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var lV=m,hV=b,uV=_,cV=sV,dV=cr,pV=dr,fV=Vr,gV=Oz,mV=wu,vV=ru,yV=qz,xV=Rp,_V=yE,bV=hV.bind,wV=hV.each,SV=pV.parsePercent,MV=new fV.Rect({shape:{x:-1,y:-1,width:2,height:2}});function IV(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof vV&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new vV(i,e,e.ecModel))}return e}function AV(t,e){return t.dispatchAction||hV.bind(e.dispatchAction,e)}function TV(t){var e=t.clientWidth,i=t.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(t);n&&(e+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),i+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:i}}function CV(t){return"center"===t||"middle"===t}lV.extendComponentView({type:"tooltip",init:function(t,e){if(!uV.node){var i=new cV(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!uV.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");yV.register("itemTooltip",this._api,bV((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!uV.node){var a=AV(n,i);this._ticket="";var r=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var o=MV;o.position=[n.x,n.y],o.update(),o.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:o},a)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=gV(n,e),l=s.point[0],h=s.point[1];null!=l&&null!=h&&this._tryShow({offsetX:l,offsetY:h,position:n.position,target:s.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;this._alwaysShowContent||a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(AV(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s)if("axis"===(t=IV([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=hV.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],o=[],s=IV([e.tooltipOption,n]);wV(t,(function(t){wV(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var s=_V.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);hV.each(t.seriesDataIndices,(function(r){var l=i.getSeriesByIndex(r.seriesIndex),h=r.dataIndexInside,u=l&&l.getDataParams(h);u.axisDim=t.axisDim,u.axisIndex=t.axisIndex,u.axisType=t.axisType,u.axisId=t.axisId,u.axisValue=xV.getAxisRawValue(e.axis,n),u.axisValueLabel=s,u&&(o.push(u),a.push(l.formatTooltip(h,!0)))}));var l=s;r.push((l?dV.encodeHTML(l)+"
":"")+a.join("
"))}}))}),this),r.reverse(),r=r.join("

");var l=e.position;this._showOrMove(s,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,l,a[0],a[1],this._tooltipContent,o):this._showTooltipContent(s,r,o,Math.random(),a[0],a[1],l)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,r=n.getSeriesByIndex(a),o=e.dataModel||r,s=e.dataIndex,l=e.dataType,h=o.getData(),u=IV([h.getItemModel(s),o,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(null==c||"item"===c){var d=o.getDataParams(s,l),p=o.formatTooltip(s,!1,l),f="item_"+o.name+"_"+s;this._showOrMove(u,(function(){this._showTooltipContent(u,p,d,f,t.offsetX,t.offsetY,t.position,t.target)})),i({type:"showTip",dataIndexInside:s,dataIndex:h.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var a=new vV(n,this._tooltipModel,this._ecModel),r=a.get("content"),o=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var u=e;if(h&&"string"==typeof h)u=dV.formatTpl(h,i,!0);else if("function"==typeof h){var c=bV((function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,o,a,r,l,i,s))}),this);this._ticket=n,u=h(i,n,c)}l.setContent(u),l.show(t),this._updatePosition(t,o,a,r,l,i,s)}},_updatePosition:function(t,e,i,n,a,r,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=a.getSize(),u=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([i,n],r,a.el,d,{viewSize:[s,l],contentSize:h.slice()})),hV.isArray(e))i=SV(e[0],s),n=SV(e[1],l);else if(hV.isObject(e)){e.width=h[0],e.height=h[1];var p=mV.getLayoutRect(e,{width:s,height:l});i=p.x,n=p.y,u=null,c=null}else if("string"==typeof e&&o){var f=function(t,e,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=e.width,h=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+h/2-a/2;break;case"top":o=e.x+l/2-n/2,s=e.y-a-r;break;case"bottom":o=e.x+l/2-n/2,s=e.y+h+r;break;case"left":o=e.x-n-r,s=e.y+h/2-a/2;break;case"right":o=e.x+l+r,s=e.y+h/2-a/2}return[o,s]}(e,d,h);i=f[0],n=f[1]}else{f=function(t,e,i,n,a,r,o){var s=TV(i),l=s.width,h=s.height;null!=r&&(t+l+r>n?t-=l+r:t+=r);null!=o&&(e+h+o>a?e-=h+o:e+=o);return[t,e]}(i,n,a.el,s,l,u?null:20,c?null:20);i=f[0],n=f[1]}if(u&&(i-=CV(u)?h[0]/2:"right"===u?h[0]:0),c&&(n-=CV(c)?h[1]/2:"bottom"===c?h[1]:0),t.get("confine")){f=function(t,e,i,n,a){var r=TV(i),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a.el,s,l);i=f[0],n=f[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&wV(e,(function(e,n){var a=e.dataByAxis||{},r=(t[n]||{}).dataByAxis||[];(i&=a.length===r.length)&&wV(a,(function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length)&&wV(a,(function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){uV.node||(this._tooltipContent.hide(),yV.unregister("itemTooltip",e))}});var LV=m;LV.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),LV.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}));var DV=b,PV=dr.parsePercent;function kV(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function OV(t){return t.dim}var zV=function(t,e,i){var n=i.getWidth(),a=i.getHeight(),r={},o={},s=function(t,e){var i={};DV.each(t,(function(t,e){var n=t.getData(),a=t.coordinateSystem.getBaseAxis(),r=a.getExtent(),o="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),s=i[OV(a)]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[OV(a)]=s;var h=kV(t);l[h]||s.autoWidthCount++,l[h]=l[h]||{width:0,maxWidth:0};var u=PV(t.get("barWidth"),o),c=PV(t.get("barMaxWidth"),o),d=t.get("barGap"),p=t.get("barCategoryGap");u&&!l[h].width&&(u=Math.min(s.remainedWidth,u),l[h].width=u,s.remainedWidth-=u),c&&(l[h].maxWidth=c),null!=d&&(s.gap=d),null!=p&&(s.categoryGap=p)}));var n={};return DV.each(i,(function(t,e){n[e]={};var i=t.stacks,a=t.bandWidth,r=PV(t.categoryGap,a),o=PV(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-r)/(l+(l-1)*o);h=Math.max(h,0),DV.each(i,(function(t,e){var i=t.maxWidth;i&&i=0?"p":"n",S=i.pointToCoord(M[n]),I=o[u][n][g];if("radius"===f.dim)a=I,s=S[0],c=(h=(-S[1]+d)*Math.PI/180)+p*Math.PI/180,Math.abs(s)0?C=T[1]:C===T[1]&&t<0&&(C=T[0]),o[u][n][g]=C}e.setItemLayout(n,{cx:m,cy:v,r0:a,r:s,startAngle:h,endAngle:c})}}),!0)}}),this)},EV=b,RV=gg;function NV(t,e){RV.call(this,"radius",t,e),this.type="category"}NV.prototype={constructor:NV,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:RV.prototype.dataToCoord,radiusToData:RV.prototype.coordToData},EV.inherits(NV,RV);var VV=NV,BV=b,GV=gg;function WV(t,e){e=e||[0,360],GV.call(this,"angle",t,e),this.type="category"}WV.prototype={constructor:WV,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:GV.prototype.dataToCoord,angleToData:GV.prototype.coordToData},BV.inherits(WV,GV);var HV=VV,FV=WV,ZV=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new HV,this._angleAxis=new FV,this._radiusAxis.polar=this._angleAxis.polar=this};ZV.prototype={type:"polar",axisPointerEnabled:!0,constructor:ZV,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);n.inverse?r=o-360:o=r+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,h=lo;)l+=360*h;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var UV=ZV,jV=b,qV=wv,XV=Wf,YV=Zu.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});jV.merge(YV.prototype,XV);var $V={splitNumber:5};function KV(t,e){return e.type||(e.data?"category":"value")}qV("angle",YV,KV,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),qV("radius",YV,KV,$V),m.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var JV=UV,QV=dr.parsePercent,tB=Rp,eB=tB.createScaleByModel,iB=tB.niceScaleExtent,nB=_c;function aB(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();a.scale.unionExtentFromData(e,"radius"),n.scale.unionExtentFromData(e,"angle")}})),iB(n.scale,n.model),iB(a.scale,a.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}}function rB(t,e){if(t.type=e.get("type"),t.scale=eB(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var oB={dimensions:JV.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var a=new JV(n);a.update=aB;var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");rB(r,s),rB(o,l),function(t,e,i){var n=e.get("center"),a=i.getWidth(),r=i.getHeight();t.cx=QV(n[0],a),t.cy=QV(n[1],r);var o=t.getRadiusAxis(),s=Math.min(a,r)/2,l=QV(e.get("radius"),s);o.inverse?o.setExtent(l,0):o.setExtent(0,l)}(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};nB.register("polar",oB);var sB=b,lB=Vr,hB=ru,uB=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function cB(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function dB(t){return t.getRadiusAxis().inverse?0:1}Oy.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,a=n.getRadiusAxis().getExtent(),r=i.getTicksCoords();"category"!==i.type&&r.pop(),sB.each(uB,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,r,a)}),this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),r=new lB.Circle({shape:{cx:e.cx,cy:e.cy,r:n[dB(e)]},style:a.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,i,n){var a=t.getModel("axisTick"),r=(a.get("inside")?-1:1)*a.get("length"),o=n[dB(e)],s=sB.map(i,(function(t){return new lB.Line({shape:cB(e,[o,o+r],t)})}));this.group.add(lB.mergePath(s,{style:sB.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n){for(var a=t.axis,r=t.get("data"),o=t.getModel("axisLabel"),s=t.getFormattedLabels(),l=o.get("margin"),h=a.getLabelsCoords(),u=0;up?"left":"right",m=Math.abs(d[1]-f)/c<.3?"middle":d[1]>f?"top":"bottom";r&&r[u]&&r[u].textStyle&&(o=new hB(r[u].textStyle,o,o.ecModel));var v=new lB.Text({silent:!0});this.group.add(v),lB.setTextStyle(v.style,o,{x:d[0],y:d[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:s[u],textAlign:g,textVerticalAlign:m})}},_splitLine:function(t,e,i,n){var a=t.getModel("splitLine").getModel("lineStyle"),r=a.get("color"),o=0;r=r instanceof Array?r:[r];for(var s=[],l=0;lm?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:h,verticalAlign:u}}(e,i,0,s,n.get("label.margin"));_B.buildLabelElOption(t,i,n,a,d)}});var IB={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:_B.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=t.getBandWidth(),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_B.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:_B.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};SB.registerAxisPointerClass("PolarAxisPointer",MB);var AB=m,TB=b,CB=zV;AB.registerLayout(TB.curry(CB,"bar")),AB.extendComponentView({type:"polar"});var LB=b,DB=ur,PB=Zu,kB=ru,OB=Dx,zB=jb,EB=PB.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){PB.prototype.init.apply(this,arguments),DB.defaultEmphasis(t.label,["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=zB.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=LB.reduce(t.regions||[],(function(t,i){return i.name&&t.set(i.name,new kB(i,e)),t}),LB.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new kB(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});LB.mixin(EB,OB);var RB=Dw;m.extendComponentView({type:"geo",init:function(t,e){var i=new RB(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});var NB=m,VB=b;function BB(t,e){e.update="updateView",NB.registerAction(e,(function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},(function(i){i[t](e.name);var a=i.coordinateSystem;VB.each(a.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}))})),{selected:n,name:e.name}}))}BB("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),BB("select",{type:"geoSelect",event:"geoselected"}),BB("unSelect",{type:"geoUnSelect",event:"geounselected"});var GB=b,WB=["rect","polygon","keep","clear"];var HB=function(t,e){var i=t&&t.brush;if(GB.isArray(i)||(i=i?[i]:[]),i.length){var n=[];GB.each(i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var a=t&&t.toolbox;GB.isArray(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var r,o,s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),h=l.type||(l.type=[]);h.push.apply(h,n),r=h,o={},GB.each(r,(function(t){o[t]=1})),r.length=0,GB.each(o,(function(t,e){r.push(e)})),e&&!h.length&&h.push.apply(h,WB)}},FB={},ZB=b,UB=cI,jB=ZB.each;function qB(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}FB.createVisualMappings=function(t,e,i){var n={};return jB(e,(function(e){var a,r=n[e]=((a=function(){}).prototype.__hidden=a.prototype,new a);jB(t[e],(function(t,n){if(UB.isValidType(n)){var a={type:n,visual:t};i&&i(a,e),r[n]=new UB(a),"opacity"===n&&((a=ZB.clone(a)).type="colorAlpha",r.__hidden.__alphaForOpacity=new UB(a))}}))})),n},FB.replaceVisualOption=function(t,e,i){var n;ZB.each(i,(function(t){e.hasOwnProperty(t)&&qB(e[t])&&(n=!0)})),n&&ZB.each(i,(function(i){e.hasOwnProperty(i)&&qB(e[i])?t[i]=ZB.clone(e[i]):delete t[i]}))},FB.applyVisual=function(t,e,i,n,a,r){var o,s={};function l(t){return i.getItemVisual(o,t)}function h(t,e){i.setItemVisual(o,t,e)}function u(t,u){o=null==r?t:u;var c=i.getRawDataItem(o);if(!c||!1!==c.visualMap)for(var d=n.call(a,t),p=e[d],f=s[d],g=0,m=f.length;g=-1e-6)return!1;var u=eG(a-t,a-o,r-e,r-s)/h;if(u<0||u>1)return!1;var c=eG(i-t,a-t,n-e,r-e)/h;return!(c<0||c>1)}function eG(t,e,i,n){return t*n-e*i}var iG=$B,nG=b,aG=Vr,rG=ur,oG=rD,sG=nG.each,lG=nG.indexOf,hG=nG.curry,uG=["dataToPoint","pointToData"],cG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function dG(t,e,i){var n=this._targetInfoList=[],a={},r=gG(e,t);sG(mG,(function(t,e){(!i||!i.include||lG(i.include,e)>=0)&&t(r,n,a)}))}var pG=dG.prototype;function fG(t){return t[0]>t[1]&&t.reverse(),t}function gG(t,e){return rG.parseFinder(t,e,{includeMainTypes:cG})}pG.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=xG[t.brushType](0,i,e);t.__rangeOffset={offset:bG[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},pG.matchOutputRanges=function(t,e,i){sG(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&nG.each(n.coordSyses,(function(n){var a=xG[t.brushType](1,n,t.range);i(t,a.values,n,e)}))}),this)},pG.setInputRanges=function(t,e){sG(t,(function(t){var i,n,a,r,o,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=xG[t.brushType](0,s.coordSys,t.coordRange),h=t.__rangeOffset;t.range=h?bG[t.brushType](l.values,h.offset,(i=l.xyMinMax,n=h.xyMinMax,a=SG(i),r=SG(n),o=[a[0]/r[0],a[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}}),this)},pG.makePanelOpts=function(t,e){return nG.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:oG.makeRectPanelClipPath(n),isTargetByCursor:oG.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:oG.makeLinearBrushOtherExtent(n)}}))},pG.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&lG(n.coordSyses,e.coordinateSystem)>=0},pG.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=gG(e,t),a=0;a=0||lG(n,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:yG.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){sG(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:yG.geo})}))}},vG=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],yG={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(aG.getTransform(t)),e}},xG={lineX:hG(_G,0),lineY:hG(_G,1),rect:function(t,e,i){var n=e[uG[t]]([i[0][0],i[1][0]]),a=e[uG[t]]([i[0][1],i[1][1]]),r=[fG([n[0],a[0]]),fG([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:nG.map(i,(function(i){var a=e[uG[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a})),xyMinMax:n}}};function _G(t,e,i,n){var a=i.getAxis(["x","y"][t]),r=fG(nG.map([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))}))),o=[];return o[t]=r,o[1-t]=[NaN,NaN],{values:r,xyMinMax:o}}var bG={lineX:hG(wG,0),lineY:hG(wG,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return nG.map(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function wG(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function SG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var MG=dG,IG=m,AG=b,TG=Je,CG=FB,LG=iG,DG=Ed,PG=MG,kG=["inBrush","outOfBrush"],OG="__ecInBrushSelectEvent",zG=IG.PRIORITY.VISUAL.BRUSH;function EG(t,e){if(!t.isDisposed()){var i=t.getZr();i[OG]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[OG]=!1}}function RG(t,e,i,n){for(var a=0,r=e.length;ae[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&BG(e)}};function BG(t){return new TG(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var GG=b,WG=FB,HG=ru,FG=["#ddd"];function ZG(t,e){return GG.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new HG(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}m.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&WG.replaceVisualOption(i,t,["inBrush","outOfBrush"]),i.inBrush=i.inBrush||{},i.outOfBrush=i.outOfBrush||{color:FG}},setAreas:function(t){t&&(this.areas=GG.map(t,(function(t){return ZG(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=ZG(this.option,t),this.brushType=this.brushOption.brushType}});var UG=b,jG=aD;function qG(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}m.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new jG(e.getZr())).on("brush",UG.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,qG.apply(this,arguments)},updateView:qG,updateLayout:qG,updateVisual:qG,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:UG.clone(t),$from:i})}});var XG=m;XG.registerAction({type:"brush",event:"brush",update:"updateView"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),XG.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){}));var YG={},$G={};YG.register=function(t,e){$G[t]=e},YG.get=function(t){return $G[t]};var KG={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}}},JG=b,QG=YG,tW=KG.toolbox.brush;function eW(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}eW.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:JG.clone(tW.title)};var iW=eW.prototype;iW.render=iW.updateView=iW.updateLayout=function(t,e,i){var n,a,r;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,a=t.brushOption.brushMode||"single",r|=t.areas.length})),this._brushType=n,this._brushMode=a,JG.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?r:e===n)?"emphasis":"normal")}))},iW.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return JG.each(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},iW.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},QG.register("brush",eW),m.registerPreprocessor(HB);var nW=b,aW=wu,rW=dr,oW=_c;function sW(t,e,i){this._model=t}function lW(t,e,i,n){var a=i.calendarModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[t](n):null}sW.prototype={constructor:sW,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=rW.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return{y:e,m:i,d:n,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,n=["width","height"],a=this._model.get("cellSize").slice(),r=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[i,7]:[7,i];nW.each([0,1],(function(t){h(a,t)&&(r[n[t]]=a[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=aW.getLayoutRect(r,s);function h(t,e){return null!=t[e]&&"auto"!==t[e]}nW.each([0,1],(function(t){h(a,t)||(a[t]=l[n[t]]/o[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){nW.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<=n.end.time))return[NaN,NaN];var r=i.day,o=this._getRangeInfo([n.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:nW.curry(lW,"dataToPoint"),convertFromPixel:nW.curry(lW,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(nW.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var a=this.getNextNDay(n,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var r=this._getRangeInfo(t);return r.start.time>r.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r)for(var o=n.getTime()-t[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(a+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},sW.dimensions=sW.prototype.dimensions,sW.getDimensionsInfo=sW.prototype.getDimensionsInfo,sW.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(t){var e=new sW(t);i.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},oW.register("calendar",sW);var hW=b,uW=Zu,cW=wu,dW=cW.getLayoutParams,pW=cW.sizeCalculable,fW=cW.mergeLayoutParam,gW=uW.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=dW(t);gW.superApply(this,"init",arguments),mW(t,a)},mergeOption:function(t,e){gW.superApply(this,"mergeOption",arguments),mW(this.option,t)}});function mW(t,e){var i=t.cellSize;hW.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=hW.map([0,1],(function(t){return pW(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));fW(t,e,{type:"box",ignoreSize:n})}var vW=b,yW=Vr,xW=cr,_W=dr,bW={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},wW={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};m.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle.normal").getItemStyle(),r=n.getCellWidth(),o=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,h=new yW.Rect({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});i.add(h)}},_renderLines:function(t,e,i,n){var a=this,r=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,u=0;h.time<=e.end.time;u++){d(h.formatedDate),0===u&&(h=r.getDateInfo(e.start.y+"-"+e.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=r.getDateInfo(c)}function d(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,n)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,i),o,n),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new yW.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?xW.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,u="horizontal"===i?0:1,c={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],h],right:[s[u][0],h]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=a.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new yW.Text({z2:30});yW.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,c[o],i,o,r)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),r=n.get("margin"),o=n.get("position"),s=n.get("align"),l=[this._tlpoints,this._blpoints];vW.isString(a)&&(a=bW[a.toUpperCase()]||[]);var h="start"===o?0:1,u="horizontal"===e?0:1;r="start"===o?-r:r;for(var c="center"===s,d=0;d=0},AW.createNameEach=DW,AW.eachAxisDim=PW,AW.createLinkedNodesFinder=function(t,e,i){return function(a){var r,o={nodes:[],records:{}};if(e((function(t){o.records[t.name]={}})),!a)return o;n(a,o);do{r=!1,t(s)}while(r);function s(t){!function(t,e){return TW.indexOf(e.nodes,t)>=0}(t,o)&&function(t,n){var a=!1;return e((function(e){TW.each(i(t,e)||[],(function(t){n.records[e.name][t]&&(a=!0)}))})),a}(t,o)&&(n(t,o),r=!0)}return o};function n(t,n){n.nodes.push(t),e((function(e){TW.each(i(t,e)||[],(function(t){n.records[e.name][t]=!0}))}))}};var kW=b,OW=dr,zW=AW,EW=kW.each,RW=OW.asc,NW=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function VW(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var r=OW.getPixelPrecision(a,[0,500]);r=Math.min(r,20);var o=e||0===n[0]&&100===n[1];i.setRange(o?null:+a[0].toFixed(r),o?null:+a[1].toFixed(r))}}NW.prototype={constructor:NW,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(zW.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i,n=this._dimName,a=this.ecModel,r=this.getAxisModel();return"x"===n||"y"===n?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle"),a.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(r.get(e)||0)&&(i=t)})),i},getMinMaxSpan:function(){return kW.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),a=[0,100],r=[t.start,t.end],o=[];return EW(["startValue","endValue"],(function(e){o.push(null!=t[e]?i.parse(t[e]):null)})),EW([0,1],(function(t){var s=o[t],l=r[t];"percent"===n[t]?(null==l&&(l=a[t]),s=i.parse(OW.linearMap(l,a,e,!0))):l=OW.linearMap(s,e,a,!0),o[t]=s,r[t]=l})),{valueWindow:RW(o),percentWindow:RW(r)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=function(t,e,i){var n=[1/0,-1/0];EW(i,(function(t){var i=t.getData();i&&EW(t.coordDimToDataDim(e),(function(t){var e=i.getDataExtent(t);e[0]n[1]&&(n[1]=e[1])}))})),n[1]0?0:NaN);var o=i.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN);i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,n),n}(this,this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,function(t){var e=t._minMaxSpan={},i=t._dataZoomModel;EW(["min","max"],(function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,null!=(a=t.getAxisModel().axis.scale.parse(a)))){var r=t._dataExtent;e[n+"Span"]=OW.linearMap(r[0]+a,r,[0,100],!0)}}))}(this),VW(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,VW(this,!0))},filterData:function(t){if(t===this._dataZoomModel){var e=this._dimName,i=this.getTargetSeriesModels(),n=t.get("filterMode"),a=this._valueWindow;if("none"!==n){var r=this.getOtherAxisModel();t.get("$fromToolbox")&&r&&"category"===r.get("type")&&(n="empty"),EW(i,(function(t){var i=t.getData(),r=t.coordDimToDataDim(e);"weakFilter"===n?i&&i.filterSelf((function(t){for(var e,n,o,s=0;sa[1];if(h&&!u&&!c)return!0;h&&(o=!0),u&&(e=!0),c&&(n=!0)}return o&&e&&n})):i&&EW(r,(function(e){"empty"===n?t.setData(i.map(e,(function(t){return o(t)?t:NaN}))):i.filterSelf(e,o)}))}))}}function o(t){return t>=a[0]&&t<=a[1]}}};var BW=m,GW=b,WW=_,HW=ur,FW=AW,ZW=NW,UW=GW.each,jW=FW.eachAxisDim,qW=BW.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=XW(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=XW(t);GW.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;WW.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),YW(this,t),UW([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,i,n,a){var r=this.dependentModels[e.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new ZW(e.name,i,this,a));t[e.name+"_"+i]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();jW((function(e){var i=e.axisIndex;t[i]=HW.normalizeToArray(t[i])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;jW((function(i){null!=t[i.axisIndex]&&(e=!0)}),this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):UW(n.singleAxis,(function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)}))}t&&jW((function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var t;return jW((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;jW((function(n){UW(this.get(n.axisIndex),(function(a){t.call(e,n,a,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;UW([["start","startValue"],["end","endValue"]],(function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])}),this),!e&&YW(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function XW(t){var e={};return UW(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function YW(t,e){var i=t._rangePropMode,n=t.get("rangeMode");UW([["start","startValue"],["end","endValue"]],(function(t,a){var r=null!=e[t[0]],o=null!=e[t[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var $W=qW,KW=Md.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};return t.eachTargetAxis((function(t,n){var a=e.getComponent(t.axis,n);if(a){var r=a.getCoordSysModel();r&&function(t,e,i,n){for(var a,r=0;r0&&e%f)p+=d;else{var i=null==t||isNaN(t)||""===t,n=i?0:lH(t,r,l,!0);i&&!s&&e?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!i&&s&&(u.push([p,0]),c.push([p,0])),u.push([p,n]),c.push([p,n]),p+=d,s=i}}));var g=this.dataZoomModel;this._displayables.barGroup.add(new eH.Polygon({shape:{points:u},style:QW.defaults({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new eH.Polyline({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(a,r){var o=t.getAxisProxy(a.name,r).getTargetSeriesModels();QW.each(o,(function(t){if(!(i||!0!==e&&QW.indexOf(dH,t.get("type"))<0)){var o,s=n.getComponent(a.axis,r).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[a.name],h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(o=h.getOtherAxis(s).inverse),i={thisAxis:s,series:t,thisDim:a.name,otherDim:l,otherAxisInverse:o}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,r=this.dataZoomModel;n.add(t.filler=new sH({draggable:!0,cursor:fH(this._orient),drift:uH(this._onDragMove,this,"all"),onmousemove:function(t){tH.stop(t.event)},ondragstart:uH(this._showDataInfo,this,!0),ondragend:uH(this._onDragEnd,this),onmouseover:uH(this._showDataInfo,this,!0),onmouseout:uH(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new sH(eH.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),cH([0,1],(function(t){var a=eH.createIcon(r.get("handleIcon"),{cursor:fH(this._orient),draggable:!0,drift:uH(this._onDragMove,this,t),onmousemove:function(t){tH.stop(t.event)},ondragend:uH(this._onDragEnd,this),onmouseover:uH(this._showDataInfo,this,!0),onmouseout:uH(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=a.getBoundingRect();this._handleHeight=aH.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,a.setStyle(r.getModel("handleStyle").getItemStyle());var s=r.get("handleColor");null!=s&&(a.style.fill=s),n.add(e[t]=a);var l=r.textStyleModel;this.group.add(i[t]=new eH.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[lH(t[0],[0,100],e,!0),lH(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];oH(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?lH(r.minSpan,o,a,!0):null,null!=r.maxSpan?lH(r.maxSpan,o,a,!0):null),this._range=hH([lH(n[0],a,o,!0),lH(n[1],a,o,!0)])},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=hH(i.slice()),a=this._size;cH([0,1],(function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,r=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,h=t?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();r=[this._formatLabel(h[0],s),this._formatLabel(h[1],s)]}}var u=hH(this._handleEnds.slice());function c(t){var e=eH.getTransform(i.handles[t].parent,this.group),o=eH.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=eH.applyTransform([u[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],textVerticalAlign:"horizontal"===a?"middle":o,textAlign:"horizontal"===a?o:"center",text:r[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return QW.isFunction(n)?n(t,r):QW.isString(n)?n.replace("{value}",r):r},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),a=eH.applyTransform([e,i],n,!0);this._updateInterval(t,a[0]);var r=this.dataZoomModel.get("realtime");this._updateView(!r),r&&r&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2;this._updateInterval("all",i[0]-a),this._updateView(),this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(cH(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});function fH(t){return"vertical"===t?"ns-resize":"ew-resize"}$W.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});var gH={},mH=b,vH=yw,yH=Ed,xH=mH.curry,_H="\0_ec_dataZoom_roams";function bH(t){var e=t.getZr();return e[_H]||(e[_H]={})}function wH(t){mH.each(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function SH(t,e,i,n,a,r,o){IH(t,(function(s){return s.panGetRange(t.controller,e,i,n,a,r,o)}))}function MH(t,e,i,n){IH(t,(function(a){return a.zoomGetRange(t.controller,e,i,n)}))}function IH(t,e){var i=[];mH.each(t.dataZoomInfos,(function(t){var n=e(t);!t.disabled&&n&&i.push({dataZoomId:t.dataZoomId,start:n[0],end:n[1]})})),t.dispatchAction(i)}function AH(t,e){t.dispatchAction({type:"dataZoom",batch:e})}gH.register=function(t,e){var i=bH(t),n=e.dataZoomId,a=e.coordId;mH.each(i,(function(t,i){var r=t.dataZoomInfos;r[n]&&mH.indexOf(e.allCoordIds,a)<0&&(delete r[n],t.count--)})),wH(i);var r=i[a];r||((r=i[a]={coordId:a,dataZoomInfos:{},count:0}).controller=function(t,e){var i=new vH(t.getZr());return i.on("pan",xH(SH,e)),i.on("zoom",xH(MH,e)),i}(t,r),r.dispatchAction=mH.curry(AH,t)),!r.dataZoomInfos[n]&&r.count++,r.dataZoomInfos[n]=e;var o,s,l,h,u=(o=r.dataZoomInfos,l={},h={true:2,move:1,false:0,undefined:-1},mH.each(o,(function(t){var e=!t.disabled&&(!t.zoomLock||"move");h[e]>h[s]&&(s=e),mH.extend(l,t.roamControllerOpt)})),{controlType:s,opt:l});r.controller.enable(u.controlType,u.opt),r.controller.setPointerChecker(e.containsPoint),yH.createOrUpdate(r,"dispatchAction",e.throttleRate,"fixRate")},gH.unregister=function(t,e){var i=bH(t);mH.each(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),wH(i)},gH.shouldRecordRange=function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var i=0,n=t.batch.length;i0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0];n=Math.max(1/n,0),o[0]=(o[0]-h)*n+h,o[1]=(o[1]-h)*n+h;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return LH(0,o,[0,100],0,u.minSpan,u.maxSpan),this._range=o}}}),OH={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=h[1]-h[0],o.pixelStart=h[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}};function zH(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function EH(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}m.registerProcessor((function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis(zH),t.eachTargetAxis(EH)})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)}))}));var RH=b,NH=AW;m.registerAction("dataZoom",(function(t,e){var i=NH.createLinkedNodesFinder(RH.bind(e.eachComponent,e,"dataZoom"),NH.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),RH.each(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}));var VH=b,BH=VH.each;function GH(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var WH=function(t){var e=t&&t.visualMap;VH.isArray(e)||(e=e?[e]:[]),BH(e,(function(t){if(t){GH(t,"splitList")&&!GH(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&VH.isArray(e)&&BH(e,(function(t){VH.isObject(t)&&(GH(t,"start")&&!GH(t,"min")&&(t.min=t.start),GH(t,"end")&&!GH(t,"max")&&(t.max=t.end))}))}}))};Zu.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}));var HH=m,FH=b,ZH=FB,UH=cI;function jH(t,e,i,n){for(var a=e.targetVisuals[n],r=UH.prepareVisualTypes(a),o={color:t.getData().getVisual("color")},s=0,l=r.length;s"],JH.isArray(t)&&(t=t.slice(),n=!0),a=e?t:n?[h(t[0]),h(t[1])]:h(t),JH.isString(l)?l.replace("{value}",n?a[0]:a).replace("{value2}",n?a[1]:a):JH.isFunction(l)?n?l(t[0],t[1]):l(t):n?t[0]===s[0]?i[0]+" "+a[1]:t[1]===s[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a;function h(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(o,20))}},resetExtent:function(){var t=this.option,e=hF([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.option,e={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),n=t.controller||(t.controller={});JH.merge(i,e),JH.merge(n,e);var a=this.isCategory();function r(e){sF(t.color)&&!e.inRange&&(e.inRange={color:t.color.slice().reverse()}),e.inRange=e.inRange||{color:dF},lF(this.stateList,(function(t){var i=e[t];if(JH.isString(i)){var n=tF.get(i,"active",a);n?(e[t]={},e[t][i]=n):delete e[t]}}),this)}r.call(this,i),r.call(this,n),function(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},lF(n,(function(t,e){if(eF.isValidType(e)){var i=tF.get(e,"inactive",a);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");lF(this.stateList,(function(r){var o=this.itemSize,s=t[r];s||(s=t[r]={color:a?n:[n]}),null==s.symbol&&(s.symbol=e&&JH.clone(e)||(a?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&JH.clone(i)||(a?o[0]:[o[0],o[0]])),s.symbol=rF(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var l=s.symbolSize;if(null!=l){var h=-1/0;oF(l,(function(t){t>h&&(h=t)})),s.symbolSize=rF(l,(function(t){return uF(t,[0,h],[0,o[0]],!0)}))}}),this)}.call(this,n)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:cF,getValueState:cF,getVisualMeta:cF}),fF=pF,gF=b,mF=fF,vF=dr,yF=[20,140],xF=mF.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){xF.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){xF.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=yF[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=yF[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):gF.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){mF.prototype.completeVisualOption.apply(this,arguments),gF.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=vF.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),!0,this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=_F(this,"outOfRange",this.getExtent()),i=_F(this,"inRange",this.option.range.slice()),n=[];function a(e,i){n.push({value:e,color:t(e,i)})}for(var r=0,o=0,s=i.length,l=e.length;ot[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new zF.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;BF([0,1],(function(o){var s=a[o];s.setStyle("fill",e.handlesColor[o]),s.position[1]=t[o];var l=zF.applyTransform(i.handleLabelPoints[o],zF.getTransform(s,this.group));r[o].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=VF(t,r,s,!0),h=this._shapes,u=h.indicator;if(u){u.position[1]=l,u.attr("invisible",!1),u.setShape("points",function(t,e,i,n){return t?[[0,-GF(e,WF(i,0))],[6,0],[0,GF(e,WF(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,o[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});u.setStyle("fill",c);var d=zF.applyTransform(h.indicatorLabelPoint,zF.getTransform(u,this.group)),p=h.indicatorLabel;p.attr("invisible",!1);var f=this._applyTransform("left",h.barGroup),g=this._orient;p.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===g?f:"middle",textAlign:"horizontal"===g?"center":f,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=GF(WF(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=GF(WF(a[0],t),a[1]);var o=function(t,e,i){var n=6,a=t.get("hoverLinkDataSize");a&&(n=VF(a,e,i,!0)/2);return n}(i,r,a),s=[t-o,t+o],l=VF(t,a,r,!0),h=[VF(s[0],a,r,!0),VF(s[1],a,r,!0)];s[0]a[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(l,h[1],"< ",o):h[1]===1/0?this._showIndicator(l,h[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,c=[];(e||ZF(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=NF.compressBatches(u,c);this._dispatchHighDown("downplay",RF.convertDataIndex(d[0])),this._dispatchHighDown("highlight",RF.convertDataIndex(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.getDimension(i.getDataDimension(a)),o=a.get(r,e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",RF.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=zF.getTransform(e,n?null:this.group);return zF[DF.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function FF(t,e,i,n){return new zF.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){kF.stop(t.event)},ondragend:n})}function ZF(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function UF(t){return"vertical"===t?"ns-resize":"ew-resize"}m.registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))})),m.registerPreprocessor(WH);var jF=b,qF=fF,XF=cI,YF=$H,$F=dr.reformIntervals,KF=qF.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){KF.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();JF[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=jF.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=jF.map(this._pieceList,(function(t){t=jF.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},i=XF.listVisualTypes(),n=this.isCategory();function a(t,e,i){return t&&t[e]&&(jF.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}jF.each(t.pieces,(function(t){jF.each(i,(function(i){t.hasOwnProperty(i)&&(e[i]=1)}))})),jF.each(e,(function(e,i){var r=0;jF.each(this.stateList,(function(e){r|=a(t,e,i)||a(t.target,e,i)}),this),!r&&jF.each(this.stateList,(function(e){(t[e]||(t[e]={}))[i]=YF.get(i,"inRange"===e?"active":"inactive",n)}))}),this),qF.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,jF.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)}),this),"single"===i.selectedMode){var r=!1;jF.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=jF.clone(t)},getValueState:function(t){var e=XF.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){XF.findPieceIndex(e,this._pieceList)===t&&n.push(i)}),!0,this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],i=[],n=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),(r=a[a.length-1].interval[1])!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var o=-1/0;return jF.each(a,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:i}}function s(a,r){var o=n.getRepresentValue({interval:a});r||(r=n.getValueState(o));var s=t(o,r);a[0]===-1/0?i[0]=s:a[1]===1/0?i[1]=s:e.push({value:a[0],color:s},{value:a[1],color:s})}}}),JF={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.toFixed(i);var o=0;t.minOpen&&e.push({index:o++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=o+a;o","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function QF(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var tZ=b,eZ=AF,iZ=Vr,nZ=Hf.createSymbol,aZ=wu,rZ=TF;eZ.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),r=n.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),h=l.endsText,u=tZ.retrieve(e.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],s,u,o),tZ.each(l.viewPieceList,(function(n){var l=n.piece,h=new iZ.Group;h.onclick=tZ.bind(this._onItemClick,this,l),this._enableHoverLink(h,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(h,c,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(c);h.add(new iZ.Text({style:{x:"right"===o?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:o,textFont:a,textFill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(h)}),this),h&&this._renderEndsText(t,h[1],s,u,o),aZ.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:rZ.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",tZ.bind(i,this,"highlight")).on("mouseout",tZ.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return rZ.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var r=new iZ.Group,o=this.visualMapModel.textStyleModel;r.add(new iZ.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=tZ.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(nZ(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=tZ.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[a]=!0,tZ.each(n,(function(t,e){n[e]=e===a}))):n[a]=!n[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}}),m.registerPreprocessor(WH);var oZ=m,sZ=b,lZ=_,hZ=ur,uZ=cr,cZ=uZ.addCommas,dZ=uZ.encodeHTML;function pZ(t){hZ.defaultEmphasis(t.label,["show"])}var fZ=oZ.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(lZ.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,r=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType),o=t[r];i&&i.data?(o?o.mergeOption(i,e,!0):(n&&pZ(i),sZ.each(i.data,(function(t){t instanceof Array?(pZ(t[0]),pZ(t[1])):pZ(t)})),o=new a(i,this,e),sZ.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),t[r]=o):t[r]=null}),this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=sZ.isArray(i)?sZ.map(i,cZ).join(", "):cZ(i),a=e.getName(t),r=dZ(this.name);return(null!=i||a)&&(r+="
"),a&&(r+=dZ(a),null!=i&&(r+=" : ")),null!=i&&(r+=dZ(n)),r},getData:function(){return this._data},setData:function(t){this._data=t}});sZ.mixin(fZ,hZ.dataFormatMixin);var gZ=fZ;gZ.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}});var mZ={},vZ=b,yZ=dr,xZ=vZ.indexOf;function _Z(t,e,i,n,a,r){var o=[],s=MZ(e,n,t),l=e.indicesOfNearest(n,s,!0)[0];o[a]=e.get(i,l,!0),o[r]=e.get(n,l,!0);var h=function(t,e,i){var n=-1;do{n=Math.max(yZ.getPrecision(t.get(e,i)),n),t=t.stackedOn}while(t);return n}(e,n,l);return(h=Math.min(h,20))>=0&&(o[r]=+o[r].toFixed(h)),o}var bZ=vZ.curry,wZ={min:bZ(_Z,"min"),max:bZ(_Z,"max"),average:bZ(_Z,"average")};function SZ(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(n.dataDimToCoordDim(a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0]):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0],a.valueDataDim=n.coordDimToDataDim(a.valueAxis.dim)[0]),a}function MZ(t,e,i){if("average"===i){var n=0,a=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,a++)}),!0),n/a}return t.getDataExtent(e,!0)["max"===i?1:0]}mZ.dataTransform=function(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!vZ.isArray(e.coord)&&n){var a=n.dimensions,r=SZ(e,i,n,t);if((e=vZ.clone(e)).type&&wZ[e.type]&&r.baseAxis&&r.valueAxis){var o=xZ(a,r.baseAxis.dim),s=xZ(a,r.valueAxis.dim);e.coord=wZ[e.type](i,r.baseDataDim,r.valueDataDim,o,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)if(wZ[l[h]]){var u=t.coordDimToDataDim(a[h])[0];l[h]=MZ(i,u,l[h])}e.coord=l}}return e},mZ.getAxisInfo=SZ,mZ.dataFilter=function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},mZ.dimValueGetter=function(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value},mZ.numCalculate=MZ;var IZ=b,AZ=m.extendComponentView({type:"marker",init:function(){this.markerGroupMap=IZ.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var a=this.type+"Model";e.eachSeries((function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}}),TZ=b,CZ=pm,LZ=dr,DZ=dp,PZ=mZ;function kZ(t,e,i){var n=e.coordinateSystem;t.each((function(a){var r,o=t.getItemModel(a),s=LZ.parsePercent(o.get("x"),i.getWidth()),l=LZ.parsePercent(o.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)r=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var h=t.get(n.dimensions[0],a),u=t.get(n.dimensions[1],a);r=n.dataToPoint([h,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),t.setItemLayout(a,r)}))}AZ.extend({type:"markPoint",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(kZ(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new CZ),h=function(t,e,i){var n;n=t?TZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})):[{name:"value",type:"float"}];var a=new DZ(n,i),r=TZ.map(i.get("data"),TZ.curry(PZ.dataTransform,e));t&&(r=TZ.filter(r,TZ.curry(PZ.dataFilter,t)));return a.initData(r,null,t?PZ.dimValueGetter:function(t){return t.value}),a}(a,t,e);e.setData(h),kZ(e.getData(),t,n),h.each((function(t){var i=h.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),h.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.normal.color")||o.getVisual("color"),symbol:i.getShallow("symbol")})})),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}})),gZ.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});var OZ=b,zZ=dp,EZ=dr,RZ=mZ,NZ=BA,VZ=function(t,e,i,n){var a=t.getData(),r=n.type;if(!OZ.isArray(n)&&("min"===r||"max"===r||"average"===r||null!=n.xAxis||null!=n.yAxis)){var o,s;if(null!=n.yAxis||null!=n.xAxis)o=null!=n.yAxis?"y":"x",e.getAxis(o),s=OZ.retrieve(n.yAxis,n.xAxis);else{var l=RZ.getAxisInfo(n,a,e,t);o=l.valueDataDim,l.valueAxis,s=RZ.numCalculate(a,o,r)}var h="x"===o?0:1,u=1-h,c=OZ.clone(n),d={};c.type=null,c.coord=[],d.coord=[],c.coord[u]=-1/0,d.coord[u]=1/0;var p=i.get("precision");p>=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=s,n=[c,d,{type:r,valueIndex:n.valueIndex,value:s}]}return(n=[RZ.dataTransform(t,n[0]),RZ.dataTransform(t,n[1]),OZ.extend({},n[2])])[2].type=n[2].type||"",OZ.merge(n[2],n[0]),OZ.merge(n[2],n[1]),n};function BZ(t){return!isNaN(t)&&!isFinite(t)}function GZ(t,e,i,n){var a=1-t,r=n.dimensions[t];return BZ(e[a])&&BZ(i[a])&&e[t]===i[t]&&n.getAxis(r).containData(e[t])}function WZ(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(GZ(1,i,n,t)||GZ(0,i,n,t)))return!0}return RZ.dataFilter(t,e[0])&&RZ.dataFilter(t,e[1])}function HZ(t,e,i,n,a){var r,o=n.coordinateSystem,s=t.getItemModel(e),l=EZ.parsePercent(s.get("x"),a.getWidth()),h=EZ.parsePercent(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=o.dimensions,c=t.get(u[0],e),d=t.get(u[1],e);r=o.dataToPoint([c,d])}if("cartesian2d"===o.type){var p=o.getAxis("x"),f=o.getAxis("y");u=o.dimensions;BZ(t.get(u[0],e))?r[0]=p.toGlobalCoord(p.getExtent()[i?0:1]):BZ(t.get(u[1],e))&&(r[1]=f.toGlobalCoord(f.getExtent()[i?0:1]))}isNaN(l)||(r[0]=l),isNaN(h)||(r[1]=h)}else r=[l,h];t.setItemLayout(e,r)}AZ.extend({type:"markLine",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each((function(e){HZ(a,e,!0,t,i),HZ(r,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new NZ);this.group.add(l.group);var h=function(t,e,i){var n;n=t?OZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})):[{name:"value",type:"float"}];var a=new zZ(n,i),r=new zZ(n,i),o=new zZ([],i),s=OZ.map(i.get("data"),OZ.curry(VZ,e,t,i));t&&(s=OZ.filter(s,OZ.curry(WZ,t)));var l=t?RZ.dimValueGetter:function(t){return t.value};return a.initData(OZ.map(s,(function(t){return t[0]})),null,l),r.initData(OZ.map(s,(function(t){return t[1]})),null,l),o.initData(OZ.map(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:a,to:r,line:o}}(a,t,e),u=h.from,c=h.to,d=h.line;e.__from=u,e.__to=c,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize");function g(e,i,a){var r=e.getItemModel(i);HZ(e,i,a,t,n),e.setItemVisual(i,{symbolSize:r.get("symbolSize")||f[a?0:1],symbol:r.get("symbol",!0)||p[a?0:1],color:r.get("itemStyle.normal.color")||o.getVisual("color")})}OZ.isArray(p)||(p=[p,p]),"number"==typeof f&&(f=[f,f]),h.from.each((function(t){g(u,t,!0),g(c,t,!1)})),d.each((function(t){var e=d.getItemModel(t).get("lineStyle.normal.color");d.setItemVisual(t,{color:e||u.getItemVisual(t,"color")}),d.setItemLayout(t,[u.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol")})})),l.updateData(d),h.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markLine=t.markLine||{}})),gZ.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}});var FZ=b,ZZ=Pt,UZ=dp,jZ=dr,qZ=Vr,XZ=mZ,YZ=function(t,e,i,n){var a=XZ.dataTransform(t,n[0]),r=XZ.dataTransform(t,n[1]),o=FZ.retrieve,s=a.coord,l=r.coord;s[0]=o(s[0],-1/0),s[1]=o(s[1],-1/0),l[0]=o(l[0],1/0),l[1]=o(l[1],1/0);var h=FZ.mergeAll([{},a,r]);return h.coord=[a.coord,r.coord],h.x0=a.x,h.y0=a.y,h.x1=r.x,h.y1=r.y,h};function $Z(t){return!isNaN(t)&&!isFinite(t)}function KZ(t,e,i,n){var a=1-t;return $Z(e[a])&&$Z(i[a])}function JZ(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!KZ(1,i,n)&&!KZ(0,i,n))||(XZ.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||XZ.dataFilter(t,{coord:n,x:e.x1,y:e.y1}))}function QZ(t,e,i,n,a){var r,o=n.coordinateSystem,s=t.getItemModel(e),l=jZ.parsePercent(s.get(i[0]),a.getWidth()),h=jZ.parsePercent(s.get(i[1]),a.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(i,e));else{var u=t.get(i[0],e),c=t.get(i[1],e);r=o.dataToPoint([u,c],!0)}if("cartesian2d"===o.type){var d=o.getAxis("x"),p=o.getAxis("y");u=t.get(i[0],e),c=t.get(i[1],e);$Z(u)?r[0]=d.toGlobalCoord(d.getExtent()["x0"===i[0]?0:1]):$Z(c)&&(r[1]=p.toGlobalCoord(p.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(h)||(r[1]=h)}else r=[l,h];return r}var tU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];AZ.extend({type:"markArea",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each((function(e){var a=FZ.map(tU,(function(a){return QZ(n,e,a,t,i)}));n.setItemLayout(e,a),n.getItemGraphicEl(e).setShape("points",a)}))}}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.name,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new qZ.Group});this.group.add(l.group),l.__keep=!0;var h=function(t,e,i){var n,a,r=["x0","y0","x1","y1"];t?(n=FZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})),a=new UZ(FZ.map(r,(function(t,e){return{name:t,type:n[e%2].type}})),i)):a=new UZ(n=[{name:"value",type:"float"}],i);var o=FZ.map(i.get("data"),FZ.curry(YZ,e,t,i));t&&(o=FZ.filter(o,FZ.curry(JZ,t)));var s=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(o,null,s),a.hasItemOption=!0,a}(a,t,e);e.setData(h),h.each((function(e){h.setItemLayout(e,FZ.map(tU,(function(i){return QZ(h,e,i,t,n)}))),h.setItemVisual(e,{color:o.getVisual("color")})})),h.diff(l.__data).add((function(t){var e=new qZ.Polygon({shape:{points:h.getItemLayout(t)}});h.setItemGraphicEl(t,e),l.group.add(e)})).update((function(t,i){var n=l.__data.getItemGraphicEl(i);qZ.updateProps(n,{shape:{points:h.getItemLayout(t)}},e,t),l.group.add(n),h.setItemGraphicEl(t,n)})).remove((function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,i){var n=h.getItemModel(i),a=n.getModel("label.normal"),r=n.getModel("label.emphasis"),o=h.getItemVisual(i,"color");t.useStyle(FZ.defaults(n.getModel("itemStyle.normal").getItemStyle(),{fill:ZZ.modifyAlpha(o,.4),stroke:o})),t.hoverStyle=n.getModel("itemStyle.emphasis").getItemStyle(),qZ.setLabelStyle(t.style,t.hoverStyle,a,r,{labelFetcher:e,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:o}),qZ.setHoverStyle(t,{}),t.dataModel=e})),l.__data=h,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markArea=t.markArea||{}}));var eU=b;function iU(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),r={normal:1,emphasis:1};eU.each(n,(function(t,e){r[e]||nU(a,e)||(a[e]=t)})),i.label&&!nU(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function nU(t,e){return t.hasOwnProperty(e)}var aU=function(t){var e=t&&t.timeline;eU.isArray(e)||(e=e?[e]:[]),eU.each(e,(function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};i[e]&&(t.axisType=i[e],delete t.type);if(iU(t),nU(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});nU(n,"position")||(n.position=t.controlPosition),"none"!==n.position||nU(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}eU.each(t.data||[],(function(t){eU.isObject(t)&&!eU.isArray(t)&&(!nU(t,"value")&&nU(t,"name")&&(t.value=t.name),iU(t))}))}(t)}))};Zu.registerSubTypeDefaulter("timeline",(function(){return"slider"}));var rU=m,oU=b;rU.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),oU.defaults({currentIndex:i.option.currentIndex},t)})),rU.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}));var sU=b,lU=dp,hU=ur,uU=Zu.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{color:"#000"},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){uU.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,n=this._names=[];if("category"===i){var a=[];sU.each(e,(function(t,e){var i,r=hU.getDataItemValue(t);sU.isObject(t)?(i=sU.clone(t)).value=e:i=e,a.push(i),sU.isString(r)||null!=r&&!isNaN(r)||(r=""),n.push(r+"")})),e=a}var r={category:"ordinal",time:"time"}[i]||"number";(this._data=new lU([{name:"value",type:r}],this)).initData(e,n)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),cU=b,dU=ur,pU=uU.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,color:"#304654"},emphasis:{show:!0,color:"#c23531"}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});cU.mixin(pU,dU.dataFormatMixin);var fU=Md.extend({type:"timeline"}),gU=b,mU=gg,vU=Rp,yU=function(t,e,i,n){mU.call(this,t,e,i),this.type=n||"value",this._autoLabelInterval,this.model=null};yU.prototype={constructor:yU,getLabelInterval:function(){var t,e=this.model,i=e.getModel("label.normal");return null!=(t=i.get("interval"))&&"auto"!=t||(t=this._autoLabelInterval)||(t=this._autoLabelInterval=vU.getAxisLabelInterval(gU.map(this.scale.getTicks(),this.dataToCoord,this),vU.getFormattedLabels(this,i.get("formatter")),i.getFont(),"horizontal"===e.get("orient")?0:90,i.get("rotate"))),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}}},gU.inherits(yU,mU);var xU=b,_U=Je,bU=mt,wU=Vr,SU=wu,MU=fU,IU=yU,AU=Hf.createSymbol,TU=Rp,CU=dr,LU=cr.encodeHTML,DU=xU.bind,PU=xU.each,kU=Math.PI;function OU(t,e,i,n,a,r){var o=e.get("color");if(a)a.setColor(o),i.add(a),r&&r.onUpdate(a);else{var s=t.get("symbol");(a=AU(s,-1,-1,2,2,o)).setStyle("strokeNoScale",!0),i.add(a),r&&r.onCreate(a)}var l=e.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(l),n=xU.merge({rectHover:!0,z2:100},n,!0);var h=t.get("symbolSize");(h=h instanceof Array?h.slice():[+h,+h])[0]/=2,h[1]/=2,n.scale=h;var u=t.get("symbolOffset");if(u){var c=n.position=n.position||[0,0];c[0]+=CU.parsePercent(u[0],h[0]),c[1]+=CU.parsePercent(u[1],h[1])}var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function zU(t,e,i,n,a){if(!t.dragging){var r=n.getModel("checkpointStyle"),o=i.dataToCoord(n.getData().get(["value"],e));a||!r.get("animation",!0)?t.attr({position:[o,0]}):(t.stopAnimation(!0),t.animateTo({position:[o,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}MU.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,t);t.formatTooltip=function(t){return LU(s.scale.getLabel(t))},PU(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](a,r,s,t)}),this),this._renderAxisLabel(a,o,s,t),this._position(a,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.normal.position"),n=t.get("orient"),a=function(t,e){return SU.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2=0||"+"===i?"left":"right"},u={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:kU/2},d="vertical"===n?a.height:a.width,p=t.getModel("controlStyle"),f=(y=p.get("show"))?p.get("itemSize"):0,g=y?p.get("itemGap"):0,m=f+g,v=t.get("label.normal.rotate")||0;v=v*kU/180;var y,x=p.get("position",!0),_=(y=p.get("show",!0))&&p.get("showPlayBtn",!0),b=y&&p.get("showPrevBtn",!0),w=y&&p.get("showNextBtn",!0),S=0,M=d;return"left"===x||"bottom"===x?(_&&(r=[0,0],S+=m),b&&(o=[S,0],S+=m),w&&(s=[M-f,0],M-=m)):(_&&(r=[M-f,0],M-=m),b&&(o=[0,0],S+=m),w&&(s=[M-f,0],M-=m)),l=[S,M],t.get("inverse")&&l.reverse(),{viewRect:a,mainLength:d,orient:n,rotation:c[n],labelRotation:v,labelPosOpt:i,labelAlign:t.get("label.normal.align")||h[n],labelBaseline:t.get("label.normal.verticalAlign")||t.get("label.normal.baseline")||u[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:f,controlGap:g}},_position:function(t,e){var i=this._mainGroup,n=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var r=bU.create(),o=a.x,s=a.y+a.height;bU.translate(r,r,[-o,-s]),bU.rotate(r,r,-kU/2),bU.translate(r,r,[o,s]),(a=a.clone()).applyTransform(r)}var l=m(a),h=m(i.getBoundingRect()),u=m(n.getBoundingRect()),c=i.position,d=n.position;d[0]=c[0]=l[0][0];var p,f=t.labelPosOpt;isNaN(f)?(v(c,h,l,1,p="+"===f?0:1),v(d,u,l,1,1-p)):(v(c,h,l,1,p=f>=0?0:1),d[1]=c[1]+f);function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}i.attr("position",c),n.attr("position",d),i.rotation=n.rotation=t.rotation,g(i),g(n)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=TU.createScaleByModel(e,n),r=i.getDataExtent("value");a.setExtent(r[0],r[1]),this._customizeScale(a,i),a.niceTicks();var o=new IU("value",a,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],(function(t){return t}))},t.getTicksLabels=function(){return xU.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new wU.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new wU.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:xU.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();PU(r,(function(t,r){var o=i.dataToCoord(t),s=a.getItemModel(r),l=s.getModel("itemStyle.normal"),h=s.getModel("itemStyle.emphasis"),u={position:[o,0],onclick:DU(this._changeTimeline,this,r)},c=OU(s,l,e,u);wU.setHoverStyle(c,h.getItemStyle()),s.get("tooltip")?(c.dataIndex=r,c.dataModel=n):c.dataIndex=c.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){var a=n.getModel("label.normal");if(a.get("show")){var r=n.getData(),o=i.scale.getTicks(),s=TU.getFormattedLabels(i,a.get("formatter")),l=i.getLabelInterval();PU(o,(function(n,a){if(!i.isLabelIgnored(a,l)){var o=r.getItemModel(a),h=o.getModel("label.normal"),u=o.getModel("label.emphasis"),c=i.dataToCoord(n),d=new wU.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:DU(this._changeTimeline,this,a),silent:!1});wU.setTextStyle(d.style,h,{text:s[a],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),wU.setHoverStyle(d,wU.setTextStyle({},u))}}),this)}},_renderControl:function(t,e,i,n){var a=t.controlSize,r=t.rotation,o=n.getModel("controlStyle.normal").getItemStyle(),s=n.getModel("controlStyle.emphasis").getItemStyle(),l=[0,-a/2,a,a],h=n.getPlayState(),u=n.get("inverse",!0);function c(t,i,h,u){if(t){var c=function(t,e,i,n){return wU.makePath(t.get(e).replace(/^path:\/\//,""),xU.clone(n||{}),new _U(i[0],i[1],i[2],i[3]),"center")}(n,i,l,{position:t,origin:[a/2,0],rotation:u?-r:0,rectHover:!0,style:o,onclick:h});e.add(c),wU.setHoverStyle(c,s)}}c(t.nextBtnPosition,"controlStyle.nextIcon",DU(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"controlStyle.prevIcon",DU(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),DU(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=DU(s._handlePointerDrag,s),t.ondragend=DU(s._handlePointerDragend,s),zU(t,r,i,n,!0)},onUpdate:function(t){zU(t,r,i,n)}};this._currentPointer=OU(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=CU.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),ii.getHeight()&&(n.textPosition="top",l=!0);var h=l?-5-o.height:r+8;s+o.width/2>i.getWidth()?(n.textPosition=["100%",h],n.textAlign="right"):s-o.width/2<0&&(n.textPosition=[0,h],n.textAlign="left")}}))}function h(h,u){var c,d=l[h],p=l[u],f=o[d],g=new HU(f,t,t.ecModel);if(d&&!p){if(function(t){return 0===t.indexOf("my")}(d))c={model:g,onclick:g.option.onclick,featureName:d};else{var m=GU.get(d);if(!m)return;c=new m(g,e,i)}s[d]=c}else{if(!(c=s[p]))return;c.model=g,c.ecModel=e,c.api=i}d||!p?g.get("show")&&!c.unusable?(!function(n,o,s){var l=n.getModel("iconStyle"),h=o.getIcons?o.getIcons():n.get("icon"),u=n.get("title")||{};if("string"==typeof h){var c=h,d=u;u={},(h={})[s]=c,u[s]=d}var p=n.iconPaths={};VU.each(h,(function(s,h){var c=WU.createIcon(s,{},{x:-r/2,y:-r/2,width:r,height:r});c.setStyle(l.getModel("normal").getItemStyle()),c.hoverStyle=l.getModel("emphasis").getItemStyle(),WU.setHoverStyle(c),t.get("showTitle")&&(c.__title=u[h],c.on("mouseover",(function(){var t=l.getModel("emphasis").getItemStyle();c.setStyle({text:u[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})})).on("mouseout",(function(){c.setStyle({textFill:null})}))),c.trigger(n.get("iconStatus."+h)||"normal"),a.add(c),c.on("click",VU.bind(o.onclick,o,e,i,h)),p[h]=c}))}(g,c,d),g.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},c.render&&c.render(g,e,i,n)):c.remove&&c.remove(e,i):c.dispose&&c.dispose(e,i)}},updateView:function(t,e,i,n){VU.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},updateLayout:function(t,e,i,n){VU.each(this._features,(function(t){t.updateLayout&&t.updateLayout(t.model,e,i,n)}))},remove:function(t,e){VU.each(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){VU.each(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});var UU=_,jU=YG,qU=KG.toolbox.saveAsImage;function XU(t){this.model=t}XU.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:qU.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:qU.lang.slice()},XU.prototype.unusable=!UU.canvasSupported,XU.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),r=i.get("type",!0)||"png";a.download=n+"."+r,a.target="_blank";var o=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=o,"function"!=typeof MouseEvent||UU.browser.ie||UU.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,h=new Uint8Array(l);l--;)h[l]=s.charCodeAt(l);var u=new Blob([h]);window.navigator.msSaveOrOpenBlob(u,n+"."+r)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var p=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(p)}},jU.register("saveAsImage",XU);var YU=m,$U=b,KU=YG,JU=KG.toolbox.magicType;function QU(t){this.model=t}QU.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:$U.clone(JU.title),option:{},seriesIndex:{}};var tj=QU.prototype;tj.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return $U.each(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i};var ej={line:function(t,e,i,n){if("bar"===t)return $U.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return $U.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return $U.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return $U.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},ij=[["line","bar"],["stack","tiled"]];tj.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(ej[i]){var r={series:[]};$U.each(ij,(function(t){$U.indexOf(t,i)>=0&&$U.each(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(e){var a=e.subType,o=e.id,s=ej[i](a,o,e,n);s&&($U.defaults(s,e.option),r.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var h=l.getAxesByScale("ordinal")[0];if(h){var u=h.dim+"Axis",c=t.queryComponents({mainType:u,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;r[u]=r[u]||[];for(var d=0;d<=c;d++)r[u][c]=r[u][c]||{};r[u][c].boundaryGap="bar"===i}}})),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:r})}},YU.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),KU.register("magicType",QU);var nj=m,aj=b,rj=fa,oj=YG,sj=KG.toolbox.dataView,lj=new Array(60).join("-");function hj(t){return aj.map(t,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,a=arguments[t-1],r=e.getName(a),o=0;o=0)return!0}(t)){var a=function(t){for(var e=t.split(/\n+/g),i=uj(e.shift()).split(cj),n=[],a=aj.map(i,(function(t){return{name:t,data:[]}})),r=0;r=0;a--){if(i[a][n])break}if(a<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var o=r.getPercentRange();i[0][n]={dataZoomId:n,start:o[0],end:o[1]}}}})),i.push(e)},gj.pop=function(t){var e=yj(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return mj(i,(function(t,i){for(var a=e.length-1;a>=0;a--){if(t=e[a][i]){n[i]=t;break}}})),n},gj.clear=function(t){t[vj]=null},gj.count=function(t){return yj(t).length},$W.extend({type:"dataZoom.select"}),JW.extend({type:"dataZoom.select"});var xj=m,_j=b,bj=aD,wj=MG,Sj=gj,Mj=RC,Ij=YG,Aj=KG.toolbox.dataZoom,Tj=_j.each;function Cj(t,e,i){(this._brushController=new bj(i.getZr())).on("brush",_j.bind(this._onBrush,this)).mount(),this._isZoomActive}Cj.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:_j.clone(Aj.title)};var Lj=Cj.prototype;Lj.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,function(t,e,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive);i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var o=new wj(Pj(t.option),e,{include:["grid"]});i._brushController.setPanels(o.makePanelOpts(a,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}(t,e,this,n,i),function(t,e){t.setIconStatus("back",Sj.count(e)>1?"emphasis":"normal")}(t,e)},Lj.onclick=function(t,e,i){Dj[i].call(this)},Lj.remove=function(t,e){this._brushController.unmount()},Lj.dispose=function(t,e){this._brushController.dispose()};var Dj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Sj.pop(this.ecModel))}};function Pj(t){var e={};return _j.each(["xAxisIndex","yAxisIndex"],(function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])})),e}Lj._onBrush=function(t,e){if(e.isEnd&&t.length){var i={},n=this.ecModel;this._brushController.updateCovers([]),new wj(Pj(this.model.option),n,{include:["grid"]}).matchOutputRanges(t,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(a("x",i,e[0]),a("y",i,e[1])):a({lineX:"x",lineY:"y"}[n],i,e)}})),Sj.push(n,i),this._dispatchZoomAction(i)}function a(t,e,a){var r=e.getAxis(t),o=r.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)})),n}(t,o,n),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(a=Mj(0,a.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}},Lj._dispatchZoomAction=function(t){var e=[];Tj(t,(function(t,i){e.push(_j.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},Ij.register("dataZoom",Cj),xj.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);_j.isArray(e)||(t.dataZoom=e=[e]);var i=t.toolbox;if(i&&(_j.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;a("xAxis",n),a("yAxis",n)}}function a(i,n){if(n){var a=i+"Index",r=n[a];null==r||"all"==r||_j.isArray(r)||(r=!1===r||"none"===r?[]:[r]),function(e,i){var n=t[e];_j.isArray(n)||(n=n?[n]:[]);Tj(n,i)}(i,(function(t,n){if(null==r||"all"==r||-1!==_j.indexOf(r,n)){var o={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+i+n};o[a]=n,e.push(o)}}))}}}));var kj=m,Oj=gj,zj=YG,Ej=KG.toolbox.restore;function Rj(t){this.model=t}Rj.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:Ej.title},Rj.prototype.onclick=function(t,e,i){Oj.clear(t),e.dispatchAction({type:"restore",from:this.uid})},zj.register("restore",Rj),kj.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Nj,Vj={},Bj=_,Gj="urn:schemas-microsoft-com:vml",Wj="undefined"==typeof window?null:window,Hj=!1,Fj=Wj&&Wj.document;if(Fj&&!Bj.canvasSupported)try{!Fj.namespaces.zrvml&&Fj.namespaces.add("zrvml",Gj),Nj=function(t){return Fj.createElement("')}}catch(PY){Nj=function(t){return Fj.createElement("<"+t+' xmlns="'+Gj+'" class="zrvml">')}}Vj.doc=Fj,Vj.createNode=function(t){return Nj(t)},Vj.initVML=function(){if(!Hj&&Fj){Hj=!0;var t=Fj.styleSheets;t.length<31?Fj.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};var Zj=_,Uj=U.applyTransform,jj=Je,qj=Pt,Xj=Ni,Yj=Ri,$j=Gn,Kj=jn,Jj=Jn,Qj=Hs,tq=ms,eq=Oo,iq=Rl,nq=Vj,aq=eq.CMD,rq=Math.round,oq=Math.sqrt,sq=Math.abs,lq=Math.cos,hq=Math.sin,uq=Math.max;if(!Zj.canvasSupported){var cq=21600,dq=cq/2,pq=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=cq+","+cq,t.coordorigin="0,0"},fq=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},gq=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},mq=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},vq=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},yq=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},xq=function(t,e,i){var n=qj.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=fq(n[0],n[1],n[2]),t.opacity=i*n[3])},_q=function(t){var e=qj.parse(t);return[fq(e[0],e[1],e[2]),e[3]]},bq=function(t,e,i,n){var a="fill"==e,r=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof iq&&mq(t,r),r||(r=nq.createNode(e)),a?function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof iq){var a,r=0,o=[0,0],s=0,l=1,h=i.getBoundingRect(),u=h.width,c=h.height;if("linear"===n.type){a="gradient";var d=i.transform,p=[n.x*u,n.y*c],f=[n.x2*u,n.y2*c];d&&(Uj(p,p,d),Uj(f,f,d));var g=f[0]-p[0],m=f[1]-p[1];(r=180*Math.atan2(g,m)/Math.PI)<0&&(r+=360),r<1e-6&&(r=0)}else{a="gradientradial",p=[n.x*u,n.y*c],d=i.transform;var v=i.scale,y=u,x=c;o=[(p[0]-h.x)/y,(p[1]-h.y)/x],d&&Uj(p,p,d),y/=v[0]*cq,x/=v[1]*cq;var _=uq(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort((function(t,e){return t.offset-e.offset}));for(var w=b.length,S=[],M=[],I=0;I=2){var C=S[0][0],L=S[1][0],D=S[0][1]*e.opacity,P=S[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=r,t.color=C,t.color2=L,t.colors=M.join(","),t.opacity=P,t.opacity2=D}"radial"===a&&(t.focusposition=o.join(","))}else xq(t,n,e.opacity)}(r,i,n):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof iq||xq(t,e.stroke,e.opacity)}(r,i),gq(t,r)):(t[a?"filled":"stroked"]="false",mq(t,r))},wq=[[],[],[]];tq.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=nq.createNode("shape"),pq(i),this._vmlEl=i),bq(i,"fill",e,this),bq(i,"stroke",e,this);var n=this.transform,a=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var o=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=oq(sq(s))}r.weight=o+"px"}var l=this.path||(this.path=new eq);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,a,r,o,s,l=aq.M,h=aq.C,u=aq.L,c=aq.A,d=aq.Q,p=[],f=t.data,g=t.len();for(r=0;r.01?O&&(z+=270/cq):Math.abs(E-C)<1e-4?O&&zT?x-=270/cq:x+=270/cq:O&&EC?y+=270/cq:y-=270/cq),p.push(R,rq(((T-L)*M+w)*cq-dq),",",rq(((C-D)*I+S)*cq-dq),",",rq(((T+L)*M+w)*cq-dq),",",rq(((C+D)*I+S)*cq-dq),",",rq((z*M+w)*cq-dq),",",rq((E*I+S)*cq-dq),",",rq((y*M+w)*cq-dq),",",rq((x*I+S)*cq-dq)),o=y,s=x;break;case aq.R:var N=wq[0],V=wq[1];N[0]=f[r++],N[1]=f[r++],V[0]=N[0]+f[r++],V[1]=N[1]+f[r++],e&&(Uj(N,N,e),Uj(V,V,e)),N[0]=rq(N[0]*cq-dq),V[0]=rq(V[0]*cq-dq),N[1]=rq(N[1]*cq-dq),V[1]=rq(V[1]*cq-dq),p.push(" m ",N[0],",",N[1]," l ",V[0],",",N[1]," l ",V[0],",",V[1]," l ",N[0],",",V[1]);break;case aq.Z:p.push(" x ")}if(i>0){p.push(n);for(var B=0;B100&&(Iq=0,Mq={});var i,n=Aq.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(PY){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},Mq[t]=e,Iq++}return e}(a.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||Xj.getBoundingRect(r,m,p,f);var v=this.transform;if(v&&!n&&(Tq.copy(e),Tq.applyTransform(v),e=Tq),n)c=e.x,d=e.y;else{var y=a.textPosition,x=a.textDistance;if(y instanceof Array)c=e.x+yq(y[0],e.width),d=e.y+yq(y[1],e.height),p=p||"left";else{var _=Xj.adjustTextPositionOnRect(y,e,x);c=_.x,d=_.y,p=p||_.textAlign,f=f||_.textVerticalAlign}}c=Xj.adjustTextX(c,i.width,p),d=Xj.adjustTextY(d,i.height,f),d+=i.height/2;var b,w,S,M=nq.createNode,I=this._textVmlEl;I?w=(b=(S=I.firstChild).nextSibling).nextSibling:(I=M("line"),b=M("path"),w=M("textpath"),S=M("skew"),w.style["v-text-align"]="left",pq(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",gq(I,S),gq(I,b),gq(I,w),this._textVmlEl=I);var A=[c,d],T=I.style;v&&n?(Uj(A,A,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(rq(A[0])||0)+","+(rq(A[1])||0),S.origin="0 0",T.left="0px",T.top="0px"):(S.on=!1,T.left=rq(c)+"px",T.top=rq(d)+"px"),w.string=String(r).replace(/&/g,"&").replace(/"/g,""");try{w.style.font=m}catch(PY){}bq(I,"fill",{fill:a.textFill,opacity:a.opacity},this),bq(I,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),I.style.zIndex=vq(this.zlevel,this.z,this.z2),gq(t,I)}},Lq=function(t){mq(t,this._textVmlEl),this._textVmlEl=null},Dq=function(t){gq(t,this._textVmlEl)},Pq=[$j,Kj,Jj,tq,Qj],kq=0;kq-1e-4}function aX(t,e){e&&rX(t,"transform","matrix("+Xq.call(e,",")+")")}function rX(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function oX(t,e,i){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==Yq}(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?Yq:n,"none"!==t.getAttribute("clip-path")&&n===Yq&&(n="rgba(0, 0, 0, 0.002)"),rX(t,"fill",n),rX(t,"fill-opacity",e.opacity)}else rX(t,"fill",Yq);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==Yq}(e,i)){var a=i?e.textStroke:e.stroke;rX(t,"stroke",a="transparent"===a?Yq:a),rX(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(e.strokeNoScale?e.host.getLineScale():1)),rX(t,"paint-order","stroke"),rX(t,"stroke-opacity",e.opacity),e.lineDash?(rX(t,"stroke-dasharray",e.lineDash.join(",")),rX(t,"stroke-dashoffset",$q(e.lineDashOffset||0))):rX(t,"stroke-dasharray",""),e.lineCap&&rX(t,"stroke-linecap",e.lineCap),e.lineJoin&&rX(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&rX(t,"stroke-miterlimit",e.miterLimit)}else rX(t,"stroke",Yq)}var sX={};sX.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=Hq("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var a=function(t){for(var e=[],i=t.data,n=t.len(),a=0;a=tX||!nX(g)&&(d>-Qq&&d<0||d>Qq)==!!f;var y=iX(s+h*Jq(c)),x=iX(l+u*Kq(c));m&&(d=f?tX-1e-4:1e-4-tX,v=!0,9===a&&e.push("M",y,x));var _=iX(s+h*Jq(c+d)),b=iX(l+u*Kq(c+d));e.push("A",iX(h),iX(u),$q(p*eX),+v,+f,_,b);break;case qq.Z:r="Z";break;case qq.R:_=iX(i[a++]),b=iX(i[a++]);var w=iX(i[a++]),S=iX(i[a++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+S,"L",_,b+S,"L",_,b)}r&&e.push(r);for(var M=0;M=a&&h+1>=r){for(var u=[],c=0;c=a&&c+1>=r)return fX(n,s.components);l[i]=s}else l[i]=void 0}var f;o++}for(;o<=s;){var p=d();if(p)return p}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var a=e.length,r=i.length,o=t.newPos,s=o-n,l=0;o+1=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},AX.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t._dom&&i.contains(t._dom))"function"==typeof e&&e();else{var n=this.add(t);n&&(t._dom=n)}}},AX.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},AX.prototype.removeDom=function(t){this.getDefs(!1).removeChild(t._dom)},AX.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return yX.each(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},AX.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;yX.each(t,(function(t){t[e._markLabel]="0"}))},AX.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},AX.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;yX.each(e,(function(e){"1"!==e[i._markLabel]&&t.removeChild(e)}))}},AX.prototype.getSvgProxy=function(t){return t instanceof xX?SX:t instanceof _X?MX:t instanceof bX?IX:SX},AX.prototype.getTextSvgElement=function(t){return t.__textSvgEl},AX.prototype.getSvgElement=function(t){return t.__svgEl};var TX=AX,CX=TX,LX=b,DX=Ae;function PX(t){CX.call(this,t,["linearGradient","radialGradient"],"__gradient_in_use__")}LX.inherits(PX,CX),PX.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;LX.each(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},PX.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return DX("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},PX.prototype.update=function(t){var e=this;CX.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},PX.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void DX("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n0){var n,a,r=this.getDefs(!0),o=e[0],s=i?"_textDom":"_dom";o[s]?(a=o[s].getAttribute("id"),n=o[s],r.contains(n)||r.appendChild(n)):(a="zr-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),r.appendChild(n),o[s]=n);var l=this.getSvgProxy(o);if(o.transform&&o.parent.invTransform&&!i){var h=Array.prototype.slice.call(o.transform);EX.mul(o.transform,o.parent.invTransform,o.transform),l.brush(o),o.transform=h}else l.brush(o);var u=this.getSvgElement(o);n.appendChild(u.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},RX.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&zX.each(t.__clipPaths,(function(t){t._dom&&OX.prototype.markUsed.call(e,t._dom),t._textDom&&OX.prototype.markUsed.call(e,t._textDom)}))};var NX=RX,VX=Wq.createElement,BX=b,GX=BX.each,WX=Ae,HX=ms,FX=Jn,ZX=Hs,UX=mX,jX=kX,qX=NX,XX=Gq,YX=XX.path,$X=XX.image,KX=XX.text;function JX(t){return parseInt(t,10)}function QX(t,e){return e&&t&&e.parentNode!==t}function tY(t,e,i){if(QX(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function eY(t,e){if(QX(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function iY(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function nY(t){return t.__textSvgEl}function aY(t){return t.__svgEl}var rY=function(t,e,i){this.root=t,this.storage=e,this._opts=i=BX.extend({},i||{});var n=VX("svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style["user-select"]="none",n.style.cssText="position:absolute;left:0;top:0;",this.gradientManager=new jX(n),this.clipPathManager=new qX(n);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=n,this._viewport=a,t.appendChild(a),a.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]};rY.prototype={constructor:rY,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused();var e,i,n=this._svgRoot,a=this._visibleList,r=t.length,o=[];for(e=0;e=0;--n)if(i[n]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t&&this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgRoot;r.setAttribute("width",t),r.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||JX(s[i])||JX(o.style[i]))-(JX(s[a])||0)-(JX(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToSvg:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:img/svg+xml;utf-8,"+unescape(t)}},GX(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){var e;rY.prototype[t]=(e=t,function(){WX('In SVG mode painter not support method "'+e+'"')})}));var oY=rY;(0,v.registerPainter)("svg",oY),function(t){var e=m;!function(){for(var i in e){if(null==e||!e.hasOwnProperty(i)||"default"===i||"__esModule"===i)return;t[i]=e[i]}}();var i=Ud;!function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}}()}(g);const sY={class:"market-temperature"},lY={class:"container"},hY={class:"border3"},uY={class:"chart-section"},cY={class:"border4"},dY={class:"border1"},pY={class:"title"},fY=["src"],gY={class:"titleContent"},mY={class:"secondTitle"},vY={class:"secondTitleItem"},yY={class:"calendar"},xY={key:0,class:"month"},_Y={class:"monthContent"},bY={class:"calendarItemTitle"},wY={key:1,class:"calendarItemContent"},SY=["src"],MY={key:2,class:"calendarItemContent"},IY={key:3,class:"calendarItemContent"},AY={key:0},TY={key:1},CY={__name:"marketTemperature",props:{companyName:{type:String,default:""},stockCode:{type:String,default:""}},setup(t,{expose:e}){const m=t,v=i(["#32A3FF","#2BD977","#A239FF","#FF7945","#FF5289","#5791CB"]),y=i(["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]),x=i(),_=i(["周一","周二","周三","周四","周五","周六","周日"]),b=i(),w=i([]),S=i([]);let M=null;const I=["NDX","DJIA","SPX","STI","KLSE","TSX","N225","KS11","JKSE","1A0001","HSI","I63","VNINDE"],A=n((()=>I.includes(m.stockCode))),T=i([]);function C(){const t=document.querySelector(".border4 .el-table");if(t){const e=t.offsetWidth/7,i=Math.min(.15*e,20),n=document.querySelectorAll(".WDRL_date"),a=document.querySelectorAll(".WDRL_data");n.forEach((t=>{t.style.fontSize=`${i}px`})),a.forEach((t=>{t.style.fontSize=.8*i+"px"}))}}return a((()=>{M&&(M.dispose(),M=null),window.marketTempResizeHandler&&(window.removeEventListener("resize",window.marketTempResizeHandler),window.marketTempResizeHandler=null),window.marketTempContainerObserver&&(window.marketTempContainerObserver.disconnect(),window.marketTempContainerObserver=null)})),e({initChart:function(t,e,n){if(!t||!e||!n)return void console.error("initChart: raw, klineDataRawValue or WDRLValue is undefined");console.log(m),M&&(M.dispose(),M=null);const a=e.map((t=>[t[1],t[2],t[3],t[4]]));let r=1/0,o=-1/0;e.forEach((t=>{const e=t[3],i=t[4];r=Math.min(r,e),o=Math.max(o,i)}));const s=Math.floor(r),l=Math.ceil(o);w.value=n,S.value=e,(()=>{const t=i([]);T.value=JSON.parse(JSON.stringify(w.value));for(let i=0;it[0])),u=t.map((t=>Math.round(t[1]))),c=t.map((t=>Math.round(t[2]))),d=c.every(((t,e)=>t===u[e])),p=d?c.map((()=>null)):c;M=g.init(b.value),M.setOption({tooltip:{trigger:"axis",confine:!0,position:function(t,e,i,n,a){const r=a.viewSize[0],o=a.viewSize[1],s=a.contentSize[0],l=a.contentSize[1];if(window.innerWidth<=768)return{top:10,left:Math.max(10,(r-s)/2)};{let e=t[0],i=t[1];return e+s>r&&(e=r-s-10),i+l>o&&(i=o-l-10),[Math.max(10,e),Math.max(10,i)]}},axisPointer:{type:"cross",crossStyle:{color:"#999",width:1,type:"dashed"},lineStyle:{color:"#999",width:1,type:"dashed"}},backgroundColor:"#646E71",borderColor:"#fff",borderWidth:1,padding:[8,12],textStyle:{color:"#fff",fontSize:window.innerWidth<=768?10:12},extraCssText:window.innerWidth<=768?"max-width: 280px; word-wrap: break-word; white-space: normal; box-shadow: 0 2px 8px rgba(0,0,0,0.3);":"max-width: 350px; word-wrap: break-word; white-space: normal; box-shadow: 0 2px 8px rgba(0,0,0,0.3);",formatter:function(t){if(t&&t.length>0){const e=window.innerWidth<=768,i=e?"10px":"12px",n=e?"1.3":"1.5",a=e?"4px":"6px";let r=`
日期: ${t[0].name}
`;return t.forEach((t=>{if("candlestick"===t.seriesType){const o=t.data[1],s=t.data[2],l=t.data[3],h=t.data[4];e?(r+=`
`,r+=`
${t.seriesName}
`,r+=`
开盘价:${o}
`,r+=`
收盘价:${s}
`,r+=`
最低价:${l}
`,r+=`
最高价:${h}
`,r+="
"):(r+=`
`,r+=`
${t.seriesName}
`,r+=`
开盘价: ${o}
`,r+=`
收盘价: ${s}
`,r+=`
最低价: ${l}
`,r+=`
最高价: ${h}
`,r+="
")}else"line"===t.seriesType&&(r+=`
${t.seriesName}: ${t.value}
`)})),r}return""}},legend:{data:["K线","股票温度","市场温度"],textStyle:{color:"white",fontSize:window.innerWidth<=768?14:18}},grid:{left:window.innerWidth<=768?"15%":"100px",right:window.innerWidth<=768?"40px":"100px",top:window.innerWidth<=768?"40px":"60px",bottom:window.innerWidth<=768?"60px":"80px",containLabel:!1,height:window.innerWidth<=768?"200px":"300px",width:window.innerWidth<=768?"70%":"80%"},xAxis:{type:"category",data:h,axisLine:{lineStyle:{color:"#00BFFF"}},axisLabel:{color:"#FFFFFF",fontSize:12,fontWeight:"bold"},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"white",width:1,type:"dashed"}},axisPointer:{show:!0,type:"line",lineStyle:{color:"#999",width:1,type:"dashed"},label:{show:!0,color:"black"}},splitLine:{show:!1,lineStyle:{color:"#999",width:1,type:"dashed",opacity:.3}}},yAxis:[{min:s,max:l,axisLine:{lineStyle:{color:"#00FF7F"}},axisLabel:{color:"#FFFFFF",fontSize:window.innerWidth<=768?10:12,fontWeight:"bold",formatter:function(t){return t.toString()},margin:8},axisTick:{lineStyle:{color:"#00FF7F"}},splitLine:{show:!1,lineStyle:{color:"#333333",type:"solid",opacity:.3}},axisPointer:{show:!0,type:"line",label:{show:!0,color:"black"},lineStyle:{color:"#999",width:1,type:"dashed"}}},{min:0,max:100,position:"right",axisLabel:{color:"#FFFF00",fontSize:window.innerWidth<=768?10:12,fontWeight:"bold",margin:8},axisLine:{lineStyle:{color:"#FF1493",width:2}},axisTick:{lineStyle:{color:"#FF1493"}},splitLine:{show:!1,lineStyle:{color:"#444444",type:"solid",opacity:.3}},axisPointer:{show:!0,type:"line",lineStyle:{color:"#999",width:1,type:"dashed"},label:{show:!0,color:"black"}}}],color:["#f00","white"],series:[{name:"K线",type:"candlestick",data:a,z:1,itemStyle:{normal:{color:"#00FF00",color0:"#FF0000",borderColor:"#00FF00",borderColor0:"#FF0000"}}},{name:"股票温度",type:"line",yAxisIndex:1,data:p,z:2,connectNulls:!1,lineStyle:{width:2},symbol:"circle",symbolSize:4},{name:"市场温度",type:"line",yAxisIndex:1,data:u,z:3,lineStyle:{width:2},symbol:"circle",symbolSize:4}],dataZoom:[{type:"slider",xAxisIndex:0,filterMode:"filter",textStyle:{color:"white"},start:50,end:100,bottom:"0%"},{type:"inside",xAxisIndex:0,filterMode:"filter"}]}),M&&(M.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),M.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})));const y=(t,e)=>{let i;return function(...n){clearTimeout(i),i=setTimeout((()=>{clearTimeout(i),t(...n)}),e)}},_=y((()=>{if(M&&!M.isDisposed())try{M.resize(),C(),console.log("股市温度计图表已重新调整大小")}catch(t){console.error("股市温度计图表resize失败:",t)}}),100);window.marketTempResizeHandler&&window.removeEventListener("resize",window.marketTempResizeHandler),window.addEventListener("resize",_),window.marketTempResizeHandler=_;const I=document.querySelector(".KlineClass");if(I&&window.ResizeObserver){const t=new ResizeObserver(y((()=>{if(M&&!M.isDisposed())try{M.resize(),console.log("股市温度计容器大小变化,图表已调整")}catch(t){console.error("股市温度计容器resize失败:",t)}}),100));t.observe(I),window.marketTempContainerObserver=t}C()}}),(t,e)=>(r(),o("div",sY,[s("div",lY,[s("div",hY,[s("section",uY,[s("div",null,[l('
\r\n {{ companyName }}\r\n {{ stockCode }}\r\n
'),s("div",{ref_key:"KlineCanvs",ref:b,class:"KlineClass"},null,512)])])]),s("div",cY,[s("div",dY,[s("div",pY,[s("img",{src:h("/aixiaocaishen/static/images/标题-d851a441.png"),alt:"标题",class:"titleImg"},null,8,fY),s("div",gY,u(x.value),1)]),s("div",mY,[(r(!0),o(c,null,d(_.value,(t=>(r(),o("div",{key:t,class:"secondTitleItems"},[s("div",vY,u(t),1)])))),128))]),s("div",yY,[(r(),o(c,null,d(5,(t=>s("div",{key:t,class:"calendarCol"},[(r(!0),o(c,null,d(T.value.slice(7*(t-1),7*t),(t=>(r(),o("div",{key:t,class:"calendarRow"},[s("div",{class:"calendarItem",style:p({backgroundColor:t.color})},[t.month?(r(),o("div",xY,[s("div",_Y,u(y.value[t.month-1]),1)])):l("v-if",!0),s("div",bY,u(t.day),1),""==t.stock_temperature?(r(),o("div",wY,[s("img",{src:h("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAAAXNSR0IArs4c6QAAAj5JREFUWEftl7FrFEEUxr93im/mbjEolkpQQdRCJHaCCgrxHzBYphJsRAKKgq2FhQGxsFY7UVtBE0GxtbEQBEEjKkEQDIi3M4e7n6zkjs3e3d7c7QkWN+XOe9/+eG/eezOCIZf3fj/JcwBOAZgGYACsisirNE3vW2ufDykJCXUgqd77RQDnAWwq8VtKkmS+0WishmoHQawDPAFwMlD4K8lj1tqPIfZBEM65WwAuhgjmbN6q6oyItAb5DYRwzu0F8A7A5pzYZxG52mq1lqMo8nEcH6zVagsA5go/vGyMuVkZwnt/jeT1nNAaycPW2k9FcefcbQAXct/fG2P2VYZwzj0EcCYntGiMudRLmOSU9/4bAG3vq+o2EVkrAwlJxwsAJ9oiIjKnqo/6iTrnXgM40t4nudtau1IV4iWA4zmR08aYZyUQWZ/oVBHJPYOqJCQSRYhZY8xSCcTyeiP7azKByJ2J6ukgWS+06VhEfvdLRw/7XyKSjnQwSW4BUBtU40PsexFhL/uugxnH8bSIPAYwA4QPuACYHyQXrLX3irZdEN77uyTnA0RHMWmp6g4R+Zl37oJwzm1oTqP8qTT/IgdUNZtFnTWB6IyCYugm6WhHZBKJSST+1+p4CmB23J2yrZem6a56vf5lUMe8AeDKP4L4YIzJnhAbVlfbbjabO0XkjYhsHzMIReSsqma393KIbNd7f4jkHQBHxzTOV7LHkqo+CLpP5I1Ibo3jeKpKRJIkcVEUfe93ocm0B962qwCE+v4BZnoUMEqdbwsAAAAASUVORK5CYII="),alt:"锁定",class:"ciImg"},null,8,SY)])):"休市"==t.stock_temperature?(r(),o("div",MY," 休市 ")):(r(),o("div",IY,[A.value?(r(),o("div",AY,u(t.market_temperature),1)):(r(),o("div",TY,u(t.market_temperature)+" | "+u(t.stock_temperature),1))]))],4)])))),128))]))),64))])]),l(' \r\n \r\n \r\n\r\n ')])])]))}};var LY=e(CY,[["__scopeId","data-v-5d79aa79"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/marketTemperature.vue"]]),DY=Object.freeze(Object.defineProperty({__proto__:null,default:LY},Symbol.toStringTag,{value:"Module"}));export{DY as a,g as e,LY as m}; +import{l as t,_ as e,r as i,k as n,a8 as a,b as r,c as o,e as s,d as l,f as h,C as u,F as c,A as d,X as p}from"./index-7d881374.js";import{h as f}from"./moment-6961f857.js";var g={},m={};"undefined"!=typeof window||void 0!==t&&t.__DEV__;var v={},y=2311;var x=function(){return y++};var _="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0,svgSupported:!0}:function(t){var e={},i={},n=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(t);n&&(i.firefox=!0,i.version=n[1]);a&&(i.ie=!0,i.version=a[1]);r&&(i.edge=!0,i.version=r[1]);o&&(i.weChat=!0);return{browser:i,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!=typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11)}}(navigator.userAgent),b={},w={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},S={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},M=Object.prototype.toString,I=Array.prototype,A=I.forEach,T=I.filter,C=I.slice,L=I.map,D=I.reduce,P={};function k(t){if(null==t||"object"!=typeof t)return t;var e=t,i=M.call(t);if("[object Array]"===i){e=[];for(var n=0,a=t.length;n3&&(e=at.call(e,1));for(var n=this._$handlers[t],a=n.length,r=0;r4&&(e=at.call(e,1,e.length-1));for(var n=e[e.length-1],a=this._$handlers[t],r=a.length,o=0;o=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=ft(n[r],t,e))&&(!a.topTarget&&(a.topTarget=n[r]),"silent"!==o)){a.target=n[r];break}}return a}},st.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){pt.prototype[t]=function(e){var i=this.findHover(e.zrX,e.zrY),n=i.target;if("mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mosueup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||lt.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),st.mixin(pt,ut),st.mixin(pt,ht);var gt=pt,mt={},vt="undefined"==typeof Float32Array?Array:Float32Array;function yt(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}mt.create=function(){var t=new vt(6);return yt(t),t},mt.identity=yt,mt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},mt.mul=function(t,e,i){var n=e[0]*i[0]+e[2]*i[1],a=e[1]*i[0]+e[3]*i[1],r=e[0]*i[2]+e[2]*i[3],o=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=a,t[2]=r,t[3]=o,t[4]=s,t[5]=l,t},mt.translate=function(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t},mt.rotate=function(t,e,i){var n=e[0],a=e[2],r=e[4],o=e[1],s=e[3],l=e[5],h=Math.sin(i),u=Math.cos(i);return t[0]=n*u+o*h,t[1]=-n*h+o*u,t[2]=a*u+s*h,t[3]=-a*h+u*s,t[4]=u*r+h*l,t[5]=u*l-h*r,t},mt.scale=function(t,e,i){var n=i[0],a=i[1];return t[0]=e[0]*n,t[1]=e[1]*a,t[2]=e[2]*n,t[3]=e[3]*a,t[4]=e[4]*n,t[5]=e[5]*a,t},mt.invert=function(t,e){var i=e[0],n=e[2],a=e[4],r=e[1],o=e[3],s=e[5],l=i*o-r*n;return l?(l=1/l,t[0]=o*l,t[1]=-r*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-o*a)*l,t[5]=(r*a-i*s)*l,t):null};var xt=mt,_t=U,bt=xt.identity;function wt(t){return t>5e-5||t<-5e-5}var St=function(t){(t=t||{}).position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},Mt=St.prototype;Mt.transform=null,Mt.needLocalTransform=function(){return wt(this.rotation)||wt(this.position[0])||wt(this.position[1])||wt(this.scale[0]-1)||wt(this.scale[1]-1)},Mt.updateTransform=function(){var t=this.parent,e=t&&t.transform,i=this.needLocalTransform(),n=this.transform;i||e?(n=n||xt.create(),i?this.getLocalTransform(n):bt(n),e&&(i?xt.mul(n,t.transform,n):xt.copy(n,t.transform)),this.transform=n,this.invTransform=this.invTransform||xt.create(),xt.invert(this.invTransform,n)):n&&bt(n)},Mt.getLocalTransform=function(t){return St.getLocalTransform(this,t)},Mt.setTransform=function(t){var e=this.transform,i=t.dpr||1;e?t.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):t.setTransform(i,0,0,i,0,0)},Mt.restoreTransform=function(t){var e=t.dpr||1;t.setTransform(e,0,0,e,0,0)};var It=[];Mt.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(xt.mul(It,t.invTransform,e),e=It);var i=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],a=this.position,r=this.scale;wt(i-1)&&(i=Math.sqrt(i)),wt(n-1)&&(n=Math.sqrt(n)),e[0]<0&&(i=-i),e[3]<0&&(n=-n),a[0]=e[4],a[1]=e[5],r[0]=i,r[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/i)}},Mt.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),i=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(i=-i),[e,i]},Mt.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&_t.applyTransform(i,i,n),i},Mt.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&_t.applyTransform(i,i,n),i},St.getLocalTransform=function(t,e){bt(e=e||[]);var i=t.origin,n=t.scale||[1,1],a=t.rotation||0,r=t.position||[0,0];return i&&(e[4]-=i[0],e[5]-=i[1]),xt.scale(e,e,n),a&&xt.rotate(e,e,a),i&&(e[4]+=i[0],e[5]+=i[1]),e[4]+=r[0],e[5]+=r[1],e};var At=St,Tt={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,i=.1,n=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=n*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Tt.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Tt.bounceIn(2*t):.5*Tt.bounceOut(2*t-1)+.5}},Ct=Tt;function Lt(t){this._target=t.target,this._life=t.life||1e3,this._delay=t.delay||0,this._initialized=!1,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this._pausedTime=0,this._paused=!1}Lt.prototype={constructor:Lt,step:function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),this._paused)this._pausedTime+=e;else{var i=(t-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var n=this.easing,a="string"==typeof n?Ct[n]:n,r="function"==typeof a?a(i):i;return this.fire("frame",r),1==i?this.loop?(this.restart(t),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(t,e){this[t="on"+t]&&this[t](this._target,e)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var Dt=Lt,Pt={},kt=function(){this.head=null,this.tail=null,this._len=0},Ot=kt.prototype;Ot.insert=function(t){var e=new zt(t);return this.insertEntry(e),e},Ot.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},Ot.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},Ot.len=function(){return this._len},Ot.clear=function(){this.head=this.tail=null,this._len=0};var zt=function(t){this.value=t,this.next,this.prev},Et=function(t){this._list=new kt,this._map={},this._maxSize=t||10,this._lastRemovedEntry=null},Rt=Et.prototype;Rt.put=function(t,e){var i=this._list,n=this._map,a=null;if(null==n[t]){var r=i.len(),o=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=i.head;i.remove(s),delete n[s.key],a=s.value,this._lastRemovedEntry=s}o?o.value=e:o=new zt(e),o.key=t,i.insertEntry(o),n[t]=o}return a},Rt.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},Rt.clear=function(){this._list.clear(),this._map={}};var Nt=Et,Vt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Bt(t){return(t=Math.round(t))<0?0:t>255?255:t}function Gt(t){return t<0?0:t>1?1:t}function Wt(t){return t.length&&"%"===t.charAt(t.length-1)?Bt(parseFloat(t)/100*255):Bt(parseInt(t,10))}function Ht(t){return t.length&&"%"===t.charAt(t.length-1)?Gt(parseFloat(t)/100):Gt(parseFloat(t))}function Ft(t,e,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function Zt(t,e,i){return t+(e-t)*i}function Ut(t,e,i,n,a){return t[0]=e,t[1]=i,t[2]=n,t[3]=a,t}function jt(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var qt=new Nt(20),Xt=null;function Yt(t,e){Xt&&jt(Xt,e),Xt=qt.put(t,Xt||e.slice())}function $t(t,e){if(t){e=e||[];var i=qt.get(t);if(i)return jt(e,i);var n,a=(t+="").replace(/ /g,"").toLowerCase();if(a in Vt)return jt(e,Vt[a]),Yt(t,e),e;if("#"===a.charAt(0))return 4===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=4095?(Ut(e,(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1),Yt(t,e),e):void Ut(e,0,0,0,1):7===a.length?(n=parseInt(a.substr(1),16))>=0&&n<=16777215?(Ut(e,(16711680&n)>>16,(65280&n)>>8,255&n,1),Yt(t,e),e):void Ut(e,0,0,0,1):void 0;var r=a.indexOf("("),o=a.indexOf(")");if(-1!==r&&o+1===a.length){var s=a.substr(0,r),l=a.substr(r+1,o-(r+1)).split(","),h=1;switch(s){case"rgba":if(4!==l.length)return void Ut(e,0,0,0,1);h=Ht(l.pop());case"rgb":return 3!==l.length?void Ut(e,0,0,0,1):(Ut(e,Wt(l[0]),Wt(l[1]),Wt(l[2]),h),Yt(t,e),e);case"hsla":return 4!==l.length?void Ut(e,0,0,0,1):(l[3]=Ht(l[3]),Kt(l,e),Yt(t,e),e);case"hsl":return 3!==l.length?void Ut(e,0,0,0,1):(Kt(l,e),Yt(t,e),e);default:return}}Ut(e,0,0,0,1)}}function Kt(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=Ht(t[1]),a=Ht(t[2]),r=a<=.5?a*(n+1):a+n-a*n,o=2*a-r;return Ut(e=e||[],Bt(255*Ft(o,r,i+1/3)),Bt(255*Ft(o,r,i)),Bt(255*Ft(o,r,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Jt(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[];var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=e[a],s=e[r],l=n-a;return i[0]=Bt(Zt(o[0],s[0],l)),i[1]=Bt(Zt(o[1],s[1],l)),i[2]=Bt(Zt(o[2],s[2],l)),i[3]=Gt(Zt(o[3],s[3],l)),i}}var Qt=Jt;function te(t,e,i){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),a=Math.floor(n),r=Math.ceil(n),o=$t(e[a]),s=$t(e[r]),l=n-a,h=ie([Bt(Zt(o[0],s[0],l)),Bt(Zt(o[1],s[1],l)),Bt(Zt(o[2],s[2],l)),Gt(Zt(o[3],s[3],l))],"rgba");return i?{color:h,leftIndex:a,rightIndex:r,value:n}:h}}var ee=te;function ie(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(i+=","+t[3]),e+"("+i+")"}}Pt.parse=$t,Pt.lift=function(t,e){var i=$t(t);if(i){for(var n=0;n<3;n++)i[n]=e<0?i[n]*(1-e)|0:(255-i[n])*e+i[n]|0;return ie(i,4===i.length?"rgba":"rgb")}},Pt.toHex=function(t){var e=$t(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},Pt.fastLerp=Jt,Pt.fastMapToColor=Qt,Pt.lerp=te,Pt.mapToColor=ee,Pt.modifyHSL=function(t,e,i,n){if(t=$t(t))return t=function(t){if(t){var e,i,n=t[0]/255,a=t[1]/255,r=t[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,h=(s+o)/2;if(0===l)e=0,i=0;else{i=h<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,c=((s-a)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-c:a===s?e=1/3+u-d:r===s&&(e=2/3+c-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,h];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=i&&(t[1]=Ht(i)),null!=n&&(t[2]=Ht(n)),ie(Kt(t),"rgba")},Pt.modifyAlpha=function(t,e){if((t=$t(t))&&null!=e)return t[3]=Gt(e),ie(t,"rgba")},Pt.stringify=ie;var ne=Dt,ae=Pt,re=b.isArrayLike,oe=Array.prototype.slice;function se(t,e){return t[e]}function le(t,e,i){t[e]=i}function he(t,e,i){return(e-t)*i+t}function ue(t,e,i){return i>.5?e:t}function ce(t,e,i,n,a){var r=t.length;if(1==a)for(var o=0;oa)t.length=a;else for(var r=n;r=0&&!(m[i]<=e);i--);i=Math.min(i,h-2)}else{for(i=L;ie);i++);i=Math.min(i-1,h-2)}L=i,D=e;var n=m[i+1]-m[i];if(0!==n)if(M=(e-m[i])/n,l)if(A=v[i],I=v[0===i?i:i-1],T=v[i>h-2?h-1:i+1],C=v[i>h-3?h-1:i+2],d)fe(I,A,T,C,M,M*M,M*M*M,o(t,a),g);else{if(p)r=fe(I,A,T,C,M,M*M,M*M*M,P,1),r=ve(P);else{if(f)return ue(A,T,M);r=ge(I,A,T,C,M,M*M,M*M*M)}s(t,a,r)}else if(d)ce(v[i],v[i+1],M,o(t,a),g);else{var r;if(p)ce(v[i],v[i+1],M,P,1),r=ve(P);else{if(f)return ue(v[i],v[i+1],M);r=he(v[i],v[i+1],M)}s(t,a,r)}},ondestroy:i});return e&&"spline"!==e&&(k.easing=e),k}}}var xe=function(t,e,i,n){this._tracks={},this._target=t,this._loop=e||!1,this._getter=i||se,this._setter=n||le,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};xe.prototype={when:function(t,e){var i=this._tracks;for(var n in e)if(e.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==t&&i[n].push({time:0,value:me(a)})}i[n].push({time:t,value:e[n]})}return this},during:function(t){return this._onframeList.push(t),this},pause:function(){for(var t=0;t1&&(Ie=function(){for(var t in arguments)console.log(arguments[t])});var Ae=Ie,Te=_e,Ce=Ae,Le=b,De=Le.isString,Pe=Le.isFunction,ke=Le.isObject,Oe=Le.isArrayLike,ze=Le.indexOf,Ee=function(){this.animators=[]};Ee.prototype={constructor:Ee,animate:function(t,e){var i,n=!1,a=this,r=this.__zr;if(t){var o=t.split("."),s=a;n="shape"===o[0];for(var l=0,h=o.length;l0&&this.animate(t,!1).when(null==n?500:n,r).delay(a||0),this}};var Re=x,Ne=ot,Ve=At,Be=Ee,Ge=b,We=function(t){Ve.call(this,t),Ne.call(this,t),Be.call(this,t),this.id=t.id||Re()};We.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,drift:function(t,e){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(t,e){},attrKV:function(t,e){if("position"===t||"scale"===t||"origin"===t){if(e){var i=this[t];i||(i=this[t]=[]),i[0]=e[0],i[1]=e[1]}}else this[t]=e},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Ge.isObject(t))for(var i in t)t.hasOwnProperty(i)&&this.attrKV(i,t[i]);return this.dirty(!1),this},setClipPath:function(t){var e=this.__zr;e&&t.addSelfToZr(e),this.clipPath&&this.clipPath!==t&&this.removeClipPath(),this.clipPath=t,t.__zr=e,t.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var t=this.clipPath;t&&(t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},clone:function(){return new Ke(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},Ke.create=function(t){return new Ke(t.x,t.y,t.width,t.height)};var Je=Ke,Qe=b,ti=je,ei=Je,ii=function(t){for(var e in t=t||{},ti.call(this,t),t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._children=[],this.__storage=null,this.__dirty=!0};ii.prototype={constructor:ii,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},childOfName:function(t){for(var e=this._children,i=0;i=0&&(i.splice(n,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,i=this.__zr;e&&e!==t.__storage&&(e.addToStorage(t),t instanceof ii&&t.addChildrenToStorage(e)),i&&i.refresh()},remove:function(t){var e=this.__zr,i=this.__storage,n=this._children,a=Qe.indexOf(n,t);return a<0||(n.splice(a,1),t.parent=null,i&&(i.delFromStorage(t),t instanceof ii&&t.delChildrenFromStorage(i)),e&&e.refresh()),this},removeAll:function(){var t,e,i=this._children,n=this.__storage;for(e=0;e=0;)a++;return a-e}function ri(t,e,i,n,a){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var h=n-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=o}}function oi(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])>0){for(s=n-a;l0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var h=o;o=a-l,l=a-h}for(o++;o>>1);r(t,e[i+u])>0?o=u+1:l=u}return l}function si(t,e,i,n,a,r){var o=0,s=0,l=1;if(r(t,e[i+a])<0){for(s=a+1;ls&&(l=s);var h=o;o=a-l,l=a-h}else{for(s=n-a;l=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);r(t,e[i+u])<0?l=u:o=u+1}return l}function li(t,e){var i,n,a=7,r=0;t.length;var o=[];function s(s){var l=i[s],h=n[s],u=i[s+1],c=n[s+1];n[s]=h+c,s===r-3&&(i[s+1]=i[s+2],n[s+1]=n[s+2]),r--;var d=si(t[u],t,l,h,0,e);l+=d,0!==(h-=d)&&0!==(c=oi(t[l+h-1],t,u,c,c-1,e))&&(h<=c?function(i,n,r,s){var l=0;for(l=0;l=7||p>=7);if(f)break;g<0&&(g=0),g+=2}if((a=g)<1&&(a=1),1===n){for(l=0;l=0;l--)t[p+l]=t[d+l];return void(t[c]=o[u])}var f=a;for(;;){var g=0,m=0,v=!1;do{if(e(o[u],t[h])<0){if(t[c--]=t[h--],g++,m=0,0==--n){v=!0;break}}else if(t[c--]=o[u--],m++,g=0,1==--s){v=!0;break}}while((g|m)=0;l--)t[p+l]=t[d+l];if(0===n){v=!0;break}}if(t[c--]=o[u--],1==--s){v=!0;break}if(0!==(m=s-oi(t[h],o,0,s,s-1,e))){for(s-=m,p=(c-=m)+1,d=(u-=m)+1,l=0;l=7||m>=7);if(v)break;f<0&&(f=0),f+=2}(a=f)<1&&(a=1);if(1===s){for(p=(c-=n)+1,d=(h-=n)+1,l=n-1;l>=0;l--)t[p+l]=t[d+l];t[c]=o[u]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l1;){var t=r-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;s(t)}},this.forceMergeRuns=function(){for(;r>1;){var t=r-2;t>0&&n[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((r=ai(t,i,n,e))s&&(l=s),ri(t,i,i+l,i+r,e),r=l}o.pushRun(i,r),o.mergeRuns(),a-=r,i+=r}while(0!==a);o.forceMergeRuns()}}},ui=b,ci=_,di=ni,pi=hi;function fi(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var gi=function(){this._roots=[],this._displayList=[],this._displayListLen=0};gi.prototype={constructor:gi,traverse:function(t,e){for(var i=0;i=0&&(this.delFromStorage(t),this._roots.splice(a,1),t instanceof di&&t.delChildrenFromStorage(this))}},addToStorage:function(t){return t.__storage=this,t.dirty(!1),this},delFromStorage:function(t){return t&&(t.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:fi};var mi=gi,vi=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],yi=function(t,e){this.extendFrom(t,!1),this.host=e};function xi(t,e,i){var n=null==e.x?0:e.x,a=null==e.x2?1:e.x2,r=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),t.createLinearGradient(n,r,a,o)}function _i(t,e,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*n+i.x,s=s*a+i.y,l*=r),t.createRadialGradient(o,s,0,o,s,l)}for(var bi=yi.prototype={constructor:yi,host:null,fill:"#000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(t,e,i){for(var n=this,a=i&&i.style,r=!a,o=0;o0},extendFrom:function(t,e){if(t)for(var i in t)!t.hasOwnProperty(i)||!0!==e&&(!1===e?this.hasOwnProperty(i):null==t[i])||(this[i]=t[i])},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,i){for(var n=("radial"===e.type?_i:xi)(t,e,i),a=e.colorStops,r=0;r5e3&&($i=0,Yi={}),$i++,Yi[i]=a,a}function tn(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function en(t,e,i){return"middle"===i?t-=e/2:"bottom"===i&&(t-=e),t}function nn(t,e,i,n,a){if(!e)return"";var r=(t+"").split("\n");a=an(e,i,n,a);for(var o=0,s=r.length;o=r;s++)o-=r;var l=Qi(i);return l>o&&(i="",l=0),o=t-l,n.ellipsis=i,n.ellipsisWidth=l,n.contentWidth=o,n.containerWidth=t,n}function rn(t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i)return"";var r=Qi(t,n);if(r<=i)return t;for(var o=0;;o++){if(r<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=0===o?on(t,a,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*a/r):0;r=Qi(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function on(t,e,i,n){for(var a=0,r=0,o=t.length;rl)t="",r=[];else if(null!=h)for(var u=an(h-(i?i[1]+i[3]:0),e,n.ellipsis,{minChar:n.minChar,placeholder:n.placeholder}),c=0,d=r.length;ca&&cn(i,t.substring(a,r)),cn(i,n[2],n[1]),a=Ki.lastIndex}ap)return{lines:[],width:0,height:0};L.textWidth=Qi(L.text,b);var S=x.textWidth,M=null==S||"auto"===S;if("string"==typeof S&&"%"===S.charAt(S.length-1))L.percentWidth=S,h.push(L),S=0;else{if(M){S=L.textWidth;var I=x.textBackgroundColor,A=I&&I.image;A&&(A=Fi.findExistImage(A),Fi.isImageReady(A)&&(S=Math.max(S,A.width*w/A.height)))}var T=_?_[1]+_[3]:0;S+=T;var C=null!=d?d-v:null;null!=C&&Ch&&(i*=h/(o=i+n),n*=h/o),a+r>h&&(a*=h/(o=a+r),r*=h/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),i+r>u&&(i*=u/(o=i+r),r*=u/o),t.moveTo(s+i,l),t.lineTo(s+h-n,l),0!==n&&t.quadraticCurveTo(s+h,l,s+h,l+n),t.lineTo(s+h,l+u-a),0!==a&&t.quadraticCurveTo(s+h,l+u,s+h-a,l+u),t.lineTo(s+r,l+u),0!==r&&t.quadraticCurveTo(s,l+u,s,l+u-r),t.lineTo(s,l+i),0!==i&&t.quadraticCurveTo(s,l,s+i,l)};var pn=b,fn=pn.retrieve2,gn=pn.retrieve3,mn=pn.each,vn=pn.normalizeCssArray,yn=pn.isString,xn=pn.isObject,_n=Ni,bn=dn,wn=Vi,Sn={left:1,right:1,center:1},Mn={top:1,bottom:1,middle:1};function In(t){if(t){t.font=_n.makeFont(t);var e=t.textAlign;"middle"===e&&(e="center"),t.textAlign=null==e||Sn[e]?e:"left";var i=t.textVerticalAlign||t.textBaseline;"center"===i&&(i="middle"),t.textVerticalAlign=null==i||Mn[i]?i:"top",t.textPadding&&(t.textPadding=vn(t.textPadding))}}function An(t,e,i,n,a){if(i&&e.textRotation){var r=e.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),t.translate(n,a),t.rotate(-e.textRotation),t.translate(-n,-a)}}function Tn(t,e,i,n,a,r,o,s){var l=n.rich[i.styleName]||{},h=i.textVerticalAlign,u=r+a/2;"top"===h?u=r+i.height/2:"bottom"===h&&(u=r+a-i.height/2),!i.isLineHolder&&Cn(l)&&Ln(t,e,l,"right"===s?o-i.width:"center"===s?o-i.width/2:o,u-i.height/2,i.width,i.height);var c=i.textPadding;c&&(o=Rn(o,s,c),u-=i.height/2-c[2]-i.textHeight/2),kn(e,"shadowBlur",gn(l.textShadowBlur,n.textShadowBlur,0)),kn(e,"shadowColor",l.textShadowColor||n.textShadowColor||"transparent"),kn(e,"shadowOffsetX",gn(l.textShadowOffsetX,n.textShadowOffsetX,0)),kn(e,"shadowOffsetY",gn(l.textShadowOffsetY,n.textShadowOffsetY,0)),kn(e,"textAlign",s),kn(e,"textBaseline","middle"),kn(e,"font",i.font||_n.DEFAULT_FONT);var d=On(l.textStroke||n.textStroke,f),p=zn(l.textFill||n.textFill),f=fn(l.textStrokeWidth,n.textStrokeWidth);d&&(kn(e,"lineWidth",f),kn(e,"strokeStyle",d),e.strokeText(i.text,o,u)),p&&(kn(e,"fillStyle",p),e.fillText(i.text,o,u))}function Cn(t){return t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor}function Ln(t,e,i,n,a,r,o){var s=i.textBackgroundColor,l=i.textBorderWidth,h=i.textBorderColor,u=yn(s);if(kn(e,"shadowBlur",i.textBoxShadowBlur||0),kn(e,"shadowColor",i.textBoxShadowColor||"transparent"),kn(e,"shadowOffsetX",i.textBoxShadowOffsetX||0),kn(e,"shadowOffsetY",i.textBoxShadowOffsetY||0),u||l&&h){e.beginPath();var c=i.textBorderRadius;c?bn.buildPath(e,{x:n,y:a,width:r,height:o,r:c}):e.rect(n,a,r,o),e.closePath()}if(u)kn(e,"fillStyle",s),e.fill();else if(xn(s)){var d=s.image;(d=wn.createOrUpdateImage(d,null,t,Dn,s))&&wn.isImageReady(d)&&e.drawImage(d,n,a,r,o)}l&&h&&(kn(e,"lineWidth",l),kn(e,"strokeStyle",h),e.stroke())}function Dn(t,e){e.image=t}function Pn(t,e,i){var n=e.x||0,a=e.y||0,r=e.textAlign,o=e.textVerticalAlign;if(i){var s=e.textPosition;if(s instanceof Array)n=i.x+En(s[0],i.width),a=i.y+En(s[1],i.height);else{var l=_n.adjustTextPositionOnRect(s,i,e.textDistance);n=l.x,a=l.y,r=r||l.textAlign,o=o||l.textVerticalAlign}var h=e.textOffset;h&&(n+=h[0],a+=h[1])}return{baseX:n,baseY:a,textAlign:r,textVerticalAlign:o}}function kn(t,e,i){return t[e]=i,t[e]}function On(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function zn(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function En(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function Rn(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}Ri.normalizeTextStyle=function(t){return In(t),mn(t.rich,In),t},Ri.renderText=function(t,e,i,n,a){n.rich?function(t,e,i,n,a){var r=t.__textCotentBlock;r&&!t.__dirty||(r=t.__textCotentBlock=_n.parseRichText(i,n));!function(t,e,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,h=Pn(s,n,a),u=h.baseX,c=h.baseY,d=h.textAlign,p=h.textVerticalAlign;An(e,n,a,u,c);var f=_n.adjustTextX(u,o,d),g=_n.adjustTextY(c,s,p),m=f,v=g;l&&(m+=l[3],v+=l[0]);var y=m+r;Cn(n)&&Ln(t,e,n,f,g,o,s);for(var x=0;x=0&&"right"===(_=w[L]).textAlign;)Tn(t,e,_,n,M,v,C,"right"),I-=_.width,C-=_.width,L--;for(T+=(r-(T-m)-(y-C)-I)/2;A<=L;)Tn(t,e,_=w[A],n,M,v,T+_.width/2,"center"),T+=_.width,A++;v+=M}}(t,e,r,n,a)}(t,e,i,n,a):function(t,e,i,n,a){var r=kn(e,"font",n.font||_n.DEFAULT_FONT),o=n.textPadding,s=t.__textCotentBlock;s&&!t.__dirty||(s=t.__textCotentBlock=_n.parsePlainText(i,r,o,n.truncate));var l=s.outerHeight,h=s.lines,u=s.lineHeight,c=Pn(l,n,a),d=c.baseX,p=c.baseY,f=c.textAlign,g=c.textVerticalAlign;An(e,n,a,d,p);var m=_n.adjustTextY(p,l,g),v=d,y=m,x=Cn(n);if(x||o){var _=_n.getWidth(i,r);o&&(_+=o[1]+o[3]);var b=_n.adjustTextX(d,_,f);x&&Ln(t,e,n,b,m,_,l),o&&(v=Rn(d,f,o),y+=o[0])}kn(e,"textAlign",f||"left"),kn(e,"textBaseline","middle"),kn(e,"shadowBlur",n.textShadowBlur||0),kn(e,"shadowColor",n.textShadowColor||"transparent"),kn(e,"shadowOffsetX",n.textShadowOffsetX||0),kn(e,"shadowOffsetY",n.textShadowOffsetY||0),y+=u/2;var w=n.textStrokeWidth,S=On(n.textStroke,w),M=zn(n.textFill);S&&(kn(e,"lineWidth",w),kn(e,"strokeStyle",S));M&&kn(e,"fillStyle",M);for(var I=0;I=0&&i.splice(n,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,i=0;i=0){if(!o){if((o=this._progressiveLayers[Math.min(l++,4)]).ctx.save(),o.renderScope={},o&&o.__progress>o.__maxProgress){p=o.__nextIdxNotProg-1;continue}s=o.__progress,o.__dirty||(c=s),o.__progress=c+1}v===c&&this._doPaintEl(g,o,!0,o.renderScope)}else this._doPaintEl(g,i,e,r);g.__dirty=!1}}o&&d(o),a&&a.restore(),this._furtherProgressive=!1,ta.each(this._progressiveLayers,(function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)}),this)},_doPaintEl:function(t,e,i,n){var a=e.ctx,r=t.transform;if((e.__dirty||i)&&!t.invisible&&0!==t.style.opacity&&(!r||r[0]||r[3])&&(!t.culling||!function(t,e,i){return ua.copy(t.getBoundingRect()),t.transform&&ua.applyTransform(t.transform),ca.width=e,ca.height=i,!ua.intersect(ca)}(t,this._width,this._height))){var o=t.__clipPaths;(n.prevClipLayer!==e||function(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i0&&t>n[0]){for(o=0;ot);o++);r=i[n[o]]}if(n.splice(o+1,0,t),i[t]=e,!e.virtual)if(r){var l=r.dom;l.nextSibling?s.insertBefore(e.dom,l.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}else ea("Layer of zlevel "+t+" is not valid")},eachLayer:function(t,e){var i,n,a=this._zlevelList;for(n=0;n=0){o!==p&&(o=p,l++);var f=c.__frame=l-1;if(!r){var g=Math.min(s,4);(r=i[g])||(r=i[g]=new aa("progressive",this,this.dpr)).initContext(),r.__maxProgress=0}r.__dirty=r.__dirty||c.__dirty,r.elCount++,r.__maxProgress=Math.max(r.__maxProgress,f),r.__maxProgress>=r.__progress&&(d.__dirty=!0)}else c.__frame=-1,r&&(r.__nextIdxNotProg=h,s++,r=null)}r&&(s++,r.__nextIdxNotProg=h),this.eachBuiltinLayer((function(t,e){n[e]!==t.elCount&&(t.__dirty=!0)})),i.length=Math.min(s,5),ta.each(i,(function(t,e){a[e]!==t.elCount&&(c.__dirty=!0),t.__dirty&&(t.__progress=0)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var i=this._layerConfig;i[t]?ta.merge(i[t],e,!0):i[t]=e;var n=this._layers[t];n&&ta.merge(n,i[t],!0)}},delLayer:function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(ta.indexOf(i,t),1))},resize:function(t,e){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!=t||e!=this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);ta.each(this._progressiveLayers,(function(i){i.resize(t,e)})),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new aa("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();var i,n=this.storage.getDisplayList(!0),a={},r=this;function o(t,i){var n,a=r._zlevelList;null==t&&(t=-1/0);for(var o=0;ot&&s=0){var a="touchend"!=n?e.targetTouches[0]:e.changedTouches[0];a&&xa(t,a,e,i)}else xa(t,e,e,i),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;var r=e.button;return null==e.which&&void 0!==r&&ya.test(e.type)&&(e.which=1&r?1:2&r?3:4&r?2:0),e},fa.addEventListener=function(t,e,i){va?t.addEventListener(e,i):t.attachEvent("on"+e,i)},fa.removeEventListener=function(t,e,i){va?t.removeEventListener(e,i):t.detachEvent("on"+e,i)},fa.stop=ba,fa.notLeftMouse=function(t){return t.which>1};var wa=b,Sa=fa.Dispatcher,Ma=Ei,Ia=_e,Aa=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,Sa.call(this)};Aa.prototype={constructor:Aa,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),i=0;i=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),i=0;i1&&a&&a.length>1){var o=Da(a)/Da(r);!isFinite(o)&&(o=1),e.pinchScale=o;var s=[((n=a)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},ka=La,Oa=fa,za=Oa.addEventListener,Ea=Oa.removeEventListener,Ra=Oa.normalizeEvent,Na=b,Va=ot,Ba=_,Ga=ka,Wa=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ha=["touchstart","touchend","touchmove"],Fa={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},Za=Na.map(Wa,(function(t){var e=t.replace("mouse","pointer");return Fa[e]?e:t}));function Ua(t){return"mousewheel"===t&&Ba.browser.firefox?"DOMMouseScroll":t}function ja(t,e,i){var n=t._gestureMgr;"start"===i&&n.clear();var a=n.recognize(e,t.handler.findHover(e.zrX,e.zrY,null).target,t.dom);if("end"===i&&n.clear(),a){var r=a.type;e.gestureEvent=r,t.handler.dispatchToElement({target:a.target},r,a.event)}}function qa(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout((function(){t._touching=!1}),700)}var Xa={mousemove:function(t){t=Ra(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){var e=(t=Ra(this.dom,t)).toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,this._lastTouchMoment=new Date,ja(this,t,"start"),Xa.mousemove.call(this,t),Xa.mousedown.call(this,t),qa(this)},touchmove:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,ja(this,t,"change"),Xa.mousemove.call(this,t),qa(this)},touchend:function(t){(t=Ra(this.dom,t)).zrByTouch=!0,ja(this,t,"end"),Xa.mouseup.call(this,t),+new Date-this._lastTouchMoment<300&&Xa.click.call(this,t),qa(this)},pointerdown:function(t){Xa.mousedown.call(this,t)},pointermove:function(t){Ya(t)||Xa.mousemove.call(this,t)},pointerup:function(t){Xa.mouseup.call(this,t)},pointerout:function(t){Ya(t)||Xa.mouseout.call(this,t)}};function Ya(t){var e=t.pointerType;return"pen"===e||"touch"===e}function $a(t){var e;function i(e,i){Na.each(e,(function(e){za(t,Ua(e),i._handlers[e])}),i)}Va.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new Ga,this._handlers={},e=this,Na.each(Ha,(function(t){e._handlers[t]=Na.bind(Xa[t],e)})),Na.each(Za,(function(t){e._handlers[t]=Na.bind(Xa[t],e)})),Na.each(Wa,(function(t){var i,n;e._handlers[t]=(i=Xa[t],n=e,function(){if(!n._touching)return i.apply(n,arguments)})})),Ba.pointerEventsSupported?i(Za,this):(Ba.touchEventsSupported&&i(Ha,this),i(Wa,this))}Na.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Xa[t]=function(e){e=Ra(this.dom,e),this.trigger(t,e)}}));var Ka=$a.prototype;Ka.dispose=function(){for(var t=Wa.concat(Ha),e=0;e0){if(t<=e[0])return i[0];if(t>=e[1])return i[1]}else{if(t>=e[0])return i[0];if(t<=e[1])return i[1]}else{if(t===e[0])return i[0];if(t===e[1])return i[1]}return(t-e[0])/a*r+i[0]},dr.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(i=t,i.replace(/^\s+/,"").replace(/\s+$/,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var i},dr.round=function(t,e,i){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),i?t:+t},dr.asc=function(t){return t.sort((function(t,e){return t-e})),t},dr.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,i=0;Math.round(t*e)/e!==t;)e*=10,i++;return i},dr.getPrecisionSafe=function(t){var e=t.toString(),i=e.indexOf("e");if(i>0){var n=+e.slice(i+1);return n<0?-n:0}var a=e.indexOf(".");return a<0?0:e.length-1-a},dr.getPixelPrecision=function(t,e){var i=Math.log,n=Math.LN10,a=Math.floor(i(t[1]-t[0])/n),r=Math.round(i(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20},dr.getPercentWithPrecision=function(t,e,i){if(!t[e])return 0;var n=pr.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return 0;for(var a=Math.pow(10,i),r=pr.map(t,(function(t){return(isNaN(t)?0:t)/n*a*100})),o=100*a,s=pr.map(r,(function(t){return Math.floor(t)})),l=pr.reduce(s,(function(t,e){return t+e}),0),h=pr.map(r,(function(t,e){return t-s[e]}));lu&&(u=h[d],c=d);++s[c],h[c]=0,++l}return s[e]/a},dr.MAX_SAFE_INTEGER=9007199254740991,dr.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},dr.isRadianAroundZero=function(t){return t>-1e-4&&t<1e-4},dr.parseDate=function(t){if(t instanceof Date)return t;if("string"==typeof t){var e=fr.exec(t);if(!e)return new Date(NaN);if(e[8]){var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))},dr.quantity=function(t){return Math.pow(10,gr(t))},dr.nice=function(t,e){var i=gr(t),n=Math.pow(10,i),a=t/n;return t=(e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10)*n,i>=-20?+t.toFixed(i<0?-i:0):t},dr.reformIntervals=function(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,i=1,n=0;n=0};var mr=b,vr=Ni,yr=dr;var xr=mr.normalizeCssArray;function _r(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}var br=["a","b","c","d","e","f","g"],wr=function(t,e){return"{"+t+(null==e?"":e)+"}"};var Sr=function(t){return t<10?"0"+t:t};var Mr=vr.truncateText,Ir=vr.getBoundingRect;cr.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")},cr.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},cr.normalizeCssArray=xr,cr.encodeHTML=_r,cr.formatTpl=function(t,e,i){mr.isArray(e)||(e=[e]);var n=e.length;if(!n)return"";for(var a=e[0].$vars||[],r=0;r':""},cr.formatTime=function(t,e,i){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=yr.parseDate(e),a=i?"UTC":"",r=n["get"+a+"FullYear"](),o=n["get"+a+"Month"]()+1,s=n["get"+a+"Date"](),l=n["get"+a+"Hours"](),h=n["get"+a+"Minutes"](),u=n["get"+a+"Seconds"]();return t=t.replace("MM",Sr(o)).replace("M",o).replace("yyyy",r).replace("yy",r%100).replace("dd",Sr(s)).replace("d",s).replace("hh",Sr(l)).replace("h",l).replace("mm",Sr(h)).replace("m",h).replace("ss",Sr(u)).replace("s",u)},cr.capitalFirst=function(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t},cr.truncateText=Mr,cr.getTextRect=Ir;var Ar={},Tr=b,Cr="___EC__COMPONENT__CONTAINER___";function Lr(t){var e={main:"",sub:""};return t&&(t=t.split("."),e.main=t[0]||"",e.sub=t[1]||""),e}function Dr(t,e){var i=Tr.slice(arguments,2);return this.superClass.prototype[e].apply(t,i)}function Pr(t,e,i){return this.superClass.prototype[e].apply(t,i)}Ar.set=function(t,e,i){return t["\0ec_\0"+e]=i},Ar.get=function(t,e){return t["\0ec_\0"+e]},Ar.hasOwn=function(t,e){return t.hasOwnProperty("\0ec_\0"+e)},Ar.parseClassType=Lr,Ar.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){var e=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):e.apply(this,arguments)};return Tr.extend(i.prototype,t),i.extend=this.extend,i.superCall=Dr,i.superApply=Pr,Tr.inherits(i,this),i.superClass=e,i}},Ar.enableClassManagement=function(t,e){e=e||{};var i={};if(t.registerClass=function(t,e){if(e)if(function(t){Tr.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}(e),(e=Lr(e)).sub){if(e.sub!==Cr){var n=function(t){var e=i[t.main];e&&e[Cr]||((e=i[t.main]={})[Cr]=!0);return e}(e);n[e.sub]=t}}else i[e.main]=t;return t},t.getClass=function(t,e,n){var a=i[t];if(a&&a[Cr]&&(a=e?a[e]:null),n&&!a)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return a},t.getClassesByMainType=function(t){t=Lr(t);var e=[],n=i[t.main];return n&&n[Cr]?Tr.each(n,(function(t,i){i!==Cr&&e.push(t)})):e.push(n),e},t.hasClass=function(t){return t=Lr(t),!!i[t.main]},t.getAllClassMainTypes=function(){var t=[];return Tr.each(i,(function(e,i){t.push(i)})),t},t.hasSubTypes=function(t){t=Lr(t);var e=i[t.main];return e&&e[Cr]},t.parseClassType=Lr,e.registerWhenExtend){var n=t.extend;n&&(t.extend=function(e){var i=n.call(this,e);return t.registerClass(i,e.type)})}return t},Ar.setReadOnly=function(t,e){};var kr=b;var Or=function(t){for(var e=0;e=0||n&&kr.indexOf(n,o)<0)){var s=e.getShallow(o);null!=s&&(a[t[r][0]]=s)}}return a}},zr=Or([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Er={getLineStyle:function(t){var e=zr(this,t),i=this.getLineDash(e.lineWidth);return i&&(e.lineDash=i),e},getLineDash:function(t){null==t&&(t=1);var e=this.get("type"),i=Math.max(t,2),n=4*t;return"solid"===e||null==e?null:"dashed"===e?[n,n]:[i,i]}},Rr=Or([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Nr={getAreaStyle:function(t,e){return Rr(this,t,e)}},Vr={},Br={},Gr={},Wr=U,Hr=Wr.create,Fr=Wr.distSquare,Zr=Math.pow,Ur=Math.sqrt,jr=Ur(3),qr=1/3,Xr=Hr(),Yr=Hr(),$r=Hr();function Kr(t){return t>-1e-8&&t<1e-8}function Jr(t){return t>1e-8||t<-1e-8}function Qr(t,e,i,n,a){var r=1-a;return r*r*(r*t+3*a*e)+a*a*(a*n+3*r*i)}function to(t,e,i,n){var a=1-n;return a*(a*t+2*n*e)+n*n*i}Gr.cubicAt=Qr,Gr.cubicDerivativeAt=function(t,e,i,n,a){var r=1-a;return 3*(((e-t)*r+2*(i-e)*a)*r+(n-i)*a*a)},Gr.cubicRootAt=function(t,e,i,n,a,r){var o=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-a,u=s*s-3*o*l,c=s*l-9*o*h,d=l*l-3*s*h,p=0;if(Kr(u)&&Kr(c)){if(Kr(s))r[0]=0;else(M=-l/s)>=0&&M<=1&&(r[p++]=M)}else{var f=c*c-4*u*d;if(Kr(f)){var g=c/u,m=-g/2;(M=-s/o+g)>=0&&M<=1&&(r[p++]=M),m>=0&&m<=1&&(r[p++]=m)}else if(f>0){var v=Ur(f),y=u*s+1.5*o*(-c+v),x=u*s+1.5*o*(-c-v);(M=(-s-((y=y<0?-Zr(-y,qr):Zr(y,qr))+(x=x<0?-Zr(-x,qr):Zr(x,qr))))/(3*o))>=0&&M<=1&&(r[p++]=M)}else{var _=(2*u*s-3*o*c)/(2*Ur(u*u*u)),b=Math.acos(_)/3,w=Ur(u),S=Math.cos(b),M=(-s-2*w*S)/(3*o),I=(m=(-s+w*(S+jr*Math.sin(b)))/(3*o),(-s+w*(S-jr*Math.sin(b)))/(3*o));M>=0&&M<=1&&(r[p++]=M),m>=0&&m<=1&&(r[p++]=m),I>=0&&I<=1&&(r[p++]=I)}}return p},Gr.cubicExtrema=function(t,e,i,n,a){var r=6*i-12*e+6*t,o=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(Kr(o)){if(Jr(r))(u=-s/r)>=0&&u<=1&&(a[l++]=u)}else{var h=r*r-4*o*s;if(Kr(h))a[0]=-r/(2*o);else if(h>0){var u,c=Ur(h),d=(-r-c)/(2*o);(u=(-r+c)/(2*o))>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l},Gr.cubicSubdivide=function(t,e,i,n,a,r){var o=(e-t)*a+t,s=(i-e)*a+e,l=(n-i)*a+i,h=(s-o)*a+o,u=(l-s)*a+s,c=(u-h)*a+h;r[0]=t,r[1]=o,r[2]=h,r[3]=c,r[4]=c,r[5]=u,r[6]=l,r[7]=n},Gr.cubicProjectPoint=function(t,e,i,n,a,r,o,s,l,h,u){var c,d,p,f,g,m=.005,v=1/0;Xr[0]=l,Xr[1]=h;for(var y=0;y<1;y+=.05)Yr[0]=Qr(t,i,a,o,y),Yr[1]=Qr(e,n,r,s,y),(f=Fr(Xr,Yr))=0&&f=0&&u<=1&&(a[l++]=u)}else{var h=o*o-4*r*s;if(Kr(h))(u=-o/(2*r))>=0&&u<=1&&(a[l++]=u);else if(h>0){var u,c=Ur(h),d=(-o-c)/(2*r);(u=(-o+c)/(2*r))>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l},Gr.quadraticExtremum=function(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n},Gr.quadraticSubdivide=function(t,e,i,n,a){var r=(e-t)*n+t,o=(i-e)*n+e,s=(o-r)*n+r;a[0]=t,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i},Gr.quadraticProjectPoint=function(t,e,i,n,a,r,o,s,l){var h,u=.005,c=1/0;Xr[0]=o,Xr[1]=s;for(var d=0;d<1;d+=.05){Yr[0]=to(t,i,a,d),Yr[1]=to(e,n,r,d),(m=Fr(Xr,Yr))=0&&m1e-4)return s[0]=t-i,s[1]=e-n,l[0]=t+i,void(l[1]=e+n);if(ho[0]=so(a)*i+t,ho[1]=oo(a)*n+e,uo[0]=so(r)*i+t,uo[1]=oo(r)*n+e,h(s,ho,uo),u(l,ho,uo),(a%=lo)<0&&(a+=lo),(r%=lo)<0&&(r+=lo),a>r&&!o?r+=lo:aa&&(co[0]=so(p)*i+t,co[1]=oo(p)*n+e,h(s,co,s),u(l,co,l))};var go=Gr,mo=U,vo=eo,yo=Je,xo=be.devicePixelRatio,_o={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bo=[],wo=[],So=[],Mo=[],Io=Math.min,Ao=Math.max,To=Math.cos,Co=Math.sin,Lo=Math.sqrt,Do=Math.abs,Po="undefined"!=typeof Float32Array,ko=function(t){this._saveData=!t,this._saveData&&(this.data=[]),this._ctx=null};ko.prototype={constructor:ko,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=Do(1/xo/t)||0,this._uy=Do(1/xo/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(_o.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var i=Do(t-this._xi)>this._ux||Do(e-this._yi)>this._uy||this._len<5;return this.addData(_o.L,t,e),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),i&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,i,n,a,r){return this.addData(_o.C,t,e,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,i,n,a,r):this._ctx.bezierCurveTo(t,e,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(t,e,i,n){return this.addData(_o.Q,t,e,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,i,n):this._ctx.quadraticCurveTo(t,e,i,n)),this._xi=i,this._yi=n,this},arc:function(t,e,i,n,a,r){return this.addData(_o.A,t,e,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,r),this._xi=To(a)*i+t,this._yi=Co(a)*i+t,this},arcTo:function(t,e,i,n,a){return this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},rect:function(t,e,i,n){return this._ctx&&this._ctx.rect(t,e,i,n),this.addData(_o.R,t,e,i,n),this},closePath:function(){this.addData(_o.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,i),t.closePath()),this._xi=e,this._yi=i,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,i=0;ie.length&&(this._expandData(),e=this.data);for(var i=0;i0&&p<=t||u<0&&p>=t||0==u&&(c>0&&f<=e||c<0&&f>=e);)p+=u*(i=o[n=this._dashIdx]),f+=c*i,this._dashIdx=(n+1)%g,u>0&&pl||c>0&&fh||s[n%2?"moveTo":"lineTo"](u>=0?Io(p,t):Ao(p,t),c>=0?Io(f,e):Ao(f,e));u=p-t,c=f-e,this._dashOffset=-Lo(u*u+c*c)},_dashedBezierTo:function(t,e,i,n,a,r){var o,s,l,h,u,c=this._dashSum,d=this._dashOffset,p=this._lineDash,f=this._ctx,g=this._xi,m=this._yi,v=go.cubicAt,y=0,x=this._dashIdx,_=p.length,b=0;for(d<0&&(d=c+d),d%=c,o=0;o<1;o+=.1)s=v(g,t,i,a,o+.1)-v(g,t,i,a,o),l=v(m,e,n,r,o+.1)-v(m,e,n,r,o),y+=Lo(s*s+l*l);for(;x<_&&!((b+=p[x])>d);x++);for(o=(b-d)/y;o<=1;)h=v(g,t,i,a,o),u=v(m,e,n,r,o),x%2?f.moveTo(h,u):f.lineTo(h,u),o+=p[x]/y,x=(x+1)%_;x%2!=0&&f.lineTo(a,r),s=a-h,l=r-u,this._dashOffset=-Lo(s*s+l*l)},_dashedQuadraticTo:function(t,e,i,n){var a=i,r=n;i=(i+2*t)/3,n=(n+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,i,n,a,r)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,Po&&(this.data=new Float32Array(t)))},getBoundingRect:function(){bo[0]=bo[1]=So[0]=So[1]=Number.MAX_VALUE,wo[0]=wo[1]=Mo[0]=Mo[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,i=0,n=0,a=0,r=0;rl||Do(o-a)>h||c===u-1)&&(t.lineTo(r,o),n=r,a=o);break;case _o.C:t.bezierCurveTo(s[c++],s[c++],s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case _o.Q:t.quadraticCurveTo(s[c++],s[c++],s[c++],s[c++]),n=s[c-2],a=s[c-1];break;case _o.A:var p=s[c++],f=s[c++],g=s[c++],m=s[c++],v=s[c++],y=s[c++],x=s[c++],_=s[c++],b=g>m?g:m,w=g>m?1:g/m,S=g>m?m/g:1,M=v+y;Math.abs(g-m)>.001?(t.translate(p,f),t.rotate(x),t.scale(w,S),t.arc(0,0,b,v,M,1-_),t.scale(1/w,1/S),t.rotate(-x),t.translate(-p,-f)):t.arc(p,f,b,v,M,1-_),1==c&&(e=To(v)*g+p,i=Co(v)*m+f),n=To(M)*g+p,a=Co(M)*m+f;break;case _o.R:e=n=s[c],i=a=s[c+1],t.rect(s[c++],s[c++],s[c++],s[c++]);break;case _o.Z:t.closePath(),n=e,a=i}}}},ko.CMD=_o;var Oo=ko,zo={},Eo={};Eo.containStroke=function(t,e,i,n,a,r,o){if(0===a)return!1;var s=a,l=0;if(o>e+s&&o>n+s||ot+s&&r>i+s||re+c&&u>n+c&&u>r+c&&u>s+c||ut+c&&h>i+c&&h>a+c&&h>o+c||he+h&&l>n+h&&l>r+h||lt+h&&s>i+h&&s>a+h||si||u+ha&&(a+=Zo);var d=Math.atan2(l,s);return d<0&&(d+=Zo),d>=n&&d<=a||d+Zo>=n&&d+Zo<=a};var Uo=function(t,e,i,n,a,r){if(r>e&&r>n||ra?o:0},jo=Oo,qo=Eo,Xo=Ro,Yo=Vo,$o=Go,Ko=Wo.normalizeRadian,Jo=Gr,Qo=Uo,ts=jo.CMD,es=2*Math.PI;var is=[-1,-1,-1],ns=[-1,-1];function as(t,e,i,n,a,r,o,s,l,h){if(h>e&&h>n&&h>r&&h>s||h1&&(u=void 0,u=ns[0],ns[0]=ns[1],ns[1]=u),d=Jo.cubicAt(e,n,r,s,ns[0]),g>1&&(p=Jo.cubicAt(e,n,r,s,ns[1]))),2==g?ve&&s>n&&s>r||s=0&&h<=1){for(var u=0,c=Jo.quadraticAt(e,n,r,h),d=0;di||s<-i)return 0;var l=Math.sqrt(i*i-s*s);is[0]=-l,is[1]=l;var h=Math.abs(n-a);if(h<1e-4)return 0;if(h%es<1e-4){n=0,a=es;var u=r?1:-1;return o>=is[0]+t&&o<=is[1]+t?u:0}if(r){l=n;n=Ko(a),a=Ko(l)}else n=Ko(n),a=Ko(a);n>a&&(a+=es);for(var c=0,d=0;d<2;d++){var p=is[d];if(p+t>o){var f=Math.atan2(s,p);u=r?1:-1;f<0&&(f=es+f),(f>=n&&f<=a||f+es>=n&&f+es<=a)&&(f>Math.PI/2&&f<1.5*Math.PI&&(u=-u),c+=u)}}return c}function ss(t,e,i,n,a){for(var r,o,s=0,l=0,h=0,u=0,c=0,d=0;d1&&(i||(s+=Qo(l,h,u,c,n,a))),1==d&&(u=l=t[d],c=h=t[d+1]),p){case ts.M:l=u=t[d++],h=c=t[d++];break;case ts.L:if(i){if(qo.containStroke(l,h,t[d],t[d+1],e,n,a))return!0}else s+=Qo(l,h,t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.C:if(i){if(Xo.containStroke(l,h,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],e,n,a))return!0}else s+=as(l,h,t[d++],t[d++],t[d++],t[d++],t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.Q:if(i){if(Yo.containStroke(l,h,t[d++],t[d++],t[d],t[d+1],e,n,a))return!0}else s+=rs(l,h,t[d++],t[d++],t[d],t[d+1],n,a)||0;l=t[d++],h=t[d++];break;case ts.A:var f=t[d++],g=t[d++],m=t[d++],v=t[d++],y=t[d++],x=t[d++];t[d++];var _=1-t[d++],b=Math.cos(y)*m+f,w=Math.sin(y)*v+g;d>1?s+=Qo(l,h,b,w,n,a):(u=b,c=w);var S=(n-f)*v/m+f;if(i){if($o.containStroke(f,g,v,y,y+x,_,e,S,a))return!0}else s+=os(f,g,v,y,y+x,_,S,a);l=Math.cos(y+x)*m+f,h=Math.sin(y+x)*v+g;break;case ts.R:u=l=t[d++],c=h=t[d++];b=u+t[d++],w=c+t[d++];if(i){if(qo.containStroke(u,c,b,c,e,n,a)||qo.containStroke(b,c,b,w,e,n,a)||qo.containStroke(b,w,u,w,e,n,a)||qo.containStroke(u,w,u,c,e,n,a))return!0}else s+=Qo(b,c,b,w,n,a),s+=Qo(u,w,u,c,n,a);break;case ts.Z:if(i){if(qo.containStroke(l,h,u,c,e,n,a))return!0}else s+=Qo(l,h,u,c,n,a);l=u,h=c}}return i||(r=h,o=c,Math.abs(r-o)<1e-4)||(s+=Qo(l,h,u,c,n,a)||0),0!==s}zo.contain=function(t,e,i){return ss(t,0,!1,e,i)},zo.containStroke=function(t,e,i,n){return ss(t,e,!0,i,n)};var ls=jn,hs=b,us=Oo,cs=zo,ds=Ai.prototype.getCanvasPattern,ps=Math.abs,fs=new us(!0);function gs(t){ls.call(this,t),this.path=null}gs.prototype={constructor:gs,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var i,n=this.style,a=this.path||fs,r=n.hasStroke(),o=n.hasFill(),s=n.fill,l=n.stroke,h=o&&!!s.colorStops,u=r&&!!l.colorStops,c=o&&!!s.image,d=r&&!!l.image;(n.bind(t,this,e),this.setTransform(t),this.__dirty)&&(h&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(t,s,i)),u&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(t,l,i)));h?t.fillStyle=this._fillGradient:c&&(t.fillStyle=ds.call(s,t)),u?t.strokeStyle=this._strokeGradient:d&&(t.strokeStyle=ds.call(l,t));var p=n.lineDash,f=n.lineDashOffset,g=!!t.setLineDash,m=this.getGlobalScale();a.setScale(m[0],m[1]),this.__dirtyPath||p&&!g&&r?(a.beginPath(t),p&&!g&&(a.setLineDash(p),a.setLineDashOffset(f)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(t.beginPath(),this.path.rebuildPath(t)),o&&a.fill(t),p&&g&&(t.setLineDash(p),t.lineDashOffset=f),r&&a.stroke(t),p&&g&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,i){},createPathProxy:function(){this.path=new us},getBoundingRect:function(){var t=this._rect,e=this.style,i=!t;if(i){var n=this.path;n||(n=this.path=new us),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),t=n.getBoundingRect()}if(this._rect=t,e.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){a.copy(t);var r=e.lineWidth,o=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(r=Math.max(r,this.strokeContainThreshold||4)),o>1e-10&&(a.width+=r/o,a.height+=r/o,a.x-=r/o/2,a.y-=r/o/2)}return a}return t},contain:function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),a=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var r=this.path.data;if(a.hasStroke()){var o=a.lineWidth,s=a.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(a.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),cs.containStroke(r,o/s,t,e)))return!0}if(a.hasFill())return cs.contain(r,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):ls.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var i=this.shape;if(i){if(hs.isObject(t))for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);else i[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&ps(t[0]-1)>1e-10&&ps(t[3]-1)>1e-10?Math.sqrt(ps(t[0]*t[3]-t[2]*t[1])):1}},gs.extend=function(t){var e=function(e){gs.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var i=t.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}t.init&&t.init.call(this,e)};for(var i in hs.inherits(e,gs),t)"style"!==i&&"shape"!==i&&(e.prototype[i]=t[i]);return e},hs.inherits(gs,ls);var ms=gs,vs=Oo,ys=U.applyTransform,xs=vs.CMD,_s=[[],[],[]],bs=Math.sqrt,ws=Math.atan2;var Ss=function(t,e){var i,n,a,r,o,s=t.data,l=xs.M,h=xs.C,u=xs.L,c=xs.R,d=xs.A,p=xs.Q;for(a=0,r=0;a1&&(o*=Cs(f),s*=Cs(f));var g=(a===r?-1:1)*Cs((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,m=g*o*p/s,v=g*-s*d/o,y=(t+i)/2+Ds(c)*m-Ls(c)*v,x=(e+n)/2+Ls(c)*m+Ds(c)*v,_=zs([1,0],[(d-m)/o,(p-v)/s]),b=[(d-m)/o,(p-v)/s],w=[(-1*d-m)/o,(-1*p-v)/s],S=zs(b,w);Os(b,w)<=-1&&(S=Ps),Os(b,w)>=1&&(S=0),0===r&&S>0&&(S-=2*Ps),1===r&&S<0&&(S+=2*Ps),u.addData(h,y,x,o,s,_,S,c,r)}function Rs(t,e){var i=function(t){if(!t)return[];var e,i=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===p[0]&&p.shift();for(var f=0;f=11?function(){var e,i=this.__clipPaths,n=this.style;if(i)for(var a=0;ai-2?i-1:c+1],h=t[c>i-3?i-1:c+2]);var f=d*d,g=d*f;n.push([Qs(s[0],p[0],l[0],h[0],d,f,g),Qs(s[1],p[1],l[1],h[1],d,f,g)])}return n},el=U,il=el.min,nl=el.max,al=el.scale,rl=el.distance,ol=el.add,sl=el.clone,ll=el.sub;var hl=function(t,e,i,n){var a,r,o,s,l=[],h=[],u=[],c=[];if(n){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d=2){if(a&&"spline"!==a){var r=cl(n,a,i,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(i?o:o-1);s++){var l=r[2*s],h=r[2*s+1],u=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{"spline"===a&&(n=ul(n,i)),t.moveTo(n[0][0],n[0][1]);s=1;for(var c=n.length;s=0)&&(n={textFill:null,textStroke:t.textStroke,textStrokeWidth:t.textStrokeWidth},t.textFill="#fff",null==t.textStroke&&(t.textStroke=i.autoColor,null==t.textStrokeWidth&&(t.textStrokeWidth=2))),n}function Gh(t,e,i,n,a,r){if("function"==typeof a&&(r=a,a=null),n&&n.isAnimationEnabled()){var o=t?"Update":"",s=n.getShallow("animationDuration"+o),l=n.getShallow("animationEasing"+o),h=n.getShallow("animationDelay"+o);"function"==typeof h&&(h=h(a,n.getAnimationDelayParams?n.getAnimationDelayParams(e,a):null)),"function"==typeof s&&(s=s(a)),s>0?e.animateTo(i,s,h||0,l,r,!!r):(e.stopAnimation(),e.attr(i),r&&r())}else e.stopAnimation(),e.attr(i),r&&r()}function Wh(t,e,i,n,a){Gh(!0,t,e,i,n,a)}function Hh(t,e,i){return e&&!Ul.isArrayLike(e)&&(e=Kl.getLocalTransform(e)),i&&(e=Xl.invert([],e)),Yl.applyTransform([],t,e)}Vr.extendShape=function(t){return $l.extend(t)},Vr.extendPath=function(t,e){return jl.extendFromString(t,e)},Vr.makePath=yh,Vr.makeImage=function(t,e,i){var n=new Jl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var a={width:t.width,height:t.height};n.setStyle(xh(e,a))}}});return n},Vr.mergePath=_h,Vr.resizePath=bh,Vr.subPixelOptimizeLine=function(t){var e=t.shape,i=t.style.lineWidth;return fh(2*e.x1)===fh(2*e.x2)&&(e.x1=e.x2=wh(e.x1,i,!0)),fh(2*e.y1)===fh(2*e.y2)&&(e.y1=e.y2=wh(e.y1,i,!0)),t},Vr.subPixelOptimizeRect=function(t){var e=t.shape,i=t.style.lineWidth,n=e.x,a=e.y,r=e.width,o=e.height;return e.x=wh(e.x,i,!0),e.y=wh(e.y,i,!0),e.width=Math.max(wh(n+r,i,!1)-e.x,0===r?0:1),e.height=Math.max(wh(a+o,i,!1)-e.y,0===o?0:1),t},Vr.subPixelOptimize=wh,Vr.setHoverStyle=function(t,e,i){t.__hoverSilentOnTouch=i&&i.hoverSilentOnTouch,"group"===t.type?t.traverse((function(t){"group"!==t.type&&Dh(t,e)})):Dh(t,e),t.on("mouseover",Ph).on("mouseout",kh),t.on("emphasis",Oh).on("normal",zh)},Vr.setLabelStyle=function(t,e,i,n,a,r,o){var s=(a=a||vh).labelFetcher,l=a.labelDataIndex,h=a.labelDimIndex,u=i.getShallow("show"),c=n.getShallow("show"),d=u||c?Ul.retrieve2(s?s.getFormattedLabel(l,"normal",null,h):null,a.defaultText):null,p=u?d:null,f=c?Ul.retrieve2(s?s.getFormattedLabel(l,"emphasis",null,h):null,d):null;null==p&&null==f||(Eh(t,i,r,a),Eh(e,n,o,a,!0)),t.text=p,e.text=f},Vr.setTextStyle=Eh,Vr.setText=function(t,e,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,Rh(t,e,a,n),t.host&&t.host.dirty&&t.host.dirty(!1)},Vr.getFont=function(t,e){var i=e||e.getModel("textStyle");return[t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" ")},Vr.updateProps=Wh,Vr.initProps=function(t,e,i,n,a){Gh(!1,t,e,i,n,a)},Vr.getTransform=function(t,e){for(var i=Xl.identity([]);t&&t!==e;)Xl.mul(i,t.getLocalTransform(),i),t=t.parent;return i},Vr.applyTransform=Hh,Vr.transformDirection=function(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),a=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),r=["left"===t?-n:"right"===t?n:0,"top"===t?-a:"bottom"===t?a:0];return r=Hh(r,e,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"},Vr.groupTransition=function(t,e,i,n){if(t&&e){var a,r=(a={},t.traverse((function(t){!t.isGroup&&t.anid&&(a[t.anid]=t)})),a);e.traverse((function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),Wh(t,n,i,t.dataIndex)}}}))}function o(t){var e={position:Yl.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=Ul.extend({},t.shape)),e}},Vr.clipPointsByRect=function(t,e){return Ul.map(t,(function(t){var i=t[0];i=gh(i,e.x),i=mh(i,e.x+e.width);var n=t[1];return n=gh(n,e.y),[i,n=mh(n,e.y+e.height)]}))},Vr.clipRectByRect=function(t,e){var i=gh(t.x,e.x),n=mh(t.x+t.width,e.x+e.width),a=gh(t.y,e.y),r=mh(t.y+t.height,e.y+e.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}},Vr.createIcon=function(t,e,i){var n=(e=Ul.extend({rectHover:!0},e)).style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(n.image=t.slice(8),Ul.defaults(n,i),new Jl(e)):yh(t.replace("path://",""),e,i,"center")};var Fh=Ni,Zh=Vr,Uh=["textStyle","color"],jh={getTextColor:function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Uh):null)},getFont:function(){return Zh.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(t){return Fh.getBoundingRect(t,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("rich"),this.getShallow("truncateText"))}},qh=Or([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),Xh=b,Yh=_,$h=Ar,Kh=Er,Jh=Nr,Qh=jh,tu={getItemStyle:function(t,e){var i=qh(this,t,e),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var t=this.get("borderType");return"solid"===t||null==t?null:"dashed"===t?[5,5]:[1,1]}},eu=Xh.mixin;function iu(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}function nu(t,e,i){for(var n=0;n=i.length&&i.push({option:t})}})),i},ur.makeIdAndName=function(t){var e=ou.createHashMap();uu(t,(function(t,i){var n=t.exist;n&&e.set(n.id,t)})),uu(t,(function(t,i){var n=t.option;ou.assert(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),uu(t,(function(t,i){var n=t.exist,a=t.option,r=t.keyInfo;if(cu(a)){if(r.name=null!=a.name?a.name+"":n?n.name:"\0-",n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var o=0;do{r.id="\0"+r.name+"\0"+o++}while(e.get(r.id))}e.set(r.id,t)}}))},ur.isIdInner=fu,ur.compressBatches=function(t,e){var i={},n={};return a(t||[],i),a(e||[],n,i),[r(i),r(n)];function a(t,e,i){for(var n=0,a=t.length;n=0&&i.push(t)})),i}(o.originalDeps=e(r),t);o.entryCount=s.length,0===o.entryCount&&a.push(r),xu.each(s,(function(t){xu.indexOf(o.predecessor,t)<0&&o.predecessor.push(t);var e=i(n,t);xu.indexOf(e.successor,t)<0&&e.successor.push(r)}))})),{graph:n,noEntryList:a}}(n),s=o.graph,l=o.noEntryList,h={};for(xu.each(t,(function(t){h[t]=!0}));l.length;){var u=l.pop(),c=s[u],d=!!h[u];d&&(a.call(r,u,c.originalDeps.slice()),delete h[u]),xu.each(c.successor,d?f:p)}xu.each(h,(function(){throw new Error("Circle dependency may exists")}))}function p(t){s[t].entryCount--,0===s[t].entryCount&&l.push(t)}function f(t){h[t]=!0,p(t)}}};var wu={},Su=b,Mu=Je,Iu=dr.parsePercent,Au=cr,Tu=Su.each,Cu=["left","right","top","bottom","width","height"],Lu=[["width","left","right"],["height","top","bottom"]];function Du(t,e,i,n,a){var r=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;e.eachChild((function(l,h){var u,c,d=l.position,p=l.getBoundingRect(),f=e.childAt(h+1),g=f&&f.getBoundingRect();if("horizontal"===t){var m=p.width+(g?-g.x+p.x:0);(u=r+m)>n||l.newline?(r=0,u=m,o+=s+i,s=p.height):s=Math.max(s,p.height)}else{var v=p.height+(g?-g.y+p.y:0);(c=o+v)>a||l.newline?(r+=s+i,o=0,c=v,s=p.width):s=Math.max(s,p.width)}l.newline||(d[0]=r,d[1]=o,"horizontal"===t?r=u+i:o=c+i)}))}var Pu=Du,ku=Su.curry(Du,"vertical"),Ou=Su.curry(Du,"horizontal");function zu(t,e,i){i=Au.normalizeCssArray(i||0);var n=e.width,a=e.height,r=Iu(t.left,n),o=Iu(t.top,a),s=Iu(t.right,n),l=Iu(t.bottom,a),h=Iu(t.width,n),u=Iu(t.height,a),c=i[2]+i[0],d=i[1]+i[3],p=t.aspect;switch(isNaN(h)&&(h=n-s-d-r),isNaN(u)&&(u=a-l-c-o),null!=p&&(isNaN(h)&&isNaN(u)&&(p>n/a?h=.8*n:u=.8*a),isNaN(h)&&(h=p*u),isNaN(u)&&(u=h/p)),isNaN(r)&&(r=n-s-h-d),isNaN(o)&&(o=a-l-u-c),t.left||t.right){case"center":r=n/2-h/2-i[3];break;case"right":r=n-h-d}switch(t.top||t.bottom){case"middle":case"center":o=a/2-u/2-i[0];break;case"bottom":o=a-u-c}r=r||0,o=o||0,isNaN(h)&&(h=n-d-r-(s||0)),isNaN(u)&&(u=a-c-o-(l||0));var f=new Mu(r+i[3],o+i[0],h,u);return f.margin=i,f}function Eu(t,e){return e&&t&&Tu(Cu,(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}wu.LOCATION_PARAMS=Cu,wu.HV_NAMES=Lu,wu.box=Pu,wu.vbox=ku,wu.hbox=Ou,wu.getAvailableSize=function(t,e,i){var n=e.width,a=e.height,r=Iu(t.x,n),o=Iu(t.y,a),s=Iu(t.x2,n),l=Iu(t.y2,a);return(isNaN(r)||isNaN(parseFloat(t.x)))&&(r=0),(isNaN(s)||isNaN(parseFloat(t.x2)))&&(s=n),(isNaN(o)||isNaN(parseFloat(t.y)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.y2)))&&(l=a),i=Au.normalizeCssArray(i||0),{width:Math.max(s-r-i[1]-i[3],0),height:Math.max(l-o-i[0]-i[2],0)}},wu.getLayoutRect=zu,wu.positionElement=function(t,e,i,n,a){var r=!a||!a.hv||a.hv[0],o=!a||!a.hv||a.hv[1],s=a&&a.boundingMode||"all";if(r||o){var l;if("raw"===s)l="group"===t.type?new Mu(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(l=l.clone()).applyTransform(h)}e=zu(Su.defaults({width:l.width,height:l.height},e),i,n);var u=t.position,c=r?e.x-l.x:0,d=o?e.y-l.y:0;t.attr("position","raw"===s?[c,d]:[u[0]+c,u[1]+d])}},wu.sizeCalculable=function(t,e){return null!=t[Lu[e][0]]||null!=t[Lu[e][1]]&&null!=t[Lu[e][2]]},wu.mergeLayoutParam=function(t,e,i){!Su.isObject(i)&&(i={});var n=i.ignoreSize;!Su.isArray(n)&&(n=[n,n]);var a=o(Lu[0],0),r=o(Lu[1],1);function o(i,a){var r={},o=0,h={},u=0;if(Tu(i,(function(e){h[e]=t[e]})),Tu(i,(function(t){s(e,t)&&(r[t]=h[t]=e[t]),l(r,t)&&o++,l(h,t)&&u++})),n[a])return l(e,i[1])?h[i[2]]=null:l(e,i[2])&&(h[i[1]]=null),h;if(2!==u&&o){if(o>=2)return r;for(var c=0;c=0;a--)n=Ru.merge(n,t[a],!0);Bu.set(this,"__defaultOption",n)}return Bu.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});Bu.enableClassManagement(Fu,{registerWhenExtend:!0}),Vu.enableSubTypeDefaulter(Fu),Vu.enableTopologicalTravel(Fu,(function(t){var e=[];return Ru.each(Fu.getClassesByMainType(t),(function(t){Hu.apply(e,t.prototype.dependencies||[])})),Ru.map(e,(function(t){return Bu.parseClassType(t).main}))})),Ru.mixin(Fu,Wu);var Zu=Fu,Uu="";"undefined"!=typeof navigator&&(Uu=navigator.platform||"");var ju={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:Uu.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},qu=Ar,Xu=qu.set,Yu=qu.get,$u={clearColorPalette:function(){Xu(this,"colorIdx",0),Xu(this,"colorNameMap",{})},getColorFromPalette:function(t,e){var i=Yu(e=e||this,"colorIdx")||0,n=Yu(e,"colorNameMap")||Xu(e,"colorNameMap",{});if(n.hasOwnProperty(t))return n[t];var a=this.get("color",!0)||[];if(a.length){var r=a[i];return t&&(n[t]=r),Xu(e,"colorIdx",(i+1)%a.length),r}}},Ku=b,Ju=ur,Qu=ru,tc=Zu,ec=ju,ic=$u,nc=Ku.each,ac=Ku.filter,rc=Ku.map,oc=Ku.isArray,sc=Ku.indexOf,lc=Ku.isObject,hc=Qu.extend({constructor:hc,init:function(t,e,i,n){i=i||{},this.option=null,this._theme=new Qu(i),this._optionManager=n},setOption:function(t,e){Ku.assert(!("\0_ec_inner"in t),"please use chart.getOption()"),this._optionManager.setOption(t,e),this.resetOption(null)},resetOption:function(t){var e=!1,i=this._optionManager;if(!t||"recreate"===t){var n=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this.mergeOption(n)):uc.call(this,n),e=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),e=!0)}if(!t||"recreate"===t||"media"===t){var r=i.getMediaOption(this,this._api);r.length&&nc(r,(function(t){this.mergeOption(t,e=!0)}),this)}return e},mergeOption:function(t){var e=this.option,i=this._componentsMap,n=[];nc(t,(function(t,i){null!=t&&(tc.hasClass(i)?n.push(i):e[i]=null==e[i]?Ku.clone(t):Ku.merge(e[i],t,!0))})),tc.topologicalTravel(n,tc.getAllClassMainTypes(),(function(n,a){var r=Ju.normalizeToArray(t[n]),o=Ju.mappingToExists(i.get(n),r);Ju.makeIdAndName(o),nc(o,(function(t,e){var i=t.option;lc(i)&&(t.keyInfo.mainType=n,t.keyInfo.subType=function(t,e,i){return e.type?e.type:i?i.subType:tc.determineSubType(t,e)}(n,i,t.exist))}));var s=function(t,e){Ku.isArray(e)||(e=e?[e]:[]);var i={};return nc(e,(function(e){i[e]=(t.get(e)||[]).slice()})),i}(i,a);e[n]=[],i.set(n,[]),nc(o,(function(t,a){var r=t.exist,o=t.option;if(Ku.assert(lc(o)||r,"Empty component definition"),o){var l=tc.getClass(n,t.keyInfo.subType,!0);if(r&&r instanceof l)r.name=t.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var h=Ku.extend({dependentModels:s,componentIndex:a},t.keyInfo);r=new l(o,this,this,h),Ku.extend(r,h),r.init(o,this,this,h),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,e[n][a]=r.option}),this),"series"===n&&(this._seriesIndices=cc(i.get("series")))}),this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var t=Ku.clone(this.option);return nc(t,(function(e,i){if(tc.hasClass(i)){for(var n=(e=Ju.normalizeToArray(e)).length-1;n>=0;n--)Ju.isIdInner(e[n])&&e.splice(n,1);t[i]=e}})),delete t["\0_ec_inner"],t},getTheme:function(){return this._theme},getComponent:function(t,e){var i=this._componentsMap.get(t);if(i)return i[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var i,n=t.index,a=t.id,r=t.name,o=this._componentsMap.get(e);if(!o||!o.length)return[];if(null!=n)oc(n)||(n=[n]),i=ac(rc(n,(function(t){return o[t]})),(function(t){return!!t}));else if(null!=a){var s=oc(a);i=ac(o,(function(t){return s&&sc(a,t.id)>=0||!s&&t.id===a}))}else if(null!=r){var l=oc(r);i=ac(o,(function(t){return l&&sc(r,t.name)>=0||!l&&t.name===r}))}else i=o.slice();return dc(i,t)},findComponents:function(t){var e,i,n,a,r,o=t.query,s=t.mainType,l=(i=s+"Index",n=s+"Id",a=s+"Name",!(e=o)||null==e[i]&&null==e[n]&&null==e[a]?null:{mainType:s,index:e[i],id:e[n],name:e[a]}),h=l?this.queryComponents(l):this._componentsMap.get(s);return r=dc(h,t),t.filter?ac(r,t.filter):r},eachComponent:function(t,e,i){var n=this._componentsMap;if("function"==typeof t)i=e,e=t,n.each((function(t,n){nc(t,(function(t,a){e.call(i,n,t,a)}))}));else if(Ku.isString(t))nc(n.get(t),e,i);else if(lc(t)){var a=this.findComponents(t);nc(a,e,i)}},getSeriesByName:function(t){var e=this._componentsMap.get("series");return ac(e,(function(e){return e.name===t}))},getSeriesByIndex:function(t){return this._componentsMap.get("series")[t]},getSeriesByType:function(t){var e=this._componentsMap.get("series");return ac(e,(function(e){return e.subType===t}))},getSeries:function(){return this._componentsMap.get("series").slice()},eachSeries:function(t,e){nc(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)}),this)},eachRawSeries:function(t,e){nc(this._componentsMap.get("series"),t,e)},eachSeriesByType:function(t,e,i){nc(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===t&&e.call(i,a,n)}),this)},eachRawSeriesByType:function(t,e,i){return nc(this.getSeriesByType(t),e,i)},isSeriesFiltered:function(t){return Ku.indexOf(this._seriesIndices,t.componentIndex)<0},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(t,e){var i=ac(this._componentsMap.get("series"),t,e);this._seriesIndices=cc(i)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=cc(t.get("series"));var e=[];t.each((function(t,i){e.push(i)})),tc.topologicalTravel(e,tc.getAllClassMainTypes(),(function(e,i){nc(t.get(e),(function(t){t.restoreData()}))}))}});function uc(t){var e,i;this.option={},this.option["\0_ec_inner"]=1,this._componentsMap=Ku.createHashMap({series:[]}),this._seriesIndices=null,e=t,i=this._theme.option,Ku.each(i,(function(t,i){tc.hasClass(i)||("object"==typeof t?e[i]=e[i]?Ku.merge(e[i],t,!1):Ku.clone(t):null==e[i]&&(e[i]=t))})),Ku.merge(t,ec,!1),this.mergeOption(t)}function cc(t){return rc(t,(function(t){return t.componentIndex}))||[]}function dc(t,e){return e.hasOwnProperty("subType")?ac(t,(function(t){return t.subType===e.subType})):t}Ku.mixin(hc,ic);var pc=hc,fc=b,gc=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];var mc=function(t){fc.each(gc,(function(e){this[e]=fc.bind(t[e],t)}),this)},vc=b,yc={};function xc(){this._coordinateSystems=[]}xc.prototype={constructor:xc,create:function(t,e){var i=[];vc.each(yc,(function(n,a){var r=n.create(t,e);i=i.concat(r||[])})),this._coordinateSystems=i},update:function(t,e){vc.each(this._coordinateSystems,(function(i){i.update&&i.update(t,e)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},xc.register=function(t,e){yc[t]=e},xc.get=function(t){return yc[t]};var _c=xc,bc=b,wc=ur,Sc=Zu,Mc=bc.each,Ic=bc.clone,Ac=bc.map,Tc=bc.merge,Cc=/^(min|max)?(.+)$/;function Lc(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function Dc(t,e,i){var n,a,r=[],o=[],s=t.timeline;if(t.baseOption&&(a=t.baseOption),(s||t.options)&&(a=a||{},r=(t.options||[]).slice()),t.media){a=a||{};var l=t.media;Mc(l,(function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))}))}return a||(a=t),a.timeline||(a.timeline=s),Mc([a].concat(r).concat(bc.map(o,(function(t){return t.option}))),(function(t){Mc(e,(function(e){e(t,i)}))})),{baseOption:a,timelineOptions:r,mediaDefault:n,mediaList:o}}function Pc(t,e,i){var n={width:e,height:i,aspectratio:e/i},a=!0;return bc.each(t,(function(t,e){var i=e.match(Cc);if(i&&i[1]&&i[2]){var r=i[1],o=i[2].toLowerCase();(function(t,e,i){return"min"===i?t>=e:"max"===i?t<=e:t===e})(n[o],t,r)||(a=!1)}})),a}Lc.prototype={constructor:Lc,setOption:function(t,e){t=Ic(t,!0);var i,n,a=this._optionBackup,r=Dc.call(this,t,e,!a);this._newBaseOption=r.baseOption,a?(i=a.baseOption,n=r.baseOption,Mc(n=n||{},(function(t,e){if(null!=t){var n=i[e];if(Sc.hasClass(e)){t=wc.normalizeToArray(t),n=wc.normalizeToArray(n);var a=wc.mappingToExists(n,t);i[e]=Ac(a,(function(t){return t.option&&t.exist?Tc(t.exist,t.option,!0):t.exist||t.option}))}else i[e]=Tc(n,t,!0)}})),r.timelineOptions.length&&(a.timelineOptions=r.timelineOptions),r.mediaList.length&&(a.mediaList=r.mediaList),r.mediaDefault&&(a.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=Ac(e.timelineOptions,Ic),this._mediaList=Ac(e.mediaList,Ic),this._mediaDefault=Ic(e.mediaDefault),this._currentMediaIndices=[],Ic(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=Ic(i[n.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e,i,n=this._api.getWidth(),a=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!r.length&&!o)return l;for(var h=0,u=r.length;h":"")+r.join(a?"
":", ")}(a):rd(od(a)),o=n.getName(t),s=n.getItemVisual(t,"color");ed.isObject(s)&&s.colorStops&&(s=(s.colorStops[0]||{}).color);var l=sd(s=s||"transparent"),h=this.name;return"\0-"===h&&(h=""),h=h?rd(h)+(e?": ":"
"):"",e?l+h+r:h+l+(o?rd(o)+": "+r:r)},isAnimationEnabled:function(){if(id.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){hd(this,"data",ud(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var i=this.ecModel,n=pd.getColorFromPalette.call(this,t,e);return n||(n=i.getColorFromPalette(t,e)),n},getAxisTooltipData:null,getTooltipPosition:null});ed.mixin(vd,cd.dataFormatMixin),ed.mixin(vd,pd);var yd=vd,xd=ni,_d=yu,bd=Ar,wd=function(){this.group=new xd,this.uid=_d.getUID("viewComponent")},Sd=wd.prototype={constructor:wd,init:function(t,e){},render:function(t,e,i,n){},dispose:function(){}};Sd.updateView=Sd.updateLayout=Sd.updateVisual=function(t,e,i,n){},bd.enableClassExtend(wd),bd.enableClassManagement(wd,{registerWhenExtend:!0});var Md=wd,Id=b,Ad=ni,Td=yu,Cd=Ar,Ld=ur;function Dd(){this.group=new Ad,this.uid=Td.getUID("viewChart")}Dd.prototype={type:"chart",init:function(t,e){},render:function(t,e,i,n){},highlight:function(t,e,i,n){Od(t.getData(),n,"emphasis")},downplay:function(t,e,i,n){Od(t.getData(),n,"normal")},remove:function(t,e){this.group.removeAll()},dispose:function(){}};var Pd=Dd.prototype;function kd(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var i=0;i=0?c():u=setTimeout(c,-a),l=n};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(t){s=t},d}Ed.throttle=Vd,Ed.createOrUpdate=function(t,e,i,n){var a=t[e];if(a){var r=a[Rd]||a,o=a["\0__throttleType"];if(a[Nd]!==i||o!==n){if(null==i||!n)return t[e]=r;(a=t[e]=Vd(r,i,"debounce"===n))[Rd]=r,a["\0__throttleType"]=n,a[Nd]=i}return a}},Ed.clear=function(t,e){var i=t[e];i&&i[Rd]&&(t[e]=i[Rd])};var Bd=Rl;var Gd=function(t){t.eachRawSeries((function(e){var i=(e.visualColorAccessPath||"itemStyle.normal.color").split("."),n=e.getData(),a=e.get(i)||e.getColorFromPalette(e.get("name"));n.setVisual("color",a),t.isSeriesFiltered(e)||("function"!=typeof a||a instanceof Bd||n.each((function(t){n.setItemVisual(t,"color",a(e.getDataParams(t)))})),n.each((function(t){var e=n.getItemModel(t).get(i,!0);null!=e&&n.setItemVisual(t,"color",e)})))}))},Wd=b,Hd=Vr,Fd=Math.PI;var Zd=function(t,e){e=e||{},Wd.defaults(e,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var i=new Hd.Rect({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4}),n=new Hd.Arc({shape:{startAngle:-Fd/2,endAngle:-Fd/2+.1,r:10},style:{stroke:e.color,lineCap:"round",lineWidth:5},zlevel:e.zlevel,z:10001}),a=new Hd.Rect({style:{fill:"none",text:e.text,textPosition:"right",textDistance:10,textFill:e.textColor},zlevel:e.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:3*Fd/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:3*Fd/2}).delay(300).start("circularInOut");var r=new Hd.Group;return r.add(n),r.add(a),r.add(i),r.resize=function(){var e=t.getWidth()/2,r=t.getHeight()/2;n.setShape({cx:e,cy:r});var o=n.shape.r;a.setShape({x:e-o,y:r-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r},Ud={},jd={};function qd(t){return t}function Xd(t,e,i,n,a){this._old=t,this._new=e,this._oldKeyGetter=i||qd,this._newKeyGetter=n||qd,this.context=a}function Yd(t,e,i,n,a){for(var r=0;r=0?a[s]=new l.constructor(r[s].length):a[s]=r[s]}return n}lp.type="list",lp.hasItemOption=!0,lp.getDimension=function(t){return isNaN(t)||(t=this.dimensions[t]||t),t},lp.getDimensionInfo=function(t){return Kd.clone(this._dimensionInfos[this.getDimension(t)])},lp.initData=function(t,e,i){t=t||[],Kd.isArray(t)&&(t=new op(t)),this._rawData=t;var n,a=this._storage={},r=this.indices=[],o=this.dimensions,s=this._dimensionInfos,l=t.count(),h=[],u={};e=e||[];for(var c=0;c0&&(x+="__ec__"+u[y]),u[y]++),x&&(h[c]=x)}this._nameList=e,this._idList=h},lp.count=function(){return this.indices.length},lp.get=function(t,e,i){var n=this._storage,a=this.indices[e];if(null==a||!n[t])return NaN;var r=n[t][a];if(i){var o=this._dimensionInfos[t];if(o&&o.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(r>=0&&l>0||r<=0&&l<0)&&(r+=l),s=s.stackedOn}}return r},lp.getValues=function(t,e,i){var n=[];Kd.isArray(t)||(i=e,e=t,t=this.dimensions);for(var a=0,r=t.length;al&&(l=r));return this._extent[t+!!e]=[s,l]}return[1/0,-1/0]},lp.getSum=function(t,e){var i=0;if(this._storage[t])for(var n=0,a=this.count();nt))return r;a=r-1}}return-1},lp.indicesOfNearest=function(t,e,i,n){var a=[];if(!this._storage[t])return a;null==n&&(n=1/0);for(var r=Number.MAX_VALUE,o=-1,s=0,l=this.count();s=0&&o<0)&&(r=u,o=h,a.length=0),a.push(s))}return a},lp.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},lp.getRawDataItem=function(t){return this._rawData.getItem(this.getRawIndex(t))},lp.getName=function(t){return this._nameList[this.indices[t]]||""},lp.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},lp.each=function(t,e,i,n){"function"==typeof t&&(n=i,i=e,e=t,t=[]);var a=[],r=(t=Kd.map(hp(t),this.getDimension,this)).length,o=this.indices;n=n||this;for(var s=0;sp-f&&(c=p-f,h.length=c);for(var g=0;g1){n=[];for(var s=0;s=0&&function(t){var e=function(t){for(var e=0;e=e[0]&&t<=e[1]},Vp.prototype.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},Vp.prototype.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},Vp.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},Vp.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},Vp.prototype.getExtent=function(){return this._extent.slice()},Vp.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},Vp.prototype.getTicksLabels=function(){for(var t=[],e=this.getTicks(),i=0;it[1]&&(t[0]=t[1])}Up.intervalScaleNiceTicks=function(t,e,i,n){var a={},r=t[1]-t[0],o=a.interval=jp.nice(r/e,!0);null!=i&&on&&(o=a.interval=n);var s=a.intervalPrecision=Xp(o);return $p(a.niceTickExtent=[qp(Math.ceil(t[0]/o)*o,s),qp(Math.floor(t[1]/o)*o,s)],t),a},Up.getIntervalPrecision=Xp,Up.fixExtent=$p,Up.intervalScaleGetTicks=function(t,e,i,n){var a=[];if(!t)return a;e[0]1e4)return[];return e[1]>(a.length?a[a.length-1]:i[1])&&a.push(e[1]),a};var Kp=dr,Jp=cr,Qp=Bp,tf=Up,ef=Kp.round,nf=Qp.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(t,e){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(e)||(i[1]=parseFloat(e))},unionExtent:function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),nf.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=tf.getIntervalPrecision(t)},getTicks:function(){return tf.intervalScaleGetTicks(this._interval,this._extent,this._niceExtent,this._intervalPrecision)},getTicksLabels:function(){for(var t=[],e=this.getTicks(),i=0;ii&&(r=i);var o=gf.length,s=function(t,e,i,n){for(;i>>1;t[a][1]0})))},niceTicks:function(t){t=t||10;var e=this._extent,i=e[1]-e[0];if(!(i===1/0||i<=0)){var n=yf.quantity(i);for(t/i*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var a=[yf.round(If(e[0]/n)*n),yf.round(Mf(e[1]/n)*n)];this._interval=n,this._niceExtent=a}},niceExtent:function(t){bf.niceExtent.call(this,t);var e=this._originalScale;e.__fixMin=t.fixMin,e.__fixMax=t.fixMax}});function Lf(t,e){return Sf(t,wf(e))}mf.each(["contain","normalize"],(function(t){Cf.prototype[t]=function(e){return e=Tf(e)/Tf(this.base),_f[t].call(this,e)}})),Cf.create=function(){return new Cf};var Df=b,Pf=Ni,kf=Zp,Of=af,zf=Bp,Ef=dr;function Rf(t,e){var i,n,a,r=t.type,o=e.getMin(),s=e.getMax(),l=null!=o,h=null!=s,u=t.getExtent();return"ordinal"===r?i=(e.get("data")||[]).length:(n=e.get("boundaryGap"),Df.isArray(n)||(n=[n||0,n||0]),"boolean"==typeof n[0]&&(n=[0,0]),n[0]=Ef.parsePercent(n[0],1),n[1]=Ef.parsePercent(n[1],1),a=u[1]-u[0]||Math.abs(u[0])),null==o&&(o="ordinal"===r?i?0:NaN:u[0]-n[0]*a),null==s&&(s="ordinal"===r?i?i-1:NaN:u[1]+n[1]*a),"dataMin"===o?o=u[0]:"function"==typeof o&&(o=o({min:u[0],max:u[1]})),"dataMax"===s?s=u[1]:"function"==typeof s&&(s=s({min:u[0],max:u[1]})),(null==o||!isFinite(o))&&(o=NaN),(null==s||!isFinite(s))&&(s=NaN),t.setBlank(Df.eqNaN(o)||Df.eqNaN(s)),e.getNeedCrossZero()&&(o>0&&s>0&&!l&&(o=0),o<0&&s<0&&!h&&(s=0)),[o,s]}function Nf(t,e){return"category"===t.type?t.scale.getLabel(e):e}Rp.getScaleExtent=Rf,Rp.niceScaleExtent=function(t,e){var i=Rf(t,e),n=null!=e.getMin(),a=null!=e.getMax(),r=e.get("splitNumber");"log"===t.type&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n,fixMax:a,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var s=e.get("interval");null!=s&&t.setInterval&&t.setInterval(s)},Rp.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new kf(t.getCategories(),[1/0,-1/0]);case"value":return new Of;default:return(zf.getClass(e)||Of).create(t)}},Rp.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),i=e[0],n=e[1];return!(i>0&&n>0||i<0&&n<0)},Rp.getAxisLabelInterval=function(t,e,i,n,a){var r,o=0,s=0,l=(n-a)/180*Math.PI,h=1;e.length>40&&(h=Math.floor(e.length/40));for(var u=0;u1?h:(o+1)*h-1},Rp.getFormattedLabels=function(t,e){var i,n=t.scale,a=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(i=e,e=function(t){return i.replace("{value}",null!=t?t:"")},Df.map(a,e)):"function"==typeof e?Df.map(r,(function(i,n){return e(Nf(t,i),n)}),this):a},Rp.getAxisRawValue=Nf;var Vf=b,Bf=Rp;function Gf(t){return Vf.isObject(t)&&null!=t.value?t.value:t+""}var Wf={getFormattedLabels:function(){return Bf.getFormattedLabels(this.axis,this.get("axisLabel.formatter"))},getCategories:function(){return"category"===this.get("type")&&Vf.map(this.get("data"),Gf)},getMin:function(t){var e=this.option,i=t||null==e.rangeStart?e.min:e.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!=typeof i&&!Vf.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(t){var e=this.option,i=t||null==e.rangeEnd?e.max:e.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!=typeof i&&!Vf.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var t=this.option;return null==t.rangeStart&&null==t.rangeEnd&&!t.scale},getCoordSysModel:Vf.noop,setRange:function(t,e){this.option.rangeStart=t,this.option.rangeEnd=e},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}},Hf={},Ff=b,Zf=Vr,Uf=Je,jf=Zf.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n+r),t.lineTo(i-a,n+r),t.closePath()}}),qf=Zf.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,a=e.width/2,r=e.height/2;t.moveTo(i,n-r),t.lineTo(i+a,n),t.lineTo(i,n+r),t.lineTo(i-a,n),t.closePath()}}),Xf=Zf.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,a=e.width/5*3,r=Math.max(a,e.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,h=Math.asin(s/o),u=Math.cos(h)*o,c=Math.sin(h),d=Math.cos(h),p=.6*o,f=.7*o;t.moveTo(i-u,l+s),t.arc(i,l,o,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-c*p,l+s+d*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-u+c*p,l+s+d*p,i-u,l+s),t.closePath()}}),Yf=Zf.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,a=e.x,r=e.y,o=n/3*2;t.moveTo(a,r),t.lineTo(a+o,r+i),t.lineTo(a,r+i/4*3),t.lineTo(a-o,r+i),t.lineTo(a,r),t.closePath()}}),$f={line:Zf.Line,rect:Zf.Rect,roundRect:Zf.Rect,square:Zf.Rect,circle:Zf.Circle,diamond:qf,pin:Xf,arrow:Yf,triangle:jf},Kf={line:function(t,e,i,n,a){a.x1=t,a.y1=e+n/2,a.x2=t+i,a.y2=e+n/2},rect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n},roundRect:function(t,e,i,n,a){a.x=t,a.y=e,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(t,e,i,n,a){var r=Math.min(i,n);a.x=t,a.y=e,a.width=r,a.height=r},circle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.r=Math.min(i,n)/2},diamond:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n},pin:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},arrow:function(t,e,i,n,a){a.x=t+i/2,a.y=e+n/2,a.width=i,a.height=n},triangle:function(t,e,i,n,a){a.cx=t+i/2,a.cy=e+n/2,a.width=i,a.height=n}},Jf={};Ff.each($f,(function(t,e){Jf[e]=new t}));var Qf=Zf.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},beforeBrush:function(){var t=this.style;"pin"===this.shape.symbolType&&"inside"===t.textPosition&&(t.textPosition=["50%","40%"],t.textAlign="center",t.textVerticalAlign="middle")},buildPath:function(t,e,i){var n=e.symbolType,a=Jf[n];"none"!==e.symbolType&&(a||(a=Jf[n="rect"]),Kf[n](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,i))}});function tg(t,e){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=t:this.__isEmptyBrush?(i.stroke=t,i.fill=e||"#fff"):(i.fill&&(i.fill=t),i.stroke&&(i.stroke=t)),this.dirty(!1)}}Hf.createSymbol=function(t,e,i,n,a,r,o){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?Zf.makeImage(t.slice(8),new Uf(e,i,n,a),o?"center":"cover"):0===t.indexOf("path://")?Zf.makePath(t.slice(7),{},new Uf(e,i,n,a),o?"center":"cover"):new Qf({shape:{symbolType:t,x:e,y:i,width:n,height:a}})).__isEmptyBrush=l,s.setColor=tg,s.setColor(r),s};var eg=b,ig=Ep,ng=Rp,ag=Wf,rg=ru,og=wp;jd.completeDimensions=og;var sg=Hf;jd.createSymbol=sg.createSymbol,jd.createList=function(t){var e=t.get("data");return ig(e,t,t.ecModel)},jd.createScale=function(t,e){var i=e;e instanceof rg||(i=new rg(e),eg.mixin(i,ag));var n=ng.createScaleByModel(i);return n.setExtent(t[0],t[1]),ng.niceScaleExtent(n,i),n},jd.mixinAxisModelCommonMethods=function(t){eg.mixin(t,ag)};var lg=b,hg=dr,ug=Rp,cg=hg.linearMap;function dg(t,e){var i=(t[1]-t[0])/e/2;t[0]+=i,t[1]-=i}var pg=[0,1],fg=function(t,e,i){this.dim=t,this.scale=e,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1,this._labelInterval};fg.prototype={constructor:fg,contain:function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return hg.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var i=this._extent;i[0]=t,i[1]=e},dataToCoord:function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&dg(i=i.slice(),n.count()),cg(t,pg,i,e)},coordToData:function(t,e){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&dg(i=i.slice(),n.count());var a=cg(t,i,pg,e);return this.scale.scale(a)},pointToData:function(t,e){},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),i=[],n=0;n>1^-(1&s),l=l>>1^-(1&l),a=s+=a,r=l+=r,n.push([s/i,l/i])}return n}var Cg=function(t){return function(t){if(!t.UTF8Encoding)return t;var e=t.UTF8Scale;null==e&&(e=1024);for(var i=t.features,n=0;n0})),(function(t){var e=t.properties,i=t.geometry,n=i.coordinates,a=[];"Polygon"===i.type&&a.push({type:"polygon",exterior:n[0],interiors:n.slice(1)}),"MultiPolygon"===i.type&&Ig.each(n,(function(t){t[0]&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})}));var r=new Ag(e.name,a,e.cp);return r.properties=e,r}))},Lg=v;Ud.zrender=Lg;var Dg=mt;Ud.matrix=Dg;var Pg=U;Ud.vector=Pg;var kg=b,Og=Pt;Ud.color=Og;var zg=Vr;Ud.graphic=zg;var Eg=dr;Ud.number=Eg;var Rg=cr;Ud.format=Rg;var Ng=Ed;Ng.throttle,Ud.throttle=Ng.throttle;var Vg=jd;Ud.helper=Vg;var Bg=dp;Ud.List=Bg;var Gg=ru;Ud.Model=Gg;var Wg=gg;Ud.Axis=Wg;var Hg=_;Ud.env=Hg;var Fg=Cg;Ud.parseGeoJson=Fg;var Zg={};kg.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(t){Zg[t]=kg[t]})),Ud.util=Zg,function(t){var e=v,i=b,n=Pt,a=_,r=hi,o=ot,s=pc,l=mc,h=_c,u=kc,c=td,d=Zu,p=yd,f=Md,g=zd,m=Vr,y=ur,x=Ed.throttle,w=Gd,S=Zd,M=i.each,I=d.parseClassType,A={PROCESSOR:{FILTER:1e3,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,GLOBAL:2e3,CHART:3e3,COMPONENT:4e3,BRUSH:5e3}},T="__flagInMainProcess",C=/^[a-zA-Z0-9_]+$/;function L(t){return function(e,i,n){e=e&&e.toLowerCase(),o.prototype[t].call(this,e,i,n)}}function D(){o.call(this)}function P(t,n,a){a=a||{},"string"==typeof n&&(n=it[n]),this.id,this.group,this._dom=t;var s,u,d=this._zr=e.init(t,{renderer:a.renderer||"canvas",devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height});function p(t,e){return t.prio-e.prio}this._throttledZrFlush=x(i.bind(d.flush,d),17),(n=i.clone(n))&&c(n,!0),this._theme=n,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h,this._api=(u=(s=this)._coordSysMgr,i.extend(new l(s),{getCoordinateSystems:i.bind(u.getCoordinateSystems,u),getComponentByElement:function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return s._model.getComponent(e.mainType,e.index);t=t.parent}}})),o.call(this),this._messageCenter=new D,this._initEvents(),this.resize=i.bind(this.resize,this),this._pendingActions=[],r(et,p),r(J,p),d.animation.on("frame",this._onframe,this),i.setAsPrimitive(this)}D.prototype.on=L("on"),D.prototype.off=L("off"),D.prototype.one=L("one"),i.mixin(D,o);var k=P.prototype;function O(t,e,i){var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();e=y.parseFinder(a,e);for(var o=0;o=0&&i.each(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n|=!!i.containPoint(e);else if("seriesModels"===a){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(n|=r.containPoint(e,t))}}),this)}),this),!!n},k.getVisual=function(t,e){var i=this._model,n=(t=y.parseFinder(i,t,{defaultMainType:"series"})).seriesModel.getData(),a=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=a?n.getItemVisual(a,e):n.getVisual(e)},k.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},k.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]};var z={update:function(t){var e=this._model,i=this._api,r=this._coordSysMgr,o=this._zr;if(e){e.restoreData(),r.create(this._model,this._api),W.call(this,e,i),H.call(this,e),r.update(e,i),Z.call(this,e,t),U.call(this,e,t);var s=e.get("backgroundColor")||"transparent",l=o.painter;if(l.isSingleCanvas&&l.isSingleCanvas())o.configLayer(0,{clearColor:s});else{if(!a.canvasSupported){var h=n.parse(s);s=n.stringify(h,"rgb"),0===h[3]&&(s="transparent")}s.colorStops||s.image?(o.configLayer(0,{clearColor:s}),this.__hasGradientOrPatternBg=!0,this._dom.style.background="transparent"):(this.__hasGradientOrPatternBg&&o.configLayer(0,{clearColor:null}),this.__hasGradientOrPatternBg=!1,this._dom.style.background=s)}M(tt,(function(t){t(e,i)}))}},updateView:function(t){var e=this._model;e&&(e.eachSeries((function(t){t.getData().clearAllVisual()})),Z.call(this,e,t),B.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries((function(t){t.getData().clearAllVisual()})),Z.call(this,e,t,!0),B.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(F.call(this,e,t),B.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;G.call(this,"component",e),G.call(this,"chart",e),z.update.call(this,t)}};function E(t,e,i,n,a){var r=t._model;if(n){var o={};o[n+"Id"]=i[n+"Id"],o[n+"Index"]=i[n+"Index"],o[n+"Name"]=i[n+"Name"];var s={mainType:n,query:o};a&&(s.subType=a),r&&r.eachComponent(s,(function(e,i){l(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else M(t._componentsViews.concat(t._chartsViews),l);function l(n){n&&n.__alive&&n[e]&&n[e](n.__model,r,t._api,i)}}function R(t,e){var n=t.type,a=t.escapeConnect,r=$[n],o=r.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&I(s[0]),this[T]=!0;var h=[t],u=!1;t.batch&&(u=!0,h=i.map(t.batch,(function(e){return(e=i.defaults(i.extend({},e),t)).batch=null,e})));var c,d=[],p="highlight"===n||"downplay"===n;M(h,(function(t){(c=(c=r.action(t,this._model,this._api))||i.extend({},t)).type=o.event||c.type,d.push(c),p?E(this,l,t,"series"):s&&E(this,l,t,s.main,s.sub)}),this),"none"===l||p||s||(this.__optionUpdated?(z.prepareAndUpdate.call(this,t),this.__optionUpdated=!1):z[l].call(this,t)),c=u?{type:o.event||n,escapeConnect:a,batch:d}:d[0],this[T]=!1,!e&&this._messageCenter.trigger(c.type,c)}function N(t){for(var e=this._pendingActions;e.length;){var i=e.shift();R.call(this,i,t)}}function V(t){!t&&this.trigger("updated")}function B(t,e,i){var n=this._api;M(this._componentsViews,(function(a){var r=a.__model;a[t](r,e,n,i),Y(r,a)}),this),e.eachSeries((function(a,r){var o=this._chartsMap[a.__viewId];o[t](a,e,n,i),Y(a,o),X(a,o)}),this),q(this._zr,e),M(tt,(function(t){t(e,n)}))}function G(t,e){for(var i="component"===t,n=i?this._componentsViews:this._chartsViews,a=i?this._componentsMap:this._chartsMap,r=this._zr,o=0;oe.get("hoverLayerThreshold")&&!a.node&&i.traverse((function(t){t.isGroup||(t.useHoverLayer=!0)}))}function X(t,e){var i=0;e.group.traverse((function(t){"group"===t.type||t.ignore||i++}));var n=+t.get("progressive"),r=i>t.get("progressiveThreshold")&&n&&!a.node;r&&e.group.traverse((function(t){t.isGroup||(t.progressive=r?Math.floor(i++/n):-1,r&&t.stopAnimation(!0))}));var o=t.get("blendMode")||null;e.group.traverse((function(t){t.isGroup||t.setStyle("blend",o)}))}function Y(t,e){var i=t.get("z"),n=t.get("zlevel");e.group.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=n&&(t.zlevel=n))}))}k._initEvents=function(){M(j,(function(t){this._zr.on(t,(function(e){var n,a=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var o=r.dataModel||a.getSeriesByIndex(r.seriesIndex);n=o&&o.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=i.extend({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))}),this)}),this),M(K,(function(t,e){this._messageCenter.on(e,(function(t){this.trigger(e,t)}),this)}),this)},k.isDisposed=function(){return this._disposed},k.clear=function(){this.setOption({series:[]},!0)},k.dispose=function(){if(!this._disposed){this._disposed=!0;var t=this._api,e=this._model;M(this._componentsViews,(function(i){i.dispose(e,t)})),M(this._chartsViews,(function(i){i.dispose(e,t)})),this._zr.dispose(),delete at[this.id]}},i.mixin(P,o);var $={},K={},J=[],Q=[],tt=[],et=[],it={},nt={},at={},rt={},st=new Date-0,lt=new Date-0,ht="_echarts_instance_",ut={};function ct(t){rt[t]=!1}var dt=ct;function pt(t){var e;return e=t.getAttribute?t.getAttribute(ht):t._echarts_instance_,at[e]}function ft(t){Q.push(t)}function gt(t,e,n){"function"==typeof e&&(n=e,e="");var a=i.isObject(t)?t.type:[t,t={event:e}][0];t.event=(t.event||a).toLowerCase(),e=t.event,i.assert(C.test(a)&&C.test(e)),$[a]||($[a]={action:n,actionInfo:t}),K[e]=a}function mt(t,e){"function"==typeof t&&(e=t,t=3e3),et.push({prio:t,func:e})}function vt(t,e){nt[t]=e}mt(2e3,w),ft(c),vt("default",S),gt({type:"highlight",event:"highlight",update:"highlight"},i.noop),gt({type:"downplay",event:"downplay",update:"downplay"},i.noop);t.version="3.8.5",t.dependencies={zrender:"3.7.4"},t.PRIORITY=A,t.init=function(t,e,n){var a=pt(t);if(a)return a;var r=new P(t,e,n);return r.id="ec_"+st++,at[r.id]=r,t.setAttribute?t.setAttribute(ht,r.id):t._echarts_instance_=r.id,function(t){var e="__connectUpdateStatus";function n(t,i){for(var n=0;n=0?1:-1}function gm(t,e,i){for(var n,a=t.getBaseAxis(),r=t.getOtherAxis(a),o=a.onZero?0:r.scale.getExtent()[0],s=r.dim,l="x"===s||"radius"===s?1:0,h=e.stackedOn,u=e.get(s,i);h&&fm(h.get(s,i))===fm(u);){n=h;break}var c=[];return c[l]=e.get(a.dim,i),c[1-l]=n?n.get(s,i,!0):o,t.dataToPoint(c)}var mm=function(t,e,i,n,a,r){for(var o=function(t,e){var i=[];return e.diff(t).add((function(t){i.push({cmd:"+",idx:t})})).update((function(t,e){i.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){i.push({cmd:"-",idx:t})})).execute(),i}(t,e),s=[],l=[],h=[],u=[],c=[],d=[],p=[],f=r.dimensions,g=0;g=a||d<0)break;if(Cm(f)){if(u){d+=r;continue}break}if(d===i)t[r>0?"moveTo":"lineTo"](f[0],f[1]),Mm(Am,f);else if(l>0){var g=d+r,m=e[g];if(u)for(;m&&Cm(e[g]);)m=e[g+=r];var v=.5,y=e[c];if(!(m=e[g])||Cm(m))Mm(Tm,f);else{var x,_;if(Cm(m)&&!u&&(m=f),xm.sub(Im,m,y),"x"===h||"y"===h){var b="x"===h?0:1;x=Math.abs(f[b]-y[b]),_=Math.abs(f[b]-m[b])}else x=xm.dist(f,y),_=xm.dist(f,m);Sm(Tm,f,Im,-l*(1-(v=_/(_+x))))}bm(Am,Am,s),wm(Am,Am,o),bm(Tm,Tm,s),wm(Tm,Tm,o),t.bezierCurveTo(Am[0],Am[1],Tm[0],Tm[1],f[0],f[1]),Sm(Am,f,Im,l*v)}else t.lineTo(f[0],f[1]);c=d,d+=r}return p}function Dm(t,e){var i=[1/0,1/0],n=[-1/0,-1/0];if(e)for(var a=0;an[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:e?i:n,max:e?n:i}}var Pm=ym.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:_m(ym.prototype.brush),buildPath:function(t,e){var i=e.points,n=0,a=i.length,r=Dm(i,e.smoothConstraint);if(e.connectNulls){for(;a>0&&Cm(i[a-1]);a--);for(;n0&&Cm(i[r-1]);r--);for(;ae[0]?1:-1;e[0]+=n*i,e[1]-=n*i}return e}function jm(t){return t>=0?1:-1}function qm(t,e,i){return"polar"===t.type?function(t,e,i){var n=t.getAngleAxis(),a=t.getRadiusAxis().getExtent(),r=n.getExtent(),o=Math.PI/180,s=new Nm.Sector({shape:{cx:t.cx,cy:t.cy,r0:a[0],r:a[1],startAngle:-r[0]*o,endAngle:-r[1]*o,clockwise:n.inverse}});return e&&(s.shape.endAngle=-r[0]*o,Nm.initProps(s,{shape:{endAngle:-r[1]*o}},i)),s}(t,e,i):function(t,e,i){var n=Um(t.getAxis("x")),a=Um(t.getAxis("y")),r=t.getBaseAxis().isHorizontal(),o=Math.min(n[0],n[1]),s=Math.min(a[0],a[1]),l=Math.max(n[0],n[1])-o,h=Math.max(a[0],a[1])-s,u=i.get("lineStyle.normal.width")||2,c=i.get("clipOverflow")?u/2:Math.max(l,h);r?(s-=c,h+=2*c):(o-=c,l+=2*c);var d=new Nm.Rect({shape:{x:o,y:s,width:l,height:h}});return e&&(d.shape[r?"width":"height"]=0,Nm.initProps(d,{shape:{width:l,height:h}},i)),d}(t,e,i)}function Xm(t,e,i){for(var n=e.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o0?a=r[0]:r[1]<0&&(a=r[1])}var o=n.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],(function(n,r){for(var l,h=e.stackedOn;h&&jm(h.get(o,r))===jm(n);){l=h;break}var u=[];return u[s]=e.get(i.dim,r),u[1-s]=l?l.get(o,r,!0):a,t.dataToPoint(u)}),!0)}(n,r),y=t.get("showSymbol"),x=y&&!h&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(r,n),_=this._data;_&&_.eachItemGraphicEl((function(t,e){t.__temp&&(a.remove(t),_.setItemGraphicEl(e,null))})),y||c.remove(),a.add(f);var b=!h&&t.get("step");d&&u.type===n.type&&b===this._step?(m&&!p?p=this._newPolygon(l,v,n,g):p&&!m&&(f.remove(p),p=this._polygon=null),f.setClipPath(qm(n,!1,t)),y&&c.updateData(r,x),r.eachItemGraphicEl((function(t){t.stopAnimation(!0)})),Fm(this._stackedOnPoints,v)&&Fm(this._points,l)||(g?this._updateAnimation(r,v,n,i,b):(b&&(l=Xm(l,n,b),v=Xm(v,n,b)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:v})))):(y&&c.updateData(r,x),b&&(l=Xm(l,n,b),v=Xm(v,n,b)),d=this._newPolyline(l,n,g),m&&(p=this._newPolygon(l,v,n,g)),f.setClipPath(qm(n,!0,t)));var w=function(t,e){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()){for(var n,a=i.length-1;a>=0;a--)if(i[a].dimension<2){n=i[a];break}if(n&&"cartesian2d"===e.type){var r=n.dimension,o=t.dimensions[r],s=e.getAxis(o),l=Om.map(n.stops,(function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}})),h=l.length,u=n.outerColors.slice();h&&l[0].coord>l[h-1].coord&&(l.reverse(),u.reverse());var c=l[0].coord-10,d=l[h-1].coord+10,p=d-c;if(p<.001)return"transparent";Om.each(l,(function(t){t.offset=(t.coord-c)/p})),l.push({offset:h?l[h-1].offset:.5,color:u[1]||"transparent"}),l.unshift({offset:h?l[0].offset:.5,color:u[0]||"transparent"});var f=new Nm.LinearGradient(0,0,0,0,l,!0);return f[o]=c,f[o+"2"]=d,f}}}(r,n)||r.getVisual("color");d.useStyle(Om.defaults(o.getLineStyle(),{fill:"none",stroke:w,lineJoin:"bevel"}));var S=t.get("smooth");if(S=Zm(t.get("smooth")),d.setShape({smooth:S,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),p){var M=r.stackedOn,I=0;if(p.useStyle(Om.defaults(s.getAreaStyle(),{fill:w,opacity:.7,lineJoin:"bevel"})),M)I=Zm(M.hostModel.get("smooth"));p.setShape({smooth:S,stackedOnSmooth:I,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=r,this._coordSys=n,this._stackedOnPoints=v,this._points=l,this._step=b},dispose:function(){},highlight:function(t,e,i,n){var a=t.getData(),r=Vm.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var o=a.getItemGraphicEl(r);if(!o){var s=a.getItemLayout(r);if(!s)return;(o=new Em(a,r)).position=s,o.setZ(t.get("zlevel"),t.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else Hm.prototype.highlight.call(this,t,e,i,n)},downplay:function(t,e,i,n){var a=t.getData(),r=Vm.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else Hm.prototype.downplay.call(this,t,e,i,n)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Gm({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Wm({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_getSymbolIgnoreFunc:function(t,e){var i=e.getAxesByScale("ordinal")[0];if(i&&i.isLabelIgnored)return Om.bind(i.isLabelIgnored,i)},_updateAnimation:function(t,e,i,n,a){var r=this._polyline,o=this._polygon,s=t.hostModel,l=Rm(this._data,t,this._stackedOnPoints,e,this._coordSys,i),h=l.current,u=l.stackedOnCurrent,c=l.next,d=l.stackedOnNext;a&&(h=Xm(l.current,i,a),u=Xm(l.stackedOnCurrent,i,a),c=Xm(l.next,i,a),d=Xm(l.stackedOnNext,i,a)),r.shape.__points=l.current,r.shape.points=h,Nm.updateProps(r,{shape:{points:c}},s),o&&(o.setShape({points:h,stackedOnPoints:u}),Nm.updateProps(o,{shape:{points:c,stackedOnPoints:d}},s));for(var p=[],f=l.status,g=0;ge&&(e=t[i]);return e},min:function(t){for(var e=1/0,i=0;i1)"string"==typeof i?a=Km[i]:"function"==typeof i&&(a=i),a&&(e=e.downSample(o.dim,1/h,a,Jm),t.setData(e))}}),this)},tv=b;function ev(t){return this._axes[t]}var iv=function(t){this._axes={},this._dimList=[],this.name=t||""};iv.prototype={constructor:iv,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return tv.map(this._dimList,ev,this)},getAxesByScale:function(t){return t=t.toLowerCase(),tv.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var i=this._dimList,n=t instanceof Array?[]:{},a=0;ae[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},sv.inherits(hv,lv);var uv=hv,cv=b,dv={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},pv={};pv.categoryAxis=cv.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dv),pv.valueAxis=cv.merge({boundaryGap:[0,0],splitNumber:5},dv),pv.timeAxis=cv.defaults({scale:!0,min:"dataMin",max:"dataMax"},pv.valueAxis),pv.logAxis=cv.defaults({scale:!0,logBase:10},pv.valueAxis);var fv=pv,gv=b,mv=fv,vv=Zu,yv=wu,xv=yv.getLayoutParams,_v=yv.mergeLayoutParam,bv=["value","category","time","log"];var wv=function(t,e,i,n){gv.each(bv,(function(a){e.extend({type:t+"Axis."+a,mergeDefaultAndTheme:function(e,n){var r=this.layoutMode,o=r?xv(e):{},s=n.getTheme();gv.merge(e,s.get(a+"Axis")),gv.merge(e,this.getDefaultOption()),e.type=i(t,e),r&&_v(e,o,r)},defaultOption:gv.mergeAll([{},mv[a+"Axis"],n],!0)})})),vv.registerSubTypeDefaulter(t+"Axis",gv.curry(i,t))},Sv=b,Mv=wv,Iv=Wf,Av=Zu.extend({type:"cartesian2dAxis",axis:null,init:function(){Av.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){Av.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){Av.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function Tv(t,e){return e.type||(e.data?"category":"value")}Sv.merge(Av.prototype,Iv);var Cv={offset:0};Mv("x",Av,Tv,Cv),Mv("y",Av,Tv,Cv),Zu.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});var Lv=b,Dv=Je,Pv=wu.getLayoutRect,kv=Rp,Ov=ov,zv=uv,Ev=_c,Rv=Lv.each,Nv=kv.ifAxisCrossZero,Vv=kv.niceScaleExtent;function Bv(t,e,i){return t.getCoordSysModel()===e}function Gv(t,e,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,i),this.model=t}var Wv=Gv.prototype;function Hv(t,e,i){var n=t[e];if(i.onZero){var a=i.onZeroAxisIndex;if(null==a){for(var r in n){if(n.hasOwnProperty(r))if((o=n[r])&&!Fv(o)){a=+r;break}}null==a&&(i.onZero=!1),i.onZeroAxisIndex=a}else{var o;(o=n[a])&&Fv(o)&&(i.onZero=!1)}}}function Fv(t){return"category"===t.type||"time"===t.type||!Nv(t)}Wv.type="grid",Wv.axisPointerEnabled=!0,Wv.getRect=function(){return this._rect},Wv.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model),Rv(i.x,(function(t){Vv(t.scale,t.model)})),Rv(i.y,(function(t){Vv(t.scale,t.model)})),Rv(i.x,(function(t){Hv(i,"y",t)})),Rv(i.y,(function(t){Hv(i,"x",t)})),this.resize(this.model,e)},Wv.resize=function(t,e,i){var n=Pv(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var a=this._axesList;function r(){Rv(a,(function(t){var e=t.isHorizontal(),i=e?[0,n.width]:[0,n.height],a=t.inverse?1:0;t.setExtent(i[a],i[1-a]),function(t,e){var i=t.getExtent(),n=i[0]+i[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?n.x:n.y)}))}r(),!i&&t.get("containLabel")&&(Rv(a,(function(t){if(!t.model.get("axisLabel.inside")){var e=function(t){var e,i,n,a,r,o,s,l,h=t.model,u=h.getFormattedLabels(),c=h.getModel("axisLabel"),d=1,p=u.length;p>40&&(d=Math.ceil(p/40));for(var f=0;fh[1]?-1:1,c=["start"===r?h[0]-u*l:"end"===r?h[1]+u*l:(h[0]+h[1])/2,gy(r)?t.labelOffset+o*l:0],d=e.get("nameRotate");null!=d&&(d=d*sy/180),gy(r)?n=cy(t.rotation,null!=d?d:t.rotation,o):(n=function(t,e,i,n){var a,r,o=ny(i-t.rotation),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;iy(o-sy/2)?(r=l?"bottom":"top",a="center"):iy(o-1.5*sy)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*sy&&o>sy/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:a,textVerticalAlign:r}}(t,r,d||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var p=s.getFont(),f=e.get("nameTruncate",!0)||{},g=f.ellipsis,m=Xv(t.nameTruncateMaxWidth,f.maxWidth,a),v=null!=g&&null!=m?Jv.truncateText(i,m,p,g,{minChar:2,placeholder:f.placeholder}):i,y=e.get("tooltip",!0),x=e.mainType,_={componentType:x,name:i,$vars:["name"]};_[x+"Index"]=e.componentIndex;var b=new Qv.Text({anid:"name",__fullText:i,__truncatedText:v,position:c,rotation:n.rotation,silent:dy(e),z2:1,tooltip:y&&y.show?$v({content:i,formatter:function(){return i},formatterParams:_},y):null});Qv.setTextStyle(b.style,s,{text:v,textFont:p,textFill:s.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:n.textAlign,textVerticalAlign:n.textVerticalAlign}),e.get("triggerEvent")&&(b.eventData=ly(e),b.eventData.targetType="axisName",b.eventData.name=i),this._dumbGroup.add(b),b.updateTransform(),this.group.add(b),b.decomposeTransform()}}},cy=hy.innerTextLayout=function(t,e,i){var n,a,r=ny(e-t);return iy(r)?(a=i>0?"top":"bottom",n="center"):iy(r-sy)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}};function dy(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}function py(t){t&&(t.ignore=!0)}function fy(t,e,i){var n=t&&t.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(n&&a){var r=ry.identity([]);return ry.rotate(r,r,-t.rotation),n.applyTransform(ry.mul([],r,t.getLocalTransform())),a.applyTransform(ry.mul([],r,e.getLocalTransform())),n.intersect(a)}}function gy(t){return"middle"===t||"center"===t}var my=hy.ifIgnoreOnTick=function(t,e,i,n,a,r){if(0===e&&a||e===n-1&&r)return!1;var o,s=t.scale;return"ordinal"===s.type&&("function"==typeof i?!i(o=s.getTicks()[e],s.getLabel(o)):e%(i+1))},vy=hy.getInterval=function(t,e){var i=t.get("interval");return null!=i&&"auto"!=i||(i=e),i};var yy=hy,xy={},_y=b,by=ru,wy=_y.each,Sy=_y.curry;function My(t,e){return"all"===t||_y.isArray(t)&&_y.indexOf(t,e)>=0||t===e}function Iy(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ty(t)]}function Ay(t){return!!t.get("handle.show")}function Ty(t){return t.type+"||"+t.id}xy.collect=function(t,e){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,i){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),r=a.get("link",!0)||[],o=[];wy(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var s=Ty(i.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=i;var h=i.model.getModel("tooltip",n);if(wy(i.getAxes(),Sy(p,!1,null)),i.getTooltipAxes&&n&&h.get("show")){var u="axis"===h.get("trigger"),c="cross"===h.get("axisPointer.type"),d=i.getTooltipAxes(h.get("axisPointer.axis"));(u||c)&&wy(d.baseAxes,Sy(p,!c||"cross",u)),c&&wy(d.otherAxes,Sy(p,"cross",!1))}}function p(n,s,u){var c=u.model.getModel("axisPointer",a),d=c.get("show");if(d&&("auto"!==d||n||Ay(c))){null==s&&(s=c.get("triggerTooltip")),c=n?function(t,e,i,n,a,r){var o=e.getModel("axisPointer"),s={};wy(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=_y.clone(o.get(t))})),s.snap="category"!==t.type&&!!r,"cross"===o.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===a&&(l.show=!0,!r)){var h=s.lineStyle=o.get("crossStyle");h&&_y.defaults(l,h.textStyle)}return t.model.getModel("axisPointer",new by(s,i,n))}(u,h,a,e,n,s):c;var p=c.get("snap"),f=Ty(u.model),g=s||p||"category"===u.type,m=t.axesInfo[f]={key:f,axis:u,coordSys:i,axisPointerModel:c,triggerTooltip:s,involveSeries:g,snap:p,useHandle:Ay(c),seriesModels:[]};l[f]=m,t.seriesInvolved|=g;var v=function(t,e){for(var i=e.model,n=e.dim,a=0;al[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o=0?"p":"n",v=g[i],y=r[s][i][m],x=o[s][i][m];c.isHorizontal()?(n=y,a=v[1]+h,l=v[0]-x,f=u,o[s][i][m]+=l,Math.abs(l)0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(t,e,i){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function Ix(t,e,i,n,a,r,o,s){var l=e.getItemVisual(i,"color"),h=e.getItemVisual(i,"opacity"),u=n.getModel("itemStyle.normal"),c=n.getModel("itemStyle.emphasis").getBarItemStyle();s||t.setShape("r",u.get("barBorderRadius")||0),t.useStyle(gx.defaults({fill:l,opacity:h},u.getBarItemStyle()));var d=n.getShallow("cursor");d&&t.attr("cursor",d);var p=o?a.height>0?"bottom":"top":a.width>0?"left":"right";s||vx(t.style,c,n,l,r,i,p),mx.setHoverStyle(t,c)}var Ax=m,Tx=b,Cx=ox;Ax.registerLayout(Tx.curry(Cx,"bar")),Ax.registerVisual((function(t){t.eachSeriesByType("bar",(function(t){t.getData().setVisual("legendSymbol","roundRect")}))}));var Lx=b,Dx={updateSelectedMap:function(t){this._targetList=t.slice(),this._selectTargetMap=Lx.reduce(t||[],(function(t,e){return t.set(e.name,e),t}),Lx.createHashMap())},select:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);"single"===this.get("selectedMode")&&this._selectTargetMap.each((function(t){t.selected=!1})),i&&(i.selected=!0)},unSelect:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);i&&(i.selected=!1)},toggleSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);if(null!=i)return this[i.selected?"unSelect":"select"](t,e),i.selected},isSelected:function(t,e){var i=null!=e?this._targetList[e]:this._selectTargetMap.get(t);return i&&i.selected}},Px=m,kx=dp,Ox=b,zx=ur,Ex=dr.getPercentWithPrecision,Rx=wp,Nx=Dx,Vx=Px.extendSeriesModel({type:"series.pie",init:function(t){Vx.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this.updateSelectedMap(t.data),this._defaultLabelLine(t)},mergeOption:function(t){Vx.superCall(this,"mergeOption",t),this.updateSelectedMap(this.option.data)},getInitialData:function(t,e){var i=Rx(["value"],t.data),n=new kx(i,this);return n.initData(t.data),n},getDataParams:function(t){var e=this.getData(),i=Vx.superCall(this,"getDataParams",t),n=[];return e.each("value",(function(t){n.push(t)})),i.percent=Ex(n,t,e.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(t){zx.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,label:{normal:{rotate:!1,show:!0,position:"outer"},emphasis:{}},labelLine:{normal:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}}},itemStyle:{normal:{borderWidth:1},emphasis:{}},animationType:"expansion",animationEasing:"cubicOut",data:[]}});Ox.mixin(Vx,Nx);var Bx=b,Gx=Vr,Wx=zd;function Hx(t,e,i,n){var a=e.getData(),r=this.dataIndex,o=a.getName(r),s=e.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:t,name:o,seriesId:e.id}),a.each((function(t){Fx(a.getItemGraphicEl(t),a.getItemLayout(t),e.isSelected(a.getName(t)),s,i)}))}function Fx(t,e,i,n,a){var r=(e.startAngle+e.endAngle)/2,o=i?n:0,s=[Math.cos(r)*o,Math.sin(r)*o];a?t.animate().when(200,{position:s}).start("bounceOut"):t.attr("position",s)}function Zx(t,e){Gx.Group.call(this);var i=new Gx.Sector({z2:2}),n=new Gx.Polyline,a=new Gx.Text;function r(){n.ignore=n.hoverIgnore,a.ignore=a.hoverIgnore}function o(){n.ignore=n.normalIgnore,a.ignore=a.normalIgnore}this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0),this.on("emphasis",r).on("normal",o).on("mouseover",r).on("mouseout",o)}var Ux=Zx.prototype;Ux.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=Bx.extend({},o);(s.label=null,i)?(n.setShape(s),"scale"===a.getShallow("animationType")?(n.shape.r=o.r0,Gx.initProps(n,{shape:{r:o.r}},a,e)):(n.shape.endAngle=o.startAngle,Gx.updateProps(n,{shape:{endAngle:o.endAngle}},a,e))):Gx.updateProps(n,{shape:s},a,e);var l=r.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.useStyle(Bx.defaults({lineJoin:"bevel",fill:h},l.getModel("normal").getItemStyle())),n.hoverStyle=l.getModel("emphasis").getItemStyle();var u=r.getShallow("cursor");function c(){n.stopAnimation(!0),n.animateTo({shape:{r:o.r+a.get("hoverOffset")}},300,"elasticOut")}function d(){n.stopAnimation(!0),n.animateTo({shape:{r:o.r}},300,"elasticOut")}u&&n.attr("cursor",u),Fx(this,t.getItemLayout(e),r.get("selected"),a.get("selectedOffset"),a.get("animation")),n.off("mouseover").off("mouseout").off("emphasis").off("normal"),r.get("hoverAnimation")&&a.isAnimationEnabled()&&n.on("mouseover",c).on("mouseout",d).on("emphasis",c).on("normal",d),this._updateLabel(t,e),Gx.setHoverStyle(this)},Ux._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");Gx.updateProps(i,{shape:{points:o.linePoints||[[o.x,o.y],[o.x,o.y],[o.x,o.y]]}},a,e),Gx.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label.normal"),h=r.getModel("label.emphasis"),u=r.getModel("labelLine.normal"),c=r.getModel("labelLine.emphasis");s=t.getItemVisual(e,"color");Gx.setLabelStyle(n.style,n.hoverStyle={},l,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign,opacity:t.getItemVisual(e,"opacity")}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s,opacity:t.getItemVisual(e,"opacity")}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle();var d=u.get("smooth");d&&!0===d&&(d=.4),i.setShape({smooth:d})},Bx.inherits(Zx,Gx.Group),Wx.extend({type:"pie",init:function(){var t=new Gx.Group;this._sectorGroup=t},render:function(t,e,i,n){if(!n||n.from!==this.uid){var a=t.getData(),r=this._data,o=this.group,s=e.get("animation"),l=!r,h=t.get("animationType"),u=Bx.curry(Hx,this.uid,t,s,i),c=t.get("selectedMode");if(a.diff(r).add((function(t){var e=new Zx(a,t);l&&"scale"!==h&&e.eachChild((function(t){t.stopAnimation(!0)})),c&&e.on("click",u),a.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var i=r.getItemGraphicEl(e);i.updateData(a,t),i.off("click"),c&&i.on("click",u),o.add(i),a.setItemGraphicEl(t,i)})).remove((function(t){var e=r.getItemGraphicEl(t);o.remove(e)})).execute(),s&&l&&a.count()>0&&"scale"!==h){var d=a.getItemLayout(0),p=Math.max(i.getWidth(),i.getHeight())/2,f=Bx.bind(o.removeClipPath,o);o.setClipPath(this._createClipPath(d.cx,d.cy,p,d.startAngle,d.clockwise,f,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,i,n,a,r,o){var s=new Gx.Sector({shape:{cx:t,cy:e,r0:0,r:i,startAngle:n,endAngle:n,clockwise:a}});return Gx.initProps(s,{shape:{endAngle:n+(a?1:-1)*Math.PI*2}},o,r),s},containPoint:function(t,e){var i=e.getData().getItemLayout(0);if(i){var n=t[0]-i.cx,a=t[1]-i.cy,r=Math.sqrt(n*n+a*a);return r<=i.r&&r>=i.r0}}});var jx=m,qx=b;var Xx=function(t,e){qx.each(e,(function(e){e.update="updateView",jx.registerAction(e,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:t,query:i},(function(t){t[e.method]&&t[e.method](i.name,i.dataIndex);var n=t.getData();n.each((function(e){var i=n.getName(e);a[i]=t.isSelected(i)||!1}))})),{name:i.name,selected:a}}))}))};var Yx=function(t,e){var i={};e.eachRawSeriesByType(t,(function(t){var n=t.getRawData(),a={};if(!e.isSeriesFiltered(t)){var r=t.getData();r.each((function(t){var e=r.getRawIndex(t);a[e]=t})),n.each((function(e){var o=a[e],s=null!=o&&r.getItemVisual(o,"color",!0);if(s)n.setItemVisual(e,"color",s);else{var l=n.getItemModel(e).get("itemStyle.normal.color")||t.getColorFromPalette(n.getName(e),i);n.setItemVisual(e,"color",l),null!=o&&r.setItemVisual(o,"color",l)}}))}}))},$x=Ni;function Kx(t,e,i,n,a,r,o){function s(e,i,n,a){for(var r=e;re&&r+1t[r].y+t[r].height)return void l(r,n/2);l(i-1,n/2)}function l(e,i){for(var n=e;n>=0&&(t[n].y-=i,!(n>0&&t[n].y>t[n-1].y+t[n-1].height));n--);}function h(t,e,i,n,a,r){for(var o=e?Number.MAX_VALUE:0,s=0,l=t.length;s=o&&(d=o-10),!e&&d<=o&&(d=o+10),t[s].x=i+d*r,o=d}}t.sort((function(t,e){return t.y-e.y}));for(var u,c=0,d=t.length,p=[],f=[],g=0;g=i?f.push(t[g]):p.push(t[g]);h(p,!1,e,i,n,a),h(f,!0,e,i,n,a)}var Jx=function(t,e,i,n){var a,r,o=t.getData(),s=[],l=!1;o.each((function(i){var n,h,u,c,d=o.getItemLayout(i),p=o.getItemModel(i),f=p.getModel("label.normal"),g=f.get("position")||p.get("label.emphasis.position"),m=p.getModel("labelLine.normal"),v=m.get("length"),y=m.get("length2"),x=(d.startAngle+d.endAngle)/2,_=Math.cos(x),b=Math.sin(x);a=d.cx,r=d.cy;var w="inside"===g||"inner"===g;if("center"===g)n=d.cx,h=d.cy,c="center";else{var S=(w?(d.r+d.r0)/2*_:d.r*_)+a,M=(w?(d.r+d.r0)/2*b:d.r*b)+r;if(n=S+3*_,h=M+3*b,!w){var I=S+_*(v+e-d.r),A=M+b*(v+e-d.r),T=I+(_<0?-1:1)*y;n=T+(_<0?-5:5),h=A,u=[[S,M],[I,A],[T,A]]}c=w?"center":_>0?"left":"right"}var C=f.getFont(),L=f.get("rotate")?_<0?-x+Math.PI:-x:0,D=t.getFormattedLabel(i,"normal")||o.getName(i),P=$x.getBoundingRect(D,C,c,"top");l=!!L,d.label={x:n,y:h,position:g,height:P.height,len:v,len2:y,linePoints:u,textAlign:c,verticalAlign:"middle",rotation:L,inside:w},w||s.push(d.label)})),!l&&t.get("avoidLabelOverlap")&&function(t,e,i,n,a,r){for(var o=[],s=[],l=0;l=0;r--){var o=n[r],s=a[r],l=o[0]-s[0]/2,h=o[1]-s[1]/2;if(t>=l&&e>=h&&t<=l+s[0]&&e<=h+s[1])return r}return-1}});function m_(){this.group=new p_.Group,this._symbolEl=new g_({})}var v_=m_.prototype;v_.updateData=function(t){this.group.removeAll();var e=this._symbolEl,i=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray((function(e){var i=t.getItemVisual(e,"symbolSize");return i instanceof Array||(i=[i,i]),i}))}),e.symbolProxy=f_(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(i.getModel("itemStyle.normal").getItemStyle(["color"]));var n=t.getVisual("color");n&&e.setColor(n),e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>=0&&(e.dataIndex=i)})),this.group.add(e)},v_.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},v_.remove=function(){this.group.removeAll()};var y_=pm,x_=m_;m.extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new y_,this._largeSymbolDraw=new x_},render:function(t,e,i){var n=t.getData(),a=this._largeSymbolDraw,r=this._normalSymbolDraw,o=this.group,s=t.get("large")&&n.count()>t.get("largeThreshold")?a:r;this._symbolDraw=s,s.updateData(n),o.add(s.group),o.remove(s===a?r.group:a.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}});var __=m,b_=b,w_=Ym,S_=$m;__.registerVisual(b_.curry(w_,"scatter","circle",null)),__.registerLayout(b_.curry(S_,"scatter"));var M_=gg;function I_(t,e,i){M_.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}b.inherits(I_,M_);var A_=b,T_=I_,C_=af,L_=dr,D_=Rp,P_=D_.getScaleExtent,k_=D_.niceScaleExtent,O_=_c;function z_(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=A_.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new T_(i,new C_);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.startAngle}z_.prototype.getIndicatorAxes=function(){return this._indicatorAxes},z_.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},z_.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},z_.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,r=Math.atan2(-i,e),o=1/0,s=-1,l=0;li[0]&&isFinite(c)&&isFinite(i[0]))}else{o.getTicks().length-1>a&&(h=r(h));var d=Math.round((i[0]+i[1])/2/h)*h,p=Math.round(a/2);o.setExtent(L_.round(d-p*h),L_.round(d+(a-p)*h)),o.setInterval(h)}}))},z_.dimensions=[],z_.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new z_(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},O_.register("radar",z_);var E_=m,R_=b,N_=ru,V_=Wf,B_=fv.valueAxis;function G_(t,e){return R_.defaults({show:e},t)}E_.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),a=this.get("axisTick"),r=this.get("axisLabel"),o=this.get("name"),s=this.get("name.show"),l=this.get("name.formatter"),h=this.get("nameGap"),u=this.get("triggerEvent"),c=R_.map(this.get("indicator")||[],(function(c){null!=c.max&&c.max>0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=o;if(null!=c.color&&(d=R_.defaults({color:c.color},o)),c=R_.merge(R_.clone(c),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:a,axisLabel:r,name:c.text,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:u},!1),s||(c.name=""),"string"==typeof l){var p=c.name;c.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(c.name=l(c.name,c));var f=R_.extend(new N_(c,null,this.ecModel),V_);return f.mainType="radar",f.componentIndex=this.componentIndex,f}),this);this.getIndicatorModels=function(){return c}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:R_.merge({lineStyle:{color:"#bbb"}},B_.axisLine),axisLabel:G_(B_.axisLabel,!1),axisTick:G_(B_.axisTick,!1),splitLine:G_(B_.splitLine,!0),splitArea:G_(B_.splitArea,!0),indicator:[]}});var W_=b,H_=yy,F_=Vr,Z_=["axisLine","axisTickLabel","axisName"];m.extendComponentView({type:"radar",render:function(t,e,i){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes(),n=W_.map(i,(function(t){return new H_(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));W_.each(n,(function(t){W_.each(Z_,t.add,t),this.group.add(t.getGroup())}),this)},_buildSplitLineAndArea:function(t){var e=t.coordinateSystem,i=e.getIndicatorAxes();if(i.length){var n=t.get("shape"),a=t.getModel("splitLine"),r=t.getModel("splitArea"),o=a.getModel("lineStyle"),s=r.getModel("areaStyle"),l=a.get("show"),h=r.get("show"),u=o.get("color"),c=s.get("color");u=W_.isArray(u)?u:[u],c=W_.isArray(c)?c:[c];var d=[],p=[];if("circle"===n)for(var f=i[0].getTicksCoords(),g=e.cx,m=e.cy,v=0;v"+X_.map(i,(function(t,i){return Y_(t.name+" : "+e[i])})).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}}),K_=Vr,J_=b,Q_=Hf;m.extendChartView({type:"radar",render:function(t,e,i){var n=t.coordinateSystem,a=this.group,r=t.getData(),o=this._data;function s(t,e){var i=t.getItemVisual(e,"symbol")||"circle",n=t.getItemVisual(e,"color");if("none"!==i){var a=function(t){return J_.isArray(t)||(t=[+t,+t]),t}(t.getItemVisual(e,"symbolSize")),r=Q_.createSymbol(i,-1,-1,2,2,n);return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2]}),r}}function l(e,i,n,a,r,o){n.removeAll();for(var l=0;l1?(f.width=l,f.height=l/d):(f.height=l,f.width=l*d),f.y=s[1]-f.height/2,f.x=s[0]-f.width/2}else(r=t.getBoxLayoutParams()).aspect=d,f=Wb.getLayoutRect(r,{width:h,height:u});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function Zb(t,e){Bb.each(e.get("geoCoord"),(function(e,i){t.addGeoCoord(i,e)}))}var Ub={dimensions:Gb.prototype.dimensions,create:function(t,e){var i=[];t.eachComponent("geo",(function(t,n){var a=t.get("map"),r=Vb.getMap(a),o=new Gb(a+n,a,r&&r.geoJson,r&&r.specialAreas,t.get("nameMap"));o.zoomLimit=t.get("scaleLimit"),i.push(o),Zb(o,t),t.coordinateSystem=o,o.model=t,o.resize=Fb,o.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=i[e]}}));var n={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();n[e]=n[e]||[],n[e].push(t)}})),Bb.each(n,(function(t,n){var a=Vb.getMap(n),r=Bb.map(t,(function(t){return t.get("nameMap")})),o=new Gb(n,n,a&&a.geoJson,a&&a.specialAreas,Bb.mergeAll(r));o.zoomLimit=Bb.retrieve.apply(null,Bb.map(t,(function(t){return t.get("scaleLimit")}))),i.push(o),o.resize=Fb,o.resize(t[0],e),Bb.each(t,(function(t){t.coordinateSystem=o,Zb(o,t)}))})),i},getFilledRegions:function(t,e,i){var n=(t||[]).slice();i=i||{};var a=Vb.getMap(e),r=a&&a.geoJson;if(!r)return t;for(var o=Bb.createHashMap(),s=r.features,l=0;l"+Jb(n+" : "+i)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),i=this.coordinateSystem,n=i.getRegion(e);return n&&i.dataToPoint(n.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}}});qb.mixin(iw,tw);var nw={},aw="\0_ec_interaction_mutex";function rw(t){return t[aw]||(t[aw]={})}m.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),nw.take=function(t,e,i){rw(t)[e]=i},nw.release=function(t,e,i){var n=rw(t);n[e]===i&&(n[e]=null)},nw.isTaken=function(t,e){return!!rw(t)[e]};var ow=b,sw=ot,lw=fa,hw=nw;function uw(t){this.pointerChecker,this._zr=t,this._opt={};var e=ow.bind,i=e(cw,this),n=e(dw,this),a=e(pw,this),r=e(fw,this),o=e(gw,this);sw.call(this),this.setPointerChecker=function(t){this.pointerChecker=t},this.enable=function(e,s){this.disable(),this._opt=ow.defaults(ow.clone(s)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",a)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",r),t.on("pinch",o))},this.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",a),t.off("mousewheel",r),t.off("pinch",o)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function cw(t){if(!(lw.notLeftMouse(t)||t.target&&t.target.draggable)){var e=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,i)&&(this._x=e,this._y=i,this._dragging=!0)}}function dw(t){if(!lw.notLeftMouse(t)&&vw(this,"moveOnMouseMove",t)&&this._dragging&&"pinch"!==t.gestureEvent&&!hw.isTaken(this._zr,"globalPan")){var e=t.offsetX,i=t.offsetY,n=this._x,a=this._y,r=e-n,o=i-a;this._x=e,this._y=i,this._opt.preventDefaultMouseMove&&lw.stop(t.event),this.trigger("pan",r,o,n,a,e,i)}}function pw(t){lw.notLeftMouse(t)||(this._dragging=!1)}function fw(t){if(vw(this,"zoomOnMouseWheel",t)&&0!==t.wheelDelta){var e=t.wheelDelta>0?1.1:1/1.1;mw.call(this,t,e,t.offsetX,t.offsetY)}}function gw(t){if(!hw.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;mw.call(this,t,e,t.pinchX,t.pinchY)}}function mw(t,e,i,n){this.pointerChecker&&this.pointerChecker(t,i,n)&&(lw.stop(t.event),this.trigger("zoom",e,i,n))}function vw(t,e,i){var n=t._opt[e];return n&&(!ow.isString(n)||i.event[n+"Key"])}ow.mixin(uw,sw);var yw=uw,xw={};xw.updateViewOnPan=function(t,e,i){var n=t.target,a=n.position;a[0]+=e,a[1]+=i,n.dirty()},xw.updateViewOnZoom=function(t,e,i,n){var a=t.target,r=t.zoomLimit,o=a.position,s=a.scale,l=t.zoom=t.zoom||1;if(l*=e,r){var h=r.min||0,u=r.max||1/0;l=Math.max(Math.min(u,l),h)}var c=l/t.zoom;t.zoom=l,o[0]-=(i-o[0])*(c-1),o[1]-=(n-o[1])*(c-1),s[0]*=c,s[1]*=c,a.dirty()};var _w={},bw={axisPointer:1,tooltip:1,brush:1};_w.onIrrelevantElement=function(t,e,i){var n=e.getComponentByElement(t.topTarget),a=n&&n.coordinateSystem;return n&&n!==i&&!bw[n.mainType]&&a&&a.model!==i};var ww=b,Sw=yw,Mw=xw,Iw=_w.onIrrelevantElement,Aw=Vr;function Tw(t,e){var i=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(i.fill=n),i}function Cw(t,e){e.eachChild((function(e){ww.each(e.__regions,(function(i){e.trigger(t.isSelected(i.name)?"emphasis":"normal")}))}))}function Lw(t,e){var i=new Aw.Group;this._controller=new Sw(t.getZr()),this._controllerHost={target:e?i:null},this.group=i,this._updateGroup=e,this._mouseDownFlag}Lw.prototype={constructor:Lw,draw:function(t,e,i,n,a){var r="geo"===t.mainType,o=t.getData&&t.getData();r&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s=t.coordinateSystem,l=this.group,h=s.scale,u={position:s.position,scale:h};!l.childAt(0)||a?l.attr(u):Aw.updateProps(l,u,t),l.removeAll();var c=["itemStyle","normal"],d=["itemStyle","emphasis"],p=["label","normal"],f=["label","emphasis"],g=ww.createHashMap();ww.each(s.regions,(function(e){var i=g.get(e.name)||g.set(e.name,new Aw.Group),n=new Aw.CompoundPath({shape:{paths:[]}});i.add(n);var a,s=(C=t.getRegionModel(e.name)||t).getModel(c),u=C.getModel(d),m=Tw(s),v=Tw(u),y=C.getModel(p),x=C.getModel(f);if(o){a=o.indexOfName(e.name);var _=o.getItemVisual(a,"color",!0);_&&(m.fill=_)}ww.each(e.geometries,(function(t){if("polygon"===t.type){n.shape.paths.push(new Aw.Polygon({shape:{points:t.exterior}}));for(var e=0;e<(t.interiors?t.interiors.length:0);e++)n.shape.paths.push(new Aw.Polygon({shape:{points:t.interiors[e]}}))}})),n.setStyle(m),n.style.strokeNoScale=!0,n.culling=!0;var b=y.get("show"),w=x.get("show"),S=o&&isNaN(o.get("value",a)),M=o&&o.getItemLayout(a);if(r||S&&(b||w)||M&&M.showLabel){var I,A=r?e.name:a;(!o||a>=0)&&(I=t);var T=new Aw.Text({position:e.center.slice(),scale:[1/h[0],1/h[1]],z2:10,silent:!0});Aw.setLabelStyle(T.style,T.hoverStyle={},y,x,{labelFetcher:I,labelDataIndex:A,defaultText:e.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),i.add(T)}if(o)o.setItemGraphicEl(a,i);else{var C=t.getRegionModel(e.name);n.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:C&&C.option||{}}}(i.__regions||(i.__regions=[])).push(e),Aw.setHoverStyle(i,v,{hoverSilentOnTouch:!!t.get("selectedMode")}),l.add(i)})),this._updateController(t,e,i),function(t,e,i,n,a){i.off("click"),i.off("mousedown"),e.get("selectedMode")&&(i.on("mousedown",(function(){t._mouseDownFlag=!0})),i.on("click",(function(r){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var o=r.target;!o.__regions;)o=o.parent;if(o){var s={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",batch:ww.map(o.__regions,(function(t){return{name:t.name,from:a.uid}}))};s[e.mainType+"Id"]=e.id,n.dispatchAction(s),Cw(e,i)}}})))}(this,t,l,i,n),Cw(t,l)},remove:function(){this.group.removeAll(),this._controller.dispose(),this._controllerHost={}},_updateController:function(t,e,i){var n=t.coordinateSystem,a=this._controller,r=this._controllerHost;r.zoomLimit=t.get("scaleLimit"),r.zoom=n.getZoom(),a.enable(t.get("roam")||!1);var o=t.mainType;function s(){var e={type:"geoRoam",componentType:o};return e[o+"Id"]=t.id,e}a.off("pan").on("pan",(function(t,e){this._mouseDownFlag=!1,Mw.updateViewOnPan(r,t,e),i.dispatchAction(ww.extend(s(),{dx:t,dy:e}))}),this),a.off("zoom").on("zoom",(function(t,e,n){if(this._mouseDownFlag=!1,Mw.updateViewOnZoom(r,t,e,n),i.dispatchAction(ww.extend(s(),{zoom:t,originX:e,originY:n})),this._updateGroup){var a=this.group,o=a.scale;a.traverse((function(t){"text"===t.type&&t.attr("scale",[1/o[0],1/o[1]])}))}}),this),a.setPointerChecker((function(e,a,r){return n.getViewRectAfterRoam().contain(a,r)&&!Iw(e,i,t)}))}};var Dw=Lw,Pw=b,kw=Vr,Ow=Dw;m.extendChartView({type:"map",render:function(t,e,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===t.id)(r=this._mapDraw)&&a.add(r.group);else if(t.needsDrawMap){var r=this._mapDraw||new Ow(i,!0);a.add(r.group),r.draw(t,e,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,i){var n=t.originalData,a=this.group;n.each("value",(function(e,i){if(!isNaN(e)){var r=n.getItemLayout(i);if(r&&r.point){var o=r.point,s=r.offset,l=new kw.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:s?8:10});if(!s){var h=t.mainSeries.getData(),u=n.getName(i),c=h.indexOfName(u),d=n.getItemModel(i),p=d.getModel("label.normal"),f=d.getModel("label.emphasis"),g=h.getItemGraphicEl(c),m=Pw.retrieve2(t.getFormattedLabel(i,"normal"),u),v=Pw.retrieve2(t.getFormattedLabel(i,"emphasis"),m),y=function(){var t=kw.setTextStyle({},f,{text:f.get("show")?v:null},{isRectText:!0,useInsideStyle:!1},!0);l.style.extendFrom(t),l.__mapOriginalZ2=l.z2,l.z2+=1},x=function(){kw.setTextStyle(l.style,p,{text:p.get("show")?m:null,textPosition:p.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),null!=l.__mapOriginalZ2&&(l.z2=l.__mapOriginalZ2,l.__mapOriginalZ2=null)};g.on("mouseover",y).on("mouseout",x).on("emphasis",y).on("normal",x),x()}a.add(l)}}}))}});var zw={};zw.updateCenterAndZoom=function(t,e,i){var n=t.getZoom(),a=t.getCenter(),r=e.zoom,o=t.dataToPoint(a);if(null!=e.dx&&null!=e.dy){o[0]-=e.dx,o[1]-=e.dy;a=t.pointToData(o);t.setCenter(a)}if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}t.scale[0]*=r,t.scale[1]*=r;var h=t.position,u=(e.originX-h[0])*(r-1),c=(e.originY-h[1])*(r-1);h[0]-=u,h[1]-=c,t.updateTransform();a=t.pointToData(o);t.setCenter(a),t.setZoom(r*n)}return{center:t.getCenter(),zoom:t.getZoom()}};var Ew=m,Rw=b,Nw=zw.updateCenterAndZoom;Ew.registerAction({type:"geoRoam",event:"geoRoam",update:"updateLayout"},(function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var n=e.coordinateSystem;if("geo"===n.type){var a=Nw(n,t,e.get("scaleLimit"));e.setCenter&&e.setCenter(a.center),e.setZoom&&e.setZoom(a.zoom),"series"===i&&Rw.each(e.seriesGroup,(function(t){t.setCenter(a.center),t.setZoom(a.zoom)}))}}))}));var Vw=b;var Bw=b;var Gw=function(t){var e={};t.eachSeriesByType("map",(function(t){var i=t.getHostGeoModel(),n=i?"o"+i.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),Bw.each(e,(function(t,e){for(var i,n,a,r,o=(i=Bw.map(t,(function(t){return t.getData()})),n=t[0].get("mapValueCalculation"),a={},r=["value"],Bw.each(i,(function(t){t.each(r,(function(e,i){var n="ec-"+t.getName(i);a[n]=a[n]||[],isNaN(e)||a[n].push(e)}))})),i[0].map(r,(function(t,e){for(var r="ec-"+i[0].getName(e),o=0,s=1/0,l=-1/0,h=a[r].length,u=0;ue&&(e=n.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,n=i.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e,i=this.hostTree,n=i.data.getItemModel(this.dataIndex),a=this.getLevelModel();return a||0!==this.children.length&&(0===this.children.length||!1!==this.isExpand)||(e=this.getLeavesModel()),n.getModel(t,(a||e||i.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},getLeavesModel:function(){return this.hostTree.leavesModel},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},cS.prototype={constructor:cS,type:"tree",eachNode:function(t,e,i){this.root.eachNode(t,e,i)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,i=0,n=e.length;ir&&(r=t.depth)}));var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return a.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o})),a.data},formatTooltip:function(t){for(var e=this.getData().tree,i=e.root.children[0],n=e.getNodeByDataIndex(t),a=n.getValue(),r=n.name;n&&n!==i;)r=n.parentNode.name+"."+r,n=n.parentNode;return gS(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",orient:"horizontal",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{normal:{color:"#ccc",width:1.5,curveness:.5}},itemStyle:{normal:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5}},label:{normal:{show:!0,color:"#555"}},leaves:{label:{normal:{show:!0}}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});var mS={},vS=wu;function yS(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function xS(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function _S(t,e,i){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:i}function bS(t,e,i){var n=i/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=i,e.hierNode.modifier+=i,e.hierNode.prelim+=i,t.hierNode.change+=n}function wS(t,e){return t.parentNode===e.parentNode?1:2}mS.init=function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,i,n=[t];e=n.pop();)if(i=e.children,e.isExpand&&i.length)for(var a=i.length-1;a>=0;a--){var r=i[a];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(r)}},mS.firstWalk=function(t,e){var i=t.isExpand?t.children:[],n=t.parentNode.children,a=t.hierNode.i?n[t.hierNode.i-1]:null;if(i.length){!function(t){var e=t.children,i=e.length,n=0,a=0;for(;--i>=0;){var r=e[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}(t);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=function(t,e,i,n){if(e){for(var a=t,r=t,o=r.parentNode.children[0],s=e,l=a.hierNode.modifier,h=r.hierNode.modifier,u=o.hierNode.modifier,c=s.hierNode.modifier;s=yS(s),r=xS(r),s&&r;){a=yS(a),o=xS(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+c-r.hierNode.prelim-h+n(s,r);d>0&&(bS(_S(s,t,i),t,d),h+=d,l+=d),c+=s.hierNode.modifier,h+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!yS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),r&&!xS(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=h-u,i=t)}return i}(t,a,t.parentNode.hierNode.defaultAncestor||n[0],e)},mS.secondWalk=function(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier},mS.separation=function(t){return arguments.length?t:wS},mS.radialCoordinate=function(t,e){var i={};return t-=Math.PI/2,i.x=e*Math.cos(t),i.y=e*Math.sin(t),i},mS.getViewRect=function(t,e){return vS.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})};var SS=b,MS=Vr,IS=sm,AS=mS.radialCoordinate;function TS(t,e){var i=t.getItemLayout(e);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==t.getItemVisual(e,"symbol")}function CS(t,e,i){return i.itemModel=e,i.itemStyle=e.getModel("itemStyle.normal").getItemStyle(),i.hoverItemStyle=e.getModel("itemStyle.emphasis").getItemStyle(),i.lineStyle=e.getModel("lineStyle.normal").getLineStyle(),i.labelModel=e.getModel("label.normal"),i.hoverLabelModel=e.getModel("label.emphasis"),!1===t.isExpand&&0!==t.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function LS(t,e,i,n,a,r){var o=!i,s=t.tree.getNodeByDataIndex(e),l=s.getModel(),h=(r=CS(s,l,r),t.tree.root),u=s.parentNode===h?s:s.parentNode||s,c=t.getItemGraphicEl(u.dataIndex),d=u.getLayout(),p=c?{x:c.position[0],y:c.position[1],rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:d,f=s.getLayout();o?(i=new IS(t,e,r)).attr("position",[p.x,p.y]):i.updateData(t,e,r),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=f.rawX,i.__radialRawY=f.rawY,n.add(i),t.setItemGraphicEl(e,i),MS.updateProps(i,{position:[f.x,f.y]},a);var g=i.getSymbolPath();if("radial"===r.layout){var m,v,y=h.children[0],x=y.getLayout(),_=y.children.length;if(f.x===x.x&&!0===s.isExpand){var b={};b.x=(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,b.y=(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2,(m=Math.atan2(b.y-x.y,b.x-x.x))<0&&(m=2*Math.PI+m),(v=b.xx.x)||(m-=Math.PI);var w=v?"left":"right";g.setStyle({textPosition:w,textRotation:-m,textOrigin:"center",verticalAlign:"middle"})}if(s.parentNode&&s.parentNode!==h){var S=i.__edge;S||(S=i.__edge=new MS.BezierCurve({shape:PS(r,p,p),style:SS.defaults({opacity:0},r.lineStyle)})),MS.updateProps(S,{shape:PS(r,d,f),style:{opacity:1}},a),n.add(S)}}function DS(t,e,i,n,a,r){for(var o,s=t.tree.getNodeByDataIndex(e),l=t.tree.root,h=s.getModel(),u=(r=CS(s,h,r),s.parentNode===l?s:s.parentNode||s);null==(o=u.getLayout());)u=u.parentNode===l?u:u.parentNode||u;MS.updateProps(i,{position:[o.x+1,o.y+1]},a,(function(){n.remove(i),t.setItemGraphicEl(e,null)})),i.fadeOut(null,{keepLabel:!0});var c=i.__edge;c&&MS.updateProps(c,{shape:PS(r,o,o),style:{opacity:0}},a,(function(){n.remove(c)}))}function PS(t,e,i){var n,a,r,o,s=t.orient;if("radial"===t.layout){var l=e.rawX,h=e.rawY,u=i.rawX,c=i.rawY,d=AS(l,h),p=AS(l,h+(c-h)*t.curvature),f=AS(u,c+(h-c)*t.curvature),g=AS(u,c);return{x1:d.x,y1:d.y,x2:g.x,y2:g.y,cpx1:p.x,cpy1:p.y,cpx2:f.x,cpy2:f.y}}l=e.x,h=e.y,u=i.x,c=i.y;return"horizontal"===s&&(n=l+(u-l)*t.curvature,a=h,r=u+(l-u)*t.curvature,o=c),"vertical"===s&&(n=l,a=h+(c-h)*t.curvature,r=u,o=c+(h-c)*t.curvature),{x1:l,y1:h,x2:u,y2:c,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}m.extendChartView({type:"tree",init:function(t,e){this._oldTree,this._mainGroup=new MS.Group,this.group.add(this._mainGroup)},render:function(t,e,i,n){var a=t.getData(),r=t.layoutInfo,o=this._mainGroup,s=t.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]);var l=this._data,h={expandAndCollapse:t.get("expandAndCollapse"),layout:s,orient:t.get("orient"),curvature:t.get("lineStyle.normal.curveness"),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add((function(e){TS(a,e)&&LS(a,e,null,o,t,h)})).update((function(e,i){var n=l.getItemGraphicEl(i);TS(a,e)?LS(a,e,n,o,t,h):n&&DS(a,e,n,o,t,h)})).remove((function(e){var i=l.getItemGraphicEl(e);DS(a,e,i,o,t,h)})).execute(),!0===h.expandAndCollapse&&a.eachItemGraphicEl((function(e,n){e.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:n})}))})),this._data=a},dispose:function(){},remove:function(){this._mainGroup.removeAll(),this._data=null}}),m.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=t.dataIndex,n=e.getData().tree.getNodeByDataIndex(i);n.isExpand=!n.isExpand}))}));var kS={};kS.eachAfter=function(t,e,i){for(var n,a=[t],r=[];n=a.pop();)if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;r--)n.push(a[r])}};var OS=kS,zS=OS.eachAfter,ES=OS.eachBefore,RS=mS,NS=RS.init,VS=RS.firstWalk,BS=RS.secondWalk,GS=RS.separation,WS=RS.radialCoordinate,HS=RS.getViewRect;var FS=function(t,e){var i=HS(t,e);t.layoutInfo=i;var n=t.get("layout"),a=0,r=0,o=null;"radial"===n?(a=2*Math.PI,r=Math.min(i.height,i.width)/2,o=GS((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=i.width,r=i.height,o=GS());var s=t.getData().tree.root,l=s.children[0];NS(s),zS(l,VS,o),s.hierNode.modifier=-l.hierNode.prelim,ES(l,BS);var h=l,u=l,c=l;ES(l,(function(t){var e=t.getLayout().x;eu.getLayout().x&&(u=t),t.depth>c.depth&&(c=t)}));var d=h===u?1:o(h,u)/2,p=d-h.getLayout().x,f=0,g=0,m=0,v=0;"radial"===n?(f=a/(u.getLayout().x+d+p),g=r/(c.depth-1||1),ES(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=WS(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}))):"horizontal"===t.get("orient")?(g=r/(u.getLayout().x+d+p),f=a/(c.depth-1||1),ES(l,(function(t){v=(t.getLayout().x+p)*g,m=(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):(f=a/(u.getLayout().x+d+p),g=r/(c.depth-1||1),ES(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))},ZS=FS;var US=FS;var jS=m,qS=b,XS=Ym,YS=function(t,e){t.eachSeriesByType("tree",(function(t){ZS(t,e)}))},$S=function(t,e){t.eachSeriesByType("tree",(function(t){US(t,e)}))};jS.registerVisual(qS.curry(XS,"tree","circle",null)),jS.registerLayout(YS),jS.registerLayout($S);var KS={},JS=b;function QS(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}KS.retrieveTargetInfo=function(t,e){if(t&&("treemapZoomToNode"===t.type||"treemapRootToNode"===t.type)){var i=e.getData().tree.root,n=t.targetNode;if(n&&i.contains(n))return{node:n};var a=t.targetNodeId;if(null!=a&&(n=i.getNodeById(a)))return{node:n}}},KS.getPathToRoot=QS,KS.aboveViewRoot=function(t,e){var i=QS(t);return JS.indexOf(i,e)>=0},KS.wrapTreePathInfo=function(t,e){for(var i=[];t;){var n=t.dataIndex;i.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return i.reverse(),i};var tM=b,eM=yd,iM=dS,nM=ru,aM=cr,rM=aM.encodeHTML,oM=aM.addCommas,sM=KS.wrapTreePathInfo;function lM(t){var e=0;tM.each(t.children,(function(t){lM(t);var i=t.value;tM.isArray(i)&&(i=i[0]),e+=i}));var i=t.value;tM.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=e),i<0&&(i=0),tM.isArray(t.value)?t.value[0]=i:t.value=i}eM.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0}},upperLabel:{normal:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},emphasis:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(t,e){var i={name:t.name,children:t.data};lM(i);var n=t.levels||[];n=t.levels=function(t,e){var i,n=e.get("color");if(!n)return;if(t=t||[],tM.each(t,(function(t){var e=new nM(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)})),!i){(t[0]||(t[0]={})).color=n.slice()}return t}(n,e);var a={};return a.levels=n,iM.createTree(i,this,a).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=tM.isArray(i)?oM(i[0]):oM(i),a=e.getName(t);return rM(a+": "+n)},getDataParams:function(t){var e=eM.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=sM(i,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},tM.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=tM.createHashMap(),this._idIndexMapCount=0);var i=e.get(t);return null==i&&e.set(t,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}});var hM=Vr,uM=wu,cM=b,dM=KS.wrapTreePathInfo;function pM(t){this.group=new hM.Group,t.add(this.group)}function fM(t,e,i,n,a,r){var o=[[a?t:t-5,e],[t+i,e],[t+i,e+n],[a?t:t-5,e+n]];return!r&&o.splice(2,0,[t+i+5,e+n/2]),!a&&o.push([t,e+n/2]),o}function gM(t,e,i){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&dM(i,e)}}pM.prototype={constructor:pM,render:function(t,e,i,n){var a=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),a.get("show")&&i){var o=a.getModel("itemStyle.normal"),s=o.getModel("textStyle"),l={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,l,s),this._renderContent(t,l,o,s,n),uM.positionElement(r,l.pos,l.box)}},_prepare:function(t,e,i){for(var n=t;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=o+8,e.renderList.push({node:n,text:a,width:o})}},_renderContent:function(t,e,i,n,a){for(var r=0,o=e.emptyItemWidth,s=t.get("breadcrumb.height"),l=uM.getAvailableSize(e.pos,e.box),h=e.totalWidth,u=e.renderList,c=u.length-1;c>=0;c--){var d=u[c],p=d.node,f=d.width,g=d.text;h>l.width&&(h-=f-o,f=o,g=null);var m=new hM.Polygon({shape:{points:fM(r,0,f,s,c===u.length-1,0===c)},style:cM.defaults(i.getItemStyle(),{lineJoin:"bevel",text:g,textFill:n.getTextColor(),textFont:n.getFont()}),z:10,onclick:cM.curry(a,p)});this.group.add(m),gM(m,t,p),r+=f+8}},remove:function(){this.group.removeAll()}};var mM=pM,vM={},yM=b;vM.createWrap=function(){var t,e=[],i={};return{add:function(t,n,a,r,o){return yM.isString(r)&&(o=r,r=0),!i[t.id]&&(i[t.id]=1,e.push({el:t,target:n,time:a,delay:r,easing:o}),!0)},done:function(e){return t=e,this},start:function(){for(var n=e.length,a=0,r=e.length;a3||Math.abs(e)>3)){var i=this.seriesModel.getData().tree.root;if(!i)return;var n=i.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t,y:n.y+e,width:n.width,height:n.height}})}},_onZoom:function(t,e,i){if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new AM(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;e-=o.x,i-=o.y;var s=TM.create();TM.translate(s,s,[-e,-i]),TM.scale(s,s,[t,t]),TM.translate(s,s,[e,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(t){t.on("click",(function(t){if("ready"===this._state){var e=this.seriesModel.get("nodeClick",!0);if(e){var i=this.findTarget(t.offsetX,t.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===e)this._zoomToNode(i);else if("link"===e){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&window.open(r,o)}}}}}),this)},_renderBreadcrumb:function(t,e,i){i||(i=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(i={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new MM(this.group))).render(t,e,i.node,DM((function(e){"animating"!==this._state&&(SM.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}),this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var i;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(t,e),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});for(var HM=m,FM=KS,ZM=function(){},UM=["treemapZoomToNode","treemapRender","treemapMove"],jM=0;jM=0;r--)null==i[r]&&(delete n[e[r]],e.pop())}(n):tI(n,!0):(qM.assert("linear"!==e||n.dataExtent),tI(n))};JM.prototype={constructor:JM,mapValueToVisual:function(t){var e=this._normalizeData(t);return this._doMap(e,t)},getNormalizer:function(){return qM.bind(this._normalizeData,this)}};var QM=JM.visualHandlers={color:{applyVisual:nI("color"),getColorMapper:function(){var t=this.option;return qM.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),aI.call(this,t)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=XM.fastLerp(e,t.parsedVisual,n),a?n:XM.stringify(n,"rgba")},this)},_doMap:{linear:function(t){return XM.stringify(XM.fastLerp(t,this.option.parsedVisual),"rgba")},category:aI,piecewise:function(t,e){var i=sI.call(this,e);return null==i&&(i=XM.stringify(XM.fastLerp(t,this.option.parsedVisual),"rgba")),i},fixed:rI}},colorHue:eI((function(t,e){return XM.modifyHSL(t,e)})),colorSaturation:eI((function(t,e){return XM.modifyHSL(t,null,e)})),colorLightness:eI((function(t,e){return XM.modifyHSL(t,null,null,e)})),colorAlpha:eI((function(t,e){return XM.modifyAlpha(t,e)})),opacity:{applyVisual:nI("opacity"),_doMap:oI([0,1])},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);if(qM.isString(n))i("symbol",n);else if(KM(n))for(var a in n)n.hasOwnProperty(a)&&i(a,n[a])},_doMap:{linear:iI,category:aI,piecewise:function(t,e){var i=sI.call(this,e);return null==i&&(i=iI.call(this,t)),i},fixed:rI}},symbolSize:{applyVisual:nI("symbolSize"),_doMap:oI([0,1])}};function tI(t,e){var i=t.visual,n=[];qM.isObject(i)?$M(i,(function(t){n.push(t)})):null!=i&&n.push(i);e||1!==n.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(n[1]=n[0]),lI(t,n)}function eI(t){return{applyVisual:function(e,i,n){e=this.mapValueToVisual(e),n("color",t(i("color"),e))},_doMap:oI([0,1])}}function iI(t){var e=this.option.visual;return e[Math.round(YM(t,[0,1],[0,e.length-1],!0))]||{}}function nI(t){return function(e,i,n){n(t,this.mapValueToVisual(e))}}function aI(t){var e=this.option.visual;return e[this.option.loop&&-1!==t?t%e.length:t]}function rI(){return this.option.visual[0]}function oI(t){return{linear:function(e){return YM(e,t,this.option.visual,!0)},category:aI,piecewise:function(e,i){var n=sI.call(this,i);return null==n&&(n=YM(e,t,this.option.visual,!0)),n},fixed:rI}}function sI(t){var e=this.option,i=e.pieceList;if(e.hasSpecialVisual){var n=i[JM.findPieceIndex(t,i)];if(n&&n.visual)return n.visual[this.type]}}function lI(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=qM.map(e,(function(t){return XM.parse(t)}))),e}var hI={linear:function(t){return YM(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,i=JM.findPieceIndex(t,e,!0);if(null!=i)return YM(i,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?-1:e},fixed:qM.noop};function uI(t,e,i){return t?e<=i:eh[1]&&(h[1]=l);var u=e.get("colorMappingBy"),c={type:o.name,dataExtent:h,visual:o.range};"color"!==c.type||"index"!==u&&"id"!==u?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new dI(c);return d.__drColorMappingBy=u,d}(0,o,s,0,u,p);fI.each(p,(function(t,e){if(t.depth>=a.length||t===a[t.depth]){var s=function(t,e,i,n,a,r){var o=fI.extend({},e);if(a){var s=a.type,l="color"===s&&a.__drColorMappingBy,h="index"===l?n:"id"===l?r.mapIdToIndex(i.getId()):i.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(h)}return o}(o,u,t,e,f,r);mI(t,s,i,n,a,r)}}))}else l=vI(u),t.setVisual("color",l)}}function vI(t){var e=yI(t,"color");if(e){var i=yI(t,"colorAlpha"),n=yI(t,"colorSaturation");return n&&(e=pI.modifyHSL(e,null,null,n)),i&&(e=pI.modifyAlpha(e,i)),e}}function yI(t,e){var i=t[e];if(null!=i&&"none"!==i)return i}function xI(t,e){var i=t.get(e);return gI(i)&&i.length?{name:e,range:i}:null}var _I=function(t,e,i){var n={mainType:"series",subType:"treemap",query:i};t.eachComponent(n,(function(t){var e=t.getData().tree,i=e.root,n=t.getModel("itemStyle.normal");i.isRemoved()||mI(i,{},fI.map(e.levelModels,(function(t){return t?t.get("itemStyle.normal"):null})),n,t.getViewRoot().getAncestors(),t)}))},bI=b,wI=Je,SI=dr,MI=SI.parsePercent,II=SI.MAX_SAFE_INTEGER,AI=wu,TI=KS,CI=Math.max,LI=Math.min,DI=bI.retrieve,PI=bI.each,kI=["itemStyle","normal","borderWidth"],OI=["itemStyle","normal","gapWidth"],zI=["upperLabel","normal","show"],EI=["upperLabel","normal","height"];function RI(t,e,i,n){var a,r;if(!t.isRemoved()){var o=t.getLayout();a=o.width,r=o.height;var s=(p=t.getModel()).get(kI),l=p.get(OI)/2,h=GI(p),u=Math.max(s,h),c=s-l,d=u-l,p=t.getModel();t.setLayout({borderWidth:s,upperHeight:u,upperLabelHeight:h},!0);var f=(a=CI(a-2*c,0))*(r=CI(r-c-d,0)),g=function(t,e,i,n,a,r){var o=t.children||[],s=n.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=n.leafDepth&&n.leafDepth<=r;if(a&&!l)return t.viewChildren=[];o=bI.filter(o,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,i){var n="asc"===e?t.getValue()-i.getValue():i.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:n}))}(o,s);var h=function(t,e,i){for(var n=0,a=0,r=e.length;as[1]&&(s[1]=e)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}(e,o,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,i,n,a){if(!n)return i;for(var r=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var h=a["asc"===n?o-l-1:l].getValue();h/i*ea&&(a=n));var l=t.area*t.area,h=e*e*i;return l?CI(h*a/l,l/(h*r)):1/0}function VI(t,e,i,n,a){var r=e===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],h=i[s[r]],u=e?t.area/e:0;(a||u>i[l[o]])&&(u=i[l[o]]);for(var c=0,d=t.length;cII&&(h=II),o=r}h=0&&t.call(e,i[a],a)},XI.eachEdge=function(t,e){for(var i=this.edges,n=i.length,a=0;a=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&t.call(e,i[a],a)},XI.breadthFirstTraverse=function(t,e,i,n){if(e instanceof YI||(e=this._nodesMap[jI(e)]),e){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a=0&&this[t][e].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[t][e].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};UI.mixin(YI,KI("hostGraph","data")),UI.mixin($I,KI("hostGraph","edgeData")),qI.Node=YI,qI.Edge=$I;var JI=b,QI=dp,tA=qI,eA=aS,iA=wp,nA=_c,aA=Ep;var rA=function(t,e,i,n,a){for(var r=new tA(n),o=0;o "+d)),h++)}var p,f=i.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=aA(t,i,i.ecModel);else{var g=nA.get(f),m=iA((g&&"view"!==g.type&&g.dimensions||[]).concat(["value"]),t);(p=new QI(m,i)).initData(t)}var v=new QI(["value"],i);return v.initData(l,s),a&&a(p,v),eA({mainData:p,struct:r,structAttr:"graph",datas:{node:p,edge:v},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r},oA=m,sA=dp,lA=b,hA=ur.defaultEmphasis,uA=ru,cA=cr.encodeHTML,dA=rA,pA=oA.extendSeriesModel({type:"series.graph",init:function(t){pA.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){pA.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){pA.superApply(this,"mergeDefaultAndTheme",arguments),hA(t.edgeLabel,["show"])},getInitialData:function(t,e){var i=t.edges||t.links||[],n=t.data||t.nodes||[],a=this;if(n&&i)return dA(n,i,this,!0,(function(t,i){t.wrapMethod("getItemModel",(function(t){var e=a._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=a.getModel("edgeLabel"),r=new uA({label:n.option},n.parentModel,e);function o(t){return(t=this.parsePath(t))&&"label"===t[0]?r:this.parentModel}i.wrapMethod("getItemModel",(function(t){return t.customizeGetParent(o),t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(t,i),r=n.graph.getEdgeByIndex(t),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=cA(l.join(" > ")),a.value&&(l+=" : "+cA(a.value)),l}return pA.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=lA.map(this.option.categories||[],(function(t){return null!=t.value?t:lA.extend({value:0},t)})),e=new sA(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return pA.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}}),fA=Vr,gA=U,mA=fA.Line.prototype,vA=fA.BezierCurve.prototype;function yA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var xA=fA.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(t,e){(yA(e)?mA:vA).buildPath(t,e)},pointAt:function(t){return yA(this.shape)?mA.pointAt.call(this,t):vA.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,i=yA(e)?[e.x2-e.x1,e.y2-e.y1]:vA.tangentAt.call(this,t);return gA.normalize(i,i)}}),_A=b,bA=U,wA=Hf,SA=xA,MA=Vr,IA=dr.round,AA=["fromSymbol","toSymbol"];function TA(t){return"_"+t+"Type"}function CA(t,e,i){var n=e.getItemVisual(i,"color"),a=e.getItemVisual(i,t),r=e.getItemVisual(i,t+"Size");if(a&&"none"!==a){_A.isArray(r)||(r=[r,r]);var o=wA.createSymbol(a,-r[0]/2,-r[1]/2,r[0],r[1],n);return o.name=t,o}}function LA(t,e){var i=e[0],n=e[1],a=e[2];t.x1=i[0],t.y1=i[1],t.x2=n[0],t.y2=n[1],t.percent=1,a?(t.cpx1=a[0],t.cpy1=a[1]):(t.cpx1=NaN,t.cpy1=NaN)}function DA(t,e,i){MA.Group.call(this),this._createLine(t,e,i)}var PA=DA.prototype;PA.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),i=t.childOfName("toSymbol"),n=t.childOfName("label");if(e||i||!n.ignore){for(var a=1,r=this.parent;r;)r.scale&&(a/=r.scale[0]),r=r.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),h=o.pointAt(s),u=bA.sub([],h,l);if(bA.normalize(u,u),e){e.attr("position",l);var c=o.tangentAt(0);e.attr("rotation",Math.PI/2-Math.atan2(c[1],c[0])),e.attr("scale",[a*s,a*s])}if(i){i.attr("position",h);c=o.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(c[1],c[0])),i.attr("scale",[a*s,a*s])}if(!n.ignore){var d,p,f;n.attr("position",h);var g=5*a;if("end"===n.__position)d=[u[0]*g+h[0],u[1]*g+h[1]],p=u[0]>.8?"left":u[0]<-.8?"right":"center",f=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===n.__position){var m=s/2,v=[(c=o.tangentAt(m))[1],-c[0]],y=o.pointAt(m);v[1]>0&&(v[0]=-v[0],v[1]=-v[1]),d=[y[0]+v[0]*g,y[1]+v[1]*g],p="center",f="bottom";var x=-Math.atan2(c[1],c[0]);h[0].8?"right":u[0]<-.8?"left":"center",f=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";n.attr({style:{textVerticalAlign:n.__verticalAlign||f,textAlign:n.__textAlign||p},position:d,scale:[a,a]})}}}},PA._createLine=function(t,e,i){var n=t.hostModel,a=function(t){var e=new SA({name:"line"});return LA(e.shape,t),e}(t.getItemLayout(e));a.shape.percent=0,MA.initProps(a,{shape:{percent:1}},n,e),this.add(a);var r=new MA.Text({name:"label"});this.add(r),_A.each(AA,(function(i){var n=CA(i,t,e);this.add(n),this[TA(i)]=t.getItemVisual(e,i)}),this),this._updateCommonStl(t,e,i)},PA.updateData=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=t.getItemLayout(e),o={shape:{}};LA(o.shape,r),MA.updateProps(a,o,n,e),_A.each(AA,(function(i){var n=t.getItemVisual(e,i),a=TA(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=CA(i,t,e);this.add(r)}this[a]=n}),this),this._updateCommonStl(t,e,i)},PA._updateCommonStl=function(t,e,i){var n=t.hostModel,a=this.childOfName("line"),r=i&&i.lineStyle,o=i&&i.hoverLineStyle,s=i&&i.labelModel,l=i&&i.hoverLabelModel;if(!i||t.hasItemOption){var h=t.getItemModel(e);r=h.getModel("lineStyle.normal").getLineStyle(),o=h.getModel("lineStyle.emphasis").getLineStyle(),s=h.getModel("label.normal"),l=h.getModel("label.emphasis")}var u=t.getItemVisual(e,"color"),c=_A.retrieve3(t.getItemVisual(e,"opacity"),r.opacity,1);a.useStyle(_A.defaults({strokeNoScale:!0,fill:"none",stroke:u,opacity:c},r)),a.hoverStyle=o,_A.each(AA,(function(t){var e=this.childOfName(t);e&&(e.setColor(u),e.setStyle({opacity:c}))}),this);var d,p,f,g,m=s.getShallow("show"),v=l.getShallow("show"),y=this.childOfName("label");if(m||v){var x=n.getRawValue(e);p=null==x?p=t.getName(e):isFinite(x)?IA(x):x,d=u||"#000",f=_A.retrieve2(n.getFormattedLabel(e,"normal",t.dataType),p),g=_A.retrieve2(n.getFormattedLabel(e,"emphasis",t.dataType),f)}if(m){var _=MA.setTextStyle(y.style,s,{text:f},{autoColor:d});y.__textAlign=_.textAlign,y.__verticalAlign=_.textVerticalAlign,y.__position=s.get("position")||"middle"}else y.setStyle("text",null);y.hoverStyle=v?{text:g,textFill:l.getTextColor(!0),fontStyle:l.getShallow("fontStyle"),fontWeight:l.getShallow("fontWeight"),fontSize:l.getShallow("fontSize"),fontFamily:l.getShallow("fontFamily")}:{text:null},y.ignore=!m&&!v,MA.setHoverStyle(this)},PA.highlight=function(){this.trigger("emphasis")},PA.downplay=function(){this.trigger("normal")},PA.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},PA.setLinePoints=function(t){var e=this.childOfName("line");LA(e.shape,t),e.dirty()},_A.inherits(DA,MA.Group);var kA=DA,OA=Vr,zA=kA;function EA(t){return isNaN(t[0])||isNaN(t[1])}function RA(t){return!EA(t[0])&&!EA(t[1])}function NA(t){this._ctor=t||zA,this.group=new OA.Group}var VA=NA.prototype;VA.updateData=function(t){var e=this._lineData,i=this.group,n=this._ctor,a=t.hostModel,r={lineStyle:a.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:a.getModel("lineStyle.emphasis").getLineStyle(),labelModel:a.getModel("label.normal"),hoverLabelModel:a.getModel("label.emphasis")};t.diff(e).add((function(e){if(RA(t.getItemLayout(e))){var a=new n(t,e,r);t.setItemGraphicEl(e,a),i.add(a)}})).update((function(a,o){var s=e.getItemGraphicEl(o);RA(t.getItemLayout(a))?(s?s.updateData(t,a,r):s=new n(t,a,r),t.setItemGraphicEl(a,s),i.add(s)):i.remove(s)})).remove((function(t){i.remove(e.getItemGraphicEl(t))})).execute(),this._lineData=t},VA.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl((function(e,i){e.updateLayout(t,i)}),this)},VA.remove=function(){this.group.removeAll()};var BA=NA,GA=Gr,WA=U,HA=[],FA=[],ZA=[],UA=GA.quadraticAt,jA=WA.distSquare,qA=Math.abs;function XA(t,e,i){for(var n,a=t[0],r=t[1],o=t[2],s=1/0,l=i*i,h=.1,u=.1;u<=.9;u+=.1){HA[0]=UA(a[0],r[0],o[0],u),HA[1]=UA(a[1],r[1],o[1],u),(p=qA(jA(HA,e)-l))=0?n+=h:n-=h:f>=0?n-=h:n+=h}return n}var YA=function(t,e){var i=[],n=GA.quadraticSubdivide,a=[[],[],[]],r=[[],[]],o=[];function s(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}e/=2,t.eachEdge((function(t,l){var h=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");h.__original||(h.__original=[WA.clone(h[0]),WA.clone(h[1])],h[2]&&h.__original.push(WA.clone(h[2])));var d=h.__original;if(null!=h[2]){if(WA.copy(a[0],d[0]),WA.copy(a[1],d[2]),WA.copy(a[2],d[1]),u&&"none"!=u){var p=s(t.node1),f=XA(a,d[0],p*e);n(a[0][0],a[1][0],a[2][0],f,i),a[0][0]=i[3],a[1][0]=i[4],n(a[0][1],a[1][1],a[2][1],f,i),a[0][1]=i[3],a[1][1]=i[4]}if(c&&"none"!=c){p=s(t.node2),f=XA(a,d[1],p*e);n(a[0][0],a[1][0],a[2][0],f,i),a[1][0]=i[1],a[2][0]=i[2],n(a[0][1],a[1][1],a[2][1],f,i),a[1][1]=i[1],a[2][1]=i[2]}WA.copy(h[0],a[0]),WA.copy(h[1],a[2]),WA.copy(h[2],a[1])}else{if(WA.copy(r[0],d[0]),WA.copy(r[1],d[1]),WA.sub(o,r[1],r[0]),WA.normalize(o,o),u&&"none"!=u){p=s(t.node1);WA.scaleAndAdd(r[0],r[0],o,p*e)}if(c&&"none"!=c){p=s(t.node2);WA.scaleAndAdd(r[1],r[1],o,-p*e)}WA.copy(h[0],r[0]),WA.copy(h[1],r[1])}}))},$A=m,KA=b,JA=pm,QA=BA,tT=yw,eT=xw,iT=_w.onIrrelevantElement,nT=Vr,aT=YA,rT=["itemStyle","normal","opacity"],oT=["lineStyle","normal","opacity"];function sT(t,e){return t.getVisual("opacity")||t.getModel().get(e)}function lT(t,e,i){var n=t.getGraphicEl(),a=sT(t,e);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",a)}))}function hT(t,e){var i=sT(t,e),n=t.getGraphicEl();n.highlight&&n.highlight(),n.traverse((function(t){"group"!==t.type&&t.setStyle("opacity",i)}))}$A.extendChartView({type:"graph",init:function(t,e){var i=new JA,n=new QA,a=this.group;this._controller=new tT(e.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(t,e,i){var n=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var a=this._symbolDraw,r=this._lineDraw,o=this.group;if("view"===n.type){var s={position:n.position,scale:n.scale};this._firstRender?o.attr(s):nT.updateProps(o,s,t)}aT(t.getGraph(),this._getNodeGlobalScale(t));var l=t.getData();a.updateData(l);var h=t.getEdgeData();r.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,i),clearTimeout(this._layoutTimeout);var u=t.forceLayout,c=t.get("force.layoutAnimation");u&&this._startForceLayoutIteration(u,c),l.eachItemGraphicEl((function(e,n){var a=l.getItemModel(n);e.off("drag").off("dragend");var r=l.getItemModel(n).get("draggable");r&&e.on("drag",(function(){u&&(u.warmUp(),!this._layouting&&this._startForceLayoutIteration(u,c),u.setFixed(n),l.setItemLayout(n,e.position))}),this).on("dragend",(function(){u&&u.setUnfixed(n)}),this),e.setDraggable(r&&u),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),a.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}),this),l.graph.eachEdge((function(e){var n=e.getGraphicEl();n.off("mouseover",n.__focusNodeAdjacency),n.off("mouseout",n.__unfocusNodeAdjacency),e.getModel().get("focusNodeAdjacency")&&(n.on("mouseover",n.__focusNodeAdjacency=function(){i.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,edgeDataIndex:e.dataIndex})}),n.on("mouseout",n.__unfocusNodeAdjacency=function(){i.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))}));var d="circular"===t.get("layout")&&t.get("circular.rotateLabel"),p=l.getLayout("cx"),f=l.getLayout("cy");l.eachItemGraphicEl((function(t,e){var i=t.getSymbolPath();if(d){var n=l.getItemLayout(e),a=Math.atan2(n[1]-f,n[0]-p);a<0&&(a=2*Math.PI+a);var r=n[0]=a/3?1:2),l=e.y-n(o)*r*(r>=a/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+i(o)*r,e.y+n(o)*r),t.lineTo(e.x+i(e.angle)*a,e.y+n(e.angle)*a),t.lineTo(e.x-i(o)*r,e.y-n(o)*r),t.lineTo(s,l)}}),QT=Vr,tC=zd,eC=dr,iC=eC.parsePercent,nC=eC.round,aC=eC.linearMap;function rC(t,e){return e&&("string"==typeof e?t=e.replace("{value}",null!=t?t:""):"function"==typeof e&&(t=e(t))),t}var oC=2*Math.PI;tC.extend({type:"gauge",render:function(t,e,i){this.group.removeAll();var n=t.get("axisLine.lineStyle.color"),a=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),r=Math.min(n,a);return{cx:iC(i[0],e.getWidth()),cy:iC(i[1],e.getHeight()),r:iC(t.get("radius"),r/2)}}(t,i);this._renderMain(t,e,i,n,a)},dispose:function(){},_renderMain:function(t,e,i,n,a){for(var r=this.group,o=t.getModel("axisLine").getModel("lineStyle"),s=t.get("clockwise"),l=-t.get("startAngle")/180*Math.PI,h=((p=-t.get("endAngle")/180*Math.PI)-l)%oC,u=l,c=o.get("width"),d=0;d=t&&(0===e?0:n[e-1][0]).4?"bottom":"middle",textAlign:T<-.4?"left":T>.4?"right":"center"},{autoColor:k}),silent:!0}))}if(g.get("show")&&A!==v){for(var O=0;O<=y;O++){T=Math.cos(b),C=Math.sin(b);var z=new QT.Line({shape:{x1:T*c+h,y1:C*c+u,x2:T*(c-_)+h,y2:C*(c-_)+u},silent:!0,style:I});"auto"===I.stroke&&z.setStyle({stroke:n((A+O/y)/v)}),l.add(z),b+=S}b-=S}else b+=w}},_renderPointer:function(t,e,i,n,a,r,o,s){var l=this.group,h=this._data;if(t.get("pointer.show")){var u=[+t.get("min"),+t.get("max")],c=[r,o],d=t.getData();d.diff(h).add((function(e){var i=new JT({shape:{angle:r}});QT.initProps(i,{shape:{angle:aC(d.get("value",e),u,c,!0)}},t),l.add(i),d.setItemGraphicEl(e,i)})).update((function(e,i){var n=h.getItemGraphicEl(i);QT.updateProps(n,{shape:{angle:aC(d.get("value",e),u,c,!0)}},t),l.add(n),d.setItemGraphicEl(e,n)})).remove((function(t){var e=h.getItemGraphicEl(t);l.remove(e)})).execute(),d.eachItemGraphicEl((function(t,e){var i=d.getItemModel(e),r=i.getModel("pointer");t.setShape({x:a.cx,y:a.cy,width:iC(r.get("width"),a.r),r:iC(r.get("length"),a.r)}),t.useStyle(i.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",n(aC(d.get("value",e),u,[0,1],!0))),QT.setHoverStyle(t,i.getModel("itemStyle.emphasis").getItemStyle())})),this._data=d}else h&&h.eachItemGraphicEl((function(t){l.remove(t)}))},_renderTitle:function(t,e,i,n,a){var r=t.getModel("title");if(r.get("show")){var o=r.get("offsetCenter"),s=a.cx+iC(o[0],a.r),l=a.cy+iC(o[1],a.r),h=+t.get("min"),u=+t.get("max"),c=t.getData().get("value",0),d=n(aC(c,[h,u],[0,1],!0));this.group.add(new QT.Text({silent:!0,style:QT.setTextStyle({},r,{x:s,y:l,text:t.getData().getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:d,forceRich:!0})}))}},_renderDetail:function(t,e,i,n,a){var r=t.getModel("detail"),o=+t.get("min"),s=+t.get("max");if(r.get("show")){var l=r.get("offsetCenter"),h=a.cx+iC(l[0],a.r),u=a.cy+iC(l[1],a.r),c=iC(r.get("width"),a.r),d=iC(r.get("height"),a.r),p=t.getData().get("value",0),f=n(aC(p,[o,s],[0,1],!0));this.group.add(new QT.Text({silent:!0,style:QT.setTextStyle({},r,{x:h,y:u,text:rC(p,r.get("formatter")),textWidth:isNaN(c)?null:c,textHeight:isNaN(d)?null:d,textAlign:"center",textVerticalAlign:"middle"},{autoColor:f,forceRich:!0})}))}}});var sC=m,lC=dp,hC=ur.defaultEmphasis,uC=wp,cC=sC.extendSeriesModel({type:"series.funnel",init:function(t){cC.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var i=uC(["value"],t.data),n=new lC(i,this);return n.initData(t.data),n},_defaultLabelLine:function(t){hC(t.labelLine,["show"]);var e=t.labelLine.normal,i=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,i.show=i.show&&t.label.emphasis.show},getDataParams:function(t){var e=this.getData(),i=cC.superCall(this,"getDataParams",t),n=e.getSum("value");return i.percent=n?+(e.get("value",t)/n*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}}),dC=Vr,pC=b,fC=zd;function gC(t,e){dC.Group.call(this);var i=new dC.Polygon,n=new dC.Polyline,a=new dC.Text;function r(){n.ignore=n.hoverIgnore,a.ignore=a.hoverIgnore}function o(){n.ignore=n.normalIgnore,a.ignore=a.normalIgnore}this.add(i),this.add(n),this.add(a),this.updateData(t,e,!0),this.on("emphasis",r).on("normal",o).on("mouseover",r).on("mouseout",o)}var mC=gC.prototype,vC=["itemStyle","normal","opacity"];mC.updateData=function(t,e,i){var n=this.childAt(0),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e),s=t.getItemModel(e).get(vC);s=null==s?1:s,n.useStyle({}),i?(n.setShape({points:o.points}),n.setStyle({opacity:0}),dC.initProps(n,{style:{opacity:s}},a,e)):dC.updateProps(n,{style:{opacity:s},shape:{points:o.points}},a,e);var l=r.getModel("itemStyle"),h=t.getItemVisual(e,"color");n.setStyle(pC.defaults({lineJoin:"round",fill:h},l.getModel("normal").getItemStyle(["opacity"]))),n.hoverStyle=l.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),dC.setHoverStyle(this)},mC._updateLabel=function(t,e){var i=this.childAt(1),n=this.childAt(2),a=t.hostModel,r=t.getItemModel(e),o=t.getItemLayout(e).label,s=t.getItemVisual(e,"color");dC.updateProps(i,{shape:{points:o.linePoints||o.linePoints}},a,e),dC.updateProps(n,{style:{x:o.x,y:o.y}},a,e),n.attr({rotation:o.rotation,origin:[o.x,o.y],z2:10});var l=r.getModel("label.normal"),h=r.getModel("label.emphasis"),u=r.getModel("labelLine.normal"),c=r.getModel("labelLine.emphasis");s=t.getItemVisual(e,"color");dC.setLabelStyle(n.style,n.hoverStyle={},l,h,{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e),autoColor:s,useInsideStyle:!!o.inside},{textAlign:o.textAlign,textVerticalAlign:o.verticalAlign}),n.ignore=n.normalIgnore=!l.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!c.get("show"),i.setStyle({stroke:s}),i.setStyle(u.getModel("lineStyle").getLineStyle()),i.hoverStyle=c.getModel("lineStyle").getLineStyle()},pC.inherits(gC,dC.Group),fC.extend({type:"funnel",render:function(t,e,i){var n=t.getData(),a=this._data,r=this.group;n.diff(a).add((function(t){var e=new gC(n,t);n.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var i=a.getItemGraphicEl(e);i.updateData(n,t),r.add(i),n.setItemGraphicEl(t,i)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});var yC=wu,xC=dr,_C=xC.parsePercent,bC=xC.linearMap;var wC=function(t,e,i){t.eachSeriesByType("funnel",(function(t){var i=t.getData(),n=t.get("sort"),a=function(t,e){return yC.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),r=function(t,e){for(var i=t.mapArray("value",(function(t){return t})),n=[],a="ascending"===e,r=0,o=t.count();r0?-1:i<0?1:e?-1:1}}function EC(t,e){return Math.min(e[1],Math.max(e[0],t))}OC.prototype={constructor:OC,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},PC.inherits(OC,kC);var RC=function(t,e,i,n,a,r){e[0]=EC(e[0],i),e[1]=EC(e[1],i),t=t||0;var o=i[1]-i[0];null!=a&&(a=EC(a,[0,o])),null!=r&&(r=Math.max(r,null!=a?a:0)),"all"===n&&(a=r=Math.abs(e[1]-e[0]),n=0);var s=zC(e,n);e[n]+=t;var l=a||0,h=i.slice();s.sign<0?h[0]+=l:h[1]-=l,e[n]=EC(e[n],h);var u=zC(e,n);return null!=a&&(u.sign!==s.sign||u.spanr&&(e[1-n]=e[n]+u.sign*r),e},NC=b,VC=mt,BC=wu,GC=Rp,WC=OC,HC=Vr,FC=dr,ZC=RC,UC=NC.each,jC=Math.min,qC=Math.max,XC=Math.floor,YC=Math.ceil,$C=FC.round,KC=Math.PI;function JC(t,e,i){this._axesMap=NC.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._rect,this._model=t,this._init(t,e,i)}function QC(t,e){return jC(qC(t,e[0]),e[1])}function tL(t,e){var i=e.layoutLength/(e.axisCount-1);return{position:i*t,axisNameAvailableWidth:i,axisLabelShow:!0}}function eL(t,e){var i,n,a=e.layoutLength,r=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,h=s,u=!1;return t=i&&r<=i+e.axisLength&&o>=n&&o<=n+e.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(t,e){e.eachSeries((function(i){if(t.contains(i,e)){var n=i.getData();UC(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,t),GC.niceScaleExtent(e.scale,e.model)}),this)}}),this)},resize:function(t,e){this._rect=BC.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var t,e=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=e.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],h=this.dimensions.length,u=QC(e.get("axisExpandWidth"),l),c=QC(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>c&&c>1&&u>0&&s>0,p=e.get("axisExpandWindow");p?(t=QC(p[1]-p[0],l),p[1]=p[0]+t):(t=QC(u*(c-1),l),(p=[u*(e.get("axisExpandCenter")||XC(h/2))-t/2])[1]=p[0]+t);var f=(s-t)/(h-c);f<3&&(f=0);var g=[XC($C(p[0]/u,1))+1,YC($C(p[1]/u,1))-1],m=f/u*p[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:f,axisExpandWindow:p,axisCount:h,winInnerIndices:g,axisExpandWindow0Pos:m}},_layoutAxes:function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each((function(t){var e=[0,n.axisLength],i=t.inverse?1:0;t.setExtent(e[i],e[1-i])})),UC(i,(function(i,r){var o=(n.axisExpandable?eL:tL)(r,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:KC/2,vertical:0},h=[s[a].x+t.x,s[a].y+t.y],u=l[a],c=VC.create();VC.rotate(c,c,u),VC.translate(c,c,h),this._axesLayout[i]={position:h,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1,labelInterval:e.get(i).getLabelInterval()}}),this)},getAxis:function(t){return this._axesMap.get(t)},dataToPoint:function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},eachActiveState:function(t,e,i){for(var n=this.dimensions,a=this._axesMap,r=this.hasAxisBrushed(),o=0,s=t.count();oa*(1-u[0])?(l="jump",o=s-a*(1-u[2])):(o=s-a*u[1])>=0&&(o=s-a*(1-u[1]))<=0&&(o=0),(o*=e.axisExpandWidth/h)?ZC(o,n,r,"all"):l="none";else{a=n[1]-n[0];(n=[qC(0,r[1]*s/a-a/2)])[1]=jC(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var iL=JC;_c.register("parallel",{create:function(t,e){var i=[];return t.eachComponent("parallel",(function(n,a){var r=new iL(n,t,e);r.name="parallel_"+a,r.resize(n,e),n.coordinateSystem=r,r.model=n,i.push(r)})),t.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"parallel",index:e.get("parallelIndex"),id:e.get("parallelId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}});var nL=b,aL=Or,rL=wv,oL=dr,sL=Wf,lL=Zu.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return aL([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(t){var e=this.activeIntervals=nL.clone(t);if(e)for(var i=e.length-1;i>=0;i--)oL.asc(e[i])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var i=0,n=e.length;i1)return("e"===(i=[UL(t,(e=e.split(""))[0]),UL(t,e[1])])[0]||"w"===i[0])&&i.reverse(),i.join("");var i=fL.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return fL.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[i]}function jL(t,e,i,n,a,r,o,s){var l=n.__brushOption,h=t(l.range),u=XL(i,r,o);yL(a.split(""),(function(t){var e=SL[t];h[e[0]][e[1]]+=u[e[0]]})),l.range=e(ZL(h[0][0],h[1][0],h[0][1],h[1][1])),kL(i,n),NL(i,{isEnd:!1})}function qL(t,e,i,n,a){var r=e.__brushOption.range,o=XL(t,i,n);yL(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),kL(t,e),NL(t,{isEnd:!1})}function XL(t,e,i){var n=t.group,a=n.transformCoordToLocal(e,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function YL(t,e,i){var n=EL(t,e);return n&&!0!==n?n.clipPath(i,t._transform):dL.clone(i)}function $L(t){var e=t.event;e.preventDefault&&e.preventDefault()}function KL(t,e,i){return t.childOfName("main").contain(e,i)}function JL(t,e,i,n){var a,r=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(i.slice()),function(t){var e=t._track;if(!e.length)return!1;var i=e[e.length-1],n=e[0],a=i[0]-n[0],r=i[1]-n[1];return wL(a*a+r*r,.5)>6}(t)||r){if(o&&!r){"single"===s.brushMode&&RL(t);var l=dL.clone(s);l.brushType=QL(l.brushType,o),l.panelId=!0===o?null:o.panelId,r=t._creatingCover=CL(t,l),t._covers.push(r)}if(r){var h=iD[QL(t._brushType,o)];r.__brushOption.range=h.getCreatingRange(YL(t,r,t._track)),n&&(LL(t,r),h.updateCommon(t,r)),DL(t,r),a={isEnd:n}}}else n&&"single"===s.brushMode&&s.removeOnClick&&zL(t,e,i)&&RL(t)&&(a={isEnd:n,removeOnClick:!0});return a}function QL(t,e){return"auto"===t?e.defaultBrushType:t}TL.prototype={constructor:TL,enableBrush:function(t){var e,i;return this._brushType&&(i=(e=this)._zr,gL.release(i,"globalPan",e._uid),yL(e._handlers,(function(t,e){i.off(e,t)})),e._brushType=e._brushOption=null),t.brushType&&function(t,e){var i=t._zr;t._enableGlobalPan||gL.take(i,"globalPan",t._uid);yL(t._handlers,(function(t,e){i.on(e,t)})),t._brushType=e.brushType,t._brushOption=dL.merge(dL.clone(IL),e,!0)}(this,t),this},setPanels:function(t){if(t&&t.length){var e=this._panels={};dL.each(t,(function(t){e[t.panelId]=dL.clone(t)}))}else this._panels=null;return this},mount:function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({position:t.position||[0,0],rotation:t.rotation||0,scale:t.scale||[1,1]}),this._transform=e.getLocalTransform(),this},eachCover:function(t,e){yL(this._covers,t,e)},updateCovers:function(t){t=dL.map(t,(function(t){return dL.merge(dL.clone(IL),t,!0)}));var e=this._covers,i=this._covers=[],n=this,a=this._creatingCover;return new mL(e,t,(function(t,e){return r(t.__brushOption,e)}),r).add(o).update(o).remove((function(t){e[t]!==a&&n.group.remove(e[t])})).execute(),this;function r(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function o(r,o){var s=t[r];if(null!=o&&e[o]===a)i[r]=e[o];else{var l=i[r]=null!=o?(e[o].__brushOption=s,e[o]):LL(n,CL(n,s));kL(n,l)}}},unmount:function(){return this.enableBrush(!1),RL(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},dL.mixin(TL,pL);var tD={mousedown:function(t){if(this._dragging)eD.call(this,t);else if(!t.target||!t.target.draggable){$L(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=zL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,i){if(t._brushType){var n=t._zr,a=t._covers,r=zL(t,e,i);if(!t._dragging)for(var o=0;o5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&SD(this,"mousemove")){var e=this._model,i=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function SD(t,e){var i=t._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===e}yD.registerPreprocessor(bD);var MD=dp,ID=b,AD=wp;function TD(t){return+t.replace("dim","")}yd.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.normal.color",getInitialData:function(t,e){var i=e.getComponent("parallel",this.get("parallelIndex")),n=i.parallelAxisIndex,a=t.data,r=i.dimensions,o=function(t,e){var i=0;ID.each(t,(function(t){var e=TD(t);e>i&&(i=e)}));var n=e[0];n&&n.length-1>i&&(i=n.length-1);for(var a=[],r=0;r<=i;r++)a.push("dim"+r);return a}(r,a),s=ID.map(o,(function(t,i){var o=ID.indexOf(r,t),s=o>=0&&e.getComponent("parallelAxis",n[o]);return s&&"category"===s.get("type")?(function(t,e,i){var n=t.get("data"),a=TD(e);n&&n.length&&ID.each(i,(function(t){if(t){var e=ID.indexOf(n,t[a]);t[a]=e>=0?e:NaN}}))}(s,t,a),{name:t,type:"ordinal"}):o<0&&AD.guessOrdinal(a,i)?{name:t,type:"ordinal"}:t})),l=new MD(s,this);return l.initData(a),this.option.progressive&&(this.option.animation=!1),l},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,i=this.getData(),n=[];return e.eachActiveState(i,(function(e,a){t===e&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}});var CD=Vr,LD=b;function DD(t,e,i,n){for(var a,r=[],o=0;o=t.length)return e;for(var a=-1,r=e.length,o=t[n++],s={},l={};++a=t.length)return i;var r=[],o=e[a++];return BD.each(i,(function(t,e){r.push({key:e,values:n(t,a)})})),o?r.sort((function(t,e){return o(t.key,e.key)})):r}return{key:function(e){return t.push(e),this},sortKeys:function(i){return e[t.length-1]=i,this},entries:function(t){return n(i(t,0),0)}}},WD=wu,HD=GD,FD=b;function ZD(t,e,i){FD.each(t,(function(t){var n,a,r,o=0,s=t.length;for(t.sort(QD),r=0;r0){var l=n.getLayout().y+a;n.setLayout({y:l},!0)}o=n.getLayout().y+n.getLayout().dy+e}if((a=o-e-i)>0){l=n.getLayout().y-a;for(n.setLayout({y:l},!0),o=n.getLayout().y,r=s-2;r>=0;--r)(a=(n=t[r]).getLayout().y+n.getLayout().dy+e-o)>0&&(l=n.getLayout().y-a,n.setLayout({y:l},!0)),o=n.getLayout().y}}))}function UD(t,e){FD.each(t.slice().reverse(),(function(t){FD.each(t,(function(t){if(t.outEdges.length){var i=KD(t.outEdges,jD)/KD(t.outEdges,eP),n=t.getLayout().y+(i-JD(t))*e;t.setLayout({y:n},!0)}}))}))}function jD(t){return JD(t.node2)*t.getValue()}function qD(t,e){FD.each(t,(function(t){FD.each(t,(function(t){if(t.inEdges.length){var i=KD(t.inEdges,XD)/KD(t.inEdges,eP),n=t.getLayout().y+(i-JD(t))*e;t.setLayout({y:n},!0)}}))}))}function XD(t){return JD(t.node1)*t.getValue()}function YD(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function $D(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function KD(t,e){for(var i=0,n=t.length,a=-1;++ae?1:t===e?0:NaN}function eP(t){return t.getValue()}var iP=function(t,e,i){t.eachSeriesByType("sankey",(function(t){var i=t.get("nodeWidth"),n=t.get("nodeGap"),a=function(t,e){return WD.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=a;var r=a.width,o=a.height,s=t.getGraph(),l=s.nodes,h=s.edges;!function(t){FD.each(t,(function(t){var e=KD(t.outEdges,eP),i=KD(t.inEdges,eP),n=Math.max(e,i);t.setLayout({value:n},!0)}))}(l),function(t,e,i,n,a,r,o){(function(t,e,i){var n=t,a=null,r=0;for(;n.length;){a=[];for(var o=0,s=n.length;o0;a--)UD(r,o*=.99),ZD(r,n,i),qD(r,o),ZD(r,n,i)}(t,e,r,n,o),function(t){FD.each(t,(function(t){t.outEdges.sort(YD),t.inEdges.sort($D)})),FD.each(t,(function(t){var e=0,i=0;FD.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),FD.each(t.inEdges,(function(t){t.setLayout({ty:i},!0),i+=t.getLayout().dy}))}))}(t)}(l,h,i,n,r,o,0!==FD.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"))}))},nP=cI,aP=b;var rP=m,oP=iP,sP=function(t,e){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph().nodes;e.sort((function(t,e){return t.getLayout().value-e.getLayout().value}));var i=e[0].getLayout().value,n=e[e.length-1].getLayout().value;aP.each(e,(function(e){var a=new nP({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:t.get("color")}).mapValueToVisual(e.getLayout().value);e.setVisual("color",a);var r=e.getModel().get("itemStyle.normal.color");null!=r&&e.setVisual("color",r)}))}))};rP.registerLayout(oP),rP.registerVisual(sP);var lP={},hP=b,uP=Vr,cP=ms.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var i in e)if(e.hasOwnProperty(i)&&0===i.indexOf("ends")){var n=e[i];t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1])}}});function dP(t,e,i,n){uP.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=i,this._createContent(t,e,n),this.updateData(t,e,n),this._seriesModel}var pP=dP.prototype;function fP(t,e,i){return hP.map(t,(function(t){return(t=t.slice())[e]=i.initBaseline,t}))}function gP(t){var e={};return hP.each(t,(function(t,i){e["ends"+i]=t})),e}function mP(t){this.group=new uP.Group,this.styleUpdater=t}pP._createContent=function(t,e,i){var n=t.getItemLayout(e),a="horizontal"===n.chartLayout?1:0,r=0;this.add(new uP.Polygon({shape:{points:i?fP(n.bodyEnds,a,n):n.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=r++;var o=hP.map(n.whiskerEnds,(function(t){return i?fP(t,a,n):t}));this.add(new cP({shape:gP(o),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=r++},pP.updateData=function(t,e,i){var n=this._seriesModel=t.hostModel,a=t.getItemLayout(e),r=uP[i?"initProps":"updateProps"];r(this.childAt(this.bodyIndex),{shape:{points:a.bodyEnds}},n,e),r(this.childAt(this.whiskerIndex),{shape:gP(a.whiskerEnds)},n,e),this.styleUpdater.call(null,this,t,e)},hP.inherits(dP,uP.Group);var vP=mP.prototype;vP.updateData=function(t){var e=this.group,i=this._data,n=this.styleUpdater;t.diff(i).add((function(i){if(t.hasValue(i)){var a=new dP(t,i,n,!0);t.setItemGraphicEl(i,a),e.add(a)}})).update((function(a,r){var o=i.getItemGraphicEl(r);t.hasValue(a)?(o?o.updateData(t,a):o=new dP(t,a,n),e.add(o),t.setItemGraphicEl(a,o)):e.remove(o)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&e.remove(n)})).execute(),this._data=t},vP.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl((function(e){e&&t.remove(e)}))};var yP=dp,xP=wp,_P=mP,bP=b,wP={_baseAxisDim:null,getInitialData:function(t,e){var i,n,a=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=r.get("type");"category"===o?(t.layout="horizontal",i=a.getCategories(),n=!0):"category"===s?(t.layout="vertical",i=r.getCategories(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],h="horizontal"===t.layout?0:1,u=this._baseAxisDim=l[h],c=l[1-h],d=t.data;n&&bP.each(d,(function(t,e){t.value&&bP.isArray(t.value)?t.value.unshift(e):bP.isArray(t)&&t.unshift(e)}));var p=this.defaultValueDimensions,f=[{name:u,otherDims:{tooltip:!1},dimsDef:["base"]},{name:c,dimsDef:p.slice()}];f=xP(f,d,{encodeDef:this.get("encode"),dimsDef:this.get("dimensions"),dimCount:p.length+1});var g=new yP(f,this);return g.initData(d,i?i.slice():null),g},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},SP={init:function(){var t=this._whiskerBoxDraw=new _P(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,i){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};lP.seriesModelMixin=wP,lP.viewMixin=SP;var MP=b,IP=yd,AP=lP.seriesModelMixin,TP=IP.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});MP.mixin(TP,AP,!0);var CP=b,LP=zd,DP=Vr,PP=lP.viewMixin,kP=LP.extend({type:"boxplot",getStyleUpdater:function(){return EP},dispose:CP.noop});CP.mixin(kP,PP,!0);var OP=["itemStyle","normal"],zP=["itemStyle","emphasis"];function EP(t,e,i){var n=e.getItemModel(i),a=n.getModel(OP),r=e.getItemVisual(i,"color"),o=a.getItemStyle(["borderColor"]),s=t.childAt(t.whiskerIndex);s.style.set(o),s.style.stroke=r,s.dirty();var l=t.childAt(t.bodyIndex);l.style.set(o),l.style.stroke=r,l.dirty();var h=n.getModel(zP).getItemStyle();DP.setHoverStyle(t,h)}var RP=["itemStyle","normal","borderColor"];var NP=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",(function(e){var n=i[e.seriesIndex%i.length],a=e.getData();a.setVisual({legendSymbol:"roundRect",color:e.get(RP)||n}),t.isSeriesFiltered(e)||a.each((function(t){var e=a.getItemModel(t);a.setItemVisual(t,{color:e.get(RP,!0)})}))}))},VP=b,BP=dr.parsePercent,GP=VP.each;var WP=m,HP=NP,FP=function(t){var e=function(t){var e=[],i=[];return t.eachSeriesByType("boxplot",(function(t){var n=t.getBaseAxis(),a=VP.indexOf(i,n);a<0&&(a=i.length,i[a]=n,e[a]={axis:n,seriesModels:[]}),e[a].seriesModels.push(t)})),e}(t);GP(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,i,n=t.axis,a=t.seriesModels,r=a.length,o=t.boxWidthList=[],s=t.boxOffsetList=[],l=[];if("category"===n.type)i=n.getBandWidth();else{var h=0;GP(a,(function(t){h=Math.max(h,t.getData().count())})),e=n.getExtent(),Math.abs(e[1]-e[0])}GP(a,(function(t){var e=t.get("boxWidth");VP.isArray(e)||(e=[e,e]),l.push([BP(e[0],i)||0,BP(e[1],i)||0])}));var u=.8*i-2,c=u/r*.3,d=(u-c*(r-1))/r,p=d/2-u/2;GP(a,(function(t,e){s.push(p),p+=c+d,o.push(Math.min(Math.max(d,l[e][0]),l[e][1]))}))}(t),GP(e,(function(e,i){!function(t,e,i){var n,a=t.coordinateSystem,r=t.getData(),o=i/2,s=t.get("layout"),l="horizontal"===s?0:1,h=1-l,u=["x","y"],c=[];if(VP.each(r.dimensions,(function(t){var e=r.getDimensionInfo(t).coordDim;e===u[h]?c.push(t):e===u[l]&&(n=t)})),null==n||c.length<5)return;r.each([n].concat(c),(function(){var t=arguments,i=t[0],n=t[c.length+1],u=m(t[3]),d=m(t[1]),p=m(t[5]),f=[[d,m(t[2])],[p,m(t[4])]];y(d),y(p),y(u);var g=[];function m(t){var n,r=[];return r[l]=i,r[h]=t,isNaN(i)||isNaN(t)?n=[NaN,NaN]:(n=a.dataToPoint(r))[l]+=e,n}function v(t,e){var i=t.slice(),n=t.slice();i[l]+=o,n[l]-=o,e?g.push(i,n):g.push(n,i)}function y(t){var e=[t.slice(),t.slice()];e[0][l]-=o,e[1][l]+=o,f.push(e)}v(f[0][1],0),v(f[1][1],1),r.setItemLayout(n,{chartLayout:s,initBaseline:u[h],median:u,bodyEnds:g,whiskerEnds:f})}))}(e,t.boxOffsetList[i],t.boxWidthList[i])})))}))};WP.registerVisual(HP),WP.registerLayout(FP);var ZP=b,UP=yd,jP=lP.seriesModelMixin,qP=UP.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(t,e,i){var n=e.getItemLayout(t);return i.rect(n.brushRect)}});ZP.mixin(qP,jP,!0);var XP=b,YP=zd,$P=Vr,KP=lP.viewMixin,JP=YP.extend({type:"candlestick",getStyleUpdater:function(){return ek},dispose:XP.noop});XP.mixin(JP,KP,!0);var QP=["itemStyle","normal"],tk=["itemStyle","emphasis"];function ek(t,e,i){var n=e.getItemModel(i),a=n.getModel(QP),r=e.getItemVisual(i,"color"),o=e.getItemVisual(i,"borderColor")||r,s=a.getItemStyle(["color","color0","borderColor","borderColor0"]),l=t.childAt(t.whiskerIndex);l.useStyle(s),l.style.stroke=o;var h=t.childAt(t.bodyIndex);h.useStyle(s),h.style.fill=r,h.style.stroke=o;var u=n.getModel(tk).getItemStyle();$P.setHoverStyle(t,u)}var ik=b;var nk=function(t){t&&ik.isArray(t.series)&&ik.each(t.series,(function(t){ik.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))},ak=["itemStyle","normal","borderColor"],rk=["itemStyle","normal","borderColor0"],ok=["itemStyle","normal","color"],sk=["itemStyle","normal","color0"];var lk=function(t,e){t.eachRawSeriesByType("candlestick",(function(e){var i=e.getData();i.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||i.each((function(t){var e=i.getItemModel(t),n=i.getItemLayout(t).sign;i.setItemVisual(t,{color:e.get(n>0?ok:sk),borderColor:e.get(n>0?ak:rk)})}))}))},hk=b,uk=dr.parsePercent,ck=Vr.subPixelOptimize,dk=hk.retrieve2;var pk=m,fk=nk,gk=lk,mk=function(t){t.eachSeriesByType("candlestick",(function(t){var e,i=t.coordinateSystem,n=t.getData(),a=function(t,e){var i,n=t.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=uk(dk(t.get("barMaxWidth"),a),a),o=uk(dk(t.get("barMinWidth"),1),a),s=t.get("barWidth");return null!=s?uk(s,a):Math.max(Math.min(a/2,r),o)}(t,n),r=t.get("layout"),o="horizontal"===r?0:1,s=1-o,l=["x","y"],h=[];if(hk.each(n.dimensions,(function(t){var i=n.getDimensionInfo(t).coordDim;i===l[s]?h.push(t):i===l[o]&&(e=t)})),!(null==e||h.length<4)){var u=0;n.each([e].concat(h),(function(){var t,e=arguments,l=e[0],c=e[h.length+1],d=e[1],p=e[2],f=e[3],g=e[4],m=Math.min(d,p),v=Math.max(d,p),y=M(m),x=M(v),_=M(f),b=M(g),w=[[T(b),T(x)],[T(_),T(y)]],S=[];function M(t){var e=[];return e[o]=l,e[s]=t,isNaN(l)||isNaN(t)?[NaN,NaN]:i.dataToPoint(e)}function I(t,e){var i=t.slice(),n=t.slice();i[o]=ck(i[o]+a/2,1,!1),n[o]=ck(n[o]-a/2,1,!0),e?S.push(i,n):S.push(n,i)}function A(){var t=M(Math.min(d,p,f,g)),e=M(Math.max(d,p,f,g));return t[o]-=a/2,e[o]-=a/2,{x:t[0],y:t[1],width:s?a:e[0]-t[0],height:s?e[1]-t[1]:a}}function T(t){return t[o]=ck(t[o],1),t}I(x,0),I(y,1),t=d>p?-1:d0?n.getItemModel(u-1).get()[2]<=p?1:-1:1,n.setItemLayout(c,{chartLayout:r,sign:t,initBaseline:d>p?x[s]:y[s],bodyEnds:S,whiskerEnds:w,brushRect:A()}),++u}),!0)}}))};pk.registerPreprocessor(fk),pk.registerVisual(gk),pk.registerLayout(mk);var vk=Ep;yd.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return vk(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});var yk=b,xk=Hf.createSymbol,_k=Vr.Group,bk=dr.parsePercent,wk=sm;function Sk(t,e){t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})}))}function Mk(t,e){_k.call(this);var i=new wk(t,e),n=new _k;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(t,e)}var Ik=Mk.prototype;Ik.stopEffectAnimation=function(){this.childAt(1).removeAll()},Ik.startEffectAnimation=function(t){for(var e=t.symbolType,i=t.color,n=this.childAt(1),a=0;a<3;a++){var r=xk(e,-1,-1,2,2,i);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var o=-a/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(o).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(o).start(),n.add(r)}Sk(n,t)},Ik.updateEffectAnimation=function(t){for(var e=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}}),Vk=Vr,Bk=kA,Gk=b,Wk=Hf.createSymbol,Hk=U,Fk=Gr;function Zk(t,e,i){Vk.Group.call(this),this.add(this.createLine(t,e,i)),this._updateEffectSymbol(t,e)}var Uk=Zk.prototype;Uk.createLine=function(t,e,i){return new Bk(t,e,i)},Uk._updateEffectSymbol=function(t,e){var i=t.getItemModel(e).getModel("effect"),n=i.get("symbolSize"),a=i.get("symbol");Gk.isArray(n)||(n=[n,n]);var r=i.get("color")||t.getItemVisual(e,"color"),o=this.childAt(1);this._symbolType!==a&&(this.remove(o),(o=Wk(a,-.5,-.5,1,1,r)).z2=100,o.culling=!0,this.add(o)),o&&(o.setStyle("shadowColor",r),o.setStyle(i.getItemStyle(["color"])),o.attr("scale",n),o.setColor(r),o.attr("scale",n),this._symbolType=a,this._updateEffectAnimation(t,i,e))},Uk._updateEffectAnimation=function(t,e,i){var n=this.childAt(1);if(n){var a=this,r=t.getItemLayout(i),o=1e3*e.get("period"),s=e.get("loop"),l=e.get("constantSpeed"),h=Gk.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3})),u="function"==typeof h;if(n.ignore=!0,this.updateAnimationPoints(n,r),l>0&&(o=this.getLineLength(n)/l*1e3),o!==this._period||s!==this._loop){n.stopAnimation();var c=h;u&&(c=h(i)),n.__t>0&&(c=-o*n.__t),n.__t=0;var d=n.animate("",s).when(o,{__t:1}).delay(c).during((function(){a.updateSymbolPosition(n)}));s||d.done((function(){a.remove(n)})),d.start()}this._period=o,this._loop=s}},Uk.getLineLength=function(t){return Hk.dist(t.__p1,t.__cp1)+Hk.dist(t.__cp1,t.__p2)},Uk.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},Uk.updateData=function(t,e,i){this.childAt(0).updateData(t,e,i),this._updateEffectSymbol(t,e)},Uk.updateSymbolPosition=function(t){var e=t.__p1,i=t.__p2,n=t.__cp1,a=t.__t,r=t.position,o=Fk.quadraticAt,s=Fk.quadraticDerivativeAt;r[0]=o(e[0],n[0],i[0],a),r[1]=o(e[1],n[1],i[1],a);var l=s(e[0],n[0],i[0],a),h=s(e[1],n[1],i[1],a);t.rotation=-Math.atan2(h,l)-Math.PI/2,t.ignore=!1},Uk.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var i=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,i,e)},Gk.inherits(Zk,Vk.Group);var jk=Zk,qk=Vr,Xk=b;function Yk(t,e,i){qk.Group.call(this),this._createPolyline(t,e,i)}var $k=Yk.prototype;$k._createPolyline=function(t,e,i){var n=t.getItemLayout(e),a=new qk.Polyline({shape:{points:n}});this.add(a),this._updateCommonStl(t,e,i)},$k.updateData=function(t,e,i){var n=t.hostModel,a=this.childAt(0),r={shape:{points:t.getItemLayout(e)}};qk.updateProps(a,r,n,e),this._updateCommonStl(t,e,i)},$k._updateCommonStl=function(t,e,i){var n=this.childAt(0),a=t.getItemModel(e),r=t.getItemVisual(e,"color"),o=i&&i.lineStyle,s=i&&i.hoverLineStyle;i&&!t.hasItemOption||(o=a.getModel("lineStyle.normal").getLineStyle(),s=a.getModel("lineStyle.emphasis").getLineStyle()),n.useStyle(Xk.defaults({strokeNoScale:!0,fill:"none",stroke:r},o)),n.hoverStyle=s,qk.setHoverStyle(this)},$k.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},Xk.inherits(Yk,qk.Group);var Kk=Yk,Jk=Kk,Qk=b,tO=jk,eO=U;function iO(t,e,i){tO.call(this,t,e,i),this._lastFrame=0,this._lastFramePercent=0}var nO=iO.prototype;nO.createLine=function(t,e,i){return new Jk(t,e,i)},nO.updateAnimationPoints=function(t,e){this._points=e;for(var i=[0],n=0,a=1;a=0&&!(n[o]<=e);o--);o=Math.min(o,a-2)}else{for(var o=r;oe);o++);o=Math.min(o-1,a-2)}eO.lerp(t.position,i[o],i[o+1],(e-n[o])/(n[o+1]-n[o]));var s=i[o+1][0]-i[o][0],l=i[o+1][1]-i[o][1];t.rotation=-Math.atan2(l,s)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},Qk.inherits(iO,tO);var aO=iO,rO=Vr,oO=Eo,sO=Vo,lO=rO.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(t,e){for(var i=e.segs,n=e.polyline,a=0;a2?t.quadraticCurveTo(r[2][0],r[2][1],r[1][0],r[1][1]):t.lineTo(r[1][0],r[1][1])}},findDataIndex:function(t,e){for(var i=this.shape,n=i.segs,a=i.polyline,r=Math.max(this.style.lineWidth,1),o=0;o2){if(sO.containStroke(s[0][0],s[0][1],s[2][0],s[2][1],s[1][0],s[1][1],r,t,e))return o}else if(oO.containStroke(s[0][0],s[0][1],s[1][0],s[1][1],r,t,e))return o}return-1}});function hO(){this.group=new rO.Group,this._lineEl=new lO}var uO=hO.prototype;uO.updateData=function(t){this.group.removeAll();var e=this._lineEl,i=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:i.get("polyline")}),e.useStyle(i.getModel("lineStyle.normal").getLineStyle());var n=t.getVisual("color");n&&e.setStyle("stroke",n),e.setStyle("fill"),e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i)})),this.group.add(e)},uO.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},uO.remove=function(){this.group.removeAll()};var cO=BA,dO=jk,pO=kA,fO=Kk,gO=aO,mO=hO;m.extendChartView({type:"lines",init:function(){},render:function(t,e,i){var n=t.getData(),a=this._lineDraw,r=t.get("effect.show"),o=t.get("polyline"),s=t.get("large")&&n.count()>=t.get("largeThreshold");r===this._hasEffet&&o===this._isPolyline&&s===this._isLarge||(a&&a.remove(),a=this._lineDraw=s?new mO:new cO(o?r?gO:fO:r?dO:pO),this._hasEffet=r,this._isPolyline=o,this._isLarge=s);var l=t.get("zlevel"),h=t.get("effect.trailLength"),u=i.getZr(),c="svg"===u.painter.getType();c||u.painter.getLayer(l).clear(!0),null==this._lastZlevel||c||u.configLayer(this._lastZlevel,{motionBlur:!1}),r&&h&&(c||u.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(h/10+.9,1),0)})),this.group.add(a.group),a.updateData(n),this._lastZlevel=l},updateLayout:function(t,e,i){this._lineDraw.updateLayout(t);var n=i.getZr();"svg"===n.painter.getType()||n.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0);var i=e.getZr();"svg"===i.painter.getType()||i.painter.getLayer(this._lastZlevel).clear(!0)},dispose:function(){}});var vO=function(t){t.eachSeriesByType("lines",(function(t){var e=t.coordinateSystem,i=t.getData();i.each((function(n){var a=i.getItemModel(n),r=a.option instanceof Array?a.option:a.get("coords"),o=[];if(t.get("polyline"))for(var s=0;s0){var I=r(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(y,0,0),u},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=SO.createCanvas()),e=this.pointSize+this.blurSize,i=2*e;t.width=i,t.height=i;var n=t.getContext("2d");return n.clearRect(0,0,i,i),n.shadowOffsetX=i,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},_getGradient:function(t,e,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var IO=Vr,AO=MO,TO=b;m.extendChartView({type:"heatmap",render:function(t,e,i){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(i){i===t&&(n=e)}))})),this.group.removeAll();var a=t.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(a,t,i):function(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}(a)&&this._renderOnGeo(a,t,n,i)},dispose:function(){},_renderOnCartesianAndCalendar:function(t,e,i){if("cartesian2d"===t.type)var n=t.getAxis("x"),a=t.getAxis("y"),r=n.getBandWidth(),o=a.getBandWidth();var s=this.group,l=e.getData(),h="itemStyle.normal",u="itemStyle.emphasis",c=e.getModel(h).getItemStyle(["color"]),d=e.getModel(u).getItemStyle(),p=e.getModel("label.normal"),f=e.getModel("label.emphasis"),g=t.type,m="cartesian2d"===g?[e.coordDimToDataDim("x")[0],e.coordDimToDataDim("y")[0],e.coordDimToDataDim("value")[0]]:[e.coordDimToDataDim("time")[0],e.coordDimToDataDim("value")[0]];l.each((function(i){var n;if("cartesian2d"===g){if(isNaN(l.get(m[2],i)))return;var a=t.dataToPoint([l.get(m[0],i),l.get(m[1],i)]);n=new IO.Rect({shape:{x:a[0]-r/2,y:a[1]-o/2,width:r,height:o},style:{fill:l.getItemVisual(i,"color"),opacity:l.getItemVisual(i,"opacity")}})}else{if(isNaN(l.get(m[1],i)))return;n=new IO.Rect({z2:1,shape:t.dataToRect([l.get(m[0],i)]).contentShape,style:{fill:l.getItemVisual(i,"color"),opacity:l.getItemVisual(i,"opacity")}})}var v=l.getItemModel(i);l.hasItemOption&&(c=v.getModel(h).getItemStyle(["color"]),d=v.getModel(u).getItemStyle(),p=v.getModel("label.normal"),f=v.getModel("label.emphasis"));var y=e.getRawValue(i),x="-";y&&null!=y[2]&&(x=y[2]),IO.setLabelStyle(c,d,p,f,{labelFetcher:e,labelDataIndex:i,defaultText:x,isRectText:!0}),n.setStyle(c),IO.setHoverStyle(n,l.hasItemOption?d:TO.extend({},d)),s.add(n),l.setItemGraphicEl(i,n)}))},_renderOnGeo:function(t,e,i,n){var a=i.targetVisuals.inRange,r=i.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new AO;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),h=t.getRoamTransform().transform;l.applyTransform(h);var u=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),p=Math.min(l.height+l.y,n.getHeight()),f=d-u,g=p-c,m=o.mapArray(["lng","lat","value"],(function(e,i,n){var a=t.dataToPoint([e,i]);return a[0]-=u,a[1]-=c,a.push(n),a})),v=i.getExtent(),y="visualMap.continuous"===i.type?function(t,e){var i=t[1]-t[0];return e=[(e[0]-t[0])/i,(e[1]-t[0])/i],function(t){return t>=e[0]&&t<=e[1]}}(v,i.option.range):function(t,e,i){var n=t[1]-t[0],a=(e=TO.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,r=0;return function(t){for(var n=r;n=0;n--){var o;if((o=e[n].interval)[0]<=t&&t<=o[1]){r=n;break}}return n>=0&&n0?1:r<0?-1:0}(i,r,a,n,c),function(t,e,i,n,a,r,o,s,l,h){var u=l.valueDim,c=l.categoryDim,d=Math.abs(i[c.wh]),p=t.getItemVisual(e,"symbolSize");DO.isArray(p)?p=p.slice():(null==p&&(p="100%"),p=[p,p]);p[c.index]=zO(p[c.index],d),p[u.index]=zO(p[u.index],n?d:Math.abs(r)),h.symbolSize=p,(h.symbolScale=[p[0]/s,p[1]/s])[u.index]*=(l.isHorizontal?-1:1)*o}(t,e,a,r,0,c.boundingLength,c.pxSign,h,n,c),function(t,e,i,n,a){var r=t.get(NO)||0;r&&(BO.attr({scale:e.slice(),rotation:i}),BO.updateTransform(),r/=BO.getLineScale(),r*=e[n.valueDim.index]);a.valueLineWidth=r}(i,c.symbolScale,l,n,c);var d=c.symbolSize,p=i.get("symbolOffset");return DO.isArray(p)&&(p=[zO(p[0],d[0]),zO(p[1],d[1])]),function(t,e,i,n,a,r,o,s,l,h,u,c){var d=u.categoryDim,p=u.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(n){var v=Math.abs(l),y=DO.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=zO(y,e[p.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=EO(n),S=w?n:nz((v+b)/_);_=g+2*(y=(v-S*g)/2/(x?S:S-1)),b=x?0:2*y,w||"fixed"===n||(S=h?nz((Math.abs(h)+b)/_):0),m=S*_-b,c.repeatTimes=S,c.symbolMargin=y}var M=f*(m/2),I=c.pathPosition=[];I[d.index]=i[d.wh]/2,I[p.index]="start"===o?M:"end"===o?l-M:l/2,r&&(I[0]+=r[0],I[1]+=r[1]);var A=c.bundlePosition=[];A[d.index]=i[d.xy],A[p.index]=i[p.xy];var T=c.barRectShape=DO.extend({},i);T[p.wh]=f*Math.max(Math.abs(i[p.wh]),Math.abs(I[p.index]+M)),T[d.wh]=i[d.wh];var C=c.clipShape={};C[d.xy]=-i[d.xy],C[d.wh]=u.ecSize[d.wh],C[p.xy]=0,C[p.wh]=i[p.wh]}(i,d,a,r,0,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,n,c),c}function WO(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function HO(t){var e=t.symbolPatternSize,i=kO(t.symbolType,-e/2,-e/2,e,e,t.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function FO(t,e,i,n){var a=t.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=e.valueDim,h=i.repeatTimes||0,u=0,c=r[e.valueDim.index]+o+2*i.symbolMargin;for(tz(t,(function(t){t.__pictorialAnimationIndex=u,t.__pictorialRepeatTimes=h,u0:n<0)&&(a=h-1-t),e[l.index]=c*(a-h/2+.5)+s[l.index],{position:e,scale:i.symbolScale.slice(),rotation:i.rotation}}function g(){tz(t,(function(t){t.trigger("emphasis")}))}function m(){tz(t,(function(t){t.trigger("normal")}))}}function ZO(t,e,i,n){var a=t.__pictorialBundle,r=t.__pictorialMainPath;r?ez(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=t.__pictorialMainPath=HO(i),a.add(r),ez(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",(function(){this.trigger("emphasis")})).on("mouseout",(function(){this.trigger("normal")}))),$O(r,i)}function UO(t,e,i){var n=DO.extend({},e.barRectShape),a=t.__pictorialBarRect;a?ez(a,null,{shape:n},e,i):(a=t.__pictorialBarRect=new PO.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(a))}function jO(t,e,i,n){if(i.symbolClip){var a=t.__pictorialClipPath,r=DO.extend({},i.clipShape),o=e.valueDim,s=i.animationModel,l=i.dataIndex;if(a)PO.updateProps(a,{shape:r},s,l);else{r[o.wh]=0,a=new PO.Rect({shape:r}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var h={};h[o.wh]=i.clipShape[o.wh],PO[n?"updateProps":"initProps"](a,{shape:h},s,l)}}}function qO(t,e){var i=t.getItemModel(e);return i.getAnimationDelayParams=XO,i.isAnimationEnabled=YO,i}function XO(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function YO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function $O(t,e){t.off("emphasis").off("normal");var i=e.symbolScale.slice();e.hoverAnimation&&t.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function KO(t,e,i,n){var a=new PO.Group,r=new PO.Group;return a.add(r),a.__pictorialBundle=r,r.attr("position",i.bundlePosition.slice()),i.symbolRepeat?FO(a,e,i):ZO(a,0,i),UO(a,i,n),jO(a,e,i,n),a.__pictorialShapeStr=QO(t,i),a.__pictorialSymbolMeta=i,a}function JO(t,e,i,n){var a=n.__pictorialBarRect;a&&(a.style.text=null);var r=[];tz(n,(function(t){r.push(t)})),n.__pictorialMainPath&&r.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),DO.each(r,(function(t){PO.updateProps(t,{scale:[0,0]},i,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function QO(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function tz(t,e,i){DO.each(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(i,n)}))}function ez(t,e,i,n,a,r){e&&t.attr(e),n.symbolClip&&!a?i&&t.attr(i):i&&PO[a?"updateProps":"initProps"](t,i,n.animationModel,n.dataIndex,r)}function iz(t,e,i){var n=i.color,a=i.dataIndex,r=i.itemModel,o=r.getModel("itemStyle.normal").getItemStyle(["color"]),s=r.getModel("itemStyle.emphasis").getItemStyle(),l=r.getShallow("cursor");tz(t,(function(t){t.setColor(n),t.setStyle(DO.defaults({fill:n,opacity:i.opacity},o)),PO.setHoverStyle(t,s),l&&(t.cursor=l),t.z2=i.z2}));var h={},u=e.valueDim.posDesc[+(i.boundingLength>0)],c=t.__pictorialBarRect;RO(c.style,h,r,n,e.seriesModel,a,u),PO.setHoverStyle(c,h)}function nz(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}LO.extendChartView({type:"pictorialBar",render:function(t,e,i){var n=this.group,a=t.getData(),r=this._data,o=t.coordinateSystem,s=!!o.getBaseAxis().isHorizontal(),l=o.grid.getRect(),h={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:VO[+s],categoryDim:VO[1-s]};return a.diff(r).add((function(t){if(a.hasValue(t)){var e=qO(a,t),i=GO(a,t,e,h),r=KO(a,h,i);a.setItemGraphicEl(t,r),n.add(r),iz(r,h,i)}})).update((function(t,e){var i=r.getItemGraphicEl(e);if(a.hasValue(t)){var o=qO(a,t),s=GO(a,t,o,h),l=QO(a,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),a.setItemGraphicEl(t,null),i=null),i?function(t,e,i){var n=i.animationModel,a=i.dataIndex,r=t.__pictorialBundle;PO.updateProps(r,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?FO(t,e,i,!0):ZO(t,e,i,!0);UO(t,i,!0),jO(t,e,i,!0)}(i,h,s):i=KO(a,h,s,!0),a.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=s,n.add(i),iz(i,h,s)}else n.remove(i)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&JO(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=a,this.group},dispose:DO.noop,remove:function(t,e){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){JO(n,e.dataIndex,t,e)})):i.removeAll()}});var az=m,rz=b,oz=ox,sz=Ym;az.registerLayout(rz.curry(oz,"pictorialBar")),az.registerVisual(rz.curry(sz,"pictorialBar","roundRect",null));var lz=b,hz=gg,uz=function(t,e,i,n,a){hz.call(this,t,e,i),this.type=n||"value",this.position=a||"bottom",this.orient=null,this._labelInterval=null};uz.prototype={constructor:uz,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},lz.inherits(uz,hz);var cz=uz,dz=Rp,pz=wu.getLayoutRect;function fz(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}fz.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:fz,_init:function(t,e,i){var n=this.dimension,a=new cz(n,dz.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),r="category"===a.type;a.onBand=r&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(i)),dz.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=pz({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis();return"horizontal"===i.orient?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var gz=fz;_c.register("single",{create:function(t,e){var i=[];return t.eachComponent("singleAxis",(function(n,a){var r=new gz(n,t,e);r.name="single_"+a,r.resize(n,e),n.coordinateSystem=r,i.push(r)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i},dimensions:gz.prototype.dimensions});var mz={},vz=b;mz.layout=function(t,e){e=e||{};var i=t.coordinateSystem,n=t.axis,a={},r=n.position,o=n.orient,s=i.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],h={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=["vertical"===o?h.vertical[r]:l[0],"horizontal"===o?h.horizontal[r]:l[3]],a.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),vz.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var u=e.rotate;return null==u&&(u=t.get("axisLabel.rotate")),a.labelRotation="top"===r?-u:u,a.labelInterval=n.getLabelInterval(),a.z2=1,a};var yz=b,xz=yy,_z=Vr,bz=mz,wz=Oy,Sz=xz.getInterval,Mz=xz.ifIgnoreOnTick,Iz=["axisLine","axisTickLabel","axisName"],Az=wz.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(t,e,i,n){var a=this.group;a.removeAll();var r=bz.layout(t),o=new xz(t,r);yz.each(Iz,o.add,o),a.add(o.getGroup()),t.get("splitLine.show")&&this._splitLine(t,r.labelInterval),Az.superCall(this,"render",t,e,i,n)},_splitLine:function(t,e){var i=t.axis;if(!i.scale.isBlank()){var n=t.getModel("splitLine"),a=n.getModel("lineStyle"),r=a.get("width"),o=a.get("color"),s=Sz(n,e);o=o instanceof Array?o:[o];for(var l=t.coordinateSystem.getRect(),h=i.isHorizontal(),u=[],c=0,d=i.getTicksCoords(),p=[],f=[],g=t.get("axisLabel.showMinLabel"),m=t.get("axisLabel.showMaxLabel"),v=0;v=0&&s<0)&&(o=f,s=p,a=h,r.length=0),Vz(u,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:a}}(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==a.seriesIndex&&zz.extend(a,s[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),i.showPointer(t,e,s,a),i.showTooltip(t,o,l)}else i.showPointer(t,e)}function Hz(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function Fz(t,e,i,n){var a=i.payloadBatch,r=e.axis,o=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&a.length){var l=e.coordSys.model,h=Rz.makeKey(l),u=t.map[h];u||(u=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:r.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get("label.precision"),formatter:s.get("label.formatter")},seriesDataIndices:a.slice()})}}function Zz(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function Uz(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var jz=function(t,e,i){var n=t.currTrigger,a=[t.x,t.y],r=t,o=t.dispatchAction||zz.bind(i.dispatchAction,i),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Uz(a)&&(a=Nz({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=Uz(a),h=r.axesInfo,u=s.axesInfo,c="leave"===n||Uz(a),d={},p={},f={list:[],map:{}},g={showPointer:Bz(Hz,p),showTooltip:Bz(Fz,f)};Vz(s.coordSysMap,(function(t,e){var i=l||t.containPoint(a);Vz(s.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(h,t);if(!c&&i&&(!h||r)){var o=r&&r.value;null!=o||l||(o=n.pointToData(a)),null!=o&&Wz(t,o,g,!1,d)}}))}));var m={};return Vz(u,(function(t,e){var i=t.linkGroup;i&&!p[e]&&Vz(i.axesInfo,(function(e,n){var a=p[n];if(e!==t&&a){var r=a.value;i.mapper&&(r=t.axis.scale.parse(i.mapper(r,Zz(e),Zz(t)))),m[t.key]=r}}))})),Vz(m,(function(t,e){Wz(u[e],t,g,!0,d)})),function(t,e,i){var n=i.axesInfo=[];Vz(e,(function(e,i){var a=e.axisPointerModel.option,r=t[i];r?(!e.useHandle&&(a.status="show"),a.value=r.value,a.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:a.value})}))}(p,u,d),function(t,e,i,n){if(Uz(e)||!t.list.length)return void n({type:"hideTip"});var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}(f,a,t,o),function(t,e,i){var n=i.getZr(),a="axisPointerLastHighlights",r=Gz(n)[a]||{},o=Gz(n)[a]={};Vz(t,(function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&Vz(i.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;o[e]=t}))}));var s=[],l=[];zz.each(r,(function(t,e){!o[e]&&l.push(t)})),zz.each(o,(function(t,e){!r[e]&&s.push(t)})),l.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:l}),s.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:s})}(u,0,i),d}};m.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}});var qz={},Xz=b,Yz=_,$z=ur.makeGetter(),Kz=Xz.each;function Jz(t,e,i){t.handler("leave",null,i)}function Qz(t,e,i,n){e.handler(t,i,n)}qz.register=function(t,e,i){if(!Yz.node){var n=e.getZr();$z(n).records||($z(n).records={}),function(t,e){if($z(t).initialized)return;function i(i,n){t.on(i,(function(i){var a=function(t){var e={showTip:[],hideTip:[]},i=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=i,t.dispatchAction(n))};return{dispatchAction:i,pendings:e}}(e);Kz($z(t).records,(function(t){t&&n(t,i,a.dispatchAction)})),function(t,e){var i,n=t.showTip.length,a=t.hideTip.length;n?i=t.showTip[n-1]:a&&(i=t.hideTip[a-1]);i&&(i.dispatchAction=null,e.dispatchAction(i))}(a.pendings,e)}))}$z(t).initialized=!0,i("click",Xz.curry(Qz,"click")),i("mousemove",Xz.curry(Qz,"mousemove")),i("globalout",Jz)}(n,e),($z(n).records[t]||($z(n).records[t]={})).handler=i}},qz.unregister=function(t,e){if(!Yz.node){var i=e.getZr();($z(i).records||{})[t]&&($z(i).records[t]=null)}};var tE=qz,eE=m.extendComponentView({type:"axisPointer",render:function(t,e,i){var n=e.getComponent("tooltip"),a=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";tE.register("axisPointer",i,(function(t,e,i){"none"!==a&&("leave"===t||a.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},remove:function(t,e){tE.unregister(e.getZr(),"axisPointer"),eE.superApply(this._model,"remove",arguments)},dispose:function(t,e){tE.unregister("axisPointer",e),eE.superApply(this._model,"dispose",arguments)}}),iE=b,nE=Ar,aE=Vr,rE=xy,oE=fa,sE=Ed,lE=ur.makeGetter(),hE=iE.clone,uE=iE.bind;function cE(){}function dE(t,e,i,n){pE(lE(i).lastProp,n)||(lE(i).lastProp=n,e?aE.updateProps(i,n,t):(i.stopAnimation(),i.attr(n)))}function pE(t,e){if(iE.isObject(t)&&iE.isObject(e)){var i=!0;return iE.each(e,(function(e,n){i=i&&pE(t[n],e)})),!!i}return t===e}function fE(t,e){t[e.get("label.show")?"show":"hide"]()}function gE(t){return{position:t.position.slice(),rotation:t.rotation||0}}function mE(t,e,i){var n=e.get("z"),a=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=a&&(t.zlevel=a),t.silent=i)}))}cE.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(t,e,i,n){var a=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==a||this._lastStatus!==r){this._lastValue=a,this._lastStatus=r;var o=this._group,s=this._handle;if(!r||"hide"===r)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,a,t,e,i);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(o){var c=iE.curry(dE,e,u);this.updatePointerEl(o,l,c,e),this.updateLabelEl(o,l,c,e)}else o=this._group=new aE.Group,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),i.getZr().add(o);mE(o,e,!0),this._renderHandle(a)}},remove:function(t){this.clear(t)},dispose:function(t){this.clear(t)},determineAnimation:function(t,e){var i=e.get("animation"),n=t.axis,a="category"===n.type,r=e.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var o=this.animationThreshold;if(a&&n.getBandWidth()>o)return!0;if(r){var s=rE.getAxisInfo(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===i},makeElOption:function(t,e,i,n,a){},createPointerEl:function(t,e,i,n){var a=e.pointer;if(a){var r=lE(t).pointerEl=new aE[a.type](hE(e.pointer));t.add(r)}},createLabelEl:function(t,e,i,n){if(e.label){var a=lE(t).labelEl=new aE.Rect(hE(e.label));t.add(a),fE(a,n)}},updatePointerEl:function(t,e,i){var n=lE(t).pointerEl;n&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},updateLabelEl:function(t,e,i,n){var a=lE(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{shape:e.label.shape,position:e.label.position}),fE(a,n))},_renderHandle:function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),a=this._handle,r=i.getModel("handle"),o=i.get("status");if(!r.get("show")||!o||"hide"===o)return a&&n.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=aE.createIcon(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){oE.stop(t.event)},onmousedown:uE(this._onHandleDragMove,this,0,0),drift:uE(this._onHandleDragMove,this),ondragend:uE(this._onHandleDragEnd,this)}),n.add(a)),mE(a,i,!1);a.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");iE.isArray(s)||(s=[s,s]),a.attr("scale",[s[0]/2,s[1]/2]),sE.createOrUpdate(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},_moveHandleToValue:function(t,e){dE(this._axisPointerModel,!e&&this._moveAnimation,this._handle,gE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(gE(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(gE(n)),lE(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},_onHandleDragEnd:function(t){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}}},cE.prototype.constructor=cE,nE.enableClassExtend(cE);var vE=cE,yE={},xE=b,_E=Vr,bE=Ni,wE=cr,SE=mt,ME=Rp,IE=yy;function AE(t,e,i,n,a){var r=TE(i.get("value"),e.axis,e.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),o=i.getModel("label"),s=wE.normalizeCssArray(o.get("padding")||0),l=o.getFont(),h=bE.getBoundingRect(r,l),u=a.position,c=h.width+s[1]+s[3],d=h.height+s[0]+s[2],p=a.align;"right"===p&&(u[0]-=c),"center"===p&&(u[0]-=c/2);var f=a.verticalAlign;"bottom"===f&&(u[1]-=d),"middle"===f&&(u[1]-=d/2),function(t,e,i,n){var a=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+i,r)-i,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,c,d,n);var g=o.get("backgroundColor");g&&"auto"!==g||(g=e.get("axisLine.lineStyle.color")),t.label={shape:{x:0,y:0,width:c,height:d,r:o.get("borderRadius")},position:u.slice(),style:{text:r,textFont:l,textFill:o.getTextColor(),textPosition:"inside",fill:g,stroke:o.get("borderColor")||"transparent",lineWidth:o.get("borderWidth")||0,shadowBlur:o.get("shadowBlur"),shadowColor:o.get("shadowColor"),shadowOffsetX:o.get("shadowOffsetX"),shadowOffsetY:o.get("shadowOffsetY")},z2:10}}function TE(t,e,i,n,a){var r=e.scale.getLabel(t,{precision:a.precision}),o=a.formatter;if(o){var s={value:ME.getAxisRawValue(e,t),seriesData:[]};xE.each(n,(function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,a=e&&e.getDataParams(n);a&&s.seriesData.push(a)})),xE.isString(o)?r=o.replace("{value}",r):xE.isFunction(o)&&(r=o(s))}return r}function CE(t,e,i){var n=SE.create();return SE.rotate(n,n,i.rotation),SE.translate(n,n,i.position),_E.applyTransform([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}yE.buildElStyle=function(t){var e,i=t.get("type"),n=t.getModel(i+"Style");return"line"===i?(e=n.getLineStyle()).fill=null:"shadow"===i&&((e=n.getAreaStyle()).stroke=null),e},yE.buildLabelElOption=AE,yE.getValueLabel=TE,yE.getTransformedPosition=CE,yE.buildCartesianSingleLabelElOption=function(t,e,i,n,a,r){var o=IE.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),AE(e,n,a,r,{position:CE(n.axis,t,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})},yE.makeLineShape=function(t,e,i){return{x1:t[i=i||0],y1:t[1-i],x2:e[i],y2:e[1-i]}},yE.makeRectShape=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},yE.makeSectorShape=function(t,e,i,n,a,r){return{cx:t,cy:e,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}};var LE=Vr,DE=yE,PE=zy,kE=Oy,OE=vE.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.grid,s=n.get("type"),l=zE(o,r).getOtherAxis(r).getGlobalExtent(),h=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var u=DE.buildElStyle(n),c=EE[s](r,h,l,u);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=PE.layout(o.model,i);DE.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=PE.layout(e.axis.grid.model,e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:DE.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=zE(r,a).getOtherAxis(a).getGlobalExtent(),l="x"===a.dim?0:1,h=t.position;h[l]+=e[l],h[l]=Math.min(o[1],h[l]),h[l]=Math.max(o[0],h[l]);var u=(s[1]+s[0])/2,c=[u,u];c[l]=h[l];return{position:h,rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}}});function zE(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var EE={line:function(t,e,i,n){var a=DE.makeLineShape([e,i[0]],[e,i[1]],RE(t));return LE.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:DE.makeRectShape([e-a/2,i[0]],[a,r],RE(t))}}};function RE(t){return"x"===t.dim?0:1}kE.registerAxisPointerClass("CartesianAxisPointer",OE);var NE=m,VE=b,BE=xy,GE=jz;NE.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!VE.isArray(e)&&(t.axisPointer.link=[e])}})),NE.registerProcessor(NE.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=BE.collect(t,e)})),NE.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GE);var WE=Vr,HE=yE,FE=mz,ZE=Oy,UE=["x","y"],jE=["width","height"],qE=vE.extend({makeElOption:function(t,e,i,n,a){var r=i.axis,o=r.coordinateSystem,s=$E(o,1-YE(r)),l=o.dataToPoint(e)[0],h=n.get("type");if(h&&"none"!==h){var u=HE.buildElStyle(n),c=XE[h](r,l,s,u);c.style=u,t.graphicKey=c.type,t.pointer=c}var d=FE.layout(i);HE.buildCartesianSingleLabelElOption(e,t,d,i,n,a)},getHandleTransform:function(t,e,i){var n=FE.layout(e,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:HE.getTransformedPosition(e.axis,t,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(t,e,i,n){var a=i.axis,r=a.coordinateSystem,o=YE(a),s=$E(r,o),l=t.position;l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var h=$E(r,1-o),u=(h[1]+h[0])/2,c=[u,u];return c[o]=l[o],{position:l,rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}}}),XE={line:function(t,e,i,n){var a=HE.makeLineShape([e,i[0]],[e,i[1]],YE(t));return WE.subPixelOptimizeLine({shape:a,style:n}),{type:"Line",shape:a}},shadow:function(t,e,i,n){var a=t.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:HE.makeRectShape([e-a/2,i[0]],[a,r],YE(t))}}};function YE(t){return t.isHorizontal()?0:1}function $E(t,e){var i=t.getRect();return[i[UE[e]],i[UE[e]]+i[jE[e]]]}ZE.registerAxisPointerClass("SingleAxisPointer",qE),m.extendComponentView({type:"single"});var KE=wp,JE=yd,QE=dp,tR=b,eR=cr.encodeHTML,iR=GD,nR=JE.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){nR.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,i=iR().key((function(t){return t[2]})).entries(t),n=tR.map(i,(function(t){return{name:t.key,dataList:t.values}})),a=n.length,r=-1,o=-1,s=0;sr&&(r=l,o=s)}for(var h=0;hr&&(r=h),n.push(h)}for(var u=0;ur&&(r=d)}return o.y0=a,o.max=r,o}(o),l=s.y0,h=i/s.max,u=r.length,c=r[0].indices.length,d=0;dn[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:DR.bind((function(n){var a=e.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=t.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o})),size:DR.bind(PR,t)}}},OR=b;var zR=function(t){var e=t.getRect(),i=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:OR.bind(t.dataToPoint,t)}}},ER=m,RR=b,NR=Vr,VR=jg.findLabelValueDim,BR=Ep,GR=ox,WR=$d,HR=["itemStyle","normal"],FR=["itemStyle","emphasis"],ZR=["label","normal"],UR=["label","emphasis"],jR={cartesian2d:SR,geo:AR,singleAxis:LR,polar:kR,calendar:zR};function qR(t,e,i,n,a){null==i[t]||a||(e[t]=i[t],i[t]=n[t])}function XR(t){var e={};return RR.each(t.dimensions,(function(i,n){var a=t.getDimensionInfo(i);if(!a.isExtraCoord){var r=a.coordDim;(e[r]=e[r]||[])[a.coordDimIndex]=n}})),e}function YR(t,e,i,n,a,r){(t=$R(t,e,i,n,a,r))&&r.setItemGraphicEl(e,t)}function $R(t,e,i,n,a,r){var o=i.type;if(!t||o===t.__customGraphicType||"path"===o&&i.pathData===t.__customPathData||"image"===o&&i.style.image===t.__customImagePath||"text"===o&&i.style.text===t.__customText||(a.remove(t),t=null),null!=o){var s,l=!t;if(!t&&(t=function(t){var e,i=t.type;if("path"===i){var n=t.shape;(e=NR.makePath(n.pathData,null,{x:n.x||0,y:n.y||0,width:n.width||0,height:n.height||0},"center")).__customPathData=t.pathData}else"image"===i?(e=new NR.Image({})).__customImagePath=t.style.image:"text"===i?(e=new NR.Text({})).__customText=t.style.text:e=new(0,NR[i.charAt(0).toUpperCase()+i.slice(1)]);return e.__customGraphicType=i,e.name=t.name,e}(i)),function(t,e,i,n,a,r){var o={},s=i.style||{};if(i.shape&&(o.shape=RR.clone(i.shape)),i.position&&(o.position=i.position.slice()),i.scale&&(o.scale=i.scale.slice()),i.origin&&(o.origin=i.origin.slice()),i.rotation&&(o.rotation=i.rotation),"image"===t.type&&i.style){var l=o.style={};RR.each(["x","y","width","height"],(function(e){qR(e,l,s,t.style,r)}))}"text"===t.type&&i.style&&(l=o.style={},RR.each(["x","y"],(function(e){qR(e,l,s,t.style,r)})),!s.hasOwnProperty("textFill")&&s.fill&&(s.textFill=s.fill),!s.hasOwnProperty("textStroke")&&s.stroke&&(s.textStroke=s.stroke));if("group"!==t.type&&(t.useStyle(s),r)){t.style.opacity=0;var h=s.opacity;null==h&&(h=1),NR.initProps(t,{style:{opacity:h}},n,e)}r?t.attr(o):NR.updateProps(t,o,n,e),t.attr({z2:i.z2||0,silent:i.silent}),!1!==i.styleEmphasis&&NR.setHoverStyle(t,i.styleEmphasis)}(t,e,i,n,0,l),"group"===o){var h=t.children()||[],u=i.children||[];if(i.diffChildrenByName)new WR((s={oldChildren:h,newChildren:u,dataIndex:e,animatableModel:n,group:t,data:r}).oldChildren,s.newChildren,KR,KR,s).add(JR).update(JR).remove(QR).execute();else{for(var c=0;c=0;l--)null==a[l]?a.splice(l,1):delete a[l].$action},_flatten:function(t,e,i){eN.each(t,(function(t){if(t){i&&(t.parentOption=i),e.push(t);var n=t.children;"group"===t.type&&n&&this._flatten(n,e,t),delete t.children}}),this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function oN(t,e,i,n){var a=i.type,r=new(0,nN[a.charAt(0).toUpperCase()+a.slice(1)])(i);e.add(r),n.set(t,r),r.__ecGraphicId=t}function sN(t,e){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){sN(t,e)})),e.removeKey(t.__ecGraphicId),i.remove(t))}function lN(t,e){var i;return eN.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(i=!0)})),i}tN.extendComponentView({type:"graphic",init:function(t,e){this._elMap=eN.createHashMap(),this._lastGraphicModel},render:function(t,e,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,i),this._relocate(t,i)},_updateElements:function(t,e){var i=t.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group;eN.each(i,(function(t){var e=t.$action,i=t.id,r=n.get(i),o=t.parentId,s=null!=o?n.get(o):a;if("text"===t.type){var l=t.style;t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=null),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}var h=function(t){return t=eN.extend({},t),eN.each(["id","parentId","$action","hv","bounding"].concat(aN.LOCATION_PARAMS),(function(e){delete t[e]})),t}(t);e&&"merge"!==e?"replace"===e?(sN(r,n),oN(i,s,h,n)):"remove"===e&&sN(r,n):r?r.attr(h):oN(i,s,h,n);var u=n.get(i);u&&(u.__ecGraphicWidth=t.width,u.__ecGraphicHeight=t.height)}))}},_relocate:function(t,e){for(var i=t.option.elements,n=this.group,a=this._elMap,r=i.length-1;r>=0;r--){var o=i[r],s=a.get(o.id);if(s){var l=s.parent,h=l===n?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};aN.positionElement(s,o,h,null,{hv:o.hv,boundingMode:o.bounding})}}},_clear:function(){var t=this._elMap;t.each((function(e){sN(e,t)})),this._elMap=eN.createHashMap()},dispose:function(){this._clear()}});var hN=b,uN=ru,cN=m.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{}},mergeOption:function(t){cN.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,i=0;i=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}}),dN=cN,pN=m,fN=b;function gN(t,e,i){var n,a={},r="toggleSelected"===t;return i.eachComponent("legend",(function(i){r&&null!=n?i[n?"select":"unSelect"](e.name):(i[t](e.name),n=i.isSelected(e.name));var o=i.getData();fN.each(o,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var n=i.isSelected(e);a.hasOwnProperty(e)?a[e]=a[e]&&n:a[e]=n}}))})),{name:e.name,selected:a}}pN.registerAction("legendToggleSelect","legendselectchanged",fN.curry(gN,"toggleSelected")),pN.registerAction("legendSelect","legendselected",fN.curry(gN,"select")),pN.registerAction("legendUnSelect","legendunselected",fN.curry(gN,"unSelect"));var mN={},vN=wu,yN=vN.getLayoutRect,xN=vN.box,_N=vN.positionElement,bN=cr,wN=Vr;mN.layout=function(t,e,i){var n=e.getBoxLayoutParams(),a=e.get("padding"),r={width:i.getWidth(),height:i.getHeight()},o=yN(n,r,a);xN(e.get("orient"),t,e.get("itemGap"),o.width,o.height),_N(t,n,r,a)},mN.makeBackground=function(t,e){var i=bN.normalizeCssArray(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),t=new wN.Rect({shape:{x:t.x-i[3],y:t.y-i[0],width:t.width+i[1]+i[3],height:t.height+i[0]+i[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})};var SN=m,MN=b,IN=Hf.createSymbol,AN=Vr,TN=mN.makeBackground,CN=wu,LN=MN.curry,DN=MN.each,PN=AN.Group;function kN(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function ON(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function zN(t,e,i){var n=i.getZr().storage.getDisplayList()[0];n&&n.useHoverLayer||t.get("legendHoverLink")&&i.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var EN=SN.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new PN),this._backgroundEl},getContentGroup:function(){return this._contentGroup},render:function(t,e,i){if(this.resetInner(),t.get("show",!0)){var n=t.get("align");n&&"auto"!==n||(n="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left"),this.renderInner(n,t,e,i);var a=t.getBoxLayoutParams(),r={width:i.getWidth(),height:i.getHeight()},o=t.get("padding"),s=CN.getLayoutRect(a,r,o),l=this.layoutInner(t,n,s),h=CN.getLayoutRect(MN.defaults({width:l.width,height:l.height},a),r,o);this.group.attr("position",[h.x-l.x,h.y-l.y]),this.group.add(this._backgroundEl=TN(l,t))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl)},renderInner:function(t,e,i,n){var a=this.getContentGroup(),r=MN.createHashMap(),o=e.get("selectedMode");DN(e.getData(),(function(s,l){var h=s.get("name");if(this.newlineDisabled||""!==h&&"\n"!==h){var u=i.getSeriesByName(h)[0];if(!r.get(h))if(u){var c=u.getData(),d=c.getVisual("color");"function"==typeof d&&(d=d(u.getDataParams(0)));var p=c.getVisual("legendSymbol")||"roundRect",f=c.getVisual("symbol");this._createItem(h,l,s,e,p,f,t,d,o).on("click",LN(kN,h,n)).on("mouseover",LN(ON,u,null,n)).on("mouseout",LN(zN,u,null,n)),r.set(h,!0)}else i.eachRawSeries((function(i){if(!r.get(h)&&i.legendDataProvider){var a=i.legendDataProvider(),u=a.indexOfName(h);if(u<0)return;var c=a.getItemVisual(u,"color");this._createItem(h,l,s,e,"roundRect",null,t,c,o).on("click",LN(kN,h,n)).on("mouseover",LN(ON,i,h,n)).on("mouseout",LN(zN,i,h,n)),r.set(h,!0)}}),this)}else a.add(new PN({newline:!0}))}),this)},_createItem:function(t,e,i,n,a,r,o,s,l){var h=n.get("itemWidth"),u=n.get("itemHeight"),c=n.get("inactiveColor"),d=n.isSelected(t),p=new PN,f=i.getModel("textStyle"),g=i.get("icon"),m=i.getModel("tooltip"),v=m.parentModel;if(a=g||a,p.add(IN(a,0,0,h,u,d?s:c,!0)),!g&&r&&(r!==a||"none"==r)){var y=.8*u;"none"===r&&(r="circle"),p.add(IN(r,(h-y)/2,(u-y)/2,y,y,d?s:c))}var x="left"===o?h+5:-5,_=o,b=n.get("formatter"),w=t;"string"==typeof b&&b?w=b.replace("{name}",null!=t?t:""):"function"==typeof b&&(w=b(t)),p.add(new AN.Text({style:AN.setTextStyle({},f,{text:w,x:x,y:u/2,textFill:d?f.getTextColor():c,textAlign:_,textVerticalAlign:"middle"})}));var S=new AN.Rect({shape:p.getBoundingRect(),invisible:!0,tooltip:m.get("show")?MN.extend({content:t,formatter:v.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},m.option):null});return p.add(S),p.eachChild((function(t){t.silent=!0})),S.silent=!l,this.getContentGroup().add(p),AN.setHoverStyle(p),p.__legendDataIndex=e,p},layoutInner:function(t,e,i){var n=this.getContentGroup();CN.box(t.get("orient"),n,t.get("itemGap"),i.width,i.height);var a=n.getBoundingRect();return n.attr("position",[-a.x,-a.y]),this.group.getBoundingRect()}});var RN=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var i=0;ii[s],p=[-u.x,-u.y];p[o]=n.position[o];var f=[0,0],g=[-c.x,-c.y],m=ZN.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?g[o]+=i[s]-c[s]:f[o]+=c[s]+m);g[1-o]+=u[l]/2-c[l]/2,n.attr("position",p),a.attr("position",f),r.attr("position",g);var v=this.group.getBoundingRect();if((v={x:0,y:0})[s]=d?i[s]:u[s],v[l]=Math.max(u[l],c[l]),v[h]=Math.min(0,c[h]+g[1-o]),a.__rectSize=i[s],d){var y={x:0,y:0};y[s]=Math.max(i[s]-c[s]-m,0),y[l]=v[l],a.setClipPath(new UN.Rect({shape:y})),a.__rectSize=y[s]}else r.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(t);return null!=x.pageIndex&&UN.updateProps(n,{position:x.contentPosition},!!d&&t),this._updatePageInfoView(t,x),v},_pageGo:function(t,e,i){var n=this._getPageInfo(e)[t];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},_updatePageInfoView:function(t,e){var i=this._controllerGroup;ZN.each(["pagePrev","pageNext"],(function(n){var a=null!=e[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var n=i.childOfName("pageText"),a=t.get("pageFormatter"),r=e.pageIndex,o=null!=r?r+1:0,s=e.pageCount;n&&a&&n.setStyle("text",ZN.isString(a)?a.replace("{current}",o).replace("{total}",s):a({current:o,total:s}))},_getPageInfo:function(t){var e,i,n,a,r=t.get("scrollDataIndex",!0),o=this.getContentGroup(),s=o.getBoundingRect(),l=this._containerGroup.__rectSize,h=t.getOrient().index,u=YN[h],c=YN[1-h],d=$N[h],p=o.position.slice();this._showController?o.eachChild((function(t){t.__legendDataIndex===r&&(a=t)})):a=o.childAt(0);var f=l?Math.ceil(s[u]/l):0;if(a){var g=a.getBoundingRect(),m=a.position[h]+g[d];p[h]=-m-s[d],e=Math.floor(f*(m+g[d]+l/2)/s[u]),e=s[u]&&f?Math.max(0,Math.min(f-1,e)):-1;var v,y={x:0,y:0};y[u]=l,y[c]=s[c],y[d]=-p[h]-s[d];var x=o.children();if(o.eachChild((function(t,e){var i=b(t);i.intersect(y)&&(null==v&&(v=e),n=t.__legendDataIndex),e===x.length-1&&i[d]+i[u]<=y[d]+y[u]&&(n=null)})),null!=v){var _=b(x[v]);if(y[d]=_[d]+_[u]-y[u],v<=0&&_[d]>=y[d])i=null;else{for(;v>0&&b(x[v-1]).intersect(y);)v--;i=x[v].__legendDataIndex}}}return{contentPosition:p,pageIndex:e,pageCount:f,pagePrevDataIndex:i,pageNextDataIndex:n};function b(t){var e=t.getBoundingRect().clone();return e[d]+=t.position[h],e}}});m.registerAction("legendScroll","legendscroll",(function(t,e){var i=t.scrollDataIndex;null!=i&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(i)}))})),m.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});var JN=b,QN=Pt,tV=fa,eV=_,iV=cr,nV=JN.each,aV=iV.toCamelCase,rV=["","-webkit-","-moz-","-o-"];function oV(t){var e,i,n,a=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.getModel("textStyle"),l=t.get("padding");return r&&a.push((n="left "+(e=r)+"s "+(i="cubic-bezier(0.23, 1, 0.32, 1)")+",top "+e+"s "+i,JN.map(rV,(function(t){return t+"transition:"+n})).join(";"))),o&&(eV.canvasSupported?a.push("background-Color:"+o):(a.push("background-Color:#"+QN.toHex(o)),a.push("filter:alpha(opacity=70)"))),nV(["width","color","radius"],(function(e){var i="border-"+e,n=aV(i),r=t.get(n);null!=r&&a.push(i+":"+r+("color"===e?"":"px"))})),a.push(function(t){var e=[],i=t.get("fontSize"),n=t.getTextColor();return n&&e.push("color:"+n),e.push("font:"+t.getFont()),i&&e.push("line-height:"+Math.round(3*i/2)+"px"),nV(["decoration","align"],(function(i){var n=t.get(i);n&&e.push("text-"+i+":"+n)})),e.join(";")}(s)),null!=l&&a.push("padding:"+iV.normalizeCssArray(l).join("px ")+"px"),a.join(";")+";"}function sV(t,e){var i=document.createElement("div"),n=this._zr=e.getZr();this.el=i,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(i),this._container=t,this._show=!1,this._hideTimeout;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var i=n.handler;tV.normalizeEvent(t,e,!0),i.dispatch("mousemove",e)}},i.onmouseleave=function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}}sV.prototype={constructor:sV,_enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),i=t.style;"absolute"!==i.position&&"absolute"!==e.position&&(i.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+oV(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){this.el.innerHTML=null==t?"":t},setEnterable:function(t){this._enterable=t},getSize:function(){var t=this.el;return[t.clientWidth,t.clientHeight]},moveTo:function(t,e){var i,n=this._zr;n&&n.painter&&(i=n.painter.getViewportRootOffset())&&(t+=i.offsetLeft,e+=i.offsetTop);var a=this.el.style;a.left=t+"px",a.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(JN.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}};var lV=m,hV=b,uV=_,cV=sV,dV=cr,pV=dr,fV=Vr,gV=Oz,mV=wu,vV=ru,yV=qz,xV=Rp,_V=yE,bV=hV.bind,wV=hV.each,SV=pV.parsePercent,MV=new fV.Rect({shape:{x:-1,y:-1,width:2,height:2}});function IV(t){for(var e=t.pop();t.length;){var i=t.pop();i&&(i instanceof vV&&(i=i.get("tooltip",!0)),"string"==typeof i&&(i={formatter:i}),e=new vV(i,e,e.ecModel))}return e}function AV(t,e){return t.dispatchAction||hV.bind(e.dispatchAction,e)}function TV(t){var e=t.clientWidth,i=t.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var n=document.defaultView.getComputedStyle(t);n&&(e+=parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)+parseInt(n.borderLeftWidth,10)+parseInt(n.borderRightWidth,10),i+=parseInt(n.paddingTop,10)+parseInt(n.paddingBottom,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10))}return{width:e,height:i}}function CV(t){return"center"===t||"middle"===t}lV.extendComponentView({type:"tooltip",init:function(t,e){if(!uV.node){var i=new cV(e.getDom(),e);this._tooltipContent=i}},render:function(t,e,i){if(!uV.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=t.get("alwaysShowContent");var n=this._tooltipContent;n.update(),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var t=this._tooltipModel.get("triggerOn");yV.register("itemTooltip",this._api,bV((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var t=this._tooltipModel,e=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){n.manuallyShowTip(t,e,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(t,e,i,n){if(n.from!==this.uid&&!uV.node){var a=AV(n,i);this._ticket="";var r=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var o=MV;o.position=[n.x,n.y],o.update(),o.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:o},a)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,event:{},dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var s=gV(n,e),l=s.point[0],h=s.point[1];null!=l&&null!=h&&this._tryShow({offsetX:l,offsetY:h,position:n.position,target:s.el,event:{}},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target,event:{}},a))}},manuallyHideTip:function(t,e,i,n){var a=this._tooltipContent;this._alwaysShowContent||a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(AV(n,i))},_manuallyAxisShowTip:function(t,e,i,n){var a=n.seriesIndex,r=n.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=e.getSeriesByIndex(a);if(s)if("axis"===(t=IV([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model,t])).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}},_tryShow:function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;n&&n.length?this._showAxisTooltip(n,t):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e))}},_showOrMove:function(t,e){var i=t.get("showDelay");e=hV.bind(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},_showAxisTooltip:function(t,e){var i=this._ecModel,n=this._tooltipModel,a=[e.offsetX,e.offsetY],r=[],o=[],s=IV([e.tooltipOption,n]);wV(t,(function(t){wV(t.dataByAxis,(function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),n=t.value,a=[];if(e&&null!=n){var s=_V.getValueLabel(n,e.axis,i,t.seriesDataIndices,t.valueLabelOpt);hV.each(t.seriesDataIndices,(function(r){var l=i.getSeriesByIndex(r.seriesIndex),h=r.dataIndexInside,u=l&&l.getDataParams(h);u.axisDim=t.axisDim,u.axisIndex=t.axisIndex,u.axisType=t.axisType,u.axisId=t.axisId,u.axisValue=xV.getAxisRawValue(e.axis,n),u.axisValueLabel=s,u&&(o.push(u),a.push(l.formatTooltip(h,!0)))}));var l=s;r.push((l?dV.encodeHTML(l)+"
":"")+a.join("
"))}}))}),this),r.reverse(),r=r.join("

");var l=e.position;this._showOrMove(s,(function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,l,a[0],a[1],this._tooltipContent,o):this._showTooltipContent(s,r,o,Math.random(),a[0],a[1],l)}))},_showSeriesItemTooltip:function(t,e,i){var n=this._ecModel,a=e.seriesIndex,r=n.getSeriesByIndex(a),o=e.dataModel||r,s=e.dataIndex,l=e.dataType,h=o.getData(),u=IV([h.getItemModel(s),o,r&&(r.coordinateSystem||{}).model,this._tooltipModel]),c=u.get("trigger");if(null==c||"item"===c){var d=o.getDataParams(s,l),p=o.formatTooltip(s,!1,l),f="item_"+o.name+"_"+s;this._showOrMove(u,(function(){this._showTooltipContent(u,p,d,f,t.offsetX,t.offsetY,t.position,t.target)})),i({type:"showTip",dataIndexInside:s,dataIndex:h.getRawIndex(s),seriesIndex:a,from:this.uid})}},_showComponentItemTooltip:function(t,e,i){var n=e.tooltip;if("string"==typeof n){n={content:n,formatter:n}}var a=new vV(n,this._tooltipModel,this._ecModel),r=a.get("content"),o=Math.random();this._showOrMove(a,(function(){this._showTooltipContent(a,r,a.get("formatterParams")||{},o,t.offsetX,t.offsetY,t.position,e)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(t,e,i,n,a,r,o,s){if(this._ticket="",t.get("showContent")&&t.get("show")){var l=this._tooltipContent,h=t.get("formatter");o=o||t.get("position");var u=e;if(h&&"string"==typeof h)u=dV.formatTpl(h,i,!0);else if("function"==typeof h){var c=bV((function(e,n){e===this._ticket&&(l.setContent(n),this._updatePosition(t,o,a,r,l,i,s))}),this);this._ticket=n,u=h(i,n,c)}l.setContent(u),l.show(t),this._updatePosition(t,o,a,r,l,i,s)}},_updatePosition:function(t,e,i,n,a,r,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=a.getSize(),u=t.get("align"),c=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),"function"==typeof e&&(e=e([i,n],r,a.el,d,{viewSize:[s,l],contentSize:h.slice()})),hV.isArray(e))i=SV(e[0],s),n=SV(e[1],l);else if(hV.isObject(e)){e.width=h[0],e.height=h[1];var p=mV.getLayoutRect(e,{width:s,height:l});i=p.x,n=p.y,u=null,c=null}else if("string"==typeof e&&o){var f=function(t,e,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=e.width,h=e.height;switch(t){case"inside":o=e.x+l/2-n/2,s=e.y+h/2-a/2;break;case"top":o=e.x+l/2-n/2,s=e.y-a-r;break;case"bottom":o=e.x+l/2-n/2,s=e.y+h+r;break;case"left":o=e.x-n-r,s=e.y+h/2-a/2;break;case"right":o=e.x+l+r,s=e.y+h/2-a/2}return[o,s]}(e,d,h);i=f[0],n=f[1]}else{f=function(t,e,i,n,a,r,o){var s=TV(i),l=s.width,h=s.height;null!=r&&(t+l+r>n?t-=l+r:t+=r);null!=o&&(e+h+o>a?e-=h+o:e+=o);return[t,e]}(i,n,a.el,s,l,u?null:20,c?null:20);i=f[0],n=f[1]}if(u&&(i-=CV(u)?h[0]/2:"right"===u?h[0]:0),c&&(n-=CV(c)?h[1]/2:"bottom"===c?h[1]:0),t.get("confine")){f=function(t,e,i,n,a){var r=TV(i),o=r.width,s=r.height;return t=Math.min(t+o,n)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(i,n,a.el,s,l);i=f[0],n=f[1]}a.moveTo(i,n)},_updateContentNotChangedOnAxis:function(t){var e=this._lastDataByCoordSys,i=!!e&&e.length===t.length;return i&&wV(e,(function(e,n){var a=e.dataByAxis||{},r=(t[n]||{}).dataByAxis||[];(i&=a.length===r.length)&&wV(a,(function(t,e){var n=r[e]||{},a=t.seriesDataIndices||[],o=n.seriesDataIndices||[];(i&=t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&a.length===o.length)&&wV(a,(function(t,e){var n=o[e];i&=t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=t,!!i},_hide:function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},dispose:function(t,e){uV.node||(this._tooltipContent.hide(),yV.unregister("itemTooltip",e))}});var LV=m;LV.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),LV.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}));var DV=b,PV=dr.parsePercent;function kV(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function OV(t){return t.dim}var zV=function(t,e,i){var n=i.getWidth(),a=i.getHeight(),r={},o={},s=function(t,e){var i={};DV.each(t,(function(t,e){var n=t.getData(),a=t.coordinateSystem.getBaseAxis(),r=a.getExtent(),o="category"===a.type?a.getBandWidth():Math.abs(r[1]-r[0])/n.count(),s=i[OV(a)]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=s.stacks;i[OV(a)]=s;var h=kV(t);l[h]||s.autoWidthCount++,l[h]=l[h]||{width:0,maxWidth:0};var u=PV(t.get("barWidth"),o),c=PV(t.get("barMaxWidth"),o),d=t.get("barGap"),p=t.get("barCategoryGap");u&&!l[h].width&&(u=Math.min(s.remainedWidth,u),l[h].width=u,s.remainedWidth-=u),c&&(l[h].maxWidth=c),null!=d&&(s.gap=d),null!=p&&(s.categoryGap=p)}));var n={};return DV.each(i,(function(t,e){n[e]={};var i=t.stacks,a=t.bandWidth,r=PV(t.categoryGap,a),o=PV(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-r)/(l+(l-1)*o);h=Math.max(h,0),DV.each(i,(function(t,e){var i=t.maxWidth;i&&i=0?"p":"n",S=i.pointToCoord(M[n]),I=o[u][n][g];if("radius"===f.dim)a=I,s=S[0],c=(h=(-S[1]+d)*Math.PI/180)+p*Math.PI/180,Math.abs(s)0?C=T[1]:C===T[1]&&t<0&&(C=T[0]),o[u][n][g]=C}e.setItemLayout(n,{cx:m,cy:v,r0:a,r:s,startAngle:h,endAngle:c})}}),!0)}}),this)},EV=b,RV=gg;function NV(t,e){RV.call(this,"radius",t,e),this.type="category"}NV.prototype={constructor:NV,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:RV.prototype.dataToCoord,radiusToData:RV.prototype.coordToData},EV.inherits(NV,RV);var VV=NV,BV=b,GV=gg;function WV(t,e){e=e||[0,360],GV.call(this,"angle",t,e),this.type="category"}WV.prototype={constructor:WV,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:GV.prototype.dataToCoord,angleToData:GV.prototype.coordToData},BV.inherits(WV,GV);var HV=VV,FV=WV,ZV=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new HV,this._angleAxis=new FV,this._radiusAxis.polar=this._angleAxis.polar=this};ZV.prototype={type:"polar",axisPointerEnabled:!0,constructor:ZV,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);n.inverse?r=o-360:o=r+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;for(var l=Math.atan2(-i,e)/Math.PI*180,h=lo;)l+=360*h;return[s,l]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]}};var UV=ZV,jV=b,qV=wv,XV=Wf,YV=Zu.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});jV.merge(YV.prototype,XV);var $V={splitNumber:5};function KV(t,e){return e.type||(e.data?"category":"value")}qV("angle",YV,KV,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),qV("radius",YV,KV,$V),m.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});var JV=UV,QV=dr.parsePercent,tB=Rp,eB=tB.createScaleByModel,iB=tB.niceScaleExtent,nB=_c;function aB(t,e){var i=this,n=i.getAngleAxis(),a=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();a.scale.unionExtentFromData(e,"radius"),n.scale.unionExtentFromData(e,"angle")}})),iB(n.scale,n.model),iB(a.scale,a.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),o=360/n.scale.count();n.inverse?r[1]+=o:r[1]-=o,n.setExtent(r[0],r[1])}}function rB(t,e){if(t.type=e.get("type"),t.scale=eB(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}var oB={dimensions:JV.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var a=new JV(n);a.update=aB;var r=a.getRadiusAxis(),o=a.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");rB(r,s),rB(o,l),function(t,e,i){var n=e.get("center"),a=i.getWidth(),r=i.getHeight();t.cx=QV(n[0],a),t.cy=QV(n[1],r);var o=t.getRadiusAxis(),s=Math.min(a,r)/2,l=QV(e.get("radius"),s);o.inverse?o.setExtent(l,0):o.setExtent(0,l)}(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};nB.register("polar",oB);var sB=b,lB=Vr,hB=ru,uB=["axisLine","axisLabel","axisTick","splitLine","splitArea"];function cB(t,e,i){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],i]),a=t.coordToPoint([e[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function dB(t){return t.getRadiusAxis().inverse?0:1}Oy.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,e){if(this.group.removeAll(),t.get("show")){var i=t.axis,n=i.polar,a=n.getRadiusAxis().getExtent(),r=i.getTicksCoords();"category"!==i.type&&r.pop(),sB.each(uB,(function(e){!t.get(e+".show")||i.scale.isBlank()&&"axisLine"!==e||this["_"+e](t,n,r,a)}),this)}},_axisLine:function(t,e,i,n){var a=t.getModel("axisLine.lineStyle"),r=new lB.Circle({shape:{cx:e.cx,cy:e.cy,r:n[dB(e)]},style:a.getLineStyle(),z2:1,silent:!0});r.style.fill=null,this.group.add(r)},_axisTick:function(t,e,i,n){var a=t.getModel("axisTick"),r=(a.get("inside")?-1:1)*a.get("length"),o=n[dB(e)],s=sB.map(i,(function(t){return new lB.Line({shape:cB(e,[o,o+r],t)})}));this.group.add(lB.mergePath(s,{style:sB.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,i,n){for(var a=t.axis,r=t.get("data"),o=t.getModel("axisLabel"),s=t.getFormattedLabels(),l=o.get("margin"),h=a.getLabelsCoords(),u=0;up?"left":"right",m=Math.abs(d[1]-f)/c<.3?"middle":d[1]>f?"top":"bottom";r&&r[u]&&r[u].textStyle&&(o=new hB(r[u].textStyle,o,o.ecModel));var v=new lB.Text({silent:!0});this.group.add(v),lB.setTextStyle(v.style,o,{x:d[0],y:d[1],textFill:o.getTextColor()||t.get("axisLine.lineStyle.color"),text:s[u],textAlign:g,textVerticalAlign:m})}},_splitLine:function(t,e,i,n){var a=t.getModel("splitLine").getModel("lineStyle"),r=a.get("color"),o=0;r=r instanceof Array?r:[r];for(var s=[],l=0;lm?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:h,verticalAlign:u}}(e,i,0,s,n.get("label.margin"));_B.buildLabelElOption(t,i,n,a,d)}});var IB={line:function(t,e,i,n,a){return"angle"===t.dim?{type:"Line",shape:_B.makeLineShape(e.coordToPoint([n[0],i]),e.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:i}}},shadow:function(t,e,i,n,a){var r=t.getBandWidth(),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:_B.makeSectorShape(e.cx,e.cy,n[0],n[1],(-i-r/2)*o,(r/2-i)*o)}:{type:"Sector",shape:_B.makeSectorShape(e.cx,e.cy,i-r/2,i+r/2,0,2*Math.PI)}}};SB.registerAxisPointerClass("PolarAxisPointer",MB);var AB=m,TB=b,CB=zV;AB.registerLayout(TB.curry(CB,"bar")),AB.extendComponentView({type:"polar"});var LB=b,DB=ur,PB=Zu,kB=ru,OB=Dx,zB=jb,EB=PB.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){PB.prototype.init.apply(this,arguments),DB.defaultEmphasis(t.label,["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=zB.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=LB.reduce(t.regions||[],(function(t,i){return i.name&&t.set(i.name,new kB(i,e)),t}),LB.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:.75,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,color:"#000"},emphasis:{show:!0,color:"rgb(100,0,0)"}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new kB(null,this,this.ecModel)},getFormattedLabel:function(t,e){var i=this.getRegionModel(t).get("label."+e+".formatter"),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});LB.mixin(EB,OB);var RB=Dw;m.extendComponentView({type:"geo",init:function(t,e){var i=new RB(e,!0);this._mapDraw=i,this.group.add(i.group)},render:function(t,e,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;t.get("show")?a.draw(t,e,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=t.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});var NB=m,VB=b;function BB(t,e){e.update="updateView",NB.registerAction(e,(function(e,i){var n={};return i.eachComponent({mainType:"geo",query:e},(function(i){i[t](e.name);var a=i.coordinateSystem;VB.each(a.regions,(function(t){n[t.name]=i.isSelected(t.name)||!1}))})),{selected:n,name:e.name}}))}BB("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),BB("select",{type:"geoSelect",event:"geoselected"}),BB("unSelect",{type:"geoUnSelect",event:"geounselected"});var GB=b,WB=["rect","polygon","keep","clear"];var HB=function(t,e){var i=t&&t.brush;if(GB.isArray(i)||(i=i?[i]:[]),i.length){var n=[];GB.each(i,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var a=t&&t.toolbox;GB.isArray(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var r,o,s=a.feature||(a.feature={}),l=s.brush||(s.brush={}),h=l.type||(l.type=[]);h.push.apply(h,n),r=h,o={},GB.each(r,(function(t){o[t]=1})),r.length=0,GB.each(o,(function(t,e){r.push(e)})),e&&!h.length&&h.push.apply(h,WB)}},FB={},ZB=b,UB=cI,jB=ZB.each;function qB(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}FB.createVisualMappings=function(t,e,i){var n={};return jB(e,(function(e){var a,r=n[e]=((a=function(){}).prototype.__hidden=a.prototype,new a);jB(t[e],(function(t,n){if(UB.isValidType(n)){var a={type:n,visual:t};i&&i(a,e),r[n]=new UB(a),"opacity"===n&&((a=ZB.clone(a)).type="colorAlpha",r.__hidden.__alphaForOpacity=new UB(a))}}))})),n},FB.replaceVisualOption=function(t,e,i){var n;ZB.each(i,(function(t){e.hasOwnProperty(t)&&qB(e[t])&&(n=!0)})),n&&ZB.each(i,(function(i){e.hasOwnProperty(i)&&qB(e[i])?t[i]=ZB.clone(e[i]):delete t[i]}))},FB.applyVisual=function(t,e,i,n,a,r){var o,s={};function l(t){return i.getItemVisual(o,t)}function h(t,e){i.setItemVisual(o,t,e)}function u(t,u){o=null==r?t:u;var c=i.getRawDataItem(o);if(!c||!1!==c.visualMap)for(var d=n.call(a,t),p=e[d],f=s[d],g=0,m=f.length;g=-1e-6)return!1;var u=eG(a-t,a-o,r-e,r-s)/h;if(u<0||u>1)return!1;var c=eG(i-t,a-t,n-e,r-e)/h;return!(c<0||c>1)}function eG(t,e,i,n){return t*n-e*i}var iG=$B,nG=b,aG=Vr,rG=ur,oG=rD,sG=nG.each,lG=nG.indexOf,hG=nG.curry,uG=["dataToPoint","pointToData"],cG=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function dG(t,e,i){var n=this._targetInfoList=[],a={},r=gG(e,t);sG(mG,(function(t,e){(!i||!i.include||lG(i.include,e)>=0)&&t(r,n,a)}))}var pG=dG.prototype;function fG(t){return t[0]>t[1]&&t.reverse(),t}function gG(t,e){return rG.parseFinder(t,e,{includeMainTypes:cG})}pG.setOutputRanges=function(t,e){this.matchOutputRanges(t,e,(function(t,e,i){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=xG[t.brushType](0,i,e);t.__rangeOffset={offset:bG[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}}))},pG.matchOutputRanges=function(t,e,i){sG(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&nG.each(n.coordSyses,(function(n){var a=xG[t.brushType](1,n,t.range);i(t,a.values,n,e)}))}),this)},pG.setInputRanges=function(t,e){sG(t,(function(t){var i,n,a,r,o,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=xG[t.brushType](0,s.coordSys,t.coordRange),h=t.__rangeOffset;t.range=h?bG[t.brushType](l.values,h.offset,(i=l.xyMinMax,n=h.xyMinMax,a=SG(i),r=SG(n),o=[a[0]/r[0],a[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):l.values}}),this)},pG.makePanelOpts=function(t,e){return nG.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e&&e(i),clipPath:oG.makeRectPanelClipPath(n),isTargetByCursor:oG.makeRectIsTargetByCursor(n,t,i.coordSysModel),getLinearBrushOtherExtent:oG.makeLinearBrushOtherExtent(n)}}))},pG.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return!0===n||n&&lG(n.coordSyses,e.coordinateSystem)>=0},pG.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=gG(e,t),a=0;a=0||lG(n,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:yG.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){sG(t.geoModels,(function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:yG.geo})}))}},vG=[function(t,e){var i=t.xAxisModel,n=t.yAxisModel,a=t.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(t,e){var i=t.geoModel;return i&&i===e.geoModel}],yG={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(aG.getTransform(t)),e}},xG={lineX:hG(_G,0),lineY:hG(_G,1),rect:function(t,e,i){var n=e[uG[t]]([i[0][0],i[1][0]]),a=e[uG[t]]([i[0][1],i[1][1]]),r=[fG([n[0],a[0]]),fG([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:nG.map(i,(function(i){var a=e[uG[t]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a})),xyMinMax:n}}};function _G(t,e,i,n){var a=i.getAxis(["x","y"][t]),r=fG(nG.map([0,1],(function(t){return e?a.coordToData(a.toLocalCoord(n[t])):a.toGlobalCoord(a.dataToCoord(n[t]))}))),o=[];return o[t]=r,o[1-t]=[NaN,NaN],{values:r,xyMinMax:o}}var bG={lineX:hG(wG,0),lineY:hG(wG,1),rect:function(t,e,i){return[[t[0][0]-i[0]*e[0][0],t[0][1]-i[0]*e[0][1]],[t[1][0]-i[1]*e[1][0],t[1][1]-i[1]*e[1][1]]]},polygon:function(t,e,i){return nG.map(t,(function(t,n){return[t[0]-i[0]*e[n][0],t[1]-i[1]*e[n][1]]}))}};function wG(t,e,i,n){return[e[0]-n[t]*i[0],e[1]-n[t]*i[1]]}function SG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var MG=dG,IG=m,AG=b,TG=Je,CG=FB,LG=iG,DG=Ed,PG=MG,kG=["inBrush","outOfBrush"],OG="__ecInBrushSelectEvent",zG=IG.PRIORITY.VISUAL.BRUSH;function EG(t,e){if(!t.isDisposed()){var i=t.getZr();i[OG]=!0,t.dispatchAction({type:"brushSelect",batch:e}),i[OG]=!1}}function RG(t,e,i,n){for(var a=0,r=e.length;ae[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&BG(e)}};function BG(t){return new TG(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var GG=b,WG=FB,HG=ru,FG=["#ddd"];function ZG(t,e){return GG.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new HG(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}m.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(t,e){var i=this.option;!e&&WG.replaceVisualOption(i,t,["inBrush","outOfBrush"]),i.inBrush=i.inBrush||{},i.outOfBrush=i.outOfBrush||{color:FG}},setAreas:function(t){t&&(this.areas=GG.map(t,(function(t){return ZG(this.option,t)}),this))},setBrushOption:function(t){this.brushOption=ZG(this.option,t),this.brushType=this.brushOption.brushType}});var UG=b,jG=aD;function qG(t,e,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())}m.extendComponentView({type:"brush",init:function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new jG(e.getZr())).on("brush",UG.bind(this._onBrush,this)).mount()},render:function(t){return this.model=t,qG.apply(this,arguments)},updateView:qG,updateLayout:qG,updateVisual:qG,dispose:function(){this._brushController.dispose()},_onBrush:function(t,e){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(t,this.ecModel),(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:UG.clone(t),$from:i})}});var XG=m;XG.registerAction({type:"brush",event:"brush",update:"updateView"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),XG.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){}));var YG={},$G={};YG.register=function(t,e){$G[t]=e},YG.get=function(t){return $G[t]};var KG={toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}}},JG=b,QG=YG,tW=KG.toolbox.brush;function eW(t,e,i){this.model=t,this.ecModel=e,this.api=i,this._brushType,this._brushMode}eW.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:JG.clone(tW.title)};var iW=eW.prototype;iW.render=iW.updateView=iW.updateLayout=function(t,e,i){var n,a,r;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,a=t.brushOption.brushMode||"single",r|=t.areas.length})),this._brushType=n,this._brushMode=a,JG.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===a:"clear"===e?r:e===n)?"emphasis":"normal")}))},iW.getIcons=function(){var t=this.model,e=t.get("icon",!0),i={};return JG.each(t.get("type",!0),(function(t){e[t]&&(i[t]=e[t])})),i},iW.onclick=function(t,e,i){var n=this._brushType,a=this._brushMode;"clear"===i?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},QG.register("brush",eW),m.registerPreprocessor(HB);var nW=b,aW=wu,rW=dr,oW=_c;function sW(t,e,i){this._model=t}function lW(t,e,i,n){var a=i.calendarModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[t](n):null}sW.prototype={constructor:sW,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"}]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(t){var e=(t=rW.parseDate(t)).getFullYear(),i=t.getMonth()+1;i=i<10?"0"+i:i;var n=t.getDate();n=n<10?"0"+n:n;var a=t.getDay();return{y:e,m:i,d:n,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},getNextNDay:function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},update:function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle.normal").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,n=["width","height"],a=this._model.get("cellSize").slice(),r=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[i,7]:[7,i];nW.each([0,1],(function(t){h(a,t)&&(r[n[t]]=a[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=aW.getLayoutRect(r,s);function h(t,e){return null!=t[e]&&"auto"!==t[e]}nW.each([0,1],(function(t){h(a,t)||(a[t]=l[n[t]]/o[t])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(t,e){nW.isArray(t)&&(t=t[0]),null==e&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<=n.end.time))return[NaN,NaN];var r=i.day,o=this._getRangeInfo([n.start.time,a]).nthWeek;return"vertical"===this._orient?[this._rect.x+r*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]:[this._rect.x+o*this._sw+this._sw/2,this._rect.y+r*this._sh+this._sh/2]},pointToData:function(t){var e=this.pointToDate(t);return e&&e.time},dataToRect:function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},convertToPixel:nW.curry(lW,"dataToPoint"),convertFromPixel:nW.curry(lW,"pointToData"),_initRangeOption:function(){var t=this._model.get("range"),e=t;if(nW.isArray(e)&&1===e.length&&(e=e[0]),/^\d{4}$/.test(e)&&(t=[e+"-01-01",e+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(e)){var i=this.getDateInfo(e),n=i.date;n.setMonth(n.getMonth()+1);var a=this.getNextNDay(n,-1);t=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(e)&&(t=[e,e]);var r=this._getRangeInfo(t);return r.start.time>r.end.time&&t.reverse(),t},_getRangeInfo:function(t){var e;(t=[this.getDateInfo(t[0]),this.getDateInfo(t[1])])[0].time>t[1].time&&(e=!0,t.reverse());var i=Math.floor(t[1].time/864e5)-Math.floor(t[0].time/864e5)+1,n=new Date(t[0].time),a=n.getDate(),r=t[1].date.getDate();if(n.setDate(a+i-1),n.getDate()!==r)for(var o=n.getTime()-t[1].time>0?1:-1;n.getDate()!==r&&(n.getTime()-t[1].time)*o>0;)i-=o,n.setDate(a+i-1);var s=Math.floor((i+t[0].day+6)/7),l=e?1-s:s-1;return e&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:s,nthWeek:l,fweek:t[0].day,lweek:t[1].day}},_getDateByWeeksAndDay:function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||0===t&&en.lweek)return!1;var a=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},sW.dimensions=sW.prototype.dimensions,sW.getDimensionsInfo=sW.prototype.getDimensionsInfo,sW.create=function(t,e){var i=[];return t.eachComponent("calendar",(function(t){var e=new sW(t);i.push(e),t.coordinateSystem=e})),t.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},oW.register("calendar",sW);var hW=b,uW=Zu,cW=wu,dW=cW.getLayoutParams,pW=cW.sizeCalculable,fW=cW.mergeLayoutParam,gW=uW.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{normal:{color:"#fff",borderWidth:1,borderColor:"#ccc"}},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(t,e,i,n){var a=dW(t);gW.superApply(this,"init",arguments),mW(t,a)},mergeOption:function(t,e){gW.superApply(this,"mergeOption",arguments),mW(this.option,t)}});function mW(t,e){var i=t.cellSize;hW.isArray(i)?1===i.length&&(i[1]=i[0]):i=t.cellSize=[i,i];var n=hW.map([0,1],(function(t){return pW(e,t)&&(i[t]="auto"),null!=i[t]&&"auto"!==i[t]}));fW(t,e,{type:"box",ignoreSize:n})}var vW=b,yW=Vr,xW=cr,_W=dr,bW={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},wW={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]};m.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(t,e,i){var n=this.group;n.removeAll();var a=t.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(t,r,n),this._renderLines(t,r,o,n),this._renderYearText(t,r,o,n),this._renderMonthText(t,o,n),this._renderWeekText(t,r,o,n)},_renderDayRect:function(t,e,i){for(var n=t.coordinateSystem,a=t.getModel("itemStyle.normal").getItemStyle(),r=n.getCellWidth(),o=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,h=new yW.Rect({shape:{x:l[0],y:l[1],width:r,height:o},cursor:"default",style:a});i.add(h)}},_renderLines:function(t,e,i,n){var a=this,r=t.coordinateSystem,o=t.getModel("splitLine.lineStyle").getLineStyle(),s=t.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,u=0;h.time<=e.end.time;u++){d(h.formatedDate),0===u&&(h=r.getDateInfo(e.start.y+"-"+e.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=r.getDateInfo(c)}function d(e){a._firstDayOfMonth.push(r.getDateInfo(e)),a._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=a._getLinePointsOfOneWeek(t,e,i);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,n)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,i),o,n),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,i),o,n)},_getEdgesPoints:function(t,e,i){var n=[t[0].slice(),t[t.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-e/2,n[1][a]=n[1][a]+e/2,n},_drawSplitline:function(t,e,i){var n=new yW.Polyline({z2:20,shape:{points:t},style:e});i.add(n)},_getLinePointsOfOneWeek:function(t,e,i){var n=t.coordinateSystem;e=n.getDateInfo(e);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(e.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(t,e){return"string"==typeof t&&t?xW.formatTplSimple(t,e):"function"==typeof t?t(e):e.nameMap},_yearTextPositionControl:function(t,e,i,n,a){e=e.slice();var r=["center","bottom"];"bottom"===n?(e[1]+=a,r=["center","top"]):"left"===n?e[0]-=a:"right"===n?(e[0]+=a,r=["center","top"]):e[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:e,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(t,e,i,n){var a=t.getModel("yearLabel");if(a.get("show")){var r=a.get("margin"),o=a.get("position");o||(o="horizontal"!==i?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,u="horizontal"===i?0:1,c={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],h],right:[s[u][0],h]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=a.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new yW.Text({z2:30});yW.setTextStyle(m.style,a,{text:g}),m.attr(this._yearTextPositionControl(m,c[o],i,o,r)),n.add(m)}},_monthTextPositionControl:function(t,e,i,n,a){var r="left",o="top",s=t[0],l=t[1];return"horizontal"===i?(l+=a,e&&(r="center"),"start"===n&&(o="bottom")):(s+=a,e&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(t,e,i){var n=t.getModel("monthLabel");if(n.get("show")){var a=n.get("nameMap"),r=n.get("margin"),o=n.get("position"),s=n.get("align"),l=[this._tlpoints,this._blpoints];vW.isString(a)&&(a=bW[a.toUpperCase()]||[]);var h="start"===o?0:1,u="horizontal"===e?0:1;r="start"===o?-r:r;for(var c="center"===s,d=0;d=0},AW.createNameEach=DW,AW.eachAxisDim=PW,AW.createLinkedNodesFinder=function(t,e,i){return function(a){var r,o={nodes:[],records:{}};if(e((function(t){o.records[t.name]={}})),!a)return o;n(a,o);do{r=!1,t(s)}while(r);function s(t){!function(t,e){return TW.indexOf(e.nodes,t)>=0}(t,o)&&function(t,n){var a=!1;return e((function(e){TW.each(i(t,e)||[],(function(t){n.records[e.name][t]&&(a=!0)}))})),a}(t,o)&&(n(t,o),r=!0)}return o};function n(t,n){n.nodes.push(t),e((function(e){TW.each(i(t,e)||[],(function(t){n.records[e.name][t]=!0}))}))}};var kW=b,OW=dr,zW=AW,EW=kW.each,RW=OW.asc,NW=function(t,e,i,n){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function VW(t,e){var i=t.getAxisModel(),n=t._percentWindow,a=t._valueWindow;if(n){var r=OW.getPixelPrecision(a,[0,500]);r=Math.min(r,20);var o=e||0===n[0]&&100===n[1];i.setRange(o?null:+a[0].toFixed(r),o?null:+a[1].toFixed(r))}}NW.prototype={constructor:NW,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries((function(i){if(zW.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=e.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&t.push(i)}}),this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,i,n=this._dimName,a=this.ecModel,r=this.getAxisModel();return"x"===n||"y"===n?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle"),a.eachComponent(t+"Axis",(function(t){(t.get(e)||0)===(r.get(e)||0)&&(i=t)})),i},getMinMaxSpan:function(){return kW.clone(this._minMaxSpan)},calculateDataWindow:function(t){var e=this._dataExtent,i=this.getAxisModel().axis.scale,n=this._dataZoomModel.getRangePropMode(),a=[0,100],r=[t.start,t.end],o=[];return EW(["startValue","endValue"],(function(e){o.push(null!=t[e]?i.parse(t[e]):null)})),EW([0,1],(function(t){var s=o[t],l=r[t];"percent"===n[t]?(null==l&&(l=a[t]),s=i.parse(OW.linearMap(l,a,e,!0))):l=OW.linearMap(s,e,a,!0),o[t]=s,r[t]=l})),{valueWindow:RW(o),percentWindow:RW(r)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=function(t,e,i){var n=[1/0,-1/0];EW(i,(function(t){var i=t.getData();i&&EW(t.coordDimToDataDim(e),(function(t){var e=i.getDataExtent(t);e[0]n[1]&&(n[1]=e[1])}))})),n[1]0?0:NaN);var o=i.getMax(!0);null!=o&&"dataMax"!==o&&"function"!=typeof o?e[1]=o:a&&(e[1]=r>0?r-1:NaN);i.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0))}(t,n),n}(this,this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,function(t){var e=t._minMaxSpan={},i=t._dataZoomModel;EW(["min","max"],(function(n){e[n+"Span"]=i.get(n+"Span");var a=i.get(n+"ValueSpan");if(null!=a&&(e[n+"ValueSpan"]=a,null!=(a=t.getAxisModel().axis.scale.parse(a)))){var r=t._dataExtent;e[n+"Span"]=OW.linearMap(r[0]+a,r,[0,100],!0)}}))}(this),VW(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,VW(this,!0))},filterData:function(t){if(t===this._dataZoomModel){var e=this._dimName,i=this.getTargetSeriesModels(),n=t.get("filterMode"),a=this._valueWindow;if("none"!==n){var r=this.getOtherAxisModel();t.get("$fromToolbox")&&r&&"category"===r.get("type")&&(n="empty"),EW(i,(function(t){var i=t.getData(),r=t.coordDimToDataDim(e);"weakFilter"===n?i&&i.filterSelf((function(t){for(var e,n,o,s=0;sa[1];if(h&&!u&&!c)return!0;h&&(o=!0),u&&(e=!0),c&&(n=!0)}return o&&e&&n})):i&&EW(r,(function(e){"empty"===n?t.setData(i.map(e,(function(t){return o(t)?t:NaN}))):i.filterSelf(e,o)}))}))}}function o(t){return t>=a[0]&&t<=a[1]}}};var BW=m,GW=b,WW=_,HW=ur,FW=AW,ZW=NW,UW=GW.each,jW=FW.eachAxisDim,qW=BW.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(t,e,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=XW(t);this.mergeDefaultAndTheme(t,i),this.doInit(n)},mergeOption:function(t){var e=XW(t);GW.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;WW.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),YW(this,t),UW([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis((function(e,i,n,a){var r=this.dependentModels[e.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new ZW(e.name,i,this,a));t[e.name+"_"+i]=o}),this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();jW((function(e){var i=e.axisIndex;t[i]=HW.normalizeToArray(t[i])}),this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;jW((function(i){null!=t[i.axisIndex]&&(e=!0)}),this);var i=t.orient;return null==i&&e?"orient":e?void 0:(null==i&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),i=this.option,n=this.dependentModels;if(t){var a="vertical"===e?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],t=!1):UW(n.singleAxis,(function(n){t&&n.get("orient",!0)===e&&(i.singleAxisIndex=[n.componentIndex],t=!1)}))}t&&jW((function(e){if(t){var n=[],a=this.dependentModels[e.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r0?100:20}},getFirstTargetAxisModel:function(){var t;return jW((function(e){if(null==t){var i=this.get(e.axisIndex);i.length&&(t=this.dependentModels[e.axis][i[0]])}}),this),t},eachTargetAxis:function(t,e){var i=this.ecModel;jW((function(n){UW(this.get(n.axisIndex),(function(a){t.call(e,n,a,this,i)}),this)}),this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},getAxisModel:function(t,e){var i=this.getAxisProxy(t,e);return i&&i.getAxisModel()},setRawRange:function(t,e){var i=this.option;UW([["start","startValue"],["end","endValue"]],(function(e){null==t[e[0]]&&null==t[e[1]]||(i[e[0]]=t[e[0]],i[e[1]]=t[e[1]])}),this),!e&&YW(this,t)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var e=this._axisProxies;for(var i in e)if(e.hasOwnProperty(i)&&e[i].hostedBy(this))return e[i];for(var i in e)if(e.hasOwnProperty(i)&&!e[i].hostedBy(this))return e[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function XW(t){var e={};return UW(["start","end","startValue","endValue","throttle"],(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}function YW(t,e){var i=t._rangePropMode,n=t.get("rangeMode");UW([["start","startValue"],["end","endValue"]],(function(t,a){var r=null!=e[t[0]],o=null!=e[t[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var $W=qW,KW=Md.extend({type:"dataZoom",render:function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},getTargetCoordInfo:function(){var t=this.dataZoomModel,e=this.ecModel,i={};return t.eachTargetAxis((function(t,n){var a=e.getComponent(t.axis,n);if(a){var r=a.getCoordSysModel();r&&function(t,e,i,n){for(var a,r=0;r0&&e%f)p+=d;else{var i=null==t||isNaN(t)||""===t,n=i?0:lH(t,r,l,!0);i&&!s&&e?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!i&&s&&(u.push([p,0]),c.push([p,0])),u.push([p,n]),c.push([p,n]),p+=d,s=i}}));var g=this.dataZoomModel;this._displayables.barGroup.add(new eH.Polygon({shape:{points:u},style:QW.defaults({fill:g.get("dataBackgroundColor")},g.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new eH.Polyline({shape:{points:c},style:g.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var i,n=this.ecModel;return t.eachTargetAxis((function(a,r){var o=t.getAxisProxy(a.name,r).getTargetSeriesModels();QW.each(o,(function(t){if(!(i||!0!==e&&QW.indexOf(dH,t.get("type"))<0)){var o,s=n.getComponent(a.axis,r).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[a.name],h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(o=h.getOtherAxis(s).inverse),i={thisAxis:s,series:t,thisDim:a.name,otherDim:l,otherAxisInverse:o}}}),this)}),this),i}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],i=t.handleLabels=[],n=this._displayables.barGroup,a=this._size,r=this.dataZoomModel;n.add(t.filler=new sH({draggable:!0,cursor:fH(this._orient),drift:uH(this._onDragMove,this,"all"),onmousemove:function(t){tH.stop(t.event)},ondragstart:uH(this._showDataInfo,this,!0),ondragend:uH(this._onDragEnd,this),onmouseover:uH(this._showDataInfo,this,!0),onmouseout:uH(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new sH(eH.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}}))),cH([0,1],(function(t){var a=eH.createIcon(r.get("handleIcon"),{cursor:fH(this._orient),draggable:!0,drift:uH(this._onDragMove,this,t),onmousemove:function(t){tH.stop(t.event)},ondragend:uH(this._onDragEnd,this),onmouseover:uH(this._showDataInfo,this,!0),onmouseout:uH(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),o=a.getBoundingRect();this._handleHeight=aH.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=o.width/o.height*this._handleHeight,a.setStyle(r.getModel("handleStyle").getItemStyle());var s=r.get("handleColor");null!=s&&(a.style.fill=s),n.add(e[t]=a);var l=r.textStyleModel;this.group.add(i[t]=new eH.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:l.getTextColor(),textFont:l.getFont()},z2:10}))}),this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[lH(t[0],[0,100],e,!0),lH(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];oH(e,n,a,i.get("zoomLock")?"all":t,null!=r.minSpan?lH(r.minSpan,o,a,!0):null,null!=r.maxSpan?lH(r.maxSpan,o,a,!0):null),this._range=hH([lH(n[0],a,o,!0),lH(n[1],a,o,!0)])},_updateView:function(t){var e=this._displayables,i=this._handleEnds,n=hH(i.slice()),a=this._size;cH([0,1],(function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[t],a[1]/2-r/2]})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,r=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,l=this._range,h=t?o.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:o.getDataValueWindow();r=[this._formatLabel(h[0],s),this._formatLabel(h[1],s)]}}var u=hH(this._handleEnds.slice());function c(t){var e=eH.getTransform(i.handles[t].parent,this.group),o=eH.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=eH.applyTransform([u[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],textVerticalAlign:"horizontal"===a?"middle":o,textAlign:"horizontal"===a?o:"center",text:r[t]})}c.call(this,0),c.call(this,1)},_formatLabel:function(t,e){var i=this.dataZoomModel,n=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=e.getPixelPrecision());var r=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(a,20));return QW.isFunction(n)?n(t,r):QW.isString(n)?n.replace("{value}",r):r},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,i){this._dragging=!0;var n=this._displayables.barGroup.getLocalTransform(),a=eH.applyTransform([e,i],n,!0);this._updateInterval(t,a[0]);var r=this.dataZoomModel.get("realtime");this._updateView(!r),r&&r&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_onClickPanelClick:function(t){var e=this._size,i=this._displayables.barGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>e[0]||i[1]<0||i[1]>e[1])){var n=this._handleEnds,a=(n[0]+n[1])/2;this._updateInterval("all",i[0]-a),this._updateView(),this._dispatchZoomAction()}},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_findCoordRect:function(){var t;if(cH(this.getTargetCoordInfo(),(function(e){if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}})),!t){var e=this.api.getWidth(),i=this.api.getHeight();t={x:.2*e,y:.2*i,width:.6*e,height:.6*i}}return t}});function fH(t){return"vertical"===t?"ns-resize":"ew-resize"}$W.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,preventDefaultMouseMove:!0}});var gH={},mH=b,vH=yw,yH=Ed,xH=mH.curry,_H="\0_ec_dataZoom_roams";function bH(t){var e=t.getZr();return e[_H]||(e[_H]={})}function wH(t){mH.each(t,(function(e,i){e.count||(e.controller.dispose(),delete t[i])}))}function SH(t,e,i,n,a,r,o){IH(t,(function(s){return s.panGetRange(t.controller,e,i,n,a,r,o)}))}function MH(t,e,i,n){IH(t,(function(a){return a.zoomGetRange(t.controller,e,i,n)}))}function IH(t,e){var i=[];mH.each(t.dataZoomInfos,(function(t){var n=e(t);!t.disabled&&n&&i.push({dataZoomId:t.dataZoomId,start:n[0],end:n[1]})})),t.dispatchAction(i)}function AH(t,e){t.dispatchAction({type:"dataZoom",batch:e})}gH.register=function(t,e){var i=bH(t),n=e.dataZoomId,a=e.coordId;mH.each(i,(function(t,i){var r=t.dataZoomInfos;r[n]&&mH.indexOf(e.allCoordIds,a)<0&&(delete r[n],t.count--)})),wH(i);var r=i[a];r||((r=i[a]={coordId:a,dataZoomInfos:{},count:0}).controller=function(t,e){var i=new vH(t.getZr());return i.on("pan",xH(SH,e)),i.on("zoom",xH(MH,e)),i}(t,r),r.dispatchAction=mH.curry(AH,t)),!r.dataZoomInfos[n]&&r.count++,r.dataZoomInfos[n]=e;var o,s,l,h,u=(o=r.dataZoomInfos,l={},h={true:2,move:1,false:0,undefined:-1},mH.each(o,(function(t){var e=!t.disabled&&(!t.zoomLock||"move");h[e]>h[s]&&(s=e),mH.extend(l,t.roamControllerOpt)})),{controlType:s,opt:l});r.controller.enable(u.controlType,u.opt),r.controller.setPointerChecker(e.containsPoint),yH.createOrUpdate(r,"dispatchAction",e.throttleRate,"fixRate")},gH.unregister=function(t,e){var i=bH(t);mH.each(i,(function(t){t.controller.dispose();var i=t.dataZoomInfos;i[e]&&(delete i[e],t.count--)})),wH(i)},gH.shouldRecordRange=function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var i=0,n=t.batch.length;i0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0];n=Math.max(1/n,0),o[0]=(o[0]-h)*n+h,o[1]=(o[1]-h)*n+h;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return LH(0,o,[0,100],0,u.minSpan,u.maxSpan),this._range=o}}}),OH={grid:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(t,e,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=h[1]-h[0],o.pixelStart=h[0],o.signal=r.inverse?-1:1),o},singleAxis:function(t,e,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}};function zH(t,e,i){i.getAxisProxy(t.name,e).reset(i)}function EH(t,e,i){i.getAxisProxy(t.name,e).filterData(i)}m.registerProcessor((function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis(zH),t.eachTargetAxis(EH)})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy(),i=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setRawRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]},!0)}))}));var RH=b,NH=AW;m.registerAction("dataZoom",(function(t,e){var i=NH.createLinkedNodesFinder(RH.bind(e.eachComponent,e,"dataZoom"),NH.eachAxisDim,(function(t,e){return t.get(e.axisIndex)})),n=[];e.eachComponent({mainType:"dataZoom",query:t},(function(t,e){n.push.apply(n,i(t).nodes)})),RH.each(n,(function(e,i){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}));var VH=b,BH=VH.each;function GH(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var WH=function(t){var e=t&&t.visualMap;VH.isArray(e)||(e=e?[e]:[]),BH(e,(function(t){if(t){GH(t,"splitList")&&!GH(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&VH.isArray(e)&&BH(e,(function(t){VH.isObject(t)&&(GH(t,"start")&&!GH(t,"min")&&(t.min=t.start),GH(t,"end")&&!GH(t,"max")&&(t.max=t.end))}))}}))};Zu.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}));var HH=m,FH=b,ZH=FB,UH=cI;function jH(t,e,i,n){for(var a=e.targetVisuals[n],r=UH.prepareVisualTypes(a),o={color:t.getData().getVisual("color")},s=0,l=r.length;s"],JH.isArray(t)&&(t=t.slice(),n=!0),a=e?t:n?[h(t[0]),h(t[1])]:h(t),JH.isString(l)?l.replace("{value}",n?a[0]:a).replace("{value2}",n?a[1]:a):JH.isFunction(l)?n?l(t[0],t[1]):l(t):n?t[0]===s[0]?i[0]+" "+a[1]:t[1]===s[1]?i[1]+" "+a[0]:a[0]+" - "+a[1]:a;function h(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(o,20))}},resetExtent:function(){var t=this.option,e=hF([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var t=this.option,e={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),n=t.controller||(t.controller={});JH.merge(i,e),JH.merge(n,e);var a=this.isCategory();function r(e){sF(t.color)&&!e.inRange&&(e.inRange={color:t.color.slice().reverse()}),e.inRange=e.inRange||{color:dF},lF(this.stateList,(function(t){var i=e[t];if(JH.isString(i)){var n=tF.get(i,"active",a);n?(e[t]={},e[t][i]=n):delete e[t]}}),this)}r.call(this,i),r.call(this,n),function(t,e,i){var n=t[e],r=t[i];n&&!r&&(r=t[i]={},lF(n,(function(t,e){if(eF.isValidType(e)){var i=tF.get(e,"inactive",a);null!=i&&(r[e]=i,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,i=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor");lF(this.stateList,(function(r){var o=this.itemSize,s=t[r];s||(s=t[r]={color:a?n:[n]}),null==s.symbol&&(s.symbol=e&&JH.clone(e)||(a?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&JH.clone(i)||(a?o[0]:[o[0],o[0]])),s.symbol=rF(s.symbol,(function(t){return"none"===t||"square"===t?"roundRect":t}));var l=s.symbolSize;if(null!=l){var h=-1/0;oF(l,(function(t){t>h&&(h=t)})),s.symbolSize=rF(l,(function(t){return uF(t,[0,h],[0,o[0]],!0)}))}}),this)}.call(this,n)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:cF,getValueState:cF,getVisualMeta:cF}),fF=pF,gF=b,mF=fF,vF=dr,yF=[20,140],xF=mF.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(t,e){xF.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){xF.superApply(this,"resetItemSize",arguments);var t=this.itemSize;"horizontal"===this._orient&&t.reverse(),(null==t[0]||isNaN(t[0]))&&(t[0]=yF[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=yF[1])},_resetRange:function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):gF.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){mF.prototype.completeVisualOption.apply(this,arguments),gF.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)}),this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=vF.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=i[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){t[0]<=e&&e<=t[1]&&n.push(i)}),!0,this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getVisualMeta:function(t){var e=_F(this,"outOfRange",this.getExtent()),i=_F(this,"inRange",this.option.range.slice()),n=[];function a(e,i){n.push({value:e,color:t(e,i)})}for(var r=0,o=0,s=i.length,l=e.length;ot[1])break;i.push({color:this.getControllerVisual(r,"color",e),offset:a/100})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var i=this.visualMapModel.itemSize;return[[i[0]-e[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,i=this.visualMapModel.get("inverse");return new zF.Group("horizontal"!==e||i?"horizontal"===e&&i?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||i?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;BF([0,1],(function(o){var s=a[o];s.setStyle("fill",e.handlesColor[o]),s.position[1]=t[o];var l=zF.applyTransform(i.handleLabelPoints[o],zF.getTransform(s,this.group));r[o].setStyle({x:l[0],y:l[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(t,e,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,s=[0,o[1]],l=VF(t,r,s,!0),h=this._shapes,u=h.indicator;if(u){u.position[1]=l,u.attr("invisible",!1),u.setShape("points",function(t,e,i,n){return t?[[0,-GF(e,WF(i,0))],[6,0],[0,GF(e,WF(n-i,0))]]:[[0,0],[5,-5],[5,5]]}(!!i,n,l,o[1]));var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0});u.setStyle("fill",c);var d=zF.applyTransform(h.indicatorLabelPoint,zF.getTransform(u,this.group)),p=h.indicatorLabel;p.attr("invisible",!1);var f=this._applyTransform("left",h.barGroup),g=this._orient;p.setStyle({text:(i||"")+a.formatValueText(e),textVerticalAlign:"horizontal"===g?f:"middle",textAlign:"horizontal"===g?"center":f,x:d[0],y:d[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,n=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);n[1]=GF(WF(0,n[1]),i[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();t=GF(WF(a[0],t),a[1]);var o=function(t,e,i){var n=6,a=t.get("hoverLinkDataSize");a&&(n=VF(a,e,i,!0)/2);return n}(i,r,a),s=[t-o,t+o],l=VF(t,a,r,!0),h=[VF(s[0],a,r,!0),VF(s[1],a,r,!0)];s[0]a[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(l,h[1],"< ",o):h[1]===1/0?this._showIndicator(l,h[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var u=this._hoverLinkDataIndices,c=[];(e||ZF(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var d=NF.compressBatches(u,c);this._dispatchHighDown("downplay",RF.convertDataIndex(d[0])),this._dispatchHighDown("highlight",RF.convertDataIndex(d[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target,i=this.visualMapModel;if(e&&null!=e.dataIndex){var n=this.ecModel.getSeriesByIndex(e.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(e.dataType),r=a.getDimension(i.getDataDimension(a)),o=a.get(r,e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",RF.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,i,n){var a=zF.getTransform(e,n?null:this.group);return zF[DF.isArray(t)?"applyTransform":"transformDirection"](t,a,i)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function FF(t,e,i,n){return new zF.Polygon({shape:{points:t},draggable:!!i,cursor:e,drift:i,onmousemove:function(t){kF.stop(t.event)},ondragend:n})}function ZF(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function UF(t){return"vertical"===t?"ns-resize":"ew-resize"}m.registerAction({type:"selectDataRange",event:"dataRangeSelected",update:"update"},(function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))})),m.registerPreprocessor(WH);var jF=b,qF=fF,XF=cI,YF=$H,$F=dr.reformIntervals,KF=qF.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){KF.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();JF[this._mode].call(this),this._resetSelected(t,e);var n=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=jF.clone(n)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=jF.map(this._pieceList,(function(t){t=jF.clone(t);return"inRange"!==e&&(t.visual=null),t})))}))},completeVisualOption:function(){var t=this.option,e={},i=XF.listVisualTypes(),n=this.isCategory();function a(t,e,i){return t&&t[e]&&(jF.isObject(t[e])?t[e].hasOwnProperty(i):t[e]===i)}jF.each(t.pieces,(function(t){jF.each(i,(function(i){t.hasOwnProperty(i)&&(e[i]=1)}))})),jF.each(e,(function(e,i){var r=0;jF.each(this.stateList,(function(e){r|=a(t,e,i)||a(t.target,e,i)}),this),!r&&jF.each(this.stateList,(function(e){(t[e]||(t[e]={}))[i]=YF.get(i,"inRange"===e?"active":"inactive",n)}))}),this),qF.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var i=this.option,n=this._pieceList,a=(e?i:t).selected||{};if(i.selected=a,jF.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a.hasOwnProperty(i)||(a[i]=!0)}),this),"single"===i.selectedMode){var r=!1;jF.each(n,(function(t,e){var i=this.getSelectedMapKey(t);a[i]&&(r?a[i]=!1:r=!0)}),this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=jF.clone(t)},getValueState:function(t){var e=XF.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(e,i){XF.findPieceIndex(e,this._pieceList)===t&&n.push(i)}),!0,this),e.push({seriesId:i.id,dataIndex:n})}),this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var i=t.interval||[];e=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return e},getVisualMeta:function(t){if(!this.isCategory()){var e=[],i=[],n=this,a=this._pieceList.slice();if(a.length){var r=a[0].interval[0];r!==-1/0&&a.unshift({interval:[-1/0,r]}),(r=a[a.length-1].interval[1])!==1/0&&a.push({interval:[r,1/0]})}else a.push({interval:[-1/0,1/0]});var o=-1/0;return jF.each(a,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:i}}function s(a,r){var o=n.getRepresentValue({interval:a});r||(r=n.getValueState(o));var s=t(o,r);a[0]===-1/0?i[0]=s:a[1]===1/0?i[1]=s:e.push({value:a[0],color:s},{value:a[1],color:s})}}}),JF={splitNumber:function(){var t=this.option,e=this._pieceList,i=Math.min(t.precision,20),n=this.getExtent(),a=t.splitNumber;a=Math.max(parseInt(a,10),1),t.splitNumber=a;for(var r=(n[1]-n[0])/a;+r.toFixed(i)!==r&&i<5;)i++;t.precision=i,r=+r.toFixed(i);var o=0;t.minOpen&&e.push({index:o++,interval:[-1/0,n[0]],close:[0,0]});for(var s=n[0],l=o+a;o","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,i)}),this)}};function QF(t,e){var i=t.inverse;("vertical"===t.orient?!i:i)&&e.reverse()}var tZ=b,eZ=AF,iZ=Vr,nZ=Hf.createSymbol,aZ=wu,rZ=TF;eZ.extend({type:"visualMap.piecewise",doRender:function(){var t=this.group;t.removeAll();var e=this.visualMapModel,i=e.get("textGap"),n=e.textStyleModel,a=n.getFont(),r=n.getTextColor(),o=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),h=l.endsText,u=tZ.retrieve(e.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],s,u,o),tZ.each(l.viewPieceList,(function(n){var l=n.piece,h=new iZ.Group;h.onclick=tZ.bind(this._onItemClick,this,l),this._enableHoverLink(h,n.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(h,c,[0,0,s[0],s[1]]),u){var d=this.visualMapModel.getValueState(c);h.add(new iZ.Text({style:{x:"right"===o?-i:s[0]+i,y:s[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:o,textFont:a,textFill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(h)}),this),h&&this._renderEndsText(t,h[1],s,u,o),aZ.box(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(t,e){function i(t){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:t,batch:rZ.convertDataIndex(i.findTargetDataIndices(e))})}t.on("mouseover",tZ.bind(i,this,"highlight")).on("mouseout",tZ.bind(i,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return rZ.getItemAlign(t,this.api,t.itemSize);var i=e.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(t,e,i,n,a){if(e){var r=new iZ.Group,o=this.visualMapModel.textStyleModel;r.add(new iZ.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:e,textFont:o.getFont(),textFill:o.getTextColor()}})),t.add(r)}},_getViewData:function(){var t=this.visualMapModel,e=tZ.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),i=t.get("text"),n=t.get("orient"),a=t.get("inverse");return("horizontal"===n?a:!a)?e.reverse():i&&(i=i.slice().reverse()),{viewPieceList:e,endsText:i}},_createItemSymbol:function(t,e,i){t.add(nZ(this.getControllerVisual(e,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,i=e.option,n=tZ.clone(i.selected),a=e.getSelectedMapKey(t);"single"===i.selectedMode?(n[a]=!0,tZ.each(n,(function(t,e){n[e]=e===a}))):n[a]=!n[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})}}),m.registerPreprocessor(WH);var oZ=m,sZ=b,lZ=_,hZ=ur,uZ=cr,cZ=uZ.addCommas,dZ=uZ.encodeHTML;function pZ(t){hZ.defaultEmphasis(t.label,["show"])}var fZ=oZ.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,i,n){this.mergeDefaultAndTheme(t,i),this.mergeOption(t,i,n.createdBySelf,!0)},isAnimationEnabled:function(){if(lZ.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,i,n){var a=this.constructor,r=this.mainType+"Model";i||e.eachSeries((function(t){var i=t.get(this.mainType),o=t[r];i&&i.data?(o?o.mergeOption(i,e,!0):(n&&pZ(i),sZ.each(i.data,(function(t){t instanceof Array?(pZ(t[0]),pZ(t[1])):pZ(t)})),o=new a(i,this,e),sZ.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),t[r]=o):t[r]=null}),this)},formatTooltip:function(t){var e=this.getData(),i=this.getRawValue(t),n=sZ.isArray(i)?sZ.map(i,cZ).join(", "):cZ(i),a=e.getName(t),r=dZ(this.name);return(null!=i||a)&&(r+="
"),a&&(r+=dZ(a),null!=i&&(r+=" : ")),null!=i&&(r+=dZ(n)),r},getData:function(){return this._data},setData:function(t){this._data=t}});sZ.mixin(fZ,hZ.dataFormatMixin);var gZ=fZ;gZ.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}});var mZ={},vZ=b,yZ=dr,xZ=vZ.indexOf;function _Z(t,e,i,n,a,r){var o=[],s=MZ(e,n,t),l=e.indicesOfNearest(n,s,!0)[0];o[a]=e.get(i,l,!0),o[r]=e.get(n,l,!0);var h=function(t,e,i){var n=-1;do{n=Math.max(yZ.getPrecision(t.get(e,i)),n),t=t.stackedOn}while(t);return n}(e,n,l);return(h=Math.min(h,20))>=0&&(o[r]=+o[r].toFixed(h)),o}var bZ=vZ.curry,wZ={min:bZ(_Z,"min"),max:bZ(_Z,"max"),average:bZ(_Z,"average")};function SZ(t,e,i,n){var a={};return null!=t.valueIndex||null!=t.valueDim?(a.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=i.getAxis(n.dataDimToCoordDim(a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0]):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=n.coordDimToDataDim(a.baseAxis.dim)[0],a.valueDataDim=n.coordDimToDataDim(a.valueAxis.dim)[0]),a}function MZ(t,e,i){if("average"===i){var n=0,a=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,a++)}),!0),n/a}return t.getDataExtent(e,!0)["max"===i?1:0]}mZ.dataTransform=function(t,e){var i=t.getData(),n=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!vZ.isArray(e.coord)&&n){var a=n.dimensions,r=SZ(e,i,n,t);if((e=vZ.clone(e)).type&&wZ[e.type]&&r.baseAxis&&r.valueAxis){var o=xZ(a,r.baseAxis.dim),s=xZ(a,r.valueAxis.dim);e.coord=wZ[e.type](i,r.baseDataDim,r.valueDataDim,o,s),e.value=e.coord[s]}else{for(var l=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],h=0;h<2;h++)if(wZ[l[h]]){var u=t.coordDimToDataDim(a[h])[0];l[h]=MZ(i,u,l[h])}e.coord=l}}return e},mZ.getAxisInfo=SZ,mZ.dataFilter=function(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)},mZ.dimValueGetter=function(t,e,i,n){return n<2?t.coord&&t.coord[n]:t.value},mZ.numCalculate=MZ;var IZ=b,AZ=m.extendComponentView({type:"marker",init:function(){this.markerGroupMap=IZ.createHashMap()},render:function(t,e,i){var n=this.markerGroupMap;n.each((function(t){t.__keep=!1}));var a=this.type+"Model";e.eachSeries((function(t){var n=t[a];n&&this.renderSeries(t,n,e,i)}),this),n.each((function(t){!t.__keep&&this.group.remove(t.group)}),this)},renderSeries:function(){}}),TZ=b,CZ=pm,LZ=dr,DZ=dp,PZ=mZ;function kZ(t,e,i){var n=e.coordinateSystem;t.each((function(a){var r,o=t.getItemModel(a),s=LZ.parsePercent(o.get("x"),i.getWidth()),l=LZ.parsePercent(o.get("y"),i.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)r=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(n){var h=t.get(n.dimensions[0],a),u=t.get(n.dimensions[1],a);r=n.dataToPoint([h,u])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),t.setItemLayout(a,r)}))}AZ.extend({type:"markPoint",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markPointModel;e&&(kZ(e.getData(),t,i),this.markerGroupMap.get(t.id).updateLayout(e))}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new CZ),h=function(t,e,i){var n;n=t?TZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})):[{name:"value",type:"float"}];var a=new DZ(n,i),r=TZ.map(i.get("data"),TZ.curry(PZ.dataTransform,e));t&&(r=TZ.filter(r,TZ.curry(PZ.dataFilter,t)));return a.initData(r,null,t?PZ.dimValueGetter:function(t){return t.value}),a}(a,t,e);e.setData(h),kZ(e.getData(),t,n),h.each((function(t){var i=h.getItemModel(t),n=i.getShallow("symbolSize");"function"==typeof n&&(n=n(e.getRawValue(t),e.getDataParams(t))),h.setItemVisual(t,{symbolSize:n,color:i.get("itemStyle.normal.color")||o.getVisual("color"),symbol:i.getShallow("symbol")})})),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl((function(t){t.traverse((function(t){t.dataModel=e}))})),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markPoint=t.markPoint||{}})),gZ.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"end"},emphasis:{show:!0}},lineStyle:{normal:{type:"dashed"},emphasis:{width:3}},animationEasing:"linear"}});var OZ=b,zZ=dp,EZ=dr,RZ=mZ,NZ=BA,VZ=function(t,e,i,n){var a=t.getData(),r=n.type;if(!OZ.isArray(n)&&("min"===r||"max"===r||"average"===r||null!=n.xAxis||null!=n.yAxis)){var o,s;if(null!=n.yAxis||null!=n.xAxis)o=null!=n.yAxis?"y":"x",e.getAxis(o),s=OZ.retrieve(n.yAxis,n.xAxis);else{var l=RZ.getAxisInfo(n,a,e,t);o=l.valueDataDim,l.valueAxis,s=RZ.numCalculate(a,o,r)}var h="x"===o?0:1,u=1-h,c=OZ.clone(n),d={};c.type=null,c.coord=[],d.coord=[],c.coord[u]=-1/0,d.coord[u]=1/0;var p=i.get("precision");p>=0&&"number"==typeof s&&(s=+s.toFixed(Math.min(p,20))),c.coord[h]=d.coord[h]=s,n=[c,d,{type:r,valueIndex:n.valueIndex,value:s}]}return(n=[RZ.dataTransform(t,n[0]),RZ.dataTransform(t,n[1]),OZ.extend({},n[2])])[2].type=n[2].type||"",OZ.merge(n[2],n[0]),OZ.merge(n[2],n[1]),n};function BZ(t){return!isNaN(t)&&!isFinite(t)}function GZ(t,e,i,n){var a=1-t,r=n.dimensions[t];return BZ(e[a])&&BZ(i[a])&&e[t]===i[t]&&n.getAxis(r).containData(e[t])}function WZ(t,e){if("cartesian2d"===t.type){var i=e[0].coord,n=e[1].coord;if(i&&n&&(GZ(1,i,n,t)||GZ(0,i,n,t)))return!0}return RZ.dataFilter(t,e[0])&&RZ.dataFilter(t,e[1])}function HZ(t,e,i,n,a){var r,o=n.coordinateSystem,s=t.getItemModel(e),l=EZ.parsePercent(s.get("x"),a.getWidth()),h=EZ.parsePercent(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var u=o.dimensions,c=t.get(u[0],e),d=t.get(u[1],e);r=o.dataToPoint([c,d])}if("cartesian2d"===o.type){var p=o.getAxis("x"),f=o.getAxis("y");u=o.dimensions;BZ(t.get(u[0],e))?r[0]=p.toGlobalCoord(p.getExtent()[i?0:1]):BZ(t.get(u[1],e))&&(r[1]=f.toGlobalCoord(f.getExtent()[i?0:1]))}isNaN(l)||(r[0]=l),isNaN(h)||(r[1]=h)}else r=[l,h];t.setItemLayout(e,r)}AZ.extend({type:"markLine",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markLineModel;if(e){var n=e.getData(),a=e.__from,r=e.__to;a.each((function(e){HZ(a,e,!0,t,i),HZ(r,e,!1,t,i)})),n.each((function(t){n.setItemLayout(t,[a.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new NZ);this.group.add(l.group);var h=function(t,e,i){var n;n=t?OZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})):[{name:"value",type:"float"}];var a=new zZ(n,i),r=new zZ(n,i),o=new zZ([],i),s=OZ.map(i.get("data"),OZ.curry(VZ,e,t,i));t&&(s=OZ.filter(s,OZ.curry(WZ,t)));var l=t?RZ.dimValueGetter:function(t){return t.value};return a.initData(OZ.map(s,(function(t){return t[0]})),null,l),r.initData(OZ.map(s,(function(t){return t[1]})),null,l),o.initData(OZ.map(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:a,to:r,line:o}}(a,t,e),u=h.from,c=h.to,d=h.line;e.__from=u,e.__to=c,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize");function g(e,i,a){var r=e.getItemModel(i);HZ(e,i,a,t,n),e.setItemVisual(i,{symbolSize:r.get("symbolSize")||f[a?0:1],symbol:r.get("symbol",!0)||p[a?0:1],color:r.get("itemStyle.normal.color")||o.getVisual("color")})}OZ.isArray(p)||(p=[p,p]),"number"==typeof f&&(f=[f,f]),h.from.each((function(t){g(u,t,!0),g(c,t,!1)})),d.each((function(t){var e=d.getItemModel(t).get("lineStyle.normal.color");d.setItemVisual(t,{color:e||u.getItemVisual(t,"color")}),d.setItemLayout(t,[u.getItemLayout(t),c.getItemLayout(t)]),d.setItemVisual(t,{fromSymbolSize:u.getItemVisual(t,"symbolSize"),fromSymbol:u.getItemVisual(t,"symbol"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.getItemVisual(t,"symbol")})})),l.updateData(d),h.line.eachItemGraphicEl((function(t,i){t.traverse((function(t){t.dataModel=e}))})),l.__keep=!0,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markLine=t.markLine||{}})),gZ.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{normal:{show:!0,position:"top"},emphasis:{show:!0,position:"top"}},itemStyle:{normal:{borderWidth:0}}}});var FZ=b,ZZ=Pt,UZ=dp,jZ=dr,qZ=Vr,XZ=mZ,YZ=function(t,e,i,n){var a=XZ.dataTransform(t,n[0]),r=XZ.dataTransform(t,n[1]),o=FZ.retrieve,s=a.coord,l=r.coord;s[0]=o(s[0],-1/0),s[1]=o(s[1],-1/0),l[0]=o(l[0],1/0),l[1]=o(l[1],1/0);var h=FZ.mergeAll([{},a,r]);return h.coord=[a.coord,r.coord],h.x0=a.x,h.y0=a.y,h.x1=r.x,h.y1=r.y,h};function $Z(t){return!isNaN(t)&&!isFinite(t)}function KZ(t,e,i,n){var a=1-t;return $Z(e[a])&&$Z(i[a])}function JZ(t,e){var i=e.coord[0],n=e.coord[1];return!("cartesian2d"!==t.type||!i||!n||!KZ(1,i,n)&&!KZ(0,i,n))||(XZ.dataFilter(t,{coord:i,x:e.x0,y:e.y0})||XZ.dataFilter(t,{coord:n,x:e.x1,y:e.y1}))}function QZ(t,e,i,n,a){var r,o=n.coordinateSystem,s=t.getItemModel(e),l=jZ.parsePercent(s.get(i[0]),a.getWidth()),h=jZ.parsePercent(s.get(i[1]),a.getHeight());if(isNaN(l)||isNaN(h)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(i,e));else{var u=t.get(i[0],e),c=t.get(i[1],e);r=o.dataToPoint([u,c],!0)}if("cartesian2d"===o.type){var d=o.getAxis("x"),p=o.getAxis("y");u=t.get(i[0],e),c=t.get(i[1],e);$Z(u)?r[0]=d.toGlobalCoord(d.getExtent()["x0"===i[0]?0:1]):$Z(c)&&(r[1]=p.toGlobalCoord(p.getExtent()["y0"===i[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(h)||(r[1]=h)}else r=[l,h];return r}var tU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];AZ.extend({type:"markArea",updateLayout:function(t,e,i){e.eachSeries((function(t){var e=t.markAreaModel;if(e){var n=e.getData();n.each((function(e){var a=FZ.map(tU,(function(a){return QZ(n,e,a,t,i)}));n.setItemLayout(e,a),n.getItemGraphicEl(e).setShape("points",a)}))}}),this)},renderSeries:function(t,e,i,n){var a=t.coordinateSystem,r=t.name,o=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new qZ.Group});this.group.add(l.group),l.__keep=!0;var h=function(t,e,i){var n,a,r=["x0","y0","x1","y1"];t?(n=FZ.map(t&&t.dimensions,(function(t){var i=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return i.name=t,i})),a=new UZ(FZ.map(r,(function(t,e){return{name:t,type:n[e%2].type}})),i)):a=new UZ(n=[{name:"value",type:"float"}],i);var o=FZ.map(i.get("data"),FZ.curry(YZ,e,t,i));t&&(o=FZ.filter(o,FZ.curry(JZ,t)));var s=t?function(t,e,i,n){return t.coord[Math.floor(n/2)][n%2]}:function(t){return t.value};return a.initData(o,null,s),a.hasItemOption=!0,a}(a,t,e);e.setData(h),h.each((function(e){h.setItemLayout(e,FZ.map(tU,(function(i){return QZ(h,e,i,t,n)}))),h.setItemVisual(e,{color:o.getVisual("color")})})),h.diff(l.__data).add((function(t){var e=new qZ.Polygon({shape:{points:h.getItemLayout(t)}});h.setItemGraphicEl(t,e),l.group.add(e)})).update((function(t,i){var n=l.__data.getItemGraphicEl(i);qZ.updateProps(n,{shape:{points:h.getItemLayout(t)}},e,t),l.group.add(n),h.setItemGraphicEl(t,n)})).remove((function(t){var e=l.__data.getItemGraphicEl(t);l.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,i){var n=h.getItemModel(i),a=n.getModel("label.normal"),r=n.getModel("label.emphasis"),o=h.getItemVisual(i,"color");t.useStyle(FZ.defaults(n.getModel("itemStyle.normal").getItemStyle(),{fill:ZZ.modifyAlpha(o,.4),stroke:o})),t.hoverStyle=n.getModel("itemStyle.emphasis").getItemStyle(),qZ.setLabelStyle(t.style,t.hoverStyle,a,r,{labelFetcher:e,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:o}),qZ.setHoverStyle(t,{}),t.dataModel=e})),l.__data=h,l.group.silent=e.get("silent")||t.get("silent")}}),m.registerPreprocessor((function(t){t.markArea=t.markArea||{}}));var eU=b;function iU(t){var e=t.itemStyle||(t.itemStyle={}),i=e.emphasis||(e.emphasis={}),n=t.label||t.label||{},a=n.normal||(n.normal={}),r={normal:1,emphasis:1};eU.each(n,(function(t,e){r[e]||nU(a,e)||(a[e]=t)})),i.label&&!nU(n,"emphasis")&&(n.emphasis=i.label,delete i.label)}function nU(t,e){return t.hasOwnProperty(e)}var aU=function(t){var e=t&&t.timeline;eU.isArray(e)||(e=e?[e]:[]),eU.each(e,(function(t){t&&function(t){var e=t.type,i={number:"value",time:"time"};i[e]&&(t.axisType=i[e],delete t.type);if(iU(t),nU(t,"controlPosition")){var n=t.controlStyle||(t.controlStyle={});nU(n,"position")||(n.position=t.controlPosition),"none"!==n.position||nU(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition}eU.each(t.data||[],(function(t){eU.isObject(t)&&!eU.isArray(t)&&(!nU(t,"value")&&nU(t,"name")&&(t.value=t.name),iU(t))}))}(t)}))};Zu.registerSubTypeDefaulter("timeline",(function(){return"slider"}));var rU=m,oU=b;rU.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),e.resetOption("timeline"),oU.defaults({currentIndex:i.option.currentIndex},t)})),rU.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var i=e.getComponent("timeline");i&&null!=t.playState&&i.setPlayState(t.playState)}));var sU=b,lU=dp,hU=ur,uU=Zu.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{color:"#000"},emphasis:{}},data:[]},init:function(t,e,i){this._data,this._names,this.mergeDefaultAndTheme(t,i),this._initData()},mergeOption:function(t){uU.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],i=t.axisType,n=this._names=[];if("category"===i){var a=[];sU.each(e,(function(t,e){var i,r=hU.getDataItemValue(t);sU.isObject(t)?(i=sU.clone(t)).value=e:i=e,a.push(i),sU.isString(r)||null!=r&&!isNaN(r)||(r=""),n.push(r+"")})),e=a}var r={category:"ordinal",time:"time"}[i]||"number";(this._data=new lU([{name:"value",type:r}],this)).initData(e,n)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),cU=b,dU=ur,pU=uU.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",normal:{show:!0,interval:"auto",rotate:0,color:"#304654"},emphasis:{show:!0,color:"#c23531"}},itemStyle:{normal:{color:"#304654",borderWidth:1},emphasis:{color:"#c23531"}},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",normal:{color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});cU.mixin(pU,dU.dataFormatMixin);var fU=Md.extend({type:"timeline"}),gU=b,mU=gg,vU=Rp,yU=function(t,e,i,n){mU.call(this,t,e,i),this.type=n||"value",this._autoLabelInterval,this.model=null};yU.prototype={constructor:yU,getLabelInterval:function(){var t,e=this.model,i=e.getModel("label.normal");return null!=(t=i.get("interval"))&&"auto"!=t||(t=this._autoLabelInterval)||(t=this._autoLabelInterval=vU.getAxisLabelInterval(gU.map(this.scale.getTicks(),this.dataToCoord,this),vU.getFormattedLabels(this,i.get("formatter")),i.getFont(),"horizontal"===e.get("orient")?0:90,i.get("rotate"))),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}}},gU.inherits(yU,mU);var xU=b,_U=Je,bU=mt,wU=Vr,SU=wu,MU=fU,IU=yU,AU=Hf.createSymbol,TU=Rp,CU=dr,LU=cr.encodeHTML,DU=xU.bind,PU=xU.each,kU=Math.PI;function OU(t,e,i,n,a,r){var o=e.get("color");if(a)a.setColor(o),i.add(a),r&&r.onUpdate(a);else{var s=t.get("symbol");(a=AU(s,-1,-1,2,2,o)).setStyle("strokeNoScale",!0),i.add(a),r&&r.onCreate(a)}var l=e.getItemStyle(["color","symbol","symbolSize"]);a.setStyle(l),n=xU.merge({rectHover:!0,z2:100},n,!0);var h=t.get("symbolSize");(h=h instanceof Array?h.slice():[+h,+h])[0]/=2,h[1]/=2,n.scale=h;var u=t.get("symbolOffset");if(u){var c=n.position=n.position||[0,0];c[0]+=CU.parsePercent(u[0],h[0]),c[1]+=CU.parsePercent(u[1],h[1])}var d=t.get("symbolRotate");return n.rotation=(d||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function zU(t,e,i,n,a){if(!t.dragging){var r=n.getModel("checkpointStyle"),o=i.dataToCoord(n.getData().get(["value"],e));a||!r.get("animation",!0)?t.attr({position:[o,0]}):(t.stopAnimation(!0),t.animateTo({position:[o,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}MU.extend({type:"timeline.slider",init:function(t,e){this.api=e,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(t,e,i,n){if(this.model=t,this.api=i,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,t);t.formatTooltip=function(t){return LU(s.scale.getLabel(t))},PU(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](a,r,s,t)}),this),this._renderAxisLabel(a,o,s,t),this._position(a,t)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(t,e){var i=t.get("label.normal.position"),n=t.get("orient"),a=function(t,e){return SU.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2=0||"+"===i?"left":"right"},u={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:kU/2},d="vertical"===n?a.height:a.width,p=t.getModel("controlStyle"),f=(y=p.get("show"))?p.get("itemSize"):0,g=y?p.get("itemGap"):0,m=f+g,v=t.get("label.normal.rotate")||0;v=v*kU/180;var y,x=p.get("position",!0),_=(y=p.get("show",!0))&&p.get("showPlayBtn",!0),b=y&&p.get("showPrevBtn",!0),w=y&&p.get("showNextBtn",!0),S=0,M=d;return"left"===x||"bottom"===x?(_&&(r=[0,0],S+=m),b&&(o=[S,0],S+=m),w&&(s=[M-f,0],M-=m)):(_&&(r=[M-f,0],M-=m),b&&(o=[0,0],S+=m),w&&(s=[M-f,0],M-=m)),l=[S,M],t.get("inverse")&&l.reverse(),{viewRect:a,mainLength:d,orient:n,rotation:c[n],labelRotation:v,labelPosOpt:i,labelAlign:t.get("label.normal.align")||h[n],labelBaseline:t.get("label.normal.verticalAlign")||t.get("label.normal.baseline")||u[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:f,controlGap:g}},_position:function(t,e){var i=this._mainGroup,n=this._labelGroup,a=t.viewRect;if("vertical"===t.orient){var r=bU.create(),o=a.x,s=a.y+a.height;bU.translate(r,r,[-o,-s]),bU.rotate(r,r,-kU/2),bU.translate(r,r,[o,s]),(a=a.clone()).applyTransform(r)}var l=m(a),h=m(i.getBoundingRect()),u=m(n.getBoundingRect()),c=i.position,d=n.position;d[0]=c[0]=l[0][0];var p,f=t.labelPosOpt;isNaN(f)?(v(c,h,l,1,p="+"===f?0:1),v(d,u,l,1,1-p)):(v(c,h,l,1,p=f>=0?0:1),d[1]=c[1]+f);function g(t){var e=t.position;t.origin=[l[0][0]-e[0],l[1][0]-e[1]]}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,i,n,a){t[n]+=i[n][a]-e[n][a]}i.attr("position",c),n.attr("position",d),i.rotation=n.rotation=t.rotation,g(i),g(n)},_createAxis:function(t,e){var i=e.getData(),n=e.get("axisType"),a=TU.createScaleByModel(e,n),r=i.getDataExtent("value");a.setExtent(r[0],r[1]),this._customizeScale(a,i),a.niceTicks();var o=new IU("value",a,t.axisExtent,n);return o.model=e,o},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],(function(t){return t}))},t.getTicksLabels=function(){return xU.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new wU.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,i,n){var a=i.getExtent();n.get("lineStyle.show")&&e.add(new wU.Line({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:xU.extend({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,i,n){var a=n.getData(),r=i.scale.getTicks();PU(r,(function(t,r){var o=i.dataToCoord(t),s=a.getItemModel(r),l=s.getModel("itemStyle.normal"),h=s.getModel("itemStyle.emphasis"),u={position:[o,0],onclick:DU(this._changeTimeline,this,r)},c=OU(s,l,e,u);wU.setHoverStyle(c,h.getItemStyle()),s.get("tooltip")?(c.dataIndex=r,c.dataModel=n):c.dataIndex=c.dataModel=null}),this)},_renderAxisLabel:function(t,e,i,n){var a=n.getModel("label.normal");if(a.get("show")){var r=n.getData(),o=i.scale.getTicks(),s=TU.getFormattedLabels(i,a.get("formatter")),l=i.getLabelInterval();PU(o,(function(n,a){if(!i.isLabelIgnored(a,l)){var o=r.getItemModel(a),h=o.getModel("label.normal"),u=o.getModel("label.emphasis"),c=i.dataToCoord(n),d=new wU.Text({position:[c,0],rotation:t.labelRotation-t.rotation,onclick:DU(this._changeTimeline,this,a),silent:!1});wU.setTextStyle(d.style,h,{text:s[a],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline}),e.add(d),wU.setHoverStyle(d,wU.setTextStyle({},u))}}),this)}},_renderControl:function(t,e,i,n){var a=t.controlSize,r=t.rotation,o=n.getModel("controlStyle.normal").getItemStyle(),s=n.getModel("controlStyle.emphasis").getItemStyle(),l=[0,-a/2,a,a],h=n.getPlayState(),u=n.get("inverse",!0);function c(t,i,h,u){if(t){var c=function(t,e,i,n){return wU.makePath(t.get(e).replace(/^path:\/\//,""),xU.clone(n||{}),new _U(i[0],i[1],i[2],i[3]),"center")}(n,i,l,{position:t,origin:[a/2,0],rotation:u?-r:0,rectHover:!0,style:o,onclick:h});e.add(c),wU.setHoverStyle(c,s)}}c(t.nextBtnPosition,"controlStyle.nextIcon",DU(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"controlStyle.prevIcon",DU(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,"controlStyle."+(h?"stopIcon":"playIcon"),DU(this._handlePlayClick,this,!h),!0)},_renderCurrentPointer:function(t,e,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=DU(s._handlePointerDrag,s),t.ondragend=DU(s._handlePointerDragend,s),zU(t,r,i,n,!0)},onUpdate:function(t){zU(t,r,i,n)}};this._currentPointer=OU(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var i=this._toAxisCoord(t)[0],n=this._axis,a=CU.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),ii.getHeight()&&(n.textPosition="top",l=!0);var h=l?-5-o.height:r+8;s+o.width/2>i.getWidth()?(n.textPosition=["100%",h],n.textAlign="right"):s-o.width/2<0&&(n.textPosition=[0,h],n.textAlign="left")}}))}function h(h,u){var c,d=l[h],p=l[u],f=o[d],g=new HU(f,t,t.ecModel);if(d&&!p){if(function(t){return 0===t.indexOf("my")}(d))c={model:g,onclick:g.option.onclick,featureName:d};else{var m=GU.get(d);if(!m)return;c=new m(g,e,i)}s[d]=c}else{if(!(c=s[p]))return;c.model=g,c.ecModel=e,c.api=i}d||!p?g.get("show")&&!c.unusable?(!function(n,o,s){var l=n.getModel("iconStyle"),h=o.getIcons?o.getIcons():n.get("icon"),u=n.get("title")||{};if("string"==typeof h){var c=h,d=u;u={},(h={})[s]=c,u[s]=d}var p=n.iconPaths={};VU.each(h,(function(s,h){var c=WU.createIcon(s,{},{x:-r/2,y:-r/2,width:r,height:r});c.setStyle(l.getModel("normal").getItemStyle()),c.hoverStyle=l.getModel("emphasis").getItemStyle(),WU.setHoverStyle(c),t.get("showTitle")&&(c.__title=u[h],c.on("mouseover",(function(){var t=l.getModel("emphasis").getItemStyle();c.setStyle({text:u[h],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})})).on("mouseout",(function(){c.setStyle({textFill:null})}))),c.trigger(n.get("iconStatus."+h)||"normal"),a.add(c),c.on("click",VU.bind(o.onclick,o,e,i,h)),p[h]=c}))}(g,c,d),g.setIconStatus=function(t,e){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[t]=e,n[t]&&n[t].trigger(e)},c.render&&c.render(g,e,i,n)):c.remove&&c.remove(e,i):c.dispose&&c.dispose(e,i)}},updateView:function(t,e,i,n){VU.each(this._features,(function(t){t.updateView&&t.updateView(t.model,e,i,n)}))},updateLayout:function(t,e,i,n){VU.each(this._features,(function(t){t.updateLayout&&t.updateLayout(t.model,e,i,n)}))},remove:function(t,e){VU.each(this._features,(function(i){i.remove&&i.remove(t,e)})),this.group.removeAll()},dispose:function(t,e){VU.each(this._features,(function(i){i.dispose&&i.dispose(t,e)}))}});var UU=_,jU=YG,qU=KG.toolbox.saveAsImage;function XU(t){this.model=t}XU.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:qU.title,type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:qU.lang.slice()},XU.prototype.unusable=!UU.canvasSupported,XU.prototype.onclick=function(t,e){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",a=document.createElement("a"),r=i.get("type",!0)||"png";a.download=n+"."+r,a.target="_blank";var o=e.getConnectedDataURL({type:r,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(a.href=o,"function"!=typeof MouseEvent||UU.browser.ie||UU.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var s=atob(o.split(",")[1]),l=s.length,h=new Uint8Array(l);l--;)h[l]=s.charCodeAt(l);var u=new Blob([h]);window.navigator.msSaveOrOpenBlob(u,n+"."+r)}else{var c=i.get("lang"),d='';window.open().document.write(d)}else{var p=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});a.dispatchEvent(p)}},jU.register("saveAsImage",XU);var YU=m,$U=b,KU=YG,JU=KG.toolbox.magicType;function QU(t){this.model=t}QU.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:$U.clone(JU.title),option:{},seriesIndex:{}};var tj=QU.prototype;tj.getIcons=function(){var t=this.model,e=t.get("icon"),i={};return $U.each(t.get("type"),(function(t){e[t]&&(i[t]=e[t])})),i};var ej={line:function(t,e,i,n){if("bar"===t)return $U.merge({id:e,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(t,e,i,n){if("line"===t)return $U.merge({id:e,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(t,e,i,n){if("line"===t||"bar"===t)return $U.merge({id:e,stack:"__ec_magicType_stack__"},n.get("option.stack")||{},!0)},tiled:function(t,e,i,n){if("line"===t||"bar"===t)return $U.merge({id:e,stack:""},n.get("option.tiled")||{},!0)}},ij=[["line","bar"],["stack","tiled"]];tj.onclick=function(t,e,i){var n=this.model,a=n.get("seriesIndex."+i);if(ej[i]){var r={series:[]};$U.each(ij,(function(t){$U.indexOf(t,i)>=0&&$U.each(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:null==a?null:{seriesIndex:a}},(function(e){var a=e.subType,o=e.id,s=ej[i](a,o,e,n);s&&($U.defaults(s,e.option),r.series.push(s));var l=e.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var h=l.getAxesByScale("ordinal")[0];if(h){var u=h.dim+"Axis",c=t.queryComponents({mainType:u,index:e.get(name+"Index"),id:e.get(name+"Id")})[0].componentIndex;r[u]=r[u]||[];for(var d=0;d<=c;d++)r[u][c]=r[u][c]||{};r[u][c].boundaryGap="bar"===i}}})),e.dispatchAction({type:"changeMagicType",currentType:i,newOption:r})}},YU.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)})),KU.register("magicType",QU);var nj=m,aj=b,rj=fa,oj=YG,sj=KG.toolbox.dataView,lj=new Array(60).join("-");function hj(t){return aj.map(t,(function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,a=arguments[t-1],r=e.getName(a),o=0;o=0)return!0}(t)){var a=function(t){for(var e=t.split(/\n+/g),i=uj(e.shift()).split(cj),n=[],a=aj.map(i,(function(t){return{name:t,data:[]}})),r=0;r=0;a--){if(i[a][n])break}if(a<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var o=r.getPercentRange();i[0][n]={dataZoomId:n,start:o[0],end:o[1]}}}})),i.push(e)},gj.pop=function(t){var e=yj(t),i=e[e.length-1];e.length>1&&e.pop();var n={};return mj(i,(function(t,i){for(var a=e.length-1;a>=0;a--){if(t=e[a][i]){n[i]=t;break}}})),n},gj.clear=function(t){t[vj]=null},gj.count=function(t){return yj(t).length},$W.extend({type:"dataZoom.select"}),JW.extend({type:"dataZoom.select"});var xj=m,_j=b,bj=aD,wj=MG,Sj=gj,Mj=RC,Ij=YG,Aj=KG.toolbox.dataZoom,Tj=_j.each;function Cj(t,e,i){(this._brushController=new bj(i.getZr())).on("brush",_j.bind(this._onBrush,this)).mount(),this._isZoomActive}Cj.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:_j.clone(Aj.title)};var Lj=Cj.prototype;Lj.render=function(t,e,i,n){this.model=t,this.ecModel=e,this.api=i,function(t,e,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive);i._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var o=new wj(Pj(t.option),e,{include:["grid"]});i._brushController.setPanels(o.makePanelOpts(a,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}(t,e,this,n,i),function(t,e){t.setIconStatus("back",Sj.count(e)>1?"emphasis":"normal")}(t,e)},Lj.onclick=function(t,e,i){Dj[i].call(this)},Lj.remove=function(t,e){this._brushController.unmount()},Lj.dispose=function(t,e){this._brushController.dispose()};var Dj={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(Sj.pop(this.ecModel))}};function Pj(t){var e={};return _j.each(["xAxisIndex","yAxisIndex"],(function(i){e[i]=t[i],null==e[i]&&(e[i]="all"),(!1===e[i]||"none"===e[i])&&(e[i]=[])})),e}Lj._onBrush=function(t,e){if(e.isEnd&&t.length){var i={},n=this.ecModel;this._brushController.updateCovers([]),new wj(Pj(this.model.option),n,{include:["grid"]}).matchOutputRanges(t,n,(function(t,e,i){if("cartesian2d"===i.type){var n=t.brushType;"rect"===n?(a("x",i,e[0]),a("y",i,e[1])):a({lineX:"x",lineY:"y"}[n],i,e)}})),Sj.push(n,i),this._dispatchZoomAction(i)}function a(t,e,a){var r=e.getAxis(t),o=r.model,s=function(t,e,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){i.getAxisModel(t,e.componentIndex)&&(n=i)})),n}(t,o,n),l=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(a=Mj(0,a.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}},Lj._dispatchZoomAction=function(t){var e=[];Tj(t,(function(t,i){e.push(_j.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},Ij.register("dataZoom",Cj),xj.registerPreprocessor((function(t){if(t){var e=t.dataZoom||(t.dataZoom=[]);_j.isArray(e)||(t.dataZoom=e=[e]);var i=t.toolbox;if(i&&(_j.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;a("xAxis",n),a("yAxis",n)}}function a(i,n){if(n){var a=i+"Index",r=n[a];null==r||"all"==r||_j.isArray(r)||(r=!1===r||"none"===r?[]:[r]),function(e,i){var n=t[e];_j.isArray(n)||(n=n?[n]:[]);Tj(n,i)}(i,(function(t,n){if(null==r||"all"==r||-1!==_j.indexOf(r,n)){var o={type:"select",$fromToolbox:!0,id:"\0_ec_\0toolbox-dataZoom_"+i+n};o[a]=n,e.push(o)}}))}}}));var kj=m,Oj=gj,zj=YG,Ej=KG.toolbox.restore;function Rj(t){this.model=t}Rj.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:Ej.title},Rj.prototype.onclick=function(t,e,i){Oj.clear(t),e.dispatchAction({type:"restore",from:this.uid})},zj.register("restore",Rj),kj.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var Nj,Vj={},Bj=_,Gj="urn:schemas-microsoft-com:vml",Wj="undefined"==typeof window?null:window,Hj=!1,Fj=Wj&&Wj.document;if(Fj&&!Bj.canvasSupported)try{!Fj.namespaces.zrvml&&Fj.namespaces.add("zrvml",Gj),Nj=function(t){return Fj.createElement("')}}catch(PY){Nj=function(t){return Fj.createElement("<"+t+' xmlns="'+Gj+'" class="zrvml">')}}Vj.doc=Fj,Vj.createNode=function(t){return Nj(t)},Vj.initVML=function(){if(!Hj&&Fj){Hj=!0;var t=Fj.styleSheets;t.length<31?Fj.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};var Zj=_,Uj=U.applyTransform,jj=Je,qj=Pt,Xj=Ni,Yj=Ri,$j=Gn,Kj=jn,Jj=Jn,Qj=Hs,tq=ms,eq=Oo,iq=Rl,nq=Vj,aq=eq.CMD,rq=Math.round,oq=Math.sqrt,sq=Math.abs,lq=Math.cos,hq=Math.sin,uq=Math.max;if(!Zj.canvasSupported){var cq=21600,dq=cq/2,pq=function(t){t.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",t.coordsize=cq+","+cq,t.coordorigin="0,0"},fq=function(t,e,i){return"rgb("+[t,e,i].join(",")+")"},gq=function(t,e){e&&t&&e.parentNode!==t&&t.appendChild(e)},mq=function(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)},vq=function(t,e,i){return 1e5*(parseFloat(t)||0)+1e3*(parseFloat(e)||0)+i},yq=function(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t},xq=function(t,e,i){var n=qj.parse(e);i=+i,isNaN(i)&&(i=1),n&&(t.color=fq(n[0],n[1],n[2]),t.opacity=i*n[3])},_q=function(t){var e=qj.parse(t);return[fq(e[0],e[1],e[2]),e[3]]},bq=function(t,e,i,n){var a="fill"==e,r=t.getElementsByTagName(e)[0];null!=i[e]&&"none"!==i[e]&&(a||!a&&i.lineWidth)?(t[a?"filled":"stroked"]="true",i[e]instanceof iq&&mq(t,r),r||(r=nq.createNode(e)),a?function(t,e,i){var n=e.fill;if(null!=n)if(n instanceof iq){var a,r=0,o=[0,0],s=0,l=1,h=i.getBoundingRect(),u=h.width,c=h.height;if("linear"===n.type){a="gradient";var d=i.transform,p=[n.x*u,n.y*c],f=[n.x2*u,n.y2*c];d&&(Uj(p,p,d),Uj(f,f,d));var g=f[0]-p[0],m=f[1]-p[1];(r=180*Math.atan2(g,m)/Math.PI)<0&&(r+=360),r<1e-6&&(r=0)}else{a="gradientradial",p=[n.x*u,n.y*c],d=i.transform;var v=i.scale,y=u,x=c;o=[(p[0]-h.x)/y,(p[1]-h.y)/x],d&&Uj(p,p,d),y/=v[0]*cq,x/=v[1]*cq;var _=uq(y,x);s=0/_,l=2*n.r/_-s}var b=n.colorStops.slice();b.sort((function(t,e){return t.offset-e.offset}));for(var w=b.length,S=[],M=[],I=0;I=2){var C=S[0][0],L=S[1][0],D=S[0][1]*e.opacity,P=S[1][1]*e.opacity;t.type=a,t.method="none",t.focus="100%",t.angle=r,t.color=C,t.color2=L,t.colors=M.join(","),t.opacity=P,t.opacity2=D}"radial"===a&&(t.focusposition=o.join(","))}else xq(t,n,e.opacity)}(r,i,n):function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof iq||xq(t,e.stroke,e.opacity)}(r,i),gq(t,r)):(t[a?"filled":"stroked"]="false",mq(t,r))},wq=[[],[],[]];tq.prototype.brushVML=function(t){var e=this.style,i=this._vmlEl;i||(i=nq.createNode("shape"),pq(i),this._vmlEl=i),bq(i,"fill",e,this),bq(i,"stroke",e,this);var n=this.transform,a=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var o=e.lineWidth;if(a&&!e.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=oq(sq(s))}r.weight=o+"px"}var l=this.path||(this.path=new eq);this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=function(t,e){var i,n,a,r,o,s,l=aq.M,h=aq.C,u=aq.L,c=aq.A,d=aq.Q,p=[],f=t.data,g=t.len();for(r=0;r.01?O&&(z+=270/cq):Math.abs(E-C)<1e-4?O&&zT?x-=270/cq:x+=270/cq:O&&EC?y+=270/cq:y-=270/cq),p.push(R,rq(((T-L)*M+w)*cq-dq),",",rq(((C-D)*I+S)*cq-dq),",",rq(((T+L)*M+w)*cq-dq),",",rq(((C+D)*I+S)*cq-dq),",",rq((z*M+w)*cq-dq),",",rq((E*I+S)*cq-dq),",",rq((y*M+w)*cq-dq),",",rq((x*I+S)*cq-dq)),o=y,s=x;break;case aq.R:var N=wq[0],V=wq[1];N[0]=f[r++],N[1]=f[r++],V[0]=N[0]+f[r++],V[1]=N[1]+f[r++],e&&(Uj(N,N,e),Uj(V,V,e)),N[0]=rq(N[0]*cq-dq),V[0]=rq(V[0]*cq-dq),N[1]=rq(N[1]*cq-dq),V[1]=rq(V[1]*cq-dq),p.push(" m ",N[0],",",N[1]," l ",V[0],",",N[1]," l ",V[0],",",V[1]," l ",N[0],",",V[1]);break;case aq.Z:p.push(" x ")}if(i>0){p.push(n);for(var B=0;B100&&(Iq=0,Mq={});var i,n=Aq.style;try{n.font=t,i=n.fontFamily.split(",")[0]}catch(PY){}e={style:n.fontStyle||"normal",variant:n.fontVariant||"normal",weight:n.fontWeight||"normal",size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},Mq[t]=e,Iq++}return e}(a.font),m=g.style+" "+g.variant+" "+g.weight+" "+g.size+'px "'+g.family+'"';i=i||Xj.getBoundingRect(r,m,p,f);var v=this.transform;if(v&&!n&&(Tq.copy(e),Tq.applyTransform(v),e=Tq),n)c=e.x,d=e.y;else{var y=a.textPosition,x=a.textDistance;if(y instanceof Array)c=e.x+yq(y[0],e.width),d=e.y+yq(y[1],e.height),p=p||"left";else{var _=Xj.adjustTextPositionOnRect(y,e,x);c=_.x,d=_.y,p=p||_.textAlign,f=f||_.textVerticalAlign}}c=Xj.adjustTextX(c,i.width,p),d=Xj.adjustTextY(d,i.height,f),d+=i.height/2;var b,w,S,M=nq.createNode,I=this._textVmlEl;I?w=(b=(S=I.firstChild).nextSibling).nextSibling:(I=M("line"),b=M("path"),w=M("textpath"),S=M("skew"),w.style["v-text-align"]="left",pq(I),b.textpathok=!0,w.on=!0,I.from="0 0",I.to="1000 0.05",gq(I,S),gq(I,b),gq(I,w),this._textVmlEl=I);var A=[c,d],T=I.style;v&&n?(Uj(A,A,v),S.on=!0,S.matrix=v[0].toFixed(3)+","+v[2].toFixed(3)+","+v[1].toFixed(3)+","+v[3].toFixed(3)+",0,0",S.offset=(rq(A[0])||0)+","+(rq(A[1])||0),S.origin="0 0",T.left="0px",T.top="0px"):(S.on=!1,T.left=rq(c)+"px",T.top=rq(d)+"px"),w.string=String(r).replace(/&/g,"&").replace(/"/g,""");try{w.style.font=m}catch(PY){}bq(I,"fill",{fill:a.textFill,opacity:a.opacity},this),bq(I,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash},this),I.style.zIndex=vq(this.zlevel,this.z,this.z2),gq(t,I)}},Lq=function(t){mq(t,this._textVmlEl),this._textVmlEl=null},Dq=function(t){gq(t,this._textVmlEl)},Pq=[$j,Kj,Jj,tq,Qj],kq=0;kq-1e-4}function aX(t,e){e&&rX(t,"transform","matrix("+Xq.call(e,",")+")")}function rX(t,e,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&t.setAttribute(e,i)}function oX(t,e,i){if(function(t,e){var i=e?t.textFill:t.fill;return null!=i&&i!==Yq}(e,i)){var n=i?e.textFill:e.fill;n="transparent"===n?Yq:n,"none"!==t.getAttribute("clip-path")&&n===Yq&&(n="rgba(0, 0, 0, 0.002)"),rX(t,"fill",n),rX(t,"fill-opacity",e.opacity)}else rX(t,"fill",Yq);if(function(t,e){var i=e?t.textStroke:t.stroke;return null!=i&&i!==Yq}(e,i)){var a=i?e.textStroke:e.stroke;rX(t,"stroke",a="transparent"===a?Yq:a),rX(t,"stroke-width",(i?e.textStrokeWidth:e.lineWidth)/(e.strokeNoScale?e.host.getLineScale():1)),rX(t,"paint-order","stroke"),rX(t,"stroke-opacity",e.opacity),e.lineDash?(rX(t,"stroke-dasharray",e.lineDash.join(",")),rX(t,"stroke-dashoffset",$q(e.lineDashOffset||0))):rX(t,"stroke-dasharray",""),e.lineCap&&rX(t,"stroke-linecap",e.lineCap),e.lineJoin&&rX(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&rX(t,"stroke-miterlimit",e.miterLimit)}else rX(t,"stroke",Yq)}var sX={};sX.brush=function(t){var e=t.style,i=t.__svgEl;i||(i=Hq("path"),t.__svgEl=i),t.path||t.createPathProxy();var n=t.path;if(t.__dirtyPath){n.beginPath(),t.buildPath(n,t.shape),t.__dirtyPath=!1;var a=function(t){for(var e=[],i=t.data,n=t.len(),a=0;a=tX||!nX(g)&&(d>-Qq&&d<0||d>Qq)==!!f;var y=iX(s+h*Jq(c)),x=iX(l+u*Kq(c));m&&(d=f?tX-1e-4:1e-4-tX,v=!0,9===a&&e.push("M",y,x));var _=iX(s+h*Jq(c+d)),b=iX(l+u*Kq(c+d));e.push("A",iX(h),iX(u),$q(p*eX),+v,+f,_,b);break;case qq.Z:r="Z";break;case qq.R:_=iX(i[a++]),b=iX(i[a++]);var w=iX(i[a++]),S=iX(i[a++]);e.push("M",_,b,"L",_+w,b,"L",_+w,b+S,"L",_,b+S,"L",_,b)}r&&e.push(r);for(var M=0;M=a&&h+1>=r){for(var u=[],c=0;c=a&&c+1>=r)return fX(n,s.components);l[i]=s}else l[i]=void 0}var f;o++}for(;o<=s;){var p=d();if(p)return p}},pushComponent:function(t,e,i){var n=t[t.length-1];n&&n.added===e&&n.removed===i?t[t.length-1]={count:n.count+1,added:e,removed:i}:t.push({count:1,added:e,removed:i})},extractCommon:function(t,e,i,n){for(var a=e.length,r=i.length,o=t.newPos,s=o-n,l=0;o+1=0;--n)if(e[n]===t)return!0;return!1}),i):null:i[0]},AX.prototype.update=function(t,e){if(t){var i=this.getDefs(!1);if(t._dom&&i.contains(t._dom))"function"==typeof e&&e();else{var n=this.add(t);n&&(t._dom=n)}}},AX.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},AX.prototype.removeDom=function(t){this.getDefs(!1).removeChild(t._dom)},AX.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return yX.each(this._tagNames,(function(i){var n=t.getElementsByTagName(i);e=e.concat([].slice.call(n))})),e},AX.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;yX.each(t,(function(t){t[e._markLabel]="0"}))},AX.prototype.markUsed=function(t){t&&(t[this._markLabel]="1")},AX.prototype.removeUnused=function(){var t=this.getDefs(!1);if(t){var e=this.getDoms(),i=this;yX.each(e,(function(e){"1"!==e[i._markLabel]&&t.removeChild(e)}))}},AX.prototype.getSvgProxy=function(t){return t instanceof xX?SX:t instanceof _X?MX:t instanceof bX?IX:SX},AX.prototype.getTextSvgElement=function(t){return t.__textSvgEl},AX.prototype.getSvgElement=function(t){return t.__svgEl};var TX=AX,CX=TX,LX=b,DX=Ae;function PX(t){CX.call(this,t,["linearGradient","radialGradient"],"__gradient_in_use__")}LX.inherits(PX,CX),PX.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var i=this;LX.each(["fill","stroke"],(function(n){if(e.style[n]&&("linear"===e.style[n].type||"radial"===e.style[n].type)){var a,r=e.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(e);var s=a.getAttribute("id");t.setAttribute(n,"url(#"+s+")")}}))}},PX.prototype.add=function(t){var e;if("linear"===t.type)e=this.createElement("linearGradient");else{if("radial"!==t.type)return DX("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},PX.prototype.update=function(t){var e=this;CX.prototype.update.call(this,t,(function(){var i=t.type,n=t._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?e.updateDom(t,t._dom):(e.removeDom(t),e.add(t))}))},PX.prototype.updateDom=function(t,e){if("linear"===t.type)e.setAttribute("x1",t.x),e.setAttribute("y1",t.y),e.setAttribute("x2",t.x2),e.setAttribute("y2",t.y2);else{if("radial"!==t.type)return void DX("Illegal gradient type.");e.setAttribute("cx",t.x),e.setAttribute("cy",t.y),e.setAttribute("r",t.r)}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var i=t.colorStops,n=0,a=i.length;n0){var n,a,r=this.getDefs(!0),o=e[0],s=i?"_textDom":"_dom";o[s]?(a=o[s].getAttribute("id"),n=o[s],r.contains(n)||r.appendChild(n)):(a="zr-clip-"+this.nextId,++this.nextId,(n=this.createElement("clipPath")).setAttribute("id",a),r.appendChild(n),o[s]=n);var l=this.getSvgProxy(o);if(o.transform&&o.parent.invTransform&&!i){var h=Array.prototype.slice.call(o.transform);EX.mul(o.transform,o.parent.invTransform,o.transform),l.brush(o),o.transform=h}else l.brush(o);var u=this.getSvgElement(o);n.appendChild(u.cloneNode()),t.setAttribute("clip-path","url(#"+a+")"),e.length>1&&this.updateDom(n,e.slice(1),i)}else t&&t.setAttribute("clip-path","none")},RX.prototype.markUsed=function(t){var e=this;t.__clipPaths&&t.__clipPaths.length>0&&zX.each(t.__clipPaths,(function(t){t._dom&&OX.prototype.markUsed.call(e,t._dom),t._textDom&&OX.prototype.markUsed.call(e,t._textDom)}))};var NX=RX,VX=Wq.createElement,BX=b,GX=BX.each,WX=Ae,HX=ms,FX=Jn,ZX=Hs,UX=mX,jX=kX,qX=NX,XX=Gq,YX=XX.path,$X=XX.image,KX=XX.text;function JX(t){return parseInt(t,10)}function QX(t,e){return e&&t&&e.parentNode!==t}function tY(t,e,i){if(QX(t,e)&&i){var n=i.nextSibling;n?t.insertBefore(e,n):t.appendChild(e)}}function eY(t,e){if(QX(t,e)){var i=t.firstChild;i?t.insertBefore(e,i):t.appendChild(e)}}function iY(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function nY(t){return t.__textSvgEl}function aY(t){return t.__svgEl}var rY=function(t,e,i){this.root=t,this.storage=e,this._opts=i=BX.extend({},i||{});var n=VX("svg");n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style["user-select"]="none",n.style.cssText="position:absolute;left:0;top:0;",this.gradientManager=new jX(n),this.clipPathManager=new qX(n);var a=document.createElement("div");a.style.cssText="overflow:hidden;position:relative",this._svgRoot=n,this._viewport=a,t.appendChild(a),a.appendChild(n),this.resize(i.width,i.height),this._visibleList=[]};rY.prototype={constructor:rY,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getViewportRootOffset:function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},refresh:function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},_paintList:function(t){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused();var e,i,n=this._svgRoot,a=this._visibleList,r=t.length,o=[];for(e=0;e=0;--n)if(i[n]===t)return!0;return!1}),e):null:e[0]},resize:function(t,e){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=t&&(n.width=t),null!=e&&(n.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t&&this._height!==e){this._width=t,this._height=e;var a=i.style;a.width=t+"px",a.height=e+"px";var r=this._svgRoot;r.setAttribute("width",t),r.setAttribute("height",e)}},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(t){var e=this._opts,i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||JX(s[i])||JX(o.style[i]))-(JX(s[a])||0)-(JX(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},pathToSvg:function(){this.refresh();var t=this._svgRoot.outerHTML;return"data:img/svg+xml;utf-8,"+unescape(t)}},GX(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(t){var e;rY.prototype[t]=(e=t,function(){WX('In SVG mode painter not support method "'+e+'"')})}));var oY=rY;(0,v.registerPainter)("svg",oY),function(t){var e=m;!function(){for(var i in e){if(null==e||!e.hasOwnProperty(i)||"default"===i||"__esModule"===i)return;t[i]=e[i]}}();var i=Ud;!function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}}()}(g);const sY={class:"market-temperature"},lY={class:"container"},hY={class:"border3"},uY={class:"chart-section"},cY={class:"border4"},dY={class:"border1"},pY={class:"title"},fY=["src"],gY={class:"titleContent"},mY={class:"secondTitle"},vY={class:"secondTitleItem"},yY={class:"calendar"},xY={key:0,class:"month"},_Y={class:"monthContent"},bY={class:"calendarItemTitle"},wY={key:1,class:"calendarItemContent"},SY=["src"],MY={key:2,class:"calendarItemContent"},IY={key:3,class:"calendarItemContent"},AY={key:0},TY={key:1},CY={__name:"marketTemperature",props:{companyName:{type:String,default:""},stockCode:{type:String,default:""}},setup(t,{expose:e}){const m=t,v=i(["#32A3FF","#2BD977","#A239FF","#FF7945","#FF5289","#5791CB"]),y=i(["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]),x=i(),_=i(["周一","周二","周三","周四","周五","周六","周日"]),b=i(),w=i([]),S=i([]);let M=null;const I=["NDX","DJIA","SPX","STI","KLSE","TSX","N225","KS11","JKSE","1A0001","HSI","I63","VNINDE"],A=n((()=>I.includes(m.stockCode))),T=i([]);function C(){const t=document.querySelector(".border4 .el-table");if(t){const e=t.offsetWidth/7,i=Math.min(.15*e,20),n=document.querySelectorAll(".WDRL_date"),a=document.querySelectorAll(".WDRL_data");n.forEach((t=>{t.style.fontSize=`${i}px`})),a.forEach((t=>{t.style.fontSize=.8*i+"px"}))}}return a((()=>{M&&(M.dispose(),M=null),window.marketTempResizeHandler&&(window.removeEventListener("resize",window.marketTempResizeHandler),window.marketTempResizeHandler=null),window.marketTempContainerObserver&&(window.marketTempContainerObserver.disconnect(),window.marketTempContainerObserver=null)})),e({initChart:function(t,e,n){if(!t||!e||!n)return void console.error("initChart: raw, klineDataRawValue or WDRLValue is undefined");console.log(m),M&&(M.dispose(),M=null);const a=e.map((t=>[t[1],t[2],t[3],t[4]]));let r=1/0,o=-1/0;e.forEach((t=>{const e=t[3],i=t[4];r=Math.min(r,e),o=Math.max(o,i)}));const s=Math.floor(r),l=Math.ceil(o);w.value=n,S.value=e,(()=>{const t=i([]);T.value=JSON.parse(JSON.stringify(w.value));for(let i=0;it[0])),u=t.map((t=>Math.round(t[1]))),c=t.map((t=>Math.round(t[2]))),d=c.every(((t,e)=>t===u[e])),p=d?c.map((()=>null)):c;M=g.init(b.value),M.setOption({tooltip:{trigger:"axis",confine:!0,position:function(t,e,i,n,a){const r=a.viewSize[0],o=a.viewSize[1],s=a.contentSize[0],l=a.contentSize[1];if(window.innerWidth<=768)return{top:10,left:Math.max(10,(r-s)/2)};{let e=t[0],i=t[1];return e+s>r&&(e=r-s-10),i+l>o&&(i=o-l-10),[Math.max(10,e),Math.max(10,i)]}},axisPointer:{type:"cross",crossStyle:{color:"#999",width:1,type:"dashed"},lineStyle:{color:"#999",width:1,type:"dashed"}},backgroundColor:"#646E71",borderColor:"#fff",borderWidth:1,padding:[8,12],textStyle:{color:"#fff",fontSize:window.innerWidth<=768?10:12},extraCssText:window.innerWidth<=768?"max-width: 280px; word-wrap: break-word; white-space: normal; box-shadow: 0 2px 8px rgba(0,0,0,0.3);":"max-width: 350px; word-wrap: break-word; white-space: normal; box-shadow: 0 2px 8px rgba(0,0,0,0.3);",formatter:function(t){if(t&&t.length>0){const e=window.innerWidth<=768,i=e?"10px":"12px",n=e?"1.3":"1.5",a=e?"4px":"6px";let r=`
日期: ${t[0].name}
`;return t.forEach((t=>{if("candlestick"===t.seriesType){const o=t.data[1],s=t.data[2],l=t.data[3],h=t.data[4];e?(r+=`
`,r+=`
${t.seriesName}
`,r+=`
开盘价:${o}
`,r+=`
收盘价:${s}
`,r+=`
最低价:${l}
`,r+=`
最高价:${h}
`,r+="
"):(r+=`
`,r+=`
${t.seriesName}
`,r+=`
开盘价: ${o}
`,r+=`
收盘价: ${s}
`,r+=`
最低价: ${l}
`,r+=`
最高价: ${h}
`,r+="
")}else"line"===t.seriesType&&(r+=`
${t.seriesName}: ${t.value}
`)})),r}return""}},legend:{data:["K线","股票温度","市场温度"],textStyle:{color:"white",fontSize:window.innerWidth<=768?14:18}},grid:{left:window.innerWidth<=768?"15%":"100px",right:window.innerWidth<=768?"40px":"100px",top:window.innerWidth<=768?"40px":"60px",bottom:window.innerWidth<=768?"60px":"80px",containLabel:!1,height:window.innerWidth<=768?"200px":"300px",width:window.innerWidth<=768?"70%":"80%"},xAxis:{type:"category",data:h,axisLine:{lineStyle:{color:"#00BFFF"}},axisLabel:{color:"#FFFFFF",fontSize:12,fontWeight:"bold"},axisTick:{show:!0,alignWithLabel:!0,lineStyle:{color:"white",width:1,type:"dashed"}},axisPointer:{show:!0,type:"line",lineStyle:{color:"#999",width:1,type:"dashed"},label:{show:!0,color:"black"}},splitLine:{show:!1,lineStyle:{color:"#999",width:1,type:"dashed",opacity:.3}}},yAxis:[{min:s,max:l,axisLine:{lineStyle:{color:"#00FF7F"}},axisLabel:{color:"#FFFFFF",fontSize:window.innerWidth<=768?10:12,fontWeight:"bold",formatter:function(t){return t.toString()},margin:8},axisTick:{lineStyle:{color:"#00FF7F"}},splitLine:{show:!1,lineStyle:{color:"#333333",type:"solid",opacity:.3}},axisPointer:{show:!0,type:"line",label:{show:!0,color:"black"},lineStyle:{color:"#999",width:1,type:"dashed"}}},{min:0,max:100,position:"right",axisLabel:{color:"#FFFF00",fontSize:window.innerWidth<=768?10:12,fontWeight:"bold",margin:8},axisLine:{lineStyle:{color:"#FF1493",width:2}},axisTick:{lineStyle:{color:"#FF1493"}},splitLine:{show:!1,lineStyle:{color:"#444444",type:"solid",opacity:.3}},axisPointer:{show:!0,type:"line",lineStyle:{color:"#999",width:1,type:"dashed"},label:{show:!0,color:"black"}}}],color:["#f00","white"],series:[{name:"K线",type:"candlestick",data:a,z:1,itemStyle:{normal:{color:"#00FF00",color0:"#FF0000",borderColor:"#00FF00",borderColor0:"#FF0000"}}},{name:"股票温度",type:"line",yAxisIndex:1,data:p,z:2,connectNulls:!1,lineStyle:{width:2},symbol:"circle",symbolSize:4},{name:"市场温度",type:"line",yAxisIndex:1,data:u,z:3,lineStyle:{width:2},symbol:"circle",symbolSize:4}],dataZoom:[{type:"slider",xAxisIndex:0,filterMode:"filter",textStyle:{color:"white"},start:50,end:100,bottom:"0%"},{type:"inside",xAxisIndex:0,filterMode:"filter"}]}),M&&(M.on("dataZoom",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mousewheel",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mousedown",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})),M.on("mouseup",(()=>{window.handleChartInteractionEnd&&window.handleChartInteractionEnd()})),M.on("click",(()=>{window.handleChartInteractionStart&&window.handleChartInteractionStart()})));const y=(t,e)=>{let i;return function(...n){clearTimeout(i),i=setTimeout((()=>{clearTimeout(i),t(...n)}),e)}},_=y((()=>{if(M&&!M.isDisposed())try{M.resize(),C(),console.log("股市温度计图表已重新调整大小")}catch(t){console.error("股市温度计图表resize失败:",t)}}),100);window.marketTempResizeHandler&&window.removeEventListener("resize",window.marketTempResizeHandler),window.addEventListener("resize",_),window.marketTempResizeHandler=_;const I=document.querySelector(".KlineClass");if(I&&window.ResizeObserver){const t=new ResizeObserver(y((()=>{if(M&&!M.isDisposed())try{M.resize(),console.log("股市温度计容器大小变化,图表已调整")}catch(t){console.error("股市温度计容器resize失败:",t)}}),100));t.observe(I),window.marketTempContainerObserver=t}C()}}),(t,e)=>(r(),o("div",sY,[s("div",lY,[s("div",hY,[s("section",uY,[s("div",null,[l('
\r\n {{ companyName }}\r\n {{ stockCode }}\r\n
'),s("div",{ref_key:"KlineCanvs",ref:b,class:"KlineClass"},null,512)])])]),s("div",cY,[s("div",dY,[s("div",pY,[s("img",{src:h("/aixiaocaishen/static/images/标题-d851a441.png"),alt:"标题",class:"titleImg"},null,8,fY),s("div",gY,u(x.value),1)]),s("div",mY,[(r(!0),o(c,null,d(_.value,(t=>(r(),o("div",{key:t,class:"secondTitleItems"},[s("div",vY,u(t),1)])))),128))]),s("div",yY,[(r(),o(c,null,d(5,(t=>s("div",{key:t,class:"calendarCol"},[(r(!0),o(c,null,d(T.value.slice(7*(t-1),7*t),(t=>(r(),o("div",{key:t,class:"calendarRow"},[s("div",{class:"calendarItem",style:p({backgroundColor:t.color})},[t.month?(r(),o("div",xY,[s("div",_Y,u(y.value[t.month-1]),1)])):l("v-if",!0),s("div",bY,u(t.day),1),""==t.stock_temperature?(r(),o("div",wY,[s("img",{src:h("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAgCAYAAACcuBHKAAAAAXNSR0IArs4c6QAAAj5JREFUWEftl7FrFEEUxr93im/mbjEolkpQQdRCJHaCCgrxHzBYphJsRAKKgq2FhQGxsFY7UVtBE0GxtbEQBEEjKkEQDIi3M4e7n6zkjs3e3d7c7QkWN+XOe9/+eG/eezOCIZf3fj/JcwBOAZgGYACsisirNE3vW2ufDykJCXUgqd77RQDnAWwq8VtKkmS+0WishmoHQawDPAFwMlD4K8lj1tqPIfZBEM65WwAuhgjmbN6q6oyItAb5DYRwzu0F8A7A5pzYZxG52mq1lqMo8nEcH6zVagsA5go/vGyMuVkZwnt/jeT1nNAaycPW2k9FcefcbQAXct/fG2P2VYZwzj0EcCYntGiMudRLmOSU9/4bAG3vq+o2EVkrAwlJxwsAJ9oiIjKnqo/6iTrnXgM40t4nudtau1IV4iWA4zmR08aYZyUQWZ/oVBHJPYOqJCQSRYhZY8xSCcTyeiP7azKByJ2J6ukgWS+06VhEfvdLRw/7XyKSjnQwSW4BUBtU40PsexFhL/uugxnH8bSIPAYwA4QPuACYHyQXrLX3irZdEN77uyTnA0RHMWmp6g4R+Zl37oJwzm1oTqP8qTT/IgdUNZtFnTWB6IyCYugm6WhHZBKJSST+1+p4CmB23J2yrZem6a56vf5lUMe8AeDKP4L4YIzJnhAbVlfbbjabO0XkjYhsHzMIReSsqma393KIbNd7f4jkHQBHxzTOV7LHkqo+CLpP5I1Ibo3jeKpKRJIkcVEUfe93ocm0B962qwCE+v4BZnoUMEqdbwsAAAAASUVORK5CYII="),alt:"锁定",class:"ciImg"},null,8,SY)])):"休市"==t.stock_temperature?(r(),o("div",MY," 休市 ")):(r(),o("div",IY,[A.value?(r(),o("div",AY,u(t.market_temperature),1)):(r(),o("div",TY,u(t.market_temperature)+" | "+u(t.stock_temperature),1))]))],4)])))),128))]))),64))])]),l(' \r\n \r\n \r\n\r\n ')])])]))}};var LY=e(CY,[["__scopeId","data-v-5d79aa79"],["__file","C:/Users/Administrator/Desktop/AIxiaocaishen/src/views/components/marketTemperature.vue"]]),DY=Object.freeze(Object.defineProperty({__proto__:null,default:LY},Symbol.toStringTag,{value:"Module"}));export{DY as a,g as e,LY as m}; diff --git a/dev/static/js/userPessionCode-376974ca.js b/dev/static/js/userPessionCode-33b4794f.js similarity index 67% rename from dev/static/js/userPessionCode-376974ca.js rename to dev/static/js/userPessionCode-33b4794f.js index 60bfb25..b19889b 100644 --- a/dev/static/js/userPessionCode-376974ca.js +++ b/dev/static/js/userPessionCode-33b4794f.js @@ -1 +1 @@ -import{g as a,r as e,o as t,p as r}from"./index-4cb6f38c.js";const s=a("user",(()=>{const a=e(0),s=e(0),l=e(0),o=e(0),i=e(0),u=e(0),n=e([]),c=e(0),d=e(""),v=e(!1),p=e(!1),S=e(""),g=async()=>{S.value=localStorage.getItem("localToken")?String(localStorage.getItem("localToken")):"",v.value=!0;try{const e={token:S.value||""},t=await r(e);a.value=t.data.brainExpireStatus,s.value=t.data.swordExpireStatus,l.value=t.data.stockForecastExpireStatus,o.value=t.data.spaceForecastExpireStatus,i.value=t.data.aibullExpireStatus,u.value=t.data.aigoldBullExpireStatus,c.value=t.data.airadarExpireStatus,n.value=t.data.marketList,d.value=t.data.userRole,p.value=!0}catch(e){console.error("Error fetching user data:",e)}finally{v.value=!1}};return t((()=>{})),{brainPerssion:a,swordPerssion:s,pricePerssion:l,timePerssion:o,aibullPerssion:i,aiGnbullPerssion:u,airadarPerssion:c,aiGoldMarketList:n,userRole:d,loading:v,isReady:p,init:()=>{p.value||g()},fetchUserInfo:g}}));export{s as u}; +import{g as a,r as e,o as t,p as r}from"./index-7d881374.js";const s=a("user",(()=>{const a=e(0),s=e(0),l=e(0),o=e(0),i=e(0),u=e(0),n=e([]),d=e(0),c=e(""),v=e(!1),p=e(!1),S=e(""),g=async()=>{S.value=localStorage.getItem("localToken")?String(localStorage.getItem("localToken")):"",v.value=!0;try{const e={token:S.value||""},t=await r(e);a.value=t.data.brainExpireStatus,s.value=t.data.swordExpireStatus,l.value=t.data.stockForecastExpireStatus,o.value=t.data.spaceForecastExpireStatus,i.value=t.data.aibullExpireStatus,u.value=t.data.aigoldBullExpireStatus,d.value=t.data.airadarExpireStatus,n.value=t.data.marketList,c.value=t.data.userRole,p.value=!0}catch(e){console.error("Error fetching user data:",e)}finally{v.value=!1}};return t((()=>{})),{brainPerssion:a,swordPerssion:s,pricePerssion:l,timePerssion:o,aibullPerssion:i,aiGnbullPerssion:u,airadarPerssion:d,aiGoldMarketList:n,userRole:c,loading:v,isReady:p,init:()=>{p.value||g()},fetchUserInfo:g}}));export{s as u}; diff --git a/src/assets/img/wealthGoldenWheel/tanchuang.png b/src/assets/img/wealthGoldenWheel/tanchuang.png new file mode 100644 index 0000000..d0e5adb Binary files /dev/null and b/src/assets/img/wealthGoldenWheel/tanchuang.png differ diff --git a/src/views/wealth/goldenWheel.vue b/src/views/wealth/goldenWheel.vue index 6b34500..8b49c63 100644 --- a/src/views/wealth/goldenWheel.vue +++ b/src/views/wealth/goldenWheel.vue @@ -250,7 +250,7 @@ export default { remainingBgImg: 'https://d31zlh4on95l9h.cloudfront.net/images/a43f0c383d55fc56b34768f039a401a8.png', spinBtnImg: 'https://d31zlh4on95l9h.cloudfront.net/images/11b749e0fd4b08238980b74c6e80b2e6.png', disabledSpinBtnImg: 'https://d31zlh4on95l9h.cloudfront.net/images/9b7383c1f80bb32a279791879947791a.png', - modalBgImg: 'https://d31zlh4on95l9h.cloudfront.net/images/f75ce9ca2703662fd3176dd0493f6d7b.png', + modalBgImg: '../../assets/img/wealthGoldenWheel/bg.png', prizeAmountImg: 'https://d31zlh4on95l9h.cloudfront.net/images/878b8ea0c78bcafdaf4f6eb63a0b2eef.png', closeBtnImg: 'https://d31zlh4on95l9h.cloudfront.net/images/453475456dad8e6832e9904c901c1274.png', noTimesImg: 'https://d31zlh4on95l9h.cloudfront.net/images/a67e8b3de6e441af7bcb8fbbb2153ec2.png', @@ -503,7 +503,7 @@ async loadHistoryRecord() { // 计算需要旋转的总角度(确保多转几圈) // 从当前位置旋转到目标位置,加上多转的圈数(3-5圈) - const extraRotations = 3 + Math.floor(Math.random() * 3); // 4-5圈 + const extraRotations = 4 + Math.floor(Math.random() * 3); // 4-5圈 const extraDegrees = extraRotations * 360; // 计算最终旋转角度 @@ -544,10 +544,6 @@ async loadHistoryRecord() { // 计算随机停止位置 this.targetPointerRotation = this.calculateRandomStop(); - - // 设置CSS变量,用于动画 - document.documentElement.style.setProperty('--target-pointer-rotation', `${this.targetPointerRotation}deg`); - // 开始旋转动画 this.pointerRotation = this.targetPointerRotation; @@ -560,9 +556,9 @@ async loadHistoryRecord() { if (success) { setTimeout(() => { this.showPrizeModal = true; - }, 500); + }, 1); } - }, 5000); + }, 30); } catch (error) { console.error('查询剩余次数失败:', error); @@ -806,7 +802,7 @@ async loadHistoryRecord() { /* 旋转动画 - 使用requestAnimationFrame优化 */ .pointer-img.spinning { - animation: smooth-spin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; + animation: smooth-spin 4s cubic-bezier(0.2) forwards; /* 添加这些属性确保性能 */ backface-visibility: hidden; transform: translateZ(0); @@ -816,7 +812,7 @@ async loadHistoryRecord() { @keyframes smooth-spin { 0% { transform: rotate(-21.5deg); - animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); + animation-timing-function: cubic-bezier(0.1); } 100% { transform: rotate(var(--target-pointer-rotation, 1440deg));