chunk-vendors.fd2d8094.js 5.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00bb":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,i){var r=this._iv;if(r){var o=r.slice(0);this._iv=void 0}else o=this._prevBlock;i.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r,i),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);n.call(this,e,t,r,i),this._prevBlock=o}}),t}(),e.mode.CFB}))},"014b":function(e,t,n){"use strict";var i=n("e53d"),r=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),l=n("ebfd").KEY,c=n("294c"),u=n("dbdb"),d=n("45f2"),h=n("62a0"),f=n("5168"),p=n("ccb9"),g=n("6718"),m=n("47ee"),v=n("9003"),b=n("e4ae"),y=n("f772"),_=n("241e"),w=n("36c3"),x=n("1bc3"),C=n("aebd"),S=n("a159"),k=n("0395"),O=n("bf0b"),M=n("9aa9"),D=n("d9f6"),E=n("c3a1"),T=O.f,L=D.f,I=k.f,A=i.Symbol,N=i.JSON,P=N&&N.stringify,R="prototype",F=f("_hidden"),j=f("toPrimitive"),B={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),$=u("op-symbols"),W=Object[R],H="function"==typeof A&&!!M.f,U=i.QObject,q=!U||!U[R]||!U[R].findChild,G=o&&c((function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=T(W,t);i&&delete W[t],L(e,t,n),i&&e!==W&&L(W,t,i)}:L,K=function(e){var t=V[e]=S(A[R]);return t._k=e,t},Y=H&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},X=function(e,t,n){return e===W&&X($,t,n),b(e),t=x(t,!0),b(n),r(V,t)?(n.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:C(0,!1)})):(r(e,F)||L(e,F,C(1,{})),e[F][t]=!0),G(e,t,n)):L(e,t,n)},Z=function(e,t){b(e);var n,i=m(t=w(t)),r=0,o=i.length;while(o>r)X(e,n=i[r++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):Z(S(e),t)},J=function(e){var t=B.call(this,e=x(e,!0));return!(this===W&&r(V,e)&&!r($,e))&&(!(t||!r(this,e)||!r(V,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==W||!r(V,t)||r($,t)){var n=T(e,t);return!n||!r(V,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=I(w(e)),i=[],o=0;while(n.length>o)r(V,t=n[o++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===W,i=I(n?$:w(e)),o=[],a=0;while(i.length>a)!r(V,t=i[a++])||n&&!r(W,t)||o.push(V[t]);return o};H||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call($,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),G(this,e,C(1,n))};return o&&q&&G(W,e,{configurable:!0,set:t}),K(e)},s(A[R],"toString",(function(){return this._k})),O.f=ee,D.f=X,n("6abf").f=k.f=te,n("355d").f=J,M.f=ne,o&&!n("b8e3")&&s(W,"propertyIsEnumerable",J,!0),p.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:A});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)f(ie[re++]);for(var oe=E(f.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(z,e+="")?z[e]:z[e]=A(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!H,"Object",{create:Q,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){M.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return M.f(_(e))}}),N&&a(a.S+a.F*(!H||c((function(){var e=A();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,P.apply(N,i)}}),A[R][j]||n("35e8")(A[R],j,A[R].valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01ab":function(e,t,n){var i=n("9a44");function r(e,t,n){var r=i(e);return 0===(1===arguments.length?r:r.substring(n)).indexOf(t)}e.exports=r},"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,b,y,_){l(n,t,v);var w,x,C,S=function(e){if(!h&&e in D)return D[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=b==g,M=!1,D=e.prototype,E=D[d]||D[f]||b&&D[b],T=E||S(b),L=b?O?S("entries"):T:void 0,I="Array"==t&&D.entries||E;if(I&&(C=u(I.call(new e)),C!==Object.prototype&&C.next&&(c(C,k,!0),i||"function"==typeof C[d]||a(C,d,m))),O&&E&&E.name!==g&&(M=!0,T=function(){return E.call(this)}),i&&!_||!h&&!M&&D[d]||a(D,d,T),s[t]=T,s[k]=m,b)if(w={values:O?T:S(g),keys:y?T:S(p),entries:L},_)for(x in w)x in D||o(D,x,w[x]);else r(r.P+r.F*(h||M),t,w);return w}},"0271":function(e,t,n){var i=n("2a2f");function r(e,t,n){var r=0,o=[];return n=n||this,function(){var a=arguments;r++,r<e&&(o.push(a[0]),t.apply(n,[o].concat(i(a))))}}e.exports=r},"0298":function(e,t,n){"use strict";var i=n("5ca1"),r=n("4bf8"),o=n("6a99");i(i.P+i.F*n("79e5")((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=r(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},"02f4":function(e,t,n){var i=n("4588"),r=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"036c":function(e,t,n){"use strict";var i=n("5ca1"),r=n("4588"),o=n("bef9"),a=n("9744"),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d="0",h=function(e,t){var n=-1,i=t;while(++n<6)i+=e*c[n],c[n]=i%1e7,i=l(i/1e7)},f=function(e){var t=6,n=0;while(--t>=0)n+=c[t],c[t]=l(n/e),n=n%e*1e7},p=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(d,7-n.length)+n}return t},g=function(e,t,n){return 0===t?n:t%2===1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("79e5")((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,i,s,l=o(this,u),c=r(e),v="",b=d;if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(v="-",l=-l),l>1e-21)if(t=m(l*g(2,69,1))-69,n=t<0?l*g(2,-t,1):l/g(2,t,1),n*=4503599627370496,t=52-t,t>0){h(0,n),i=c;while(i>=7)h(1e7,0),i-=7;h(g(10,i,1),0),i=t-1;while(i>=23)f(1<<23),i-=23;f(1<<i),h(1,1),f(2),b=p()}else h(0,n),h(1<<-t,0),b=p()+a.call(d,c);return c>0?(s=b.length,b=v+(s<=c?"0."+a.call(d,c-s)+b:b.slice(0,s-c)+"."+b.slice(s-c))):b=v+b,b}})},"037e":function(e,t,n){},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0395":function(e,t,n){var i=n("36c3"),r=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"042d":function(e,t,n){},"042e":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{fround:n("91ca")})},"044b":function(e,t){
  2. /*!
  3. * Determine if an object is a Buffer
  4. *
  5. * @author Feross Aboukhadijeh <https://feross.org>
  6. * @license MIT
  7. */
  8. e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},"049f":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{log1p:n("d6c6")})},"04fb":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("7037")),o=i(n("970b"));n("0ca1");var a=i(n("9886")),s=n("5557"),l=n("a736"),c=function e(t){if((0,o["default"])(this,e),!t)return console.error("Charts Missing parameters!"),!1;var n=t.clientWidth,i=t.clientHeight,r=document.createElement("canvas");r.setAttribute("width",n),r.setAttribute("height",i),t.appendChild(r);var s={container:t,canvas:r,render:new a["default"](r),option:null};Object.assign(this,s)};t["default"]=c,c.prototype.setOption=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,r["default"])(e))return console.error("setOption Missing parameters!"),!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,s.deepClone)(e,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=e,this.render.launchAnimation()},c.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,i=this.option,r=e.clientWidth,o=e.clientHeight;t.setAttribute("width",r),t.setAttribute("height",o),n.area=[r,o],this.setOption(i)}},"04ff":function(e,t,n){var i=n("5ca1"),r=n("3ca5");i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},"050c":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return r.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return r.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),t["default"]=void 0;var r=n("2db9"),o=i(n("ae10")),a={bezierCurveToPolyline:r.bezierCurveToPolyline,getBezierCurveLength:r.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=a},"0676":function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0680":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=v;var r=i(n("7037")),o=i(n("278c")),a=i(n("9523")),s=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("becb"),d=n("5557");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,a["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={xAxisConfig:c.xAxisConfig,yAxisConfig:c.yAxisConfig},g=(Math.min,Math.max,Math.abs),m=Math.pow;function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=b(n,i),o=y(o),o=o.filter((function(e){var t=e.show;return t})),o=_(o),o=w(o,r),o=N(o),o=P(o,e),o=R(o,e),o=j(o,e),o=B(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"axisLine",getGraphConfig:z}),(0,l.doUpdate)({chart:e,series:o,key:"axisTick",getGraphConfig:W}),(0,l.doUpdate)({chart:e,series:o,key:"axisLabel",getGraphConfig:q}),(0,l.doUpdate)({chart:e,series:o,key:"axisName",getGraphConfig:Z}),(0,l.doUpdate)({chart:e,series:o,key:"splitLine",getGraphConfig:te}),e.axisData=o}function b(e,t){var n,i,r=[],o=[];e instanceof Array?(n=r).push.apply(n,(0,s["default"])(e)):r.push(e);t instanceof Array?(i=o).push.apply(i,(0,s["default"])(t)):o.push(t);return r.splice(2),o.splice(2),r=r.map((function(e,t){return f(f({},e),{},{index:t,axis:"x"})})),o=o.map((function(e,t){return f(f({},e),{},{index:t,axis:"y"})})),[].concat((0,s["default"])(r),(0,s["default"])(o))}function y(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t=t.map((function(e){return(0,u.deepMerge)((0,d.deepClone)(c.xAxisConfig),e)})),n=n.map((function(e){return(0,u.deepMerge)((0,d.deepClone)(c.yAxisConfig),e)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function _(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function w(e,t){var n=e.filter((function(e){var t=e.data;return"value"===t})),i=e.filter((function(e){var t=e.data;return t instanceof Array}));return n=x(n,t),i=I(i),[].concat((0,s["default"])(n),(0,s["default"])(i))}function x(e,t){return e.map((function(e){var n=C(e,t),i=O(e,n),r=(0,o["default"])(i,2),a=r[0],s=r[1],l=A(a,s,e),c=e.axisLabel.formatter,u=[];return u=a<0&&s>0?E(a,s,l):T(a,s,l),u=u.map((function(e){return parseFloat(e.toFixed(2))})),f(f({},e),{},{maxValue:u.slice(-1)[0],minValue:u[0],label:L(u,c)})}))}function C(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,i=e.axis;t=k(t);var r=i+"Axis",o=t.filter((function(e){return e[r]===n}));return o.length||(o=t),S(o)}function S(e){if(e){var t=Math.min.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,s["default"])((0,u.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,s["default"])((0,u.filterNonNumber)(t)))}))));return[t,n]}}function k(e){var t=(0,d.deepClone)(e,!0);return e.forEach((function(n,i){var r=(0,u.mergeSameStackData)(n,e);t[i].data=r})),t}function O(e,t){var n=e.min,i=e.max,a=e.axis,s=(0,o["default"])(t,2),l=s[0],c=s[1],u=(0,r["default"])(n),d=(0,r["default"])(i);if(D(n)||(n=p[a+"AxisConfig"].min,u="string"),D(i)||(i=p[a+"AxisConfig"].max,d="string"),"string"===u){n=parseInt(l-g(l*parseFloat(n)/100));var h=M(n);n=parseFloat((n/h-.1).toFixed(1))*h}if("string"===d){i=parseInt(c+g(c*parseFloat(i)/100));var f=M(i);i=parseFloat((i/f+.1).toFixed(1))*f}return[n,i]}function M(e){var t=g(e).toString(),n=t.length,i=t.replace(/0*$/g,"").indexOf("0"),r=n-1;return-1!==i&&(r-=i),m(10,r)}function D(e){var t=(0,r["default"])(e),n="string"===t&&/^\d+%$/.test(e),i="number"===t;return n||i}function E(e,t,n){var i=[],r=[],o=0,a=0;do{i.push(o-=n)}while(o>e);do{r.push(a+=n)}while(a<t);return[].concat((0,s["default"])(i.reverse()),[0],(0,s["default"])(r))}function T(e,t,n){var i=[e],r=e;do{i.push(r+=n)}while(r<t);return i}function L(e,t){return t?("string"===typeof t&&(e=e.map((function(e){return t.replace("{value}",e)}))),"function"===typeof t&&(e=e.map((function(e,n){return t({value:e,index:n})}))),e):e}function I(e){return e.map((function(e){var t=e.data,n=e.axisLabel.formatter;return f(f({},e),{},{label:L(t,n)})}))}function A(e,t,n){var i=n.interval,r=n.minInterval,o=n.maxInterval,a=n.splitNumber,s=n.axis,l=p[s+"AxisConfig"];if("number"!==typeof i&&(i=l.interval),"number"!==typeof r&&(r=l.minInterval),"number"!==typeof o&&(o=l.maxInterval),"number"!==typeof a&&(a=l.splitNumber),"number"===typeof i)return i;var c=parseInt((t-e)/(a-1));return c.toString().length>1&&(c=parseInt(c.toString().replace(/\d$/,"0"))),0===c&&(c=1),"number"===typeof r&&c<r?r:"number"===typeof o&&c>o?o:c}function N(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t[0]&&!t[0].position&&(t[0].position=c.xAxisConfig.position),t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=c.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,s["default"])(t),(0,s["default"])(n))}function P(e,t){var n=t.gridArea,i=n.x,r=n.y,o=n.w,a=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[i,r],[i,r+a]].reverse():"right"===t?n=[[i+o,r],[i+o,r+a]].reverse():"top"===t?n=[[i,r],[i+o,r]]:"bottom"===t&&(n=[[i,r+a],[i+o,r+a]]),f(f({},e),{},{linePosition:n})})),e}function R(e,t){return e.map((function(e){var t=e.axis,n=e.linePosition,i=e.position,r=e.label,a=e.boundaryGap;"boolean"!==typeof a&&(a=p[t+"AxisConfig"].boundaryGap);var s=r.length,l=(0,o["default"])(n,2),c=(0,o["default"])(l[0],2),u=c[0],d=c[1],h=(0,o["default"])(l[1],2),g=h[0],m=h[1],v="x"===t?g-u:m-d,b=v/(a?s:s-1),y=new Array(s).fill(0).map((function(e,n){return"x"===t?[u+b*(a?n+.5:n),d]:[u,d+b*(a?n+.5:n)]})),_=F(t,a,i,y,b);return f(f({},e),{},{tickPosition:y,tickLinePosition:_,tickGap:b})}))}function F(e,t,n,i,r){var a="x"===e?1:0,s=5;"x"===e&&"top"===n&&(s=-5),"y"===e&&"left"===n&&(s=-5);var l=i.map((function(e){var t=(0,d.deepClone)(e);return t[a]+=s,[(0,d.deepClone)(e),t]}));return t?(a="x"===e?0:1,s=r/2,l.forEach((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];n[a]+=s,i[a]+=s})),l):l}function j(e,t){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,i=e.position,r=e.linePosition,a=(0,o["default"])(r,2),l=a[0],c=a[1],u=(0,s["default"])(l);"end"===n&&(u=(0,s["default"])(c)),"center"===n&&(u[0]=(l[0]+c[0])/2,u[1]=(l[1]+c[1])/2);var d=0;"top"===i&&"center"===n&&(d=1),"bottom"===i&&"center"===n&&(d=1),"left"===i&&"center"!==n&&(d=1),"right"===i&&"center"!==n&&(d=1);var h=t;return"top"===i&&"end"!==n&&(h*=-1),"left"===i&&"start"!==n&&(h*=-1),"bottom"===i&&"start"===n&&(h*=-1),"right"===i&&"end"===n&&(h*=-1),u[d]+=h,f(f({},e),{},{namePosition:u})}))}function B(e,t){var n=t.gridArea,i=n.w,r=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,a=e.boundaryGap,l=0,c=i;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(c=r),"right"!==n&&"bottom"!==n||(c*=-1);var u=t.map((function(e){var t=(0,o["default"])(e,1),n=t[0],i=(0,s["default"])(n);return i[l]+=c,[(0,s["default"])(n),i]}));return a||u.shift(),f(f({},e),{},{splitLinePosition:u})}))}function z(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"polyline",index:i,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:V(e),style:$(e)}]}function V(e){var t=e.linePosition;return{points:t}}function $(e){return e.axisLine.style}function W(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=H(e),o=U(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function H(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function U(e){return e.axisTick.style}function q(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=G(e),o=Y(e,r);return r.map((function(r,a){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:r,style:o[a],setGraphCenter:function(){}}}))}function G(e){var t=e.label,n=e.tickPosition,i=e.position;return n.map((function(e,n){return{position:K(e,i),content:t[n].toString()}}))}function K(e,t){var n=0,i=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(i=-10),e=(0,d.deepClone)(e),e[n]+=i,e}function Y(e,t){var n=e.position,i=e.axisLabel.style,r=X(n);i=(0,u.deepMerge)(r,i);var o=t.map((function(e){var t=e.position;return f(f({},i),{},{graphCenter:t})}));return o}function X(e){return"left"===e?{textAlign:"right",textBaseline:"middle"}:"right"===e?{textAlign:"left",textBaseline:"middle"}:"top"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e?{textAlign:"center",textBaseline:"top"}:void 0}function Z(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"text",index:i,animationCurve:t,animationFrame:n,shape:Q(e),style:J(e)}]}function Q(e){var t=e.name,n=e.namePosition;return{content:t,position:n}}function J(e){var t=e.nameLocation,n=e.position,i=e.nameTextStyle,r=ee(n,t);return(0,u.deepMerge)(r,i)}function ee(e,t){return"top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t?{textAlign:"right",textBaseline:"middle"}:"top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t?{textAlign:"left",textBaseline:"middle"}:"top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t?{textAlign:"center",textBaseline:"top"}:void 0}function te(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=ne(e),o=ie(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function ne(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function ie(e){return e.splitLine.style}},"068a":function(e,t,n){var i=n("3535"),r=n("969d"),o=n("84a5");function a(e,t){var n=r(e),a=r(t),s=Math.pow(10,Math.max(i(n),i(a)));return(o(e,s)+o(t,s))/s}e.exports=a},"06a7":function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=i.get,a=i.key;i.exp({getOwnMetadata:function(e,t){return o(e,r(t),arguments.length<3?void 0:a(arguments[2]))}})},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6b75");function r(e,t){if(e){if("string"===typeof e)return Object(i["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(e,t):void 0}}},"06db":function(e,t,n){"use strict";var i=n("23c6"),r={};r[n("2b4c")("toStringTag")]="z",r+""!="[object z]"&&n("2aba")(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"097d":function(e,t,n){"use strict";var i=n("5ca1"),r=n("8378"),o=n("7726"),a=n("ebd6"),s=n("bcaa");i(i.P+i.R,"Promise",{finally:function(e){var t=a(this,r.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},"09e0":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},"09fa":function(e,t,n){var i=n("4588"),r=n("9def");e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b");function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=s(this.defaults,e),e.method=e.method?e.method.toLowerCase():"get";var t=[a,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a0f":function(e,t,n){var i=n("a227"),r=n("22ff"),o=n("604a");function a(e,t){if(e){if(o(e,t))return!0;var n,a,s,l,c,u,d=r(t),h=0,f=d.length;for(c=e;h<f;h++){if(u=!1,n=d[h],l=n?n.match(i):"",l?(a=l[1],s=l[2],a?c[a]&&o(c[a],s)&&(u=!0,c=c[a][s]):o(c,s)&&(u=!0,c=c[s])):o(c,n)&&(u=!0,c=c[n]),!u)break;if(h===f-1)return!0}}return!1}e.exports=a},"0a28":function(e,t,n){var i=n("3a24"),r=n("4100");function o(){return i?r(i.href):{}}e.exports=o},"0a49":function(e,t,n){var i=n("9b43"),r=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var g,m,v=o(t),b=r(v),y=i(s,p,3),_=a(b.length),w=0,x=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((h||w in b)&&(g=b[w],m=y(g,w,v),e))if(n)x[w]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return w;case 2:x.push(g)}else if(u)return!1;return d?-1:c||u?u:x}}},"0ac3":function(e,t,n){var i=n("9a44"),r=n("c80b"),o=n("5223"),a=n("7905"),s={};function l(e){if(e=i(e),s[e])return s[e];var t=e.length,n=e.replace(/([-]+)/g,(function(e,n,i){return i&&i+n.length<t?"-":""}));return t=n.length,n=n.replace(/([A-Z]+)/g,(function(e,n,i){var s=n.length;return n=a(n),i?s>2&&i+s<t?o(r(n,0,1))+r(n,1,s-1)+o(r(n,s-1,s)):o(r(n,0,1))+r(n,1,s):s>1&&i+s<t?r(n,0,s-1)+o(r(n,s-1,s)):n})).replace(/(-[a-zA-Z])/g,(function(e,t){return o(r(t,1,t.length))})),s[e]=n,n}e.exports=l},"0b21":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{sign:n("96fb")})},"0bdd":function(e,t,n){var i=n("e095"),r=n("1b14"),o=n("d074"),a=n("ba84");function s(e,t){return function(n,s){var l,c,u={},d=[],h=this,f=arguments,p=f.length;if(!i(s)){for(c=1;c<p;c++)l=f[c],d.push.apply(d,r(l)?l:[l]);s=0}return o(n,(function(i,r){((s?s.call(h,i,r,n):a(d,(function(e){return e===r}))>-1)?e:t)&&(u[r]=i)})),u}}e.exports=s},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0c00":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},"0c36":function(e,t,n){var i=n("5ca1");i(i.G,{global:n("7726")})},"0ca1":function(e,t,n){"use strict";var i=n("4ea4"),r=i(n("9523")),o=i(n("448a")),a=n("9886"),s=n("b06d"),l=n("5557"),c=n("a870"),u=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","ir","or","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Pie shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,a=i.ry,s=i.ir,c=i.or,u=i.startAngle,d=i.endAngle,h=i.clockWise;r=parseInt(r)+.5,a=parseInt(a)+.5,n.arc(r,a,s>0?s:0,u,d,!h);var f=(0,l.getCircleRadianPoint)(r,a,c,d).map((function(e){return parseInt(e)+.5})),p=(0,l.getCircleRadianPoint)(r,a,s,u).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,o["default"])(f)),n.arc(r,a,c>0?c:0,d,u,h),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.style,o=r.gradient;o=o.map((function(e){return(0,c.getColorFromRgbValue)(e)})),1===o.length&&(o=[o[0],o[0]]);var a=o.length-1,s=i.gradientStartAngle,d=i.gradientEndAngle,h=i.startAngle,f=i.endAngle,p=i.r,g=i.rx,m=i.ry;null===s&&(s=h),null===d&&(d=f);var v=(d-s)/a;v===2*Math.PI&&(v=2*Math.PI-.001);for(var b=0;b<a;b++){n.beginPath();var y=(0,l.getCircleRadianPoint)(g,m,p,h+v*b),_=(0,l.getCircleRadianPoint)(g,m,p,h+v*(b+1)),w=(0,u.getLinearGradientColor)(n,y,_,[o[b],o[b+1]]),x=h+v*b,C=h+v*(b+1),S=!1;if(C>f&&(C=f,S=!0),n.arc(g,m,p,x,C),n.strokeStyle=w,n.stroke(),S)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,i=t.content,r=t.position;return n instanceof Array&&"string"===typeof i&&r instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=i.number,o=i.content,a=i.toFixed,l=i.rowGap,c=i.formatter,u=o.split("{nt}"),d="";u.forEach((function(e,t){var n=r[t];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(a),"function"===typeof c&&(n=c(n))),d+=e+(n||"")})),s.text.draw({ctx:n},{shape:h(h({},i),{},{content:d,rowGap:l})})}},m={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,i=t.y,r=t.w,o=t.h;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.x,o=i.y,a=i.w,s=i.h,l=s/2;n.strokeStyle=n.fillStyle,n.moveTo(r,o+l),n.lineTo(r+a,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var c=l-10;c<=0&&(c=3),n.arc(r+a/2,o+l,c,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,i=n.x,r=n.y,o=n.w,a=n.h;return(0,l.checkPointIsInRect)(e,i,r,o,a)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.x,o=n.y,a=n.w,s=n.h;i.graphCenter=[r+a/2,o+s/2]}};(0,a.extendNewGraph)("pie",f),(0,a.extendNewGraph)("agArc",p),(0,a.extendNewGraph)("numberText",g),(0,a.extendNewGraph)("lineIcon",m)},"0cd4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var i={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};t.radarAxisConfig=i},"0cd8":function(e,t,n){"use strict";var i=n("5ca1"),r=n("7b23");i(i.P+i.F*!n("2f21")([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},"0d25":function(e,t,n){var i=n("5ca1"),r=n("8079")(),o=n("7726").process,a="process"==n("2d95")(o);i(i.G,{asap:function(e){var t=a&&o.domain;r(t?t.bind(e):e)}})},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},"0d6d":function(e,t,n){var i=n("d3f4"),r=n("67ab").onFreeze;n("5eda")("freeze",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0e9b":function(e,t,n){var i=n("9d13"),r=n("e5e7"),o=n("8965"),a=n("f461"),s=n("32aa"),l=n("4e80"),c=n("3f90"),u=n("a7ca");function d(e,t,n){if(e=c(e),u(e)&&!isNaN(t)){if(e.setDate(e.getDate()+o(t)),n===i)return new Date(a(e),s(e),e.getDate());if(n===r)return new Date(l(d(e,1,i))-1)}return e}e.exports=d},"0e9c":function(e,t,n){var i=n("0bdd"),r=i(0,1);e.exports=r},"0f88":function(e,t,n){var i,r=n("7726"),o=n("32e9"),a=n("ca5a"),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,d=0,h=9,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(d<h)(i=r[f[d++]])?(o(i.prototype,s,!0),o(i.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},"0fae":function(e,t,n){},"0fc9":function(e,t,n){var i=n("3a38"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10ad":function(e,t,n){"use strict";var i,r=n("7726"),o=n("0a49")(0),a=n("2aba"),s=n("67ab"),l=n("7333"),c=n("643e"),u=n("d3f4"),d=n("b39a"),h=n("b39a"),f=!r.ActiveXObject&&"ActiveXObject"in r,p="WeakMap",g=s.getWeak,m=Object.isExtensible,v=c.ufstore,b=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(u(e)){var t=g(e);return!0===t?v(d(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,p),e,t)}},_=e.exports=n("e0b8")(p,b,y,c,!0,!0);h&&f&&(i=c.getConstructor(b,p),l(i.prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=_.prototype,n=t[e];a(t,e,(function(t,r){if(u(t)&&!m(t)){this._f||(this._f=new i);var o=this._f[e](t,r);return"set"==e?this:o}return n.call(this,t,r)}))})))},"10b7":function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){
  9. /** @preserve
  10. (c) 2012 by Cédric Mesnil. All rights reserved.
  11. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  12. - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  13. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  14. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  15. */
  16. return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o,a,f,_,w,x,C,S,k,O,M,D=this._hash.words,E=d.words,T=h.words,L=s.words,I=l.words,A=c.words,N=u.words;x=o=D[0],C=a=D[1],S=f=D[2],k=_=D[3],O=w=D[4];for(n=0;n<80;n+=1)M=o+e[t+L[n]]|0,M+=n<16?p(a,f,_)+E[0]:n<32?g(a,f,_)+E[1]:n<48?m(a,f,_)+E[2]:n<64?v(a,f,_)+E[3]:b(a,f,_)+E[4],M|=0,M=y(M,A[n]),M=M+w|0,o=w,w=_,_=y(f,10),f=a,a=M,M=x+e[t+I[n]]|0,M+=n<16?b(C,S,k)+T[0]:n<32?v(C,S,k)+T[1]:n<48?m(C,S,k)+T[2]:n<64?g(C,S,k)+T[3]:p(C,S,k)+T[4],M|=0,M=y(M,N[n]),M=M+O|0,x=O,O=k,k=y(S,10),S=C,C=M;M=D[1]+f+k|0,D[1]=D[2]+_+O|0,D[2]=D[3]+w+x|0,D[3]=D[4]+o+C|0,D[4]=D[0]+a+S|0,D[0]=M},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,o=r.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return r},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,n){return e^t^n}function g(e,t,n){return e&t|~e&n}function m(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function b(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}n.RIPEMD160=o._createHelper(f),n.HmacRIPEMD160=o._createHmacHelper(f)}(Math),e.RIPEMD160}))},"10d6":function(e,t,n){var i=n("1877"),r=n("9bd2");function o(e){return i(e)||r(e)}e.exports=o},1132:function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var r=[],o=0;o<n;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,l=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|l,u=0;u<4&&o+.75*u<n;u++)r.push(i.charAt(c>>>6*(3-u)&63));var d=i.charAt(64);if(d)while(r.length%4)r.push(d);return r.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return o(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function o(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2;r[o>>>2]|=(s|l)<<24-o%4*8,o++}return i.create(r,o)}}(),e.enc.Base64}))},1169:function(e,t,n){var i=n("2d95");e.exports=Array.isArray||function(e){return"Array"==i(e)}},1196:function(e,t,n){var i=n("1b14");function r(e,t,n,r){if(i(e)&&e.copyWithin)return e.copyWithin(t,n,r);var o,a,s=t>>0,l=n>>0,c=e.length,u=arguments.length>3?r>>0:c;if(s<c&&(s=s>=0?s:c+s,s>=0&&(l=l>=0?l:c+l,u=u>=0?u:c+u,l<u)))for(o=0,a=e.slice(l,u);s<c;s++){if(a.length<=o)break;e[s]=a[o++]}return e}e.exports=r},"11b0":function(e,t){function n(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,n){},"11e9":function(e,t,n){var i=n("52a7"),r=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),l=n("c69a"),c=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"130f":function(e,t,n){var i=n("5ca1"),r=n("1991");i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},1382:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.Rabbit=i.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=i[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;r[0]^=l,r[1]^=d,r[2]^=u,r[3]^=h,r[4]^=l,r[5]^=d,r[6]^=u,r[7]^=h;for(n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=i._createHelper(l)}(),e.Rabbit}))},"13ed":function(e,t){function n(e){return Date.UTC(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}e.exports=n},1448:function(e,t,n){"use strict";n("386b")("strike",(function(e){return function(){return e(this,"strike","","")}}))},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,l=0;while(s>l)i.f(e,n=a[l++],t[n]);return e}},"14b9":function(e,t,n){var i=n("5ca1");i(i.P,"String",{repeat:n("9744")})},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=133)}({133:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(39),o=n.n(r),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function c(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var u={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:c({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},d={name:"ElScrollbar",components:{Bar:u},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),c=void 0;return c=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(u,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(u,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},c)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(d.name,d)}};t["default"]=d},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},39:function(e,t){e.exports=n("e62d")}})},"15ac":function(e,t,n){n("ec30")("Int16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"165b":function(e,t,n){var i=n("d3f4");n("5eda")("isExtensible",(function(e){return function(t){return!!i(t)&&(!e||e(t))}}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"16cd":function(e,t,n){var i=n("4fd9"),r=n("b1d2");function o(){for(var e=arguments,t=[],n=0,o=e.length;n<o;n++)t=t.concat(r(e[n]));return i(t)}e.exports=o},"17e1":function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,i=n.WordArray,r=i.init,o=i.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)};o.prototype=i}}(),e.lib.WordArray}))},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},1877:function(e,t){function n(e){return null===e}e.exports=n},1884:function(e,t,n){var i=n("e440"),r=n("ba84"),o=n("99f4"),a=n("dab2"),s=n("bf19");function l(e,t){var n=i(e),l=i(t);return!l.length||(s(n,l)?a(l,(function(i){return r(n,(function(n){return n===i&&o(e[n],t[i])}))>-1})):o(e,t))}e.exports=l},"18ad":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var r=i(n("448a")),o=i(n("7037")),a=i(n("970b")),s=function e(t,n){(0,a["default"])(this,e);var i=t.chart,r=t.key,o=t.getGraphConfig;"function"===typeof o?(i[r]||(this.graphs=i[r]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(e,t){var n=e.graphs,i=e.chart.render,r=n.length,o=t.length;if(r>o){var a=n.splice(o);a.forEach((function(e){return e.forEach((function(e){return i.delGraph(e)}))}))}}function c(e,t,n,i){var r=i.getGraphConfig,o=i.chart.render,a=i.beforeChange,s=r(t,i);u(e,s,o),e.forEach((function(e,t){var n=s[t];"function"===typeof a&&a(e,n),h(e,n)}))}function u(e,t,n){var i=e.length,o=t.length;if(o>i){var a=e.slice(-1)[0],s=o-i,l=new Array(s).fill(0).map((function(e){return n.clone(a)}));e.push.apply(e,(0,r["default"])(l))}else if(o<i){var c=e.splice(o);c.forEach((function(e){return n.delGraph(e)}))}}function d(e,t,n,i){var r=i.getGraphConfig,o=i.getStartGraphConfig,a=i.chart,s=a.render,l=null;"function"===typeof o&&(l=o(t,i));var c=r(t,i);if(c.length){l?(e[n]=l.map((function(e){return s.add(e)})),e[n].forEach((function(e,t){var n=c[t];h(e,n)}))):e[n]=c.map((function(e){return s.add(e)}));var u=i.afterAddGraph;"function"===typeof u&&u(e[n])}}function h(e,t){var n=Object.keys(t);n.forEach((function(n){"shape"===n||"style"===n?e.animation(n,t[n],!0):e[n]=t[n]}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,i=e.key,r=e.getGraphConfig,o=e.getStartGraphConfig,a=e.beforeChange,l=e.beforeUpdate,c=e.afterAddGraph;t[i]?t[i].update(n):t[i]=new s({chart:t,key:i,getGraphConfig:r,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:c},n)}t.Updater=s,s.prototype.update=function(e){var t=this,n=this.graphs,i=this.beforeUpdate;if(l(this,e),e.length){var r=(0,o["default"])(i);e.forEach((function(e,o){"function"===r&&i(n,e,o,t);var a=n[o];a?c(a,e,o,t):d(n,e,o,t)}))}}},"18d0":function(e,t,n){var i=n("5ca1"),r=n("3ca5");i(i.G+i.F*(parseInt!=r),{parseInt:r})},"18eb":function(e,t,n){var i=n("e095"),r=n("2c63"),o=n("1b14"),a=n("604a");function s(e){return function(t,n,s){if(t&&i(n)){if(o(t)||r(t))return e(t,n,s);for(var l in t)if(a(t,l)&&n.call(s,t[l],l,t))return l}return-1}}e.exports=s},"191b":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("94f8"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.algo,o=r.SHA256,a=r.SHA224=o.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(a),t.HmacSHA224=o._createHmacHelper(a)}(),e.SHA224}))},1935:function(e,t,n){var i=n("6dcd");function r(e,t){var n=i(e);return arguments.length<=1?n[0]:(t<n.length&&(n.length=t||0),n)}e.exports=r},1991:function(e,t,n){var i,r,o,a=n("9b43"),s=n("31f4"),l=n("fab2"),c=n("230e"),u=n("7726"),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,g=u.Dispatch,m=0,v={},b="onreadystatechange",y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},_=function(e){y.call(e.data)};h&&f||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},i(m),m},f=function(e){delete v[e]},"process"==n("2d95")(d)?i=function(e){d.nextTick(a(y,e,1))}:g&&g.now?i=function(e){g.now(a(y,e,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=_,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",_,!1)):i=b in c("script")?function(e){l.appendChild(c("script"))[b]=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:h,clear:f}},"1b14":function(e,t,n){var i=n("8c84"),r=Array.isArray||i("Array");e.exports=r},"1b69":function(e,t,n){var i=n("3535"),r=n("969d"),o=n("47fc"),a=n("6c36");function s(e,t){var n=o(e),s=o(t),l=r(n),c=r(s),u=i(l),d=i(c),h=Math.pow(10,Math.max(u,d)),f=u>=d?u:d;return parseFloat(a((n*h-s*h)/h,f))}e.exports=s},"1bc3":function(e,t,n){var i=n("f772");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"1c01":function(e,t,n){var i=n("5ca1");i(i.S+i.F*!n("9e1e"),"Object",{defineProperty:n("86cc").f})},"1c4c":function(e,t,n){"use strict";var i=n("9b43"),r=n("5ca1"),o=n("4bf8"),a=n("1fa8"),s=n("33a4"),l=n("9def"),c=n("f1ae"),u=n("27ee");r(r.S+r.F*!n("5cc5")((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,r,d,h=o(e),f="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,b=u(h);if(m&&(g=i(g,p>2?arguments[2]:void 0,2)),void 0==b||f==Array&&s(b))for(t=l(h.length),n=new f(t);t>v;v++)c(n,v,m?g(h[v],v):h[v]);else for(d=b.call(h),n=new f;!(r=d.next()).done;v++)c(n,v,m?a(d,g,[r.value,v],!0):r.value);return n.length=v,n}})},"1d15":function(e,t,n){var i=n("edb5"),r=n("1b14");function o(e,t){var n=0,i=t.length;while(e&&n<i)e=e[t[n++]];return i&&e?e:0}function a(e,t){for(var n,a=arguments,s=[],l=[],c=2,u=a.length;c<u;c++)s.push(a[c]);if(r(t)){for(u=t.length-1,c=0;c<u;c++)l.push(t[c]);t=t[u]}return i(e,(function(e){if(l.length&&(e=o(e,l)),n=e[t]||t,n&&n.apply)return n.apply(e,s)}))}e.exports=a},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1dac":function(e,t,n){},"1e4c":function(e,t,n){},"1e64":function(e,t){var n=decodeURIComponent;e.exports=n},"1eba":function(e,t){function n(){return new Date}e.exports=n},"1ec9":function(e,t,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"1f18":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},"1f48":function(e,t,n){var i=n("6d87"),r=typeof Set!==i;function o(e){return r&&e instanceof Set}e.exports=o},"1f55":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.gauge=g;var r=i(n("9523")),o=i(n("7037")),a=i(n("278c")),s=i(n("448a")),l=n("18ad"),c=n("cc6d"),u=n("5557"),d=n("becb"),h=n("a870");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,d.initNeedSeries)(n,c.gaugeConfig,"gauge");i=m(i,e),i=v(i,e),i=b(i,e),i=y(i,e),i=_(i,e),i=w(i,e),i=x(i,e),i=C(i,e),i=S(i,e),i=k(i,e),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisTick",getGraphConfig:M}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisLabel",getGraphConfig:T}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeBackgroundArc",getGraphConfig:A,getStartGraphConfig:R}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeArc",getGraphConfig:F,getStartGraphConfig:z,beforeChange:V}),(0,l.doUpdate)({chart:e,series:i,key:"gaugePointer",getGraphConfig:$,getStartGraphConfig:q}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeDetails",getGraphConfig:G})}function m(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function v(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*i),e.radius=t})),e}function b(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,r=e.arcLineWidth;n.forEach((function(e){var n=e.radius,o=e.lineWidth;n||(n=t),"number"!==typeof n&&(n=parseInt(n)/100*i),e.radius=n,o||(o=r),e.lineWidth=o}))})),e}function y(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.data,r=e.min,o=e.max,a=n-t,s=o-r;i.forEach((function(e){var n=e.value,i=Math.abs((n-r)/s*a);e.startAngle=t,e.endAngle=t+i}))})),e}function _(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}function w(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.splitNum,r=e.center,o=e.radius,a=e.arcLineWidth,l=e.axisTick,c=l.tickLength,d=l.style.lineWidth,h=n-t,f=o-a/2,p=f-c,g=h/(i-1),m=2*Math.PI*o*h/(2*Math.PI),v=Math.ceil(d/2)/m*h;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(i).fill(0).map((function(n,o){var a=t+g*o;return 0===o&&(a+=v),o===i-1&&(a-=v),e.tickAngles[o]=a,e.tickInnerRadius[o]=p,[u.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([f,a])),u.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([p,a]))]}))})),e}function x(e,t){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,i=e.tickAngles,r=e.axisLabel.labelGap,o=i.map((function(e,o){return u.getCircleRadianPoint.apply(void 0,(0,s["default"])(t).concat([n[o]-r,i[o]]))})),l=o.map((function(e){var n=(0,a["default"])(e,2),i=n[0],r=n[1];return{textAlign:i>t[0]?"right":"left",textBaseline:r>t[1]?"bottom":"top"}}));e.labelPosition=o,e.labelAlign=l})),e}function C(e,t){return e.forEach((function(e){var t=e.axisLabel,n=e.min,i=e.max,r=e.splitNum,a=t.data,s=t.formatter,l=(i-n)/(r-1),c=new Array(r).fill(0).map((function(e,t){return parseInt(n+l*t)})),u=(0,o["default"])(s);a=(0,d.deepMerge)(c,a).map((function(e,t){var n=e;return"string"===u&&(n=s.replace("{value}",e)),"function"===u&&(n=s({value:e,index:t})),n})),t.data=a})),e}function S(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=e.center,r=n.position,o=n.offset,a=t.map((function(e){var t=e.startAngle,n=e.endAngle,a=e.radius,l=null;return"center"===r?l=i:"start"===r?l=u.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([a,t])):"end"===r&&(l=u.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([a,n]))),O(l,o)}));e.detailsPosition=a})),e}function k(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=n.formatter,r=(0,o["default"])(i),a=t.map((function(e){var t=e.value;return"string"===r&&(t=i.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===r&&(t=i(e)),t.toString()}));e.detailsContent=a})),e}function O(e,t){var n=(0,a["default"])(e,2),i=n[0],r=n[1],o=(0,a["default"])(t,2),s=o[0],l=o[1];return[i+s,r+l]}function M(e){var t=e.tickPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:n,animationFrame:i,shape:D(e,o),style:E(e,o)}}))}function D(e,t){var n=e.tickPosition;return{points:n[t]}}function E(e,t){var n=e.axisTick.style;return n}function T(e){var t=e.labelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:n,animationFrame:i,shape:L(e,o),style:I(e,o)}}))}function L(e,t){var n=e.labelPosition,i=e.axisLabel.data;return{content:i[t].toString(),position:n[t]}}function I(e,t){var n=e.labelAlign,i=e.axisLabel,r=i.style;return(0,d.deepMerge)(p({},n[t]),r)}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"arc",index:i,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:N(e),style:P(e)}]}function N(e){var t=e.startAngle,n=e.endAngle,i=e.center,r=e.radius;return{rx:i[0],ry:i[1],r:r,startAngle:t,endAngle:n}}function P(e){var t=e.backgroundArc,n=e.arcLineWidth,i=t.style;return(0,d.deepMerge)({lineWidth:n},i)}function R(e){var t=A(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function F(e){var t=e.data,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:r,animationCurve:n,animationFrame:i,shape:j(e,o),style:B(e,o)}}))}function j(e,t){var n=e.data,i=e.center,r=e.endAngle,o=n[t],a=o.radius,s=o.startAngle,l=o.endAngle,c=o.localGradient;return c&&(r=l),{rx:i[0],ry:i[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:r}}function B(e,t){var n=e.data,i=e.dataItemStyle,r=n[t],o=r.lineWidth,a=r.gradient;return a=a.map((function(e){return(0,h.getRgbaValue)(e)})),(0,d.deepMerge)({lineWidth:o,gradient:a},i)}function z(e){var t=F(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function V(e,t){var n=e.style.gradient,i=n.length,r=t.style.gradient.length;if(i>r)n.splice(r);else{var o=n.slice(-1)[0];n.push.apply(n,(0,s["default"])(new Array(r-i).fill(0).map((function(e){return(0,s["default"])(o)}))))}}function $(e){var t=e.animationCurve,n=e.animationFrame,i=e.center,r=e.rLevel;return[{name:"polyline",index:r,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:W(e),style:H(e),setGraphCenter:function(e,t){t.style.graphCenter=i}}]}function W(e){var t=e.center;return{points:U(t),close:!0}}function H(e){var t=e.startAngle,n=e.endAngle,i=e.min,r=e.max,o=e.data,a=e.pointer,s=e.center,l=a.valueIndex,c=a.style,u=o[l]?o[l].value:0,h=(u-i)/(r-i)*(n-t)+t+Math.PI/2;return(0,d.deepMerge)({rotate:(0,d.radianToAngle)(h),scale:[1,1],graphCenter:s},c)}function U(e){var t=(0,a["default"])(e,2),n=t[0],i=t[1],r=[n,i-40],o=[n+5,i],s=[n,i+10],l=[n-5,i];return[r,o,s,l]}function q(e){var t=e.startAngle,n=$(e)[0];return n.style.rotate=(0,d.radianToAngle)(t+Math.PI/2),[n]}function G(e){var t=e.detailsPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=e.details.show;return t.map((function(t,a){return{name:"numberText",index:r,visible:o,animationCurve:n,animationFrame:i,shape:K(e,a),style:Y(e,a)}}))}function K(e,t){var n=e.detailsPosition,i=e.detailsContent,r=e.data,o=e.details,a=n[t],s=i[t],l=r[t].value,c=o.valueToFixed;return{number:[l],content:s,position:a,toFixed:c}}function Y(e,t){var n=e.details,i=e.data,r=n.style,o=i[t].color;return(0,d.deepMerge)({fill:o},r)}},"1f91":function(e,t,n){var i=n("5ca1"),r=n("e9d2"),o=n("91ca");i(i.S,"Math",{fscale:function(e,t,n,i,a){return o(r(e,t,n,i,a))}})},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&i(o.call(e)),a}}},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=g;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=c(e),a=i[0],s=i[1],l=new o(d(e,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(f(i));return r.join("")}function g(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fdd":function(e,t,n){var i=n("54a2"),r=n("519c"),o=i("indexOf",r);e.exports=o},"204e":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var r=i(n("7037")),o=i(n("9523")),a=i(n("278c")),s=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("5557"),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,d.initNeedSeries)(r,c.barConfig,"bar"),o=g(o,e),o=m(o,e),o=O(o,e)),(0,l.doUpdate)({chart:e,series:o.slice(-1),key:"backgroundBar",getGraphConfig:A}),o.reverse(),(0,l.doUpdate)({chart:e,series:o,key:"bar",getGraphConfig:F,getStartGraphConfig:U,beforeUpdate:Y}),(0,l.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:X})}function g(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,i=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof i&&(i=0);var r=n.find((function(e){var n=e.axis,i=e.index;return"".concat(n).concat(i)==="x".concat(t)})),o=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(i)})),a=[r,o],s=a.findIndex((function(e){var t=e.data;return"value"===t}));e.valueAxis=a[s],e.labelAxis=a[1-s]})),e}function m(e,t){var n=b(e);return n.forEach((function(e){v(e),_(e),w(e,t),x(e),k(e)})),e}function v(e){var t=y(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var i=e.stack;if(i){var r=t.find((function(e){var t=e.stack;return t===i}));-1===r.index&&(r.index=n,n++),e.barIndex=r.index}else e.barIndex=n,n++}))}function b(e){var t=e.map((function(e){var t=e.labelAxis,n=t.axis,i=t.index;return n+i}));return t=(0,s["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var n=e.labelAxis,i=n.axis,r=n.index;return i+r===t}))}))}function y(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,s["default"])(new Set(t))}function _(e){var t=(0,s["default"])(new Set(e.map((function(e){var t=e.barIndex;return t})))).length;e.forEach((function(e){return e.barNum=t}))}function w(e){var t=e.slice(-1)[0],n=t.barCategoryGap,i=t.labelAxis.tickGap,r=0;r="number"===typeof n?n:(1-parseInt(n)/100)*i,e.forEach((function(e){return e.barCategoryWidth=r}))}function x(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,i=t.barWidth,r=t.barGap,o=t.barNum,s=[];"number"===typeof i||"auto"!==i?s=C(n,i,r,o):"auto"===i&&(s=S(n,i,r,o));var l=s,c=(0,a["default"])(l,2),u=c[0],d=c[1];e.forEach((function(e){e.barWidth=u,e.barGap=d}))}function C(e,t,n){var i=0,r=0;return i="number"===typeof t?t:parseInt(t)/100*e,r="number"===typeof n?n:parseInt(n)/100*i,[i,r]}function S(e,t,n,i){var r=0,o=0,a=e/i;if("number"===typeof n)o=n,r=a-o;else{var s=10+parseInt(n)/10;0===s?(r=2*a,o=-r):(r=a/s*10,o=a-r)}return[r,o]}function k(e){var t=e.slice(-1)[0],n=t.barGap,i=t.barWidth,r=t.barNum,o=(n+i)*r-n;e.forEach((function(e){return e.barAllWidthAndGap=o}))}function O(e,t){return e=D(e),e=M(e),e=T(e),e=L(e),e}function M(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,i=e.barGap,r=e.barWidth,o=e.barIndex,a=t.tickGap,s=t.tickPosition,l=t.axis,c="x"===l?0:1,u=s.map((function(e,t){var l=s[t][c]-a/2,u=l+(a-n)/2;return u+(o+.5)*r+o*i}));return f(f({},e),{},{barLabelAxisPos:u})}))}function D(e){return e.map((function(t){var n=(0,d.mergeSameStackData)(t,e);n=E(t,n);var i=t.valueAxis,r=i.axis,o=i.minValue,a=i.maxValue,s=i.linePosition,l=I(o,a,o<0?0:o,s,r),c=n.map((function(e){return I(o,a,e,s,r)})),u=c.map((function(e){return[l,e]}));return f(f({},t),{},{barValueAxisPos:u})}))}function E(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null})).filter((function(e){return null!==e}))}function T(e){return e.map((function(e){var t=e.barLabelAxisPos,n=e.data;return n.forEach((function(e,n){"number"!==typeof e&&(t[n]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function L(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,i=e.barValueAxisPos,r=t.filter((function(e){return"number"===typeof e})).length,o=n.length;o>r&&(n.splice(r),i.splice(r))})),e}function I(e,t,n,i,r){if("number"!==typeof n)return null;var o=t-e,a="x"===r?0:1,s=i[1][a]-i[0][a],l=(n-e)/o;0===o&&(l=0);var c=l*s;return c+i[0][a]}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=N(e),o=R(e);return r.map((function(r){return{name:"rect",index:i,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function N(e){var t=e.labelAxis,n=e.valueAxis,i=t.tickPosition,r=n.axis,o=n.linePosition,a=P(e),s=a/2,l="x"===r?0:1,c=i.map((function(e){return e[1-l]})),u=[o[0][l],o[1][l]],d=u[0],h=u[1];return c.map((function(e){return"x"===r?{x:d,y:e-s,w:h-d,h:a}:{x:e-s,y:h,w:a,h:d-h}}))}function P(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,i=e.backgroundBar,r=i.width;return"number"===typeof r?r:"auto"===r?t:parseInt(r)/100*n}function R(e){return e.backgroundBar.style}function F(e){var t=e.barLabelAxisPos,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=j(e);return t.map((function(t,a){return{name:o,index:r,animationCurve:n,animationFrame:i,shape:B(e,a),style:W(e,a)}}))}function j(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function B(e,t){var n=e.shapeType;return"leftEchelon"===n?z(e,t):"rightEchelon"===n?V(e,t):$(e,t)}function z(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(n[t],2),l=s[0],c=s[1],u=i[t],d=r/2,h=e.valueAxis.axis,f=[];return"x"===h?(f[0]=[c,u-d],f[1]=[c,u+d],f[2]=[l,u+d],f[3]=[l+o,u-d],c-l<o&&f.splice(3,1)):(f[0]=[u-d,c],f[1]=[u+d,c],f[2]=[u+d,l],f[3]=[u-d,l-o],l-c<o&&f.splice(3,1)),{points:f,close:!0}}function V(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(n[t],2),l=s[0],c=s[1],u=i[t],d=r/2,h=e.valueAxis.axis,f=[];return"x"===h?(f[0]=[c,u+d],f[1]=[c,u-d],f[2]=[l,u-d],f[3]=[l+o,u+d],c-l<o&&f.splice(2,1)):(f[0]=[u+d,c],f[1]=[u-d,c],f[2]=[u-d,l],f[3]=[u+d,l-o],l-c<o&&f.splice(2,1)),{points:f,close:!0}}function $(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=(0,a["default"])(n[t],2),s=o[0],l=o[1],c=i[t],u=e.valueAxis.axis,d={};return"x"===u?(d.x=s,d.y=c-r/2,d.w=l-s,d.h=r):(d.x=c-r/2,d.y=l,d.w=r,d.h=s-l),d}function W(e,t){var n=e.barStyle,i=e.gradient,r=e.color,o=e.independentColor,a=e.independentColors,s=[n.fill||r],l=(0,d.deepMerge)(s,i.color);if(o){var c=a[t%a.length];l=c instanceof Array?c:[c]}1===l.length&&l.push(l[0]);var u=H(e,t);return(0,d.deepMerge)({gradientColor:l,gradientParams:u,gradientType:"linear",gradientWith:"fill"},n)}function H(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.data,o=e.valueAxis,s=o.linePosition,l=o.axis,c=(0,a["default"])(n[t],2),u=c[0],d=c[1],h=i[t],f=r[t],p=(0,a["default"])(s,2),g=p[0],m=p[1],v="x"===l?0:1,b=d;return e.gradient.local||(b=f<0?g[v]:m[v]),"y"===l?[h,b,h,u]:[b,h,u,h]}function U(e){var t=F(e),n=e.shapeType;return t.forEach((function(t){var i=t.shape;i="leftEchelon"===n?q(i,e):"rightEchelon"===n?G(i,e):K(i,e),t.shape=i})),t}function q(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var i=e,r=i.points,o="x"===n?0:1,a=r[2][o];return r.forEach((function(e){return e[o]=a})),e}function G(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var i=e,r=i.points,o="x"===n?0:1,a=r[2][o];return r.forEach((function(e){return e[o]=a})),e}function K(e,t){var n=t.valueAxis.axis,i=e.x,r=e.y,o=e.w,a=e.h;return"x"===n?o=0:(r+=a,a=0),{x:i,y:r,w:o,h:a}}function Y(e,t,n,i){var r=i.chart.render,o=j(t);e[n]&&e[n][0].name!==o&&(e[n].forEach((function(e){return r.delGraph(e)})),e[n]=null)}function X(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=Z(e),o=te(e);return r.map((function(r){return{name:"text",index:i,visible:e.label.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function Z(e){var t=Q(e),n=J(e);return n.map((function(e,n){return{position:e,content:t[n]}}))}function Q(e){var t=e.data,n=e.label,i=n.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!i)return t;var o=(0,r["default"])(i);return"string"===o?t.map((function(e){return i.replace("{value}",e)})):"function"===o?t.map((function(e,t){return i({value:e,index:t})})):t}function J(e){var t=e.label,n=e.barValueAxisPos,i=e.barLabelAxisPos,r=t.position,o=t.offset,s=e.valueAxis.axis;return n.map((function(e,t){var n=(0,a["default"])(e,2),l=n[0],c=n[1],u=i[t],d=[c,u];return"bottom"===r&&(d=[l,u]),"center"===r&&(d=[(l+c)/2,u]),"y"===s&&d.reverse(),ee(d,o)}))}function ee(e,t){var n=(0,a["default"])(e,2),i=n[0],r=n[1],o=(0,a["default"])(t,2),s=o[0],l=o[1];return[i+s,r+l]}function te(e){var t=e.color,n=e.label.style,i=e.gradient.color;return i.length&&(t=i[0]),n=(0,d.deepMerge)({fill:t},n),n}},"20d6":function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],m=n(a,h,""[e],(function(e,t,n,i,r){return t.exec===l?f&&!r?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),v=m[0],b=m[1];i(String.prototype,e,v),r(RegExp.prototype,h,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"217b":function(e,t,n){"use strict";var i=n("d3f4"),r=n("38fd"),o=n("2b4c")("hasInstance"),a=Function.prototype;o in a||n("86cc").f(a,o,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;while(e=r(e))if(this.prototype===e)return!0;return!1}})},"21bf":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},r=i.lib={},o=r.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,r=e.sigBytes;if(this.clamp(),i%4)for(var o=0;o<r;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[i+o>>>2]|=a<<24-(i+o)%4*8}else for(o=0;o<r;o+=4)t[i+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],r=function(t){t=t;var n=987654321,i=4294967295;return function(){n=36969*(65535&n)+(n>>16)&i,t=18e3*(65535&t)+(t>>16)&i;var r=(n<<16)+t&i;return r/=4294967296,r+=.5,r*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=r(4294967296*(n||e.random()));n=987654071*s(),i.push(4294967296*s()|0)}return new a.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r++){var o=t[r>>>2]>>>24-r%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,r=n.sigBytes,o=this.blockSize,s=4*o,l=r/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var c=l*o,u=e.min(4*c,r);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(i,d);var h=i.splice(0,c);n.sigBytes-=u}return new a.init(h,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(r.Hasher=d.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),i.algo={});return i}(Math);return e}))},"222a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieConfig=void 0;var i={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};t.pieConfig=i},2236:function(e,t,n){var i=n("5a43");function r(e){if(Array.isArray(e))return i(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},2251:function(e,t,n){var i=n("5ca1"),r=n("cb7c"),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(e){return r(e),!o||o(e)}})},"22d1":function(e,t,n){"use strict";var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new r;function a(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},"22ff":function(e,t){function n(e){return e?e.splice&&e.join?e:(""+e).split("."):[]}e.exports=n},"230e":function(e,t,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},2397:function(e,t,n){var i=n("5ca1"),r=n("2aeb"),o=n("d8e8"),a=n("cb7c"),s=n("d3f4"),l=n("79e5"),c=n("f0c1"),u=(n("7726").Reflect||{}).construct,d=l((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!l((function(){u((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(c.apply(e,i))}var l=n.prototype,f=r(s(l)?l:Object.prototype),p=Function.apply.call(e,f,t);return s(p)?p:f}})},"23be":function(e,t,n){"use strict";n("aa77")("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},"23bf":function(e,t,n){"use strict";var i=n("5ca1"),r=n("fab2"),o=n("2d95"),a=n("77f1"),s=n("9def"),l=[].slice;i(i.P+i.F*n("79e5")((function(){r&&l.call(r)})),"Array",{slice:function(e,t){var n=s(this.length),i=o(this);if(t=void 0===t?n:t,"Array"==i)return l.call(this,e,t);for(var r=a(e,n),c=a(t,n),u=s(c-r),d=new Array(u),h=0;h<u;h++)d[h]="String"==i?this.charAt(r+h):this[r+h];return d}})},"23c6":function(e,t,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},"242a":function(e,t,n){"use strict";n("386b")("sup",(function(e){return function(){return e(this,"sup","","")}}))},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function s(){var e;return("undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t)||"undefined"!==typeof XMLHttpRequest)&&(e=n("b50d")),e}var l={adapter:s(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){l.headers[e]=i.merge(o)})),e.exports=l}).call(this,n("f28c"))},"248c":function(e,t,n){var i=n("e8c0"),r=n("3f90"),o=n("a7ca");function a(e){if(e=r(e),o(e)){e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return Math.round(((e.getTime()-t.getTime())/i+(t.getDay()+6)%7-3)/7)+1}return NaN}e.exports=a},"252f":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=m;var r=i(n("7037")),o=i(n("278c")),a=i(n("448a")),s=i(n("9523")),l=n("18ad"),c=n("9d85"),u=i(n("050c")),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=u["default"].polylineToBezierCurve,g=u["default"].getBezierCurveLength;function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,d.initNeedSeries)(r,c.lineConfig,"line"),o=v(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"lineArea",getGraphConfig:x,getStartGraphConfig:M,beforeUpdate:D,beforeChange:E}),(0,l.doUpdate)({chart:e,series:o,key:"line",getGraphConfig:T,getStartGraphConfig:N,beforeUpdate:D,beforeChange:E}),(0,l.doUpdate)({chart:e,series:o,key:"linePoint",getGraphConfig:P,getStartGraphConfig:j}),(0,l.doUpdate)({chart:e,series:o,key:"lineLabel",getGraphConfig:B})}function v(e,t){var n=t.axisData;return e.map((function(t){var i=(0,d.mergeSameStackData)(t,e);i=b(t,i);var r=y(t,n),o=_(i,r),a=w(r);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:a})}))}function b(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null}))}function y(e,t){var n=e.xAxisIndex,i=e.yAxisIndex,r=t.find((function(e){var t=e.axis,i=e.index;return"x"===t&&i===n})),o=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===i}));return[r,o]}function _(e,t){var n=t.findIndex((function(e){var t=e.data;return"value"===t})),i=t[n],r=t[1-n],o=i.linePosition,a=i.axis,s=r.tickPosition,l=s.length,c="x"===a?0:1,u=o[0][c],d=o[1][c],h=d-u,f=i.maxValue,p=i.minValue,g=f-p,m=new Array(l).fill(0).map((function(t,n){var i=e[n];if("number"!==typeof i)return null;var r=(i-p)/g;return 0===g&&(r=0),r*h+u}));return m.map((function(e,t){if(t>=l||"number"!==typeof e)return null;var n=[e,s[t][1-c]];return 0===c||n.reverse(),n}))}function w(e){var t=e.find((function(e){var t=e.data;return"value"===t})),n=t.axis,i=t.linePosition,r=t.minValue,o=t.maxValue,a="x"===n?0:1,s=i[0][a];if(r<0&&o>0){var l=o-r,c=Math.abs(i[0][a]-i[1][a]),u=Math.abs(r)/l*c;"y"===n&&(u*=-1),s+=u}return{changeIndex:a,changeValue:s}}function x(e){var t=e.animationCurve,n=e.animationFrame,i=e.lineFillBottomPos,r=e.rLevel;return[{name:L(e),index:r,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:i,shape:C(e),style:S(e),drawed:O}]}function C(e){var t=e.linePosition;return{points:t}}function S(e){var t=e.lineArea,n=e.color,i=t.gradient,r=t.style,o=[r.fill||n],a=(0,d.deepMerge)(o,i);1===a.length&&a.push(a[0]);var s=k(e);return r=f(f({},r),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,d.deepMerge)({gradientColor:a,gradientParams:s,gradientType:"linear",gradientWith:"fill"},r)}function k(e){var t=e.lineFillBottomPos,n=e.linePosition,i=t.changeIndex,r=t.changeValue,o=n.map((function(e){return e[i]})),s=Math.max.apply(Math,(0,a["default"])(o)),l=Math.min.apply(Math,(0,a["default"])(o)),c=s;return 1===i&&(c=l),1===i?[0,c,0,r]:[c,0,r,0]}function O(e,t){var n=e.lineFillBottomPos,i=e.shape,r=t.ctx,o=i.points,s=n.changeIndex,l=n.changeValue,c=(0,a["default"])(o[o.length-1]),u=(0,a["default"])(o[0]);c[s]=l,u[s]=l,r.lineTo.apply(r,(0,a["default"])(c)),r.lineTo.apply(r,(0,a["default"])(u)),r.closePath(),r.fill()}function M(e){var t=x(e)[0],n=f({},t.style);return n.opacity=0,t.style=n,[t]}function D(e,t,n,i){var r=e[n];if(r){var o=L(t),a=i.chart.render,s=r[0].name,l=o!==s;l&&(r.forEach((function(e){return a.delGraph(e)})),e[n]=null)}}function E(e,t){var n=t.shape.points,i=e.shape.points,r=i.length,o=n.length;if(o>r){var s=i.slice(-1)[0],l=new Array(o-r).fill(0).map((function(e){return(0,a["default"])(s)}));i.push.apply(i,(0,a["default"])(l))}else o<r&&i.splice(o)}function T(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:L(e),index:i+1,animationCurve:t,animationFrame:n,shape:C(e),style:I(e)}]}function L(e){var t=e.smooth;return t?"smoothline":"polyline"}function I(e){var t=e.lineStyle,n=e.color,i=e.smooth,r=e.linePosition,o=A(r,i);return(0,d.deepMerge)({stroke:n,lineDash:[o,0]},t)}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,d.getPolylineLength)(e);var n=p(e);return g(n)}function N(e){var t=e.lineStyle.lineDash,n=T(e)[0],i=n.style.lineDash;return i=t?[0,0]:(0,a["default"])(i).reverse(),n.style.lineDash=i,[n]}function P(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=R(e),o=F(e);return r.map((function(r){return{name:"circle",index:i+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function R(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),i=t[0],r=t[1];return{r:n,rx:i,ry:r}}))}function F(e){var t=e.color,n=e.linePoint.style;return(0,d.deepMerge)({stroke:t},n)}function j(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function B(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=z(e),o=U(e);return r.map((function(r,a){return{name:"text",index:i+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function z(e){var t=H(e),n=V(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}function V(e){var t=e.linePosition,n=e.lineFillBottomPos,i=e.label,r=i.position,o=i.offset,s=n.changeIndex,l=n.changeValue;return t.map((function(e){if("bottom"===r&&(e=(0,a["default"])(e),e[s]=l),"center"===r){var t=(0,a["default"])(e);t[s]=l,e=W(e,t)}return $(e,o)}))}function $(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[i+s,r+l]}function W(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[(i+s)/2,(r+l)/2]}function H(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!n)return t;var i=(0,r["default"])(n);return"string"===i?t.map((function(e){return n.replace("{value}",e)})):"function"===i?t.map((function(e,t){return n({value:e,index:t})})):t}function U(e){var t=e.color,n=e.label.style;return(0,d.deepMerge)({fill:t},n)}},"25c9":function(e,t,n){var i=n("5ca1"),r=Math.exp;i(i.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},"25db":function(e,t,n){n("5eda")("getOwnPropertyNames",(function(){return n("7bbc").f}))},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2610:function(e,t,n){var i=n("1877");function r(e,t){return function(n){return i(n)?t:n[e]}}e.exports=r},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"262f":function(e,t,n){var i=n("5ca1");i(i.G+i.W+i.F*!n("0f88").ABV,{DataView:n("ed0b").DataView})},2748:function(e,t,n){var i=n("5ca1"),r=180/Math.PI;i(i.S,"Math",{degrees:function(e){return e*r}})},"278c":function(e,t,n){var i=n("c135"),r=n("9b42"),o=n("6613"),a=n("c240");function s(e,t){return i(e)||r(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"27ee":function(e,t,n){var i=n("23c6"),r=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},2848:function(e,t,n){},2850:function(e,t,n){var i=n("1b14"),r=n("604a");function o(e,t,n){if(e)if(i(e)){for(var o=0,a=e.length;o<a;o++)if(!1===t.call(n,e[o],o,e))break}else for(var s in e)if(r(e,s)&&!1===t.call(n,e[s],s,e))break}e.exports=o},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},"28a5":function(e,t,n){"use strict";var i=n("aae3"),r=n("cb7c"),o=n("ebd6"),a=n("0390"),s=n("9def"),l=n("5f1b"),c=n("520a"),u=n("79e5"),d=Math.min,h=[].push,f="split",p="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));n("214f")("split",2,(function(e,t,n,u){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(r,e,t);var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");while(o=c.call(v,r)){if(a=v[g],a>d&&(l.push(r.slice(d,o.index)),o[p]>1&&o.index<r[p]&&h.apply(l,o.slice(1)),s=o[0][p],d=a,l[p]>=f))break;v[g]===o.index&&v[g]++}return d===r[p]?!s&&v.test("")||l.push(""):l.push(r.slice(d)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r,i):b.call(String(r),n,i)},function(e,t){var i=u(b,e,this,t,b!==n);if(i.done)return i.value;var c=r(e),h=String(this),f=o(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),y=new f(v?c:"^(?:"+c.source+")",g),_=void 0===t?m:t>>>0;if(0===_)return[];if(0===h.length)return null===l(y,h)?[h]:[];var w=0,x=0,C=[];while(x<h.length){y.lastIndex=v?x:0;var S,k=l(y,v?h:h.slice(x));if(null===k||(S=d(s(y.lastIndex+(v?0:x)),h.length))===w)x=a(h,x,p);else{if(C.push(h.slice(w,x)),C.length===_)return C;for(var O=1;O<=k.length-1;O++)if(C.push(k[O]),C.length===_)return C;x=w=S}}return C.push(h.slice(w)),C}]}))},"28e4":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d8e8"),o=n("9b43"),a=n("4a59");e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return r(this),t=void 0!==l,t&&r(l),void 0==e?new this:(n=[],t?(i=0,s=o(l,arguments[2],2),a(e,!1,(function(e){n.push(s(e,i++))}))):a(e,!1,n.push,n),new this(n))}})}},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6b75");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(a["a"])(e)||s()}},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"299c":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=138)}({138:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),o=n(19),a=n.n(o),s=n(2),l=n(3),c=n(7),u=n.n(c),d={name:"ElTooltip",mixins:[r.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new u.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s["off"])(e,"mouseenter",this.show),Object(s["off"])(e,"mouseleave",this.hide),Object(s["off"])(e,"focus",this.handleFocus),Object(s["off"])(e,"blur",this.handleBlur),Object(s["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(d.name,d)}};t["default"]=d},19:function(e,t){e.exports=n("0e15")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},5:function(e,t){e.exports=n("e974")},7:function(e,t){e.exports=n("2b0e")}})},"2a2f":function(e,t,n){var i=n("47fc");function r(e,t,n){var r=[],o=arguments.length;if(e){if(t=o>=2?i(t):0,n=o>=3?i(n):e.length,e.slice)return e.slice(t,n);for(;t<n;t++)r.push(e[t])}return r}e.exports=r},"2a59":function(e,t,n){var i=n("8d35"),r=n("47fc");function o(e,t){return i(r(e),r(t))}e.exports=o},"2a5e":function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var i=n("2b0e"),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!r.default.prototype.$isServer)if(t){var n=[],i=t.offsetParent;while(i&&e!==i&&e.contains(i))n.push(i),i=i.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),a=o+t.offsetHeight,s=e.scrollTop,l=s+e.clientHeight;o<s?e.scrollTop=o:a>l&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2a66":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;while(!(t[n>>>2]>>>24-n%4*8&255))n--;e.sigBytes=n+1}},e.pad.ZeroPadding}))},"2aa4":function(e,t,n){var i=n("3b1c"),r=n("d074"),o=n("1b14"),a=n("1877"),s=n("9bd2"),l=n("97b9");function c(e,t,n){var s,u=[];return r(e,(function(e,r){s=o(e),l(e)||s?u=u.concat(c(e,t+"["+r+"]",s)):u.push(i(t+"["+(n?"":r)+"]")+"="+i(a(e)?"":e))})),u}function u(e){var t,n=[];return r(e,(function(e,r){s(e)||(t=o(e),l(e)||t?n=n.concat(c(e,r,t)):n.push(i(r)+"="+i(a(e)?"":e)))})),n.join("&").replace(/%20/g,"+")}e.exports=u},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||r(n,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),c=e.F;while(i--)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EffectScope",(function(){return Dt})),n.d(t,"computed",(function(){return mt})),n.d(t,"customRef",(function(){return st})),n.d(t,"default",(function(){return io})),n.d(t,"defineAsyncComponent",(function(){return ti})),n.d(t,"defineComponent",(function(){return bi})),n.d(t,"del",(function(){return Ve})),n.d(t,"effectScope",(function(){return Et})),n.d(t,"getCurrentInstance",(function(){return me})),n.d(t,"getCurrentScope",(function(){return Lt})),n.d(t,"h",(function(){return jn})),n.d(t,"inject",(function(){return Pt})),n.d(t,"isProxy",(function(){return Ye})),n.d(t,"isReactive",(function(){return qe})),n.d(t,"isReadonly",(function(){return Ke})),n.d(t,"isRef",(function(){return Je})),n.d(t,"isShallow",(function(){return Ge})),n.d(t,"markRaw",(function(){return Ze})),n.d(t,"mergeDefaults",(function(){return Sn})),n.d(t,"nextTick",(function(){return Qn})),n.d(t,"onActivated",(function(){return ui})),n.d(t,"onBeforeMount",(function(){return ri})),n.d(t,"onBeforeUnmount",(function(){return li})),n.d(t,"onBeforeUpdate",(function(){return ai})),n.d(t,"onDeactivated",(function(){return di})),n.d(t,"onErrorCaptured",(function(){return mi})),n.d(t,"onMounted",(function(){return oi})),n.d(t,"onRenderTracked",(function(){return fi})),n.d(t,"onRenderTriggered",(function(){return pi})),n.d(t,"onScopeDispose",(function(){return It})),n.d(t,"onServerPrefetch",(function(){return hi})),n.d(t,"onUnmounted",(function(){return ci})),n.d(t,"onUpdated",(function(){return si})),n.d(t,"provide",(function(){return At})),n.d(t,"proxyRefs",(function(){return ot})),n.d(t,"reactive",(function(){return We})),n.d(t,"readonly",(function(){return ht})),n.d(t,"ref",(function(){return et})),n.d(t,"set",(function(){return ze})),n.d(t,"shallowReactive",(function(){return He})),n.d(t,"shallowReadonly",(function(){return gt})),n.d(t,"shallowRef",(function(){return tt})),n.d(t,"toRaw",(function(){return Xe})),n.d(t,"toRef",(function(){return ct})),n.d(t,"toRefs",(function(){return lt})),n.d(t,"triggerRef",(function(){return it})),n.d(t,"unref",(function(){return rt})),n.d(t,"useAttrs",(function(){return wn})),n.d(t,"useCssModule",(function(){return Jn})),n.d(t,"useCssVars",(function(){return ei})),n.d(t,"useListeners",(function(){return xn})),n.d(t,"useSlots",(function(){return _n})),n.d(t,"version",(function(){return vi})),n.d(t,"watch",(function(){return Ot})),n.d(t,"watchEffect",(function(){return wt})),n.d(t,"watchPostEffect",(function(){return xt})),n.d(t,"watchSyncEffect",(function(){return Ct}));
  17. /*!
  18. * Vue.js v2.7.14
  19. * (c) 2014-2022 Evan You
  20. * Released under the MIT License.
  21. */
  22. var i=Object.freeze({}),r=Array.isArray;function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function s(e){return!0===e}function l(e){return!1===e}function c(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function u(e){return"function"===typeof e}function d(e){return null!==e&&"object"===typeof e}var h=Object.prototype.toString;function f(e){return"[object Object]"===h.call(e)}function p(e){return"[object RegExp]"===h.call(e)}function g(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function m(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||f(e)&&e.toString===h?JSON.stringify(e,null,2):String(e)}function b(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}y("slot,component",!0);var _=y("key,ref,slot,slot-scope,is");function w(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var i=e.indexOf(t);if(i>-1)return e.splice(i,1)}}var x=Object.prototype.hasOwnProperty;function C(e,t){return x.call(e,t)}function S(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var k=/-(\w)/g,O=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),M=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,E=S((function(e){return e.replace(D,"-$1").toLowerCase()}));function T(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function L(e,t){return e.bind(t)}var I=Function.prototype.bind?L:T;function A(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function N(e,t){for(var n in t)e[n]=t[n];return e}function P(e){for(var t={},n=0;n<e.length;n++)e[n]&&N(t,e[n]);return t}function R(e,t,n){}var F=function(e,t,n){return!1},j=function(e){return e};function B(e,t){if(e===t)return!0;var n=d(e),i=d(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,n){return B(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return B(e[n],t[n])}))}catch(l){return!1}}function z(e,t){for(var n=0;n<e.length;n++)if(B(e[n],t))return n;return-1}function V(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function $(e,t){return e===t?0===e&&1/e!==1/t:e===e||t===t}var W="data-server-rendered",H=["component","directive","filter"],U=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],q={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:R,parsePlatformTagName:j,mustUseProp:F,async:!0,_lifecycleHooks:U},G=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function K(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function Y(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var X=new RegExp("[^".concat(G.source,".$_\\d]"));function Z(e){if(!X.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Q="__proto__"in{},J="undefined"!==typeof window,ee=J&&window.navigator.userAgent.toLowerCase(),te=ee&&/msie|trident/.test(ee),ne=ee&&ee.indexOf("msie 9.0")>0,ie=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var re=ee&&/iphone|ipad|ipod|ios/.test(ee);ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee);var oe,ae=ee&&ee.match(/firefox\/(\d+)/),se={}.watch,le=!1;if(J)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){le=!0}}),window.addEventListener("test-passive",null,ce)}catch(rl){}var ue=function(){return void 0===oe&&(oe=!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),oe},de=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);fe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=null;function me(){return ge&&{proxy:ge}}function ve(e){void 0===e&&(e=null),e||ge&&ge._scope.off(),ge=e,e&&e._scope.on()}var be=function(){function e(e,t,n,i,r,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ye=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function _e(e){return new be(void 0,void 0,void 0,String(e))}function we(e){var t=new be(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var xe=0,Ce=[],Se=function(){for(var e=0;e<Ce.length;e++){var t=Ce[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}Ce.length=0},ke=function(){function e(){this._pending=!1,this.id=xe++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Ce.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,i=t.length;n<i;n++){var r=t[n];0,r.update()}},e}();ke.target=null;var Oe=[];function Me(e){Oe.push(e),ke.target=e}function De(){Oe.pop(),ke.target=Oe[Oe.length-1]}var Ee=Array.prototype,Te=Object.create(Ee),Le=["push","pop","shift","unshift","splice","sort","reverse"];Le.forEach((function(e){var t=Ee[e];Y(Te,e,(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var r,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&a.observeArray(r),a.dep.notify(),o}))}));var Ie=Object.getOwnPropertyNames(Te),Ae={},Ne=!0;function Pe(e){Ne=e}var Re={notify:R,depend:R,addSub:R,removeSub:R},Fe=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?Re:new ke,this.vmCount=0,Y(e,"__ob__",this),r(e)){if(!n)if(Q)e.__proto__=Te;else for(var i=0,o=Ie.length;i<o;i++){var a=Ie[i];Y(e,a,Te[a])}t||this.observeArray(e)}else{var s=Object.keys(e);for(i=0;i<s.length;i++){a=s[i];Be(e,a,Ae,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)je(e[t],!1,this.mock)},e}();function je(e,t,n){return e&&C(e,"__ob__")&&e.__ob__ instanceof Fe?e.__ob__:!Ne||!n&&ue()||!r(e)&&!f(e)||!Object.isExtensible(e)||e.__v_skip||Je(e)||e instanceof be?void 0:new Fe(e,t,n)}function Be(e,t,n,i,o,a){var s=new ke,l=Object.getOwnPropertyDescriptor(e,t);if(!l||!1!==l.configurable){var c=l&&l.get,u=l&&l.set;c&&!u||n!==Ae&&2!==arguments.length||(n=e[t]);var d=!o&&je(n,!1,a);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=c?c.call(e):n;return ke.target&&(s.depend(),d&&(d.dep.depend(),r(t)&&$e(t))),Je(t)&&!o?t.value:t},set:function(t){var i=c?c.call(e):n;if($(i,t)){if(u)u.call(e,t);else{if(c)return;if(!o&&Je(i)&&!Je(t))return void(i.value=t);n=t}d=!o&&je(t,!1,a),s.notify()}}}),s}}function ze(e,t,n){if(!Ke(e)){var i=e.__ob__;return r(e)&&g(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),i&&!i.shallow&&i.mock&&je(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||i&&i.vmCount?n:i?(Be(i.value,t,n,void 0,i.shallow,i.mock),i.dep.notify(),n):(e[t]=n,n)}}function Ve(e,t){if(r(e)&&g(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||Ke(e)||C(e,t)&&(delete e[t],n&&n.dep.notify())}}function $e(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),r(t)&&$e(t)}function We(e){return Ue(e,!1),e}function He(e){return Ue(e,!0),Y(e,"__v_isShallow",!0),e}function Ue(e,t){if(!Ke(e)){je(e,t,ue());0}}function qe(e){return Ke(e)?qe(e["__v_raw"]):!(!e||!e.__ob__)}function Ge(e){return!(!e||!e.__v_isShallow)}function Ke(e){return!(!e||!e.__v_isReadonly)}function Ye(e){return qe(e)||Ke(e)}function Xe(e){var t=e&&e["__v_raw"];return t?Xe(t):e}function Ze(e){return Object.isExtensible(e)&&Y(e,"__v_skip",!0),e}var Qe="__v_isRef";function Je(e){return!(!e||!0!==e.__v_isRef)}function et(e){return nt(e,!1)}function tt(e){return nt(e,!0)}function nt(e,t){if(Je(e))return e;var n={};return Y(n,Qe,!0),Y(n,"__v_isShallow",t),Y(n,"dep",Be(n,"value",e,null,t,ue())),n}function it(e){e.dep&&e.dep.notify()}function rt(e){return Je(e)?e.value:e}function ot(e){if(qe(e))return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++)at(t,e,n[i]);return t}function at(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(Je(e))return e.value;var i=e&&e.__ob__;return i&&i.dep.depend(),e},set:function(e){var i=t[n];Je(i)&&!Je(e)?i.value=e:t[n]=e}})}function st(e){var t=new ke,n=e((function(){t.depend()}),(function(){t.notify()})),i=n.get,r=n.set,o={get value(){return i()},set value(e){r(e)}};return Y(o,Qe,!0),o}function lt(e){var t=r(e)?new Array(e.length):{};for(var n in e)t[n]=ct(e,n);return t}function ct(e,t,n){var i=e[t];if(Je(i))return i;var r={get value(){var i=e[t];return void 0===i?n:i},set value(n){e[t]=n}};return Y(r,Qe,!0),r}var ut="__v_rawToReadonly",dt="__v_rawToShallowReadonly";function ht(e){return ft(e,!1)}function ft(e,t){if(!f(e))return e;if(Ke(e))return e;var n=t?dt:ut,i=e[n];if(i)return i;var r=Object.create(Object.getPrototypeOf(e));Y(e,n,r),Y(r,"__v_isReadonly",!0),Y(r,"__v_raw",e),Je(e)&&Y(r,Qe,!0),(t||Ge(e))&&Y(r,"__v_isShallow",!0);for(var o=Object.keys(e),a=0;a<o.length;a++)pt(r,e,o[a],t);return r}function pt(e,t,n,i){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return i||!f(e)?e:ht(e)},set:function(){}})}function gt(e){return ft(e,!0)}function mt(e,t){var n,i,r=u(e);r?(n=e,i=R):(n=e.get,i=e.set);var o=ue()?null:new Si(ge,n,R,{lazy:!0});var a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),ke.target&&o.depend(),o.value):n()},set value(e){i(e)}};return Y(a,Qe,!0),Y(a,"__v_isReadonly",r),a}var vt="watcher",bt="".concat(vt," callback"),yt="".concat(vt," getter"),_t="".concat(vt," cleanup");function wt(e,t){return Mt(e,null,t)}function xt(e,t){return Mt(e,null,{flush:"post"})}function Ct(e,t){return Mt(e,null,{flush:"sync"})}var St,kt={};function Ot(e,t,n){return Mt(e,t,n)}function Mt(e,t,n){var o=void 0===n?i:n,a=o.immediate,s=o.deep,l=o.flush,c=void 0===l?"pre":l;o.onTrack,o.onTrigger;var d,h,f=ge,p=function(e,t,n){return void 0===n&&(n=null),zn(e,null,n,f,t)},g=!1,m=!1;if(Je(e)?(d=function(){return e.value},g=Ge(e)):qe(e)?(d=function(){return e.__ob__.dep.depend(),e},s=!0):r(e)?(m=!0,g=e.some((function(e){return qe(e)||Ge(e)})),d=function(){return e.map((function(e){return Je(e)?e.value:qe(e)?_i(e):u(e)?p(e,yt):void 0}))}):d=u(e)?t?function(){return p(e,yt)}:function(){if(!f||!f._isDestroyed)return h&&h(),p(e,vt,[b])}:R,t&&s){var v=d;d=function(){return _i(v())}}var b=function(e){h=y.onStop=function(){p(e,_t)}};if(ue())return b=R,t?a&&p(t,bt,[d(),m?[]:void 0,b]):d(),R;var y=new Si(ge,d,R,{lazy:!0});y.noRecurse=!t;var _=m?[]:kt;return y.run=function(){if(y.active)if(t){var e=y.get();(s||g||(m?e.some((function(e,t){return $(e,_[t])})):$(e,_)))&&(h&&h(),p(t,bt,[e,_===kt?void 0:_,b]),_=e)}else y.get()},"sync"===c?y.update=y.run:"post"===c?(y.post=!0,y.update=function(){return nr(y)}):y.update=function(){if(f&&f===ge&&!f._isMounted){var e=f._preWatchers||(f._preWatchers=[]);e.indexOf(y)<0&&e.push(y)}else nr(y)},t?a?y.run():_=y.get():"post"===c&&f?f.$once("hook:mounted",(function(){return y.get()})):y.get(),function(){y.teardown()}}var Dt=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=St,!e&&St&&(this.index=(St.scopes||(St.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=St;try{return St=this,e()}finally{St=t}}else 0},e.prototype.on=function(){St=this},e.prototype.off=function(){St=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this.active=!1}},e}();function Et(e){return new Dt(e)}function Tt(e,t){void 0===t&&(t=St),t&&t.active&&t.effects.push(e)}function Lt(){return St}function It(e){St&&St.cleanups.push(e)}function At(e,t){ge&&(Nt(ge)[e]=t)}function Nt(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Pt(e,t,n){void 0===n&&(n=!1);var i=ge;if(i){var r=i.$parent&&i.$parent._provided;if(r&&e in r)return r[e];if(arguments.length>1)return n&&u(t)?t.call(i):t}else 0}var Rt=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function Ft(e,t){function n(){var e=n.fns;if(!r(e))return zn(e,null,arguments,t,"v-on handler");for(var i=e.slice(),o=0;o<i.length;o++)zn(i[o],null,arguments,t,"v-on handler")}return n.fns=e,n}function jt(e,t,n,i,r,a){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=Rt(l),o(c)||(o(u)?(o(c.fns)&&(c=e[l]=Ft(c,a)),s(d.once)&&(c=e[l]=r(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)o(e[l])&&(d=Rt(l),i(d.name,t[l],d.capture))}function Bt(e,t,n){var i;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var r=e[t];function l(){n.apply(this,arguments),w(i.fns,l)}o(r)?i=Ft([l]):a(r.fns)&&s(r.merged)?(i=r,i.fns.push(l)):i=Ft([r,l]),i.merged=!0,e[t]=i}function zt(e,t,n){var i=t.options.props;if(!o(i)){var r={},s=e.attrs,l=e.props;if(a(s)||a(l))for(var c in i){var u=E(c);Vt(r,l,c,u,!0)||Vt(r,s,c,u,!1)}return r}}function Vt(e,t,n,i,r){if(a(t)){if(C(t,n))return e[n]=t[n],r||delete t[n],!0;if(C(t,i))return e[n]=t[i],r||delete t[i],!0}return!1}function $t(e){for(var t=0;t<e.length;t++)if(r(e[t]))return Array.prototype.concat.apply([],e);return e}function Wt(e){return c(e)?[_e(e)]:r(e)?Ut(e):void 0}function Ht(e){return a(e)&&a(e.text)&&l(e.isComment)}function Ut(e,t){var n,i,l,u,d=[];for(n=0;n<e.length;n++)i=e[n],o(i)||"boolean"===typeof i||(l=d.length-1,u=d[l],r(i)?i.length>0&&(i=Ut(i,"".concat(t||"","_").concat(n)),Ht(i[0])&&Ht(u)&&(d[l]=_e(u.text+i[0].text),i.shift()),d.push.apply(d,i)):c(i)?Ht(u)?d[l]=_e(u.text+i):""!==i&&d.push(_e(i)):Ht(i)&&Ht(u)?d[l]=_e(u.text+i.text):(s(e._isVList)&&a(i.tag)&&o(i.key)&&a(t)&&(i.key="__vlist".concat(t,"_").concat(n,"__")),d.push(i)));return d}function qt(e,t){var n,i,o,s,l=null;if(r(e)||"string"===typeof e)for(l=new Array(e.length),n=0,i=e.length;n<i;n++)l[n]=t(e[n],n);else if("number"===typeof e)for(l=new Array(e),n=0;n<e;n++)l[n]=t(n+1,n);else if(d(e))if(pe&&e[Symbol.iterator]){l=[];var c=e[Symbol.iterator](),u=c.next();while(!u.done)l.push(t(u.value,l.length)),u=c.next()}else for(o=Object.keys(e),l=new Array(o.length),n=0,i=o.length;n<i;n++)s=o[n],l[n]=t(e[s],s,n);return a(l)||(l=[]),l._isVList=!0,l}function Gt(e,t,n,i){var r,o=this.$scopedSlots[e];o?(n=n||{},i&&(n=N(N({},i),n)),r=o(n)||(u(t)?t():t)):r=this.$slots[e]||(u(t)?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},r):r}function Kt(e){return Tr(this.$options,"filters",e,!0)||j}function Yt(e,t){return r(e)?-1===e.indexOf(t):e!==t}function Xt(e,t,n,i,r){var o=q.keyCodes[t]||n;return r&&i&&!q.keyCodes[t]?Yt(r,i):o?Yt(o,e):i?E(i)!==t:void 0===e}function Zt(e,t,n,i,o){if(n)if(d(n)){r(n)&&(n=P(n));var a=void 0,s=function(r){if("class"===r||"style"===r||_(r))a=e;else{var s=e.attrs&&e.attrs.type;a=i||q.mustUseProp(t,s,r)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=O(r),c=E(r);if(!(l in a)&&!(c in a)&&(a[r]=n[r],o)){var u=e.on||(e.on={});u["update:".concat(r)]=function(e){n[r]=e}}};for(var l in n)s(l)}else;return e}function Qt(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),en(i,"__static__".concat(e),!1)),i}function Jt(e,t,n){return en(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function en(e,t,n){if(r(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&tn(e[i],"".concat(t,"_").concat(i),n);else tn(e,t,n)}function tn(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function nn(e,t){if(t)if(f(t)){var n=e.on=e.on?N({},e.on):{};for(var i in t){var r=n[i],o=t[i];n[i]=r?[].concat(r,o):o}}else;return e}function rn(e,t,n,i){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var a=e[o];r(a)?rn(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return i&&(t.$key=i),t}function on(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function an(e,t){return"string"===typeof e?t+e:e}function sn(e){e._o=Jt,e._n=b,e._s=v,e._l=qt,e._t=Gt,e._q=B,e._i=z,e._m=Qt,e._f=Kt,e._k=Xt,e._b=Zt,e._v=_e,e._e=ye,e._u=rn,e._g=nn,e._d=on,e._p=an}function ln(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var o=e[i],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(cn)&&delete n[c];return n}function cn(e){return e.isComment&&!e.asyncFactory||" "===e.text}function un(e){return e.isComment&&e.asyncFactory}function dn(e,t,n,r){var o,a=Object.keys(n).length>0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=hn(e,n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=fn(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),Y(o,"$stable",s),Y(o,"$key",l),Y(o,"$hasNormal",a),o}function hn(e,t,n,i){var o=function(){var t=ge;ve(e);var n=arguments.length?i.apply(null,arguments):i({});n=n&&"object"===typeof n&&!r(n)?[n]:Wt(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!un(o))?void 0:n};return i.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function fn(e,t){return function(){return e[t]}}function pn(e){var t=e.$options,n=t.setup;if(n){var i=e._setupContext=gn(e);ve(e),Me();var r=zn(n,null,[e._props||He({}),i],e,"setup");if(De(),ve(),u(r))t.render=r;else if(d(r))if(e._setupState=r,r.__sfc){var o=e._setupProxy={};for(var a in r)"__sfc"!==a&&at(o,r,a)}else for(var a in r)K(a)||at(e,r,a);else 0}}function gn(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};Y(t,"_v_attr_proxy",!0),mn(t,e.$attrs,i,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};mn(t,e.$listeners,i,e,"$listeners")}return e._listenersProxy},get slots(){return bn(e)},emit:I(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return at(e,t,n)}))}}}function mn(e,t,n,i,r){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,vn(e,a,i,r));for(var a in e)a in t||(o=!0,delete e[a]);return o}function vn(e,t,n,i){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[i][t]}})}function bn(e){return e._slotsProxy||yn(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function yn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function _n(){return Cn().slots}function wn(){return Cn().attrs}function xn(){return Cn().listeners}function Cn(){var e=ge;return e._setupContext||(e._setupContext=gn(e))}function Sn(e,t){var n=r(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var i in t){var o=n[i];o?r(o)||u(o)?n[i]={type:o,default:t[i]}:o.default=t[i]:null===o&&(n[i]={default:t[i]})}return n}function kn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=ln(t._renderChildren,r),e.$scopedSlots=n?dn(e.$parent,n.data.scopedSlots,e.$slots):i,e._c=function(t,n,i,r){return Nn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return Nn(e,t,n,i,r,!0)};var o=n&&n.data;Be(e,"$attrs",o&&o.attrs||i,null,!0),Be(e,"$listeners",t._parentListeners||i,null,!0)}var On=null;function Mn(e){sn(e.prototype),e.prototype.$nextTick=function(e){return Qn(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,o=n._parentVnode;o&&t._isMounted&&(t.$scopedSlots=dn(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&yn(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;try{ve(t),On=t,e=i.call(t._renderProxy,t.$createElement)}catch(rl){Bn(rl,t,"render"),e=t._vnode}finally{On=null,ve()}return r(e)&&1===e.length&&(e=e[0]),e instanceof be||(e=ye()),e.parent=o,e}}function Dn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e)?t.extend(e):e}function En(e,t,n,i,r){var o=ye();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:i,tag:r},o}function Tn(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=On;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var i=e.owners=[n],r=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return w(i,n)}));var u=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},h=V((function(n){e.resolved=Dn(n,t),r?i.length=0:u(!0)})),f=V((function(t){a(e.errorComp)&&(e.error=!0,u(!0))})),p=e(h,f);return d(p)&&(m(p)?o(e.resolved)&&p.then(h,f):m(p.component)&&(p.component.then(h,f),a(p.error)&&(e.errorComp=Dn(p.error,t)),a(p.loading)&&(e.loadingComp=Dn(p.loading,t),0===p.delay?e.loading=!0:l=setTimeout((function(){l=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,u(!1))}),p.delay||200)),a(p.timeout)&&(c=setTimeout((function(){c=null,o(e.resolved)&&f(null)}),p.timeout)))),r=!1,e.loading?e.loadingComp:e.resolved}}function Ln(e){if(r(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||un(n)))return n}}var In=1,An=2;function Nn(e,t,n,i,o,a){return(r(n)||c(n))&&(o=i,i=n,n=void 0),s(a)&&(o=An),Pn(e,t,n,i,o)}function Pn(e,t,n,i,o){if(a(n)&&a(n.__ob__))return ye();if(a(n)&&a(n.is)&&(t=n.is),!t)return ye();var s,l;if(r(i)&&u(i[0])&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===An?i=Wt(i):o===In&&(i=$t(i)),"string"===typeof t){var c=void 0;l=e.$vnode&&e.$vnode.ns||q.getTagNamespace(t),s=q.isReservedTag(t)?new be(q.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!a(c=Tr(e.$options,"components",t))?new be(t,n,i,void 0,void 0,e):fr(c,n,e,i,t)}else s=fr(t,n,e,i);return r(s)?s:a(s)?(a(l)&&Rn(s,l),a(n)&&Fn(n),s):ye()}function Rn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var i=0,r=e.children.length;i<r;i++){var l=e.children[i];a(l.tag)&&(o(l.ns)||s(n)&&"svg"!==l.tag)&&Rn(l,t,n)}}function Fn(e){d(e.style)&&_i(e.style),d(e.class)&&_i(e.class)}function jn(e,t,n){return Nn(ge,e,t,n,2,!0)}function Bn(e,t,n){Me();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var a=!1===r[o].call(i,e,t,n);if(a)return}catch(rl){Vn(rl,i,"errorCaptured hook")}}}Vn(e,t,n)}finally{De()}}function zn(e,t,n,i,r){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&m(o)&&!o._handled&&(o.catch((function(e){return Bn(e,i,r+" (Promise/async)")})),o._handled=!0)}catch(rl){Bn(rl,i,r)}return o}function Vn(e,t,n){if(q.errorHandler)try{return q.errorHandler.call(null,e,t,n)}catch(rl){rl!==e&&$n(rl,null,"config.errorHandler")}$n(e,t,n)}function $n(e,t,n){if(!J||"undefined"===typeof console)throw e;console.error(e)}var Wn,Hn=!1,Un=[],qn=!1;function Gn(){qn=!1;var e=Un.slice(0);Un.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&he(Promise)){var Kn=Promise.resolve();Wn=function(){Kn.then(Gn),re&&setTimeout(R)},Hn=!0}else if(te||"undefined"===typeof MutationObserver||!he(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wn="undefined"!==typeof setImmediate&&he(setImmediate)?function(){setImmediate(Gn)}:function(){setTimeout(Gn,0)};else{var Yn=1,Xn=new MutationObserver(Gn),Zn=document.createTextNode(String(Yn));Xn.observe(Zn,{characterData:!0}),Wn=function(){Yn=(Yn+1)%2,Zn.data=String(Yn)},Hn=!0}function Qn(e,t){var n;if(Un.push((function(){if(e)try{e.call(t)}catch(rl){Bn(rl,t,"nextTick")}else n&&n(t)})),qn||(qn=!0,Wn()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}function Jn(e){if(void 0===e&&(e="$style"),!ge)return i;var t=ge[e];return t||i}function ei(e){if(J){var t=ge;t&&xt((function(){var n=t.$el,i=e(t,t._setupProxy);if(n&&1===n.nodeType){var r=n.style;for(var o in i)r.setProperty("--".concat(o),i[o])}}))}}function ti(e){u(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,i=e.errorComponent,r=e.delay,o=void 0===r?200:r,a=e.timeout,s=(e.suspensible,e.onError);var l=null,c=0,d=function(){return c++,l=null,h()},h=function(){var e;return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,n){var i=function(){return t(d())},r=function(){return n(e)};s(e,i,r,c+1)}));throw e})).then((function(t){return e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){var e=h();return{component:e,delay:o,timeout:a,error:i,loading:n}}}function ni(e){return function(t,n){if(void 0===n&&(n=ge),n)return ii(n,e,t)}}function ii(e,t,n){var i=e.$options;i[t]=xr(i[t],n)}var ri=ni("beforeMount"),oi=ni("mounted"),ai=ni("beforeUpdate"),si=ni("updated"),li=ni("beforeDestroy"),ci=ni("destroyed"),ui=ni("activated"),di=ni("deactivated"),hi=ni("serverPrefetch"),fi=ni("renderTracked"),pi=ni("renderTriggered"),gi=ni("errorCaptured");function mi(e,t){void 0===t&&(t=ge),gi(e,t)}var vi="2.7.14";function bi(e){return e}var yi=new fe;function _i(e){return wi(e,yi),yi.clear(),e}function wi(e,t){var n,i,o=r(e);if(!(!o&&!d(e)||e.__v_skip||Object.isFrozen(e)||e instanceof be)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o){n=e.length;while(n--)wi(e[n],t)}else if(Je(e))wi(e.value,t);else{i=Object.keys(e),n=i.length;while(n--)wi(e[i[n]],t)}}}var xi,Ci=0,Si=function(){function e(e,t,n,i,r){Tt(this,St&&!St._vm?St:e?e._scope:void 0),(this.vm=e)&&r&&(e._watcher=this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ci,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="",u(t)?this.getter=t:(this.getter=Z(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;Me(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(rl){if(!this.user)throw rl;Bn(rl,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&_i(e),De(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():nr(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||d(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');zn(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},e.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&w(this.vm._scope.effects,this),this.active){var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}();function ki(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ei(e,t)}function Oi(e,t){xi.$on(e,t)}function Mi(e,t){xi.$off(e,t)}function Di(e,t){var n=xi;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function Ei(e,t,n){xi=e,jt(t,n||{},Oi,Mi,Di,e),xi=void 0}function Ti(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(r(e))for(var o=0,a=e.length;o<a;o++)i.$on(e[o],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(r(e)){for(var i=0,o=e.length;i<o;i++)n.$off(e[i],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var l=s.length;while(l--)if(a=s[l],a===t||a.fn===t){s.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?A(n):n;for(var i=A(arguments,1),r='event handler for "'.concat(e,'"'),o=0,a=n.length;o<a;o++)zn(n[o],t,i,t,r)}return t}}var Li=null;function Ii(e){var t=Li;return Li=e,function(){Li=t}}function Ai(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ni(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,o=Ii(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n);var a=n;while(a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){zi(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||w(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),zi(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Pi(e,t,n){var i;e.$el=t,e.$options.render||(e.$options.render=ye),zi(e,"beforeMount"),i=function(){e._update(e._render(),n)};var r={before:function(){e._isMounted&&!e._isDestroyed&&zi(e,"beforeUpdate")}};new Si(e,i,R,r,!0),n=!1;var o=e._preWatchers;if(o)for(var a=0;a<o.length;a++)o[a].run();return null==e.$vnode&&(e._isMounted=!0,zi(e,"mounted")),e}function Ri(e,t,n,r,o){var a=r.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==i&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),c=!!(o||e.$options._renderChildren||l),u=e.$vnode;e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o;var d=r.data.attrs||i;e._attrsProxy&&mn(e._attrsProxy,d,u.data&&u.data.attrs||i,e,"$attrs")&&(c=!0),e.$attrs=d,n=n||i;var h=e.$options._parentListeners;if(e._listenersProxy&&mn(e._listenersProxy,n,h||i,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,Ei(e,n,h),t&&e.$options.props){Pe(!1);for(var f=e._props,p=e.$options._propKeys||[],g=0;g<p.length;g++){var m=p[g],v=e.$options.props;f[m]=Lr(m,v,t,e)}Pe(!0),e.$options.propsData=t}c&&(e.$slots=ln(o,r.context),e.$forceUpdate())}function Fi(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function ji(e,t){if(t){if(e._directInactive=!1,Fi(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)ji(e.$children[n]);zi(e,"activated")}}function Bi(e,t){if((!t||(e._directInactive=!0,!Fi(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Bi(e.$children[n]);zi(e,"deactivated")}}function zi(e,t,n,i){void 0===i&&(i=!0),Me();var r=ge;i&&ve(e);var o=e.$options[t],a="".concat(t," hook");if(o)for(var s=0,l=o.length;s<l;s++)zn(o[s],e,n||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),i&&ve(r),De()}var Vi=[],$i=[],Wi={},Hi=!1,Ui=!1,qi=0;function Gi(){qi=Vi.length=$i.length=0,Wi={},Hi=Ui=!1}var Ki=0,Yi=Date.now;if(J&&!te){var Xi=window.performance;Xi&&"function"===typeof Xi.now&&Yi()>document.createEvent("Event").timeStamp&&(Yi=function(){return Xi.now()})}var Zi=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Qi(){var e,t;for(Ki=Yi(),Ui=!0,Vi.sort(Zi),qi=0;qi<Vi.length;qi++)e=Vi[qi],e.before&&e.before(),t=e.id,Wi[t]=null,e.run();var n=$i.slice(),i=Vi.slice();Gi(),tr(n),Ji(i),Se(),de&&q.devtools&&de.emit("flush")}function Ji(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i&&i._watcher===n&&i._isMounted&&!i._isDestroyed&&zi(i,"updated")}}function er(e){e._inactive=!1,$i.push(e)}function tr(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,ji(e[t],!0)}function nr(e){var t=e.id;if(null==Wi[t]&&(e!==ke.target||!e.noRecurse)){if(Wi[t]=!0,Ui){var n=Vi.length-1;while(n>qi&&Vi[n].id>e.id)n--;Vi.splice(n+1,0,e)}else Vi.push(e);Hi||(Hi=!0,Qn(Qi))}}function ir(e){var t=e.$options.provide;if(t){var n=u(t)?t.call(e):t;if(!d(n))return;for(var i=Nt(e),r=pe?Reflect.ownKeys(n):Object.keys(n),o=0;o<r.length;o++){var a=r[o];Object.defineProperty(i,a,Object.getOwnPropertyDescriptor(n,a))}}}function rr(e){var t=or(e.$options.inject,e);t&&(Pe(!1),Object.keys(t).forEach((function(n){Be(e,n,t[n])})),Pe(!0))}function or(e,t){if(e){for(var n=Object.create(null),i=pe?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)n[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;n[o]=u(s)?s.call(t):s}else 0}}return n}}function ar(e,t,n,o,a){var l,c=this,u=a.options;C(o,"_uid")?(l=Object.create(o),l._original=o):(l=o,o=o._original);var d=s(u._compiled),h=!d;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||i,this.injections=or(u.inject,o),this.slots=function(){return c.$slots||dn(o,e.scopedSlots,c.$slots=ln(n,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return dn(o,e.scopedSlots,this.slots())}}),d&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=dn(o,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,i){var a=Nn(l,e,t,n,i,h);return a&&!r(a)&&(a.fnScopeId=u._scopeId,a.fnContext=o),a}:this._c=function(e,t,n,i){return Nn(l,e,t,n,i,h)}}function sr(e,t,n,o,s){var l=e.options,c={},u=l.props;if(a(u))for(var d in u)c[d]=Lr(d,u,t||i);else a(n.attrs)&&cr(c,n.attrs),a(n.props)&&cr(c,n.props);var h=new ar(n,c,s,o,e),f=l.render.call(null,h._c,h);if(f instanceof be)return lr(f,n,h.parent,l,h);if(r(f)){for(var p=Wt(f)||[],g=new Array(p.length),m=0;m<p.length;m++)g[m]=lr(p[m],n,h.parent,l,h);return g}}function lr(e,t,n,i,r){var o=we(e);return o.fnContext=n,o.fnOptions=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function cr(e,t){for(var n in t)e[O(n)]=t[n]}function ur(e){return e.name||e.__name||e._componentTag}sn(ar.prototype);var dr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;dr.prepatch(n,n)}else{var i=e.componentInstance=pr(e,Li);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Ri(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,zi(n,"mounted")),e.data.keepAlive&&(t._isMounted?er(n):ji(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Bi(t,!0):t.$destroy())}},hr=Object.keys(dr);function fr(e,t,n,i,r){if(!o(e)){var l=n.$options._base;if(d(e)&&(e=l.extend(e)),"function"===typeof e){var c;if(o(e.cid)&&(c=e,e=Tn(c,l),void 0===e))return En(c,t,n,i,r);t=t||{},to(e),a(t.model)&&vr(e.options,t);var u=zt(t,e,r);if(s(e.options.functional))return sr(e,u,t,n,i);var h=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}gr(t);var p=ur(e.options)||r,g=new be("vue-component-".concat(e.cid).concat(p?"-".concat(p):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:u,listeners:h,tag:r,children:i},c);return g}}}function pr(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return a(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function gr(e){for(var t=e.hook||(e.hook={}),n=0;n<hr.length;n++){var i=hr[n],r=t[i],o=dr[i];r===o||r&&r._merged||(t[i]=r?mr(o,r):o)}}function mr(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function vr(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[i],l=t.model.callback;a(s)?(r(s)?-1===s.indexOf(l):s!==l)&&(o[i]=[l].concat(s)):o[i]=l}var br=R,yr=q.optionMergeStrategies;function _r(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var i,r,o,a=pe?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)i=a[s],"__ob__"!==i&&(r=e[i],o=t[i],n&&C(e,i)?r!==o&&f(r)&&f(o)&&_r(r,o):ze(e,i,o));return e}function wr(e,t,n){return n?function(){var i=u(t)?t.call(n,n):t,r=u(e)?e.call(n,n):e;return i?_r(i,r):r}:t?e?function(){return _r(u(t)?t.call(this,this):t,u(e)?e.call(this,this):e)}:t:e}function xr(e,t){var n=t?e?e.concat(t):r(t)?t:[t]:e;return n?Cr(n):n}function Cr(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Sr(e,t,n,i){var r=Object.create(e||null);return t?N(r,t):r}yr.data=function(e,t,n){return n?wr(e,t,n):t&&"function"!==typeof t?e:wr(e,t)},U.forEach((function(e){yr[e]=xr})),H.forEach((function(e){yr[e+"s"]=Sr})),yr.watch=function(e,t,n,i){if(e===se&&(e=void 0),t===se&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var a in N(o,e),t){var s=o[a],l=t[a];s&&!r(s)&&(s=[s]),o[a]=s?s.concat(l):r(l)?l:[l]}return o},yr.props=yr.methods=yr.inject=yr.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return N(r,e),t&&N(r,t),r},yr.provide=function(e,t){return e?function(){var n=Object.create(null);return _r(n,u(e)?e.call(this):e),t&&_r(n,u(t)?t.call(this):t,!1),n}:t};var kr=function(e,t){return void 0===t?e:t};function Or(e,t){var n=e.props;if(n){var i,o,a,s={};if(r(n)){i=n.length;while(i--)o=n[i],"string"===typeof o&&(a=O(o),s[a]={type:null})}else if(f(n))for(var l in n)o=n[l],a=O(l),s[a]=f(o)?o:{type:o};else 0;e.props=s}}function Mr(e,t){var n=e.inject;if(n){var i=e.inject={};if(r(n))for(var o=0;o<n.length;o++)i[n[o]]={from:n[o]};else if(f(n))for(var a in n){var s=n[a];i[a]=f(s)?N({from:a},s):{from:s}}else 0}}function Dr(e){var t=e.directives;if(t)for(var n in t){var i=t[n];u(i)&&(t[n]={bind:i,update:i})}}function Er(e,t,n){if(u(t)&&(t=t.options),Or(t,n),Mr(t,n),Dr(t),!t._base&&(t.extends&&(e=Er(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Er(e,t.mixins[i],n);var o,a={};for(o in e)s(o);for(o in t)C(e,o)||s(o);function s(i){var r=yr[i]||kr;a[i]=r(e[i],t[i],n,i)}return a}function Tr(e,t,n,i){if("string"===typeof n){var r=e[t];if(C(r,n))return r[n];var o=O(n);if(C(r,o))return r[o];var a=M(o);if(C(r,a))return r[a];var s=r[n]||r[o]||r[a];return s}}function Lr(e,t,n,i){var r=t[e],o=!C(n,e),a=n[e],s=Rr(Boolean,r.type);if(s>-1)if(o&&!C(r,"default"))a=!1;else if(""===a||a===E(e)){var l=Rr(String,r.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Ir(i,r,e);var c=Ne;Pe(!0),je(a),Pe(c)}return a}function Ir(e,t,n){if(C(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:u(i)&&"Function"!==Nr(t.type)?i.call(e):i}}var Ar=/^\s*function (\w+)/;function Nr(e){var t=e&&e.toString().match(Ar);return t?t[1]:""}function Pr(e,t){return Nr(e)===Nr(t)}function Rr(e,t){if(!r(t))return Pr(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(Pr(t[n],e))return n;return-1}var Fr={enumerable:!0,configurable:!0,get:R,set:R};function jr(e,t,n){Fr.get=function(){return this[t][n]},Fr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Fr)}function Br(e){var t=e.$options;if(t.props&&zr(e,t.props),pn(e),t.methods&&Kr(e,t.methods),t.data)Vr(e);else{var n=je(e._data={});n&&n.vmCount++}t.computed&&Hr(e,t.computed),t.watch&&t.watch!==se&&Yr(e,t.watch)}function zr(e,t){var n=e.$options.propsData||{},i=e._props=He({}),r=e.$options._propKeys=[],o=!e.$parent;o||Pe(!1);var a=function(o){r.push(o);var a=Lr(o,t,n,e);Be(i,o,a),o in e||jr(e,"_props",o)};for(var s in t)a(s);Pe(!0)}function Vr(e){var t=e.$options.data;t=e._data=u(t)?$r(t,e):t||{},f(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var o=n[r];0,i&&C(i,o)||K(o)||jr(e,"_data",o)}var a=je(t);a&&a.vmCount++}function $r(e,t){Me();try{return e.call(t,t)}catch(rl){return Bn(rl,t,"data()"),{}}finally{De()}}var Wr={lazy:!0};function Hr(e,t){var n=e._computedWatchers=Object.create(null),i=ue();for(var r in t){var o=t[r],a=u(o)?o:o.get;0,i||(n[r]=new Si(e,a||R,R,Wr)),r in e||Ur(e,r,o)}}function Ur(e,t,n){var i=!ue();u(n)?(Fr.get=i?qr(t):Gr(n),Fr.set=R):(Fr.get=n.get?i&&!1!==n.cache?qr(t):Gr(n.get):R,Fr.set=n.set||R),Object.defineProperty(e,t,Fr)}function qr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ke.target&&t.depend(),t.value}}function Gr(e){return function(){return e.call(this,this)}}function Kr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?R:I(t[n],e)}function Yr(e,t){for(var n in t){var i=t[n];if(r(i))for(var o=0;o<i.length;o++)Xr(e,n,i[o]);else Xr(e,n,i)}}function Xr(e,t,n,i){return f(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function Zr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ze,e.prototype.$delete=Ve,e.prototype.$watch=function(e,t,n){var i=this;if(f(t))return Xr(i,e,t,n);n=n||{},n.user=!0;var r=new Si(i,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(r.expression,'"');Me(),zn(t,i,[r.value],i,o),De()}return function(){r.teardown()}}}var Qr=0;function Jr(e){e.prototype._init=function(e){var t=this;t._uid=Qr++,t._isVue=!0,t.__v_skip=!0,t._scope=new Dt(!0),t._scope._vm=!0,e&&e._isComponent?eo(t,e):t.$options=Er(to(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Ai(t),ki(t),kn(t),zi(t,"beforeCreate",void 0,!1),rr(t),Br(t),ir(t),zi(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function eo(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function to(e){var t=e.options;if(e.super){var n=to(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=no(e);r&&N(e.extendOptions,r),t=e.options=Er(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function no(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function io(e){this._init(e)}function ro(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}function oo(e){e.mixin=function(e){return this.options=Er(this.options,e),this}}function ao(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=ur(e)||ur(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Er(n.options,e),a["super"]=n,a.options.props&&so(a),a.options.computed&&lo(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,H.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=N({},a.options),r[i]=a,a}}function so(e){var t=e.options.props;for(var n in t)jr(e.prototype,"_props",n)}function lo(e){var t=e.options.computed;for(var n in t)Ur(e.prototype,n,t[n])}function co(e){H.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&f(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function uo(e){return e&&(ur(e.Ctor.options)||e.tag)}function ho(e,t){return r(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function fo(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&po(n,o,i,r)}}}function po(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,w(n,t)}Jr(io),Zr(io),Ti(io),Ni(io),Mn(io);var go=[String,RegExp,Array],mo={name:"keep-alive",abstract:!0,props:{include:go,exclude:go,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,i=e.vnodeToCache,r=e.keyToCache;if(i){var o=i.tag,a=i.componentInstance,s=i.componentOptions;t[r]={name:uo(s),tag:o,componentInstance:a},n.push(r),this.max&&n.length>parseInt(this.max)&&po(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)po(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){fo(e,(function(e){return ho(t,e)}))})),this.$watch("exclude",(function(t){fo(e,(function(e){return!ho(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=Ln(e),n=t&&t.componentOptions;if(n){var i=uo(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!ho(o,i))||a&&i&&ho(a,i))return t;var s=this,l=s.cache,c=s.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,w(c,u),c.push(u)):(this.vnodeToCache=t,this.keyToCache=u),t.data.keepAlive=!0}return t||e&&e[0]}},vo={KeepAlive:mo};function bo(e){var t={get:function(){return q}};Object.defineProperty(e,"config",t),e.util={warn:br,extend:N,mergeOptions:Er,defineReactive:Be},e.set=ze,e.delete=Ve,e.nextTick=Qn,e.observable=function(e){return je(e),e},e.options=Object.create(null),H.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,N(e.options.components,vo),ro(e),oo(e),ao(e),co(e)}bo(io),Object.defineProperty(io.prototype,"$isServer",{get:ue}),Object.defineProperty(io.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(io,"FunctionalRenderContext",{value:ar}),io.version=vi;var yo=y("style,class"),_o=y("input,textarea,option,select,progress"),wo=function(e,t,n){return"value"===n&&_o(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},xo=y("contenteditable,draggable,spellcheck"),Co=y("events,caret,typing,plaintext-only"),So=function(e,t){return Eo(t)||"false"===t?"false":"contenteditable"===e&&Co(t)?t:"true"},ko=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Oo="http://www.w3.org/1999/xlink",Mo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Do=function(e){return Mo(e)?e.slice(6,e.length):""},Eo=function(e){return null==e||!1===e};function To(e){var t=e.data,n=e,i=e;while(a(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Lo(i.data,t));while(a(n=n.parent))n&&n.data&&(t=Lo(t,n.data));return Io(t.staticClass,t.class)}function Lo(e,t){return{staticClass:Ao(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Io(e,t){return a(e)||a(t)?Ao(e,No(t)):""}function Ao(e,t){return e?t?e+" "+t:e:t||""}function No(e){return Array.isArray(e)?Po(e):d(e)?Ro(e):"string"===typeof e?e:""}function Po(e){for(var t,n="",i=0,r=e.length;i<r;i++)a(t=No(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function Ro(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var Fo={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},jo=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Bo=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),zo=function(e){return jo(e)||Bo(e)};function Vo(e){return Bo(e)?"svg":"math"===e?"math":void 0}var $o=Object.create(null);function Wo(e){if(!J)return!0;if(zo(e))return!1;if(e=e.toLowerCase(),null!=$o[e])return $o[e];var t=document.createElement(e);return e.indexOf("-")>-1?$o[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:$o[e]=/HTMLUnknownElement/.test(t.toString())}var Ho=y("text,number,password,search,email,tel,url");function Uo(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function qo(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Go(e,t){return document.createElementNS(Fo[e],t)}function Ko(e){return document.createTextNode(e)}function Yo(e){return document.createComment(e)}function Xo(e,t,n){e.insertBefore(t,n)}function Zo(e,t){e.removeChild(t)}function Qo(e,t){e.appendChild(t)}function Jo(e){return e.parentNode}function ea(e){return e.nextSibling}function ta(e){return e.tagName}function na(e,t){e.textContent=t}function ia(e,t){e.setAttribute(t,"")}var ra=Object.freeze({__proto__:null,createElement:qo,createElementNS:Go,createTextNode:Ko,createComment:Yo,insertBefore:Xo,removeChild:Zo,appendChild:Qo,parentNode:Jo,nextSibling:ea,tagName:ta,setTextContent:na,setStyleScope:ia}),oa={create:function(e,t){aa(t)},update:function(e,t){e.data.ref!==t.data.ref&&(aa(e,!0),aa(t))},destroy:function(e){aa(e,!0)}};function aa(e,t){var n=e.data.ref;if(a(n)){var i=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(u(n))zn(n,i,[s],i,"template ref function");else{var c=e.data.refInFor,d="string"===typeof n||"number"===typeof n,h=Je(n),f=i.$refs;if(d||h)if(c){var p=d?f[n]:n.value;t?r(p)&&w(p,o):r(p)?p.includes(o)||p.push(o):d?(f[n]=[o],sa(i,n,f[n])):n.value=[o]}else if(d){if(t&&f[n]!==o)return;f[n]=l,sa(i,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function sa(e,t,n){var i=e._setupState;i&&C(i,t)&&(Je(i[t])?i[t].value=n:i[t]=n)}var la=new be("",{},[]),ca=["create","activate","update","remove","destroy"];function ua(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&da(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function da(e,t){if("input"!==e.tag)return!0;var n,i=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return i===r||Ho(i)&&Ho(r)}function ha(e,t,n){var i,r,o={};for(i=t;i<=n;++i)r=e[i].key,a(r)&&(o[r]=i);return o}function fa(e){var t,n,i={},l=e.modules,u=e.nodeOps;for(t=0;t<ca.length;++t)for(i[ca[t]]=[],n=0;n<l.length;++n)a(l[n][ca[t]])&&i[ca[t]].push(l[n][ca[t]]);function d(e){return new be(u.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function n(){0===--n.listeners&&f(e)}return n.listeners=t,n}function f(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function p(e,t,n,i,r,o,l){if(a(e.elm)&&a(o)&&(e=o[l]=we(e)),e.isRootInsert=!r,!g(e,t,n,i)){var c=e.data,d=e.children,h=e.tag;a(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),C(e),_(e,d,t),a(c)&&x(e,t),b(n,e.elm,i)):s(e.isComment)?(e.elm=u.createComment(e.text),b(n,e.elm,i)):(e.elm=u.createTextNode(e.text),b(n,e.elm,i))}}function g(e,t,n,i){var r=e.data;if(a(r)){var o=a(e.componentInstance)&&r.keepAlive;if(a(r=r.hook)&&a(r=r.init)&&r(e,!1),a(e.componentInstance))return m(e,t),b(n,e.elm,i),s(o)&&v(e,t,n,i),!0}}function m(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,w(e)?(x(e,t),C(e)):(aa(e),t.push(e))}function v(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,a(o=s.data)&&a(o=o.transition)){for(o=0;o<i.activate.length;++o)i.activate[o](la,s);t.push(s);break}b(n,e.elm,r)}function b(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function _(e,t,n){if(r(t)){0;for(var i=0;i<t.length;++i)p(t[i],n,e.elm,null,!0,t,i)}else c(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function w(e){while(e.componentInstance)e=e.componentInstance._vnode;return a(e.tag)}function x(e,n){for(var r=0;r<i.create.length;++r)i.create[r](la,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(la,e),a(t.insert)&&n.push(e))}function C(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}a(t=Li)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function S(e,t,n,i,r,o){for(;i<=r;++i)p(n[i],o,e,t,!1,n,i)}function k(e){var t,n,r=e.data;if(a(r))for(a(t=r.hook)&&a(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)k(e.children[n])}function O(e,t,n){for(;t<=n;++t){var i=e[t];a(i)&&(a(i.tag)?(M(i),k(i)):f(i.elm))}}function M(e,t){if(a(t)||a(e.data)){var n,r=i.remove.length+1;for(a(t)?t.listeners+=r:t=h(e.elm,r),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&M(n,t),n=0;n<i.remove.length;++n)i.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else f(e.elm)}function D(e,t,n,i,r){var s,l,c,d,h=0,f=0,g=t.length-1,m=t[0],v=t[g],b=n.length-1,y=n[0],_=n[b],w=!r;while(h<=g&&f<=b)o(m)?m=t[++h]:o(v)?v=t[--g]:ua(m,y)?(T(m,y,i,n,f),m=t[++h],y=n[++f]):ua(v,_)?(T(v,_,i,n,b),v=t[--g],_=n[--b]):ua(m,_)?(T(m,_,i,n,b),w&&u.insertBefore(e,m.elm,u.nextSibling(v.elm)),m=t[++h],_=n[--b]):ua(v,y)?(T(v,y,i,n,f),w&&u.insertBefore(e,v.elm,m.elm),v=t[--g],y=n[++f]):(o(s)&&(s=ha(t,h,g)),l=a(y.key)?s[y.key]:E(y,t,h,g),o(l)?p(y,i,e,m.elm,!1,n,f):(c=t[l],ua(c,y)?(T(c,y,i,n,f),t[l]=void 0,w&&u.insertBefore(e,c.elm,m.elm)):p(y,i,e,m.elm,!1,n,f)),y=n[++f]);h>g?(d=o(n[b+1])?null:n[b+1].elm,S(e,d,n,f,b,i)):f>b&&O(t,h,g)}function E(e,t,n,i){for(var r=n;r<i;r++){var o=t[r];if(a(o)&&ua(e,o))return r}}function T(e,t,n,r,l,c){if(e!==t){a(t.elm)&&a(r)&&(t=r[l]=we(t));var d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?A(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;a(f)&&a(h=f.hook)&&a(h=h.prepatch)&&h(e,t);var p=e.children,g=t.children;if(a(f)&&w(t)){for(h=0;h<i.update.length;++h)i.update[h](e,t);a(h=f.hook)&&a(h=h.update)&&h(e,t)}o(t.text)?a(p)&&a(g)?p!==g&&D(d,p,g,n,c):a(g)?(a(e.text)&&u.setTextContent(d,""),S(d,null,g,0,g.length-1,n)):a(p)?O(p,0,p.length-1):a(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),a(f)&&a(h=f.hook)&&a(h=h.postpatch)&&h(e,t)}}}function L(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var I=y("attrs,class,staticClass,staticStyle,key");function A(e,t,n,i){var r,o=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(r=l.hook)&&a(r=r.init)&&r(t,!0),a(r=t.componentInstance)))return m(t,n),!0;if(a(o)){if(a(c))if(e.hasChildNodes())if(a(r=l)&&a(r=r.domProps)&&a(r=r.innerHTML)){if(r!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!A(d,c[h],n,i)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else _(t,c,n);if(a(l)){var f=!1;for(var p in l)if(!I(p)){f=!0,x(t,n);break}!f&&l["class"]&&_i(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r){if(!o(t)){var l=!1,c=[];if(o(e))l=!0,p(t,c);else{var h=a(e.nodeType);if(!h&&ua(e,t))T(e,t,c,null,null,r);else{if(h){if(1===e.nodeType&&e.hasAttribute(W)&&(e.removeAttribute(W),n=!0),s(n)&&A(e,t,c))return L(t,c,!0),e;e=d(e)}var f=e.elm,g=u.parentNode(f);if(p(t,c,f._leaveCb?null:g,u.nextSibling(f)),a(t.parent)){var m=t.parent,v=w(t);while(m){for(var b=0;b<i.destroy.length;++b)i.destroy[b](m);if(m.elm=t.elm,v){for(var y=0;y<i.create.length;++y)i.create[y](la,m);var _=m.data.hook.insert;if(_.merged)for(var x=1;x<_.fns.length;x++)_.fns[x]()}else aa(m);m=m.parent}}a(g)?O([e],0,0):a(e.tag)&&k(e)}}return L(t,c,l),t.elm}a(e)&&k(e)}}var pa={create:ga,update:ga,destroy:function(e){ga(e,la)}};function ga(e,t){(e.data.directives||t.data.directives)&&ma(e,t)}function ma(e,t){var n,i,r,o=e===la,a=t===la,s=ba(e.data.directives,e.context),l=ba(t.data.directives,t.context),c=[],u=[];for(n in l)i=s[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,_a(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(_a(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var d=function(){for(var n=0;n<c.length;n++)_a(c[n],"inserted",t,e)};o?Bt(t,"insert",d):d()}if(u.length&&Bt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)_a(u[n],"componentUpdated",t,e)})),!o)for(n in s)l[n]||_a(s[n],"unbind",e,e,a)}var va=Object.create(null);function ba(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++){if(i=e[n],i.modifiers||(i.modifiers=va),r[ya(i)]=i,t._setupState&&t._setupState.__sfc){var o=i.def||Tr(t,"_setupState","v-"+i.name);i.def="function"===typeof o?{bind:o,update:o}:o}i.def=i.def||Tr(t.$options,"directives",i.name,!0)}return r}function ya(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function _a(e,t,n,i,r){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,i,r)}catch(rl){Bn(rl,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var wa=[oa,pa];function xa(e,t){var n=t.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!o(e.data.attrs)||!o(t.data.attrs))){var i,r,l,c=t.elm,u=e.data.attrs||{},d=t.data.attrs||{};for(i in(a(d.__ob__)||s(d._v_attr_proxy))&&(d=t.data.attrs=N({},d)),d)r=d[i],l=u[i],l!==r&&Ca(c,i,r,t.data.pre);for(i in(te||ie)&&d.value!==u.value&&Ca(c,"value",d.value),u)o(d[i])&&(Mo(i)?c.removeAttributeNS(Oo,Do(i)):xo(i)||c.removeAttribute(i))}}function Ca(e,t,n,i){i||e.tagName.indexOf("-")>-1?Sa(e,t,n):ko(t)?Eo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):xo(t)?e.setAttribute(t,So(t,n)):Mo(t)?Eo(n)?e.removeAttributeNS(Oo,Do(t)):e.setAttributeNS(Oo,t,n):Sa(e,t,n)}function Sa(e,t,n){if(Eo(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var ka={create:xa,update:xa};function Oa(e,t){var n=t.elm,i=t.data,r=e.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=To(t),l=n._transitionClasses;a(l)&&(s=Ao(s,No(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Ma,Da={create:Oa,update:Oa},Ea="__r",Ta="__c";function La(e){if(a(e[Ea])){var t=te?"change":"input";e[t]=[].concat(e[Ea],e[t]||[]),delete e[Ea]}a(e[Ta])&&(e.change=[].concat(e[Ta],e.change||[]),delete e[Ta])}function Ia(e,t,n){var i=Ma;return function r(){var o=t.apply(null,arguments);null!==o&&Pa(e,r,n,i)}}var Aa=Hn&&!(ae&&Number(ae[1])<=53);function Na(e,t,n,i){if(Aa){var r=Ki,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ma.addEventListener(e,t,le?{capture:n,passive:i}:n)}function Pa(e,t,n,i){(i||Ma).removeEventListener(e,t._wrapper||t,n)}function Ra(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Ma=t.elm||e.elm,La(n),jt(n,i,Na,Pa,Ia,t.context),Ma=void 0}}var Fa,ja={create:Ra,update:Ra,destroy:function(e){return Ra(e,la)}};function Ba(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,i,r=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=N({},c)),l)n in c||(r[n]="");for(n in c){if(i=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var u=o(i)?"":String(i);za(r,u)&&(r.value=u)}else if("innerHTML"===n&&Bo(r.tagName)&&o(r.innerHTML)){Fa=Fa||document.createElement("div"),Fa.innerHTML="<svg>".concat(i,"</svg>");var d=Fa.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(d.firstChild)r.appendChild(d.firstChild)}else if(i!==l[n])try{r[n]=i}catch(rl){}}}}function za(e,t){return!e.composing&&("OPTION"===e.tagName||Va(e,t)||$a(e,t))}function Va(e,t){var n=!0;try{n=document.activeElement!==e}catch(rl){}return n&&e.value!==t}function $a(e,t){var n=e.value,i=e._vModifiers;if(a(i)){if(i.number)return b(n)!==b(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var Wa={create:Ba,update:Ba},Ha=S((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Ua(e){var t=qa(e.style);return e.staticStyle?N(e.staticStyle,t):t}function qa(e){return Array.isArray(e)?P(e):"string"===typeof e?Ha(e):e}function Ga(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Ua(r.data))&&N(i,n)}(n=Ua(e.data))&&N(i,n);var o=e;while(o=o.parent)o.data&&(n=Ua(o.data))&&N(i,n);return i}var Ka,Ya=/^--/,Xa=/\s*!important$/,Za=function(e,t,n){if(Ya.test(t))e.style.setProperty(t,n);else if(Xa.test(n))e.style.setProperty(E(t),n.replace(Xa,""),"important");else{var i=Ja(t);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)e.style[i]=n[r];else e.style[i]=n}},Qa=["Webkit","Moz","ms"],Ja=S((function(e){if(Ka=Ka||document.createElement("div").style,e=O(e),"filter"!==e&&e in Ka)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Qa.length;n++){var i=Qa[n]+t;if(i in Ka)return i}}));function es(e,t){var n=t.data,i=e.data;if(!(o(n.staticStyle)&&o(n.style)&&o(i.staticStyle)&&o(i.style))){var r,s,l=t.elm,c=i.staticStyle,u=i.normalizedStyle||i.style||{},d=c||u,h=qa(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?N({},h):h;var f=Ga(t,!0);for(s in d)o(f[s])&&Za(l,s,"");for(s in f)r=f[s],r!==d[s]&&Za(l,s,null==r?"":r)}}var ts={create:es,update:es},ns=/\s+/;function is(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ns).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function rs(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ns).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function os(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&N(t,as(e.name||"v")),N(t,e),t}return"string"===typeof e?as(e):void 0}}var as=S((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),ss=J&&!ne,ls="transition",cs="animation",us="transition",ds="transitionend",hs="animation",fs="animationend";ss&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(us="WebkitTransition",ds="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(hs="WebkitAnimation",fs="webkitAnimationEnd"));var ps=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function gs(e){ps((function(){ps(e)}))}function ms(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),is(e,t))}function vs(e,t){e._transitionClasses&&w(e._transitionClasses,t),rs(e,t)}function bs(e,t,n){var i=_s(e,t),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===ls?ds:fs,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),e.addEventListener(s,u)}var ys=/\b(transform|all)(,|$)/;function _s(e,t){var n,i=window.getComputedStyle(e),r=(i[us+"Delay"]||"").split(", "),o=(i[us+"Duration"]||"").split(", "),a=ws(r,o),s=(i[hs+"Delay"]||"").split(", "),l=(i[hs+"Duration"]||"").split(", "),c=ws(s,l),u=0,d=0;t===ls?a>0&&(n=ls,u=a,d=o.length):t===cs?c>0&&(n=cs,u=c,d=l.length):(u=Math.max(a,c),n=u>0?a>c?ls:cs:null,d=n?n===ls?o.length:l.length:0);var h=n===ls&&ys.test(i[us+"Property"]);return{type:n,timeout:u,propCount:d,hasTransform:h}}function ws(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return xs(t)+xs(e[n])})))}function xs(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Cs(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var i=os(e.data.transition);if(!o(i)&&!a(n._enterCb)&&1===n.nodeType){var r=i.css,s=i.type,l=i.enterClass,c=i.enterToClass,h=i.enterActiveClass,f=i.appearClass,p=i.appearToClass,g=i.appearActiveClass,m=i.beforeEnter,v=i.enter,y=i.afterEnter,_=i.enterCancelled,w=i.beforeAppear,x=i.appear,C=i.afterAppear,S=i.appearCancelled,k=i.duration,O=Li,M=Li.$vnode;while(M&&M.parent)O=M.context,M=M.parent;var D=!O._isMounted||!e.isRootInsert;if(!D||x||""===x){var E=D&&f?f:l,T=D&&g?g:h,L=D&&p?p:c,I=D&&w||m,A=D&&u(x)?x:v,N=D&&C||y,P=D&&S||_,R=b(d(k)?k.enter:k);0;var F=!1!==r&&!ne,j=Os(A),B=n._enterCb=V((function(){F&&(vs(n,L),vs(n,T)),B.cancelled?(F&&vs(n,E),P&&P(n)):N&&N(n),n._enterCb=null}));e.data.show||Bt(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),A&&A(n,B)})),I&&I(n),F&&(ms(n,E),ms(n,T),gs((function(){vs(n,E),B.cancelled||(ms(n,L),j||(ks(R)?setTimeout(B,R):bs(n,s,B)))}))),e.data.show&&(t&&t(),A&&A(n,B)),F||j||B()}}}function Ss(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var i=os(e.data.transition);if(o(i)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var r=i.css,s=i.type,l=i.leaveClass,c=i.leaveToClass,u=i.leaveActiveClass,h=i.beforeLeave,f=i.leave,p=i.afterLeave,g=i.leaveCancelled,m=i.delayLeave,v=i.duration,y=!1!==r&&!ne,_=Os(f),w=b(d(v)?v.leave:v);0;var x=n._leaveCb=V((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(vs(n,c),vs(n,u)),x.cancelled?(y&&vs(n,l),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(C):C()}function C(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),y&&(ms(n,l),ms(n,u),gs((function(){vs(n,l),x.cancelled||(ms(n,c),_||(ks(w)?setTimeout(x,w):bs(n,s,x)))}))),f&&f(n,x),y||_||x())}}function ks(e){return"number"===typeof e&&!isNaN(e)}function Os(e){if(o(e))return!1;var t=e.fns;return a(t)?Os(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ms(e,t){!0!==t.data.show&&Cs(t)}var Ds=J?{create:Ms,activate:Ms,remove:function(e,t){!0!==e.data.show?Ss(e,t):t()}}:{},Es=[ka,Da,ja,Wa,ts,Ds],Ts=Es.concat(wa),Ls=fa({nodeOps:ra,modules:Ts});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Bs(e,"input")}));var Is={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?Bt(n,"postpatch",(function(){Is.componentUpdated(e,t,n)})):As(e,t,n.context),e._vOptions=[].map.call(e.options,Rs)):("textarea"===n.tag||Ho(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Fs),e.addEventListener("compositionend",js),e.addEventListener("change",js),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){As(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Rs);if(r.some((function(e,t){return!B(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return Ps(e,r)})):t.value!==t.oldValue&&Ps(t.value,r);o&&Bs(e,"change")}}}};function As(e,t,n){Ns(e,t,n),(te||ie)&&setTimeout((function(){Ns(e,t,n)}),0)}function Ns(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],r)o=z(i,Rs(a))>-1,a.selected!==o&&(a.selected=o);else if(B(Rs(a),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Ps(e,t){return t.every((function(t){return!B(t,e)}))}function Rs(e){return"_value"in e?e._value:e.value}function Fs(e){e.target.composing=!0}function js(e){e.target.composing&&(e.target.composing=!1,Bs(e.target,"input"))}function Bs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function zs(e){return!e.componentInstance||e.data&&e.data.transition?e:zs(e.componentInstance._vnode)}var Vs={bind:function(e,t,n){var i=t.value;n=zs(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Cs(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=zs(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?Cs(n,(function(){e.style.display=e.__vOriginalDisplay})):Ss(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},$s={model:Is,show:Vs},Ws={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hs(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hs(Ln(t.children)):e}function Us(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var i in r)t[O(i)]=r[i];return t}function qs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Gs(e){while(e=e.parent)if(e.data.transition)return!0}function Ks(e,t){return t.key===e.key&&t.tag===e.tag}var Ys=function(e){return e.tag||un(e)},Xs=function(e){return"show"===e.name},Zs={name:"transition",props:Ws,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ys),n.length)){0;var i=this.mode;0;var r=n[0];if(Gs(this.$vnode))return r;var o=Hs(r);if(!o)return r;if(this._leaving)return qs(e,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Us(this),l=this._vnode,u=Hs(l);if(o.data.directives&&o.data.directives.some(Xs)&&(o.data.show=!0),u&&u.data&&!Ks(o,u)&&!un(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=N({},s);if("out-in"===i)return this._leaving=!0,Bt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),qs(e,r);if("in-out"===i){if(un(o))return l;var h,f=function(){h()};Bt(s,"afterEnter",f),Bt(s,"enterCancelled",f),Bt(d,"delayLeave",(function(e){h=e}))}}return r}}},Qs=N({tag:String,moveClass:String},Ws);delete Qs.mode;var Js={props:Qs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Ii(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Us(this),s=0;s<r.length;s++){var l=r[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(i){var c=[],u=[];for(s=0;s<i.length;s++){l=i[s];l.data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(el),e.forEach(tl),e.forEach(nl),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;ms(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(ds,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(ds,e),n._moveCb=null,vs(n,t))})}})))},methods:{hasMove:function(e,t){if(!ss)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){rs(n,e)})),is(n,t),n.style.display="none",this.$el.appendChild(n);var i=_s(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function el(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function tl(e){e.data.newPos=e.elm.getBoundingClientRect()}function nl(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(i,"px,").concat(r,"px)"),o.transitionDuration="0s"}}var il={Transition:Zs,TransitionGroup:Js};io.config.mustUseProp=wo,io.config.isReservedTag=zo,io.config.isReservedAttr=yo,io.config.getTagNamespace=Vo,io.config.isUnknownElement=Wo,N(io.options.directives,$s),N(io.options.components,il),io.prototype.__patch__=J?Ls:R,io.prototype.$mount=function(e,t){return e=e&&J?Uo(e):void 0,Pi(this,e,t)},J&&setTimeout((function(){q.devtools&&de&&de.emit("init",io)}),0)}.call(this,n("c8ba"))},"2b4c":function(e,t,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))};s.store=i},"2b79":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,i=n.hasher.create(),o=r.create(),a=o.words,s=n.keySize,l=n.iterations;while(a.length<s){c&&i.update(c);var c=i.update(e).finalize(t);i.reset();for(var u=1;u<l;u++)c=i.finalize(c),i.reset();o.concat(c)}return o.sigBytes=4*s,o}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF}))},"2b81":function(e,t,n){var i=n("1fdd");function r(e,t){return-1!==i(e,t)}e.exports=r},"2bb5":function(e,t,n){"use strict";t.__esModule=!0;n("8122");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},"2c38":function(e,t,n){var i=n("e8c0"),r=7*i;e.exports=r},"2c63":function(e,t,n){var i=n("d388"),r=i("string");e.exports=r},"2c64":function(e,t,n){var i=n("b552"),r=n("a20e"),o=n("e095"),a=n("2610"),s=n("d074");function l(e){return function(){return i(e)}}function c(e,t,n){var i,c={};return e&&(t&&r(t)?t=l(t):o(t)||(t=a(t)),s(e,(function(r,o){i=t?t.call(n,r,o,e):r,c[i]?c[i].push(r):c[i]=[r]}))),c}e.exports=c},"2c87":function(e,t,n){var i=n("2c64"),r=n("87bb");function o(e,t,n){var o=i(e,t,n||this);return r(o,(function(e,t){o[t]=e.length})),o}e.exports=o},"2caf":function(e,t,n){var i=n("5ca1");i(i.S,"Array",{isArray:n("1169")})},"2d00":function(e,t){e.exports=!1},"2d34":function(e,t,n){var i=n("5ca1"),r=n("38fd"),o=n("cb7c");i(i.S,"Reflect",{getPrototypeOf:function(e){return r(o(e))}})},"2d5c":function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2db9":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=y,t.getBezierCurveLength=_,t["default"]=void 0;var r=i(n("278c")),o=i(n("448a")),a=Math.sqrt,s=Math.pow,l=Math.ceil,c=Math.abs,u=50;function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,i=e[0],r=e[n][2],a=e.slice(1),s=a.map((function(e,t){var n=0===t?i:a[t-1][2];return h.apply(void 0,[n].concat((0,o["default"])(e)))})),l=new Array(n).fill(u),c=m(s,l),d=b(c,s,a,t);return d.segmentPoints.push(r),d}function h(e,t,n,i){return function(r){var o=1-r,a=s(o,3),l=s(o,2),c=s(r,3),u=s(r,2);return[e[0]*a+3*t[0]*r*l+3*n[0]*u*o+i[0]*c,e[1]*a+3*t[1]*r*l+3*n[1]*u*o+i[1]*c]}}function f(e,t){var n=(0,r["default"])(e,2),i=n[0],o=n[1],l=(0,r["default"])(t,2),c=l[0],u=l[1];return a(s(i-c,2)+s(o-u,2))}function p(e){return e.reduce((function(e,t){return e+t}),0)}function g(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return f(e[n],e[n+1])}))}))}function m(e,t){return e.map((function(e,n){var i=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*i)}))}))}function v(e,t){return e.map((function(e){return e.map((function(e){return c(e-t)}))})).map((function(e){return p(e)})).reduce((function(e,t){return e+t}),0)}function b(e,t,n,i){var r=4,o=1,a=function(){var a=e.reduce((function(e,t){return e+t.length}),0);e.forEach((function(e,t){return e.push(n[t][2])}));var s=g(e),c=s.reduce((function(e,t){return e+t.length}),0),u=s.map((function(e){return p(e)})),d=p(u),h=d/c,f=v(s,h);if(f<=i)return"break";a=l(h/i*a*1.1);var b=u.map((function(e){return l(e/d*a)}));e=m(t,b),a=e.reduce((function(e,t){return e+t.length}),0);var y=JSON.parse(JSON.stringify(e));y.forEach((function(e,t){return e.push(n[t][2])})),s=g(y),c=s.reduce((function(e,t){return e+t.length}),0),u=s.map((function(e){return p(e)})),d=p(u),h=d/c;var _=1/a/10;t.forEach((function(t,n){for(var i=b[n],o=new Array(i).fill("").map((function(e,t){return t/b[n]})),a=0;a<r;a++)for(var s=g([e[n]])[0],l=s.map((function(e){return e-h})),c=0,u=0;u<i;u++){if(0===u)return;c+=l[u-1],o[u]-=_*c,o[u]>1&&(o[u]=1),o[u]<0&&(o[u]=0),e[n][u]=t(o[u])}})),r*=4,o++};do{var s=a();if("break"===s)break}while(r<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:o,rounds:r}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=d(e,t),i=n.segmentPoints;return i}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=d(e,t),i=n.segmentPoints,r=g([i])[0],o=p(r);return o}var w=y;t["default"]=w},"2e08":function(e,t,n){var i=n("9def"),r=n("9744"),o=n("be13");e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,c=void 0===n?" ":String(n),u=i(t);if(u<=l||""==c)return s;var d=u-l,h=r.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),a?h+s:s+h}},"2e37":function(e,t,n){var i=n("5ca1");i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f21":function(e,t,n){"use strict";var i=n("79e5");e.exports=function(e,t){return!!e&&i((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},"2f62":function(e,t,n){"use strict";(function(e){
  23. /*!
  24. * vuex v3.6.2
  25. * (c) 2021 Evan You
  26. * @license MIT
  27. */
  28. function i(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return A}));var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=l(e[n],t)})),i}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function h(e,t){return function(){return e(t)}}var f=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},f.prototype.forEachChild=function(e){c(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,p);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new f(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var b=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&I(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;C(this,c,[],this._modules.root),x(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:v.config.devtools;u&&a(this)},y={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;C(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};c(r,(function(t,n){o[n]=h(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&E(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function C(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=T(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(s,l,i.state)}))}var c=i.context=S(e,a,n);i.forEachMutation((function(t,n){var i=a+n;O(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;M(e,i,r,c)})),i.forEachGetter((function(t,n){var i=a+n;D(e,i,t,c)})),i.forEachChild((function(i,o){C(e,t,n.concat(o),i,r)}))}function S(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=L(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=L(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return k(e,t)}},state:{get:function(){return T(e.state,n)}}}),r}function k(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function O(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function M(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return d(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function D(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function E(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function T(e,t){return t.reduce((function(e,t){return e[t]}),e)}function L(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function I(e){v&&e===v||(v=e,i(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},b.prototype.commit=function(e,t,n){var i=this,r=L(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},b.prototype.dispatch=function(e,t){var n=this,i=L(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(c){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(c){0}t(e)}))}))}},b.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},b.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},b.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},b.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},b.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),C(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},b.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=T(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},b.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},b.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},b.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(b.prototype,y);var A=z((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=V(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),N=z((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=V(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),P=z((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||V(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),R=z((function(e,t){var n={};return j(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=V(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),F=function(e){return{mapState:A.bind(null,e),mapGetters:P.bind(null,e),mapMutations:N.bind(null,e),mapActions:R.bind(null,e)}};function j(e){return B(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function B(e){return Array.isArray(e)||u(e)}function z(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function V(e,t,n){var i=e._modulesNamespaceMap[n];return i}function $(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=l(e.state);"undefined"!==typeof u&&(s&&e.subscribe((function(e,o){var a=l(o);if(n(e,d,a)){var s=U(),c=r(e),h="mutation "+e.type+s;W(u,h,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),H(u)}d=a})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var i=U(),r=a(e),s="action "+e.type+i;W(u,s,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),H(u)}})))}}function W(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function U(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function G(e,t){return q("0",t-e.toString().length)+e}var K={Store:b,install:I,version:"3.6.2",mapState:A,mapMutations:N,mapGetters:P,mapActions:R,createNamespacedHelpers:F,createLogger:$};t["a"]=K}).call(this,n("c8ba"))},"2f78":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{isubh:function(e,t,n,i){var r=e>>>0,o=t>>>0,a=n>>>0;return o-(i>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(e){return!!~r(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30e3":function(e,t,n){var i=n("9a44");function r(e,t,n){var r=i(e),o=arguments.length;return o>1&&(o>2?r.substring(0,n).indexOf(t)===n-1:r.indexOf(t)===r.length-1)}e.exports=r},"30f1":function(e,t,n){"use strict";var i=n("b8e3"),r=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),c=n("45f2"),u=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,b,y,_){l(n,t,v);var w,x,C,S=function(e){if(!h&&e in D)return D[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=b==g,M=!1,D=e.prototype,E=D[d]||D[f]||b&&D[b],T=E||S(b),L=b?O?S("entries"):T:void 0,I="Array"==t&&D.entries||E;if(I&&(C=u(I.call(new e)),C!==Object.prototype&&C.next&&(c(C,k,!0),i||"function"==typeof C[d]||a(C,d,m))),O&&E&&E.name!==g&&(M=!0,T=function(){return E.call(this)}),i&&!_||!h&&!M&&D[d]||a(D,d,T),s[t]=T,s[k]=m,b)if(w={values:O?T:S(g),keys:y?T:S(p),entries:L},_)for(x in w)x in D||o(D,x,w[x]);else r(r.P+r.F*(h||M),t,w);return w}},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return My})),n.d(t,"dependencies",(function(){return Dy})),n.d(t,"PRIORITY",(function(){return Uy})),n.d(t,"init",(function(){return B_})),n.d(t,"connect",(function(){return z_})),n.d(t,"disConnect",(function(){return V_})),n.d(t,"disconnect",(function(){return $_})),n.d(t,"dispose",(function(){return W_})),n.d(t,"getInstanceByDom",(function(){return H_})),n.d(t,"getInstanceById",(function(){return U_})),n.d(t,"registerTheme",(function(){return q_})),n.d(t,"registerPreprocessor",(function(){return G_})),n.d(t,"registerProcessor",(function(){return K_})),n.d(t,"registerPostInit",(function(){return Y_})),n.d(t,"registerPostUpdate",(function(){return X_})),n.d(t,"registerUpdateLifecycle",(function(){return Z_})),n.d(t,"registerAction",(function(){return Q_})),n.d(t,"registerCoordinateSystem",(function(){return J_})),n.d(t,"getCoordinateSystemDimensions",(function(){return ew})),n.d(t,"registerLocale",(function(){return ou})),n.d(t,"registerLayout",(function(){return tw})),n.d(t,"registerVisual",(function(){return nw})),n.d(t,"registerLoading",(function(){return ow})),n.d(t,"setCanvasCreator",(function(){return aw})),n.d(t,"registerMap",(function(){return sw})),n.d(t,"getMap",(function(){return lw})),n.d(t,"registerTransform",(function(){return cw})),n.d(t,"dataTool",(function(){return uw})),n.d(t,"zrender",(function(){return o})),n.d(t,"matrix",(function(){return r})),n.d(t,"vector",(function(){return i})),n.d(t,"zrUtil",(function(){return m})),n.d(t,"color",(function(){return Qt})),n.d(t,"throttle",(function(){return vv})),n.d(t,"helper",(function(){return s})),n.d(t,"use",(function(){return fw})),n.d(t,"setPlatformAPI",(function(){return hi["e"]})),n.d(t,"parseGeoJSON",(function(){return rS})),n.d(t,"parseGeoJson",(function(){return rS})),n.d(t,"number",(function(){return l})),n.d(t,"time",(function(){return c})),n.d(t,"graphic",(function(){return u})),n.d(t,"format",(function(){return d})),n.d(t,"util",(function(){return h})),n.d(t,"env",(function(){return g["a"]})),n.d(t,"List",(function(){return Gw})),n.d(t,"Model",(function(){return Uc})),n.d(t,"Axis",(function(){return kS})),n.d(t,"ComponentModel",(function(){return md})),n.d(t,"ComponentView",(function(){return qp})),n.d(t,"SeriesModel",(function(){return Hp})),n.d(t,"ChartView",(function(){return fv})),n.d(t,"innerDrawElementOnCanvas",(function(){return cy})),n.d(t,"extendComponentModel",(function(){return OS})),n.d(t,"extendComponentView",(function(){return MS})),n.d(t,"extendSeriesModel",(function(){return DS})),n.d(t,"extendChartView",(function(){return ES}));var i={};n.r(i),n.d(i,"create",(function(){return v})),n.d(i,"copy",(function(){return b})),n.d(i,"clone",(function(){return y})),n.d(i,"set",(function(){return _})),n.d(i,"add",(function(){return w})),n.d(i,"scaleAndAdd",(function(){return x})),n.d(i,"sub",(function(){return C})),n.d(i,"len",(function(){return S})),n.d(i,"length",(function(){return k})),n.d(i,"lenSquare",(function(){return O})),n.d(i,"lengthSquare",(function(){return M})),n.d(i,"mul",(function(){return D})),n.d(i,"div",(function(){return E})),n.d(i,"dot",(function(){return T})),n.d(i,"scale",(function(){return L})),n.d(i,"normalize",(function(){return I})),n.d(i,"distance",(function(){return A})),n.d(i,"dist",(function(){return N})),n.d(i,"distanceSquare",(function(){return P})),n.d(i,"distSquare",(function(){return R})),n.d(i,"negate",(function(){return F})),n.d(i,"lerp",(function(){return j})),n.d(i,"applyTransform",(function(){return B})),n.d(i,"min",(function(){return z})),n.d(i,"max",(function(){return V}));var r={};n.r(r),n.d(r,"create",(function(){return xe})),n.d(r,"identity",(function(){return Ce})),n.d(r,"copy",(function(){return Se})),n.d(r,"mul",(function(){return ke})),n.d(r,"translate",(function(){return Oe})),n.d(r,"rotate",(function(){return Me})),n.d(r,"scale",(function(){return De})),n.d(r,"invert",(function(){return Ee})),n.d(r,"clone",(function(){return Te}));var o={};n.r(o),n.d(o,"init",(function(){return Wi})),n.d(o,"dispose",(function(){return Hi})),n.d(o,"disposeAll",(function(){return Ui})),n.d(o,"getInstance",(function(){return qi})),n.d(o,"registerPainter",(function(){return Gi})),n.d(o,"version",(function(){return Ki}));var a={};n.r(a),n.d(a,"updateProps",(function(){return lc})),n.d(a,"initProps",(function(){return cc})),n.d(a,"removeElement",(function(){return dc})),n.d(a,"removeElementWithFadeOut",(function(){return fc})),n.d(a,"isElementRemoved",(function(){return uc})),n.d(a,"extendShape",(function(){return Tm})),n.d(a,"extendPath",(function(){return Im})),n.d(a,"registerShape",(function(){return Am})),n.d(a,"getShapeClass",(function(){return Nm})),n.d(a,"makePath",(function(){return Pm})),n.d(a,"makeImage",(function(){return Rm})),n.d(a,"mergePath",(function(){return jm})),n.d(a,"resizePath",(function(){return Bm})),n.d(a,"subPixelOptimizeLine",(function(){return zm})),n.d(a,"subPixelOptimizeRect",(function(){return Vm})),n.d(a,"subPixelOptimize",(function(){return $m})),n.d(a,"getTransform",(function(){return Wm})),n.d(a,"applyTransform",(function(){return Hm})),n.d(a,"transformDirection",(function(){return Um})),n.d(a,"groupTransition",(function(){return Km})),n.d(a,"clipPointsByRect",(function(){return Ym})),n.d(a,"clipRectByRect",(function(){return Xm})),n.d(a,"createIcon",(function(){return Zm})),n.d(a,"linePolygonIntersect",(function(){return Qm})),n.d(a,"lineLineIntersect",(function(){return Jm})),n.d(a,"setTooltipConfig",(function(){return nv})),n.d(a,"traverseElements",(function(){return rv})),n.d(a,"Group",(function(){return Fi})),n.d(a,"Image",(function(){return gs})),n.d(a,"Text",(function(){return $s})),n.d(a,"Circle",(function(){return yg})),n.d(a,"Ellipse",(function(){return xg})),n.d(a,"Sector",(function(){return zg})),n.d(a,"Ring",(function(){return Wg})),n.d(a,"Polygon",(function(){return Kg})),n.d(a,"Polyline",(function(){return Zg})),n.d(a,"Rect",(function(){return Ss})),n.d(a,"Line",(function(){return tm})),n.d(a,"BezierCurve",(function(){return am})),n.d(a,"Arc",(function(){return cm})),n.d(a,"IncrementalDisplayable",(function(){return Om})),n.d(a,"CompoundPath",(function(){return dm})),n.d(a,"LinearGradient",(function(){return gm})),n.d(a,"RadialGradient",(function(){return vm})),n.d(a,"BoundingRect",(function(){return $e})),n.d(a,"OrientedBoundingRect",(function(){return Cm})),n.d(a,"Point",(function(){return Ie})),n.d(a,"Path",(function(){return ss}));var s={};n.r(s),n.d(s,"createList",(function(){return jC})),n.d(s,"getLayoutRect",(function(){return ad})),n.d(s,"createDimensions",(function(){return Kw})),n.d(s,"dataStack",(function(){return BC})),n.d(s,"createSymbol",(function(){return Ob})),n.d(s,"createScale",(function(){return zC})),n.d(s,"mixinAxisModelCommonMethods",(function(){return VC})),n.d(s,"getECData",(function(){return Ws})),n.d(s,"enableHoverEmphasis",(function(){return Ul})),n.d(s,"createTextStyle",(function(){return $C}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Qi})),n.d(l,"round",(function(){return er})),n.d(l,"asc",(function(){return tr})),n.d(l,"getPrecision",(function(){return nr})),n.d(l,"getPrecisionSafe",(function(){return ir})),n.d(l,"getPixelPrecision",(function(){return rr})),n.d(l,"getPercentWithPrecision",(function(){return or})),n.d(l,"MAX_SAFE_INTEGER",(function(){return lr})),n.d(l,"remRadian",(function(){return cr})),n.d(l,"isRadianAroundZero",(function(){return ur})),n.d(l,"parseDate",(function(){return hr})),n.d(l,"quantity",(function(){return fr})),n.d(l,"quantityExponent",(function(){return pr})),n.d(l,"nice",(function(){return gr})),n.d(l,"quantile",(function(){return mr})),n.d(l,"reformIntervals",(function(){return vr})),n.d(l,"isNumeric",(function(){return yr})),n.d(l,"numericToNumber",(function(){return br}));var c={};n.r(c),n.d(c,"parse",(function(){return hr})),n.d(c,"format",(function(){return Cu}));var u={};n.r(u),n.d(u,"extendShape",(function(){return Tm})),n.d(u,"extendPath",(function(){return Im})),n.d(u,"makePath",(function(){return Pm})),n.d(u,"makeImage",(function(){return Rm})),n.d(u,"mergePath",(function(){return jm})),n.d(u,"resizePath",(function(){return Bm})),n.d(u,"createIcon",(function(){return Zm})),n.d(u,"updateProps",(function(){return lc})),n.d(u,"initProps",(function(){return cc})),n.d(u,"getTransform",(function(){return Wm})),n.d(u,"clipPointsByRect",(function(){return Ym})),n.d(u,"clipRectByRect",(function(){return Xm})),n.d(u,"registerShape",(function(){return Am})),n.d(u,"getShapeClass",(function(){return Nm})),n.d(u,"Group",(function(){return Fi})),n.d(u,"Image",(function(){return gs})),n.d(u,"Text",(function(){return $s})),n.d(u,"Circle",(function(){return yg})),n.d(u,"Ellipse",(function(){return xg})),n.d(u,"Sector",(function(){return zg})),n.d(u,"Ring",(function(){return Wg})),n.d(u,"Polygon",(function(){return Kg})),n.d(u,"Polyline",(function(){return Zg})),n.d(u,"Rect",(function(){return Ss})),n.d(u,"Line",(function(){return tm})),n.d(u,"BezierCurve",(function(){return am})),n.d(u,"Arc",(function(){return cm})),n.d(u,"IncrementalDisplayable",(function(){return Om})),n.d(u,"CompoundPath",(function(){return dm})),n.d(u,"LinearGradient",(function(){return gm})),n.d(u,"RadialGradient",(function(){return vm})),n.d(u,"BoundingRect",(function(){return $e}));var d={};n.r(d),n.d(d,"addCommas",(function(){return Vu})),n.d(d,"toCamelCase",(function(){return $u})),n.d(d,"normalizeCssArray",(function(){return Wu})),n.d(d,"encodeHTML",(function(){return oe})),n.d(d,"formatTpl",(function(){return Gu})),n.d(d,"getTooltipMarker",(function(){return Yu})),n.d(d,"formatTime",(function(){return Xu})),n.d(d,"capitalFirst",(function(){return Zu})),n.d(d,"truncateText",(function(){return Lo})),n.d(d,"getTextRect",(function(){return oS}));var h={};n.r(h),n.d(h,"map",(function(){return m["map"]})),n.d(h,"each",(function(){return m["each"]})),n.d(h,"indexOf",(function(){return m["indexOf"]})),n.d(h,"inherits",(function(){return m["inherits"]})),n.d(h,"reduce",(function(){return m["reduce"]})),n.d(h,"filter",(function(){return m["filter"]})),n.d(h,"bind",(function(){return m["bind"]})),n.d(h,"curry",(function(){return m["curry"]})),n.d(h,"isArray",(function(){return m["isArray"]})),n.d(h,"isString",(function(){return m["isString"]})),n.d(h,"isObject",(function(){return m["isObject"]})),n.d(h,"isFunction",(function(){return m["isFunction"]})),n.d(h,"extend",(function(){return m["extend"]})),n.d(h,"defaults",(function(){return m["defaults"]})),n.d(h,"clone",(function(){return m["clone"]})),n.d(h,"merge",(function(){return m["merge"]}));
  29. /*! *****************************************************************************
  30. Copyright (c) Microsoft Corporation.
  31. Permission to use, copy, modify, and/or distribute this software for any
  32. purpose with or without fee is hereby granted.
  33. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  34. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  35. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  36. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  37. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  38. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  39. PERFORMANCE OF THIS SOFTWARE.
  40. ***************************************************************************** */
  41. var f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},f(e,t)};function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var g=n("22d1"),m=n("6d8b");function v(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function b(e,t){return e[0]=t[0],e[1]=t[1],e}function y(e){return[e[0],e[1]]}function _(e,t,n){return e[0]=t,e[1]=n,e}function w(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function x(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function C(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function S(e){return Math.sqrt(O(e))}var k=S;function O(e){return e[0]*e[0]+e[1]*e[1]}var M=O;function D(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function E(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function T(e,t){return e[0]*t[0]+e[1]*t[1]}function L(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function I(e,t){var n=S(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function A(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var N=A;function P(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var R=P;function F(e,t){return e[0]=-t[0],e[1]=-t[1],e}function j(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function B(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function z(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function V(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var $=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),W=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new $(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new $(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new $(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new $(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new $(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new $(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),H=W,U=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a<r[e].length;a++)if(r[e][a].h===n)return this;var s={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,c=r[e][l];return c&&c.callAtLast?r[e].splice(l,0,s):r[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,a=t[o-1],s=i.length,l=0;l<s;l++){var c=i[l];if(!r||!r.filter||null==c.query||r.filter(e,c.query))switch(o){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),q=U,G=Math.log(2);function K(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~r)/G);return e[n][l]}var c=i|1<<n,u=n+1;while(i&1<<u)u++;for(var d=0,h=0,f=0;h<s;h++){var p=1<<h;p&r||(d+=(f%2?-1:1)*e[n][h]*K(e,t-1,u,c,r|p,o),f++)}return o[a]=d,d}function Y(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=K(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*K(n,7,0===a?1:0,1<<a,1<<s,i)/r*t[a];return function(e,t,n){var i=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/i,e[1]=(t*o[3]+n*o[4]+o[5])/i}}}var X="___zrEVENTSAVED",Z=[];function Q(e,t,n,i,r){return J(Z,t,i,r,!0)&&J(e,n,Z[0],Z[1])}function J(e,t,n,i,r){if(t.getBoundingClientRect&&g["a"].domSupported&&!ne(t)){var o=t[X]||(t[X]={}),a=ee(t,o),s=te(a,o,r);if(s)return s(e,n,i),!0}return!1}function ee(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function te(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var u=e[c].getBoundingClientRect(),d=2*c,h=u.left,f=u.top;a.push(h,f),l=l&&o&&h===o[d]&&f===o[d+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?Y(s,a):Y(a,s))}function ne(e){return"CANVAS"===e.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function oe(e){return null==e?"":(e+"").replace(ie,(function(e,t){return re[t]}))}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=g["a"].browser.firefox&&+g["a"].browser.version.split(".")[0]<39;function ce(e,t,n,i){return n=n||{},i?ue(e,t,n):le&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):ue(e,t,n),n}function ue(e,t,n){if(g["a"].domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ne(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(J(se,e,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function de(e){return e||window.event}function he(e,t,n){if(t=de(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ce(e,o,t,n)}else{ce(e,t,t,n);var a=fe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&ae.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function fe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function pe(e,t,n,i){e.addEventListener(t,n,i)}function ge(e,t,n,i){e.removeEventListener(t,n,i)}var me=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ve(e){return 2===e.which||3===e.which}var be=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o<a;o++){var s=i[o],l=ce(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in we)if(we.hasOwnProperty(t)){var n=we[t](this._track,e);if(n)return n}},e}();function ye(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function _e(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var we={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=ye(i)/ye(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=_e(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function xe(){return[1,0,0,1,0,0]}function Ce(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Se(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ke(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Oe(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Me(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=i*u+a*c,e[1]=-i*c+a*u,e[2]=r*u+s*c,e[3]=-r*c+u*s,e[4]=u*o+c*l,e[5]=u*l-c*o,e}function De(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Ee(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function Te(e){var t=xe();return Se(t,e),t}var Le=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),Ie=Le,Ae=Math.min,Ne=Math.max,Pe=new Ie,Re=new Ie,Fe=new Ie,je=new Ie,Be=new Ie,ze=new Ie,Ve=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Ae(e.x,this.x),n=Ae(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ne(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ne(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=xe();return Oe(r,r,[-t.x,-t.y]),De(r,r,[n,i]),Oe(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,c=t.x+t.width,u=t.y,d=t.y+t.height,h=!(o<l||c<r||s<u||d<a);if(n){var f=1/0,p=0,g=Math.abs(o-l),m=Math.abs(c-r),v=Math.abs(s-u),b=Math.abs(d-a),y=Math.min(g,m),_=Math.min(v,b);o<l||c<r?y>p&&(p=y,g<m?Ie.set(ze,-g,0):Ie.set(ze,m,0)):y<f&&(f=y,g<m?Ie.set(Be,g,0):Ie.set(Be,-m,0)),s<u||d<a?_>p&&(p=_,v<b?Ie.set(ze,0,-v):Ie.set(ze,0,b)):y<f&&(f=y,v<b?Ie.set(Be,0,v):Ie.set(Be,0,-b))}return n&&Ie.copy(n,h?Be:ze),h},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Pe.x=Fe.x=n.x,Pe.y=je.y=n.y,Re.x=je.x=n.x+n.width,Re.y=Fe.y=n.y+n.height,Pe.transform(i),je.transform(i),Re.transform(i),Fe.transform(i),t.x=Ae(Pe.x,Re.x,Fe.x,je.x),t.y=Ae(Pe.y,Re.y,Fe.y,je.y);var l=Ne(Pe.x,Re.x,Fe.x,je.x),c=Ne(Pe.y,Re.y,Fe.y,je.y);t.width=l-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),$e=Ve,We="silent";function He(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ue}}function Ue(){me(this.event)}var qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return p(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(q),Ge=function(){function e(e,t){this.x=e,this.y=t}return e}(),Ke=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ye=new $e(0,0,0,0),Xe=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a._hovered=new Ge(0,0),a.storage=t,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new qe,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new H(a),a}return p(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(m["each"](Ke,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Je(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Ge(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ge(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=He(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new Ge(e,t);if(Qe(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new $e(e-s,t-s,a,a),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Ye.copy(u.getBoundingRect()),u.transform&&Ye.applyTransform(u.transform),Ye.intersect(l)&&o.push(u))}if(o.length)for(var d=4,h=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=d)for(var g=0;g<f;g+=h){var m=e+p*Math.cos(g),v=t+p*Math.sin(g);if(Qe(o,r,m,v,n),r.target)return r}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new be);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new Ge;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(q);function Ze(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||We}return!1}function Qe(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=Ze(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==We)){t.target=a;break}}}function Je(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}m["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Xe.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Je(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||N(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var et=Xe,tt=32,nt=7;function it(e){var t=0;while(e>=tt)t|=1&e,e>>=1;return e+t}function rt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r<n&&i(e[r],e[r-1])<0)r++;ot(e,t,r)}else while(r<n&&i(e[r],e[r-1])>=0)r++;return r-t}function ot(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function at(e,t,n,i,r){for(i===t&&i++;i<n;i++){var o,a=e[i],s=t,l=i;while(s<l)o=s+l>>>1,r(a,e[o])<0?l=o:s=o+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function st(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l<s&&o(e,t[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(e,t[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}a++;while(a<l){var u=a+(l-a>>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function lt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(l<s&&o(e,t[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=a;a=r-l,l=r-c}else{s=i-r;while(l<s&&o(e,t[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var u=a+(l-a>>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function ct(e,t){var n,i,r=nt,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function c(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;d(e)}}function u(){while(a>1){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,d(e)}}function d(r){var o=n[r],s=i[r],l=n[r+1],c=i[r+1];i[r]=s+c,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var u=lt(e[l],e,o,s,0,t);o+=u,s-=u,0!==s&&(c=st(e[o+s-1],e,l,c,c-1,t),0!==c&&(s<=c?h(o,s,l,c):f(o,s,l,c)))}function h(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=e[n+l];var c=0,u=o,d=n;if(e[d++]=e[u++],0!==--a)if(1!==i){var h,f,p,g=r;while(1){h=0,f=0,p=!1;do{if(t(e[u],s[c])<0){if(e[d++]=e[u++],f++,h=0,0===--a){p=!0;break}}else if(e[d++]=s[c++],h++,f=0,1===--i){p=!0;break}}while((h|f)<g);if(p)break;do{if(h=lt(e[u],s,c,i,0,t),0!==h){for(l=0;l<h;l++)e[d+l]=s[c+l];if(d+=h,c+=h,i-=h,i<=1){p=!0;break}}if(e[d++]=e[u++],0===--a){p=!0;break}if(f=st(s[c],e,u,a,0,t),0!==f){for(l=0;l<f;l++)e[d+l]=e[u+l];if(d+=f,u+=f,a-=f,0===a){p=!0;break}}if(e[d++]=s[c++],1===--i){p=!0;break}g--}while(h>=nt||f>=nt);if(p)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)e[d+l]=e[u+l];e[d+a]=s[c]}else{if(0===i)throw new Error;for(l=0;l<i;l++)e[d+l]=s[c+l]}}else{for(l=0;l<a;l++)e[d+l]=e[u+l];e[d+a]=s[c]}else for(l=0;l<i;l++)e[d+l]=s[c+l]}function f(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=e[o+l];var c=n+i-1,u=a-1,d=o+a-1,h=0,f=0;if(e[d--]=e[c--],0!==--i)if(1!==a){var p=r;while(1){var g=0,m=0,v=!1;do{if(t(s[u],e[c])<0){if(e[d--]=e[c--],g++,m=0,0===--i){v=!0;break}}else if(e[d--]=s[u--],m++,g=0,1===--a){v=!0;break}}while((g|m)<p);if(v)break;do{if(g=i-lt(s[u],e,n,i,i-1,t),0!==g){for(d-=g,c-=g,i-=g,f=d+1,h=c+1,l=g-1;l>=0;l--)e[f+l]=e[h+l];if(0===i){v=!0;break}}if(e[d--]=s[u--],1===--a){v=!0;break}if(m=a-st(e[c],s,0,a,a-1,t),0!==m){for(d-=m,u-=m,a-=m,f=d+1,h=u+1,l=0;l<m;l++)e[f+l]=s[h+l];if(a<=1){v=!0;break}}if(e[d--]=e[c--],0===--i){v=!0;break}p--}while(g>=nt||m>=nt);if(v)break;p<0&&(p=0),p+=2}if(r=p,r<1&&(r=1),1===a){for(d-=i,c-=i,f=d+1,h=c+1,l=i-1;l>=0;l--)e[f+l]=e[h+l];e[d]=s[u]}else{if(0===a)throw new Error;for(h=d-(a-1),l=0;l<a;l++)e[h+l]=s[l]}}else{for(d-=i,c-=i,f=d+1,h=c+1,l=i-1;l>=0;l--)e[f+l]=e[h+l];e[d]=s[u]}else for(h=d-(a-1),l=0;l<a;l++)e[h+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:c,forceMergeRuns:u,pushRun:l}}function ut(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<tt)return o=rt(e,n,i,t),void at(e,n,i,n+o,t);var a=ct(e,t),s=it(r);do{if(o=rt(e,n,i,t),o<s){var l=r;l>s&&(l=s),at(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var dt=1,ht=2,ft=4,pt=!1;function gt(){pt||(pt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function mt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var vt,bt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=mt}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,ut(n,mt)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];var r=i,o=e;while(r)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=dt),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(gt(),c.z=0),isNaN(c.z2)&&(gt(),c.z2=0),isNaN(c.zlevel)&&(gt(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=m["indexOf"](this._roots,e);i>=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),yt=bt;vt=g["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var _t=vt,wt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-wt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*wt.bounceIn(2*e):.5*wt.bounceOut(2*e-1)+.5}},xt=wt,Ct=Math.pow,St=Math.sqrt,kt=1e-8,Ot=1e-4,Mt=St(3),Dt=1/3,Et=v(),Tt=v(),Lt=v();function It(e){return e>-kt&&e<kt}function At(e){return e>kt||e<-kt}function Nt(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function Pt(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function Rt(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),c=e-r,u=s*s-3*a*l,d=s*l-9*a*c,h=l*l-3*s*c,f=0;if(It(u)&&It(d))if(It(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[f++]=p)}else{var g=d*d-4*u*h;if(It(g)){var m=d/u,v=(p=-s/a+m,-m/2);p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v)}else if(g>0){var b=St(g),y=u*s+1.5*a*(-d+b),_=u*s+1.5*a*(-d-b);y=y<0?-Ct(-y,Dt):Ct(y,Dt),_=_<0?-Ct(-_,Dt):Ct(_,Dt);p=(-s-(y+_))/(3*a);p>=0&&p<=1&&(o[f++]=p)}else{var w=(2*u*s-3*a*d)/(2*St(u*u*u)),x=Math.acos(w)/3,C=St(u),S=Math.cos(x),k=(p=(-s-2*C*S)/(3*a),v=(-s+C*(S+Mt*Math.sin(x)))/(3*a),(-s+C*(S-Mt*Math.sin(x)))/(3*a));p>=0&&p<=1&&(o[f++]=p),v>=0&&v<=1&&(o[f++]=v),k>=0&&k<=1&&(o[f++]=k)}}return f}function Ft(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(It(a)){if(At(o)){var c=-s/o;c>=0&&c<=1&&(r[l++]=c)}}else{var u=o*o-4*a*s;if(It(u))r[0]=-o/(2*a);else if(u>0){var d=St(u),h=(c=(-o+d)/(2*a),(-o-d)/(2*a));c>=0&&c<=1&&(r[l++]=c),h>=0&&h<=1&&(r[l++]=h)}}return l}function jt(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,c=(s-a)*r+a,u=(l-s)*r+s,d=(u-c)*r+c;o[0]=e,o[1]=a,o[2]=c,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=i}function Bt(e,t,n,i,r,o,a,s,l,c,u){var d,h,f,p,g,m=.005,v=1/0;Et[0]=l,Et[1]=c;for(var b=0;b<1;b+=.05)Tt[0]=Nt(e,n,r,a,b),Tt[1]=Nt(t,i,o,s,b),p=R(Et,Tt),p<v&&(d=b,v=p);v=1/0;for(var y=0;y<32;y++){if(m<Ot)break;h=d-m,f=d+m,Tt[0]=Nt(e,n,r,a,h),Tt[1]=Nt(t,i,o,s,h),p=R(Tt,Et),h>=0&&p<v?(d=h,v=p):(Lt[0]=Nt(e,n,r,a,f),Lt[1]=Nt(t,i,o,s,f),g=R(Lt,Et),f<=1&&g<v?(d=f,v=g):m*=.5)}return u&&(u[0]=Nt(e,n,r,a,d),u[1]=Nt(t,i,o,s,d)),St(v)}function zt(e,t,n,i,r,o,a,s,l){for(var c=e,u=t,d=0,h=1/l,f=1;f<=l;f++){var p=f*h,g=Nt(e,n,r,a,p),m=Nt(t,i,o,s,p),v=g-c,b=m-u;d+=Math.sqrt(v*v+b*b),c=g,u=m}return d}function Vt(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function $t(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function Wt(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(It(o)){if(At(a)){var c=-s/a;c>=0&&c<=1&&(r[l++]=c)}}else{var u=a*a-4*o*s;if(It(u)){c=-a/(2*o);c>=0&&c<=1&&(r[l++]=c)}else if(u>0){var d=St(u),h=(c=(-a+d)/(2*o),(-a-d)/(2*o));c>=0&&c<=1&&(r[l++]=c),h>=0&&h<=1&&(r[l++]=h)}}return l}function Ht(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Ut(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function qt(e,t,n,i,r,o,a,s,l){var c,u=.005,d=1/0;Et[0]=a,Et[1]=s;for(var h=0;h<1;h+=.05){Tt[0]=Vt(e,n,r,h),Tt[1]=Vt(t,i,o,h);var f=R(Et,Tt);f<d&&(c=h,d=f)}d=1/0;for(var p=0;p<32;p++){if(u<Ot)break;var g=c-u,m=c+u;Tt[0]=Vt(e,n,r,g),Tt[1]=Vt(t,i,o,g);f=R(Tt,Et);if(g>=0&&f<d)c=g,d=f;else{Lt[0]=Vt(e,n,r,m),Lt[1]=Vt(t,i,o,m);var v=R(Lt,Et);m<=1&&v<d?(c=m,d=v):u*=.5}}return l&&(l[0]=Vt(e,n,r,c),l[1]=Vt(t,i,o,c)),St(d)}function Gt(e,t,n,i,r,o,a){for(var s=e,l=t,c=0,u=1/a,d=1;d<=a;d++){var h=d*u,f=Vt(e,n,r,h),p=Vt(t,i,o,h),g=f-s,m=p-l;c+=Math.sqrt(g*g+m*m),s=f,l=p}return c}var Kt=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yt(e){var t=e&&Kt.exec(e);if(t){var n=t[1].split(","),i=+Object(m["trim"])(n[0]),r=+Object(m["trim"])(n[1]),o=+Object(m["trim"])(n[2]),a=+Object(m["trim"])(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Rt(0,i,o,1,e,s)&&Nt(0,r,a,1,s[0])}}}var Xt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||m["noop"],this.ondestroy=e.ondestroy||m["noop"],this.onrestart=e.onrestart||m["noop"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(m["isFunction"])(e)?e:xt[e]||Yt(e)},e}(),Zt=Xt,Qt=n("41ef"),Jt=n("7a29"),en=Array.prototype.slice;function tn(e,t,n){return(t-e)*n+e}function nn(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=tn(t[o],n[o],i);return e}function rn(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=tn(t[a][s],n[a][s],i)}return e}function on(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function an(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function sn(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function ln(e,t,n){var i=e,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:en.call(r[l]))}var c=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var u=0;u<c;u++)isNaN(i[l][u])&&(i[l][u]=r[l][u])}}function cn(e){if(Object(m["isArrayLike"])(e)){var t=e.length;if(Object(m["isArrayLike"])(e[0])){for(var n=[],i=0;i<t;i++)n.push(en.call(e[i]));return n}return en.call(e)}return e}function un(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function dn(e){return Object(m["isArrayLike"])(e&&e[0])?2:1}var hn=0,fn=1,pn=2,gn=3,mn=4,vn=5,bn=6;function yn(e){return e===mn||e===vn}function _n(e){return e===fn||e===pn}var wn=[0,0,0,0],xn=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=bn,s=t;if(Object(m["isArrayLike"])(t)){var l=dn(t);a=l,(1===l&&!Object(m["isNumber"])(t[0])||2===l&&!Object(m["isNumber"])(t[0][0]))&&(o=!0)}else if(Object(m["isNumber"])(t)&&!Object(m["eqNaN"])(t))a=hn;else if(Object(m["isString"])(t))if(isNaN(+t)){var c=Qt["parse"](t);c&&(s=c,a=gn)}else a=hn;else if(Object(m["isGradientObject"])(t)){var u=Object(m["extend"])({},s);u.colorStops=Object(m["map"])(t.colorStops,(function(e){return{offset:e.offset,color:Qt["parse"](e.color)}})),Object(Jt["m"])(t)?a=mn:Object(Jt["o"])(t)&&(a=vn),s=u}0===r?this.valType=a:a===this.valType&&a!==bn||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Object(m["isFunction"])(n)?n:xt[n]||Yt(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=_n(i),l=yn(i),c=0;c<r;c++){var u=n[c],d=u.value,h=o.value;u.percent=u.time/e,a||(s&&c!==r-1?ln(d,h,i):l&&sn(d.colorStops,h.colorStops))}if(!a&&i!==vn&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var f=n[0].value;for(c=0;c<r;c++)i===hn?n[c].additiveValue=n[c].value-f:i===gn?n[c].additiveValue=on([],n[c].value,f,-1):_n(i)&&(n[c].additiveValue=i===fn?on([],n[c].value,f,-1):an([],n[c].value,f,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,c=l.length,u=this.propName,d=s===gn,h=this._lastFr,f=Math.min;if(1===c)i=r=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){var p=f(h+1,c-1);for(n=p;n>=0;n--)if(l[n].percent<=t)break;n=f(n,c-2)}else{for(n=h;n<c;n++)if(l[n].percent>t)break;n=f(n-1,c-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var g=r.percent-i.percent,v=0===g?1:f((t-i.percent)/g,1);r.easingFunc&&(v=r.easingFunc(v));var b=o?this._additiveValue:d?wn:e[u];if(!_n(s)&&!d||b||(b=this._additiveValue=[]),this.discrete)e[u]=v<1?i.rawValue:r.rawValue;else if(_n(s))s===fn?nn(b,i[a],r[a],v):rn(b,i[a],r[a],v);else if(yn(s)){var y=i[a],_=r[a],w=s===mn;e[u]={type:w?"linear":"radial",x:tn(y.x,_.x,v),y:tn(y.y,_.y,v),colorStops:Object(m["map"])(y.colorStops,(function(e,t){var n=_.colorStops[t];return{offset:tn(e.offset,n.offset,v),color:un(nn([],e.color,n.color,v))}})),global:_.global},w?(e[u].x2=tn(y.x2,_.x2,v),e[u].y2=tn(y.y2,_.y2,v)):e[u].r=tn(y.r,_.r,v)}else if(d)nn(b,i[a],r[a],v),o||(e[u]=un(b));else{var x=tn(i[a],r[a],v);o?this._additiveValue=x:e[u]=x}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===hn?e[n]=e[n]+i:t===gn?(Qt["parse"](e[n],wn),on(wn,wn,i,1),e[n]=un(wn)):t===fn?on(e[n],e[n],i,1):t===pn&&an(e[n],e[n],i,1)},e}(),Cn=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Object(m["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(m["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new xn(a);var l=void 0,c=this._getAdditiveTrack(a);if(c){var u=c.keyframes,d=u[u.length-1];l=d&&d.value,c.valType===gn&&l&&(l=un(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,cn(l),i),this._trackKeys.push(a)}s.addKeyframe(e,cn(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,c=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[c-1];u&&(t._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new Zt({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(m["map"])(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[r]=cn(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(m["keys"])(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}(),Sn=Cn;function kn(){return(new Date).getTime()}var On=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return p(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=kn()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(_t(t),!e._paused&&e.update())}this._running=!0,_t(t)},t.prototype.start=function(){this._running||(this._time=kn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Sn(e,t.loop);return this.addAnimator(n),n},t}(q),Mn=On,Dn=300,En=g["a"].domSupported,Tn=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=m["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),Ln={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},In=!1;function An(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Nn(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function Pn(e){e&&(e.zrByTouch=!0)}function Rn(e,t){return he(e.dom,new jn(e,t),!0)}function Fn(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var jn=function(){function e(e,t){this.stopPropagation=m["noop"],this.stopImmediatePropagation=m["noop"],this.preventDefault=m["noop"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Bn={mousedown:function(e){e=he(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=he(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=he(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=he(this.dom,e);var t=e.toElement||e.relatedTarget;Fn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){In=!0,e=he(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){In||(e=he(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=he(this.dom,e),Pn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Bn.mousemove.call(this,e),Bn.mousedown.call(this,e)},touchmove:function(e){e=he(this.dom,e),Pn(e),this.handler.processGesture(e,"change"),Bn.mousemove.call(this,e)},touchend:function(e){e=he(this.dom,e),Pn(e),this.handler.processGesture(e,"end"),Bn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Dn&&Bn.click.call(this,e)},pointerdown:function(e){Bn.mousedown.call(this,e)},pointermove:function(e){An(e)||Bn.mousemove.call(this,e)},pointerup:function(e){Bn.mouseup.call(this,e)},pointerout:function(e){An(e)||Bn.mouseout.call(this,e)}};m["each"](["click","dblclick","contextmenu"],(function(e){Bn[e]=function(t){t=he(this.dom,t),this.trigger(e,t)}}));var zn={pointermove:function(e){An(e)||zn.mousemove.call(this,e)},pointerup:function(e){zn.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function Vn(e,t){var n=t.domHandlers;g["a"].pointerEventsSupported?m["each"](Tn.pointer,(function(i){Wn(t,i,(function(t){n[i].call(e,t)}))})):(g["a"].touchEventsSupported&&m["each"](Tn.touch,(function(i){Wn(t,i,(function(r){n[i].call(e,r),Nn(t)}))})),m["each"](Tn.mouse,(function(i){Wn(t,i,(function(r){r=de(r),t.touching||n[i].call(e,r)}))})))}function $n(e,t){function n(n){function i(i){i=de(i),Fn(e,i.target)||(i=Rn(e,i),t.domHandlers[n].call(e,i))}Wn(t,n,i,{capture:!0})}g["a"].pointerEventsSupported?m["each"](Ln.pointer,n):g["a"].touchEventsSupported||m["each"](Ln.mouse,n)}function Wn(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,pe(e.domTarget,t,n,i)}function Hn(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&ge(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Un=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),qn=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new Un(t,Bn),En&&(i._globalHandlerScope=new Un(document,zn)),Vn(i,i._localHandlerScope),i}return p(t,e),t.prototype.dispose=function(){Hn(this._localHandlerScope),En&&Hn(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,En&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?$n(this,t):Hn(t)}},t}(q),Gn=qn,Kn=1;g["a"].hasGlobalWindow&&(Kn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Yn=Kn,Xn=.4,Zn="#333",Qn="#ccc",Jn="#eee",ei=Ce,ti=5e-5;function ni(e){return e>ti||e<-ti}var ii=[],ri=[],oi=xe(),ai=Math.abs,si=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ni(this.rotation)||ni(this.x)||ni(this.y)||ni(this.scaleX-1)||ni(this.scaleY-1)||ni(this.skewX)||ni(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||xe(),t?this.getLocalTransform(n):ei(n),e&&(t?ke(n,e,n):Se(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&ei(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(ii);var n=ii[0]<0?-1:1,i=ii[1]<0?-1:1,r=((ii[0]-n)*t+n)/ii[0]||0,o=((ii[1]-i)*t+i)/ii[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xe(),Ee(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(ke(ri,e.invTransform,t),t=ri);var n=this.originX,i=this.originY;(n||i)&&(oi[4]=n,oi[5]=i,ke(ri,t,oi),ri[4]-=n,ri[5]-=i,t=ri),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&B(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&B(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ai(e[0]-1)>1e-10&&ai(e[3]-1)>1e-10?Math.sqrt(ai(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ci(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,c=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var f=n+a,p=i+s;t[4]=-f*r-d*p*o,t[5]=-p*o-h*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=h*r,t[2]=d*o,l&&Me(t,t,l),t[4]+=n+c,t[5]+=i+u,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),li=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ci(e,t){for(var n=0;n<li.length;n++){var i=li[n];e[i]=t[i]}}var ui=si,di=n("d51b"),hi=n("726e"),fi={};function pi(e,t){t=t||hi["a"];var n=fi[t];n||(n=fi[t]=new di["a"](500));var i=n.get(e);return null==i&&(i=hi["d"].measureText(e,t).width,n.put(e,i)),i}function gi(e,t,n,i){var r=pi(e,t),o=yi(t),a=vi(0,r,n),s=bi(0,o,i),l=new $e(a,s,r,o);return l}function mi(e,t,n,i){var r=((e||"")+"").split("\n"),o=r.length;if(1===o)return gi(r[0],t,n,i);for(var a=new $e(0,0,0,0),s=0;s<r.length;s++){var l=gi(r[s],t,n,i);0===s?a.copy(l):a.union(l)}return a}function vi(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function bi(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function yi(e){return pi("国",e)}function _i(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function wi(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",d="top";if(i instanceof Array)l+=_i(i[0],n.width),c+=_i(i[1],n.height),u=null,d=null;else switch(i){case"left":l-=r,c+=s,u="right",d="middle";break;case"right":l+=r+a,c+=s,d="middle";break;case"top":l+=a/2,c-=r,u="center",d="bottom";break;case"bottom":l+=a/2,c+=o+r,u="center";break;case"inside":l+=a/2,c+=s,u="center",d="middle";break;case"insideLeft":l+=r,c+=s,d="middle";break;case"insideRight":l+=a-r,c+=s,u="right",d="middle";break;case"insideTop":l+=a/2,c+=r,u="center";break;case"insideBottom":l+=a/2,c+=o-r,u="center",d="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=a-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,c+=o-r,u="right",d="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=d,e}var xi="__zr_normal__",Ci=li.concat(["ignore"]),Si=Object(m["reduce"])(li,(function(e,t){return e[t]=!0,e}),{ignore:!1}),ki={},Oi=new $e(0,0,0,0),Mi=function(){function e(e){this.id=Object(m["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var c=Oi;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ki,n,c):wi(ki,n,c),r.x=ki.x,r.y=ki.y,o=ki.align,a=ki.verticalAlign;var u=n.origin;if(u&&null!=n.rotation){var d=void 0,h=void 0;"center"===u?(d=.5*c.width,h=.5*c.height):(d=_i(u[0],c.width),h=_i(u[1],c.height)),l=!0,r.originX=-r.x+d+(i?0:c.x),r.originY=-r.y+h+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,b=void 0;p&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),b=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),b=!0)),m=m||"#000",m===g.fill&&v===g.stroke&&b===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=b,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=dt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qn:Zn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(Qt["parse"])(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Qt["stringify"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(m["extend"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(m["isObject"])(e))for(var n=e,i=Object(m["keys"])(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==xi)){var o=i.targetName,a=o?t[o]:t;i.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ci)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(xi,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===xi,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(Object(m["indexOf"])(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var c=!!(l&&l.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var u=this._textContent,d=this._textGuide;return u&&u.useState(e,t,n,c),d&&d.useState(e,t,n,c),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt),l}Object(m["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(e[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&i.push(c)}var u=i[o-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,d),g&&g.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(m["indexOf"])(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=Object(m["indexOf"])(i,e),o=Object(m["indexOf"])(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];Object(m["extend"])(n,r),r.textConfig&&(t=t||{},Object(m["extend"])(t,r.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var a=!(t&&i);t&&t.textConfig?(this.textConfig=Object(m["extend"])({},i?this.textConfig:n.textConfig),Object(m["extend"])(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,c=0;c<Ci.length;c++){var u=Ci[c],d=r&&Si[u];t&&null!=t[u]?d?(l=!0,s[u]=t[u]):this[u]=t[u]:a&&null!=n[u]&&(d?(l=!0,s[u]=n[u]):this[u]=n[u])}if(!r)for(c=0;c<this.animators.length;c++){var h=this.animators[c],f=h.targetName;h.getLoop()||h.__changeFinalValue(f?(t||n)[f]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ui,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(m["extend"])(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=dt;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;var r=new Sn(i,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=Object(m["indexOf"])(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];e&&e!==a.scope?r.push(a):a.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){Di(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Di(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=Di(this,t,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=dt;function n(e,n,i,r){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Di(e,t,n,i,r){n=n||{};var o=[];Ni(e,"",e,t,n,i,o,r);var a=o.length,s=!1,l=n.done,c=n.aborted,u=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},d=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h<o.length;h++){var f=o[h];u&&f.done(u),d&&f.aborted(d),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Ei(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function Ti(e){return Object(m["isArrayLike"])(e[0])}function Li(e,t,n){if(Object(m["isArrayLike"])(t[n]))if(Object(m["isArrayLike"])(e[n])||(e[n]=[]),Object(m["isTypedArray"])(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),Ei(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(Ti(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?Ei(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Ei(o,r,a);o.length=r.length}else e[n]=t[n]}function Ii(e,t){return e===t||Object(m["isArrayLike"])(e)&&Object(m["isArrayLike"])(t)&&Ai(e,t)}function Ai(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Ni(e,t,n,i,r,o,a,s){for(var l=Object(m["keys"])(i),c=r.duration,u=r.delay,d=r.additive,h=r.setToFinal,f=!Object(m["isObject"])(o),p=e.animators,g=[],v=0;v<l.length;v++){var b=l[v],y=i[b];if(null!=y&&null!=n[b]&&(f||o[b]))if(!Object(m["isObject"])(y)||Object(m["isArrayLike"])(y)||Object(m["isGradientObject"])(y))g.push(b);else{if(t){s||(n[b]=y,e.updateDuringAnimation(t));continue}Ni(e,b,n[b],y,r,o&&o[b],a,s)}else s||(n[b]=y,e.updateDuringAnimation(t),g.push(b))}var _=g.length;if(!d&&_)for(var w=0;w<p.length;w++){var x=p[w];if(x.targetName===t){var C=x.stopTracks(g);if(C){var S=Object(m["indexOf"])(p,x);p.splice(S,1)}}}if(r.force||(g=Object(m["filter"])(g,(function(e){return!Ii(i[e],n[e])})),_=g.length),_>0||r.force&&!a.length){var k=void 0,O=void 0,M=void 0;if(s){O={},h&&(k={});for(w=0;w<_;w++){b=g[w];O[b]=n[b],h?k[b]=i[b]:n[b]=i[b]}}else if(h){M={};for(w=0;w<_;w++){b=g[w];M[b]=cn(n[b]),Li(n,i,b)}}x=new Sn(n,!1,!1,d?Object(m["filter"])(p,(function(e){return e.targetName===t})):null);x.targetName=t,r.scope&&(x.scope=r.scope),h&&k&&x.whenWithKeys(0,k,g),M&&x.whenWithKeys(0,M,g),x.whenWithKeys(null==c?500:c,s?O:i,g).delay(u||0),e.addAnimator(x,t),a.push(x)}}Object(m["mixin"])(Mi,q),Object(m["mixin"])(Mi,ui);var Pi=Mi,Ri=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return p(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=m["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=m["indexOf"](n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new $e(0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(i);l?($e.applyTransform(t,s,l),r=r||t.clone(),r.union(t)):(r=r||s.clone(),r.union(s))}}return r||t},t}(Pi);Ri.prototype.type="group";var Fi=Ri,ji={},Bi={};
  42. /*!
  43. * ZRender, a high performance 2d drawing library.
  44. *
  45. * Copyright (c) 2013, Baidu Inc.
  46. * All rights reserved.
  47. *
  48. * LICENSE
  49. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  50. */function zi(e){delete Bi[e]}function Vi(e){if(!e)return!1;if("string"===typeof e)return Object(Qt["lum"])(e,1)<Xn;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=Object(Qt["lum"])(t[r].color,1);return n/=i,n<Xn}return!1}var $i=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var r=new yt,o=n.renderer||"canvas";ji[o]||(o=m["keys"](ji)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new ji[o](t,r,n,e),s=n.ssr||a.ssrOnly;this.storage=r,this.painter=a;var l,c=g["a"].node||g["a"].worker||s?null:new Gn(a.getViewportRoot(),a.root),u=n.useCoarsePointer,d=null==u||"auto"===u?g["a"].touchEventsSupported:!!u,h=44;d&&(l=m["retrieve2"](n.pointerSize,h)),this.handler=new et(r,a,c,a.root,l),this.animation=new Mn({stage:{update:s?null:function(){return i._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=Vi(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=kn();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=kn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Fi&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,zi(this.id)},e}();function Wi(e,t){var n=new $i(m["guid"](),e,t);return Bi[n.id]=n,n}function Hi(e){e.dispose()}function Ui(){for(var e in Bi)Bi.hasOwnProperty(e)&&Bi[e].dispose();Bi={}}function qi(e){return Bi[e]}function Gi(e,t){ji[e]=t}var Ki="5.4.3",Yi=1e-4,Xi=20;function Zi(e){return e.replace(/^\s+|\s+$/g,"")}function Qi(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,c=s-a;if(0===l)return 0===c?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*c+a}function Ji(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return m["isString"](e)?Zi(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function er(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Xi),e=(+e).toFixed(t),n?e:+e}function tr(e){return e.sort((function(e,t){return e-t})),e}function nr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return ir(e)}function ir(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function rr(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function or(e,t,n){if(!e[t])return 0;var i=ar(e,n);return i[t]||0}function ar(e,t){var n=m["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var i=Math.pow(10,t),r=m["map"](e,(function(e){return(isNaN(e)?0:e)/n*i*100})),o=100*i,a=m["map"](r,(function(e){return Math.floor(e)})),s=m["reduce"](a,(function(e,t){return e+t}),0),l=m["map"](r,(function(e,t){return e-a[t]}));while(s<o){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,h=l.length;d<h;++d)l[d]>c&&(c=l[d],u=d);++a[u],l[u]=0,++s}return m["map"](a,(function(e){return e/i}))}function sr(e,t){var n=Math.max(nr(e),nr(t)),i=e+t;return n>Xi?i:er(i,n)}var lr=9007199254740991;function cr(e){var t=2*Math.PI;return(e%t+t)%t}function ur(e){return e>-Yi&&e<Yi}var dr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function hr(e){if(e instanceof Date)return e;if(m["isString"](e)){var t=dr.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function fr(e){return Math.pow(10,pr(e))}function pr(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function gr(e,t){var n,i=pr(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function mr(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function vr(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-n),t=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(i,1):i++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function br(e){var t=parseFloat(e);return t==e&&(0!==t||!m["isString"](e)||e.indexOf("x")<=0)?t:NaN}function yr(e){return!isNaN(br(e))}function _r(){return Math.round(9*Math.random())}function wr(e,t){return 0===t?e:wr(t,e%t)}function xr(e,t){return null==e?t:null==t?e:e*t/wr(e,t)}function Cr(e,t,n){return(t-e)*n+e}var Sr="series\0",kr="\0_ec_\0";function Or(e){return e instanceof Array?e:null==e?[]:[e]}function Mr(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Dr=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Er(e){return!Object(m["isObject"])(e)||Object(m["isArray"])(e)||e instanceof Date?e:e.value}function Tr(e){return Object(m["isObject"])(e)&&!(e instanceof Array)}function Lr(e,t,n){var i="normalMerge"===n,r="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Object(m["createHashMap"])();Object(m["each"])(t,(function(e,n){Object(m["isObject"])(e)||(t[n]=null)}));var s=Ir(e,a,n);return(i||r)&&Ar(s,e,a,t),i&&Nr(s,t),i||r?Pr(s,t,r):o&&Rr(s,t),Fr(s),s}function Ir(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||$r(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function Ar(e,t,n,i){Object(m["each"])(i,(function(r,o){if(r&&null!=r.id){var a=Br(r.id),s=n.get(a);if(null!=s){var l=e[s];Object(m["assert"])(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}}))}function Nr(e,t){Object(m["each"])(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!$r(n)&&!$r(o)&&jr("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}function Pr(e,t,n){Object(m["each"])(t,(function(t){if(t){var i,r=0;while((i=e[r])&&(i.newOption||$r(i.existing)||i.existing&&null!=t.id&&!jr("id",t,i.existing)))r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}function Rr(e,t){Object(m["each"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function Fr(e){var t=Object(m["createHashMap"])();Object(m["each"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(m["each"])(e,(function(e){var n=e.newOption;Object(m["assert"])(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(m["each"])(e,(function(e,n){var i=e.existing,r=e.newOption,o=e.keyInfo;if(Object(m["isObject"])(r)){if(o.name=null!=r.name?Br(r.name):i?i.name:Sr+n,i)o.id=Br(i.id);else if(null!=r.id)o.id=Br(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(t.get(o.id))}t.set(o.id,e)}}))}function jr(e,t,n){var i=zr(t[e],null),r=zr(n[e],null);return null!=i&&null!=r&&i===r}function Br(e){return zr(e,"")}function zr(e,t){return null==e?t:Object(m["isString"])(e)?e:Object(m["isNumber"])(e)||Object(m["isStringSafe"])(e)?e+"":t}function Vr(e){var t=e.name;return!(!t||!t.indexOf(Sr))}function $r(e){return e&&null!=e.id&&0===Br(e.id).indexOf(kr)}function Wr(e){return kr+e}function Hr(e,t,n){Object(m["each"])(e,(function(e){var i=e.newOption;Object(m["isObject"])(i)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ur(t,i,e.existing,n))}))}function Ur(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function qr(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=zr(e[i].seriesId,null);if(null==o)return;for(var a=Or(e[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(t[o]||(t[o]={}))[u]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function Gr(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(m["isArray"])(t.dataIndex)?Object(m["map"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(m["isArray"])(t.name)?Object(m["map"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Kr(){var e="__ec_inner_"+Yr++;return function(t){return t[e]||(t[e]={})}}var Yr=_r();function Xr(e,t,n){var i=Zr(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(t,i){var r=eo(e,i,t,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[i+"Models"]=r.models,s[i+"Model"]=r.models[0]})),s}function Zr(e,t){var n;if(Object(m["isString"])(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=Object(m["createHashMap"])(),o={},a=!1;return Object(m["each"])(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var i=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=i[1],l=(i[2]||"").toLowerCase();if(s&&l&&!(t&&t.includeMainTypes&&Object(m["indexOf"])(t.includeMainTypes,s)<0)){a=a||!!s;var c=r.get(s)||r.set(s,{});c[l]=e}}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var Qr={useDefault:!0,enableAll:!1,enableNone:!1},Jr={useDefault:!1,enableAll:!0,enableNone:!0};function eo(e,t,n,i){i=i||Qr;var r=n.index,o=n.id,a=n.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===r||!1===r?(Object(m["assert"])(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===r&&(Object(m["assert"])(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function to(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function no(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function io(e){return"auto"===e?g["a"].domSupported?"html":"richText":e||"html"}function ro(e,t){var n=Object(m["createHashMap"])(),i=[];return Object(m["each"])(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}function oo(e,t,n,i,r){var o=null==t||"auto"===t;if(null==i)return i;if(Object(m["isNumber"])(i)){var a=Cr(n||0,i,r);return er(a,o?Math.max(nr(n||0),nr(i)):t)}if(Object(m["isString"])(i))return r<1?n:i;for(var s=[],l=n,c=i,u=Math.max(l?l.length:0,c.length),d=0;d<u;++d){var h=e.getDimensionInfo(d);if(h&&"ordinal"===h.type)s[d]=(r<1&&l?l:c)[d];else{var f=l&&l[d]?l[d]:0,p=c[d];a=Cr(f,p,r);s[d]=er(a,o?Math.max(nr(f),nr(p)):t)}}return s}var ao=".",so="___EC__COMPONENT__CONTAINER___",lo="___EC__EXTENDED_CLASS___";function co(e){var t={main:"",sub:""};if(e){var n=e.split(ao);t.main=n[0]||"",t.sub=n[1]||""}return t}function uo(e){m["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ho(e){return!(!e||!e[lo])}function fo(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return po(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return p(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},m["inherits"](t,this)),m["extend"](t.prototype,e),t[lo]=!0,t.extend=this.extend,t.superCall=bo,t.superApply=yo,t.superClass=n,t}}function po(e){return m["isFunction"](e)&&/^class\s/.test(Function.prototype.toString.call(e))}function go(e,t){e.extend=t.extend}var mo=Math.round(10*Math.random());function vo(e){var t=["__\0is_clz",mo++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function bo(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function yo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function _o(e){var t={};function n(e){var n=t[e.main];return n&&n[so]||(n=t[e.main]={},n[so]=!0),n}e.registerClass=function(e){var i=e.type||e.prototype.type;if(i){uo(i),e.prototype.type=i;var r=co(i);if(r.sub){if(r.sub!==so){var o=n(r);o[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[so]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=co(e),i=[],r=t[n.main];return r&&r[so]?m["each"](r,(function(e,t){t!==so&&i.push(e)})):i.push(r),i},e.hasClass=function(e){var n=co(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return m["each"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=co(e),i=t[n.main];return i&&i[so]}}function wo(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,i,r){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(i&&m["indexOf"](i,s)>=0||r&&m["indexOf"](r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var xo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Co=wo(xo),So=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Co(this,e,t)},e}(),ko=new di["a"](50);function Oo(e){if("string"===typeof e){var t=ko.get(e);return t&&t.image}return e}function Mo(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ko.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!Eo(t)&&o.pending.push(a)):(t=hi["d"].loadImage(e,Do,Do),t.__zrImageSrc=e,ko.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function Do(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Eo(e){return e&&e.width&&e.height}var To=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Lo(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=Io(t,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=Ao(o[a],r);return o.join("\n")}function Io(e,t,n,i){i=i||{};var r=Object(m["extend"])({},i);r.font=t,n=Object(m["retrieve2"])(n,"..."),r.maxIterations=Object(m["retrieve2"])(i.maxIterations,2);var o=r.minChar=Object(m["retrieve2"])(i.minChar,0);r.cnCharWidth=pi("国",t);var a=r.ascCharWidth=pi("a",t);r.placeholder=Object(m["retrieve2"])(i.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=pi(n,t);return c>s&&(n="",c=0),s=e-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=s,r.containerWidth=e,r}function Ao(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=pi(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?No(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=pi(e,i)}return""===e&&(e=t.placeholder),e}function No(e,t,n,i){for(var r=0,o=0,a=e.length;o<a&&r<t;o++){var s=e.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function Po(e,t){null!=e&&(e+="");var n,i=t.overflow,r=t.padding,o=t.font,a="truncate"===i,s=yi(o),l=Object(m["retrieve2"])(t.lineHeight,s),c=!!t.backgroundColor,u="truncate"===t.lineOverflow,d=t.width;n=null==d||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?Ho(e,t.font,d,"breakAll"===i,0).lines:[];var h=n.length*l,f=Object(m["retrieve2"])(t.height,h);if(h>f&&u){var p=Math.floor(f/l);n=n.slice(0,p)}if(e&&a&&null!=d)for(var g=Io(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;v<n.length;v++)n[v]=Ao(n[v],g);var b=f,y=0;for(v=0;v<n.length;v++)y=Math.max(pi(n[v],o),y);null==d&&(d=y);var _=y;return r&&(b+=r[0]+r[2],_+=r[1]+r[3],d+=r[1]+r[3]),c&&(_=d),{lines:n,height:f,outerWidth:_,outerHeight:b,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:h,width:d}}var Ro=function(){function e(){}return e}(),Fo=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),jo=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function Bo(e,t){var n=new jo;if(null!=e&&(e+=""),!e)return n;var i,r=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==r?null:{width:r,accumWidth:0,breakAll:"breakAll"===a},l=To.lastIndex=0;while(null!=(i=To.exec(e))){var c=i.index;c>l&&zo(n,e.substring(l,c),t,s),zo(n,i[2],t,s,i[1]),l=To.lastIndex}l<e.length&&zo(n,e.substring(l,e.length),t,s);var u=[],d=0,h=0,f=t.padding,p="truncate"===a,g="truncate"===t.lineOverflow;function v(e,t,n){e.width=t,e.lineHeight=n,d+=n,h=Math.max(h,t)}e:for(var b=0;b<n.lines.length;b++){for(var y=n.lines[b],_=0,w=0,x=0;x<y.tokens.length;x++){var C=y.tokens[x],S=C.styleName&&t.rich[C.styleName]||{},k=C.textPadding=S.padding,O=k?k[1]+k[3]:0,M=C.font=S.font||t.font;C.contentHeight=yi(M);var D=Object(m["retrieve2"])(S.height,C.contentHeight);if(C.innerHeight=D,k&&(D+=k[0]+k[2]),C.height=D,C.lineHeight=Object(m["retrieve3"])(S.lineHeight,t.lineHeight,D),C.align=S&&S.align||t.align,C.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&d+C.lineHeight>o){x>0?(y.tokens=y.tokens.slice(0,x),v(y,w,_),n.lines=n.lines.slice(0,b+1)):n.lines=n.lines.slice(0,b);break e}var E=S.width,T=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))C.percentWidth=E,u.push(C),C.contentWidth=pi(C.text,M);else{if(T){var L=S.backgroundColor,I=L&&L.image;I&&(I=Oo(I),Eo(I)&&(C.width=Math.max(C.width,I.width*D/I.height)))}var A=p&&null!=r?r-w:null;null!=A&&A<C.width?!T||A<O?(C.text="",C.width=C.contentWidth=0):(C.text=Lo(C.text,A-O,M,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=pi(C.text,M)):C.contentWidth=pi(C.text,M)}C.width+=O,w+=C.width,S&&(_=Math.max(_,C.lineHeight))}v(y,w,_)}n.outerWidth=n.width=Object(m["retrieve2"])(r,h),n.outerHeight=n.height=Object(m["retrieve2"])(o,d),n.contentHeight=d,n.contentWidth=h,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(b=0;b<u.length;b++){C=u[b];var N=C.percentWidth;C.width=parseInt(N,10)/100*n.width}return n}function zo(e,t,n,i,r){var o,a,s=""===t,l=r&&n.rich[r]||{},c=e.lines,u=l.font||n.font,d=!1;if(i){var h=l.padding,f=h?h[1]+h[3]:0;if(null!=l.width&&"auto"!==l.width){var p=_i(l.width,i.width)+f;c.length>0&&p+i.accumWidth>i.width&&(o=t.split("\n"),d=!0),i.accumWidth=p}else{var g=Ho(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var v=o[m],b=new Ro;if(b.styleName=r,b.text=v,b.isLineHolder=!v&&!s,"number"===typeof l.width?b.width=l.width:b.width=a?a[m]:pi(v,u),m||d)c.push(new Fo([b]));else{var y=(c[c.length-1]||(c[0]=new Fo)).tokens,_=y.length;1===_&&y[0].isLineHolder?y[0]=b:(v||!_||s)&&y.push(b)}}}function Vo(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $o=Object(m["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Wo(e){return!Vo(e)||!!$o[e]}function Ho(e,t,n,i,r){for(var o=[],a=[],s="",l="",c=0,u=0,d=0;d<e.length;d++){var h=e.charAt(d);if("\n"!==h){var f=pi(h,t),p=!i&&!Wo(h);(o.length?u+f>n:r+u+f>n)?u?(s||l)&&(p?(s||(s=l,l="",c=0,u=c),o.push(s),a.push(u-c),l+=h,c+=f,s="",u=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(u),s=h,u=f)):p?(o.push(l),a.push(c),l=h,c=f):(o.push(h),a.push(f)):(u+=f,p?(l+=h,c+=f):(l&&(s+=l,l="",c=0),s+=h))}else l&&(s+=l,u+=c),o.push(s),a.push(u),s="",l="",c=0,u=0}return o.length||s||(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}var Uo="__zr_style_"+Math.round(10*Math.random()),qo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Go={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qo[Uo]=!0;var Ko=["z","z2","invisible"],Yo=["invisible"],Xo=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype._init=function(t){for(var n=Object(m["keys"])(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Jo(this,e,t)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,o=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new $e(0,0,0,0)),t?$e.applyTransform(e,n,t):e.copy(n),(r||o||a)&&(e.width+=2*r+Math.abs(o),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+o-r),e.y=Math.min(e.y,e.y+a-r));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new $e(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:Object(m["extend"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=ht,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ht)},t.prototype.styleUpdated=function(){this.__dirty&=~ht},t.prototype.createStyle=function(e){return Object(m["createObject"])(qo,e)},t.prototype.useStyle=function(e){e[Uo]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Uo]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ko)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.style?o?r?s=n.style:(s=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(s,n.style)):l&&(s=i.style),s)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var u=Object(m["keys"])(c),d=0;d<u.length;d++){var h=u[d];h in s&&(s[h]=s[h],this.style[h]=c[h])}var f=Object(m["keys"])(s);for(d=0;d<f.length;d++){h=f[d];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?Yo:Ko;for(d=0;d<p.length;d++){h=p[d];n&&null!=n[h]?this[h]=n[h]:l&&null!=i[h]&&(this[h]=i[h])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return Object(m["extend"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return Go},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=dt|ht}(),t}(Pi),Zo=new $e(0,0,0,0),Qo=new $e(0,0,0,0);function Jo(e,t,n){return Zo.copy(e.getBoundingRect()),e.transform&&Zo.applyTransform(e.transform),Qo.width=t,Qo.height=n,!Zo.intersect(Qo)}var ea=Xo,ta=Math.min,na=Math.max,ia=Math.sin,ra=Math.cos,oa=2*Math.PI,aa=v(),sa=v(),la=v();function ca(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<e.length;l++)i=e[l],r=ta(r,i[0]),o=na(o,i[0]),a=ta(a,i[1]),s=na(s,i[1]);t[0]=r,t[1]=a,n[0]=o,n[1]=s}}function ua(e,t,n,i,r,o){r[0]=ta(e,n),r[1]=ta(t,i),o[0]=na(e,n),o[1]=na(t,i)}var da=[],ha=[];function fa(e,t,n,i,r,o,a,s,l,c){var u=Ft,d=Nt,h=u(e,n,r,a,da);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var f=0;f<h;f++){var p=d(e,n,r,a,da[f]);l[0]=ta(p,l[0]),c[0]=na(p,c[0])}h=u(t,i,o,s,ha);for(f=0;f<h;f++){var g=d(t,i,o,s,ha[f]);l[1]=ta(g,l[1]),c[1]=na(g,c[1])}l[0]=ta(e,l[0]),c[0]=na(e,c[0]),l[0]=ta(a,l[0]),c[0]=na(a,c[0]),l[1]=ta(t,l[1]),c[1]=na(t,c[1]),l[1]=ta(s,l[1]),c[1]=na(s,c[1])}function pa(e,t,n,i,r,o,a,s){var l=Ht,c=Vt,u=na(ta(l(e,n,r),1),0),d=na(ta(l(t,i,o),1),0),h=c(e,n,r,u),f=c(t,i,o,d);a[0]=ta(e,r,h),a[1]=ta(t,o,f),s[0]=na(e,r,h),s[1]=na(t,o,f)}function ga(e,t,n,i,r,o,a,s,l){var c=z,u=V,d=Math.abs(r-o);if(d%oa<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(aa[0]=ra(r)*n+e,aa[1]=ia(r)*i+t,sa[0]=ra(o)*n+e,sa[1]=ia(o)*i+t,c(s,aa,sa),u(l,aa,sa),r%=oa,r<0&&(r+=oa),o%=oa,o<0&&(o+=oa),r>o&&!a?o+=oa:r<o&&a&&(r+=oa),a){var h=o;o=r,r=h}for(var f=0;f<o;f+=Math.PI/2)f>r&&(la[0]=ra(f)*n+e,la[1]=ia(f)*i+t,c(s,la,s),u(l,la,l))}var ma={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},va=[],ba=[],ya=[],_a=[],wa=[],xa=[],Ca=Math.min,Sa=Math.max,ka=Math.cos,Oa=Math.sin,Ma=Math.abs,Da=Math.PI,Ea=2*Da,Ta="undefined"!==typeof Float32Array,La=[];function Ia(e){var t=Math.round(e/Da*1e8)/1e8;return t%2*Da}function Aa(e,t){var n=Ia(e[0]);n<0&&(n+=Ea);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=Ea?r=n+Ea:t&&n-r>=Ea?r=n-Ea:!t&&n>r?r=n+(Ea-Ia(n-r)):t&&n<r&&(r=n-(Ea-Ia(r-n))),e[0]=n,e[1]=r}var Na=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=Ma(n/Yn/e)||0,this._uy=Ma(n/Yn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(ma.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Ma(e-this._xi),i=Ma(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(ma.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(ma.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(ma.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),La[0]=i,La[1]=r,Aa(La,o),i=La[0],r=La[1];var a=r-i;return this.addData(ma.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=ka(r)*n+e,this._yi=Oa(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(ma.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ma.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Ta||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();Ta&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,a,s,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ta&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ya[0]=ya[1]=wa[0]=wa[1]=Number.MAX_VALUE,_a[0]=_a[1]=xa[0]=xa[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(n=t[e],i=t[e+1],r=n,o=i),a){case ma.M:n=r=t[e++],i=o=t[e++],wa[0]=r,wa[1]=o,xa[0]=r,xa[1]=o;break;case ma.L:ua(n,i,t[e],t[e+1],wa,xa),n=t[e++],i=t[e++];break;case ma.C:fa(n,i,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],wa,xa),n=t[e++],i=t[e++];break;case ma.Q:pa(n,i,t[e++],t[e++],t[e],t[e+1],wa,xa),n=t[e++],i=t[e++];break;case ma.A:var l=t[e++],c=t[e++],u=t[e++],d=t[e++],h=t[e++],f=t[e++]+h;e+=1;var p=!t[e++];s&&(r=ka(h)*u+l,o=Oa(h)*d+c),ga(l,c,u,d,h,f,p,wa,xa),n=ka(f)*u+l,i=Oa(f)*d+c;break;case ma.R:r=n=t[e++],o=i=t[e++];var g=t[e++],m=t[e++];ua(r,o,r+g,o+m,wa,xa);break;case ma.Z:n=r,i=o;break}z(ya,ya,wa),V(_a,_a,xa)}return 0===e&&(ya[0]=ya[1]=_a[0]=_a[1]=0),new $e(ya[0],ya[1],_a[0]-ya[0],_a[1]-ya[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,c=0,u=0,d=0;d<t;){var h=e[d++],f=1===d;f&&(r=e[d],o=e[d+1],a=r,s=o);var p=-1;switch(h){case ma.M:r=a=e[d++],o=s=e[d++];break;case ma.L:var g=e[d++],m=e[d++],v=g-r,b=m-o;(Ma(v)>n||Ma(b)>i||d===t-1)&&(p=Math.sqrt(v*v+b*b),r=g,o=m);break;case ma.C:var y=e[d++],_=e[d++],w=(g=e[d++],m=e[d++],e[d++]),x=e[d++];p=zt(r,o,y,_,g,m,w,x,10),r=w,o=x;break;case ma.Q:y=e[d++],_=e[d++],g=e[d++],m=e[d++];p=Gt(r,o,y,_,g,m,10),r=g,o=m;break;case ma.A:var C=e[d++],S=e[d++],k=e[d++],O=e[d++],M=e[d++],D=e[d++],E=D+M;d+=1;e[d++];f&&(a=ka(M)*k+C,s=Oa(M)*O+S),p=Sa(k,O)*Ca(Ea,Math.abs(D)),r=ka(E)*k+C,o=Oa(E)*O+S;break;case ma.R:a=r=e[d++],s=o=e[d++];var T=e[d++],L=e[d++];p=2*T+2*L;break;case ma.Z:v=a-r,b=s-o;p=Math.sqrt(v*v+b*b),r=a,o=s;break}p>=0&&(l[u++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,c,u,d,h,f=this.data,p=this._ux,g=this._uy,m=this._len,v=t<1,b=0,y=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,c=this._pathLen,u=t*c,u))e:for(var w=0;w<m;){var x=f[w++],C=1===w;switch(C&&(r=f[w],o=f[w+1],n=r,i=o),x!==ma.L&&_>0&&(e.lineTo(d,h),_=0),x){case ma.M:n=r=f[w++],i=o=f[w++],e.moveTo(r,o);break;case ma.L:a=f[w++],s=f[w++];var S=Ma(a-r),k=Ma(s-o);if(S>p||k>g){if(v){var O=l[y++];if(b+O>u){var M=(u-b)/O;e.lineTo(r*(1-M)+a*M,o*(1-M)+s*M);break e}b+=O}e.lineTo(a,s),r=a,o=s,_=0}else{var D=S*S+k*k;D>_&&(d=a,h=s,_=D)}break;case ma.C:var E=f[w++],T=f[w++],L=f[w++],I=f[w++],A=f[w++],N=f[w++];if(v){O=l[y++];if(b+O>u){M=(u-b)/O;jt(r,E,L,A,M,va),jt(o,T,I,N,M,ba),e.bezierCurveTo(va[1],ba[1],va[2],ba[2],va[3],ba[3]);break e}b+=O}e.bezierCurveTo(E,T,L,I,A,N),r=A,o=N;break;case ma.Q:E=f[w++],T=f[w++],L=f[w++],I=f[w++];if(v){O=l[y++];if(b+O>u){M=(u-b)/O;Ut(r,E,L,M,va),Ut(o,T,I,M,ba),e.quadraticCurveTo(va[1],ba[1],va[2],ba[2]);break e}b+=O}e.quadraticCurveTo(E,T,L,I),r=L,o=I;break;case ma.A:var P=f[w++],R=f[w++],F=f[w++],j=f[w++],B=f[w++],z=f[w++],V=f[w++],$=!f[w++],W=F>j?F:j,H=Ma(F-j)>.001,U=B+z,q=!1;if(v){O=l[y++];b+O>u&&(U=B+z*(u-b)/O,q=!0),b+=O}if(H&&e.ellipse?e.ellipse(P,R,F,j,V,B,U,$):e.arc(P,R,W,B,U,$),q)break e;C&&(n=ka(B)*F+P,i=Oa(B)*j+R),r=ka(U)*F+P,o=Oa(U)*j+R;break;case ma.R:n=r=f[w],i=o=f[w+1],a=f[w++],s=f[w++];var G=f[w++],K=f[w++];if(v){O=l[y++];if(b+O>u){var Y=u-b;e.moveTo(a,s),e.lineTo(a+Ca(Y,G),s),Y-=G,Y>0&&e.lineTo(a+G,s+Ca(Y,K)),Y-=K,Y>0&&e.lineTo(a+Sa(G-Y,0),s+K),Y-=G,Y>0&&e.lineTo(a,s+Sa(K-Y,0));break e}b+=O}e.rect(a,s,G,K);break;case ma.Z:if(v){O=l[y++];if(b+O>u){M=(u-b)/O;e.lineTo(r*(1-M)+n*M,o*(1-M)+i*M);break e}b+=O}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=ma,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Pa=Na;function Ra(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,c=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;l=(t-i)/(e-n),c=(e*i-n*t)/(e-n);var u=l*o-a+c,d=u*u/(l*l+1);return d<=s/2*s/2}function Fa(e,t,n,i,r,o,a,s,l,c,u){if(0===l)return!1;var d=l;if(u>t+d&&u>i+d&&u>o+d&&u>s+d||u<t-d&&u<i-d&&u<o-d&&u<s-d||c>e+d&&c>n+d&&c>r+d&&c>a+d||c<e-d&&c<n-d&&c<r-d&&c<a-d)return!1;var h=Bt(e,t,n,i,r,o,a,s,c,u,null);return h<=d/2}function ja(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;if(l>t+c&&l>i+c&&l>o+c||l<t-c&&l<i-c&&l<o-c||s>e+c&&s>n+c&&s>r+c||s<e-c&&s<n-c&&s<r-c)return!1;var u=qt(e,t,n,i,r,o,s,l,null);return u<=c/2}var Ba=2*Math.PI;function za(e){return e%=Ba,e<0&&(e+=Ba),e}var Va=2*Math.PI;function $a(e,t,n,i,r,o,a,s,l){if(0===a)return!1;var c=a;s-=e,l-=t;var u=Math.sqrt(s*s+l*l);if(u-c>n||u+c<n)return!1;if(Math.abs(i-r)%Va<1e-4)return!0;if(o){var d=i;i=za(r),r=za(d)}else i=za(i),r=za(r);i>r&&(r+=Va);var h=Math.atan2(l,s);return h<0&&(h+=Va),h>=i&&h<=r||h+Va>=i&&h+Va<=r}function Wa(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;1!==a&&0!==a||(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var Ha=Pa.CMD,Ua=2*Math.PI,qa=1e-4;function Ga(e,t){return Math.abs(e-t)<qa}var Ka=[-1,-1,-1],Ya=[-1,-1];function Xa(){var e=Ya[0];Ya[0]=Ya[1],Ya[1]=e}function Za(e,t,n,i,r,o,a,s,l,c){if(c>t&&c>i&&c>o&&c>s||c<t&&c<i&&c<o&&c<s)return 0;var u=Rt(t,i,o,s,c,Ka);if(0===u)return 0;for(var d=0,h=-1,f=void 0,p=void 0,g=0;g<u;g++){var m=Ka[g],v=0===m||1===m?.5:1,b=Nt(e,n,r,a,m);b<l||(h<0&&(h=Ft(t,i,o,s,Ya),Ya[1]<Ya[0]&&h>1&&Xa(),f=Nt(t,i,o,s,Ya[0]),h>1&&(p=Nt(t,i,o,s,Ya[1]))),2===h?m<Ya[0]?d+=f<t?v:-v:m<Ya[1]?d+=p<f?v:-v:d+=s<p?v:-v:m<Ya[0]?d+=f<t?v:-v:d+=s<f?v:-v)}return d}function Qa(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=Wt(t,i,o,s,Ka);if(0===l)return 0;var c=Ht(t,i,o);if(c>=0&&c<=1){for(var u=0,d=Vt(t,i,o,c),h=0;h<l;h++){var f=0===Ka[h]||1===Ka[h]?.5:1,p=Vt(e,n,r,Ka[h]);p<a||(Ka[h]<c?u+=d<t?f:-f:u+=o<d?f:-f)}return u}f=0===Ka[0]||1===Ka[0]?.5:1,p=Vt(e,n,r,Ka[0]);return p<a?0:o<t?f:-f}function Ja(e,t,n,i,r,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ka[0]=-l,Ka[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=Ua-1e-4){i=0,r=Ua;var u=o?1:-1;return a>=Ka[0]+e&&a<=Ka[1]+e?u:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=Ua,r+=Ua);for(var h=0,f=0;f<2;f++){var p=Ka[f];if(p+e>a){var g=Math.atan2(s,p);u=o?1:-1;g<0&&(g=Ua+g),(g>=i&&g<=r||g+Ua>=i&&g+Ua<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),h+=u)}}return h}function es(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),c=0,u=0,d=0,h=0,f=0,p=0;p<l;){var g=s[p++],m=1===p;switch(g===Ha.M&&p>1&&(n||(c+=Wa(u,d,h,f,i,r))),m&&(u=s[p],d=s[p+1],h=u,f=d),g){case Ha.M:h=s[p++],f=s[p++],u=h,d=f;break;case Ha.L:if(n){if(Ra(u,d,s[p],s[p+1],t,i,r))return!0}else c+=Wa(u,d,s[p],s[p+1],i,r)||0;u=s[p++],d=s[p++];break;case Ha.C:if(n){if(Fa(u,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,i,r))return!0}else c+=Za(u,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],i,r)||0;u=s[p++],d=s[p++];break;case Ha.Q:if(n){if(ja(u,d,s[p++],s[p++],s[p],s[p+1],t,i,r))return!0}else c+=Qa(u,d,s[p++],s[p++],s[p],s[p+1],i,r)||0;u=s[p++],d=s[p++];break;case Ha.A:var v=s[p++],b=s[p++],y=s[p++],_=s[p++],w=s[p++],x=s[p++];p+=1;var C=!!(1-s[p++]);o=Math.cos(w)*y+v,a=Math.sin(w)*_+b,m?(h=o,f=a):c+=Wa(u,d,o,a,i,r);var S=(i-v)*_/y+v;if(n){if($a(v,b,_,w,w+x,C,t,S,r))return!0}else c+=Ja(v,b,_,w,w+x,C,S,r);u=Math.cos(w+x)*y+v,d=Math.sin(w+x)*_+b;break;case Ha.R:h=u=s[p++],f=d=s[p++];var k=s[p++],O=s[p++];if(o=h+k,a=f+O,n){if(Ra(h,f,o,f,t,i,r)||Ra(o,f,o,a,t,i,r)||Ra(o,a,h,a,t,i,r)||Ra(h,a,h,f,t,i,r))return!0}else c+=Wa(o,f,o,a,i,r),c+=Wa(h,a,h,f,i,r);break;case Ha.Z:if(n){if(Ra(u,d,h,f,t,i,r))return!0}else c+=Wa(u,d,h,f,i,r);u=h,d=f;break}}return n||Ga(d,f)||(c+=Wa(u,d,h,f,i,r)||0),0!==c}function ts(e,t,n){return es(e,0,!1,t,n)}function ns(e,t,n,i){return es(e,t,!0,n,i)}var is=Object(m["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},qo),rs={style:Object(m["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Go.style)},os=li.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<os.length;++s)r[os[s]]=this[os[s]];r.__dirty|=dt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(m["keys"])(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=t[o];"style"===o?this.style?Object(m["extend"])(this.style,a):this.useStyle(a):"shape"===o?Object(m["extend"])(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(m["isString"])(e)){var t=Object(Qt["lum"])(e,0);return t>.5?Zn:t>.2?Jn:Qn}if(e)return Qn}return Zn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(m["isString"])(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(Qt["lum"])(e,0)<Xn;if(i===r)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ft},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Pa(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&ft)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ns(o,a/s,e,t)))return!0}if(this.hasFill())return ts(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ft,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(m["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ft)},t.prototype.createStyle=function(e){return Object(m["createObject"])(is,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(m["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(m["extend"])({},i.shape),Object(m["extend"])(s,n.shape)):(s=Object(m["extend"])({},r?this.shape:i.shape),Object(m["extend"])(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(m["extend"])({},this.shape);for(var c={},u=Object(m["keys"])(s),d=0;d<u.length;d++){var h=u[d];"object"===typeof s[h]?this.shape[h]=s[h]:c[h]=s[h]}this._transitionState(t,{shape:c},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return rs},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return p(n,t),n.prototype.getDefaultStyle=function(){return Object(m["clone"])(e.style)},n.prototype.getDefaultShape=function(){return Object(m["clone"])(e.shape)},n}(t);for(var i in e)"function"===typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=dt|ht|ft}(),t}(ea),ss=as,ls=Object(m["defaults"])({strokeFirst:!0,font:hi["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},is),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(m["createObject"])(ls,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=mi(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ea);cs.prototype.type="tspan";var us=cs,ds=Object(m["defaults"])({x:0,y:0},qo),hs={style:Object(m["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Go.style)};function fs(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.createStyle=function(e){return Object(m["createObject"])(ds,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=fs(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hs},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new $e(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ea);ps.prototype.type="image";var gs=ps;function ms(e,t){var n,i,r,o,a,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>c&&(a=n+i,n*=c/a,i*=c/a),r+o>c&&(a=r+o,r*=c/a,o*=c/a),i+r>u&&(a=i+r,i*=u/a,r*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-i,l),0!==i&&e.arc(s+c-i,l+i,i,-Math.PI/2,0),e.lineTo(s+c,l+u-r),0!==r&&e.arc(s+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var vs=Math.round;function bs(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(vs(2*i)===vs(2*r)&&(e.x1=e.x2=_s(i,s,!0)),vs(2*o)===vs(2*a)&&(e.y1=e.y2=_s(o,s,!0)),e):e}}function ys(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=_s(i,s,!0),e.y=_s(r,s,!0),e.width=Math.max(_s(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(_s(r+a,s,!1)-e.y,0===a?0:1),e):e}}function _s(e,t,n){if(!t)return e;var i=vs(2*e);return(i+vs(t))%2===0?i/2:(i+(n?1:-1))/2}var ws=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),xs={},Cs=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new ws},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=ys(xs,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?ms(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ss);Cs.prototype.type="rect";var Ss=Cs,ks={fill:"#000"},Os=2,Ms={style:Object(m["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Go.style)},Ds=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ks,n.attr(t),n}return p(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ps(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new $e(0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),i=i||e.clone(),i.union(e)):(i=i||a.clone(),i.union(a))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ks},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return Object(m["extend"])(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=Object(m["keys"])(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},Object(m["extend"])(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return Ms},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||hi["a"],n=e.padding,i=zs(e),r=Po(i,e),o=Vs(e),a=!!e.backgroundColor,s=r.outerHeight,l=r.outerWidth,c=r.contentWidth,u=r.lines,d=r.lineHeight,h=this._defaultStyle,f=e.x||0,p=e.y||0,g=e.align||h.align||"left",m=e.verticalAlign||h.verticalAlign||"top",v=f,b=bi(p,r.contentHeight,m);if(o||n){var y=vi(f,l,g),_=bi(p,s,m);o&&this._renderBackground(e,e,y,_,l,s)}b+=d/2,n&&(v=Bs(f,g,n),"top"===m?b+=n[0]:"bottom"===m&&(b-=n[2]));for(var w=0,x=!1,C=(js("fill"in e?e.fill:(x=!0,h.fill))),S=(Fs("stroke"in e?e.stroke:a||h.autoStroke&&!x?null:(w=Os,h.stroke))),k=e.textShadowBlur>0,O=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=r.calculatedLineHeight,D=0;D<u.length;D++){var E=this._getOrCreateChild(us),T=E.createStyle();E.useStyle(T),T.text=u[D],T.x=v,T.y=b,g&&(T.textAlign=g),T.textBaseline="middle",T.opacity=e.opacity,T.strokeFirst=!0,k&&(T.shadowBlur=e.textShadowBlur||0,T.shadowColor=e.textShadowColor||"transparent",T.shadowOffsetX=e.textShadowOffsetX||0,T.shadowOffsetY=e.textShadowOffsetY||0),T.stroke=S,T.fill=C,S&&(T.lineWidth=e.lineWidth||w,T.lineDash=e.lineDash,T.lineDashOffset=e.lineDashOffset||0),T.font=t,As(T,e),b+=d,O&&E.setBoundingRect(new $e(vi(T.x,e.width,T.textAlign),bi(T.y,M,T.textBaseline),c,M))}},t.prototype._updateRichTexts=function(){var e=this.style,t=zs(e),n=Bo(t,e),i=n.width,r=n.outerWidth,o=n.outerHeight,a=e.padding,s=e.x||0,l=e.y||0,c=this._defaultStyle,u=e.align||c.align,d=e.verticalAlign||c.verticalAlign,h=vi(s,r,u),f=bi(l,o,d),p=h,g=f;a&&(p+=a[3],g+=a[0]);var m=p+i;Vs(e)&&this._renderBackground(e,e,h,f,r,o);for(var v=!!e.backgroundColor,b=0;b<n.lines.length;b++){var y=n.lines[b],_=y.tokens,w=_.length,x=y.lineHeight,C=y.width,S=0,k=p,O=m,M=w-1,D=void 0;while(S<w&&(D=_[S],!D.align||"left"===D.align))this._placeToken(D,e,x,g,k,"left",v),C-=D.width,k+=D.width,S++;while(M>=0&&(D=_[M],"right"===D.align))this._placeToken(D,e,x,g,O,"right",v),C-=D.width,O-=D.width,M--;k+=(i-(k-p)-(m-O)-C)/2;while(S<=M)D=_[S],this._placeToken(D,e,x,g,k+D.width/2,"center",v),k+=D.width,S++;g+=x}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=i+n/2;"top"===l?c=i+e.height/2:"bottom"===l&&(c=i+n-e.height/2);var u=!e.isLineHolder&&Vs(s);u&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,c-e.height/2,e.width,e.height);var d=!!s.backgroundColor,h=e.textPadding;h&&(r=Bs(r,o,h),c-=e.height/2-h[0]-e.innerHeight/2);var f=this._getOrCreateChild(us),p=f.createStyle();f.useStyle(p);var g=this._defaultStyle,v=!1,b=0,y=js("fill"in s?s.fill:"fill"in t?t.fill:(v=!0,g.fill)),_=Fs("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||g.autoStroke&&!v?null:(b=Os,g.stroke)),w=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=r,p.y=c,w&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||hi["a"],p.opacity=Object(m["retrieve3"])(s.opacity,t.opacity,1),As(p,s),_&&(p.lineWidth=Object(m["retrieve3"])(s.lineWidth,t.lineWidth,b),p.lineDash=Object(m["retrieve2"])(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=_),y&&(p.fill=y);var x=e.contentWidth,C=e.contentHeight;f.setBoundingRect(new $e(vi(p.x,x,p.textAlign),bi(p.y,C,p.textBaseline),x,C))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,c=e.borderWidth,u=e.borderColor,d=l&&l.image,h=l&&!d,f=e.borderRadius,p=this;if(h||e.lineHeight||c&&u){a=this._getOrCreateChild(Ss),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=i,g.width=r,g.height=o,g.r=f,a.dirtyShape()}if(h){var v=a.style;v.fill=l||null,v.fillOpacity=Object(m["retrieve2"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(gs),s.onload=function(){p.dirtyStyle()};var b=s.style;b.image=l.image,b.x=n,b.y=i,b.width=r,b.height=o}if(c&&u){v=a.style;v.lineWidth=c,v.stroke=u,v.strokeOpacity=Object(m["retrieve2"])(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Object(m["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return Ns(e)&&(t=[e.fontStyle,e.fontWeight,Is(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(m["trim"])(t)||e.textFont||e.font},t}(ea),Es={left:!0,right:1,center:1},Ts={top:1,bottom:1,middle:1},Ls=["fontStyle","fontWeight","fontSize","fontFamily"];function Is(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?hi["c"]+"px":e+"px":e}function As(e,t){for(var n=0;n<Ls.length;n++){var i=Ls[n],r=t[i];null!=r&&(e[i]=r)}}function Ns(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Ps(e){return Rs(e),Object(m["each"])(e.rich,Rs),e}function Rs(e){if(e){e.font=Ds.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||Es[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ts[n]?n:"top";var i=e.padding;i&&(e.padding=Object(m["normalizeCssArray"])(e.padding))}}function Fs(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function js(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Bs(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function zs(e){var t=e.text;return null!=t&&(t+=""),t}function Vs(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $s=Ds,Ws=Kr(),Hs=function(e,t,n,i){if(i){var r=Ws(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,"group"===i.type&&i.traverse((function(i){var r=Ws(i);r.seriesIndex=e,r.dataIndex=n,r.dataType=t}))}},Us=1,qs={},Gs=Kr(),Ks=Kr(),Ys=0,Xs=1,Zs=2,Qs=["emphasis","blur","select"],Js=["normal","emphasis","blur","select"],el=10,tl=9,nl="highlight",il="downplay",rl="select",ol="unselect",al="toggleSelect";function sl(e){return null!=e&&"none"!==e}var ll=new di["a"](100);function cl(e){if(Object(m["isString"])(e)){var t=ll.get(e);return t||(t=Qt["lift"](e,-.1),ll.put(e,t)),t}if(Object(m["isGradientObject"])(e)){var n=Object(m["extend"])({},e);return n.colorStops=Object(m["map"])(e.colorStops,(function(e){return{offset:e.offset,color:Qt["lift"](e.color,-.1)}})),n}return e}function ul(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function dl(e){ul(e,"emphasis",Zs)}function hl(e){e.hoverState===Zs&&ul(e,"normal",Ys)}function fl(e){ul(e,"blur",Xs)}function pl(e){e.hoverState===Xs&&ul(e,"normal",Ys)}function gl(e){e.selected=!0}function ml(e){e.selected=!1}function vl(e,t,n){t(e,n)}function bl(e,t,n){vl(e,t,n),e.isGroup&&e.traverse((function(e){vl(e,t,n)}))}function yl(e,t){switch(t){case"emphasis":e.hoverState=Zs;break;case"normal":e.hoverState=Ys;break;case"blur":e.hoverState=Xs;break;case"select":e.selected=!0}}function _l(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(o,t)}return o}function wl(e,t,n,i){var r=n&&Object(m["indexOf"])(n,"select")>=0,o=!1;if(e instanceof ss){var a=Gs(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(sl(s)||sl(l)){i=i||{};var c=i.style||{};"inherit"===c.fill?(o=!0,i=Object(m["extend"])({},i),c=Object(m["extend"])({},c),c.fill=s):!sl(c.fill)&&sl(s)?(o=!0,i=Object(m["extend"])({},i),c=Object(m["extend"])({},c),c.fill=cl(s)):!sl(c.stroke)&&sl(l)&&(o||(i=Object(m["extend"])({},i),c=Object(m["extend"])({},c)),c.stroke=cl(l)),i.style=c}}if(i&&null==i.z2){o||(i=Object(m["extend"])({},i));var u=e.z2EmphasisLift;i.z2=e.z2+(null!=u?u:el)}return i}function xl(e,t,n){if(n&&null==n.z2){n=Object(m["extend"])({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:tl)}return n}function Cl(e,t,n){var i=Object(m["indexOf"])(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:_l(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(m["extend"])({},n),a=Object(m["extend"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Sl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return wl(this,e,t,n);if("blur"===e)return Cl(this,e,n);if("select"===e)return xl(this,e,n)}return n}function kl(e){e.stateProxy=Sl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Sl),n&&(n.stateProxy=Sl)}function Ol(e,t){!Nl(e,t)&&!e.__highByOuter&&bl(e,dl)}function Ml(e,t){!Nl(e,t)&&!e.__highByOuter&&bl(e,hl)}function Dl(e,t){e.__highByOuter|=1<<(t||0),bl(e,dl)}function El(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&bl(e,hl)}function Tl(e){bl(e,fl)}function Ll(e){bl(e,pl)}function Il(e){bl(e,gl)}function Al(e){bl(e,ml)}function Nl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Pl(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=Ks(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){pl(e)})),a&&n.push(r)),o.isBlured=!1})),Object(m["each"])(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Rl(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&Ll(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries((function(e){var r=a===e,c=e.coordinateSystem;c&&c.master&&(c=c.master);var u=c&&s?c===s:r;if(!("series"===n&&!r||"coordinateSystem"===n&&!u||"series"===t&&r)){var d=i.getViewOfSeriesModel(e);if(d.group.traverse((function(e){fl(e)})),Object(m["isArrayLike"])(t))o(e.getData(),t);else if(Object(m["isObject"])(t))for(var h=Object(m["keys"])(t),f=0;f<h.length;f++)o(e.getData(h[f]),t[h[f]]);l.push(e),Ks(e).isBlured=!0}})),r.eachComponent((function(e,t){if("series"!==e){var n=i.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,r)}}))}}function Fl(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){Ks(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){fl(e)}))}}}function jl(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=Gr(r,t);o=(Object(m["isArray"])(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a){var s=r.count(),l=0;while(!a&&l<s)a=r.getItemGraphicEl(l++)}if(a){var c=Ws(a);Rl(i,c.focus,c.blurScope,n)}else{var u=e.get(["emphasis","focus"]),d=e.get(["emphasis","blurScope"]);null!=u&&Rl(i,u,d,n)}}}function Bl(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(n),c=0;c<l.length;c++)if("self"===Ws(l[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function zl(e,t,n){var i=Ws(e),r=Bl(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Fl(i.componentMainType,i.componentIndex,n),Object(m["each"])(o,(function(e){return Ol(e,t)}))):(Rl(i.seriesIndex,i.focus,i.blurScope,n),"self"===i.focus&&Fl(i.componentMainType,i.componentIndex,n),Ol(e,t))}function Vl(e,t,n){Pl(n);var i=Ws(e),r=Bl(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?Object(m["each"])(r,(function(e){return Ml(e,t)})):Ml(e,t)}function $l(e,t,n){if(nc(t)){var i=t.dataType,r=e.getData(i),o=Gr(r,t);Object(m["isArray"])(o)||(o=[o]),e[t.type===al?"toggleSelect":t.type===rl?"select":"unselect"](o,i)}}function Wl(e){var t=e.getAllData();Object(m["each"])(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?Il(t):Al(t)}))}))}function Hl(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(m["each"])(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Ul(e,t,n){Ql(e,!0),bl(e,kl),Kl(e,t,n)}function ql(e){Ql(e,!1)}function Gl(e,t,n,i){i?ql(e):Ul(e,t,n)}function Kl(e,t,n){var i=Ws(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Yl=["emphasis","blur","select"],Xl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zl(e,t,n,i){n=n||"itemStyle";for(var r=0;r<Yl.length;r++){var o=Yl[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=i?i(a):a[Xl[n]]()}}function Ql(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Jl(e){return!(!e||!e.__highDownDispatcher)}function ec(e,t,n){var i=Ws(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function tc(e){var t=qs[e];return null==t&&Us<=32&&(t=qs[e]=Us++),t}function nc(e){var t=e.type;return t===rl||t===ol||t===al}function ic(e){var t=e.type;return t===nl||t===il}function rc(e){var t=Gs(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var oc=Kr();function ac(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l="update"===e;if(s){var c=void 0,u=void 0,d=void 0;i?(c=Object(m["retrieve2"])(i.duration,200),u=Object(m["retrieve2"])(i.easing,"cubicOut"),d=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),u=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(c=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(d=o.delay)),Object(m["isFunction"])(d)&&(d=d(n,r)),Object(m["isFunction"])(c)&&(c=c(n));var h={duration:c||0,delay:d,easing:u};return h}return null}function sc(e,t,n,i,r,o,a){var s,l=!1;Object(m["isFunction"])(r)?(a=o,o=r,r=null):Object(m["isObject"])(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var u=ac(e,i,r,c?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(u&&u.duration>0){var d=u.duration,h=u.delay,f=u.easing,p={duration:d,delay:h||0,easing:f,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function lc(e,t,n,i,r,o){sc("update",e,t,n,i,r,o)}function cc(e,t,n,i,r,o){sc("enter",e,t,n,i,r,o)}function uc(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function dc(e,t,n,i,r,o){uc(e)||sc("leave",e,t,n,i,r,o)}function hc(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),dc(e,{style:{opacity:0}},t,n,i)}function fc(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||hc(e,t,n,i)})):hc(e,t,n,i)}function pc(e){oc(e).oldStyle=e.style}function gc(e){return oc(e).oldStyle}var mc={};function vc(e,t){for(var n=0;n<Qs.length;n++){var i=Qs[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function bc(e,t,n){var i,r=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(m["isFunction"])(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:i},c=0;c<Qs.length;c++){var u=Qs[c],d=t[u];l[u]=Object(m["retrieve2"])(r?r.getFormattedLabel(o,u,null,a,d&&d.get("formatter")):null,i)}return l}function yc(e,t,n,i){n=n||mc;for(var r=e instanceof $s,o=!1,a=0;a<Js.length;a++){var s=t[Js[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?e:e.getTextContent();if(o){r||(l||(l=new $s,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=bc(n,t),u=t.normal,d=!!u.getShallow("show"),h=wc(u,i&&i.normal,n,!1,!r);h.text=c.normal,r||e.setTextConfig(xc(u,n,!1));for(a=0;a<Qs.length;a++){var f=Qs[a];s=t[f];if(s){var p=l.ensureState(f),g=!!Object(m["retrieve2"])(s.getShallow("show"),d);if(g!==d&&(p.ignore=!g),p.style=wc(s,i&&i[f],n,!0,!r),p.style.text=c[f],!r){var v=e.ensureState(f);v.textConfig=xc(s,n,!0)}}}l.silent=!!u.getShallow("silent"),null!=l.style.x&&(h.x=l.style.x),null!=l.style.y&&(h.y=l.style.y),l.ignore=!d,l.useStyle(h),l.dirty(),n.enableTextSetter&&(Tc(l).setLabelText=function(e){var i=bc(n,t,e);vc(l,i)})}else l&&(l.ignore=!0);e.dirty()}function _c(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<Qs.length;i++){var r=Qs[i];n[r]=e.getModel([r,t])}return n}function wc(e,t,n,i,r){var o={};return Cc(o,e,n,i,r),t&&Object(m["extend"])(o,t),o}function xc(e,t,n){t=t||{};var i,r={},o=e.getShallow("rotate"),a=Object(m["retrieve2"])(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=t.defaultOutsidePosition||"top"),null!=i&&(r.position=i),null!=s&&(r.offset=s),null!=o&&(o*=Math.PI/180,r.rotation=o),null!=a&&(r.distance=a),r.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",r}function Cc(e,t,n,i,r){n=n||mc;var o,a=t.ecModel,s=a&&a.option.textStyle,l=Sc(t);if(l)for(var c in o={},l)if(l.hasOwnProperty(c)){var u=t.getModel(["rich",c]);Dc(o[c]={},u,s,n,i,r,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var h=t.get("minMargin");null!=h&&(e.margin=h),Dc(e,t,s,n,i,r,!0,!1)}function Sc(e){var t;while(e&&e!==e.ecModel){var n=(e.option||mc).rich;if(n){t=t||{};for(var i=Object(m["keys"])(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}var kc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Oc=["align","lineHeight","width","height","tag","verticalAlign"],Mc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dc(e,t,n,i,r,o,a,s){n=!r&&n||mc;var l=i&&i.inheritColor,c=t.getShallow("color"),u=t.getShallow("textBorderColor"),d=Object(m["retrieve2"])(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=l||null),"inherit"!==u&&"auto"!==u||(u=l||null),o||(c=c||n.color,u=u||n.textBorderColor),null!=c&&(e.fill=c),null!=u&&(e.stroke=u);var h=Object(m["retrieve2"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=h&&(e.lineWidth=h);var f=Object(m["retrieve2"])(t.getShallow("textBorderType"),n.textBorderType);null!=f&&(e.lineDash=f);var p=Object(m["retrieve2"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),r||null!=d||s||(d=i&&i.defaultOpacity),null!=d&&(e.opacity=d),r||o||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var g=0;g<kc.length;g++){var v=kc[g],b=Object(m["retrieve2"])(t.getShallow(v),n[v]);null!=b&&(e[v]=b)}for(g=0;g<Oc.length;g++){v=Oc[g],b=t.getShallow(v);null!=b&&(e[v]=b)}if(null==e.verticalAlign){var y=t.getShallow("baseline");null!=y&&(e.verticalAlign=y)}if(!a||!i.disableBox){for(g=0;g<Mc.length;g++){v=Mc[g],b=t.getShallow(v);null!=b&&(e[v]=b)}var _=t.getShallow("borderType");null!=_&&(e.borderDash=_),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}function Ec(e,t){var n=t&&t.getModel("textStyle");return Object(m["trim"])([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Tc=Kr();function Lc(e,t,n,i){if(e){var r=Tc(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function Ic(e,t,n,i,r){var o=Tc(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(m["retrieve2"])(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?cc:lc)(e,{percent:1},i,t,null,c)}function c(i){var c=oo(n,o.precision,s,l,i);o.interpolatedValue=1===i?null:c;var u=bc({labelDataIndex:t,labelFetcher:r,defaultText:a?a(c):c+""},o.statesModels,c);vc(e,u)}}var Ac=["textStyle","color"],Nc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Pc=new $s,Rc=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Ac):null)},e.prototype.getFont=function(){return Ec({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Nc.length;n++)t[Nc[n]]=this.getShallow(Nc[n]);return Pc.useStyle(t),Pc.update(),Pc.getBoundingRect()},e}(),Fc=Rc,jc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Bc=wo(jc),zc=function(){function e(){}return e.prototype.getLineStyle=function(e){return Bc(this,e)},e}(),Vc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],$c=wo(Vc),Wc=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return $c(this,e,t)},e}(),Hc=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){Object(m["merge"])(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Object(m["clone"])(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!g["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length;i++)if(e[i]&&(n=n&&"object"===typeof n?n[e[i]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();fo(Hc),vo(Hc),Object(m["mixin"])(Hc,zc),Object(m["mixin"])(Hc,Wc),Object(m["mixin"])(Hc,So),Object(m["mixin"])(Hc,Fc);var Uc=Hc,qc=Math.round(10*Math.random());function Gc(e){return[e||"",qc++].join("_")}function Kc(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=co(e);t[i.main]=n},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=co(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}function Yc(e,t){function n(e){var n={},o=[];return m["each"](e,(function(a){var s=i(n,a),l=s.originalDeps=t(a),c=r(l,e);s.entryCount=c.length,0===s.entryCount&&o.push(a),m["each"](c,(function(e){m["indexOf"](s.predecessor,e)<0&&s.predecessor.push(e);var t=i(n,e);m["indexOf"](t.successor,e)<0&&t.successor.push(a)}))})),{graph:n,noEntryList:o}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var n=[];return m["each"](e,(function(e){m["indexOf"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};m["each"](e,(function(e){l[e]=!0}));while(s.length){var c=s.pop(),u=a[c],d=!!l[c];d&&(i.call(r,c,u.originalDeps.slice()),delete l[c]),m["each"](u.successor,d?f:h)}m["each"](l,(function(){var e="";throw new Error(e)}))}function h(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function f(e){l[e]=!0,h(e)}}}function Xc(e,t){return m["merge"](m["merge"]({},e,!0),t,!0)}var Zc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},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:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Jc="ZH",eu="EN",tu=eu,nu={},iu={},ru=g["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Jc)>-1?Jc:tu}():tu;function ou(e,t){e=e.toUpperCase(),iu[e]=new Uc(t),nu[e]=t}function au(e){if(Object(m["isString"])(e)){var t=nu[e.toUpperCase()]||{};return e===Jc||e===eu?Object(m["clone"])(t):Object(m["merge"])(Object(m["clone"])(t),Object(m["clone"])(nu[tu]),!1)}return Object(m["merge"])(Object(m["clone"])(e),Object(m["clone"])(nu[tu]),!1)}function su(e){return iu[e]}function lu(){return iu[tu]}ou(eu,Zc),ou(Jc,Qc);var cu=1e3,uu=60*cu,du=60*uu,hu=24*du,fu=365*hu,pu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gu="{yyyy}-{MM}-{dd}",mu={year:"{yyyy}",month:"{yyyy}-{MM}",day:gu,hour:gu+" "+pu.hour,minute:gu+" "+pu.minute,second:gu+" "+pu.second,millisecond:pu.none},vu=["year","month","day","hour","minute","second","millisecond"],bu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function yu(e,t){return e+="","0000".substr(0,t-e.length)+e}function _u(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function wu(e){return e===_u(e)}function xu(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cu(e,t,n,i){var r=hr(e),o=r[Mu(n)](),a=r[Du(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Eu(n)](),c=r["get"+(n?"UTC":"")+"Day"](),u=r[Tu(n)](),d=(u-1)%12+1,h=r[Lu(n)](),f=r[Iu(n)](),p=r[Au(n)](),g=i instanceof Uc?i:su(i||ru)||lu(),m=g.getModel("time"),v=m.get("month"),b=m.get("monthAbbr"),y=m.get("dayOfWeek"),_=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,yu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,yu(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,_[c]).replace(/{e}/g,c+"").replace(/{HH}/g,yu(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,yu(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,yu(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,yu(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,yu(p,3)).replace(/{S}/g,p+"")}function Su(e,t,n,i,r){var o=null;if(m["isString"](n))o=n;else if(m["isFunction"](n))o=n(e.value,t,{level:e.level});else{var a=m["extend"]({},pu);if(e.level>0)for(var s=0;s<vu.length;++s)a[vu[s]]="{primary|"+a[vu[s]]+"}";var l=n?!1===n.inherit?n:m["defaults"](n,a):a,c=ku(e.value,r);if(l[c])o=l[c];else if(l.inherit){var u=bu.indexOf(c);for(s=u-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(m["isArray"](o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return Cu(new Date(e.value),o,r,i)}function ku(e,t){var n=hr(e),i=n[Du(t)]()+1,r=n[Eu(t)](),o=n[Tu(t)](),a=n[Lu(t)](),s=n[Iu(t)](),l=n[Au(t)](),c=0===l,u=c&&0===s,d=u&&0===a,h=d&&0===o,f=h&&1===r,p=f&&1===i;return p?"year":f?"month":h?"day":d?"hour":u?"minute":c?"second":"millisecond"}function Ou(e,t,n){var i=m["isNumber"](e)?hr(e):e;switch(t=t||ku(e,n),t){case"year":return i[Mu(n)]();case"half-year":return i[Du(n)]()>=6?1:0;case"quarter":return Math.floor((i[Du(n)]()+1)/4);case"month":return i[Du(n)]();case"day":return i[Eu(n)]();case"half-day":return i[Tu(n)]()/24;case"hour":return i[Tu(n)]();case"minute":return i[Lu(n)]();case"second":return i[Iu(n)]();case"millisecond":return i[Au(n)]()}}function Mu(e){return e?"getUTCFullYear":"getFullYear"}function Du(e){return e?"getUTCMonth":"getMonth"}function Eu(e){return e?"getUTCDate":"getDate"}function Tu(e){return e?"getUTCHours":"getHours"}function Lu(e){return e?"getUTCMinutes":"getMinutes"}function Iu(e){return e?"getUTCSeconds":"getSeconds"}function Au(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Nu(e){return e?"setUTCFullYear":"setFullYear"}function Pu(e){return e?"setUTCMonth":"setMonth"}function Ru(e){return e?"setUTCDate":"setDate"}function Fu(e){return e?"setUTCHours":"setHours"}function ju(e){return e?"setUTCMinutes":"setMinutes"}function Bu(e){return e?"setUTCSeconds":"setSeconds"}function zu(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Vu(e){if(!yr(e))return m["isString"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $u(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Wu=m["normalizeCssArray"];function Hu(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&m["trim"](e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?hr(e):e;if(!isNaN(+l))return Cu(l,i,n);if(s)return"-"}if("ordinal"===t)return m["isStringSafe"](e)?r(e):m["isNumber"](e)&&o(e)?e+"":"-";var c=br(e);return o(c)?Vu(c):m["isStringSafe"](e)?r(e):"boolean"===typeof e?e+"":"-"}var Uu=["a","b","c","d","e","f","g"],qu=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Gu(e,t,n){m["isArray"](t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Uu[o];e=e.replace(qu(a),qu(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var c=t[s][r[l]];e=e.replace(qu(Uu[l],s),n?oe(c):c)}return e}function Ku(e,t,n){return m["each"](t,(function(t,i){e=e.replace("{"+i+"}",n?oe(t):t)})),e}function Yu(e,t){var n=m["isString"](e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if("html"===o)return"subItem"===r?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+oe(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+oe(i)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Xu(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=hr(t),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),c=i[r+"Minutes"](),u=i[r+"Seconds"](),d=i[r+"Milliseconds"]();return e=e.replace("MM",yu(a,2)).replace("M",a).replace("yyyy",o).replace("yy",yu(o%100+"",2)).replace("dd",yu(s,2)).replace("d",s).replace("hh",yu(l,2)).replace("h",l).replace("mm",yu(c,2)).replace("m",c).replace("ss",yu(u,2)).replace("s",u).replace("SSS",yu(d,3)),e}function Zu(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Qu(e,t){return t=t||"transparent",m["isString"](e)?e:m["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ju(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var ed=m["each"],td=["left","right","top","bottom","width","height"],nd=[["width","left","right"],["height","top","bottom"]];function id(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,c){var u,d,h=l.getBoundingRect(),f=t.childAt(c+1),p=f&&f.getBoundingRect();if("horizontal"===e){var g=h.width+(p?-p.x+h.x:0);u=o+g,u>i||l.newline?(o=0,u=g,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var m=h.height+(p?-p.y+h.y:0);d=a+m,d>r||l.newline?(o+=s+n,a=0,d=m,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=u+n:a=d+n)}))}var rd=id;m["curry"](id,"vertical"),m["curry"](id,"horizontal");function od(e,t,n){var i=t.width,r=t.height,o=Ji(e.left,i),a=Ji(e.top,r),s=Ji(e.right,i),l=Ji(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Wu(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function ad(e,t,n){n=Wu(n||0);var i=t.width,r=t.height,o=Ji(e.left,i),a=Ji(e.top,r),s=Ji(e.right,i),l=Ji(e.bottom,r),c=Ji(e.width,i),u=Ji(e.height,r),d=n[2]+n[0],h=n[1]+n[3],f=e.aspect;switch(isNaN(c)&&(c=i-s-h-o),isNaN(u)&&(u=r-l-d-a),null!=f&&(isNaN(c)&&isNaN(u)&&(f>i/r?c=.8*i:u=.8*r),isNaN(c)&&(c=f*u),isNaN(u)&&(u=c/f)),isNaN(o)&&(o=i-s-c-h),isNaN(a)&&(a=r-l-u-d),e.left||e.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-h;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-u/2-n[0];break;case"bottom":a=r-u-d;break}o=o||0,a=a||0,isNaN(c)&&(c=i-h-o-(s||0)),isNaN(u)&&(u=r-d-a-(l||0));var p=new $e(o+n[3],a+n[0],c,u);return p.margin=n,p}function sd(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],c=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===c)a="group"===e.type?new $e(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();a=a.clone(),a.applyTransform(u)}var d=ad(m["defaults"]({width:a.width,height:a.height},t),n,i),h=s?d.x-a.x:0,f=l?d.y-a.y:0;return"raw"===c?(o.x=h,o.y=f):(o.x+=h,o.y+=f),o===e&&e.markRedraw(),!0}function ld(e,t){return null!=e[nd[t][0]]||null!=e[nd[t][1]]&&null!=e[nd[t][2]]}function cd(e){var t=e.layoutMode||e.constructor.layoutMode;return m["isObject"](t)?t:t?{type:t}:null}function ud(e,t,n){var i=n&&n.ignoreSize;!m["isArray"](i)&&(i=[i,i]);var r=a(nd[0],0),o=a(nd[1],1);function a(n,r){var o={},a=0,c={},u=0,d=2;if(ed(n,(function(t){c[t]=e[t]})),ed(n,(function(e){s(t,e)&&(o[e]=c[e]=t[e]),l(o,e)&&a++,l(c,e)&&u++})),i[r])return l(t,n[1])?c[n[2]]=null:l(t,n[2])&&(c[n[1]]=null),c;if(u!==d&&a){if(a>=d)return o;for(var h=0;h<n.length;h++){var f=n[h];if(!s(o,f)&&s(e,f)){o[f]=e[f];break}}return o}return c}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){ed(e,(function(e){t[e]=n[e]}))}c(nd[0],e,r),c(nd[1],e,o)}function dd(e){return hd({},e)}function hd(e,t){return t&&e&&ed(td,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var fd=Kr(),pd=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=Gc("ec_cpt_model"),r}return p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cd(this),i=n?dd(e):{},r=t.getTheme();m["merge"](e,r.get(this.mainType)),m["merge"](e,this.getDefaultOption()),n&&ud(e,i,n)},t.prototype.mergeOption=function(e,t){m["merge"](this.option,e,!0);var n=cd(this);n&&ud(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!ho(e))return e.defaultOption;var t=fd(this);if(!t.defaultOption){var n=[],i=e;while(i){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;a>=0;a--)o=m["merge"](o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return eo(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Uc);function gd(e){var t=[];return m["each"](pd.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=m["map"](t,(function(e){return co(e).main})),"dataset"!==e&&m["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}go(pd,Uc),_o(pd),Kc(pd),Yc(pd,gd);var md=pd,vd="";"undefined"!==typeof navigator&&(vd=navigator.platform||"");var bd="rgba(0, 0, 0, 0.2)",yd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:bd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:bd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:bd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:bd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:bd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:bd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},_d=Object(m["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),wd="original",xd="arrayRows",Cd="objectRows",Sd="keyedColumns",kd="typedArray",Od="unknown",Md="column",Dd="row",Ed={Must:1,Might:2,Not:3},Td=Kr();function Ld(e){Td(e).datasetMap=Object(m["createHashMap"])()}function Id(e,t,n){var i={},r=Nd(t);if(!r||!e)return i;var o,a,s=[],l=[],c=t.ecModel,u=Td(c).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(m["each"])(e,(function(t,n){var r=Object(m["isObject"])(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=p(r)),i[r.name]=[]}));var h=u.get(d)||u.set(d,{categoryWayDim:a,valueWayDim:0});function f(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function p(e){var t=e.dimsDef;return t?t.length:1}return Object(m["each"])(e,(function(e,t){var n=e.name,r=p(e);if(null==o){var a=h.valueWayDim;f(i[n],a,r),f(l,a,r),h.valueWayDim+=r}else if(o===t)f(i[n],0,r),f(s,0,r);else{a=h.categoryWayDim;f(i[n],a,r),f(l,a,r),h.categoryWayDim+=r}})),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function Ad(e,t,n){var i={},r=Nd(e);if(!r)return i;var o,a=t.sourceFormat,s=t.dimensionsDefine;a!==Cd&&a!==Sd||Object(m["each"])(s,(function(e,t){"name"===(Object(m["isObject"])(e)?e.name:e)&&(o=t)}));var l=function(){for(var e={},i={},r=[],l=0,c=Math.min(5,n);l<c;l++){var u=Fd(t.data,a,t.seriesLayoutBy,s,t.startIndex,l);r.push(u);var d=u===Ed.Not;if(d&&null==e.v&&l!==o&&(e.v=l),(null==e.n||e.n===e.v||!d&&r[e.n]===Ed.Not)&&(e.n=l),h(e)&&r[e.n]!==Ed.Not)return e;d||(u===Ed.Might&&null==i.v&&l!==o&&(i.v=l),null!=i.n&&i.n!==i.v||(i.n=l))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(i)?i:null}();if(l){i.value=[l.v];var c=null!=o?o:l.n;i.itemName=[c],i.seriesName=[c]}return i}function Nd(e){var t=e.get("data",!0);if(!t)return eo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Qr).models[0]}function Pd(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?eo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Qr).models:[]}function Rd(e,t){return Fd(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Fd(e,t,n,i,r,o){var a,s,l,c=5;if(Object(m["isTypedArray"])(e))return Ed.Not;if(i){var u=i[o];Object(m["isObject"])(u)?(s=u.name,l=u.type):Object(m["isString"])(u)&&(s=u)}if(null!=l)return"ordinal"===l?Ed.Must:Ed.Not;if(t===xd){var d=e;if(n===Dd){for(var h=d[o],f=0;f<(h||[]).length&&f<c;f++)if(null!=(a=w(h[r+f])))return a}else for(f=0;f<d.length&&f<c;f++){var p=d[r+f];if(p&&null!=(a=w(p[o])))return a}}else if(t===Cd){var g=e;if(!s)return Ed.Not;for(f=0;f<g.length&&f<c;f++){var v=g[f];if(v&&null!=(a=w(v[s])))return a}}else if(t===Sd){var b=e;if(!s)return Ed.Not;h=b[s];if(!h||Object(m["isTypedArray"])(h))return Ed.Not;for(f=0;f<h.length&&f<c;f++)if(null!=(a=w(h[f])))return a}else if(t===wd){var y=e;for(f=0;f<y.length&&f<c;f++){v=y[f];var _=Er(v);if(!Object(m["isArray"])(_))return Ed.Not;if(null!=(a=w(_[o])))return a}}function w(e){var t=Object(m["isString"])(e);return null!=e&&isFinite(e)&&""!==e?t?Ed.Might:Ed.Not:t&&"-"!==e?Ed.Must:void 0}return Ed.Not}var jd=Object(m["createHashMap"])();function Bd(e,t){Object(m["assert"])(null==jd.get(e)&&t),jd.set(e,t)}function zd(e,t,n){var i=jd.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}var Vd=Kr(),$d=Kr(),Wd=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var i=Or(this.get("color",!0)),r=this.get("colorLayer",!0);return qd(this,Vd,i,r,e,t,n)},e.prototype.clearColorPalette=function(){Gd(this,Vd)},e}();function Hd(e,t,n,i){var r=Or(e.get(["aria","decal","decals"]));return qd(e,$d,r,null,t,n,i)}function Ud(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function qd(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(r))return c[r];var u=null!=a&&i?Ud(i,a):n;if(u=u||n,u&&u.length){var d=u[l];return r&&(c[r]=d),s.paletteIdx=(l+1)%u.length,d}}function Gd(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Kd,Yd,Xd;"undefined"!==typeof console&&console.warn&&console.log;function Zd(e){0}function Qd(e){throw new Error(e)}var Jd="\0_ec_inner",eh=1;var th=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Uc(i),this._locale=new Uc(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=ah(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,ah(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Xd(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&Object(m["each"])(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(m["createHashMap"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=zd(this,t,Or(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Lr(a,o,l);Hr(c,t,md),n[t]=null,i.set(t,null),r.set(t,0);var u,d=[],h=[],f=0;Object(m["each"])(c,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=md.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(u)return void 0;u=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(m["extend"])({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),Object(m["extend"])(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),f++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),r.set(t,f),"series"===t&&Kd(this)}Ld(this),Object(m["each"])(e,(function(e,t){null!=e&&(md.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(m["clone"])(e):Object(m["merge"])(n[t],e,!0))})),s&&s.each((function(e,t){md.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),md.topologicalTravel(o,md.getAllClassMainTypes(),l,this),this._seriesIndices||Kd(this)},t.prototype.getOption=function(){var e=Object(m["clone"])(this.option);return Object(m["each"])(e,(function(t,n){if(md.hasClass(n)){for(var i=Or(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!$r(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Jd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],Object(m["each"])(Or(i),(function(e){a[e]&&n.push(a[e])}))):n=null!=r?rh("id",r,a):null!=o?rh("name",o,a):Object(m["filter"])(a,(function(e){return!!e})),oh(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,i=o(t),r=i?this.queryComponents(i):Object(m["filter"])(this._componentsMap.get(n),(function(e){return!!e}));return a(oh(r,e));function o(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function a(t){return e.filter?Object(m["filter"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Object(m["isFunction"])(e)){var r=t,o=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&o.call(r,t,i,i.componentIndex)}}))}else for(var a=Object(m["isString"])(e)?i.get(e):Object(m["isObject"])(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=zr(e,null);return Object(m["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(m["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(m["filter"])(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Yd(this),Object(m["each"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(m["each"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Yd(this),Object(m["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(m["each"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Yd(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Yd(this);var n=[];Object(m["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(m["createHashMap"])(n)},t.prototype.restoreData=function(e){Kd(this);var t=this._componentsMap,n=[];t.each((function(e,t){md.hasClass(t)&&n.push(t)})),md.topologicalTravel(n,md.getAllClassMainTypes(),(function(n){Object(m["each"])(t.get(n),(function(t){!t||"series"===n&&nh(t,e)||t.restoreData()}))}))},t.internalField=function(){Kd=function(e){var t=e._seriesIndices=[];Object(m["each"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(m["createHashMap"])(t)},Yd=function(e){0},Xd=function(e,t){e.option={},e.option[Jd]=eh,e._componentsMap=Object(m["createHashMap"])({series:[]}),e._componentsCount=Object(m["createHashMap"])();var n=t.aria;Object(m["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),ih(t,e._theme.option),Object(m["merge"])(t,yd,!1),e._mergeOption(t,null)}}(),t}(Uc);function nh(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function ih(e,t){var n=e.color&&!e.colorLayer;Object(m["each"])(t,(function(t,i){"colorLayer"===i&&n||md.hasClass(i)||("object"===typeof t?e[i]=e[i]?Object(m["merge"])(e[i],t,!1):Object(m["clone"])(t):null==e[i]&&(e[i]=t))}))}function rh(e,t,n){if(Object(m["isArray"])(t)){var i=Object(m["createHashMap"])();return Object(m["each"])(t,(function(e){if(null!=e){var t=zr(e,null);null!=t&&i.set(e,!0)}})),Object(m["filter"])(n,(function(t){return t&&i.get(t[e])}))}var r=zr(t,null);return Object(m["filter"])(n,(function(t){return t&&null!=r&&t[e]===r}))}function oh(e,t){return t.hasOwnProperty("subType")?Object(m["filter"])(e,(function(e){return e&&e.subType===t.subType})):e}function ah(e){var t=Object(m["createHashMap"])();return e&&Object(m["each"])(Or(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(m["mixin"])(th,Wd);var sh=th,lh=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ch=function(){function e(e){m["each"](lh,(function(t){this[t]=m["bind"](e[t],e)}),this)}return e}(),uh=ch,dh={},hh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];m["each"](dh,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){m["each"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){dh[e]=t},e.get=function(e){return dh[e]},e}(),fh=hh,ph=/^(min|max)?(.+)$/,gh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(m["each"])(Or(e.series),(function(e){e&&e.data&&Object(m["isTypedArray"])(e.data)&&Object(m["setAsPrimitive"])(e.data)})),Object(m["each"])(Or(e.dataset),(function(e){e&&e.source&&Object(m["isTypedArray"])(e.source)&&Object(m["setAsPrimitive"])(e.source)}))),e=Object(m["clone"])(e);var i=this._optionBackup,r=mh(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(m["clone"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Object(m["clone"])(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(!i.length&&!r)return a;for(var s=0,l=i.length;s<l;s++)vh(i[s].query,t,n)&&o.push(s);return!o.length&&r&&(o=[-1]),o.length&&!yh(o,this._currentMediaIndices)&&(a=Object(m["map"])(o,(function(e){return Object(m["clone"])(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=o,a},e}();function mh(e,t,n){var i,r,o=[],a=e.baseOption,s=e.timeline,l=e.options,c=e.media,u=!!e.media,d=!!(l||s||a&&a.timeline);function h(e){Object(m["each"])(t,(function(t){t(e,n)}))}return a?(r=a,r.timeline||(r.timeline=s)):((d||u)&&(e.options=e.media=null),r=e),u&&Object(m["isArray"])(c)&&Object(m["each"])(c,(function(e){e&&e.option&&(e.query?o.push(e):i||(i=e))})),h(r),Object(m["each"])(l,(function(e){return h(e)})),Object(m["each"])(o,(function(e){return h(e.option)})),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}function vh(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return Object(m["each"])(e,(function(e,t){var n=t.match(ph);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();bh(i[a],e,o)||(r=!1)}})),r}function bh(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function yh(e,t){return e.join(",")===t.join(",")}var _h=gh,wh=m["each"],xh=m["isObject"],Ch=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sh(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Ch.length;n<i;n++){var r=Ch[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?m["merge"](e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?m["merge"](e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function kh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,m["defaults"](e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function Oh(e){kh(e,"itemStyle"),kh(e,"lineStyle"),kh(e,"areaStyle"),kh(e,"label"),kh(e,"labelLine"),kh(e,"upperLabel"),kh(e,"edgeLabel")}function Mh(e,t){var n=xh(e)&&e[t],i=xh(n)&&n.textStyle;if(i){0;for(var r=0,o=Dr.length;r<o;r++){var a=Dr[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Dh(e){e&&(Oh(e),Mh(e,"label"),e.emphasis&&Mh(e.emphasis,"label"))}function Eh(e){if(xh(e)){Sh(e),Oh(e),Mh(e,"label"),Mh(e,"upperLabel"),Mh(e,"edgeLabel"),e.emphasis&&(Mh(e.emphasis,"label"),Mh(e.emphasis,"upperLabel"),Mh(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Sh(t),Dh(t));var n=e.markLine;n&&(Sh(n),Dh(n));var i=e.markArea;i&&Dh(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var o=e.links||e.edges;if(o&&!m["isTypedArray"](o))for(var a=0;a<o.length;a++)Dh(o[a]);m["each"](e.categories,(function(e){Oh(e)}))}if(r&&!m["isTypedArray"](r))for(a=0;a<r.length;a++)Dh(r[a]);if(t=e.markPoint,t&&t.data){var s=t.data;for(a=0;a<s.length;a++)Dh(s[a])}if(n=e.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)m["isArray"](l[a])?(Dh(l[a][0]),Dh(l[a][1])):Dh(l[a])}"gauge"===e.type?(Mh(e,"axisLabel"),Mh(e,"title"),Mh(e,"detail")):"treemap"===e.type?(kh(e.breadcrumb,"itemStyle"),m["each"](e.levels,(function(e){Oh(e)}))):"tree"===e.type&&Oh(e.leaves)}}function Th(e){return m["isArray"](e)?e:e?[e]:[]}function Lh(e){return(m["isArray"](e)?e[0]:e)||{}}function Ih(e,t){wh(Th(e.series),(function(e){xh(e)&&Eh(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),wh(n,(function(t){wh(Th(e[t]),(function(e){e&&(Mh(e,"axisLabel"),Mh(e.axisPointer,"label"))}))})),wh(Th(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Mh(t,"axisLabel"),Mh(t&&t.axisPointer,"label")})),wh(Th(e.calendar),(function(e){kh(e,"itemStyle"),Mh(e,"dayLabel"),Mh(e,"monthLabel"),Mh(e,"yearLabel")})),wh(Th(e.radar),(function(e){Mh(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),wh(Th(e.geo),(function(e){xh(e)&&(Dh(e),wh(Th(e.regions),(function(e){Dh(e)})))})),wh(Th(e.timeline),(function(e){Dh(e),kh(e,"label"),kh(e,"itemStyle"),kh(e,"controlStyle",!0);var t=e.data;m["isArray"](t)&&m["each"](t,(function(e){m["isObject"](e)&&(kh(e,"label"),kh(e,"itemStyle"))}))})),wh(Th(e.toolbox),(function(e){kh(e,"iconStyle"),wh(e.feature,(function(e){kh(e,"iconStyle")}))})),Mh(Lh(e.axisPointer),"label"),Mh(Lh(e.tooltip).axisPointer,"label")}function Ah(e,t){for(var n=t.split(","),i=e,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function Nh(e,t,n,i){for(var r,o=t.split(","),a=e,s=0;s<o.length-1;s++)r=o[s],null==a[r]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}function Ph(e){e&&Object(m["each"])(Rh,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Rh=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fh=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],jh=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Bh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<jh.length;n++){var i=jh[n][1],r=jh[n][0];null!=t[i]&&(t[r]=t[i])}}function zh(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function Vh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function $h(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function Wh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Wh(e[n].children,t)}function Hh(e,t){Ih(e,t),e.series=Or(e.series),Object(m["each"])(e.series,(function(e){if(Object(m["isObject"])(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),zh(e.label);var n=e.data;if(n&&!Object(m["isTypedArray"])(n))for(var i=0;i<n.length;i++)zh(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=Ah(e,"pointer.color");null!=r&&Nh(e,"itemStyle.color",r)}else if("bar"===t){Bh(e),Bh(e.backgroundStyle),Bh(e.emphasis);n=e.data;if(n&&!Object(m["isTypedArray"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(Bh(n[i]),Bh(n[i]&&n[i].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),Vh(e),Wh(e.data,Vh)}else"graph"===t||"sankey"===t?$h(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(m["defaults"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Ph(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(m["each"])(Fh,(function(t){var n=e[t];n&&(Object(m["isArray"])(n)||(n=[n]),Object(m["each"])(n,(function(e){Ph(e)})))}))}function Uh(e){var t=Object(m["createHashMap"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(qh)}function qh(e){Object(m["each"])(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,c,u){var d,h,f=a.get(t.stackedDimension,u);if(isNaN(f))return r;s?h=a.getRawIndex(u):d=a.get(t.stackedByDimension,u);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(h=m.data.rawIndexOf(m.stackedByDimension,d)),h>=0){var v=m.data.getByRawIndex(m.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=sr(f,v),p=v;break}}}return i[0]=f,i[1]=p,i}))}))}var Gh,Kh,Yh,Xh,Zh,Qh=function(){function e(e){this.data=e.data||(e.sourceFormat===Sd?{}:[]),this.sourceFormat=e.sourceFormat||Od,this.seriesLayoutBy=e.seriesLayoutBy||Md,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&Rd(this,n)===Ed.Must&&(i.type="ordinal")}}return e}();function Jh(e){return e instanceof Qh}function ef(e,t,n){n=n||rf(e);var i=t.seriesLayoutBy,r=of(e,n,i,t.sourceHeader,t.dimensions),o=new Qh({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:Object(m["clone"])(t)});return o}function tf(e){return new Qh({data:e,sourceFormat:Object(m["isTypedArray"])(e)?kd:wd})}function nf(e){return new Qh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(m["clone"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function rf(e){var t=Od;if(Object(m["isTypedArray"])(e))t=kd;else if(Object(m["isArray"])(e)){0===e.length&&(t=xd);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(null!=r){if(Object(m["isArray"])(r)){t=xd;break}if(Object(m["isObject"])(r)){t=Cd;break}}}}else if(Object(m["isObject"])(e))for(var o in e)if(Object(m["hasOwn"])(e,o)&&Object(m["isArrayLike"])(e[o])){t=Sd;break}return t}function of(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:sf(r),startIndex:a,dimensionsDetectedCount:o};if(t===xd){var s=e;"auto"===i||null==i?lf((function(e){null!=e&&"-"!==e&&(Object(m["isString"])(e)?null==a&&(a=1):a=0)}),n,s,10):a=Object(m["isNumber"])(i)?i:i?1:0,r||1!==a||(r=[],lf((function(e,t){r[t]=null!=e?e+"":""}),n,s,1/0)),o=r?r.length:n===Dd?s.length:s[0]?s[0].length:null}else if(t===Cd)r||(r=af(e));else if(t===Sd)r||(r=[],Object(m["each"])(e,(function(e,t){r.push(t)})));else if(t===wd){var l=Er(e[0]);o=Object(m["isArray"])(l)&&l.length||1}return{startIndex:a,dimensionsDefine:sf(r),dimensionsDetectedCount:o}}function af(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return Object(m["keys"])(t)}function sf(e){if(e){var t=Object(m["createHashMap"])();return Object(m["map"])(e,(function(e,n){e=Object(m["isObject"])(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(null==i.name)return i;i.name+="",null==i.displayName&&(i.displayName=i.name);var r=t.get(i.name);return r?i.name+="-"+r.count++:t.set(i.name,{count:1}),i}))}}function lf(e,t,n,i){if(t===Dd)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else{var o=n[0]||[];for(r=0;r<o.length&&r<i;r++)e(o[r],r)}}function cf(e){var t=e.sourceFormat;return t===Cd||t===Sd}var uf=function(){function e(e,t){var n=Jh(e)?e:tf(e);this._source=n;var i=this._data=n.data;n.sourceFormat===kd&&(this._offset=0,this._dimSize=t,this._data=i),Zh(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Zh=function(e,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,c=o.dimensionsDefine,u=Xh[_f(a,s)];if(Object(m["extend"])(e,u),a===kd)e.getItem=t,e.count=i,e.fillStorage=n;else{var d=ff(a,s);e.getItem=Object(m["bind"])(d,null,r,l,c);var h=mf(a,s);e.count=Object(m["bind"])(h,null,r,l,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],u=t-e,d=n[a],h=0;h<u;h++){var f=r[h*o+a];d[e+h]=f,f<l&&(l=f),f>c&&(c=f)}s[0]=l,s[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[xd+"_"+Md]={pure:!0,appendData:r},e[xd+"_"+Dd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Cd]={pure:!0,appendData:r},e[Sd]={pure:!0,appendData:function(e){var t=this._data;Object(m["each"])(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[wd]={appendData:r},e[kd]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Xh=e}(),e}(),df=function(e,t,n,i){return e[i]},hf=(Gh={},Gh[xd+"_"+Md]=function(e,t,n,i){return e[i+t]},Gh[xd+"_"+Dd]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Gh[Cd]=df,Gh[Sd]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=e[s];o[a]=l?l[i]:null}return o},Gh[wd]=df,Gh);function ff(e,t){var n=hf[_f(e,t)];return n}var pf=function(e,t,n){return e.length},gf=(Kh={},Kh[xd+"_"+Md]=function(e,t,n){return Math.max(0,e.length-t)},Kh[xd+"_"+Dd]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},Kh[Cd]=pf,Kh[Sd]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},Kh[wd]=pf,Kh);function mf(e,t){var n=gf[_f(e,t)];return n}var vf=function(e,t,n){return e[t]},bf=(Yh={},Yh[xd]=vf,Yh[Cd]=function(e,t,n){return e[n]},Yh[Sd]=vf,Yh[wd]=function(e,t,n){var i=Er(e);return i instanceof Array?i[t]:i},Yh[kd]=vf,Yh);function yf(e){var t=bf[e];return t}function _f(e,t){return e===xd?e+"_"+t:e}function wf(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return yf(o)(i,a,s)}var l=i;return o===wd&&(l=Er(i)),l}}}var xf=/\{@(.+?)\}/g,Cf=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,u=this.mainType,d="series"===u,h=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:t,value:i,color:l,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,i,r,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);if(o&&(s.value=o.interpolatedValue),null!=i&&m["isArray"](s.value)&&(s.value=s.value[i]),!r){var l=a.getItemModel(e);r=l.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(m["isFunction"](r))return s.status=t,s.dimensionIndex=i,r(s);if(m["isString"](r)){var c=Gu(r,s);return c.replace(xf,(function(t,n){var i=n.length,r=n;"["===r.charAt(0)&&"]"===r.charAt(i-1)&&(r=+r.slice(1,i-1));var s=wf(a,e,r);if(o&&m["isArray"](o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return wf(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Sf(e){var t,n;return m["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function kf(e){return new Of(e)}var Of=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=u(this._modBy),s=this._modDataCount||0,l=u(e&&e.modBy),c=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}a===l&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||h<f)){var p=this._progress;if(Object(m["isArray"])(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,f,l,c);else this._doProgress(p,h,f,l,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){Mf.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Mf.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(m["isArray"])(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Mf=function(){var e,t,n,i,r,o={reset:function(l,c,u,d){t=l,e=c,n=u,i=d,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%r*n+Math.ceil(t/r),a=t>=e?null:o<i?o:t;return t++,a}}();function Df(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(m["isNumber"])(e)||null==e||"-"===e||(e=+hr(e)),null==e||""===e?NaN:+e)}var Ef=Object(m["createHashMap"])({number:function(e){return parseFloat(e)},time:function(e){return+hr(e)},trim:function(e){return Object(m["isString"])(e)?Object(m["trim"])(e):e}});function Tf(e){return Ef.get(e)}var Lf={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},If=function(){function e(e,t){if(!Object(m["isNumber"])(t)){var n="";0,Qd(n)}this._opFn=Lf[e],this._rvalFloat=br(t)}return e.prototype.evaluate=function(e){return Object(m["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(br(e),this._rvalFloat)},e}(),Af=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(m["isNumber"])(e)?e:br(e),i=Object(m["isNumber"])(t)?t:br(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(m["isString"])(e),s=Object(m["isString"])(t);a&&(n=s?e:0),s&&(i=a?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Nf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=br(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=br(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Pf(e,t){return"eq"===e||"ne"===e?new Nf("eq"===e,t):Object(m["hasOwn"])(Lf,e)?new If(e,t):null}var Rf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Df(e,t)},e}();function Ff(e,t){var n=new Rf,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Md&&Qd(a);var s=[],l={},c=e.dimensionsDefine;if(c)Object(m["each"])(c,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Object(m["hasOwn"])(l,n)&&Qd(r),l[n]=i}}));else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=ff(r,Md);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(i,o,s,e)},n.getRawData=Object(m["bind"])(jf,null,e)),n.cloneRawData=Object(m["bind"])(Bf,null,e);var h=mf(r,Md);n.count=Object(m["bind"])(h,null,i,o,s);var f=yf(r);n.retrieveValue=function(e,t){var n=d(i,o,s,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=s[t];return n?f(e,t,n.name):void 0}};return n.getDimensionInfo=Object(m["bind"])(zf,null,s,l),n.cloneAllDimensionInfo=Object(m["bind"])(Vf,null,s),n}function jf(e){var t=e.sourceFormat;if(!qf(t)){var n="";0,Qd(n)}return e.data}function Bf(e){var t=e.sourceFormat,n=e.data;if(!qf(t)){var i="";0,Qd(i)}if(t===xd){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}if(t===Cd){for(r=[],o=0,a=n.length;o<a;o++)r.push(Object(m["extend"])({},n[o]));return r}}function zf(e,t,n){if(null!=n)return Object(m["isNumber"])(n)||!isNaN(n)&&!Object(m["hasOwn"])(t,n)?e[n]:Object(m["hasOwn"])(t,n)?t[n]:void 0}function Vf(e){return Object(m["clone"])(e)}var $f=Object(m["createHashMap"])();function Wf(e){e=Object(m["clone"])(e);var t=e.type,n="";t||Qd(n);var i=t.split(":");2!==i.length&&Qd(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,$f.set(t,e)}function Hf(e,t,n){var i=Or(e),r=i.length,o="";r||Qd(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=Uf(l,t,n,1===r?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Uf(e,t,n,i){var r="";t.length||Qd(r),Object(m["isObject"])(e)||Qd(r);var o=e.type,a=$f.get(o);a||Qd(r);var s=Object(m["map"])(t,(function(e){return Ff(e,a)})),l=Or(a.transform({upstream:s[0],upstreamList:s,config:Object(m["clone"])(e.config)}));return Object(m["map"])(l,(function(e,n){var i="";Object(m["isObject"])(e)||Qd(i),e.data||Qd(i);var r,o=rf(e.data);qf(o)||Qd(i);var a=t[0];if(a&&0===n&&!e.dimensions){var s=a.startIndex;s&&(e.data=a.data.slice(0,s).concat(e.data)),r={seriesLayoutBy:Md,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:Md,sourceHeader:0,dimensions:e.dimensions};return ef(e.data,r,null)}))}function qf(e){return e===xd||e===Cd}var Gf,Kf="undefined",Yf=typeof Uint32Array===Kf?Array:Uint32Array,Xf=typeof Uint16Array===Kf?Array:Uint16Array,Zf=typeof Int32Array===Kf?Array:Int32Array,Qf=typeof Float64Array===Kf?Array:Float64Array,Jf={float:Qf,int:Zf,ordinal:Array,number:Array,time:Qf};function ep(e){return e>65535?Yf:Xf}function tp(){return[1/0,-1/0]}function np(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ip(e,t,n,i,r){var o=Jf[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(i)}var rp=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(m["createHashMap"])()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),r=this.defaultDimValueGetter=Gf[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[];cf(i);this._dimensions=Object(m["map"])(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new Jf[t||"float"](this._rawCount),this._rawExtent[r]=tp(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[e]=tp());for(var s=r[e],l=o;l<a;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}i.ordinalMeta=t,i.ordinalOffset=a,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<r;l++){var c=i[l];ip(n,l,c.type,s,!0)}for(var u=[],d=a;d<s;d++)for(var h=d-a,f=0;f<r;f++){c=i[f];var p=Gf.arrayRows.call(this,e[h]||u,c.property,h,f);n[f][d]=p;var g=o[f];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(m["map"])(o,(function(e){return e.property})),c=0;c<a;c++){var u=o[c];s[c]||(s[c]=tp()),ip(r,c,u.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,r,s);else for(var d=[],h=e;h<t;h++){d=i.getItem(h,d);for(var f=0;f<a;f++){var p=r[f],g=this._dimValueGetter(d,l[f],h,f);p[h]=g;var v=s[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var d=this.getRawIndex(c),h=t-r[d],f=Math.abs(h);f<=n&&((f<a||f===a&&h>=0&&s<0)&&(a=f,s=h,l=0),h===s&&(o[l++]=c))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{n=ep(this._rawCount);e=new n(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=ep(n._rawCount),o=new r(i),a=[],s=e.length,l=0,c=e[0],u=n._chunks,d=0;d<i;d++){var h=void 0,f=n.getRawIndex(d);if(0===s)h=t(d);else if(1===s){var p=u[c][f];h=t(p,d)}else{for(var g=0;g<s;g++)a[g]=u[e[g]][f];a[g]=d,h=t.apply(null,a)}h&&(o[l++]=f)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=Object(m["keys"])(e),r=i.length;if(!r)return this;var o=t.count(),a=ep(t._rawCount),s=new a(o),l=0,c=i[0],u=e[c][0],d=e[c][1],h=t._chunks,f=!1;if(!t._indices){var p=0;if(1===r){for(var g=h[i[0]],v=0;v<n;v++){var b=g[v];(b>=u&&b<=d||isNaN(b))&&(s[l++]=p),p++}f=!0}else if(2===r){g=h[i[0]];var y=h[i[1]],_=e[i[1]][0],w=e[i[1]][1];for(v=0;v<n;v++){b=g[v];var x=y[v];(b>=u&&b<=d||isNaN(b))&&(x>=_&&x<=w||isNaN(x))&&(s[l++]=p),p++}f=!0}}if(!f)if(1===r)for(v=0;v<o;v++){var C=t.getRawIndex(v);b=h[i[0]][C];(b>=u&&b<=d||isNaN(b))&&(s[l++]=C)}else for(v=0;v<o;v++){for(var S=!0,k=(C=t.getRawIndex(v),0);k<r;k++){var O=i[k];b=h[O][C];(b<e[O][0]||b>e[O][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return l<o&&(t._indices=s),t._count=l,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=tp();for(var u=0;u<a;u++){for(var d=e.getRawIndex(u),h=0;h<o;h++)s[h]=i[t[h]][d];s[o]=u;var f=n&&n.apply(null,s);if(null!=f){"object"!==typeof f&&(r[0]=f,f=r);for(c=0;c<f.length;c++){var p=t[c],g=f[c],m=l[p],v=i[p];v&&(v[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),c=0,u=Math.floor(1/t),d=this.getRawIndex(0),h=new(ep(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));h[c++]=d;for(var f=1;f<l-1;f+=u){for(var p=Math.min(f+u,l-1),g=Math.min(f+2*u,l),m=(g+p)/2,v=0,b=p;b<g;b++){var y=this.getRawIndex(b),_=s[y];isNaN(_)||(v+=_)}v/=g-p;var w=f,x=Math.min(f+u,l),C=f-1,S=s[d];n=-1,r=w;var k=-1,O=0;for(b=w;b<x;b++){y=this.getRawIndex(b),_=s[y];isNaN(_)?(O++,k<0&&(k=y)):(i=Math.abs((C-m)*(_-S)-(C-b)*(v-S)),i>n&&(n=i,r=y))}O>0&&O<x-w&&(h[c++]=Math.min(k,r),r=Math.max(k,r)),h[c++]=r,d=r}return h[c++]=this.getRawIndex(l-1),o._count=c,o._indices=h,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,a=[],s=Math.floor(1/t),l=o[e],c=this.count(),u=r._rawExtent[e]=tp(),d=new(ep(this._rawCount))(Math.ceil(c/s)),h=0,f=0;f<c;f+=s){s>c-f&&(s=c-f,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(f+p);a[p]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(f+i(a,m)||0,c-1));l[v]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),d[h++]=v}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][a],r);break;case 2:t(i[e[0]][a],i[e[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[e[s]][a];l[s]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=tp();if(!t)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var a=i[0],s=i[1],l=0;l<r;l++){var c=this.getRawIndex(l),u=t[c];u<a&&(a=u),u>s&&(s=u)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,o=t&&Object(m["reduce"])(t,(function(e,t){return e[t]=!0,e}),{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?np(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(m["clone"])(this._extent),e._rawExtent=Object(m["clone"])(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return Df(e[i],this._dimensions[i])}Gf={arrayRows:e,objectRows:function(e,t,n,i){return Df(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return Df(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),op=rp,ap=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(lp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var c=i[0];c.prepareSource(),l=c.getSource(),a=l.data,s=l.sourceFormat,t=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(m["isTypedArray"])(a)?kd:wd,t=[];var u=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=Object(m["retrieve2"])(u.seriesLayoutBy,d.seriesLayoutBy)||null,f=Object(m["retrieve2"])(u.sourceHeader,d.sourceHeader),p=Object(m["retrieve2"])(u.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!f!==!!d.sourceHeader||p;e=g?[ef(a,{seriesLayoutBy:h,sourceHeader:f,dimensions:p},s)]:[]}else{var v=n;if(r){var b=this._applyTransform(i);e=b.sourceList,t=b.upstreamSignList}else{var y=v.get("source",!0);e=[ef(y,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&cp(o)}var a=[],s=[];return Object(m["each"])(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||cp(n),a.push(t),s.push(e._getVersionSign())})),i?t=Hf(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[nf(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];lp(this._sourceHost)&&s?a=s._innerGetDataStore(e,t,n):(a=new op,a.initData(new uf(t,e.length),e)),o[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(lp(e)){var t=Nd(e);return t?[t.getSourceManager()]:[]}return Object(m["map"])(Pd(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(lp(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function sp(e){var t=e.option.transform;t&&Object(m["setAsPrimitive"])(e.option.transform)}function lp(e){return"series"===e.mainType}function cp(e){throw new Error(e)}var up="line-height:1";function dp(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+oe(i+"")+"px;color:"+oe(n)+";font-weight:"+oe(r+""),valueStyle:"font-size:"+oe(a+"")+"px;color:"+oe(o)+";font-weight:"+oe(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var hp=[0,10,20,30],fp=["","\n","\n\n","\n\n\n"];function pp(e,t){return t.type=e,t}function gp(e){return"section"===e.type}function mp(e){return gp(e)?bp:yp}function vp(e){if(gp(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return Object(m["each"])(e.blocks,(function(e){var n=vp(e);n>=t&&(t=n+ +(i&&(!n||gp(e)&&!e.noHeader)))})),t}return 0}function bp(e,t,n,i){var r=t.noHeader,o=wp(vp(t)),a=[],s=t.blocks||[];Object(m["assert"])(!s||Object(m["isArray"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Object(m["hasOwn"])(c,l)){var u=new Af(c[l],null);s.sort((function(e,t){return u.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(m["each"])(s,(function(n,r){var s=t.valueFormatter,l=mp(n)(s?Object(m["extend"])(Object(m["extend"])({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(o.richText):xp(a.join(""),r?n:o.html);if(r)return d;var h=Hu(t.header,"ordinal",e.useUTC),f=dp(i,e.renderMode).nameStyle;return"richText"===e.renderMode?kp(e,h,f)+o.richText+d:xp('<div style="'+f+";"+up+';">'+oe(h)+"</div>"+d,n)}function yp(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=Object(m["isArray"])(e)?e:[e],Object(m["map"])(e,(function(e,t){return Hu(e,Object(m["isArray"])(f)?f[t]:f,c)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=o?"":Hu(l,"ordinal",c),f=t.valueType,p=a?[]:u(t.value),g=!s||!o,v=!s&&o,b=dp(i,r),y=b.nameStyle,_=b.valueStyle;return"richText"===r?(s?"":d)+(o?"":kp(e,h,y))+(a?"":Op(e,p,g,v,_)):xp((s?"":d)+(o?"":Cp(h,!s,y))+(a?"":Sp(p,g,v,_)),n)}}function _p(e,t,n,i,r,o){if(e){var a=mp(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function wp(e){return{html:hp[e],richText:fp[e]}}function xp(e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+up+';">'+e+n+"</div>"}function Cp(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+oe(e)+"</span>"}function Sp(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=Object(m["isArray"])(e)?e:[e],'<span style="'+o+";"+i+'">'+Object(m["map"])(e,(function(e){return oe(e)})).join("&nbsp;&nbsp;")+"</span>"}function kp(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Op(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(m["isArray"])(t)?t.join(" "):t,o)}function Mp(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Qu(i)}function Dp(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Ep=function(){function e(){this.richTextStyles={},this._nextStyleNameId=_r()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Yu({color:t,type:e,renderMode:n,markerId:i});return Object(m["isString"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(m["isArray"])(t)?Object(m["each"])(t,(function(e){return Object(m["extend"])(n,e)})):Object(m["extend"])(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function Tp(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),c=l.mapDimensionsAll("defaultedTooltip"),u=c.length,d=o.getRawValue(a),h=Object(m["isArray"])(d),f=Mp(o,a);if(u>1||h&&!u){var p=Lp(d,o,a,c,f);t=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(u){var g=l.getDimensionInfo(c[0]);r=t=wf(l,a,c[0]),n=g.type}else r=t=h?d[0]:d;var v=Vr(o),b=v&&o.name||"",y=l.getName(a),_=s?b:y;return pp("section",{header:b,noHeader:s||!v,sortParam:r,blocks:[pp("nameValue",{markerType:"item",markerColor:f,name:_,noName:!Object(m["trim"])(_),value:t,valueType:n})].concat(i||[])})}function Lp(e,t,n,i,r){var o=t.getData(),a=Object(m["reduce"])(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],c=[];function u(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(pp("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?Object(m["each"])(i,(function(e){u(wf(o,n,e),e)})):Object(m["each"])(e,u),{inlineValues:s,inlineValueTypes:l,blocks:c}}var Ip=Kr();function Ap(e,t){return e.getName(t)||e.getId(t)}var Np="__universalTransitionEnabled",Pp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return p(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=kf({count:jp,reset:Bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Ip(this).sourceManager=new ap(this);i.prepareSource();var r=this.getInitialData(e,n);Vp(r,this),this.dataTask.context.data=r,Ip(this).dataBeforeProcessed=r,Rp(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cd(this),i=n?dd(e):{},r=this.subType;md.hasClass(r)&&(r+="Series"),m["merge"](e,t.getTheme().get(this.subType)),m["merge"](e,this.getDefaultOption()),Mr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&ud(e,i,n)},t.prototype.mergeOption=function(e,t){e=m["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=cd(this);n&&ud(this.option,e,n);var i=Ip(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);Vp(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Ip(this).dataBeforeProcessed=r,Rp(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!m["isTypedArray"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Mr(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=Wp(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return Ip(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Wp(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Ip(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return m["createHashMap"](e)},t.prototype.getSourceManager=function(){return Ip(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ip(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Tp({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(g["a"].node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Wd.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=e[o],s=Ap(r,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=m["keys"](e),n=[],i=0;i<t.length;i++){var r=e[t[i]];r>=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[Ap(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Np])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){m["isObject"](r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var c=t[l],u=Ap(e,c);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(c)}}else if("single"===o||!0===o){var d=t[a-1];u=Ap(e,d);r.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(i={},i[u]=e.getRawIndex(d),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return md.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(md);function Rp(e){var t=e.name;Vr(e)||(e.name=Fp(e)||t)}function Fp(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return m["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function jp(e){return e.model.getRawData().count()}function Bp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),zp}function zp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Vp(e,t){m["each"](m["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,m["curry"]($p,t))}))}function $p(e,t){var n=Wp(e);return n&&n.setOutputEnd((t||this).count()),t}function Wp(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}m["mixin"](Pp,Cf),m["mixin"](Pp,Wd),go(Pp,md);var Hp=Pp,Up=function(){function e(){this.group=new Fi,this.uid=Gc("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();fo(Up),_o(Up);var qp=Up;function Gp(){var e=Kr();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Kp=Pa.CMD,Yp=[[],[],[]],Xp=Math.sqrt,Zp=Math.atan2;function Qp(e,t){if(t){var n,i,r,o,a,s,l=e.data,c=e.len(),u=Kp.M,d=Kp.C,h=Kp.L,f=Kp.R,p=Kp.A,g=Kp.Q;for(r=0,o=0;r<c;){switch(n=l[r++],o=r,i=0,n){case u:i=1;break;case h:i=1;break;case d:i=3;break;case g:i=2;break;case p:var m=t[4],v=t[5],b=Xp(t[0]*t[0]+t[1]*t[1]),y=Xp(t[2]*t[2]+t[3]*t[3]),_=Zp(-t[1]/y,t[0]/b);l[r]*=b,l[r++]+=m,l[r]*=y,l[r++]+=v,l[r++]*=b,l[r++]*=y,l[r++]+=_,l[r++]+=_,r+=2,o=r;break;case f:s[0]=l[r++],s[1]=l[r++],B(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],B(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<i;a++){var w=Yp[a];w[0]=l[r++],w[1]=l[r++],B(w,w,t),l[o++]=w[0],l[o++]=w[1]}}e.increaseVersion()}}var Jp=Math.sqrt,eg=Math.sin,tg=Math.cos,ng=Math.PI;function ig(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function rg(e,t){return(e[0]*t[0]+e[1]*t[1])/(ig(e)*ig(t))}function og(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(rg(e,t))}function ag(e,t,n,i,r,o,a,s,l,c,u){var d=l*(ng/180),h=tg(d)*(e-n)/2+eg(d)*(t-i)/2,f=-1*eg(d)*(e-n)/2+tg(d)*(t-i)/2,p=h*h/(a*a)+f*f/(s*s);p>1&&(a*=Jp(p),s*=Jp(p));var g=(r===o?-1:1)*Jp((a*a*(s*s)-a*a*(f*f)-s*s*(h*h))/(a*a*(f*f)+s*s*(h*h)))||0,m=g*a*f/s,v=g*-s*h/a,b=(e+n)/2+tg(d)*m-eg(d)*v,y=(t+i)/2+eg(d)*m+tg(d)*v,_=og([1,0],[(h-m)/a,(f-v)/s]),w=[(h-m)/a,(f-v)/s],x=[(-1*h-m)/a,(-1*f-v)/s],C=og(w,x);if(rg(w,x)<=-1&&(C=ng),rg(w,x)>=1&&(C=0),C<0){var S=Math.round(C/ng*1e6)/1e6;C=2*ng+S%2*ng}u.addData(c,b,y,a,s,_,C,d,o)}var sg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function cg(e){var t=new Pa;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Pa.CMD,l=e.match(sg);if(!l)return t;for(var c=0;c<l.length;c++){for(var u=l[c],d=u.charAt(0),h=void 0,f=u.match(lg)||[],p=f.length,g=0;g<p;g++)f[g]=parseFloat(f[g]);var m=0;while(m<p){var v=void 0,b=void 0,y=void 0,_=void 0,w=void 0,x=void 0,C=void 0,S=i,k=r,O=void 0,M=void 0;switch(d){case"l":i+=f[m++],r+=f[m++],h=s.L,t.addData(h,i,r);break;case"L":i=f[m++],r=f[m++],h=s.L,t.addData(h,i,r);break;case"m":i+=f[m++],r+=f[m++],h=s.M,t.addData(h,i,r),o=i,a=r,d="l";break;case"M":i=f[m++],r=f[m++],h=s.M,t.addData(h,i,r),o=i,a=r,d="L";break;case"h":i+=f[m++],h=s.L,t.addData(h,i,r);break;case"H":i=f[m++],h=s.L,t.addData(h,i,r);break;case"v":r+=f[m++],h=s.L,t.addData(h,i,r);break;case"V":r=f[m++],h=s.L,t.addData(h,i,r);break;case"C":h=s.C,t.addData(h,f[m++],f[m++],f[m++],f[m++],f[m++],f[m++]),i=f[m-2],r=f[m-1];break;case"c":h=s.C,t.addData(h,f[m++]+i,f[m++]+r,f[m++]+i,f[m++]+r,f[m++]+i,f[m++]+r),i+=f[m-2],r+=f[m-1];break;case"S":v=i,b=r,O=t.len(),M=t.data,n===s.C&&(v+=i-M[O-4],b+=r-M[O-3]),h=s.C,S=f[m++],k=f[m++],i=f[m++],r=f[m++],t.addData(h,v,b,S,k,i,r);break;case"s":v=i,b=r,O=t.len(),M=t.data,n===s.C&&(v+=i-M[O-4],b+=r-M[O-3]),h=s.C,S=i+f[m++],k=r+f[m++],i+=f[m++],r+=f[m++],t.addData(h,v,b,S,k,i,r);break;case"Q":S=f[m++],k=f[m++],i=f[m++],r=f[m++],h=s.Q,t.addData(h,S,k,i,r);break;case"q":S=f[m++]+i,k=f[m++]+r,i+=f[m++],r+=f[m++],h=s.Q,t.addData(h,S,k,i,r);break;case"T":v=i,b=r,O=t.len(),M=t.data,n===s.Q&&(v+=i-M[O-4],b+=r-M[O-3]),i=f[m++],r=f[m++],h=s.Q,t.addData(h,v,b,i,r);break;case"t":v=i,b=r,O=t.len(),M=t.data,n===s.Q&&(v+=i-M[O-4],b+=r-M[O-3]),i+=f[m++],r+=f[m++],h=s.Q,t.addData(h,v,b,i,r);break;case"A":y=f[m++],_=f[m++],w=f[m++],x=f[m++],C=f[m++],S=i,k=r,i=f[m++],r=f[m++],h=s.A,ag(S,k,i,r,x,C,y,_,w,h,t);break;case"a":y=f[m++],_=f[m++],w=f[m++],x=f[m++],C=f[m++],S=i,k=r,i+=f[m++],r+=f[m++],h=s.A,ag(S,k,i,r,x,C,y,_,w,h,t);break}}"z"!==d&&"Z"!==d||(h=s.Z,t.addData(h),i=o,r=a),n=h}return t.toStatic(),t}var ug=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.applyTransform=function(e){},t}(ss);function dg(e){return null!=e.setData}function hg(e,t){var n=cg(e),i=Object(m["extend"])({},t);return i.buildPath=function(e){if(dg(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){Qp(n,e),this.dirtyShape()},i}function fg(e,t){return new ug(hg(e,t))}function pg(e,t){var n=hg(e,t),i=function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return p(t,e),t}(ug);return i}function gg(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new ss(t);return a.createPathProxy(),a.buildPath=function(e){if(dg(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a}function mg(e,t){t=t||{};var n=new ss;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Qp(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var vg=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),bg=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new vg},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ss);bg.prototype.type="circle";var yg=bg,_g=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),wg=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new _g},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),e.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),e.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),e.closePath()},t}(ss);wg.prototype.type="ellipse";var xg=wg,Cg=Math.PI,Sg=2*Cg,kg=Math.sin,Og=Math.cos,Mg=Math.acos,Dg=Math.atan2,Eg=Math.abs,Tg=Math.sqrt,Lg=Math.max,Ig=Math.min,Ag=1e-4;function Ng(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,h=d*l-u*c;if(!(h*h<Ag))return h=(u*(t-o)-d*(e-r))/h,[e+h*l,t+h*c]}function Pg(e,t,n,i,r,o,a){var s=e-n,l=t-i,c=(a?o:-o)/Tg(s*s+l*l),u=c*l,d=-c*s,h=e+u,f=t+d,p=n+u,g=i+d,m=(h+p)/2,v=(f+g)/2,b=p-h,y=g-f,_=b*b+y*y,w=r-o,x=h*g-p*f,C=(y<0?-1:1)*Tg(Lg(0,w*w*_-x*x)),S=(x*y-b*C)/_,k=(-x*b-y*C)/_,O=(x*y+b*C)/_,M=(-x*b+y*C)/_,D=S-m,E=k-v,T=O-m,L=M-v;return D*D+E*E>T*T+L*L&&(S=O,k=M),{cx:S,cy:k,x0:-u,y0:-d,x1:S*(r/w-1),y1:k*(r/w-1)}}function Rg(e){var t;if(Object(m["isArray"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Fg(e,t){var n,i=Lg(t.r,0),r=Lg(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,c=t.endAngle;if(!isNaN(l)&&!isNaN(c)){var u=t.cx,d=t.cy,h=!!t.clockwise,f=Eg(c-l),p=f>Sg&&f%Sg;if(p>Ag&&(f=p),i>Ag)if(f>Sg-Ag)e.moveTo(u+i*Og(l),d+i*kg(l)),e.arc(u,d,i,l,c,!h),r>Ag&&(e.moveTo(u+r*Og(c),d+r*kg(c)),e.arc(u,d,r,c,l,h));else{var g=void 0,m=void 0,v=void 0,b=void 0,y=void 0,_=void 0,w=void 0,x=void 0,C=void 0,S=void 0,k=void 0,O=void 0,M=void 0,D=void 0,E=void 0,T=void 0,L=i*Og(l),I=i*kg(l),A=r*Og(c),N=r*kg(c),P=f>Ag;if(P){var R=t.cornerRadius;R&&(n=Rg(R),g=n[0],m=n[1],v=n[2],b=n[3]);var F=Eg(i-r)/2;if(y=Ig(F,v),_=Ig(F,b),w=Ig(F,g),x=Ig(F,m),k=C=Lg(y,_),O=S=Lg(w,x),(C>Ag||S>Ag)&&(M=i*Og(c),D=i*kg(c),E=r*Og(l),T=r*kg(l),f<Cg)){var j=Ng(L,I,E,T,M,D,A,N);if(j){var B=L-j[0],z=I-j[1],V=M-j[0],$=D-j[1],W=1/kg(Mg((B*V+z*$)/(Tg(B*B+z*z)*Tg(V*V+$*$)))/2),H=Tg(j[0]*j[0]+j[1]*j[1]);k=Ig(C,(i-H)/(W+1)),O=Ig(S,(r-H)/(W-1))}}}if(P)if(k>Ag){var U=Ig(v,k),q=Ig(b,k),G=Pg(E,T,L,I,i,U,h),K=Pg(M,D,A,N,i,q,h);e.moveTo(u+G.cx+G.x0,d+G.cy+G.y0),k<C&&U===q?e.arc(u+G.cx,d+G.cy,k,Dg(G.y0,G.x0),Dg(K.y0,K.x0),!h):(U>0&&e.arc(u+G.cx,d+G.cy,U,Dg(G.y0,G.x0),Dg(G.y1,G.x1),!h),e.arc(u,d,i,Dg(G.cy+G.y1,G.cx+G.x1),Dg(K.cy+K.y1,K.cx+K.x1),!h),q>0&&e.arc(u+K.cx,d+K.cy,q,Dg(K.y1,K.x1),Dg(K.y0,K.x0),!h))}else e.moveTo(u+L,d+I),e.arc(u,d,i,l,c,!h);else e.moveTo(u+L,d+I);if(r>Ag&&P)if(O>Ag){U=Ig(g,O),q=Ig(m,O),G=Pg(A,N,M,D,r,-q,h),K=Pg(L,I,E,T,r,-U,h);e.lineTo(u+G.cx+G.x0,d+G.cy+G.y0),O<S&&U===q?e.arc(u+G.cx,d+G.cy,O,Dg(G.y0,G.x0),Dg(K.y0,K.x0),!h):(q>0&&e.arc(u+G.cx,d+G.cy,q,Dg(G.y0,G.x0),Dg(G.y1,G.x1),!h),e.arc(u,d,r,Dg(G.cy+G.y1,G.cx+G.x1),Dg(K.cy+K.y1,K.cx+K.x1),h),U>0&&e.arc(u+K.cx,d+K.cy,U,Dg(K.y1,K.x1),Dg(K.y0,K.x0),!h))}else e.lineTo(u+A,d+N),e.arc(u,d,r,c,l,h);else e.lineTo(u+A,d+N)}else e.moveTo(u,d);e.closePath()}}}var jg=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),Bg=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new jg},t.prototype.buildPath=function(e,t){Fg(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ss);Bg.prototype.type="sector";var zg=Bg,Vg=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),$g=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new Vg},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(ss);$g.prototype.type="ring";var Wg=$g;function Hg(e,t,n,i){var r,o,a,s,l=[],c=[],u=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,f=e.length;h<f;h++)z(a,a,e[h]),V(s,s,e[h]);z(a,a,i[0]),V(s,s,i[1])}for(h=0,f=e.length;h<f;h++){var p=e[h];if(n)r=e[h?h-1:f-1],o=e[(h+1)%f];else{if(0===h||h===f-1){l.push(y(e[h]));continue}r=e[h-1],o=e[h+1]}C(c,o,r),L(c,c,t);var g=A(p,r),m=A(p,o),v=g+m;0!==v&&(g/=v,m/=v),L(u,c,-g),L(d,c,m);var b=w([],p,u),_=w([],p,d);i&&(V(b,b,a),z(b,b,s),V(_,_,a),z(_,_,s)),l.push(b),l.push(_)}return n&&l.push(l.shift()),l}function Ug(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=Hg(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],c=o[2*s+1],u=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],u[0],u[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var d=r.length;s<d;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var qg=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Gg=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new qg},t.prototype.buildPath=function(e,t){Ug(e,t,!0)},t}(ss);Gg.prototype.type="polygon";var Kg=Gg,Yg=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Xg=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yg},t.prototype.buildPath=function(e,t){Ug(e,t,!1)},t}(ss);Xg.prototype.type="polyline";var Zg=Xg,Qg={},Jg=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),em=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Jg},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=bs(Qg,t,this.style);n=a.x1,i=a.y1,r=a.x2,o=a.y2}else n=t.x1,i=t.y1,r=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,i),s<1&&(r=n*(1-s)+r*s,o=i*(1-s)+o*s),e.lineTo(r,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ss);em.prototype.type="line";var tm=em,nm=[],im=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function rm(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?Pt:Nt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Pt:Nt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?$t:Vt)(e.x1,e.cpx1,e.x2,t),(n?$t:Vt)(e.y1,e.cpy1,e.y2,t)]}var om=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new im},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,c=t.cpy2,u=t.percent;0!==u&&(e.moveTo(n,i),null==l||null==c?(u<1&&(Ut(n,a,r,u,nm),a=nm[1],r=nm[2],Ut(i,s,o,u,nm),s=nm[1],o=nm[2]),e.quadraticCurveTo(a,s,r,o)):(u<1&&(jt(n,a,l,r,u,nm),a=nm[1],l=nm[2],r=nm[3],jt(i,s,c,o,u,nm),s=nm[1],c=nm[2],o=nm[3]),e.bezierCurveTo(a,s,l,c,r,o)))},t.prototype.pointAt=function(e){return rm(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=rm(this.shape,e,!0);return I(t,t)},t}(ss);om.prototype.type="bezier-curve";var am=om,sm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),lm=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sm},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),c=Math.sin(o);e.moveTo(l*r+n,c*r+i),e.arc(n,i,r,o,a,!s)},t}(ss);lm.prototype.type="arc";var cm=lm,um=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return p(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ss.prototype.getBoundingRect.call(this)},t}(ss),dm=um,hm=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),fm=hm,pm=function(e){function t(t,n,i,r,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return p(t,e),t}(fm),gm=pm,mm=function(e){function t(t,n,i,r,o){var a=e.call(this,r)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return p(t,e),t}(fm),vm=mm,bm=[0,0],ym=[0,0],_m=new Ie,wm=new Ie,xm=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ie;for(n=0;n<2;n++)this._axes[n]=new Ie;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,r=e.x,o=e.y,a=r+e.width,s=o+e.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,s),n[3].set(r,s),t)for(var l=0;l<4;l++)n[l].transform(t);Ie.sub(i[0],n[1],n[0]),Ie.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return _m.set(1/0,1/0),wm.set(0,0),!this._intersectCheckOneSide(this,e,_m,wm,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,_m,wm,i,-1)&&(n=!1,i)||i||Ie.copy(t,n?_m:wm),n},e.prototype._intersectCheckOneSide=function(e,t,n,i,r,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,bm),this._getProjMinMaxOnAxis(s,t._corners,ym),bm[1]<ym[0]||bm[0]>ym[1]){if(a=!1,r)return a;var c=Math.abs(ym[0]-bm[1]),u=Math.abs(bm[0]-ym[1]);Math.min(c,u)>i.len()&&(c<u?Ie.scale(i,l,-c*o):Ie.scale(i,l,u*o))}else if(n){c=Math.abs(ym[0]-bm[1]),u=Math.abs(bm[0]-ym[1]);Math.min(c,u)<n.len()&&(c<u?Ie.scale(n,l,c*o):Ie.scale(n,l,-u*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],a=o,s=o,l=1;l<t.length;l++){var c=t[l].dot(i)+r[e];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},e}(),Cm=xm,Sm=[],km=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return p(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new $e(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Sm)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(e,t))return!0}return!1},t}(ea),Om=km,Mm=Math.max,Dm=Math.min,Em={};function Tm(e){return ss.extend(e)}var Lm=pg;function Im(e,t){return Lm(e,t)}function Am(e,t){Em[e]=t}function Nm(e){if(Em.hasOwnProperty(e))return Em[e]}function Pm(e,t,n,i){var r=fg(e,t);return n&&("center"===i&&(n=Fm(n,r.getBoundingRect())),Bm(r,n)),r}function Rm(e,t,n){var i=new gs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(Fm(t,r))}}});return i}function Fm(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var jm=gg;function Bm(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function zm(e,t){return bs(e,e,{lineWidth:t}),e}function Vm(e){return ys(e.shape,e.shape,e.style),e}var $m=_s;function Wm(e,t){var n=Ce([]);while(e&&e!==t)ke(n,e.getLocalTransform(),n),e=e.parent;return n}function Hm(e,t,n){return t&&!Object(m["isArrayLike"])(t)&&(t=ui.getLocalTransform(t)),n&&(t=Ee([],t)),B([],e,t)}function Um(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Hm(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function qm(e){return!e.isGroup}function Gm(e){return null!=e.shape}function Km(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(qm(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),lc(e,r,n,Ws(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){qm(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Gm(e)&&(t.shape=Object(m["extend"])({},e.shape)),t}}function Ym(e,t){return Object(m["map"])(e,(function(e){var n=e[0];n=Mm(n,t.x),n=Dm(n,t.x+t.width);var i=e[1];return i=Mm(i,t.y),i=Dm(i,t.y+t.height),[n,i]}))}function Xm(e,t){var n=Mm(e.x,t.x),i=Dm(e.x+e.width,t.x+t.width),r=Mm(e.y,t.y),o=Dm(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Zm(e,t,n){var i=Object(m["extend"])({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(m["defaults"])(r,n),new gs(i)):Pm(e.replace("path://",""),i,n,"center")}function Qm(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Jm(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Jm(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,h=ev(u,d,l,c);if(tv(h))return!1;var f=e-r,p=t-o,g=ev(f,p,l,c)/h;if(g<0||g>1)return!1;var m=ev(f,p,u,d)/h;return!(m<0||m>1)}function ev(e,t,n,i){return e*i-n*t}function tv(e){return e<=1e-6&&e>=-1e-6}function nv(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=Object(m["isString"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&Object(m["each"])(Object(m["keys"])(l),(function(e){Object(m["hasOwn"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var c=Ws(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:i,option:Object(m["defaults"])({content:i,formatterParams:s},r)}}function iv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function rv(e,t){if(e)if(Object(m["isArray"])(e))for(var n=0;n<e.length;n++)iv(e[n],t);else iv(e,t)}Am("circle",yg),Am("ellipse",xg),Am("sector",zg),Am("ring",Wg),Am("polygon",Kg),Am("polyline",Zg),Am("rect",Ss),Am("line",tm),Am("bezierCurve",am),Am("arc",cm);var ov=Kr(),av=Gp(),sv=function(){function e(){this.group=new Fi,this.uid=Gc("viewChart"),this.renderTask=kf({plan:uv,reset:dv}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&cv(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&cv(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){rv(this.group,e)},e.markUpdateMethod=function(e,t){ov(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function lv(e,t,n){e&&Jl(e)&&("emphasis"===t?Dl:El)(e,n)}function cv(e,t,n){var i=Gr(e,t),r=t&&null!=t.highlightKey?tc(t.highlightKey):null;null!=i?Object(m["each"])(Or(i),(function(t){lv(e.getItemGraphicEl(t),n,r)})):e.eachItemGraphicEl((function(e){lv(e,n,r)}))}function uv(e){return av(e.model)}function dv(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&ov(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,i,r),hv[l]}fo(sv,["dispose"]),_o(sv);var hv={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},fv=sv,pv="\0__throttleOriginMethod",gv="\0__throttleRate",mv="\0__throttleType";function vv(e,t,n){var i,r,o,a,s,l=0,c=0,u=null;function d(){c=(new Date).getTime(),u=null,e.apply(o,a||[])}t=t||0;var h=function(){for(var e=[],h=0;h<arguments.length;h++)e[h]=arguments[h];i=(new Date).getTime(),o=this,a=e;var f=s||t,p=s||n;s=null,r=i-(p?l:c)-f,clearTimeout(u),p?u=setTimeout(d,f):r>=0?d():u=setTimeout(d,-r),l=i};return h.clear=function(){u&&(clearTimeout(u),u=null)},h.debounceNextCall=function(e){s=e},h}function bv(e,t,n,i){var r=e[t];if(r){var o=r[pv]||r,a=r[mv],s=r[gv];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=vv(o,n,"debounce"===i),r[pv]=o,r[mv]=i,r[gv]=n}return r}}function yv(e,t){var n=e[t];n&&n[pv]&&(n.clear&&n.clear(),e[t]=n[pv])}var _v=Kr(),wv={itemStyle:wo(Vc,!0),lineStyle:wo(jc,!0)},xv={lineStyle:"stroke",itemStyle:"fill"};function Cv(e,t){var n=e.visualStyleMapper||wv[t];return n||(console.warn("Unknown style type '"+t+"'."),wv.itemStyle)}function Sv(e,t){var n=e.visualDrawType||xv[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var kv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=Cv(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Sv(e,i),c=a[l],u=Object(m["isFunction"])(c)?c:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||u||d){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(m["isFunction"])(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||Object(m["isFunction"])(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Object(m["extend"])({},a);r[l]=u(i),t.setItemVisual(n,"style",r)}}}},Ov=new Uc,Mv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=Cv(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){Ov.option=n[i];var a=r(Ov),s=e.ensureUniqueItemVisual(t,"style");Object(m["extend"])(s,a),Ov.option.decal&&(e.setItemVisual(t,"decal",Ov.option.decal),Ov.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Dv={performRawSeries:!0,overallReset:function(e){var t=Object(m["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),_v(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=_v(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Sv(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",d=n.count();c[s]=t.getColorFromPalette(u,o,d)}}))}}))}},Ev=Math.PI;function Tv(e,t){t=t||{},m["defaults"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Fi,i=new Ss({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new $s({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ss({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new cm({shape:{startAngle:-Ev/2,endAngle:-Ev/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Ev/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ev/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-s,y:c-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Lv=function(){function e(e,t,n,i){this._stageTaskMap=Object(m["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(m["createHashMap"])();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(m["each"])(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";Object(m["assert"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(m["each"])(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,h=u.agentStubMap;h.each((function(e){a(i,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),o.updatePayload(u,n);var f=o.getPerformArgs(u,i.block);h.each((function(e){e.perform(f)})),u.perform(f)&&(r=!0)}else c&&c.each((function(s,l){a(i,s)&&s.dirty();var c=o.getPerformArgs(s,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Object(m["createHashMap"])(),s=e.seriesType,l=e.getTargetSeries;function c(t){var s=t.uid,l=a.set(s,o&&o.get(s)||kf({plan:Rv,reset:Fv,count:zv}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):l&&l(n,i).each(c)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||kf({reset:Iv});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(m["createHashMap"])(),l=e.seriesType,c=e.getTargetSeries,u=!0,d=!1,h="";function f(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,kf({reset:Av,onDirty:Pv})));n.context={model:e,overallProgress:u},n.agent=o,n.__block=u,r._pipe(e,n)}Object(m["assert"])(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,f):c?c(n,i).each(f):(u=!1,Object(m["each"])(n.getSeries(),f)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Object(m["isFunction"])(e)&&(e={overallReset:e,seriesType:Vv(e)}),e.uid=Gc("stageHandler"),t&&(e.visualType=t),e},e}();function Iv(e){e.overallReset(e.ecModel,e.api,e.payload)}function Av(e){return e.overallProgress&&Nv}function Nv(){this.agent.dirty(),this.getDownstream().dirty()}function Pv(){this.agent&&this.agent.dirty()}function Rv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Fv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Or(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(m["map"])(t,(function(e,t){return Bv(t)})):jv}var jv=Bv(0);function Bv(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function zv(e){return e.data.count()}function Vv(e){$v=null;try{e(Wv,Hv)}catch(t){}return $v}var $v,Wv={},Hv={};function Uv(e,t){for(var n in t.prototype)e[n]=m["noop"]}Uv(Wv,sh),Uv(Hv,uh),Wv.eachSeriesByType=Wv.eachRawSeriesByType=function(e){$v=e},Wv.eachComponent=function(e){"series"===e.mainType&&e.subType&&($v=e.subType)};var qv=Lv,Gv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Kv={color:Gv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Gv]},Yv="#B9B8CE",Xv="#100C2A",Zv=function(){return{axisLine:{lineStyle:{color:Yv}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Qv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jv={darkMode:!0,color:Qv,backgroundColor:Xv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yv}},textStyle:{color:Yv},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yv}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yv},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yv}},timeline:{lineStyle:{color:Yv},label:{color:Yv},controlStyle:{color:Yv,borderColor:Yv}},calendar:{itemStyle:{color:Xv},dayLabel:{color:Yv},monthLabel:{color:Yv},yearLabel:{color:Yv}},timeAxis:Zv(),logAxis:Zv(),valueAxis:Zv(),categoryAxis:Zv(),line:{symbol:"circle"},graph:{color:Qv},gauge:{title:{color:Yv},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yv},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jv.categoryAxis.splitLine.show=!1;var eb=Jv,tb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(m["isString"](e)){var r=co(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};m["each"](e,(function(e,r){for(var s=!1,l=0;l<o.length;l++){var c=o[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var d=r.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),nb=["symbol","symbolSize","symbolRotate","symbolOffset"],ib=nb.concat(["symbolKeepAspect"]),rb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<nb.length;a++){var s=nb[a],l=e.get(s);Object(m["isFunction"])(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(Object(m["extend"])({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var c=Object(m["keys"])(r);return{dataEach:o?u:null}}}function u(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,r[s](i,o))}}}},ob={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?i:null}}function i(e,t){for(var n=e.getItemModel(t),i=0;i<ib.length;i++){var r=ib[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}}};function ab(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function sb(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function lb(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}function cb(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}Object(m["each"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,i,r){t=Object(m["extend"])({},t),r.dispatchAction(Object(m["extend"])(t,{type:e[1],seriesIndex:n(i,t)}))}))}))}function ub(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,i=e.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),c=Gr(l,r.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:Object(m["isArray"])(c)?l.getName(c[0]):l.getName(c),selected:Object(m["isString"])(i)?i:Object(m["extend"])({},i)})}}))}function db(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(ub("map","selectchanged",t,i,e),ub("pie","selectchanged",t,i,e)):"select"===e.fromAction?(ub("map","selected",t,i,e),ub("pie","selected",t,i,e)):"unselect"===e.fromAction&&(ub("map","unselected",t,i,e),ub("pie","unselected",t,i,e))}))}function hb(e,t,n){var i;while(e){if(t(e)&&(i=e,n))break;e=e.__hostTarget||e.parent}return i}var fb=Math.round(9*Math.random()),pb="function"===typeof Object.defineProperty,gb=function(){function e(){this._id="__ec_inner_"+fb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return pb?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),mb=gb,vb=ss.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),bb=ss.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),yb=ss.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,c=Math.asin(s/a),u=Math.cos(c)*a,d=Math.sin(c),h=Math.cos(c),f=.6*a,p=.7*a;e.moveTo(n-u,l+s),e.arc(n,l,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-d*f,l+s+h*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-u+d*f,l+s+h*f,n-u,l+s),e.closePath()}}),_b=ss.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),wb={line:tm,rect:Ss,roundRect:Ss,square:Ss,circle:yg,diamond:bb,pin:yb,arrow:_b,triangle:vb},xb={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},Cb={};Object(m["each"])(wb,(function(e,t){Cb[t]=new e}));var Sb=ss.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=wi(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=Cb[i];r||(i="rect",r=Cb[i]),xb[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function kb(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Ob(e,t,n,i,r,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),s=0===e.indexOf("image://")?Rm(e.slice(8),new $e(t,n,i,r),a?"center":"cover"):0===e.indexOf("path://")?Pm(e.slice(7),{},new $e(t,n,i,r),a?"center":"cover"):new Sb({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),s.__isEmptyBrush=l,s.setColor=kb,o&&s.setColor(o),s}function Mb(e){return Object(m["isArray"])(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Db(e,t){if(null!=e)return Object(m["isArray"])(e)||(e=[e,e]),[Ji(e[0],t[0])||0,Ji(Object(m["retrieve2"])(e[1],e[0]),t[1])||0]}function Eb(e){return isFinite(e)}function Tb(e,t,n){var i=null==t.x?0:t.x,r=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Eb(i)?i:0,r=Eb(r)?r:1,o=Eb(o)?o:0,a=Eb(a)?a:0;var s=e.createLinearGradient(i,o,r,a);return s}function Lb(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(a=a*i+n.x,s=s*r+n.y,l*=o),a=Eb(a)?a:.5,s=Eb(s)?s:.5,l=l>=0&&Eb(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function Ib(e,t,n){for(var i="radial"===t.type?Lb(e,t,n):Tb(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function Ab(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Nb(e){return parseInt(e,10)}function Pb(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||Nb(s[i])||Nb(e.style[i]))-(Nb(s[o])||0)-(Nb(s[a])||0)|0}function Rb(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(m["isNumber"])(e)?[e]:Object(m["isArray"])(e)?e:null:null}function Fb(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Rb(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=Object(m["map"])(n,(function(e){return e/r})),i/=r)}return[n,i]}var jb=new Pa(!0);function Bb(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function zb(e){return"string"===typeof e&&"none"!==e}function Vb(e){var t=e.fill;return null!=t&&"none"!==t}function $b(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Wb(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Hb(e,t,n){var i=Mo(t.image,t.__image,n);if(Eo(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*m["RADIAN_TO_DEGREE"]),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function Ub(e,t,n,i){var r,o=Bb(n),a=Vb(n),s=n.strokePercent,l=s<1,c=!t.path;t.silent&&!l||!c||t.createPathProxy();var u=t.path||jb,d=t.__dirty;if(!i){var h=n.fill,f=n.stroke,p=a&&!!h.colorStops,g=o&&!!f.colorStops,m=a&&!!h.image,v=o&&!!f.image,b=void 0,y=void 0,_=void 0,w=void 0,x=void 0;(p||g)&&(x=t.getBoundingRect()),p&&(b=d?Ib(e,h,x):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(y=d?Ib(e,f,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),m&&(_=d||!t.__canvasFillPattern?Hb(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=_),v&&(w=d||!t.__canvasStrokePattern?Hb(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),p?e.fillStyle=b:m&&(_?e.fillStyle=_:a=!1),g?e.strokeStyle=y:v&&(w?e.strokeStyle=w:o=!1)}var C,S,k=t.getGlobalScale();u.setScale(k[0],k[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=Fb(t),C=r[0],S=r[1]);var O=!0;(c||d&ft)&&(u.setDPR(e.dpr),l?u.setContext(null):(u.setContext(e),O=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),O&&u.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=S),i||(n.strokeFirst?(o&&Wb(e,n),a&&$b(e,n)):(a&&$b(e,n),o&&Wb(e,n))),C&&e.setLineDash([])}function qb(e,t,n){var i=t.__image=Mo(n.image,t.__image,t,t.onload);if(i&&Eo(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;e.drawImage(i,c,u,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){c=n.sx,u=n.sy;var d=a-c,h=s-u;e.drawImage(i,c,u,d,h,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function Gb(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||hi["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=Fb(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Bb(n)&&e.strokeText(r,n.x,n.y),Vb(n)&&e.fillText(r,n.x,n.y)):(Vb(n)&&e.fillText(r,n.x,n.y),Bb(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var Kb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Yb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xb(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){sy(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?qo.opacity:a}(i||t.blend!==n.blend)&&(o||(sy(e,r),o=!0),e.globalCompositeOperation=t.blend||qo.blend);for(var s=0;s<Kb.length;s++){var l=Kb[s];(i||t[l]!==n[l])&&(o||(sy(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(sy(e,r),o=!0),e.shadowColor=t.shadowColor||qo.shadowColor),o}function Zb(e,t,n,i,r){var o=ly(t,r.inHover),a=i?null:n&&ly(n,r.inHover)||{};if(o===a)return!1;var s=Xb(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(sy(e,r),s=!0),zb(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(sy(e,r),s=!0),zb(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(sy(e,r),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(sy(e,r),s=!0),e.lineWidth=c)}for(var u=0;u<Yb.length;u++){var d=Yb[u],h=d[0];(i||o[h]!==a[h])&&(s||(sy(e,r),s=!0),e[h]=o[h]||d[1])}return s}function Qb(e,t,n,i,r){return Xb(e,ly(t,r.inHover),n&&ly(n,r.inHover),i,r)}function Jb(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function ey(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),Jb(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function ty(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var ny=1,iy=2,ry=3,oy=4;function ay(e){var t=Vb(e),n=Bb(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function sy(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function ly(e,t){return t&&e.__hoverStyle||e.style}function cy(e,t){uy(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function uy(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~dt,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!Ab(o,a)||(a&&a.length&&(sy(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(sy(e,n),e.save(),ey(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var u=t instanceof ss&&t.autoBatch&&ay(t.style);s||ty(r,c.transform)?(sy(e,n),Jb(e,t)):u||sy(e,n);var d=ly(t,n.inHover);t instanceof ss?(n.lastDrawType!==ny&&(l=!0,n.lastDrawType=ny),Zb(e,t,c,l,n),u&&(n.batchFill||n.batchStroke)||e.beginPath(),Ub(e,t,d,u),u&&(n.batchFill=d.fill||"",n.batchStroke=d.stroke||"")):t instanceof us?(n.lastDrawType!==ry&&(l=!0,n.lastDrawType=ry),Zb(e,t,c,l,n),Gb(e,t,d)):t instanceof gs?(n.lastDrawType!==iy&&(l=!0,n.lastDrawType=iy),Qb(e,t,c,l,n),qb(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==oy&&(l=!0,n.lastDrawType=oy),dy(e,t,n)),u&&i&&sy(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function dy(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=i.length;o<a;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),uy(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var c=0,u=r.length;c<u;c++){l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),uy(e,l,s,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var hy=new mb,fy=new di["a"](100),py=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gy(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&hy["delete"](e);var o=hy.get(e);if(o)return o;var a=Object(m["defaults"])(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,hy.set(e,s),e.dirty=!1,s;function l(e){for(var t,o=[n],s=!0,l=0;l<py.length;++l){var c=a[py[l]];if(null!=c&&!Object(m["isArray"])(c)&&!Object(m["isString"])(c)&&!Object(m["isNumber"])(c)&&"boolean"!==typeof c){s=!1;break}o.push(c)}if(s){t=o.join(",")+(r?"-svg":"");var u=fy.get(t);u&&(r?e.svgElement=u:e.image=u)}var d,h=vy(a.dashArrayX),f=by(a.dashArrayY),p=my(a.symbol),g=yy(h),v=_y(f),b=!r&&hi["d"].createCanvas(),y=r&&{tag:"g",attrs:{},key:"dcl",children:[]},_=w();function w(){for(var e=1,t=0,n=g.length;t<n;++t)e=xr(e,g[t]);var i=1;for(t=0,n=p.length;t<n;++t)i=xr(i,p[t].length);e*=i;var r=v*g.length*p.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}function x(){d&&(d.clearRect(0,0,b.width,b.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,b.width,b.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(!(e<=0)){var o=-v,s=0,l=0,c=0;while(o<_.height){if(s%2===0){var u=l/2%p.length,g=0,m=0,w=0;while(g<2*_.width){var x=0;for(t=0;t<h[c].length;++t)x+=h[c][t];if(x<=0)break;if(m%2===0){var C=.5*(1-a.symbolSize),S=g+h[c][m]*C,k=o+f[s]*C,O=h[c][m]*a.symbolSize,M=f[s]*a.symbolSize,D=w/2%p[u].length;E(S,k,O,M,p[u][D])}g+=h[c][m],++w,++m,m===h[c].length&&(m=0)}++c,c===h.length&&(c=0)}o+=f[s],++l,++s,s===f.length&&(s=0)}}function E(e,t,o,s,l){var c=r?1:n,u=Ob(l,e*c,t*c,o*c,s*c,a.color,a.symbolKeepAspect);if(r){var h=i.painter.renderOneToVNode(u);h&&y.children.push(h)}else cy(d,u)}}b&&(b.width=_.width*n,b.height=_.height*n,d=b.getContext("2d")),x(),s&&fy.put(t,b||y),e.image=b,e.svgElement=y,e.svgWidth=_.width,e.svgHeight=_.height}}function my(e){if(!e||0===e.length)return[["rect"]];if(Object(m["isString"])(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(m["isString"])(e[n])){t=!1;break}if(t)return my([e]);var i=[];for(n=0;n<e.length;++n)Object(m["isString"])(e[n])?i.push([e[n]]):i.push(e[n]);return i}function vy(e){if(!e||0===e.length)return[[0,0]];if(Object(m["isNumber"])(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!Object(m["isNumber"])(e[i])){n=!1;break}if(n)return vy([e]);var r=[];for(i=0;i<e.length;++i)if(Object(m["isNumber"])(e[i])){t=Math.ceil(e[i]);r.push([t,t])}else{t=Object(m["map"])(e[i],(function(e){return Math.ceil(e)}));t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function by(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(Object(m["isNumber"])(e)){var t=Math.ceil(e);return[t,t]}var n=Object(m["map"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function yy(e){return Object(m["map"])(e,(function(e){return _y(e)}))}function _y(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}function wy(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");if(n){var r=i.ensureUniqueItemVisual(e,"style");r.decal=gy(n,t)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=gy(r,t)}}}))}var xy=new q,Cy=xy,Sy={};function ky(e,t){Sy[e]=t}function Oy(e){return Sy[e]}var My="5.4.2",Dy={zrender:"5.4.3"},Ey=1,Ty=800,Ly=900,Iy=1e3,Ay=2e3,Ny=5e3,Py=1e3,Ry=1100,Fy=2e3,jy=3e3,By=4e3,zy=4500,Vy=4600,$y=5e3,Wy=6e3,Hy=7e3,Uy={PROCESSOR:{FILTER:Iy,SERIES_FILTER:Ty,STATISTIC:Ny},VISUAL:{LAYOUT:Py,PROGRESSIVE_LAYOUT:Ry,GLOBAL:Fy,CHART:jy,POST_CHART_LAYOUT:Vy,COMPONENT:By,BRUSH:$y,CHART_ITEM:zy,ARIA:Wy,DECAL:Hy}},qy="__flagInMainProcess",Gy="__pendingUpdate",Ky="__needsUpdateStatus",Yy=/^[a-zA-Z0-9_]+$/,Xy="__connectUpdateStatus",Zy=0,Qy=1,Jy=2;function e_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return n_(this,e,t);O_(this.id)}}function t_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n_(this,e,t)}}function n_(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),q.prototype[t].apply(e,n)}var i_,r_,o_,a_,s_,l_,c_,u_,d_,h_,f_,p_,g_,m_,v_,b_,y_,__,w_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(q),x_=w_.prototype;x_.on=t_("on"),x_.off=t_("off");var C_=function(e){function t(t,n,i){var r=e.call(this,new tb)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],i=i||{},Object(m["isString"])(n)&&(n=I_[n]),r._dom=t;var o="canvas",a="auto",s=!1,l=r._zr=Wi(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(m["retrieve2"])(i.useDirtyRect,s),useCoarsePointer:Object(m["retrieve2"])(i.useCoarsePointer,a),pointerSize:i.pointerSize});r._ssr=i.ssr,r._throttledZrFlush=vv(Object(m["bind"])(l.flush,l),17),n=Object(m["clone"])(n),n&&Hh(n,!0),r._theme=n,r._locale=au(i.locale||ru),r._coordSysMgr=new fh;var c=r._api=v_(r);function u(e,t){return e.__prio-t.__prio}return ut(L_,u),ut(E_,u),r._scheduler=new qv(r,c,E_,L_),r._messageCenter=new w_,r._initEvents(),r.resize=Object(m["bind"])(r.resize,r),l.animation.on("frame",r._onframe,r),h_(l,r),f_(l,r),Object(m["setAsPrimitive"])(r),r}return p(t,e),t.prototype._onframe=function(){if(!this._disposed){__(this);var e=this._scheduler;if(this[Gy]){var t=this[Gy].silent;this[qy]=!0;try{i_(this),a_.update.call(this,null,this[Gy].updateParams)}catch(a){throw this[qy]=!1,this[Gy]=null,a}this._zr.flush(),this[qy]=!1,this[Gy]=null,u_.call(this,t),d_.call(this,t)}else if(e.unfinished){var n=Ey,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),l_(this,i),e.performVisualTasks(i),m_(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[qy])if(this._disposed)O_(this.id);else{var i,r,o;if(Object(m["isObject"])(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[qy]=!0,!this._model||t){var a=new _h(this._api),s=this._theme,l=this._model=new sh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},T_);var c={seriesTransition:o,optionChanged:!0};if(n)this[Gy]={silent:i,updateParams:c},this[qy]=!1,this.getZr().wakeUp();else{try{i_(this),a_.update.call(this,null,c)}catch(u){throw this[Gy]=null,this[qy]=!1,u}this._ssr||this._zr.flush(),this[Gy]=null,this[qy]=!1,u_.call(this,i),d_.call(this,i)}}},t.prototype.setTheme=function(){Zd("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||g["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(g["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(m["each"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;Object(m["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(m["each"])(i,(function(e){e.group.ignore=!1})),o}O_(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(P_[n]){var a=o,s=o,l=-o,c=-o,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(m["each"])(N_,(function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(m["clone"])(e)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),c=r(f.bottom,c),u.push({dom:h,left:f.left,top:f.top})}})),a*=d,s*=d,l*=d,c*=d;var h=l-a,f=c-s,p=hi["d"].createCanvas(),g=Wi(p,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:f}),t){var v="";return Object(m["each"])(u,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Ss({shape:{x:0,y:0,width:h,height:f},style:{fill:e.connectedBackgroundColor}})),Object(m["each"])(u,(function(e){var t=new gs({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});g.add(t)})),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}O_(this.id)},t.prototype.convertToPixel=function(e,t){return s_(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return s_(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=Xr(i,e);return Object(m["each"])(r,(function(e,i){i.indexOf("Models")>=0&&Object(m["each"])(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}O_(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=Xr(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?ab(o,a,t):sb(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(m["each"])(k_,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&hb(o,(function(e){var t=Ws(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=Object(m["extend"])({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var c=s&&null!=l&&r.getComponent(s,l),u=c&&e["series"===c.mainType?"_chartsMap":"_componentsMap"][c.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:c,view:u},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(m["each"])(D_,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(m["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),db(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?O_(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)O_(this.id);else{this._disposed=!0;var e=this.getDom();e&&to(this.getDom(),j_,"");var t=this,n=t._api,i=t._model;Object(m["each"])(t._componentsViews,(function(e){e.dispose(i,n)})),Object(m["each"])(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete N_[t.id]}},t.prototype.resize=function(e){if(!this[qy])if(this._disposed)O_(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Gy]&&(null==i&&(i=this[Gy].silent),n=!0,this[Gy]=null),this[qy]=!0;try{n&&i_(this),a_.update.call(this,{type:"resize",animation:Object(m["extend"])({duration:0},e&&e.animation)})}catch(r){throw this[qy]=!1,r}this[qy]=!1,u_.call(this,i),d_.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)O_(this.id);else if(Object(m["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),A_[e]){var n=A_[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?O_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(m["extend"])({},e);return t.type=D_[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)O_(this.id);else if(Object(m["isObject"])(t)||(t={silent:!!t}),M_[e.type]&&this._model)if(this[qy])this._pendingActions.push(e);else{var n=t.silent;c_.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&g["a"].browser.weChat&&this._throttledZrFlush(),u_.call(this,n),d_.call(this,n)}},t.prototype.updateLabelLayout=function(){Cy.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)O_(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);ut(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(m["each"])(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Zs&&e.states.emphasis?t.push("emphasis"):e.hoverState===Xs&&e.states.blur&&t.push("blur"),e.useStates(t)}function i(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!g["a"].node&&!g["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function o(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return a(e,n,i,-1/0),!0}))}}function a(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),c=0;c<l.length;c++)i=Math.max(a(l[c],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function s(e,t){t.eachRendered((function(e){if(!uc(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function l(e,t){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(uc(e))return;if(e instanceof ss&&rc(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}i_=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),r_(e,!0),r_(e,!1),t.plan()},r_=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!l&&o[c];if(!u){var d=co(e.type),h=t?qp.getClass(d.main,d.sub):fv.getClass(d.sub);0,u=new h,u.init(n,s),o[c]=u,r.push(u),a.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(u,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(l=0;l<r.length;){var u=r[l];u.__alive?l++:(!t&&u.renderTask.dispose(),a.remove(u.group),u.dispose(n,s),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},o_=function(e,t,n,i,r){var o=e._model;if(o.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var s={mainType:i,query:a};r&&(s.subType=r);var l,c=n.excludeSeriesId;null!=c&&(l=Object(m["createHashMap"])(),Object(m["each"])(Or(c),(function(e){var t=zr(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){var i=l&&null!=l.get(t.id);if(!i)if(ic(n))if(t instanceof Hp)n.type!==nl||n.notBlur||t.get(["emphasis","disabled"])||jl(t,n,e._api);else{var r=Bl(t.mainType,t.componentIndex,n.name,e._api),o=r.focusSelf,a=r.dispatchers;n.type===nl&&o&&!n.notBlur&&Fl(t.mainType,t.componentIndex,e._api),a&&Object(m["each"])(a,(function(e){n.type===nl?Dl(e):El(e)}))}else nc(n)&&t instanceof Hp&&($l(t,n,e._api),Wl(t),y_(e))}),e),o&&o.eachComponent(s,(function(t){var n=l&&null!=l.get(t.id);n||u(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(m["each"])([].concat(e._componentsViews).concat(e._chartsViews),u);function u(i){i&&i.__alive&&i[t]&&i[t](i.__model,o,e._api,n)}},a_={prepareAndUpdate:function(e){i_(this),a_.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(t),s.restoreData(i,t),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,t),l_(this,i),a.update(i,r),e(i),s.performVisualTasks(i,t),p_(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");o.setBackgroundColor(l),null!=c&&"auto"!==c&&o.setDarkMode(c),Cy.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var o=[];i.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,r,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(m["createHashMap"])();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,i,r,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),m_(this,i,r,t,{},a),Cy.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),fv.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),p_(this,n,this._api,t,{}),Cy.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),fv.markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),Cy.trigger("afterupdate",i,this._api))},updateLayout:function(e){a_.update.call(this,e)}},s_=function(e,t,n,i){if(e._disposed)O_(e.id);else{for(var r,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=Xr(o,n),l=0;l<a.length;l++){var c=a[l];if(c[t]&&null!=(r=c[t](o,s,i)))return r}0}},l_=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},c_=function(e,t){var n=this,i=this.getModel(),r=e.type,o=e.escapeConnect,a=M_[r],s=a.actionInfo,l=(s.update||"update").split(":"),c=l.pop(),u=null!=l[0]&&co(l[0]);this[qy]=!0;var d=[e],h=!1;e.batch&&(h=!0,d=Object(m["map"])(e.batch,(function(t){return t=Object(m["defaults"])(Object(m["extend"])({},t),e),t.batch=null,t})));var f,p=[],g=nc(e),v=ic(e);if(v&&Pl(this._api),Object(m["each"])(d,(function(t){if(f=a.action(t,n._model,n._api),f=f||Object(m["extend"])({},t),f.type=s.event||f.type,p.push(f),v){var i=Zr(e),r=i.queryOptionMap,o=i.mainTypeSpecified,l=o?r.keys()[0]:"series";o_(n,c,t,l),y_(n)}else g?(o_(n,c,t,"series"),y_(n)):u&&o_(n,c,t,u.main,u.sub)})),"none"!==c&&!v&&!g&&!u)try{this[Gy]?(i_(this),a_.update.call(this,e),this[Gy]=null):a_[c].call(this,e)}catch(_){throw this[qy]=!1,_}if(f=h?{type:s.event||r,escapeConnect:o,batch:p}:p[0],this[qy]=!1,!t){var b=this._messageCenter;if(b.trigger(f.type,f),g){var y={type:"selectchanged",escapeConnect:o,selected:Hl(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};b.trigger(y.type,y)}}},u_=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();c_.call(this,n,e)}},d_=function(e){!e&&this.trigger("updated")},h_=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Gy]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},f_=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=hb(n,Jl);i&&(zl(i,e,t._api),y_(t))})).on("mouseout",(function(e){var n=e.target,i=hb(n,Jl);i&&(Vl(i,e,t._api),y_(t))})).on("click",(function(e){var n=e.target,i=hb(n,(function(e){return null!=Ws(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Ws(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},p_=function(e,n,i,r,o){t(n),g_(e,n,i,r,o),Object(m["each"])(e._chartsViews,(function(e){e.__alive=!1})),m_(e,n,i,r,o),Object(m["each"])(e._chartsViews,(function(e){e.__alive||e.remove(n,i)}))},g_=function(e,t,n,i,r,a){Object(m["each"])(a||e._componentsViews,(function(e){var r=e.__model;s(r,e),e.render(r,t,n,i),o(r,e),l(r,e)}))},m_=function(e,t,n,a,c,u){var d=e._scheduler;c=Object(m["extend"])(c||{},{updatedSeries:t.getSeries()}),Cy.trigger("series:beforeupdate",t,n,c);var h=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,a),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(h=!0),n.group.silent=!!t.get("silent"),r(t,n),Wl(t)})),d.unfinished=h||d.unfinished,Cy.trigger("series:layoutlabels",t,n,c),Cy.trigger("series:transition",t,n,c),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];o(t,n),l(t,n)})),i(e,t),Cy.trigger("series:afterupdate",t,n,c)},y_=function(e){e[Ky]=!0,e.getZr().wakeUp()},__=function(e){e[Ky]&&(e.getZr().storage.traverse((function(e){uc(e)||n(e)})),e[Ky]=!1)},v_=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return p(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Dl(t,n),y_(e)},n.prototype.leaveEmphasis=function(t,n){El(t,n),y_(e)},n.prototype.enterBlur=function(t){Tl(t),y_(e)},n.prototype.leaveBlur=function(t){Ll(t),y_(e)},n.prototype.enterSelect=function(t){Il(t),y_(e)},n.prototype.leaveSelect=function(t){Al(t),y_(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(uh))(e)},b_=function(e){function t(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[Xy]=t}}Object(m["each"])(D_,(function(n,i){e._messageCenter.on(i,(function(n){if(P_[e.group]&&e[Xy]!==Zy){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];Object(m["each"])(N_,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,Zy),Object(m["each"])(r,(function(e){e[Xy]!==Qy&&e.dispatchAction(i)})),t(r,Jy)}}))}))}}(),t}(q),S_=C_.prototype;S_.on=e_("on"),S_.off=e_("off"),S_.one=function(e,t,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(e,r)}Zd("ECharts#one is deprecated."),this.on.call(this,e,r,n)};var k_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function O_(e){0}var M_={},D_={},E_=[],T_=[],L_=[],I_={},A_={},N_={},P_={},R_=+new Date-0,F_=+new Date-0,j_="_echarts_instance_";function B_(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=H_(e);if(r)return r;0}var o=new C_(e,t,n);return o.id="ec_"+R_++,N_[o.id]=o,i&&to(e,j_,o.id),b_(o),Cy.trigger("afterinit",o),o}function z_(e){if(Object(m["isArray"])(e)){var t=e;e=null,Object(m["each"])(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+F_++,Object(m["each"])(t,(function(t){t.group=e}))}return P_[e]=!0,e}function V_(e){P_[e]=!1}var $_=V_;function W_(e){Object(m["isString"])(e)?e=N_[e]:e instanceof C_||(e=H_(e)),e instanceof C_&&!e.isDisposed()&&e.dispose()}function H_(e){return N_[no(e,j_)]}function U_(e){return N_[e]}function q_(e,t){I_[e]=t}function G_(e){Object(m["indexOf"])(T_,e)<0&&T_.push(e)}function K_(e,t){rw(E_,e,t,Ay)}function Y_(e){Z_("afterinit",e)}function X_(e){Z_("afterupdate",e)}function Z_(e,t){Cy.on(e,t)}function Q_(e,t,n){Object(m["isFunction"])(t)&&(n=t,t="");var i=Object(m["isObject"])(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,D_[t]||(Object(m["assert"])(Yy.test(i)&&Yy.test(t)),M_[i]||(M_[i]={action:n,actionInfo:e}),D_[t]=i)}function J_(e,t){fh.register(e,t)}function ew(e){var t=fh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function tw(e,t){rw(L_,e,t,Py,"layout")}function nw(e,t){rw(L_,e,t,jy,"visual")}var iw=[];function rw(e,t,n,i,r){if((Object(m["isFunction"])(t)||Object(m["isObject"])(t))&&(n=t,t=i),!(Object(m["indexOf"])(iw,n)>=0)){iw.push(n);var o=qv.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function ow(e,t){A_[e]=t}function aw(e){Object(hi["e"])({createCanvas:e})}function sw(e,t,n){var i=Oy("registerMap");i&&i(e,t,n)}function lw(e){var t=Oy("getMap");return t&&t(e)}var cw=Wf;nw(Fy,kv),nw(zy,Mv),nw(zy,Dv),nw(Fy,rb),nw(zy,ob),nw(Hy,wy),G_(Hh),K_(Ly,Uh),ow("default",Tv),Q_({type:nl,event:nl,update:nl},m["noop"]),Q_({type:il,event:il,update:il},m["noop"]),Q_({type:rl,event:rl,update:rl},m["noop"]),Q_({type:ol,event:ol,update:ol},m["noop"]),Q_({type:al,event:al,update:al},m["noop"]),q_("light",Kv),q_("dark",eb);var uw={},dw=[],hw={registerPreprocessor:G_,registerProcessor:K_,registerPostInit:Y_,registerPostUpdate:X_,registerUpdateLifecycle:Z_,registerAction:Q_,registerCoordinateSystem:J_,registerLayout:tw,registerVisual:nw,registerTransform:cw,registerLoading:ow,registerMap:sw,registerImpl:ky,PRIORITY:Uy,ComponentModel:md,ComponentView:qp,SeriesModel:Hp,ChartView:fv,registerComponentModel:function(e){md.registerClass(e)},registerComponentView:function(e){qp.registerClass(e)},registerSeriesModel:function(e){Hp.registerClass(e)},registerChartView:function(e){fv.registerClass(e)},registerSubTypeDefaulter:function(e,t){md.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Gi(e,t)}};function fw(e){Object(m["isArray"])(e)?Object(m["each"])(e,(function(e){fw(e)})):Object(m["indexOf"])(dw,e)>=0||(dw.push(e),Object(m["isFunction"])(e)&&(e={install:e}),e.install(hw))}function pw(e){return null==e?0:e.length||1}function gw(e){return e}var mw=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||gw,this._newKeyGetter=i||gw,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=i[o],s=n[a],l=pw(s);if(l>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],c=i[s],u=pw(l),d=pw(c);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,l),i[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,l),i[s]=null;else if(1===u&&1===d)this._update&&this._update(c,l),i[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,l),i[s]=null;else if(u>1)for(var h=0;h<u;h++)this._remove&&this._remove(l[h]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=t[i],o=pw(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);t[i]=null}},e.prototype._initIndexMap=function(e,t,n,i){for(var r=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[i](e[o],o);if(r||(n[o]=a),t){var s=t[a],l=pw(s);0===l?(t[a]=o,r&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}(),vw=mw,bw=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function yw(e,t){var n={},i=n.encode={},r=Object(m["createHashMap"])(),o=[],a=[],s={};Object(m["each"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),l=n.coordDim;if(l){0;var c=n.coordDimIndex;_w(i,l)[c]=t,n.isExtraCoord||(r.set(l,1),xw(n.type)&&(o[0]=t),_w(s,l)[c]=e.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(t)}_d.each((function(e,t){var r=_w(i,t),o=n.otherDims[t];null!=o&&!1!==o&&(r[o]=n.name)}))}));var l=[],c={};r.each((function(e,t){var n=i[t];c[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(m["map"])(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=c;var u=i.label;u&&u.length&&(o=u.slice());var d=i.tooltip;return d&&d.length?a=d.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new bw(s,t),n}function _w(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ww(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function xw(e){return!("ordinal"===e||"time"===e)}var Cw=function(){function e(e){this.otherDims={},null!=e&&m["extend"](this,e)}return e}(),Sw=Cw,kw=Kr(),Ow={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Mw=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Tw(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(m["retrieve2"])(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=cf(this.source),n=!Lw(e),i="",r=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,c=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===o)s=t?u.name:null,l=u.type,c=u.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=t?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:c}),!t||null==s||u&&u.isCalculationCoord||(i+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),i+="$",i+=Ow[l]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,f=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:r,hash:f}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Dw(e){return e instanceof Mw}function Ew(e){for(var t=Object(m["createHashMap"])(),n=0;n<(e||[]).length;n++){var i=e[n],r=Object(m["isObject"])(i)?i.name:i;null!=r&&null==t.get(r)&&t.set(r,n)}return t}function Tw(e){var t=kw(e);return t.dimNameMap||(t.dimNameMap=Ew(e.dimensionsDefine))}function Lw(e){return e>30}var Iw,Aw,Nw,Pw,Rw,Fw,jw,Bw=m["isObject"],zw=m["map"],Vw="undefined"===typeof Int32Array?Array:Int32Array,$w="e\0\0",Ww=-1,Hw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Uw=["_approximateExtent"],qw=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;Dw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},c=0;c<n.length;c++){var u=n[c],d=m["isString"](u)?new Sw({name:u}):u instanceof Sw?u:new Sw(u),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(h),r[h]=d,null!=l[h]&&(s=!0),d.createInvertedIndices&&(a[h]=[]),0===f.itemName&&(this._nameDimIdx=c),0===f.itemId&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=m["createHashMap"]();m["each"](o,(function(e){p.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(m["isNumber"](e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof op&&(i=e),!i){var o=this.dimensions,a=Jh(e)||m["isArrayLike"](e)?new uf(e,o.length):e;i=new op;var s=zw(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(a,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=yw(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=t[s],o&&jw(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==kd&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===wd;if(s&&!i.pure)for(var l=[],c=e;c<t;c++){var u=i.getItem(c,l);if(!this.hasItemOption&&Tr(u)&&(this.hasItemOption=!0),u){var d=u.name;null==r[c]&&null!=d&&(r[c]=zr(d,null));var h=u.id;null==o[c]&&null!=h&&(o[c]=zr(h,null))}}if(this._shouldMakeIdFromName())for(c=e;c<t;c++)jw(this,c);Iw(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Bw(e)?m["extend"](this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Nw(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return Aw(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return m["isArray"](e)?i.getValues(zw(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var i=n[t];return null==i||isNaN(i)?Ww:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){m["isFunction"](e)&&(n=t,t=e,e=[]);var i=n||this,r=zw(Pw(e),this._getStoreDimIndex,this);this._store.each(r,i?m["bind"](t,i):t)},e.prototype.filterSelf=function(e,t,n){m["isFunction"](e)&&(n=t,t=e,e=[]);var i=n||this,r=zw(Pw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?m["bind"](t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=m["keys"](e),r=[];return m["each"](i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){m["isFunction"](e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=zw(Pw(e),this._getStoreDimIndex,this),a=Fw(this);return a._store=this._store.map(o,r?m["bind"](t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=zw(Pw(e),this._getStoreDimIndex,this);this._store.modify(o,r?m["bind"](t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=Fw(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=Fw(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Uc(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new vw(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return Aw(e,t)}),(function(e){return Aw(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Bw(e)?m["extend"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),m["isArray"](r)?r=r.slice():Bw(r)&&(r=m["extend"]({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Bw(t)?m["extend"](i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Bw(e)?m["extend"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?m["extend"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Hs(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){m["each"](this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zw(this.dimensions,this._getDimInfo,this),this.hostModel)),Rw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];m["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(m["slice"](arguments)))})},e.internalField=function(){Iw=function(e){var t=e._invertedIndicesMap;m["each"](t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new Vw(o.categories.length);for(var s=0;s<n.length;s++)n[s]=Ww;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},Nw=function(e,t,n){return zr(e._getCategory(t,n),null)},Aw=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Nw(e,e._idDimIdx,t)),null==n&&(n=$w+t),n},Pw=function(e){return m["isArray"](e)||(e=null!=e?[e]:[]),e},Fw=function(t){var n=new e(t._schema?t._schema:zw(t.dimensions,t._getDimInfo,t),t.hostModel);return Rw(n,t),n},Rw=function(e,t){m["each"](Hw.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,m["each"](Uw,(function(n){e[n]=m["clone"](t[n])})),e._calculationInfo=m["extend"]({},t._calculationInfo)},jw=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=i[t];if(null==a&&null!=r&&(n[t]=a=Nw(e,r,t)),null==s&&null!=o&&(i[t]=s=Nw(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,c=l[a]=(l[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),i[t]=s}}}(),e}(),Gw=qw;function Kw(e,t){return Yw(e,t).dimensions}function Yw(e,t){Jh(e)||(e=tf(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=Object(m["createHashMap"])(),o=[],a=Zw(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Lw(a),l=i===e.dimensionsDefine,c=l?Tw(e):Ew(i),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,a));for(var d=Object(m["createHashMap"])(u),h=new Zf(a),f=0;f<h.length;f++)h[f]=-1;function p(e){var t=h[e];if(t<0){var n=i[e],r=Object(m["isObject"])(n)?n:{name:n},a=new Sw,s=r.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=r.type&&(a.type=r.type),null!=r.displayName&&(a.displayName=r.displayName);var l=o.length;return h[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(f=0;f<a;f++)p(f);d.each((function(e,t){var n=Or(e).slice();if(1===n.length&&!Object(m["isString"])(n[0])&&n[0]<0)d.set(t,!1);else{var i=d.set(t,[]);Object(m["each"])(n,(function(e,n){var r=Object(m["isString"])(e)?c.get(e):e;null!=r&&r<a&&(i[n]=r,v(p(r),t,n))}))}}));var g=0;function v(e,t,n){null!=_d.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,r.set(t,!0))}Object(m["each"])(n,(function(e){var t,n,i,r;if(Object(m["isString"])(e))t=e,r={};else{r=e,t=r.name;var o=r.ordinalMeta;r.ordinalMeta=null,r=Object(m["extend"])({},r),r.ordinalMeta=o,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=d.get(t);if(!1!==s){if(s=Or(s),!s.length)for(var c=0;c<(n&&n.length||1);c++){while(g<a&&null!=p(g).coordDim)g++;g<a&&s.push(g++)}Object(m["each"])(s,(function(e,o){var a=p(e);if(l&&null!=r.type&&(a.type=r.type),v(Object(m["defaults"])(a,r),t,o),null==a.name&&n){var s=n[o];!Object(m["isObject"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&Object(m["defaults"])(a.otherDims,i)}))}}));var b=t.generateCoord,y=t.generateCoordCount,_=null!=y;y=b?y||1:0;var w=b||"value";function x(e){null==e.name&&(e.name=e.coordDim)}if(s)Object(m["each"])(o,(function(e){x(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var C=0;C<a;C++){var S=p(C),k=S.coordDim;null==k&&(S.coordDim=Qw(w,r,_),S.coordDimIndex=0,(!b||y<=0)&&(S.isExtraCoord=!0),y--),x(S),null!=S.type||Rd(e,C)!==Ed.Must&&(!S.isExtraCoord||null==S.otherDims.itemName&&null==S.otherDims.seriesName)||(S.type="ordinal")}return Xw(o),new Mw({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Xw(e){for(var t=Object(m["createHashMap"])(),n=0;n<e.length;n++){var i=e[n],r=i.name,o=t.get(r)||0;o>0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function Zw(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Object(m["each"])(t,(function(e){var t;Object(m["isObject"])(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function Qw(e,t,n){if(n||t.hasKey(e)){var i=0;while(t.hasKey(e+i))i++;e+=i}return t.set(e,!0),e}var Jw=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(m["createHashMap"])(),this.categoryAxisMap=Object(m["createHashMap"])(),this.coordSysName=e}return e}();function ex(e){var t=e.get("coordinateSystem"),n=new Jw(t),i=tx[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var tx={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Qr).models[0],o=e.getReferringComponents("yAxis",Qr).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),nx(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),nx(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Qr).models[0];t.coordSysDims=["single"],n.set("single",r),nx(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Qr).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),nx(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),nx(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(m["each"])(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),nx(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function nx(e){return"category"===e.get("type")}function ix(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;rx(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,c,u,d,h=!(!e||!e.get("stack"));if(Object(m["each"])(i,(function(e,t){Object(m["isString"])(e)&&(i[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||a||l||(a=!0),c){u="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var f=c.coordDim,p=c.type,g=0;Object(m["each"])(i,(function(e){e.coordDim===f&&g++}));var v={name:u,coordDim:f,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},b={name:d,coordDim:d,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,p),b.storeDimIndex=o.ensureCalculationDimension(u,p)),r.appendCalculationDimension(v),r.appendCalculationDimension(b)):(i.push(v),i.push(b))}return{stackedDimension:c&&c.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:u}}function rx(e){return!Dw(e.schema)}function ox(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ax(e,t){return ox(e,t)?e.getCalculationInfo("stackResultDimension"):t}function sx(e,t){var n,i=e.get("coordinateSystem"),r=fh.get(i);return t&&t.coordSysDims&&(n=m["map"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=ww(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function lx(e,t,n){var i,r;return n&&m["each"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function cx(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=tf(e)):(i=r.getSource(),o=i.sourceFormat===wd);var a=ex(t),s=sx(t,a),l=n.useEncodeDefaulter,c=m["isFunction"](l)?l:l?m["curry"](Id,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},d=Yw(i,u),h=lx(d.dimensions,n.createInvertedIndices,a),f=o?null:r.getSharedDataStore(d),p=ix(t,{schema:d,store:f}),g=new Gw(d,t);g.setCalculationInfo(p);var v=null!=h&&ux(i)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return g.hasItemOption=!1,g.initData(o?i:f,null,v),g}function ux(e){if(e.sourceFormat===wd){var t=dx(e.data||[]);return!m["isArray"](Er(t))}}function dx(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var hx=cx,fx=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();_o(fx);var px=fx,gx=0,mx=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gx}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&Object(m["map"])(i,vx);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(m["isString"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(m["createHashMap"])(this.categories))},e}();function vx(e){return Object(m["isObject"])(e)&&null!=e.value?e.value:e+""}var bx=mx;function yx(e){return"interval"===e.type||"log"===e.type}function _x(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=gr(o/t,!0);null!=n&&a<n&&(a=r.interval=n),null!=i&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=xx(a),l=r.niceTickExtent=[er(Math.ceil(e[0]/a)*a,s),er(Math.floor(e[1]/a)*a,s)];return Sx(l,e),r}function wx(e){var t=Math.pow(10,pr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,er(n*t)}function xx(e){return nr(e)+2}function Cx(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Sx(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Cx(e,0,t),Cx(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function kx(e,t){return e>=t[0]&&e<=t[1]}function Ox(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Mx(e,t){return e*(t[1]-t[0])+t[0]}var Dx=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new bx({})),Object(m["isArray"])(i)&&(i=new bx({categories:Object(m["map"])(i,(function(e){return Object(m["isObject"])(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return p(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(m["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),kx(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ox(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Mx(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r<a;++r){var s=t[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(px);px.registerClass(Dx);var Ex=Dx,Tx=er,Lx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return p(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return kx(e,this._extent)},t.prototype.normalize=function(e){return Ox(e,this._extent)},t.prototype.scale=function(e){return Mx(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=xx(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<i[0]&&(e?o.push({value:Tx(i[0]-t,r)}):o.push({value:n[0]}));var s=i[0];while(s<=i[1]){if(o.push({value:s}),s=Tx(s+t,r),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:Tx(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){var o=t[r],a=t[r-1],s=0,l=[],c=o.value-a.value,u=c/e;while(s<e-1){var d=Tx(a.value+(s+1)*u);d>i[0]&&d<i[1]&&l.push(d),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=nr(e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=Tx(e.value,n,!0);return Vu(i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=_x(i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=Tx(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=Tx(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(px);px.registerClass(Lx);var Ix=Lx,Ax="undefined"!==typeof Float32Array,Nx=Ax?Float32Array:Array;function Px(e){return Object(m["isArray"])(e)?Ax?new Float32Array(e):e:new Nx(e)}var Rx="__ec_stack_";function Fx(e){return e.get("stack")||Rx+e.seriesIndex}function jx(e){return e.dim+e.index}function Bx(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o<e.count;o++)t.push(Object(m["defaults"])({bandWidth:r,axisKey:i,stackId:Rx+o},e));var a=Wx(t),s=[];for(o=0;o<e.count;o++){var l=a[i][Rx+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function zx(e,t){var n=[];return t.eachSeriesByType(e,(function(e){Gx(e)&&n.push(e)})),n}function Vx(e){var t={};Object(m["each"])(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),o=i.dim+"_"+i.index,a=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getStore(),l=0,c=s.count();l<c;++l){var u=s.get(a,l);t[o]?t[o].push(u):t[o]=[u]}}));var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];if(r){r.sort((function(e,t){return e-t}));for(var o=null,a=1;a<r.length;++a){var s=r[a]-r[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function $x(e){var t=Vx(e),n=[];return Object(m["each"])(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],c=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),d=Math.abs(u[1]-u[0]);i=l?c/d*l:c}else{var h=e.getData();i=Math.abs(a[1]-a[0])/h.count()}var f=Ji(e.get("barWidth"),i),p=Ji(e.get("barMaxWidth"),i),g=Ji(e.get("barMinWidth")||(Kx(e)?.5:1),i),m=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:f,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:v,axisKey:jx(o),stackId:Fx(e)})})),Wx(n)}function Wx(e){var t={};Object(m["each"])(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var u=e.barMinWidth;u&&(a[s].minWidth=u);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return Object(m["each"])(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(m["keys"])(i).length;o=Math.max(35-4*a,15)+"%"}var s=Ji(o,r),l=Ji(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),Object(m["each"])(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,c-=i+l*i,u--}else{var i=d;t&&t<i&&(i=Math.min(t,c)),n&&n>i&&(i=n),i!==d&&(e.width=i,c-=i+l*i,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var h,f=0;Object(m["each"])(i,(function(e,t){e.width||(e.width=d),h=e,f+=e.width*(1+l)})),h&&(f-=h.width*l);var p=-f/2;Object(m["each"])(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:p,width:e.width},p+=e.width*(1+l)}))})),n}function Hx(e,t,n){if(e&&t){var i=e[jx(t)];return null!=i&&null!=n?i[Fx(n)]:i}}function Ux(e,t){var n=zx(e,t),i=$x(n);Object(m["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=Fx(e),a=i[jx(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function qx(e){return{seriesType:e,plan:Gp(),reset:function(e){if(Gx(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),c=t.getCalculationInfo("stackResultDimension"),u=ox(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),h=Yx(i,r),f=Kx(e),p=e.get("barMinHeight")||0,g=c&&t.getDimensionIndex(c),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=f&&Px(3*r),c=f&&s&&Px(3*r),b=f&&Px(r),y=n.master.getRect(),_=d?y.width:y.height,w=t.getStore(),x=0;while(null!=(i=e.next())){var C=w.get(u?g:o,i),S=w.get(a,i),k=h,O=void 0;u&&(O=+C-w.get(o,i));var M=void 0,D=void 0,E=void 0,T=void 0;if(d){var L=n.dataToPoint([C,S]);if(u){var I=n.dataToPoint([O,S]);k=I[0]}M=k,D=L[1]+v,E=L[0]-k,T=m,Math.abs(E)<p&&(E=(E<0?-1:1)*p)}else{L=n.dataToPoint([S,C]);if(u){I=n.dataToPoint([S,O]);k=I[1]}M=L[0]+v,D=k,E=m,T=L[1]-k,Math.abs(T)<p&&(T=(T<=0?-1:1)*p)}f?(l[x]=M,l[x+1]=D,l[x+2]=d?E:T,c&&(c[x]=d?y.x:M,c[x+1]=d?D:y.y,c[x+2]=_),b[i]=i):t.setItemLayout(i,{x:M,y:D,width:E,height:T}),x+=3}f&&t.setLayout({largePoints:l,largeDataIndices:b,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Gx(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function Kx(e){return e.pipelineContext&&e.pipelineContext.large}function Yx(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}var Xx=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},Zx=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return p(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Cu(e.value,mu[xu(_u(this._minLevelUnit))]||mu.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return Su(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=aC(this._minLevelUnit,this._approxInterval,i,t);return n=n.concat(r),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=hu,t[1]+=hu),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-hu}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Qx.length,a=Math.min(Xx(Qx,this._approxInterval,0,o),o-1);this._interval=Qx[a][1],this._minLevelUnit=Qx[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(m["isNumber"])(e)?e:+hr(e)},t.prototype.contain=function(e){return kx(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ox(this.parse(e),this._extent)},t.prototype.scale=function(e){return Mx(e,this._extent)},t.type="time",t}(Ix),Qx=[["second",cu],["minute",uu],["hour",du],["quarter-day",6*du],["half-day",12*du],["day",1.2*hu],["half-week",3.5*hu],["week",7*hu],["month",31*hu],["quarter",95*hu],["half-year",fu/2],["year",fu]];function Jx(e,t,n,i){var r=hr(t),o=hr(n),a=function(e){return Ou(r,e,i)===Ou(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},u=function(){return c()&&a("hour")},d=function(){return u()&&a("minute")},h=function(){return d()&&a("second")},f=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return u();case"minute":return d();case"second":return h();case"millisecond":return f()}}function eC(e,t){return e/=hu,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function tC(e){var t=30*hu;return e/=t,e>6?6:e>3?3:e>2?2:1}function nC(e){return e/=du,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function iC(e,t){return e/=t?uu:cu,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rC(e){return gr(e,!0)}function oC(e,t,n){var i=new Date(e);switch(_u(t)){case"year":case"month":i[Pu(n)](0);case"day":i[Ru(n)](1);case"hour":i[Fu(n)](0);case"minute":i[ju(n)](0);case"second":i[Bu(n)](0),i[zu(n)](0)}return i.getTime()}function aC(e,t,n,i){var r=1e4,o=bu,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),c=t,u=l[r]();while(c<n&&c<=i[1])s.push({value:c}),u+=e,l[o](u),c=l.getTime();s.push({value:c,notAdd:!0})}function l(e,r,o){var a=[],l=!r.length;if(!Jx(_u(e),i[0],i[1],n)){l&&(r=[{value:oC(new Date(i[0]),e,n)},{value:i[1]}]);for(var c=0;c<r.length-1;c++){var u=r[c].value,d=r[c+1].value;if(u!==d){var h=void 0,f=void 0,p=void 0,g=!1;switch(e){case"year":h=Math.max(1,Math.round(t/hu/365)),f=Mu(n),p=Nu(n);break;case"half-year":case"quarter":case"month":h=tC(t),f=Du(n),p=Pu(n);break;case"week":case"half-week":case"day":h=eC(t,31),f=Eu(n),p=Ru(n),g=!0;break;case"half-day":case"quarter-day":case"hour":h=nC(t),f=Tu(n),p=Fu(n);break;case"minute":h=iC(t,!0),f=Lu(n),p=ju(n);break;case"second":h=iC(t,!1),f=Iu(n),p=Bu(n);break;case"millisecond":h=rC(t),f=Au(n),p=zu(n);break}s(h,u,d,f,p,g,a),"year"===e&&o.length>1&&0===c&&o.unshift({value:o[0].value-h})}}for(c=0;c<a.length;c++)o.push(a[c]);return a}}for(var c=[],u=[],d=0,h=0,f=0;f<o.length&&a++<r;++f){var p=_u(o[f]);if(wu(o[f])){l(o[f],c[c.length-1]||[],u);var g=o[f+1]?_u(o[f+1]):null;if(p!==g){if(u.length){h=d,u.sort((function(e,t){return e.value-t.value}));for(var v=[],b=0;b<u.length;++b){var y=u[b].value;0!==b&&u[b-1].value===y||(v.push(u[b]),y>=i[0]&&y<=i[1]&&d++)}var _=(i[1]-i[0])/t;if(d>1.5*_&&h>_/1.5)break;if(c.push(v),d>_||e===o[f])break}u=[]}}}var w=Object(m["filter"])(Object(m["map"])(c,(function(e){return Object(m["filter"])(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),x=[],C=w.length-1;for(f=0;f<w.length;++f)for(var S=w[f],k=0;k<S.length;++k)x.push({value:S[k].value,level:C-f});x.sort((function(e,t){return e.value-t.value}));var O=[];for(f=0;f<x.length;++f)0!==f&&x[f].value===x[f-1].value||O.push(x[f]);return O}px.registerClass(Zx);var sC=Zx,lC=px.prototype,cC=Ix.prototype,uC=er,dC=Math.floor,hC=Math.ceil,fC=Math.pow,pC=Math.log,gC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ix,t._interval=0,t}return p(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,i=t.getExtent(),r=cC.getTicks.call(this,e);return m["map"](r,(function(e){var t=e.value,r=er(fC(this.base,t));return r=t===n[0]&&this._fixMin?vC(r,i[0]):r,r=t===n[1]&&this._fixMax?vC(r,i[1]):r,{value:r}}),this)},t.prototype.setExtent=function(e,t){var n=pC(this.base);e=pC(Math.max(0,e))/n,t=pC(Math.max(0,t))/n,cC.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=lC.getExtent.call(this);t[0]=fC(e,t[0]),t[1]=fC(e,t[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(t[0]=vC(t[0],i[0])),this._fixMax&&(t[1]=vC(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=pC(e[0])/pC(t),e[1]=pC(e[1])/pC(t),lC.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=fr(n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[er(hC(t[0]/i)*i),er(dC(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){cC.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=pC(e)/pC(this.base),kx(e,this._extent)},t.prototype.normalize=function(e){return e=pC(e)/pC(this.base),Ox(e,this._extent)},t.prototype.scale=function(e){return e=Mx(e,this._extent),fC(this.base,e)},t.type="log",t}(px),mC=gC.prototype;function vC(e,t){return uC(e,nr(t))}mC.getMinorTicks=cC.getMinorTicks,mC.getLabel=cC.getLabel,px.registerClass(gC);var bC=gC,yC=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);Object(m["isFunction"])(r)?this._modelMinNum=CC(e,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=CC(e,r));var o=this._modelMaxRaw=t.get("max",!0);if(Object(m["isFunction"])(o)?this._modelMaxNum=CC(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=CC(e,o)),i)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=Object(m["isArray"])(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[_i(s[0],1),_i(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,c=null!=s;null==a&&(a=e?i?0:NaN:t-r[0]*o),null==s&&(s=e?i?i-1:NaN:n+r[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var u=Object(m["eqNaN"])(a)||Object(m["eqNaN"])(s)||e&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!c&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,c=!0),{min:a,max:s,minFixed:l,maxFixed:c,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[wC[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=_C[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),_C={min:"_determinedMin",max:"_determinedMax"},wC={min:"_dataMin",max:"_dataMax"};function xC(e,t,n){var i=e.rawExtentInfo;return i||(i=new yC(e,t,n),e.rawExtentInfo=i,i)}function CC(e,t){return null==t?null:Object(m["eqNaN"])(t)?NaN:e.parse(t)}function SC(e,t){var n=e.type,i=xC(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=zx("bar",a),l=!1;if(m["each"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var c=$x(s),u=kC(r,o,t,c);r=u.min,o=u.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function kC(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Hx(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;m["each"](a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;m["each"](a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var c=s+l,u=t-e,d=1-(s+l)/o,h=u/d-u;return t+=h*(l/c),e-=h*(s/c),{min:e,max:t}}function OC(e,t){var n=t,i=SC(e,n),r=i.extent,o=n.get("splitNumber");e instanceof bC&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function MC(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ex({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new sC({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(px.getClass(t)||Ix)}}function DC(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function EC(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):m["isString"](t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):m["isFunction"](t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(TC(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function TC(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function LC(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof Ex?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=EC(e),c=1;r>40&&(c=Math.ceil(r/40));for(var u=0;u<r;u+=c){var d=i?i[u]:{value:o[0]+u},h=l(d,u),f=s.getTextRect(h),p=IC(f,s.get("rotate")||0);a?a.union(p):a=p}return a}}function IC(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),s=new $e(e.x,e.y,o,a);return s}function AC(e){var t=e.get("interval");return null==t?"auto":t}function NC(e){return"category"===e.type&&0===AC(e.getLabelModel())}function PC(e,t){var n={};return m["each"](e.mapDimensionsAll(t),(function(t){n[ax(e,t)]=!0})),m["keys"](n)}function RC(e,t,n){t&&m["each"](PC(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}var FC=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}();function jC(e){return hx(null,e)}var BC={isDimensionStacked:ox,enableDataStack:ix,getStackedDimension:ax};function zC(e,t){var n=t;t instanceof Uc||(n=new Uc(t));var i=MC(n);return i.setExtent(e[0],e[1]),OC(i,n),i}function VC(e){m["mixin"](e,FC)}function $C(e,t){return t=t||{},wc(e,null,null,"normal"!==t.state)}var WC=1e-8;function HC(e,t){return Math.abs(e-t)<WC}function UC(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;o<e.length;o++){var a=e[o];i+=Wa(r[0],r[1],a[0],a[1],t,n),r=a}var s=e[0];return HC(r[0],s[0])&&HC(r[1],s[1])||(i+=Wa(r[0],r[1],s[0],s[1],t,n)),0!==i}var qC=[];function GC(e,t){for(var n=0;n<e.length;n++)B(e[n],e[n],t)}function KC(e,t,n,i){for(var r=0;r<e.length;r++){var o=e[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(z(t,t,o),V(n,n,o))}}function YC(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],a=e[r-1][1],s=0;s<r;s++){var l=e[s][0],c=e[s][1],u=o*c-l*a;t+=u,n+=(o+l)*u,i+=(a+c)*u,o=l,a=c}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var XC=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),ZC=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),QC=function(){function e(e){this.type="linestring",this.points=e}return e}(),JC=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return p(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,a=o&&o.length;a>n&&(e=r,n=a)}if(e)return YC(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(m["each"])(r,(function(t){"polygon"===t.type?KC(t.exterior,n,i,e):Object(m["each"])(t.points,(function(t){KC(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new $e(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(UC(a,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(UC(s[l],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=r.width/r.height;n?i||(i=n/o):n=o*i;for(var a=new $e(e,t,n,i),s=r.calculateTransform(a),l=this.geometries,c=0;c<l.length;c++){var u=l[c];"polygon"===u.type?(GC(u.exterior,s),Object(m["each"])(u.interiors,(function(e){GC(e,s)}))):Object(m["each"])(u.points,(function(e){GC(e,s)}))}r=this._rect,r.copy(a),this._center=[r.x+r.width/2,r.y+r.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(XC),eS=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return p(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=Ce(qC),r=e;while(r&&!r.isGeoSVGGraphicRoot)ke(i,r.getLocalTransform(),i),r=r.parent;return Ee(i,i),B(n,n,i),n},t}(XC);function tS(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var i=t.features;return m["each"](i,(function(e){var t=e.geometry,i=t.encodeOffsets,r=t.coordinates;if(i)switch(t.type){case"LineString":t.coordinates=iS(r,i,n);break;case"Polygon":nS(r,i,n);break;case"MultiLineString":nS(r,i,n);break;case"MultiPolygon":m["each"](r,(function(e,t){return nS(e,i[t],n)}))}})),t.UTF8Encoding=!1,t}function nS(e,t,n){for(var i=0;i<e.length;i++)e[i]=iS(e[i],t[i],n)}function iS(e,t,n){for(var i=[],r=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,l=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function rS(e,t){return e=tS(e),m["map"](m["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new ZC(o[0],o.slice(1)));break;case"MultiPolygon":m["each"](i.coordinates,(function(e){e[0]&&r.push(new ZC(e[0],e.slice(1)))}));break;case"LineString":r.push(new QC([i.coordinates]));break;case"MultiLineString":r.push(new QC(i.coordinates))}var a=new JC(n[t||"name"],r,n.cp);return a.properties=n,a}))}function oS(e,t,n,i,r,o,a,s){var l=new $s({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var aS=Kr();function sS(e){return"category"===e.type?cS(e):hS(e)}function lS(e,t){return"category"===e.type?dS(e,t):{ticks:m["map"](e.scale.getTicks(),(function(e){return e.value}))}}function cS(e){var t=e.getLabelModel(),n=uS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function uS(e,t){var n,i,r=fS(e,"labels"),o=AC(t),a=pS(r,o);return a||(m["isFunction"](o)?n=_S(e,o):(i="auto"===o?mS(e):o,n=yS(e,i)),gS(r,o,{labels:n,labelCategoryInterval:i}))}function dS(e,t){var n,i,r=fS(e,"ticks"),o=AC(t),a=pS(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),m["isFunction"](o))n=_S(e,o,!0);else if("auto"===o){var s=uS(e,e.getLabelModel());i=s.labelCategoryInterval,n=m["map"](s.labels,(function(e){return e.tickValue}))}else i=o,n=yS(e,i,!0);return gS(r,o,{ticks:n,tickCategoryInterval:i})}function hS(e){var t=e.scale.getTicks(),n=EC(e);return{labels:m["map"](t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function fS(e,t){return aS(e)[t]||(aS(e)[t]=[])}function pS(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function gS(e,t,n){return e.push({key:t,value:n}),n}function mS(e){var t=aS(e).autoInterval;return null!=t?t:aS(e).autoInterval=e.calculateCategoryInterval()}function vS(e){var t=bS(e),n=EC(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),u=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),h=0,f=0;l<=o[1];l+=s){var p=0,g=0,m=mi(n({value:l}),t.font,"center","top");p=1.3*m.width,g=1.3*m.height,h=Math.max(h,p,7),f=Math.max(f,g,7)}var v=h/u,b=f/d;isNaN(v)&&(v=1/0),isNaN(b)&&(b=1/0);var y=Math.max(0,Math.floor(Math.min(v,b))),_=aS(e.model),w=e.getExtent(),x=_.lastAutoInterval,C=_.lastTickCount;return null!=x&&null!=C&&Math.abs(x-y)<=1&&Math.abs(C-a)<=1&&x>y&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?y=x:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=w[0],_.axisExtent1=w[1]),y}function bS(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function yS(e,t,n){var i=EC(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],u=r.count();0!==c&&l>1&&u/l>2&&(c=Math.round(Math.ceil(c/l)*l));var d=NC(e),h=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;h&&c!==o[0]&&g(o[0]);for(var p=c;p<=o[1];p+=l)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return f&&p-l!==o[1]&&g(o[1]),s}function _S(e,t,n){var i=e.scale,r=EC(e),o=[];return m["each"](i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var wS=[0,1],xS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return rr(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),CS(n,i.count())),Qi(e,wS,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),CS(n,i.count()));var r=Qi(e,n,wS,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=lS(this,t),i=n.ticks,r=Object(m["map"])(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return SS(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=Object(m["map"])(n,(function(e){return Object(m["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return sS(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return vS(this)},e}();function CS(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function SS(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,c=(t[r-1].coord-t[0].coord)/l;Object(m["each"])(t,(function(e){e.coord-=c/2}));var u=e.scale.getExtent();a=1+u[1]-t[r-1].tickValue,o={coord:t[r-1].coord+c*a},t.push(o)}var d=s[0]>s[1];h(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]}),h(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&h(o.coord,s[1])&&t.push({coord:s[1]})}function h(e,t){return e=er(e),t=er(t),d?e>t:e<t}}var kS=xS;function OS(e){var t=md.extend(e);return md.registerClass(t),t}function MS(e){var t=qp.extend(e);return qp.registerClass(t),t}function DS(e){var t=Hp.extend(e);return Hp.registerClass(t),t}function ES(e){var t=fv.extend(e);return fv.registerClass(t),t}var TS=2*Math.PI,LS=Pa.CMD,IS=["top","right","bottom","left"];function AS(e,t,n,i,r){var o=n.width,a=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+a/2),r.set(1,0);break}}function NS(e,t,n,i,r,o,a,s,l){a-=e,s-=t;var c=Math.sqrt(a*a+s*s);a/=c,s/=c;var u=a*n+e,d=s*n+t;if(Math.abs(i-r)%TS<1e-4)return l[0]=u,l[1]=d,c-n;if(o){var h=i;i=za(r),r=za(h)}else i=za(i),r=za(r);i>r&&(r+=TS);var f=Math.atan2(s,a);if(f<0&&(f+=TS),f>=i&&f<=r||f+TS>=i&&f+TS<=r)return l[0]=u,l[1]=d,c-n;var p=n*Math.cos(i)+e,g=n*Math.sin(i)+t,m=n*Math.cos(r)+e,v=n*Math.sin(r)+t,b=(p-a)*(p-a)+(g-s)*(g-s),y=(m-a)*(m-a)+(v-s)*(v-s);return b<y?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=v,Math.sqrt(y))}function PS(e,t,n,i,r,o,a,s){var l=r-e,c=o-t,u=n-e,d=i-t,h=Math.sqrt(u*u+d*d);u/=h,d/=h;var f=l*u+c*d,p=f/h;s&&(p=Math.min(Math.max(p,0),1)),p*=h;var g=a[0]=e+p*u,m=a[1]=t+p*d;return Math.sqrt((g-r)*(g-r)+(m-o)*(m-o))}function RS(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,c=a[0]=Math.min(Math.max(r,e),s),u=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var FS=[];function jS(e,t,n){var i=RS(t.x,t.y,t.width,t.height,e.x,e.y,FS);return n.set(FS[0],FS[1]),i}function BS(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,c=1/0,u=t.data,d=e.x,h=e.y,f=0;f<u.length;){var p=u[f++];1===f&&(o=u[f],a=u[f+1],s=o,l=a);var g=c;switch(p){case LS.M:s=u[f++],l=u[f++],o=s,a=l;break;case LS.L:g=PS(o,a,u[f],u[f+1],d,h,FS,!0),o=u[f++],a=u[f++];break;case LS.C:g=Bt(o,a,u[f++],u[f++],u[f++],u[f++],u[f],u[f+1],d,h,FS),o=u[f++],a=u[f++];break;case LS.Q:g=qt(o,a,u[f++],u[f++],u[f],u[f+1],d,h,FS),o=u[f++],a=u[f++];break;case LS.A:var m=u[f++],v=u[f++],b=u[f++],y=u[f++],_=u[f++],w=u[f++];f+=1;var x=!!(1-u[f++]);i=Math.cos(_)*b+m,r=Math.sin(_)*y+v,f<=1&&(s=i,l=r);var C=(d-m)*y/b+m;g=NS(m,v,y,_,_+w,x,C,h,FS),o=Math.cos(_+w)*b+m,a=Math.sin(_+w)*y+v;break;case LS.R:s=o=u[f++],l=a=u[f++];var S=u[f++],k=u[f++];g=RS(s,l,S,k,d,h,FS);break;case LS.Z:g=PS(o,a,s,l,d,h,FS,!0),o=s,a=l;break}g<c&&(c=g,n.set(FS[0],FS[1]))}return c}var zS=new Ie,VS=new Ie,$S=new Ie,WS=new Ie,HS=new Ie;function US(e,t){if(e){var n=e.getTextGuideLine(),i=e.getTextContent();if(i&&n){var r=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||IS,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,c=r.anchor,u=e.getComputedTransform(),d=u&&Ee([],u),h=t.get("length2")||0;c&&$S.copy(c);for(var f=0;f<a.length;f++){var p=a[f];AS(p,0,s,zS,WS),Ie.scaleAndAdd(VS,zS,WS,h),VS.transform(d);var g=e.getBoundingRect(),m=c?c.distance(VS):e instanceof ss?BS(VS,e.path,$S):jS(VS,g,$S);m<l&&(l=m,VS.transform(u),$S.transform(u),$S.toArray(o[0]),VS.toArray(o[1]),zS.toArray(o[2]))}KS(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var qS=[],GS=new Ie;function KS(e,t){if(t<=180&&t>0){t=t/180*Math.PI,zS.fromArray(e[0]),VS.fromArray(e[1]),$S.fromArray(e[2]),Ie.sub(WS,zS,VS),Ie.sub(HS,$S,VS);var n=WS.len(),i=HS.len();if(!(n<.001||i<.001)){WS.scale(1/n),HS.scale(1/i);var r=WS.dot(HS),o=Math.cos(t);if(o<r){var a=PS(VS.x,VS.y,$S.x,$S.y,zS.x,zS.y,qS,!1);GS.fromArray(qS),GS.scaleAndAdd(HS,a/Math.tan(Math.PI-t));var s=$S.x!==VS.x?(GS.x-VS.x)/($S.x-VS.x):(GS.y-VS.y)/($S.y-VS.y);if(isNaN(s))return;s<0?Ie.copy(GS,VS):s>1&&Ie.copy(GS,$S),GS.toArray(e[1])}}}}function YS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,zS.fromArray(e[0]),VS.fromArray(e[1]),$S.fromArray(e[2]),Ie.sub(WS,VS,zS),Ie.sub(HS,$S,VS);var i=WS.len(),r=HS.len();if(!(i<.001||r<.001)){WS.scale(1/i),HS.scale(1/r);var o=WS.dot(t),a=Math.cos(n);if(o<a){var s=PS(VS.x,VS.y,$S.x,$S.y,zS.x,zS.y,qS,!1);GS.fromArray(qS);var l=Math.PI/2,c=Math.acos(HS.dot(t)),u=l+c-n;if(u>=l)Ie.copy(GS,$S);else{GS.scaleAndAdd(HS,s/Math.tan(Math.PI/2-u));var d=$S.x!==VS.x?(GS.x-VS.x)/($S.x-VS.x):(GS.y-VS.y)/($S.y-VS.y);if(isNaN(d))return;d<0?Ie.copy(GS,VS):d>1&&Ie.copy(GS,$S)}GS.toArray(e[1])}}}}function XS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function ZS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=N(i[0],i[1]),o=N(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=j([],i[1],i[0],a/r),l=j([],i[1],i[2],a/o),c=j([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function QS(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<Js.length;l++){var c=Js[l],u=t[c],d="normal"===c;if(u){var h=u.get("show"),f=d?s:Object(m["retrieve2"])(r.states[c]&&r.states[c].ignore,s);if(f||!Object(m["retrieve2"])(h,a)){var p=d?i:i&&i.states[c];p&&(p.ignore=!0);continue}i||(i=new Zg,e.setTextGuideLine(i),d||!s&&a||XS(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),XS(i,!1,c,u)}}if(i){Object(m["defaults"])(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=ZS}}else i&&e.removeTextGuideLine()}function JS(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<Qs.length;i++){var r=Qs[i];n[r]=e.getModel([r,t])}return n}function ek(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var u=s?new Cm(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:c,localRect:a,obb:u,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function tk(e,t,n,i,r,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,c=!1,u=[],d=0,h=0;h<a;h++){var f=e[h],p=f.rect;s=p[t]-l,s<0&&(p[t]-=s,f.label[t]-=s,c=!0);var g=Math.max(-s,0);u.push(g),d+=g,l=p[t]+p[n]}d>0&&o&&x(-d/a,0,a);var m,v,b=e[0],y=e[a-1];return _(),m<0&&C(-m,.8),v<0&&C(v,.8),_(),w(m,v,1),w(v,m,-1),_(),m<0&&S(-m),v<0&&S(v),c}function _(){m=b.rect[t]-i,v=r-y.rect[t]-y.rect[n]}function w(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){x(i*n,0,a);var r=i+e;r<0&&C(-r*n,1)}else C(-e*n,1)}}function x(n,i,r){0!==n&&(c=!0);for(var o=i;o<r;o++){var a=e[o],s=a.rect;s[t]+=n,a.label[t]+=n}}function C(i,r){for(var o=[],s=0,l=1;l<a;l++){var c=e[l-1].rect,u=Math.max(e[l].rect[t]-c[t]-c[n],0);o.push(u),s+=u}if(s){var d=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){var h=o[l]*d;x(h,0,l+1)}else for(l=a-1;l>0;l--){h=o[l-1]*d;x(-h,l,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i<a-1;i++)if(t>0?x(n,0,i+1):x(-n,a-i-1,a),e-=n,e<=0)return}}function nk(e,t,n,i){return tk(e,"x","width",t,n,i)}function ik(e,t,n,i){return tk(e,"y","height",t,n,i)}function rk(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new $e(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r<e.length;r++){var o=e[r],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,u=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=o.obb,h=!1,f=0;f<t.length;f++){var p=t[f];if(n.intersect(p.rect)){if(a&&p.axisAligned){h=!0;break}if(p.obb||(p.obb=new Cm(p.localRect,p.transform)),d||(d=new Cm(s,l)),d.intersect(p.obb)){h=!0;break}}}h?(i(c),u&&i(u)):(c.attr("ignore",o.defaultAttr.ignore),u&&u.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function ok(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function ak(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:ok(i&&i.shape.points)}}var sk=["align","verticalAlign","width","height","fontSize"],lk=new ui,ck=Kr(),uk=Kr();function dk(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var hk=["x","y","rotation"],fk=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,r){var o=i.style,a=i.__hostTarget,s=a.textConfig||{},l=i.getComputedTransform(),c=i.getBoundingRect().plain();$e.applyTransform(c,c,l),l?lk.setLocalTransform(l):(lk.x=lk.y=lk.rotation=lk.originX=lk.originY=0,lk.scaleX=lk.scaleY=1);var u,d=i.__hostTarget;if(d){u=d.getBoundingRect().plain();var h=d.getComputedTransform();$e.applyTransform(u,u,h)}var f=u&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:lk.x,y:lk.y,scaleX:lk.scaleX,scaleY:lk.scaleY,rotation:lk.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Object(m["isFunction"])(i)||Object(m["keys"])(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=Ws(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){US(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,s=a.__hostTarget,l=o.defaultAttr,c=void 0;c=Object(m["isFunction"])(o.layoutOption)?o.layoutOption(ak(o,s)):o.layoutOption,c=c||{},o.computedLayoutOption=c;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:l.attachedPos,rotation:null!=c.rotate?c.rotate*u:l.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(null!=c.x?(a.x=Ji(c.x,t),a.setStyle("x",0),d=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=c.y?(a.y=Ji(c.y,n),a.setStyle("y",0),d=!0):(a.y=l.y,a.setStyle("y",l.style.y)),c.labelLinePoints){var h=s.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var f=ck(a);f.needsUpdateLabelLine=d,a.rotation=null!=c.rotate?c.rotate*u:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<sk.length;p++){var g=sk[p];a.setStyle(g,null!=c[g]?c[g]:l.style[g])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex){var b=o.seriesModel.getData(o.dataType);v=b.getItemModel(o.dataIndex)}a.on("drag",i(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=ek(this._labelList),r=Object(m["filter"])(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=Object(m["filter"])(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));nk(r,0,t),ik(o,0,n);var a=Object(m["filter"])(i,(function(e){return e.layoutOption.hideOverlap}));rk(a)},e.prototype.processLabelsOverall=function(){var e=this;Object(m["each"])(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,a=t.getTextContent();!o&&a&&(o=ck(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=Ws(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),s={},l=o.getItemVisual(r,"style"),c=o.getVisual("drawType");s.stroke=l[c];var u=a.getModel("labelLine");QS(e,JS(a),s),US(e,u)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!uc(e))){var r=ck(n),o=r.oldLayout,a=Ws(e),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},c=t.getData(a.dataType);if(o){n.attr(o);var u=e.prevStates;u&&(Object(m["indexOf"])(u,"select")>=0&&n.attr(r.oldLayoutSelect),Object(m["indexOf"])(u,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),lc(n,l,t,s)}else if(n.attr(l),!Tc(n).valueAnimation){var d=Object(m["retrieve2"])(n.style.opacity,1);n.style.opacity=0,cc(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};dk(h,l,hk),dk(h,n.states.select,hk)}if(n.states.emphasis){var f=r.oldLayoutEmphasis={};dk(f,l,hk),dk(f,n.states.emphasis,hk)}Ic(n,s,c,t,t)}if(i&&!i.ignore&&!i.invisible){r=uk(i),o=r.oldLayout;var p={points:i.shape.points};o?(i.attr({shape:o}),lc(i,{shape:p},t)):(i.setShape(p),i.style.strokePercent=0,cc(i,{style:{strokePercent:1}},t)),r.oldLayout=p}},e}(),pk=fk,gk=Kr();function mk(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=gk(t).labelManager;i||(i=gk(t).labelManager=new pk),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=gk(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function vk(e,t,n){var i=hi["d"].createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}fw(mk);var bk=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Yn,"string"===typeof t?r=vk(t,n,i):m["isObject"](t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(m["disableUserSelect"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return p(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=vk("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new $e(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new $e(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,c=0;c<o.length;++c){var u=o[c];if(u.intersect(e)){var d=new $e(0,0,0,0);d.copy(u),d.union(e),o[c]=d,n=!0;break}if(s){l.copy(e),l.union(u);var h=e.width*e.height,f=u.width*u.height,p=l.width*l.height,g=p-h-f;g<i&&(i=g,r=c)}}if(s&&(o[r].union(e),n=!0),!n){t=new $e(0,0,0,0);t.copy(e),o.push(t)}s||(s=o.length>=a)}}for(var u=this.__startIndex;u<this.__endIndex;++u){var d=e[u];if(d){var h=d.shouldBePainted(n,i,!0,!0),f=d.__isRendered&&(d.__dirty&dt||!h)?d.getPrevPaintRect():null;f&&c(f);var p=h&&(d.__dirty&dt||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(u=this.__prevStartIndex;u<this.__prevEndIndex;++u){d=t[u],h=d.shouldBePainted(n,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){f=d.getPrevPaintRect();f&&c(f)}}do{r=!1;for(u=0;u<o.length;)if(o[u].isZero())o.splice(u,1);else{for(var g=u+1;g<o.length;)o[u].intersect(o[g])?(r=!0,o[u].union(o[g]),o.splice(g,1)):g++;u++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,r=this.ctx,o=i.width,a=i.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,c=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,o/c,a/c));var d=this.domBack;function h(e,n,i,o){if(r.clearRect(e,n,i,o),t&&"transparent"!==t){var a=void 0;if(m["isGradientObject"](t)){var h=t.global||t.__width===i&&t.__height===o;a=h&&t.__canvasGradient||Ib(r,t,{x:0,y:0,width:i,height:o}),t.__canvasGradient=a,t.__width=i,t.__height=o}else m["isImagePatternObject"](t)&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,a=Hb(r,t,{dirty:function(){u.setUnpainted(),u.__painter.refresh()}}));r.save(),r.fillStyle=a||t,r.fillRect(e,n,i,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,e,n,i,o),r.restore())}!n||s?h(0,0,o,a):n.length&&m["each"](n,(function(e){h(e.x*c,e.y*c,e.width*c,e.height*c)}))},t}(q),yk=bk,_k=1e5,wk=314159,xk=.01,Ck=.001;function Sk(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function kk(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Ok=function(){function e(e,t,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=m["extend"]({},n||{}),this.dpr=n.devicePixelRatio||Yn,this._singleCanvas=r,this.root=e;var o=e.style;o&&(m["disableUserSelect"](e),e.innerHTML=""),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(r){var l=e,c=l.width,u=l.height;null!=n.width&&(c=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,l.width=c*this.dpr,l.height=u*this.dpr,this._width=c,this._height=u;var d=new yk(l,this,this.dpr);d.__builtin__=!0,d.initContext(),s[wk]=d,d.zlevel=wk,a.push(wk),this._domRoot=e}else{this._width=Pb(e,0,n),this._height=Pb(e,1,n);var h=this._domRoot=kk(this._width,this._height);e.appendChild(h)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(_k)),i||(i=n.ctx,i.save()),uy(i,a,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(_k)},e.prototype.paintOne=function(e,t){cy(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;_t((function(){s._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(wk).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,r=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&r.push(l)}for(var c=!0,u=!1,d=function(a){var s,l=r[a],d=l.ctx,f=o&&l.createRepaintRects(e,t,h._width,h._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,f);else if(p===l.__startIndex){var b=e[p];b.incremental&&b.notClear&&!n||l.clear(!1,v,f)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=p;s<l.__endIndex;s++){var r=e[s];if(r.__inHover&&(u=!0),i._doPaintEl(r,l,o,t,n,s===l.__endIndex-1),g){var a=Date.now()-m;if(a>15)break}}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)s=l.__endIndex;else for(var _=h.dpr,w=0;w<f.length;++w){var x=f[w];d.save(),d.beginPath(),d.rect(x.x*_,x.y*_,x.width*_,x.height*_),d.clip(),y(x),d.restore()}else d.save(),y(),d.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},h=this,f=0;f<r.length;f++)d(f);return g["a"].wxa&&m["each"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!i||s&&s.intersect(i))&&(uy(a,e,r,o),e.setPrevPaintRect(s))}else uy(a,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=wk);var n=this._layers[e];return n||(n=new yk("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?m["merge"](n,this._layerConfig[e],!0):this._layerConfig[e-xk]&&m["merge"](n,this._layerConfig[e-xk],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&Sk(t)){if(r>0&&e>i[0]){for(s=0;s<r-1;s++)if(i[s]<e&&i[s+1]>e)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<e.length;o++){i=e[o];var l=i.zlevel,c=void 0;r!==l&&(r=l,s=0),i.incremental?(c=this.getLayer(l+Ck,this._needsManuallyCompositing),c.incremental=!0,s=1):c=this.getLayer(l+(s>0?xk:0),this._needsManuallyCompositing),c.__builtin__||m["logError"]("ZLevel "+l+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,t(o),a=c),i.__dirty&dt&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,m["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?m["merge"](n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];if(r===e||r===e+xk){var o=this._layers[r];m["merge"](o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(m["indexOf"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=Pb(r,0,i),t=Pb(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(wk).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[wk].dom;var t=new yk("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var c=a[s];uy(n,c,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),Mk=Ok;function Dk(e){e.registerPainter("canvas",Mk)}var Ek=Math.sin,Tk=Math.cos,Lk=Math.PI,Ik=2*Math.PI,Ak=180/Lk,Nk=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,s){var l=a-o,c=!s,u=Math.abs(l),d=Object(Jt["j"])(u-Ik)||(c?l>=Ik:-l>=Ik),h=l>0?l%Ik:l%Ik+Ik,f=!1;f=!!d||!Object(Jt["j"])(u)&&h>=Lk===!!c;var p=e+n*Tk(o),g=t+i*Ek(o);this._start&&this._add("M",p,g);var m=Math.round(r*Ak);if(d){var v=1/this._p,b=(c?1:-1)*(Ik-v);this._add("A",n,i,m,1,+c,e+n*Tk(o+b),t+i*Ek(o+b)),v>.01&&this._add("A",n,i,m,0,+c,p,g)}else{var y=e+n*Tk(a),_=t+i*Ek(a);this._add("A",n,i,m,+f,+c,y,_)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var c=[],u=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h))return void(this._invalid=!0);c.push(Math.round(h*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Pk=Nk,Rk="none",Fk=Math.round;function jk(e){var t=e.fill;return null!=t&&t!==Rk}function Bk(e){var t=e.stroke;return null!=t&&t!==Rk}var zk=["lineCap","miterLimit","lineJoin"],Vk=Object(m["map"])(zk,(function(e){return"stroke-"+e.toLowerCase()}));function $k(e,t,n,i){var r=null==t.opacity?1:t.opacity;if(n instanceof gs)e("opacity",r);else{if(jk(t)){var o=Object(Jt["p"])(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&e("fill-opacity",a)}else e("fill",Rk);if(Bk(t)){var s=Object(Jt["p"])(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?n.getLineScale():1,c=l?(t.lineWidth||0)/l:0,u=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*r:s.opacity*r,d=t.strokeFirst;if((i||1!==c)&&e("stroke-width",c),(i||d)&&e("paint-order",d?"stroke":"fill"),(i||u<1)&&e("stroke-opacity",u),t.lineDash){var h=Fb(n),f=h[0],p=h[1];f&&(p=Fk(p||0),e("stroke-dasharray",f.join(",")),(p||i)&&e("stroke-dashoffset",p))}else i&&e("stroke-dasharray",Rk);for(var g=0;g<zk.length;g++){var m=zk[g];if(i||t[m]!==is[m]){var v=t[m]||is[m];v&&e(Vk[g],v)}}}else i&&e("stroke",Rk)}}var Wk="http://www.w3.org/2000/svg",Hk="http://www.w3.org/1999/xlink",Uk="http://www.w3.org/2000/xmlns/",qk="http://www.w3.org/XML/1998/namespace";function Gk(e){return document.createElementNS(Wk,e)}function Kk(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function Yk(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function Xk(e){return"</"+e+">"}function Zk(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs,a=e.text;return Yk(r,o)+("style"!==r?oe(a):a||"")+(t?""+n+Object(m["map"])(t,(function(e){return i(e)})).join(n)+n:"")+Xk(r)}return i(e)}function Qk(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=Object(m["map"])(Object(m["keys"])(e),(function(t){return t+r+Object(m["map"])(Object(m["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=Object(m["map"])(Object(m["keys"])(t),(function(e){return"@keyframes "+e+r+Object(m["map"])(Object(m["keys"])(t[e]),(function(n){return n+r+Object(m["map"])(Object(m["keys"])(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}function Jk(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function eO(e,t,n,i){return Kk("svg","root",{width:e,height:t,xmlns:Wk,"xmlns:xlink":Hk,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var tO={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},nO="transform-origin";function iO(e,t,n){var i=Object(m["extend"])({},e.shape);Object(m["extend"])(i,t),e.buildPath(n,i);var r=new Pk;return r.reset(Object(Jt["f"])(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function rO(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[nO]=n+"px "+i+"px")}var oO={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function aO(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sO(e,t,n){var i,r,o=e.shape.paths,a={};if(Object(m["each"])(o,(function(e){var t=Jk(n.zrId);t.animation=!0,cO(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(m["keys"])(o),c=l.length;if(c){r=l[c-1];var u=o[r];for(var d in u){var h=u[d];a[d]=a[d]||{d:""},a[d].d+=h.d||""}for(var f in s){var p=s[f].animation;p.indexOf(r)>=0&&(i=p)}}})),i){t.d=!1;var s=aO(a,n);return i.replace(r,s)}}function lO(e){return Object(m["isString"])(e)?tO[e]?"cubic-bezier("+tO[e]+")":Yt(e)?e:"":""}function cO(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof dm){var s=sO(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},c=0;c<o;c++){var u=r[c],d=[u.getMaxTime()/1e3+"s"],h=lO(u.getClip().easing),f=u.getDelay();h?d.push(h):d.push("linear"),f&&d.push(f/1e3+"s"),u.getLoop()&&d.push("infinite");var p=d.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(u)}function g(r){var o,a=r[1],s=a.length,l={},c={},u={},d="animation-timing-function";function h(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var c=0;c<s.length;c++){var u=s[c],h=Math.round(u.time/r*100)+"%",f=lO(u.easing),p=u.rawValue;(Object(m["isString"])(p)||Object(m["isNumber"])(p))&&(t[h]=t[h]||{},t[h][l]=u.rawValue,f&&(t[h][d]=f))}}}}for(var f=0;f<s;f++){var p=a[f],g=p.targetName;g?"shape"===g&&h(p,c):!i&&h(p,l)}for(var v in l){var b={};ci(b,e),Object(m["extend"])(b,l[v]);var y=Object(Jt["g"])(b),_=l[v][d];u[v]=y?{transform:y}:{},rO(u[v],b),_&&(u[v][d]=_)}var w=!0;for(var v in c){u[v]=u[v]||{};var x=!o;_=c[v][d];x&&(o=new Pa);var C=o.len();o.reset(),u[v].d=iO(e,c[v],o);var S=o.len();if(!x&&C!==S){w=!1;break}_&&(u[v][d]=_)}if(!w)for(var v in u)delete u[v].d;if(!i)for(f=0;f<s;f++){p=a[f],g=p.targetName;"style"===g&&h(p,u,(function(e){return oO[e]}))}var k,O=Object(m["keys"])(u),M=!0;for(f=1;f<O.length;f++){var D=O[f-1],E=O[f];if(u[D][nO]!==u[E][nO]){M=!1;break}k=u[D][nO]}if(M&&k){for(var v in u)u[v][nO]&&delete u[v][nO];t[nO]=k}if(Object(m["filter"])(O,(function(e){return Object(m["keys"])(u[e]).length>0})).length){var T=aO(u,n);return T+" "+r[0]+" both"}}for(var v in l){s=g(l[v]);s&&a.push(s)}if(a.length){var b=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+b]={animation:a.join(",")},t["class"]=b}}var uO=Math.round;function dO(e){return e&&Object(m["isString"])(e.src)}function hO(e){return e&&Object(m["isFunction"])(e.toDataURL)}function fO(e,t,n,i){$k((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Jt["k"])(o)?MO(t,e,r,i):a&&Object(Jt["n"])(o)?DO(n,e,r,i):e[r]=o}),t,n,!1),OO(n,e,i)}function pO(e){return Object(Jt["j"])(e[0]-1)&&Object(Jt["j"])(e[1])&&Object(Jt["j"])(e[2])&&Object(Jt["j"])(e[3]-1)}function gO(e){return Object(Jt["j"])(e[4])&&Object(Jt["j"])(e[5])}function mO(e,t,n){if(t&&(!gO(t)||!pO(t))){var i=n?10:1e4;e.transform=pO(t)?"translate("+uO(t[4]*i)/i+" "+uO(t[5]*i)/i+")":Object(Jt["e"])(t)}}function vO(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(uO(i[o][0]*n)/n),r.push(uO(i[o][1]*n)/n);t.points=r.join(" ")}function bO(e){return!e.smooth}function yO(e){var t=Object(m["map"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var r=0;r<t.length;r++){var o=t[r],a=e[o[0]];null!=a&&(n[o[1]]=uO(a*i)/i)}}}var _O={circle:[yO(["cx","cy","r"])],polyline:[vO,bO],polygon:[vO,bO]};function wO(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function xO(e,t){var n=e.style,i=e.shape,r=_O[e.type],o={},a=t.animation,s="path",l=e.style.strokePercent,c=t.compress&&Object(Jt["f"])(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&wO(e)||l<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;u&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),f=e,p=f.__svgPathBuilder;f.__svgPathVersion===h&&p&&l===f.__svgPathStrokePercent||(p||(p=f.__svgPathBuilder=new Pk),p.reset(c),d.rebuildPath(p,l),p.generateStr(),f.__svgPathVersion=h,f.__svgPathStrokePercent=l),o.d=p.getStr()}else{s=e.type;var g=Math.pow(10,c);r[0](i,o,g)}return mO(o,e.transform),fO(o,n,e,t),t.animation&&cO(e,o,t),Kk(s,e.id+"",o)}function CO(e,t){var n=e.style,i=n.image;if(i&&!Object(m["isString"])(i)&&(dO(i)?i=i.src:hO(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:i,width:a,height:s};return r&&(l.x=r),o&&(l.y=o),mO(l,e.transform),fO(l,n,e,t),t.animation&&cO(e,l,t),Kk("image",e.id+"",l)}}function SO(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||hi["a"],o=n.x||0,a=Object(Jt["b"])(n.y||0,yi(r),n.textBaseline),s=Jt["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Ns(n)){var c="",u=n.fontStyle,d=Is(n.fontSize);if(!parseFloat(d))return;var h=n.fontFamily||hi["b"],f=n.fontWeight;c+="font-size:"+d+";font-family:"+h+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),f&&"normal"!==f&&(c+="font-weight:"+f+";"),l.style=c}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),mO(l,e.transform),fO(l,n,e,t),t.animation&&cO(e,l,t),Kk("text",e.id+"",l,void 0,i)}}function kO(e,t){return e instanceof ss?xO(e,t):e instanceof gs?CO(e,t):e instanceof us?SO(e,t):void 0}function OO(e,t,n){var i=e.style;if(Object(Jt["i"])(i)){var r=Object(Jt["h"])(e),o=n.shadowCache,a=o[r];if(!a){var s=e.getGlobalScale(),l=s[0],c=s[1];if(!l||!c)return;var u=i.shadowOffsetX||0,d=i.shadowOffsetY||0,h=i.shadowBlur,f=Object(Jt["p"])(i.shadowColor),p=f.opacity,g=f.color,m=h/2/l,v=h/2/c,b=m+" "+v;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Kk("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Kk("feDropShadow","",{dx:u/l,dy:d/c,stdDeviation:b,"flood-color":g,"flood-opacity":p})]),o[r]=a}t.filter=Object(Jt["d"])(a)}}function MO(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Jt["m"])(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Jt["o"])(o))return void 0;r="radialGradient",a.cx=Object(m["retrieve2"])(o.x,.5),a.cy=Object(m["retrieve2"])(o.y,.5),a.r=Object(m["retrieve2"])(o.r,.5)}for(var s=o.colorStops,l=[],c=0,u=s.length;c<u;++c){var d=100*Object(Jt["q"])(s[c].offset)+"%",h=s[c].color,f=Object(Jt["p"])(h),p=f.color,g=f.opacity,v={offset:d};v["stop-color"]=p,g<1&&(v["stop-opacity"]=g),l.push(Kk("stop",c+"",v))}var b=Kk(r,"",a,l),y=Zk(b),_=i.gradientCache,w=_[y];w||(w=i.zrId+"-g"+i.gradientIdx++,_[y]=w,a.id=w,i.defs[w]=Kk(r,w,a,l)),t[n]=Object(Jt["d"])(w)}function DO(e,t,n,i){var r,o=e.style[n],a=e.getBoundingRect(),s={},l=o.repeat,c="no-repeat"===l,u="repeat-x"===l,d="repeat-y"===l;if(Object(Jt["l"])(o)){var h=o.imageWidth,f=o.imageHeight,p=void 0,g=o.image;if(Object(m["isString"])(g)?p=g:dO(g)?p=g.src:hO(g)&&(p=g.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(m["assert"])(h,v),Object(m["assert"])(f,v)}else if(null==h||null==f){var b=function(e,t){if(e){var n=e.elm,i=h||t.width,r=f||t.height;"pattern"===e.tag&&(u?(r=1,i/=a.width):d&&(i=1,r/=a.height)),e.attrs.width=i,e.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},y=Mo(p,null,e,(function(e){c||b(C,e),b(r,e)}));y&&y.width&&y.height&&(h=h||y.width,f=f||y.height)}r=Kk("image","img",{href:p,width:h,height:f}),s.width=h,s.height=f}else o.svgElement&&(r=Object(m["clone"])(o.svgElement),s.width=o.svgWidth,s.height=o.svgHeight);if(r){var _,w;c?_=w=1:u?(w=1,_=s.width/a.width):d?(_=1,w=s.height/a.height):s.patternUnits="userSpaceOnUse",null==_||isNaN(_)||(s.width=_),null==w||isNaN(w)||(s.height=w);var x=Object(Jt["g"])(o);x&&(s.patternTransform=x);var C=Kk("pattern","",s,[r]),S=Zk(C),k=i.patternCache,O=k[S];O||(O=i.zrId+"-p"+i.patternIdx++,k[S]=O,s.id=O,C=i.defs[O]=Kk("pattern",O,s,[r])),t[n]=Object(Jt["d"])(O)}}function EO(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};i[e.id]=o,r[o]=Kk("clipPath",o,a,[xO(e,n)])}t["clip-path"]=Object(Jt["d"])(o)}function TO(e){return document.createTextNode(e)}function LO(e,t,n){e.insertBefore(t,n)}function IO(e,t){e.removeChild(t)}function AO(e,t){e.appendChild(t)}function NO(e){return e.parentNode}function PO(e){return e.nextSibling}function RO(e,t){e.textContent=t}var FO=58,jO=120,BO=Kk("","");function zO(e){return void 0===e}function VO(e){return void 0!==e}function $O(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(i[o]=r)}return i}function WO(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function HO(e){var t,n=e.children,i=e.tag;if(VO(i)){var r=e.elm=Gk(i);if(GO(BO,e),Object(m["isArray"])(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&AO(r,HO(o))}else VO(e.text)&&!Object(m["isObject"])(e.text)&&AO(r,TO(e.text))}else e.elm=TO(e.text);return e.elm}function UO(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&LO(e,HO(o),t)}}function qO(e,t,n,i){for(;n<=i;++n){var r=t[n];if(null!=r)if(VO(r.tag)){var o=NO(r.elm);IO(o,r.elm)}else IO(e,r.elm)}}function GO(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.attrs||{};if(r!==o){for(n in o){var a=o[n],s=r[n];s!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==jO?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(Uk,n,a):n.charCodeAt(3)===FO?i.setAttributeNS(qk,n,a):n.charCodeAt(5)===FO?i.setAttributeNS(Hk,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function KO(e,t,n){var i,r,o,a,s=0,l=0,c=t.length-1,u=t[0],d=t[c],h=n.length-1,f=n[0],p=n[h];while(s<=c&&l<=h)null==u?u=t[++s]:null==d?d=t[--c]:null==f?f=n[++l]:null==p?p=n[--h]:WO(u,f)?(YO(u,f),u=t[++s],f=n[++l]):WO(d,p)?(YO(d,p),d=t[--c],p=n[--h]):WO(u,p)?(YO(u,p),LO(e,u.elm,PO(d.elm)),u=t[++s],p=n[--h]):WO(d,f)?(YO(d,f),LO(e,d.elm,u.elm),d=t[--c],f=n[++l]):(zO(i)&&(i=$O(t,s,c)),r=i[f.key],zO(r)?LO(e,HO(f),u.elm):(o=t[r],o.tag!==f.tag?LO(e,HO(f),u.elm):(YO(o,f),t[r]=void 0,LO(e,o.elm,u.elm))),f=n[++l]);(s<=c||l<=h)&&(s>c?(a=null==n[h+1]?null:n[h+1].elm,UO(e,a,n,l,h)):qO(e,t,s,c))}function YO(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(GO(e,t),zO(t.text)?VO(i)&&VO(r)?i!==r&&KO(n,i,r):VO(r)?(VO(e.text)&&RO(n,""),UO(n,null,r,0,r.length-1)):VO(i)?qO(n,i,0,i.length-1):VO(e.text)&&RO(n,""):e.text!==t.text&&(VO(i)&&qO(n,i,0,i.length-1),RO(n,t.text)))}function XO(e,t){if(WO(e,t))YO(e,t);else{var n=e.elm,i=NO(n);HO(t),null!==i&&(LO(i,t.elm,PO(n)),qO(i,[e],0,0))}return t}var ZO=0,QO=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=JO("refreshHover"),this.configLayer=JO("configLayer"),this.storage=t,this._opts=n=Object(m["extend"])({},n),this.root=e,this._id="zr"+ZO++,this._oldVNode=eO(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=Gk("svg");GO(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",XO(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return kO(e,Jk(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=Jk(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress;var o=[],a=this._bgVNode=eM(n,i,this._backgroundColor,r);a&&o.push(a);var s=e.compress?null:this._mainVNode=Kk("g","main",{},[]);this._paintList(t,r,s?s.children:o),s&&o.push(s);var l=Object(m["map"])(Object(m["keys"])(r.defs),(function(e){return r.defs[e]}));if(l.length&&o.push(Kk("defs","defs",{},l)),e.animation){var c=Qk(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=Kk("style","stl",{},[],c);o.push(u)}}return eO(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Zk(this.renderToVNode({animation:Object(m["retrieve2"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(m["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,c=0;c<o;c++){var u=e[c];if(!u.invisible){var d=u.__clipPaths,h=d&&d.length||0,f=r&&r.length||0,p=void 0;for(p=Math.max(h-1,f-1);p>=0;p--)if(d&&r&&d[p]===r[p])break;for(var g=f-1;g>p;g--)s--,i=a[s-1];for(var m=p+1;m<h;m++){var v={};EO(d[m],v,t);var b=Kk("g","clip-g-"+l++,v,[]);(i?i.children:n).push(b),a[s++]=b,i=b}r=d;var y=kO(u,t);y&&(i?i.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=Pb(i,0,n),t=Pb(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}if(Object(Jt["n"])(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",e),s.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Object(Jt["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function JO(e){return function(){0}}function eM(e,t,n,i){var r;if(n&&"none"!==n)if(r=Kk("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),Object(Jt["k"])(n))MO({fill:n},r.attrs,"fill",i);else if(Object(Jt["n"])(n))DO({style:{fill:n},dirty:m["noop"],getBoundingRect:function(){return{width:e,height:t}}},r.attrs,"fill",i);else{var o=Object(Jt["p"])(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}var tM=QO;function nM(e){e.registerPainter("svg",tM)}var iM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.getInitialData=function(e){return hx(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Fi,n=Ob("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*e.itemHeight,s=Ob(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Hp),rM=iM;function oM(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=wf(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push(wf(e,t,n[a]));return o.join(" ")}}function aM(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(m["isArray"])(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var sM=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return p(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=Ob(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=lM,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Dl(this.childAt(0))},t.prototype.downplay=function(){El(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,u)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(h):lc(d,h,a,n),pc(d)}if(this._updateCommon(e,n,s,i,r),l){d=this.childAt(0);if(!c){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,cc(d,h,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,c,u,d,h,f,p=this.childAt(0),g=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,c=i.blurScope,d=i.labelStatesModels,h=i.hoverScale,f=i.cursorStyle,u=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),b=v.getModel("emphasis");o=b.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=b.get("focus"),c=b.get("blurScope"),u=b.get("disabled"),d=_c(v),h=b.getShallow("scale"),f=v.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var _=Db(e.getItemVisual(t,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),f&&p.attr("cursor",f);var w=e.getItemVisual(t,"style"),x=w.fill;if(p instanceof gs){var C=p.style;p.useStyle(Object(m["extend"])({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},w))}else p.__isEmptyBrush?p.useStyle(Object(m["extend"])({},w)):p.useStyle(w),p.style.decal=null,p.setColor(x,r&&r.symbolInnerColor),p.style.strokeNoScale=!0;var S=e.getItemVisual(t,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=p.z2,p.z2+=S):null!=k&&(p.z2=k,this._z2=null);var O=r&&r.useNameLabel;function M(t){return O?e.getName(t):oM(e,t)}yc(p,d,{labelFetcher:g,labelDataIndex:t,defaultText:M,inheritColor:x,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=p.ensureState("emphasis");D.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var E=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;D.scaleX=this._sizeX*E,D.scaleY=this._sizeY*E,this.setSymbolScale(1),Gl(this,l,c,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Ws(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&dc(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();dc(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Mb(e.getItemVisual(t,"symbolSize"))},t}(Fi);function lM(e,t){this.parent.drift(e,t)}var cM=sM;function uM(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function dM(e){return null==e||Object(m["isObject"])(e)||(e={isIgnore:e}),e||{}}function hM(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:_c(t),cursorStyle:t.get("cursor")}}var fM=function(){function e(e){this.group=new Fi,this._SymbolCtor=e||cM}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=dM(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=hM(e),l={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=c(i);if(uM(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(u,d){var h=r.getItemGraphicEl(d),f=c(u);if(uM(e,f,u,t)){var p=e.getItemVisual(u,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)n.remove(h),h=new o(e,u,s,l),h.setPosition(f);else{h.updateData(e,u,s,l);var m={x:f[0],y:f[1]};a?h.attr(m):lc(h,m,i)}n.add(h),e.setItemGraphicEl(u,h)}else n.remove(h)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hM(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=dM(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(uM(t,o,r,n)){var a=new this._SymbolCtor(t,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),pM=fM;function gM(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=mM(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),c=t.mapDimension(a),u="x"===s||"radius"===s?1:0,d=Object(m["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),h=!1,f=t.getCalculationInfo("stackResultDimension");return ox(t,d[0])&&(h=!0,d[0]=f),ox(t,d[1])&&(h=!0,d[1]=f),{dataDimsForPoint:d,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function mM(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:Object(m["isNumber"])(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function vM(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function bM(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function yM(e,t,n,i,r,o,a,s){for(var l=bM(e,t),c=[],u=[],d=[],h=[],f=[],p=[],g=[],m=gM(r,t,a),v=e.getLayout("points")||[],b=t.getLayout("points")||[],y=0;y<l.length;y++){var _=l[y],w=!0,x=void 0,C=void 0;switch(_.cmd){case"=":x=2*_.idx,C=2*_.idx1;var S=v[x],k=v[x+1],O=b[C],M=b[C+1];(isNaN(S)||isNaN(k))&&(S=O,k=M),c.push(S,k),u.push(O,M),d.push(n[x],n[x+1]),h.push(i[C],i[C+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var D=_.idx,E=m.dataDimsForPoint,T=r.dataToPoint([t.get(E[0],D),t.get(E[1],D)]);C=2*D,c.push(T[0],T[1]),u.push(b[C],b[C+1]);var L=vM(m,r,t,D);d.push(L[0],L[1]),h.push(i[C],i[C+1]),g.push(t.getRawIndex(D));break;case"-":w=!1}w&&(f.push(_),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var I=c.length,A=Px(I),N=Px(I),P=Px(I),R=Px(I),F=[];for(y=0;y<p.length;y++){var j=p[y],B=2*y,z=2*j;A[B]=c[z],A[B+1]=c[z+1],N[B]=u[z],N[B+1]=u[z+1],P[B]=d[z],P[B+1]=d[z+1],R[B]=h[z],R[B+1]=h[z+1],F[y]=f[j]}return{current:A,next:N,stackedOnCurrent:P,stackedOnNext:R,status:F}}var _M=Math.min,wM=Math.max;function xM(e,t){return isNaN(e)||isNaN(t)}function CM(e,t,n,i,r,o,a,s,l){for(var c,u,d,h,f,p,g=n,m=0;m<i;m++){var v=t[2*g],b=t[2*g+1];if(g>=r||g<0)break;if(xM(v,b)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,b),d=v,h=b;else{var y=v-c,_=b-u;if(y*y+_*_<.5){g+=o;continue}if(a>0){var w=g+o,x=t[2*w],C=t[2*w+1];while(x===v&&C===b&&m<i)m++,w+=o,g+=o,x=t[2*w],C=t[2*w+1],v=t[2*g],b=t[2*g+1],y=v-c,_=b-u;var S=m+1;if(l)while(xM(x,C)&&S<i)S++,w+=o,x=t[2*w],C=t[2*w+1];var k=.5,O=0,M=0,D=void 0,E=void 0;if(S>=i||xM(x,C))f=v,p=b;else{O=x-c,M=C-u;var T=v-c,L=x-v,I=b-u,A=C-b,N=void 0,P=void 0;if("x"===s){N=Math.abs(T),P=Math.abs(L);var R=O>0?1:-1;f=v-R*N*a,p=b,D=v+R*P*a,E=b}else if("y"===s){N=Math.abs(I),P=Math.abs(A);var F=M>0?1:-1;f=v,p=b-F*N*a,D=v,E=b+F*P*a}else N=Math.sqrt(T*T+I*I),P=Math.sqrt(L*L+A*A),k=P/(P+N),f=v-O*a*(1-k),p=b-M*a*(1-k),D=v+O*a*k,E=b+M*a*k,D=_M(D,wM(x,v)),E=_M(E,wM(C,b)),D=wM(D,_M(x,v)),E=wM(E,_M(C,b)),O=D-v,M=E-b,f=v-O*N/P,p=b-M*N/P,f=_M(f,wM(c,v)),p=_M(p,wM(u,b)),f=wM(f,_M(c,v)),p=wM(p,_M(u,b)),O=v-f,M=b-p,D=v+O*P/N,E=b+M*P/N}e.bezierCurveTo(d,h,f,p,v,b),d=D,h=E}else e.lineTo(v,b)}c=v,u=b,g+=o}return m}var SM=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),kM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new SM},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!xM(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!xM(n[2*i],n[2*i+1]))break}while(i<r)i+=CM(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,a=Pa.CMD,s="x"===t,l=[],c=0;c<o.length;){var u=o[c++],d=void 0,h=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(u){case a.M:n=o[c++],i=o[c++];break;case a.L:if(d=o[c++],h=o[c++],v=s?(e-n)/(d-n):(e-i)/(h-i),v<=1&&v>=0){var b=s?(h-i)*v+i:(d-n)*v+n;return s?[e,b]:[b,e]}n=d,i=h;break;case a.C:d=o[c++],h=o[c++],f=o[c++],p=o[c++],g=o[c++],m=o[c++];var y=s?Rt(n,d,f,g,e,l):Rt(i,h,p,m,e,l);if(y>0)for(var _=0;_<y;_++){var w=l[_];if(w<=1&&w>=0){b=s?Nt(i,h,p,m,w):Nt(n,d,f,g,w);return s?[e,b]:[b,e]}}n=g,i=m;break}}},t}(ss),OM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(SM),MM=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return p(t,e),t.prototype.getDefaultShape=function(){return new OM},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!xM(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!xM(n[2*r],n[2*r+1]))break}while(r<o){var s=CM(e,n,r,o,o,1,t.smooth,a,t.connectNulls);CM(e,i,r+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),r+=s+1,e.closePath()}},t}(ss);function DM(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||2;a-=u/2,s-=u/2,l+=u,c+=u,a=Math.floor(a),l=Math.round(l);var d=new Ss({shape:{x:a,y:s,width:l,height:c}});if(t){var h=e.getBaseAxis(),f=h.isHorizontal(),p=h.inverse;f?(p&&(d.shape.x+=l),d.shape.width=0):(p||(d.shape.y+=c),d.shape.height=0);var g=Object(m["isFunction"])(r)?function(e){r(e,d)}:null;cc(d,{shape:{width:l,height:c,x:a,y:s}},n,null,i,g)}return d}function EM(e,t,n){var i=e.getArea(),r=er(i.r0,1),o=er(i.r,1),a=new zg({shape:{cx:er(e.cx,1),cy:er(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s="angle"===e.getBaseAxis().dim;s?a.shape.endAngle=i.startAngle:a.shape.r=r,cc(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function TM(e,t,n,i,r){return e?"polar"===e.type?EM(e,t,n):"cartesian2d"===e.type?DM(e,t,n,i,r):null:null}function LM(e,t){return e.type===t}function IM(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function AM(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[t,n],[i,r]]}function NM(e,t){var n=AM(e),i=n[0],r=n[1],o=AM(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function PM(e){return m["isNumber"](e)?e:e?.5:0}function RM(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=Px(2*i),o=0;o<i;o++){var a=vM(n,e,t,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}function FM(e,t,n,i){var r=t.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],c=[],u=[],d=[];if(i){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||d.push(e[s],e[s+1]);e=d}for(s=0;s<e.length-2;s+=2)switch(u[0]=e[s+2],u[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),n){case"end":l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1]);break;case"middle":var h=(c[o]+u[o])/2,f=[];l[o]=f[o]=h,l[1-o]=c[1-o],f[1-o]=u[1-o],a.push(l[0],l[1]),a.push(f[0],f[1]);break;default:l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function jM(e,t){var n,i,r=[],o=e.length;function a(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i),o=Object(Qt["lerp"])(r,[e.color,t.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=e[s],c=l.coord;if(c<0)n=l;else{if(c>t){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function BM(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),c=m["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,d=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),d.reverse());var h=jM(c,"x"===r?n.getWidth():n.getHeight()),f=h.length;if(!f&&u)return c[0].coord<0?d[1]?d[1]:c[u-1].color:d[0]?d[0]:c[0].color;var p=10,g=h[0].coord-p,v=h[f-1].coord+p,b=v-g;if(b<.001)return"transparent";m["each"](h,(function(e){e.offset=(e.coord-g)/b})),h.push({offset:f?h[f-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:d[0]||"transparent"});var y=new gm(0,0,0,0,h,!0);return y[r]=g,y[r+"2"]=v,y}}}function zM(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!VM(o,t))){var a=t.mapDimension(o.dim),s={};return m["each"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function VM(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*cM.getSymbolSize(t,a)[e.isHorizontal()?1:0]>i)return!1;return!0}function $M(e,t){return isNaN(e)||isNaN(t)}function WM(e){for(var t=e.length/2;t>0;t--)if(!$M(e[2*t-2],e[2*t-1]))break;return t-1}function HM(e,t){return[e[2*t],e[2*t+1]]}function UM(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,c=0;c<o;c++)if(r=e[2*c+a],!isNaN(r)&&!isNaN(e[2*c+1-a]))if(0!==c){if(i<=t&&r>=t||i>=t&&r<=t){l=c;break}s=c,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function qM(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Qs.length;t++)if(e.get([Qs[t],"endLabel","show"]))return!0;return!1}function GM(e,t,n,i){if(LM(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=qM(i)?function(n,i){e._endLabelOnDuring(n,i,a,s,o,r,t)}:null,c=t.getBaseAxis().isHorizontal(),u=DM(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var d=u.shape,h=Math.max(d.width,d.height);c?(d.y-=h,d.height+=2*h):(d.x-=h,d.width+=2*h)}return l&&l(1,u),u}return EM(t,n,i)}function KM(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var YM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(){var e=new Fi,t=new pM;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=a.getLayout("points")||[],u="polar"===r.type,d=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,v=!t.ssr&&e.isAnimationEnabled(),b=!l.isEmpty(),y=l.get("origin"),_=gM(r,a,y),w=b&&RM(r,a,_),x=e.get("showSymbol"),C=e.get("connectNulls"),S=x&&!u&&zM(e,a,r),k=this._data;k&&k.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))})),x||h.remove(),o.add(g);var O,M=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(O=r.getArea(),null!=O.width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var D=BM(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(f&&d.type===r.type&&M===this._step){b&&!p?p=this._newPolygon(c,w):p&&!b&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,Qu(D));var E=g.getClipPath();if(E){var T=GM(this,r,!1,e);cc(E,{shape:T.shape},e)}else g.setClipPath(GM(this,r,!0,e));x&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),IM(this._stackedOnPoints,w)&&IM(this._points,c)||(v?this._doUpdateAnimation(a,w,r,n,M,y,C):(M&&(c=FM(c,r,M,C),w&&(w=FM(w,r,M,C))),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:w})))}else x&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),v&&this._initSymbolLabelAnimation(a,r,O),M&&(c=FM(c,r,M,C),w&&(w=FM(w,r,M,C))),f=this._newPolyline(c),b?p=this._newPolygon(c,w):p&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,Qu(D)),g.setClipPath(GM(this,r,!0,e));var L=e.getModel("emphasis"),I=L.get("focus"),A=L.get("blurScope"),N=L.get("disabled");if(f.useStyle(m["defaults"](s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Zl(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=f.getState("emphasis").style;P.lineWidth=+f.style.lineWidth+1}Ws(f).seriesIndex=e.seriesIndex,Gl(f,I,A,N);var R=PM(e.get("smooth")),F=e.get("smoothMonotone");if(f.setShape({smooth:R,smoothMonotone:F,connectNulls:C}),p){var j=a.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(m["defaults"](l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),j&&(B=PM(j.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:B,smoothMonotone:F,connectNulls:C}),Zl(p,e,"areaStyle"),Ws(p).seriesIndex=e.seriesIndex,Gl(p,I,A,N)}var z=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=M,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Ws(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Gr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],c=a[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,d=e.get("z")||0;s=new cM(r,o),s.x=l,s.y=c,s.setZ(u,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=u,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fv.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Gr(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else fv.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;yl(this._polyline,e),t&&yl(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new MM({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");m["isFunction"](l)&&(l=l(null));var c=s.get("animationDelay")||0,u=m["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,v=t.pointToCoord(d);i?(h=g.startAngle,f=g.endAngle,p=-v[1]/180*Math.PI):(h=g.r0,f=g.r,p=v[0])}else{var b=n;i?(h=b.x,f=b.x+b.width,p=e.x):(h=b.y+b.height,f=b.y,p=e.y)}var y=f===h?0:(p-h)/(f-h);a&&(y=1-y);var _=m["isFunction"](c)?c(o):l*y+u,w=s.getSymbolPath(),x=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:_}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(qM(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new $s({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=WM(a);l>=0&&(yc(o,_c(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?aM(r,n):oM(r,e)},enableTextSetter:!0},KM(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var c=n.getLayout("points"),u=n.hostModel,d=u.get("connectNulls"),h=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,b=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,y=(g?f:0)*(m?-1:1),_=(g?0:-f)*(m?-1:1),w=g?"x":"y",x=UM(c,b,w),C=x.range,S=C[1]-C[0],k=void 0;if(S>=1){if(S>1&&!d){var O=HM(c,C[0]);s.attr({x:O[0]+y,y:O[1]+_}),r&&(k=u.getRawValue(C[0]))}else{O=l.getPointOn(b,w);O&&s.attr({x:O[0]+y,y:O[1]+_});var M=u.getRawValue(C[0]),D=u.getRawValue(C[1]);r&&(k=oo(n,h,M,D,x.t))}i.lastFrameIndex=C[0]}else{var E=1===e||i.lastFrameIndex>0?C[0]:0;O=HM(c,E);r&&(k=u.getRawValue(E)),s.attr({x:O[0]+y,y:O[1]+_})}r&&Tc(s).setLabelText(k)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,c=e.hostModel,u=yM(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=u.current,h=u.stackedOnCurrent,f=u.next,p=u.stackedOnNext;if(r&&(d=FM(u.current,n,r,a),h=FM(u.stackedOnCurrent,n,r,a),f=FM(u.next,n,r,a),p=FM(u.stackedOnNext,n,r,a)),NM(d,f)>3e3||l&&NM(h,p)>3e3)return s.stopAnimation(),s.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));s.shape.__points=u.current,s.shape.points=d;var g={shape:{points:f}};u.current!==d&&(g.shape.__points=u.next),s.stopAnimation(),lc(s,g,c),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),lc(l,{shape:{stackedOnPoints:p}},c),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=u.status,b=0;b<v.length;b++){var y=v[b].cmd;if("="===y){var _=e.getItemGraphicEl(v[b].idx1);_&&m.push({el:_,ptIdx:b})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,i=2*m[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(fv),XM=YM;function ZM(e,t){return{seriesType:e,plan:Gp(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var a=Object(m["map"])(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");ox(n,a[0])&&(a[0]=l),ox(n,a[1])&&(a[1]=l);var c=n.getStore(),u=n.getDimensionIndex(a[0]),d=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&Px(n*s),a=[],l=[],h=e.start,f=0;h<e.end;h++){var p=void 0;if(1===s){var g=c.get(u,h);p=i.dataToPoint(g,null,l)}else a[0]=c.get(u,h),a[1]=c.get(d,h),p=i.dataToPoint(a,null,l);o?(r[f++]=p[0],r[f++]=p[1]):t.setItemLayout(h,p.slice())}o&&t.setLayout("points",r)}}}}}}var QM={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},JM=function(e){return Math.round(e.length/2)};function eD(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),c=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(u||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var f=void 0;Object(m["isString"])(r)?f=QM[r]:Object(m["isFunction"])(r)&&(f=r),f&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,f,JM))}}}}}function tD(e){e.registerChartView(XM),e.registerSeriesModel(rM),e.registerLayout(ZM("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,eD("line"))}var nD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){return hx(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)Object(m["each"])(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),a=r[n],s="x1"===t[n]||"y1"===t[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[s?1:0]));for(var l=void 0,c=void 0,u=1,d=0;d<i.length;d++){var h=i[d].coord,f=d===i.length-1?i[d-1].tickValue+u:i[d].tickValue;if(f===a){c=h;break}if(f<a)l=h;else if(null!=l&&f>a){c=(h+l)/2;break}1===d&&(u=f-i[0].tickValue)}null==c&&(l?l&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=s+l/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Hp);Hp.registerClass(nD);var iD=nD,rD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(){return hx(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Xc(iD.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(iD),oD=rD,aD=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),sD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return p(t,e),t.prototype.getDefaultShape=function(){return new aD},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=2*Math.PI,h=u?c-l<d:l-c<d;h||(l=c-(u?d:-d));var f=Math.cos(l),p=Math.sin(l),g=Math.cos(c),m=Math.sin(c);h?(e.moveTo(f*r+n,p*r+i),e.arc(f*s+n,p*s+i,a,-Math.PI+l,l,!u)):e.moveTo(f*o+n,p*o+i),e.arc(n,i,o,l,c,!u),e.arc(g*s+n,m*s+i,a,c-2*Math.PI,c-Math.PI,!u),0!==r&&e.arc(n,i,r,c,l,u)},t}(ss),lD=sD;function cD(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,r){var o=i.position;if(!o||o instanceof Array)return wi(t,i,r);var a=e(o),s=null!=i.distance?i.distance:5,l=this.shape,c=l.cx,u=l.cy,d=l.r,h=l.r0,f=(d+h)/2,p=l.startAngle,g=l.endAngle,m=(p+g)/2,v=n?Math.abs(d-h)/2:0,b=Math.cos,y=Math.sin,_=c+d*b(p),w=u+d*y(p),x="left",C="top";switch(a){case"startArc":_=c+(h-s)*b(m),w=u+(h-s)*y(m),x="center",C="top";break;case"insideStartArc":_=c+(h+s)*b(m),w=u+(h+s)*y(m),x="center",C="bottom";break;case"startAngle":_=c+f*b(p)+dD(p,s+v,!1),w=u+f*y(p)+hD(p,s+v,!1),x="right",C="middle";break;case"insideStartAngle":_=c+f*b(p)+dD(p,-s+v,!1),w=u+f*y(p)+hD(p,-s+v,!1),x="left",C="middle";break;case"middle":_=c+f*b(m),w=u+f*y(m),x="center",C="middle";break;case"endArc":_=c+(d+s)*b(m),w=u+(d+s)*y(m),x="center",C="bottom";break;case"insideEndArc":_=c+(d-s)*b(m),w=u+(d-s)*y(m),x="center",C="top";break;case"endAngle":_=c+f*b(g)+dD(g,s+v,!0),w=u+f*y(g)+hD(g,s+v,!0),x="left",C="middle";break;case"insideEndAngle":_=c+f*b(g)+dD(g,-s+v,!0),w=u+f*y(g)+hD(g,-s+v,!0),x="right",C="middle";break;default:return wi(t,i,r)}return t=t||{},t.x=_,t.y=w,t.align=x,t.verticalAlign=C,t}}function uD(e,t,n,i){if(Object(m["isNumber"])(i))e.setTextConfig({rotation:i});else if(Object(m["isArray"])(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-r;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function dD(e,t,n){return t*Math.sin(e)*(n?-1:1)}function hD(e,t,n){return t*Math.cos(e)*(n?1:-1)}function fD(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(m["isArray"])(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(m["map"])(i,(function(e){return _i(e,r)}))}}var pD=Math.max,gD=Math.min;function mD(e,t){var n=e.getArea&&e.getArea();if(LM(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var vD=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return p(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=_D(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,f=mD(l,a);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,b=[],y=this._backgroundEls,_=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function x(e){var t=OD[l.type](a,e),n=FD(l,r,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),b[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=OD[l.type](a,t,n);if(g&&x(t),a.hasValue(t)&&kD[l.type](i)){var s=!1;h&&(s=bD[l.type](f,i));var m=yD[l.type](e,a,t,i,r,u,c.model,!1,p);d&&(m.forceLabelAnimation=!0),ED(m,a,t,n,i,e,r,"polar"===l.type),_?m.attr({shape:i}):d?wD(d,u,m,i,t,r,!1,!1):cc(m,{shape:i},e,t),a.setItemGraphicEl(t,m),o.add(m),m.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),C=OD[l.type](a,t,i);if(g){var S=void 0;0===y.length?S=x(n):(S=y[n],S.useStyle(m.getItemStyle()),"cartesian2d"===l.type?S.setShape("r",v):S.setShape("cornerRadius",v),b[t]=S);var k=OD[l.type](a,t),O=RD(r,k,l);lc(S,{shape:O},u,t)}var M=s.getItemGraphicEl(n);if(a.hasValue(t)&&kD[l.type](C)){var D=!1;if(h&&(D=bD[l.type](f,C),D&&o.remove(M)),M?pc(M):M=yD[l.type](e,a,t,C,r,u,c.model,!!M,p),d&&(M.forceLabelAnimation=!0),w){var E=M.getTextContent();if(E){var T=Tc(E);null!=T.prevValue&&(T.prevValue=T.value)}}else ED(M,a,t,i,C,e,r,"polar"===l.type);_?M.attr({shape:C}):d?wD(d,u,M,C,t,r,!0,w):lc(M,{shape:C},e,t,null),a.setItemGraphicEl(t,M),M.ignore=D,o.add(M)}else o.remove(M)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&fc(n,e,t)})).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Fi);C.removeAll();for(var S=0;S<b.length;++S)C.add(b[S]);o.add(C),this._backgroundEls=b,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),AD(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),AD(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&TM(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(m["map"])(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(a)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>o)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){fc(t,e,Ws(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(fv),bD={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=pD(t.x,e.x),s=gD(t.x+t.width,r),l=pD(t.y,e.y),c=gD(t.y+t.height,o),u=s<a,d=c<l;return t.x=u&&a>r?s:a,t.y=d&&l>o?c:l,t.width=u?0:s-a,t.height=d?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=gD(t.r,e.r),o=pD(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},yD={cartesian2d:function(e,t,n,i,r,o,a,s,l){var c=new Ss({shape:Object(m["extend"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,d=r?"height":"width";u[d]=0}return c},polar:function(e,t,n,i,r,o,a,s,l){var c=!r&&l?lD:zg,u=new c({shape:i,z2:1});u.name="item";var d=DD(r);if(u.calculateTextPosition=cD(d,{isRoundCap:c===lD}),o){var h=u.shape,f=r?"r":"endAngle",p={};h[f]=r?i.r0:i.startAngle,p[f]=i[f],(s?lc:cc)(u,{shape:p},o)}return u}};function _D(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function wD(e,t,n,i,r,o,a,s){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?lc:cc)(n,{shape:l},t,r,null);var u=t?e.baseAxis.model:null;(a?lc:cc)(n,{shape:c},u,r)}function xD(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var CD=["x","y","width","height"],SD=["cx","cy","r","startAngle","endAngle"],kD={cartesian2d:function(e){return!xD(e,CD)},polar:function(e){return!xD(e,SD)}},OD={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?TD(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function MD(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function DD(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ED(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=e.shape,u=fD(i.getModel("itemStyle"),c,!0);Object(m["extend"])(c,u),e.setShape(c)}}else{var d=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var h=i.getShallow("cursor");h&&e.attr("cursor",h);var f=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=_c(i);yc(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:oM(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(s&&g){var v=i.get(["label","position"]);e.textConfig.inside="middle"===v||null,uD(e,"outside"===v?f:v,DD(a),i.get(["label","rotate"]))}Lc(g,p,o.getRawValue(n),(function(e){return aM(t,e)}));var b=i.getModel(["emphasis"]);Gl(e,b.get("focus"),b.get("blurScope"),b.get("disabled")),Zl(e,i),MD(r)&&(e.style.fill="none",e.style.stroke="none",Object(m["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function TD(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var LD=function(){function e(){}return e}(),ID=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return p(t,e),t.prototype.getDefaultShape=function(){return new LD},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],a[0],a[1])},t}(ss);function AD(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var u=new ID({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var d=new ID({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,t.add(d),d.useStyle(r.getVisual("style")),Ws(d).seriesIndex=e.seriesIndex,e.get("silent")||(d.on("mousedown",ND),d.on("mousemove",ND)),n&&n.push(d)}var ND=vv((function(e){var t=this,n=PD(t,e.offsetX,e.offsetY);Ws(t).dataIndex=n>=0?n:null}),30,!1);function PD(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],c=e.barWidth,u=0,d=o.length/3;u<d;u++){var h=3*u;if(l[i]=c,l[r]=o[h+2],s[i]=o[h+i],s[r]=o[h+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[u]}return-1}function RD(e,t,n){if(LM(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function FD(e,t,n){var i="polar"===e.type?zg:Ss;return new i({shape:RD(t,n,e),silent:!0,z2:0})}var jD=vD;function BD(e){e.registerChartView(jD),e.registerSeriesModel(oD),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,m["curry"](Ux,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qx("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,eD("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var zD=2*Math.PI,VD=Math.PI/180;function $D(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function WD(e,t){var n=$D(e,t),i=e.get("center"),r=e.get("radius");m["isArray"](r)||(r=[0,r]);var o,a,s=Ji(n.width,t.getWidth()),l=Ji(n.height,t.getHeight()),c=Math.min(s,l),u=Ji(r[0],c/2),d=Ji(r[1],c/2),h=e.coordinateSystem;if(h){var f=h.dataToPoint(i);o=f[0]||0,a=f[1]||0}else m["isArray"](i)||(i=[i,i]),o=Ji(i[0],s)+n.x,a=Ji(i[1],l)+n.y;return{cx:o,cy:a,r0:u,r:d}}function HD(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=$D(e,n),o=WD(e,n),a=o.cx,s=o.cy,l=o.r,c=o.r0,u=-e.get("startAngle")*VD,d=e.get("minAngle")*VD,h=0;t.each(i,(function(e){!isNaN(e)&&h++}));var f=t.getSum(i),p=Math.PI/(f||h)*2,g=e.get("clockwise"),m=e.get("roseType"),v=e.get("stillShowZeroSum"),b=t.getDataExtent(i);b[0]=0;var y=zD,_=0,w=u,x=g?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:c,r:m?NaN:l});else{i="area"!==m?0===f&&v?p:e*p:zD/h,i<d?(i=d,y-=d):_+=e;var r=w+x*i;t.setItemLayout(n,{angle:i,startAngle:w,endAngle:r,clockwise:g,cx:a,cy:s,r0:c,r:m?Qi(e,b,[c,l]):l}),w=r}})),y<zD&&h)if(y<=.001){var C=zD/h;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=C,i.startAngle=u+x*n*C,i.endAngle=u+x*(n+1)*C}}))}else p=y/_,w=u,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===d?d:e*p;i.startAngle=w,i.endAngle=w+x*r,w+=x*r}}))}))}function UD(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var qD=Math.PI/180;function GD(e,t,n,i,r,o,a,s,l,c){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if("outer"===e[d].position&&"labelLine"===e[d].labelAlignTo){var h=e[d].label.x-c;e[d].linePoints[1][0]+=h,e[d].label.x=c}ik(e,l,l+a)&&p(e)}function f(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var l=e.list[s],c=Math.abs(l.label.y-n),u=i+l.len,d=u*u,h=Math.sqrt((1-Math.abs(c*c/a))*d),f=t+(h+l.len2)*r,p=f-l.label.x,g=l.targetTextWidth-p*r;YD(l,g,!0),l.label.x=f}}function p(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var l=e[s],c=l.label.y>n?a:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var d=l.label.x-t-l.len2*r,h=i+l.len,p=Math.abs(d)<h?Math.sqrt(u*u/(1-d*d/h/h)):h;c.rB=p,c.maxY=u}c.list.push(l)}f(o),f(a)}}function KD(e,t,n,i,r,o,a,s){for(var l=[],c=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=0;h<e.length;h++){var f=e[h].label;XD(e[h])||(f.x<t?(u=Math.min(u,f.x),l.push(e[h])):(d=Math.max(d,f.x),c.push(e[h])))}for(h=0;h<e.length;h++){var p=e[h];if(!XD(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;f=p.label;var g=p.linePoints,m=void 0;m="edge"===p.labelAlignTo?f.x<t?g[2][0]-p.labelDistance-a-p.edgeDistance:a+r-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?f.x<t?u-a-p.bleedMargin:a+r-d-p.bleedMargin:f.x<t?f.x-a-p.bleedMargin:a+r-f.x-p.bleedMargin,p.targetTextWidth=m,YD(p,m)}}GD(c,t,n,i,1,r,o,a,s,d),GD(l,t,n,i,-1,r,o,a,s,u);for(h=0;h<e.length;h++){p=e[h];if(!XD(p)&&p.linePoints){f=p.label,g=p.linePoints;var v="edge"===p.labelAlignTo,b=f.style.padding,y=b?b[1]+b[3]:0,_=f.style.backgroundColor?0:y,w=p.rect.width+_,x=g[1][0]-g[2][0];v?f.x<t?g[2][0]=a+p.edgeDistance+w+p.labelDistance:g[2][0]=a+r-p.edgeDistance-w-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+x),g[1][1]=g[2][1]=f.y}}}function YD(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,c=r.overflow,u=o.width+(a?0:l);if(t<u||n){var d=o.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var f=t-l,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;i.setStyle("width",p)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-d)/2}}}function XD(e){return"center"===e.position}function ZD(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*qD,s=i.getLayout("viewRect"),l=i.getLayout("r"),c=s.width,u=s.x,d=s.y,h=s.height;function f(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),g=s.getTextGuideLine(),v=i.getItemModel(e),b=v.getModel("label"),y=b.get("position")||v.get(["emphasis","label","position"]),_=b.get("distanceToLabelLine"),w=b.get("alignTo"),x=Ji(b.get("edgeDistance"),c),C=b.get("bleedMargin"),S=v.getModel("labelLine"),k=S.get("length");k=Ji(k,c);var O=S.get("length2");if(O=Ji(O,c),Math.abs(d.endAngle-d.startAngle)<a)return Object(m["each"])(h.states,f),h.ignore=!0,void(g&&(Object(m["each"])(g.states,f),g.ignore=!0));if(p(h)){var M,D,E,T,L=(d.startAngle+d.endAngle)/2,I=Math.cos(L),A=Math.sin(L);t=d.cx,n=d.cy;var N="inside"===y||"inner"===y;if("center"===y)M=d.cx,D=d.cy,T="center";else{var P=(N?(d.r+d.r0)/2*I:d.r*I)+t,R=(N?(d.r+d.r0)/2*A:d.r*A)+n;if(M=P+3*I,D=R+3*A,!N){var F=P+I*(k+l-d.r),j=R+A*(k+l-d.r),B=F+(I<0?-1:1)*O,z=j;M="edge"===w?I<0?u+x:u+c-x:B+(I<0?-_:_),D=z,E=[[P,R],[F,j],[B,z]]}T=N?"center":"edge"===w?I>0?"right":"left":I>0?"left":"right"}var V=Math.PI,$=0,W=b.get("rotate");if(Object(m["isNumber"])(W))$=W*(V/180);else if("center"===y)$=0;else if("radial"===W||!0===W){var H=I<0?-L+V:-L;$=H}else if("tangential"===W&&"outside"!==y&&"outer"!==y){var U=Math.atan2(I,A);U<0&&(U=2*V+U);var q=A>0;q&&(U=V+U),$=U-V}if(o=!!$,h.x=M,h.y=D,h.rotation=$,h.setStyle({verticalAlign:"middle"}),N){h.setStyle({align:T});var G=h.states.select;G&&(G.x+=h.x,G.y+=h.y)}else{var K=h.getBoundingRect().clone();K.applyTransform(h.getComputedTransform());var Y=(h.style.margin||0)+2.1;K.y-=Y/2,K.height+=Y,r.push({label:h,labelLine:g,position:y,len:k,len2:O,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ie(I,A),linePoints:E,textAlign:T,labelDistance:_,labelAlignTo:w,edgeDistance:x,bleedMargin:C,rect:K,unconstrainedWidth:K.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:N})}})),!o&&e.get("avoidLabelOverlap")&&KD(r,t,n,l,c,h,u,d);for(var g=0;g<r.length;g++){var v=r[g],b=v.label,y=v.labelLine,_=isNaN(b.x)||isNaN(b.y);if(b){b.setStyle({align:v.textAlign}),_&&(Object(m["each"])(b.states,f),b.ignore=!0);var w=b.states.select;w&&(w.x+=b.x,w.y+=b.y)}if(y){var x=v.linePoints;_||!x?(Object(m["each"])(y.states,f),y.ignore=!0):(KS(x,v.minTurnAngle),YS(x,v.surfaceNormal,v.maxSurfaceAngle),y.setShape({points:x}),b.__hostTarget.textGuideLineConfig={anchor:new Ie(x[0][0],x[0][1])})}}}var QD=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new $s;return r.setTextContent(o),r.updateData(t,n,i,!0),r}return p(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,a=e.getItemModel(t),s=a.getModel("emphasis"),l=e.getItemLayout(t),c=Object(m["extend"])(fD(a.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))r.setShape(c);else{if(i){r.setShape(c);var u=o.getShallow("animationType");o.ecModel.ssr?(cc(r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=c.cx,r.originY=c.cy):"scale"===u?(r.shape.r=l.r0,cc(r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),cc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,lc(r,{shape:{endAngle:l.endAngle}},o,t))}else pc(r),lc(r,{shape:c},o,t);r.useStyle(e.getItemVisual(t,"style")),Zl(r,a);var d=(l.startAngle+l.endAngle)/2,h=o.get("selectedOffset"),f=Math.cos(d)*h,p=Math.sin(d)*h,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=Object(m["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},fD(s.getModel("itemStyle"),l)),Object(m["extend"])(r.ensureState("select"),{x:f,y:p,shape:fD(a.getModel(["select","itemStyle"]),l)}),Object(m["extend"])(r.ensureState("blur"),{shape:fD(a.getModel(["blur","itemStyle"]),l)});var v=r.getTextGuideLine(),b=r.getTextContent();v&&Object(m["extend"])(v.ensureState("select"),{x:f,y:p}),Object(m["extend"])(b.ensureState("select"),{x:f,y:p}),Gl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),a=t.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;yc(i,_c(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)i.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new Zg,this.setTextGuideLine(d)),QS(this,JS(r),{stroke:s,opacity:Object(m["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},t}(zg),JD=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return p(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var u=new zg({shape:WD(e,n)});u.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}o.diff(a).add((function(e){var t=new QD(o,e,r);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=a.getItemGraphicEl(t);fc(n,e,t)})).execute(),ZD(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="pie",t}(fv),eE=JD;function tE(e,t,n){t=Object(m["isArray"])(t)&&{coordDimensions:t}||Object(m["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Yw(i,t).dimensions,o=new Gw(r,e);return o.initData(i,n),o}var nE=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),iE=nE,rE=Kr(),oE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iE(m["bind"](this.getData,this),m["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return tE(this,{coordDimensions:["value"],encodeDefaulter:m["curry"](Ad,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=rE(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=ar(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=r[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Mr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Hp),aE=oE;function sE(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(Object(m["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function lE(e){e.registerChartView(eE),e.registerSeriesModel(aE),cb("pie",e.registerAction),e.registerLayout(Object(m["curry"])(HD,"pie")),e.registerProcessor(UD("pie")),e.registerProcessor(sE("pie"))}var cE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){return hx(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Hp),uE=cE,dE=4,hE=function(){function e(){}return e}(),fE=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(t,e),t.prototype.getDefaultShape=function(){return new hE},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]<dE,c=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],d=i[n++];isNaN(u)||isNaN(d)||(c&&!c.contain(u,d)||(a.x=u-r[0]/2,a.y=d-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,c=i[l]-o/2,u=i[l+1]-a/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var d=n[u++],h=n[u++];a=Math.min(d,a),l=Math.max(d,l),s=Math.min(h,s),c=Math.max(h,c)}e=this._rect=new $e(a-r/2,s-o/2,l-a+r,c-s+o)}return e},t}(ss),pE=function(){function e(){this.group=new Fi}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=e.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new fE({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=Ob(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<dE;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var l=Ws(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),gE=pE,mE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=ZM("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new gE:new pM,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(fv),vE=mE,bE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(md),yE=bE,_E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qr).models[0]},t.type="cartesian2dAxis",t}(md);m["mixin"](_E,FC);var wE={show:!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:"#6E7079",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:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},xE=m["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wE),CE=m["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},wE),SE=m["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},CE),kE=m["defaults"]({logBase:10},CE),OE={category:xE,value:CE,time:SE,log:kE},ME={value:1,category:1,time:1,log:1};function DE(e,t,n,i){Object(m["each"])(ME,(function(r,o){var a=Object(m["merge"])(Object(m["merge"])({},OE[o],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return p(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=cd(this),i=n?dd(e):{},r=t.getTheme();Object(m["merge"])(e,r.get(o+"Axis")),Object(m["merge"])(e,this.getDefaultOption()),e.type=EE(e),n&&ud(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=bx.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",EE)}function EE(e){return e.type||(e.data?"category":"value")}var TE=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return m["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),m["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),LE=TE,IE=["x","y"];function AE(e){return"interval"===e.type||"time"===e.type}var NE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IE,t}return p(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(AE(e)&&AE(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,c=(o[1]-r[1])/s,u=r[0]-n[0]*l,d=r[1]-i[0]*c,h=this._transform=[l,0,0,c,u,d];this._invTransform=Ee([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new $e(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return B(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return B(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new $e(n,i,r,o)},t}(LE),PE=NE,RE=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return p(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(kS),FE=RE;function jE(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,c=r.dim,u=i.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],h={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===c?[d[2]-f,d[3]+f]:[d[0]-f,d[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[h.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===c?p[h[l]]:d[0],"x"===c?p[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===c?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?p[h[s]]-p[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),m["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var b=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-b:b,o.z2=1,o}function BE(e){return"cartesian2d"===e.get("coordinateSystem")}function zE(e){var t={xAxisModel:null,yAxisModel:null};return m["each"](t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Qr).models[0];t[i]=o})),t}var VE=Math.log;function $E(e,t,n){var i=Ix.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=SC(e,t),c=l.extent,u=l.fixMin,d=l.fixMax;if("log"===e.type){var h=VE(e.base);c=[VE(c[0])/h,VE(c[1])/h]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:u,fixMax:d});var f=i.getExtent.call(e);u&&(c[0]=f[0]),d&&(c[1]=f[1]);var p=i.getInterval.call(e),g=c[0],m=c[1];if(u&&d)p=(m-g)/a;else if(u){m=c[0]+p*a;while(m<c[1]&&isFinite(m)&&isFinite(c[1]))p=wx(p),m=c[0]+p*a}else if(d){g=c[1]-p*a;while(g>c[0]&&isFinite(g)&&isFinite(c[0]))p=wx(p),g=c[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=wx(p));var b=p*a;m=Math.ceil(c[1]/p)*p,g=er(m-b),g<0&&c[0]>=0?(g=0,m=er(b)):m>0&&c[1]<=0&&(m=0,g=-er(b))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(e,g+p*y,m+p*_),i.setInterval.call(e,p),(y||_)&&i.setNiceExtent.call(e,g+p,m-p)}var WE=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IE,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(m["keys"])(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,c=s.scale;yx(c)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(OC(c,l),yx(c)&&(t=s))}r.length&&(t||(t=r.pop(),OC(t.scale,t.model)),Object(m["each"])(r,(function(e){$E(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};Object(m["each"])(n.x,(function(e){UE(n,"y",e,r)})),Object(m["each"])(n.y,(function(e){UE(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=ad(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(m["each"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),GE(e,t?o.x:o.y)}))}s(),r&&(Object(m["each"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=LC(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),Object(m["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(m["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",Qr).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",Qr).models[0],a=e.gridModel,s=this._coordsList;if(i)t=i.coordinateSystem,Object(m["indexOf"])(s,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(HE(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var c=new FE(t,MC(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=r,c.index=i,r._axesList.push(c),a[t][i]=c,s[t]++}}}this._axesMap=a,Object(m["each"])(a.x,(function(t,n){Object(m["each"])(a.y,(function(r,o){var a="x"+n+"y"+o,s=new PE(a);s.master=i,s.model=e,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(t),s.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(m["each"])(PC(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(m["each"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(BE(e)){var i=zE(e),r=i.xAxisModel,o=i.yAxisModel;if(!HE(r,t)||!HE(o,t))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),c=a.getAxis("y");n(s,l),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(m["each"])(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);Object(m["indexOf"])(t,r)<0&&t.push(r),Object(m["indexOf"])(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),t.eachSeries((function(e){if(BE(e)){var t=zE(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=IE,e}();function HE(e,t){return e.getCoordSysModel()===t}function UE(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)qE(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&qE(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function qE(e){return e&&"category"!==e.type&&"time"!==e.type&&DC(e)}function GE(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}var KE=WE,YE=Math.PI,XE=function(){function e(e,t){this.group=new Fi,this.opt=t,this.axisModel=e,Object(m["defaults"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Fi({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!ZE[e]},e.prototype.add=function(e){ZE[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=cr(t-e);return ur(o)?(r=n>0?"top":"bottom",i="center"):ur(o-YE)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<YE?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),ZE={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(B(s,s,a),B(l,l,a));var u=Object(m["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new tm({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});zm(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var f=t.get(["axisLine","symbolSize"]);Object(m["isString"])(h)&&(h=[h,h]),(Object(m["isString"])(f)||Object(m["isNumber"])(f))&&(f=[f,f]);var p=Db(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],v=f[1];Object(m["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==h[i]&&null!=h[i]){var r=Ob(h[i],-g/2,-v/2,g,v,u.stroke,!0),o=t.r+t.offset,a=c?l:s;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=rT(n,i,t,e),o=aT(n,i,t,e);if(JE(t,o,r),oT(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=ek(Object(m["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));rk(a)}},axisName:function(e,t,n,i){var r=Object(m["retrieve"])(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,f=["start"===s?d[0]-h*u:"end"===s?d[1]+h*u:(d[0]+d[1])/2,nT(s)?e.labelOffset+l*u:0],p=t.get("nameRotate");null!=p&&(p=p*YE/180),nT(s)?o=XE.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=QE(e.rotation,s,p||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=c.getFont(),v=t.get("nameTruncate",!0)||{},b=v.ellipsis,y=Object(m["retrieve"])(e.nameTruncateMaxWidth,v.maxWidth,a),_=new $s({x:f[0],y:f[1],rotation:o.rotation,silent:XE.isLabelSilent(t),style:wc(c,{text:r,font:g,overflow:"truncate",width:y,ellipsis:b,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(nv({el:_,componentModel:t,itemName:r}),_.__fullText=r,_.anid="name",t.get("triggerEvent")){var w=XE.makeAxisEventDataBase(t);w.targetType="axisName",w.name=r,Ws(_).eventData=w}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function QE(e,t,n,i){var r,o,a=cr(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return ur(a-YE/2)?(o=l?"bottom":"top",r="center"):ur(a-1.5*YE)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*YE&&a>YE/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function JE(e,t,n){if(!NC(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(eT(o),eT(c)):tT(o,a)&&(i?(eT(a),eT(u)):(eT(o),eT(c))),!1===r?(eT(s),eT(d)):tT(l,s)&&(r?(eT(l),eT(h)):(eT(s),eT(d)))}}function eT(e){e&&(e.ignore=!0)}function tT(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Ce([]);return Me(r,r,-e.rotation),n.applyTransform(ke([],r,e.getLocalTransform())),i.applyTransform(ke([],r,t.getLocalTransform())),n.intersect(i)}}function nT(e){return"middle"===e||"center"===e}function iT(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(B(a,a,t),B(s,s,t));var u=new tm({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});zm(u.shape,u.style.lineWidth),u.anid=r+"_"+e[l].tickValue,o.push(u)}return o}function rT(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=r.getTicksCoords(),u=iT(c,t.transform,l,Object(m["defaults"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;d<u.length;d++)e.add(u[d]);return u}}function oT(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=i*o.get("length"),c=Object(m["defaults"])(s.getLineStyle(),Object(m["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var d=iT(a[u],t.transform,l,c,"minorticks_"+u),h=0;h<d.length;h++)e.add(d[h])}}function aT(e,t,n,i){var r=n.axis,o=Object(m["retrieve"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),c=(Object(m["retrieve"])(i.labelRotate,a.get("rotate"))||0)*YE/180,u=XE.innerTextLayout(i.rotation,c,i.labelDirection),d=n.getCategories&&n.getCategories(!0),h=[],f=XE.isLabelSilent(n),p=n.get("triggerEvent");return Object(m["each"])(l,(function(o,l){var c="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,v=o.rawLabel,b=a;if(d&&d[c]){var y=d[c];Object(m["isObject"])(y)&&y.textStyle&&(b=new Uc(y.textStyle,a,n.ecModel))}var _=b.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(c),x=new $s({x:w,y:i.labelOffset+i.labelDirection*s,rotation:u.rotation,silent:f,z2:10+(o.level||0),style:wc(b,{text:g,align:b.getShallow("align",!0)||u.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||u.textVerticalAlign,fill:Object(m["isFunction"])(_)?_("category"===r.type?v:"value"===r.type?c+"":c,l):_})});if(x.anid="label_"+c,p){var C=XE.makeAxisEventDataBase(n);C.targetType="axisLabel",C.value=v,C.tickIndex=l,"category"===r.type&&(C.dataIndex=c),Ws(x).eventData=C}t.add(x),x.updateTransform(),h.push(x),e.add(x),x.decomposeTransform()})),h}}var sT=XE;function lT(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cT(n,e,t),n.seriesInvolved&&dT(n,e),n}function cT(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];Object(m["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=bT(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model,u=c.getModel("tooltip",i);if(Object(m["each"])(n.getAxes(),Object(m["curry"])(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var d="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),f=n.getTooltipAxes(u.get(["axisPointer","axis"]));(d||h)&&Object(m["each"])(f.baseAxes,Object(m["curry"])(p,!h||"cross",d)),h&&Object(m["each"])(f.otherAxes,Object(m["curry"])(p,"cross",!1))}}function p(i,s,c){var d=c.model.getModel("axisPointer",r),h=d.get("show");if(h&&("auto"!==h||i||vT(d))){null==s&&(s=d.get("triggerTooltip")),d=i?uT(c,u,r,t,i,s):d;var f=d.get("snap"),p=bT(c.model),g=s||f||"category"===c.type,m=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:d,triggerTooltip:s,involveSeries:g,snap:f,useHandle:vT(d),seriesModels:[],linkGroup:null};l[p]=m,e.seriesInvolved=e.seriesInvolved||g;var v=hT(o,c);if(null!=v){var b=a[v]||(a[v]={axesInfo:{}});b.axesInfo[p]=m,b.mapper=o[v].mapper,m.linkGroup=b}}}}))}function uT(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(m["each"])(s,(function(e){l[e]=Object(m["clone"])(a.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===r){var u=a.get(["label","show"]);if(c.show=null==u||u,!o){var d=l.lineStyle=a.get("crossStyle");d&&Object(m["defaults"])(c,d.textStyle)}}return e.model.getModel("axisPointer",new Uc(l,n,i))}function dT(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&Object(m["each"])(e.coordSysAxesInfo[bT(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function hT(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(fT(o[i+"AxisId"],n.id)||fT(o[i+"AxisIndex"],n.componentIndex)||fT(o[i+"AxisName"],n.name))return r}}function fT(e,t){return"all"===e||Object(m["isArray"])(e)&&Object(m["indexOf"])(e,t)>=0||e===t}function pT(e){var t=gT(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=vT(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function gT(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[bT(e)]}function mT(e){var t=gT(e);return t&&t.axisPointerModel}function vT(e){return!!e.get(["handle","show"])}function bT(e){return e.type+"||"+e.id}var yT={},_T=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&pT(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=mT(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){yT[e]=t},t.getAxisPointerClass=function(e){return e&&yT[e]},t.type="axis",t}(qp),wT=_T,xT=Kr();function CT(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=s.length,d=xT(e).splitAreaColors,h=m["createHashMap"](),f=0;if(d)for(var p=0;p<c.length;p++){var g=d.get(c[p].tickValue);if(null!=g){f=(g+(u-1)*p)%u;break}}var v=r.toGlobalCoord(c[0].coord),b=a.getAreaStyle();s=m["isArray"](s)?s:[s];for(p=1;p<c.length;p++){var y=r.toGlobalCoord(c[p].coord),_=void 0,w=void 0,x=void 0,C=void 0;r.isHorizontal()?(_=v,w=l.y,x=y-_,C=l.height,v=_+x):(_=l.x,w=v,x=l.width,C=y-w,v=w+C);var S=c[p-1].tickValue;null!=S&&h.set(S,f),t.add(new Ss({anid:null!=S?"area_"+S:null,shape:{x:_,y:w,width:x,height:C},style:m["defaults"]({fill:s[f]},b),autoBatch:!0,silent:!0})),f=(f+1)%u}xT(e).splitAreaColors=h}}}function ST(e){xT(e).splitAreaColors=null}var kT=["axisLine","axisTickLabel","axisName"],OT=["splitArea","splitLine","minorSplitLine"],MT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return p(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Fi,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=jE(a,t),l=new sT(t,m["extend"]({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(yx(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},s));m["each"](kT,l.add,l),this._axisGroup.add(l.getGroup()),m["each"](OT,(function(e){t.get([e,"show"])&&DT[e](this,this._axisGroup,t,a)}),this);var c=r&&"changeAxisOrder"===r.type&&r.isInitSort;c||Km(o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){ST(this)},t.type="cartesianAxis",t}(wT),DT={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=m["isArray"](s)?s:[s];for(var l=i.coordinateSystem.getRect(),c=r.isHorizontal(),u=0,d=r.getTicksCoords({tickModel:o}),h=[],f=[],p=a.getLineStyle(),g=0;g<d.length;g++){var v=r.toGlobalCoord(d[g].coord);c?(h[0]=v,h[1]=l.y,f[0]=v,f[1]=l.y+l.height):(h[0]=l.x,h[1]=v,f[0]=l.x+l.width,f[1]=v);var b=u++%s.length,y=d[g].tickValue,_=new tm({anid:null!=y?"line_"+d[g].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:m["defaults"]({stroke:s[b]},p),silent:!0});zm(_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=r.isHorizontal(),c=r.getMinorTicksCoords();if(c.length)for(var u=[],d=[],h=a.getLineStyle(),f=0;f<c.length;f++)for(var p=0;p<c[f].length;p++){var g=r.toGlobalCoord(c[f][p].coord);l?(u[0]=g,u[1]=s.y,d[0]=g,d[1]=s.y+s.height):(u[0]=s.x,u[1]=g,d[0]=s.x+s.width,d[1]=g);var m=new tm({anid:"minor_line_"+c[f][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:h,silent:!0});zm(m.shape,h.lineWidth),t.add(m)}},splitArea:function(e,t,n,i){CT(e,t,n,i)}},ET=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="xAxis",t}(MT),TT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ET.type,t}return p(t,e),t.type="yAxis",t}(MT),LT=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return p(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Ss({shape:e.coordinateSystem.getRect(),style:Object(m["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(qp),IT={offset:0};function AT(e){e.registerComponentView(LT),e.registerComponentModel(yE),e.registerCoordinateSystem("cartesian2d",KE),DE(e,"x",_E,IT),DE(e,"y",_E,IT),e.registerComponentView(ET),e.registerComponentView(TT),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function NT(e){fw(AT),e.registerSeriesModel(uE),e.registerChartView(vE),e.registerLayout(ZM("scatter"))}function PT(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();m["each"](r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=RT(r)?r:FT(i)}))})),t.each((function(e){var r=m["find"](n[e],(function(e){return RT(e)}))||FT(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function RT(e){return!isNaN(e[0])&&!isNaN(e[1])}function FT(e){return[e.cx,e.cy]}function jT(e){var t=e.polar;if(t){m["isArray"](t)||(t=[t]);var n=[];m["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],m["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}m["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var BT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),s=this._data;function l(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=Mb(e.getItemVisual(t,"symbolSize")),r=Ob(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function c(t,n,i,r,o,s){i.removeAll();for(var c=0;c<n.length-1;c++){var u=l(r,o);u&&(u.__dimIdx=c,t[c]?(u.setPosition(t[c]),a[s?"initProps":"updateProps"](u,{x:n[c][0],y:n[c][1]},e,o)):u.setPosition(n[c]),i.add(u))}}function u(e){return m["map"](e,(function(e){return[i.cx,i.cy]}))}o.diff(s).add((function(t){var n=o.getItemLayout(t);if(n){var i=new Kg,r=new Zg,a={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),cc(i,a,e,t),cc(r,a,e,t);var s=new Fi,l=new Fi;s.add(r),s.add(i),s.add(l),c(r.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),a=i.childAt(1),l=i.childAt(2),u={shape:{points:o.getItemLayout(t)}};u.shape.points&&(c(r.shape.points,u.shape.points,l,o,t,!1),pc(a),pc(r),lc(r,u,e),lc(a,u,e),o.setItemGraphicEl(t,i))})).remove((function(e){r.remove(s.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=o.getItemVisual(t,"style"),c=l.fill;r.add(e),i.useStyle(m["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Zl(i,n,"lineStyle"),Zl(a,n,"areaStyle");var u=n.getModel("areaStyle"),d=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=d,m["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=i&&d})),a.useStyle(m["defaults"](u.getAreaStyle(),{fill:c,opacity:.7,decal:l.decal}));var h=n.getModel("emphasis"),f=h.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof gs){var i=e.style;e.useStyle(m["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},l))}else e.useStyle(l),e.setColor(c),e.style.strokeNoScale=!0;var r=e.ensureState("emphasis");r.style=m["clone"](f);var a=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==a||isNaN(a))&&(a=""),yc(e,_c(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,inheritColor:c,defaultOpacity:l.opacity})})),Gl(e,h.get("focus"),h.get("blurScope"),h.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(fv),zT=BT,VT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iE(m["bind"](this.getData,this),m["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return tE(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),a=this.getData().getName(e),s=""===a?this.name:a,l=Mp(this,e);return pp("section",{header:s,sortBlocks:!0,blocks:m["map"](o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return pp("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(m["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Hp),$T=VT,WT=OE.value;function HT(e,t){return m["defaults"]({show:t},e)}var UT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),d=m["map"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=m["defaults"]({color:d.color},a));var f=m["merge"](m["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:h,triggerEvent:u},!1);if(m["isString"](l)){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else m["isFunction"](l)&&(f.name=l(f.name,f));var g=new Uc(f,null,this.ecModel);return m["mixin"](g,FC.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:m["merge"]({lineStyle:{color:"#bbb"}},WT.axisLine),axisLabel:HT(WT.axisLabel,!1),axisTick:HT(WT.axisTick,!1),splitLine:HT(WT.splitLine,!0),splitArea:HT(WT.splitArea,!0),indicator:[]},t}(md),qT=UT,GT=["axisLine","axisTickLabel","axisName"],KT=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=m["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new sT(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));m["each"](i,(function(e){m["each"](GT,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),c=o.get("show"),u=a.get("color"),d=s.get("color"),h=m["isArray"](u)?u:[u],f=m["isArray"](d)?d:[d],p=[],g=[];if("circle"===i)for(var v=n[0].getTicksCoords(),b=t.cx,y=t.cy,_=0;_<v.length;_++){if(l){var w=E(p,h,_);p[w].push(new yg({shape:{cx:b,cy:y,r:v[_].coord}}))}if(c&&_<v.length-1){w=E(g,f,_);g[w].push(new Wg({shape:{cx:b,cy:y,r0:v[_].coord,r:v[_+1].coord}}))}}else{var x,C=m["map"](n,(function(e,n){var i=e.getTicksCoords();return x=null==x?i.length-1:Math.min(i.length-1,x),m["map"](i,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(_=0;_<=x;_++){for(var k=[],O=0;O<n.length;O++)k.push(C[O][_]);if(k[0]&&k.push(k[0].slice()),l){w=E(p,h,_);p[w].push(new Zg({shape:{points:k}}))}if(c&&S){w=E(g,f,_-1);g[w].push(new Kg({shape:{points:k.concat(S)}}))}S=k.slice().reverse()}}var M=a.getLineStyle(),D=s.getAreaStyle();m["each"](g,(function(e,t){this.group.add(jm(e,{style:m["defaults"]({stroke:"none",fill:f[t%f.length]},D),silent:!0}))}),this),m["each"](p,(function(e,t){this.group.add(jm(e,{style:m["defaults"]({fill:"none",stroke:h[t%h.length]},M),silent:!0}))}),this)}function E(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(qp),YT=KT,XT=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return p(t,e),t}(kS),ZT=XT,QT=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(m["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new ZT(n,new Ix);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<a&&(r=c,s=l,a=u)}return[s,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Ji(n[0],i),this.cy=Ji(n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Object(m["isString"])(a)||Object(m["isNumber"])(a))&&(a=[0,a]),this.r0=Ji(a[0],o),this.r=Ji(a[1],o),Object(m["each"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;Object(m["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();Object(m["each"])(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new Ix;o.setExtent(0,r),o.setInterval(1),Object(m["each"])(n,(function(e,t){$E(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),JT=QT;function eL(e){e.registerCoordinateSystem("radar",JT),e.registerComponentModel(qT),e.registerComponentView(YT),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function tL(e){fw(eL),e.registerChartView(zT),e.registerSeriesModel($T),e.registerLayout(PT),e.registerProcessor(UD("radar")),e.registerPreprocessor(jT)}var nL="\0_ec_interaction_mutex";function iL(e,t,n){var i=aL(e);i[t]=n}function rL(e,t,n){var i=aL(e),r=i[t];r===n&&(i[t]=null)}function oL(e,t){return!!aL(e)[t]}function aL(e){return e[nL]||(e[nL]={})}Q_({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},m["noop"]);var sL=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Object(m["bind"])(n._mousedownHandler,n),r=Object(m["bind"])(n._mousemoveHandler,n),o=Object(m["bind"])(n._mouseupHandler,n),a=Object(m["bind"])(n._mousewheelHandler,n),s=Object(m["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(m["defaults"])(Object(m["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return p(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ve(e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&uL("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!oL(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,a=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&me(e.event),cL(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ve(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=uL("zoomOnMouseWheel",e,this._opt),n=uL("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,a=e.offsetY;if(0!==i&&(t||n)){if(t){var s=r>3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;lL(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);lL(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!oL(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;lL(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(q);function lL(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(me(i.event),cL(e,t,n,i,r))}function cL(e,t,n,i,r){r.isAvailableBehavior=Object(m["bind"])(uL,null,n,i),e.trigger(t,r)}function uL(e,t,n){var i=n[e];return!e||i&&(!Object(m["isString"])(i)||t.event[i+"Key"])}var dL=sL;function hL(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function fL(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var c=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var pL,gL={axisPointer:1,tooltip:1,brush:1};function mL(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!gL.hasOwnProperty(i.mainType)&&r&&r.model!==n}function vL(e){if(Object(m["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var bL={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},yL=Object(m["keys"])(bL),_L={"alignment-baseline":"textBaseline","stop-color":"stopColor"},wL=Object(m["keys"])(_L),xL=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=vL(e);this._defsUsePending=[];var i=new Fi;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),DL(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(IL(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=NL(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(c=VL(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=i;i=new Fi,i.add(h),h.scaleX=h.scaleY=c.scale,h.x=c.x,h.y=c.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new Ss({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:c,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var c=pL[s];if(c&&Object(m["hasOwn"])(pL,s)){a=c.call(this,e,t);var u=e.getAttribute("name");if(u){var d={name:u,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var h=CL[s];if(h&&Object(m["hasOwn"])(CL,s)){var f=h.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new us({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});OL(t,n),DL(e,n,this._defsUsePending,!1,!1),EL(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){pL={g:function(e,t){var n=new Fi;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Ss;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new yg;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new tm;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new xg;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=ML(i));var r=new Kg({shape:{points:n||[]},silent:!0});return OL(t,r),DL(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=ML(i));var r=new Zg({shape:{points:n||[]},silent:!0});return OL(t,r),DL(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new gs;return OL(t,n),DL(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Fi;return OL(t,a),DL(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Fi;return OL(t,a),DL(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=fg(n);return OL(t,i),DL(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),CL={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new gm(t,n,i,r);return SL(e,o),kL(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new vm(t,n,i);return SL(e,r),kL(e,r),r}};function SL(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function kL(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};BL(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function OL(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(m["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function ML(e){for(var t=NL(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function DL(e,t,n,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(FL(e,t),BL(e,a,s),i||zL(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=LL(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=LL(o,"stroke",a.stroke,n)),Object(m["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),Object(m["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(m["map"])(NL(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function EL(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}var TL=/^url\(\s*#(.*?)\)/;function LL(e,t,n,i){var r=n&&n.match(TL);if(!r)return"none"===n&&(n=null),n;var o=Object(m["trim"])(r[1]);i.push([e,t,o])}function IL(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var AL=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function NL(e){return e.match(AL)||[]}var PL=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,RL=Math.PI/180;function FL(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(PL,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=NL(a);switch(r=r||xe(),s){case"translate":Oe(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":De(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Me(r,r,-parseFloat(l[0])*RL);break;case"skewX":var c=Math.tan(parseFloat(l[0])*RL);ke(r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*RL);ke(r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var jL=/([^\s:;]+)\s*:\s*([^:;]+)/g;function BL(e,t,n){var i=e.getAttribute("style");if(i){var r;jL.lastIndex=0;while(null!=(r=jL.exec(i))){var o=r[1],a=Object(m["hasOwn"])(bL,o)?bL[o]:null;a&&(t[a]=r[2]);var s=Object(m["hasOwn"])(_L,o)?_L[o]:null;s&&(n[s]=r[2])}}}function zL(e,t,n){for(var i=0;i<yL.length;i++){var r=yL[i],o=e.getAttribute(r);null!=o&&(t[bL[r]]=o)}for(i=0;i<wL.length;i++){r=wL[i],o=e.getAttribute(r);null!=o&&(n[_L[r]]=o)}}function VL(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}function $L(e,t){var n=new xL;return n.parse(e,t)}var WL=Object(m["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),HL=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(m["createHashMap"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=vL(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=qL(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&$L(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(m["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new Fi;i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,a=t.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,c=void 0,u=void 0,d=void 0;if(null!=r?(l=0,u=r):a&&(l=a.x,u=a.width),null!=o?(c=0,d=o):a&&(c=a.y,d=a.height),null==l||null==c){var h=n.getBoundingRect();null==l&&(l=h.x,u=h.width),null==c&&(c=h.y,d=h.height)}s=this._boundingRect=new $e(l,c,u,d)}if(a){var f=VL(a,s);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new Ss({shape:s.plain()}));var p=[];return Object(m["each"])(t.named,(function(e){null!=WL.get(e.svgNodeTagLower)&&(p.push(e),UL(e.el))})),{root:i,boundingRect:s,named:p}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function UL(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function qL(e){var t=[],n=Object(m["createHashMap"])();return Object(m["each"])(e,(function(e){if(null==e.namedFrom){var i=new eS(e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}for(var GL=[126,25],KL="南海诸岛",YL=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],XL=0;XL<YL.length;XL++)for(var ZL=0;ZL<YL[XL].length;ZL++)YL[XL][ZL][0]/=10.5,YL[XL][ZL][1]/=-14,YL[XL][ZL][0]+=GL[0],YL[XL][ZL][1]+=GL[1];function QL(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===KL)return;t.push(new JC(KL,m["map"](YL,(function(e){return{type:"polygon",exterior:e}})),GL))}}var JL={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function eI(e,t){if("china"===e){var n=JL[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var tI=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function nI(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:tI[0]})}var iI="name",rI=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(m["createHashMap"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=aI(t)}return e.prototype.load=function(e,t){t=t||iI;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:oI(i)})}var r=Object(m["createHashMap"])(),o=[];return Object(m["each"])(n.regions,(function(t){var n=t.name;e&&Object(m["hasOwn"])(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new $e(0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?rS(i,e):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return QL(n,t),Object(m["each"])(t,(function(e){var t=e.name;eI(n,e),nI(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function oI(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function aI(e){return Object(m["isString"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var sI=Object(m["createHashMap"])(),lI={registerMap:function(e,t,n){if(t.svg){var i=new HL(e,t.svg);sI.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new rI(e,r,n);sI.set(e,i)}},getGeoResource:function(e){return sI.get(e)},getMapForUser:function(e){var t=sI.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=sI.get(e);if(i)return i.load(t,n)}},cI=["rect","circle","line","ellipse","polygon","polyline","path"],uI=m["createHashMap"](cI),dI=m["createHashMap"](cI.concat(["g"])),hI=m["createHashMap"](cI.concat(["g"])),fI=Kr();function pI(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function gI(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var mI=function(){function e(e){var t=new Fi;this.uid=Gc("ec_map_draw"),this._controller=new dL(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Fi),t.add(this._svgGroup=new Fi)}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=s.getTransformInfo(),d=u.raw,h=u.roam,f=!l.childAt(0)||r;f?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):lc(c,h,e);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=m["createHashMap"](),n=m["createHashMap"](),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function u(e){for(var t=[],n=!l&&s&&s.project,i=0;i<e.length;++i){var r=c(e[i],n);r&&t.push(r)}return t}function d(e){return{shape:{points:u(e)}}}i.removeAll(),m["each"](e.geo.regions,(function(r){var u=r.name,h=t.get(u),f=n.get(u)||{},p=f.dataIdx,g=f.regionModel;h||(h=t.set(u,new Fi),i.add(h),p=a?a.indexOfName(u):null,g=e.isGeo?o.getRegionModel(u):a?a.getItemModel(p):null,n.set(u,{dataIdx:p,regionModel:g}));var v=[],b=[];m["each"](r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=xI(t,l)),m["each"](t,(function(e){v.push(new Kg(d(e)))}))}else{var n=e.points;l&&(n=xI(n,l,!0)),m["each"](n,(function(e){b.push(new Zg(d(e)))}))}}));var y=c(r.getCenter(),s&&s.project);function _(t,n){if(t.length){var i=new dm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(i),vI(e,i,p,g),bI(e,i,u,g,o,p,y),n&&(gI(i),m["each"](i.states,gI))}}_(v),_(b,!0)})),t.each((function(t,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;yI(e,t,i,s,o,a),_I(e,t,i,s,o),wI(e,t,i,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=m["createHashMap"](),r=!1;m["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,l=t.el,c=a?a.indexOfName(n):null,u=o.getRegionModel(n);if(null!=uI.get(s)&&l instanceof ea&&vI(e,l,c,u),l instanceof ea&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=hI.get(s)&&bI(e,l,n,u,o,c,null),yI(e,l,n,u,o,c),_I(e,l,n,u,o),null!=dI.get(s))){var d=wI(e,l,n,u,o);"self"===d&&(r=!0);var h=i.get(n)||i.set(n,[]);h.push(l)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){kl(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=lI.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=lI.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,hL(o,e.dx,e.dy),n.dispatchAction(m["extend"](s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,fL(o,e.scale,e.originX,e.originY),n.dispatchAction(m["extend"](s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!mL(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=fI(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function vI(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=pI(r),c=pI(o),u=pI(s),d=pI(a),h=e.data;if(h){var f=h.getItemVisual(n,"style"),p=h.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=gy(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=d,kl(t)}function bI(e,t,n,i,r,o,a){var s=e.data,l=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),u=s&&s.getItemLayout(o);if(l||c||u&&u.showLabel){var d=l?n:o,h=void 0;(!s||o>=0)&&(h=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;yc(t,_c(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},f);var p=t.getTextContent();if(p&&(fI(p).ignore=p.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function yI(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Ws(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _I(e,t,n,i,r){e.data||nv({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function wI(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Gl(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&ec(t,r,n),a}function xI(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),m["each"](e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}var CI=mI,SI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new CI(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new yg({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:el+1)});if(!s){var c=e.mainSeries.getData(),u=i.getName(n),d=c.indexOfName(u),h=i.getItemModel(n),f=h.getModel("label"),p=c.getItemGraphicEl(d);yc(l,_c(h),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){yl(l,e)}}r.add(l)}}}))},t.type="map",t}(fv),kI=SI,OI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return p(t,e),t.prototype.getInitialData=function(e){for(var t=tE(this,{coordDimensions:["value"],encodeDefaulter:m["curry"](Ad,this)}),n=m["createHashMap"](),i=[],r=0,o=t.count();r<o;r++){var a=t.getName(r);n.set(a,!0)}var s=lI.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return m["each"](s.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var c=a[l].originalData.indexOfName(o),u=i.mapDimension("value");isNaN(a[l].originalData.get(u,c))||s.push(a[l].name)}return pp("section",{header:s.join(", "),noHeader:!s.length,blocks:[pp("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Ob(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Hp),MI=OI;function DI(e,t){var n={};return m["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,c=-1/0,u=n[a].length,d=0;d<u;d++)l=Math.min(l,n[a][d]),c=Math.max(c,n[a][d]),s+=n[a][d];return o="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:o}))}function EI(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),m["each"](t,(function(e,t){for(var n=DI(m["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function TI(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};m["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(t,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var LI=B,II=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ui,n._rawTransformable=new ui,n.name=t,n}return p(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new $e(e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new $e(e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new $e(e,t,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Ji(e[0],t.getWidth()),Ji(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=B([],i,e),n=B([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Se(this.transform||(this.transform=[]),t.transform||xe()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Ee(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new ui;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?LI(n,e,i):b(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?LI([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=AI(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=AI(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(ui);function AI(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var NI=II,PI={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},RI=["lng","lat"],FI=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=RI,r.type="geo",r._nameCoordMap=m["createHashMap"](),r.map=n;var o,a=i.projection,s=lI.load(n,i.nameMap,i.nameProperty),l=lI.getGeoResource(n),c=(r.resourceType=l?l.type:null,r.regions=s.regions),u=PI[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var d=0;d<c.length;d++){var h=c[d].getBoundingRect(a);o=o||h.clone(),o.union(h)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:m["retrieve2"](i.aspectScale,u.aspectScale),r._invertLongitute=!a&&u.invertLongitute,r}return p(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new $e(e,t,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(m["isString"](e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=jI(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=jI(t);return i===this?i.pointToData(n):null},t}(NI);function jI(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Qr).models[0]||{}).coordinateSystem:null}m["mixin"](FI,NI);var BI=FI;function zI(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],c=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var u=function(e,t,n,a){for(var s=n-e,l=a-t,c=0;c<=100;c++){var u=c/100,d=o.project([e+s*u,t+l*u]);z(i,i,d),V(r,r,d)}};u(a,s,l,s),u(l,s,l,c),u(l,c,a,c),u(a,c,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var d,h,f,p=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),b=t.getHeight(),y=p.width/p.height*this.aspectScale,_=!1;if(g&&m&&(d=[Ji(g[0],v),Ji(g[1],b)],h=Ji(m,Math.min(v,b)),isNaN(d[0])||isNaN(d[1])||isNaN(h)||(_=!0)),_)f={},y>1?(f.width=h,f.height=h/y):(f.height=h,f.width=h*y),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var w=e.getBoxLayoutParams();w.aspect=y,f=ad(w,{width:v,height:b})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function VI(e,t){m["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var $I=function(){function e(){this.dimensions=RI}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new BI(o+r,o,m["extend"]({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=zI,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),m["each"](r,(function(e,r){var o=m["map"](e,(function(e){return e.get("nameMap")})),a=new BI(r,r,m["extend"]({nameMap:m["mergeAll"](o)},i(e[0])));a.zoomLimit=m["retrieve"].apply(null,m["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=zI,a.resize(e[0],t),m["each"](e,(function(e){e.coordinateSystem=a,VI(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=m["createHashMap"](),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=lI.load(t,n,i);return m["each"](s.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r},e}(),WI=new $I,HI=WI,UI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t,n){var i=lI.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),Mr(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=HI.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=m["reduce"](t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new Uc(i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),m["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Uc(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return m["isFunction"](i)?(r.status=t,i(r)):m["isString"](i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(md),qI=UI;function GI(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function KI(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(GI(e,s),i)),null!=a){if(n){var l=n.min||0,c=n.max||1/0;a=Math.max(Math.min(r*a,c),l)/r}e.scaleX*=a,e.scaleY*=a;var u=(t.originX-e.x)*(a-1),d=(t.originY-e.y)*(a-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(GI(e,s),i),e.setZoom(a*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var YI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return p(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new CI(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;hb(e.target,(function(e){return null!=(t=Ws(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Ws(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(qp),XI=YI;function ZI(e,t,n){lI.registerMap(e,t,n)}function QI(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(m["each"])(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var a=[];Object(m["each"])(i,(function(e,t){i[t]&&a.push(t)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",HI),e.registerComponentModel(qI),e.registerComponentView(XI),e.registerImpl("registerMap",ZI),e.registerImpl("getMap",(function(e){return lI.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=KI(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&Object(m["each"])(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function JI(e){fw(QI),e.registerChartView(kI),e.registerSeriesModel(MI),e.registerLayout(TI),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,EI),cb("map",e.registerAction)}function eA(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[t];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function tA(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){aA(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=sA(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function nA(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function iA(e){return arguments.length?e:hA}function rA(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function oA(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aA(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function sA(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=a.hierNode.modifier,d=s.hierNode.modifier;while(s=lA(s),o=cA(o),s&&o){r=lA(r),a=cA(a),r.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-c+i(s,o);h>0&&(dA(uA(s,e,n),e,h),c+=h,l+=h),d+=s.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=a.hierNode.modifier}s&&!lA(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!cA(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-u,n=e)}return n}function lA(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function cA(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function uA(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function dA(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function hA(e,t){return e.parentNode===t.parentNode?1:2}var fA=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),pA=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new fA},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=Ji(t.forkPosition,1),d=[];d[l]=r[l],d[c]=r[c]+(a[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var f=n[h];e.moveTo(f[0],f[1]),d[l]=f[l],e.lineTo(d[0],d[1])}},t}(ss),gA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Fi,n}return p(t,e),t.prototype.init=function(e,t){this._controller=new dL(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup,a=e.get("layout");"radial"===a?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var s=this._data;i.diff(s).add((function(t){mA(i,t)&&vA(i,t,null,o,e)})).update((function(t,n){var r=s.getItemGraphicEl(n);mA(i,t)?vA(i,t,r,o,e):r&&wA(s,n,r,o,e)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&wA(s,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];ca(i,r,o);var a=this._min,s=this._max;o[0]-r[0]===0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=e.coordinateSystem=new NI;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!mL(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){hL(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){fL(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,r=t.getZoom(),o=(r-1)*n+1;return o/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(fv);function mA(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function vA(e,t,n,i,r){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?l:"#fff",u=e.tree.root,d=a.parentNode===u?a:a.parentNode||a,h=e.getItemGraphicEl(d.dataIndex),f=d.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:f,g=a.getLayout();o?(n=new cM(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,lc(n,{x:g.x,y:g.y},r);var v=n.getSymbolPath();if("radial"===r.get("layout")){var b=u.children[0],y=b.getLayout(),_=b.children.length,w=void 0,x=void 0;if(g.x===y.x&&!0===a.isExpand&&b.children.length){var C={x:(b.children[0].getLayout().x+b.children[_-1].getLayout().x)/2,y:(b.children[0].getLayout().y+b.children[_-1].getLayout().y)/2};w=Math.atan2(C.y-y.y,C.x-y.x),w<0&&(w=2*Math.PI+w),x=C.x<y.x,x&&(w-=Math.PI)}else w=Math.atan2(g.y-y.y,g.x-y.x),w<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(x=g.x<y.x,x&&(w-=Math.PI)):(x=g.x>y.x,x||(w-=Math.PI));var S=x?"left":"right",k=s.getModel("label"),O=k.get("rotate"),M=O*(Math.PI/180),D=v.getTextContent();D&&(v.setTextConfig({position:k.get("position")||S,rotation:null==O?-w:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),T="relative"===E?m["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():null;T&&(Ws(n).focus=T),bA(r,a,u,n,p,f,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Xs||yl(n.__edge,t)}})}function bA(e,t,n,i,r,o,a,s){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),d=e.getOrient(),h=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new am({shape:xA(u,d,h,r,r)})),lc(g,{shape:xA(u,d,h,o,a)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,b=[],y=0;y<v.length;y++){var _=v[y].getLayout();b.push([_.x,_.y])}g||(g=i.__edge=new pA({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:d,forkPosition:f}})),lc(g,{shape:{parentPoint:[a.x,a.y],childPoints:b}},e)}}else 0;g&&("polyline"!==c||t.isExpand)&&(g.useStyle(m["defaults"]({strokeNoScale:!0,fill:null},p)),Zl(g,l,"lineStyle"),kl(g),s.add(g))}function yA(e,t,n,i,r){var o=t.tree.root,a=_A(o,e),s=a.source,l=a.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(s.dataIndex),d=u.__edge,h=c.__edge||(!1===s.isExpand||1===s.children.length?d:void 0),f=i.get("edgeShape"),p=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);h&&("curve"===f?dc(h,{shape:xA(p,g,m,l,l),style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}):"polyline"===f&&"orthogonal"===i.get("layout")&&dc(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(h)},removeOpt:r}))}}function _A(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function wA(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),a=e.tree.root,s=_A(a,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};dc(n,{x:s.x+1,y:s.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){yA(t,e,i,r,l)})),yA(o,e,i,r,l)}function xA(e,t,n,i,r){var o,a,s,l,c,u,d,h;if("radial"===e){c=i.rawX,d=i.rawY,u=r.rawX,h=r.rawY;var f=rA(c,d),p=rA(c,d+(h-d)*n),g=rA(u,h+(d-h)*n),m=rA(u,h);return{x1:f.x||0,y1:f.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,d=i.y,u=r.x,h=r.y,"LR"!==t&&"RL"!==t||(o=c+(u-c)*n,a=d,s=u+(c-u)*n,l=h),"TB"!==t&&"BT"!==t||(o=c,a=d+(h-d)*n,s=u,l=h+(d-h)*n),{x1:c,y1:d,x2:u,y2:h,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var CA=gA,SA=Kr();function kA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,IA(t,n,e),Object(m["each"])(n,(function(n){Object(m["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(m["curry"])(OA,e))}))})),t.wrapMethod("cloneShallow",Object(m["curry"])(DA,e)),Object(m["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(m["curry"])(MA,e))})),Object(m["assert"])(n[t.dataType]===t)}function OA(e,t){if(LA(this)){var n=Object(m["extend"])({},SA(this).datas);n[this.dataType]=t,IA(t,n,e)}else AA(t,this.dataType,SA(this).mainData,e);return t}function MA(e,t){return e.struct&&e.struct.update(),t}function DA(e,t){return Object(m["each"])(SA(t).datas,(function(n,i){n!==t&&AA(n.cloneShallow(),i,t,e)})),t}function EA(e){var t=SA(this).mainData;return null==e||null==t?t:SA(t).datas[e]}function TA(){var e=SA(this).mainData;return null==e?[{data:e}]:Object(m["map"])(Object(m["keys"])(SA(e).datas),(function(t){return{type:t,data:SA(e).datas[t]}}))}function LA(e){return SA(e).mainData===e}function IA(e,t,n){SA(e).datas={},Object(m["each"])(t,(function(t,i){AA(t,i,e,n)}))}function AA(e,t,n,i){SA(n).datas[t]=e,SA(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=EA,e.getLinkedDataAll=TA}var NA=kA,PA=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){m["isFunction"](e)&&(n=t,t=e,e=null),e=e||{},m["isString"](e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),RA=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],a=1;function s(e,t){var n=e.value;a=Math.max(a,m["isArray"](n)?n.length:1),o.push(e);var i=new PA(zr(e.name,""),r);t?FA(i,t):r.root=i,r._nodes.push(i);var l=e.children;if(l)for(var c=0;c<l.length;c++)s(l[c],i)}s(t),r.root.updateDepthAndHeight(0);var l=Yw(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new Gw(l,n);return c.initData(o),i&&i(c),NA({mainData:c,struct:r,structAttr:"tree"}),r.update(),r},e}();function FA(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var jA=RA;function BA(e,t,n){if(e&&m["indexOf"](t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(m["isString"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function zA(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function VA(e,t){var n=zA(e);return m["indexOf"](n,t)>=0}function $A(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var WA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return p(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Uc(n,this,this.ecModel),r=jA.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return pp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=$A(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Hp),HA=WA;function UA(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}while(i=o.pop())t(i,n)}function qA(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function GA(e,t){e.eachSeriesByType("tree",(function(e){KA(e,t)}))}function KA(e,t){var n=oA(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=iA((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=iA());var s=e.getData().tree.root,l=s.children[0];if(l){eA(s),UA(l,tA,a),s.hierNode.modifier=-l.hierNode.prelim,qA(l,nA);var c=l,u=l,d=l;qA(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:a(c,u)/2,f=h-c.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(u.getLayout().x+h+f),g=o/(d.depth-1||1),qA(l,(function(e){m=(e.getLayout().x+f)*p,v=(e.depth-1)*g;var t=rA(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var b=e.getOrient();"RL"===b||"LR"===b?(g=o/(u.getLayout().x+h+f),p=r/(d.depth-1||1),qA(l,(function(e){v=(e.getLayout().x+f)*g,m="LR"===b?(e.depth-1)*p:r-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==b&&"BT"!==b||(p=r/(u.getLayout().x+h+f),g=o/(d.depth-1||1),qA(l,(function(e){m=(e.getLayout().x+f)*p,v="TB"===b?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function YA(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(m["extend"])(r,i)}))}))}function XA(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=KI(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function ZA(e){e.registerChartView(CA),e.registerSeriesModel(HA),e.registerLayout(GA),e.registerVisual(YA),XA(e)}var QA=["treemapZoomToNode","treemapRender","treemapMove"];function JA(e){for(var t=0;t<QA.length;t++)e.registerAction({type:QA[t],update:"updateView"},m["noop"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=BA(e,i,t);if(r){var o=t.getViewRoot();o&&(e.direction=VA(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}function eN(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var r=Hd(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var tN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};nN(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Uc({itemStyle:r},this,t);i=e.levels=iN(i,t);var a=m["map"](i||[],(function(e){return new Uc(e,o,t)}),this),s=jA.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return pp("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=$A(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},m["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=m["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){eN(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",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:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Hp);function nN(e){var t=0;m["each"](e.children,(function(e){nN(e);var n=e.value;m["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;m["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),m["isArray"](e.value)?e.value[0]=n:e.value=n}function iN(e,t){var n=Or(t.get("color")),i=Or(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],m["each"](e,(function(e){var t=new Uc(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}var rN=tN,oN=8,aN=8,sN=5,lN=function(){function e(e){this.group=new Fi,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,a,s,l,c,i),sd(o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=zr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*oN,t.emptyItemWidth);t.totalWidth+=a+aN,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=od(t.pos,t.box),d=t.totalWidth,h=t.renderList,f=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],v=g.node,b=g.width,y=g.text;d>u.width&&(d-=b-l,b=l,y=null);var _=new Kg({shape:{points:cN(s,0,b,c,p===h.length-1,0===p)},style:Object(m["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new $s({style:wc(r,{text:y})}),textConfig:{position:"inside"},z2:1e4*el,onclick:Object(m["curry"])(a,v)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=wc(o,{text:y}),_.ensureState("emphasis").style=f,Gl(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),uN(_,e,v),s+=b+aN}},e.prototype.remove=function(){this.group.removeAll()},e}();function cN(e,t,n,i,r,o){var a=[[r?e:e-sN,t],[e+n,t],[e+n,t+i],[r?e:e-sN,t+i]];return!o&&a.splice(2,0,[e+n+sN,t+i/2]),!r&&a.push([e,t+i/2]),a}function uN(e,t,n){Ws(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&$A(n,t)}}var dN=lN,hN=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function fN(){return new hN}var pN=Fi,gN=Ss,mN=3,vN="label",bN="upperLabel",yN=10*el,_N=2*el,wN=3*el,xN=wo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),CN=function(e){var t=xN(e);return t.stroke=t.fill=t.lineWidth=null,t},SN=Kr(),kN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=ON(),n}return p(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(m["indexOf"])(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],a=BA(i,o,e),s=i&&i.type,l=e.layoutInfo,c=!this._oldTree,u=this._storage,d="treemapRootToNode"===s&&a&&u?{rootNodeGroup:u.nodeGroup[a.node.getRawIndex()],direction:i.direction}:null,h=this._giveContainerGroup(l),f=e.get("animation"),p=this._doRender(h,e,d);!f||c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(h,p,e,d),this._resetController(n),this._renderBreadcrumb(e,n,a)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new pN,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=ON(),a=ON(),s=this._storage,l=[];function c(e,i,r,c){return MN(t,a,s,n,o,l,e,i,r,c)}d(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var u=h(s);return this._oldTree=i,this._storage=a,{lastsForAnimation:o,willDeleteEls:u,renderFinally:f};function d(e,t,n,i,r){function o(e){return e.getId()}function a(o,a){var s=null!=o?e[o]:null,l=null!=a?t[a]:null,u=c(s,l,n,r);u&&d(s&&s.viewChildren||[],l&&l.viewChildren||[],u,i,r+1)}i?(t=e,Object(m["each"])(e,(function(e,t){!e.isRemoved()&&a(t,t)}))):new vw(t,e,o,o).add(a).update(a).remove(Object(m["curry"])(a,null)).execute()}function h(e){var t=ON();return e&&Object(m["each"])(e,(function(e,n){var i=t[n];Object(m["each"])(e,(function(e){e&&(i.push(e),SN(e).willDelete=!0)}))})),t}function f(){Object(m["each"])(u,(function(e){Object(m["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(m["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(m["isFunction"])(r)?0:r)||0,s=(Object(m["isFunction"])(o)?null:o)||"cubicOut",l=fN();Object(m["each"])(t.willDeleteEls,(function(e,t){Object(m["each"])(e,(function(e,n){if(!e.invisible){var r,o=e.parent,c=SN(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;c.willDelete||(u=c.nodeWidth/2,d=c.nodeHeight/2),r="nodeGroup"===t?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,a,0,s)}}))})),Object(m["each"])(this._storage,(function(e,n){Object(m["each"])(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof Fi?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=Object(m["extend"])({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,a,0,s))}))}),this),this._state="animating",l.finished(Object(m["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||(t=this._controller=new dL(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",Object(m["bind"])(this._onPan,this)),t.on("zoom",Object(m["bind"])(this._onZoom,this)));var n=new $e(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,i){return n.contain(t,i)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>mN||Math.abs(e.dy)>mN)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new $e(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=xe();Oe(s,s,[-t,-n]),De(s,s,[e.scale,e.scale]),Oe(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Ju(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new dN(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(VA(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ON(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(fv);function ON(){return{nodeGroup:[],background:[],content:[]}}function MN(e,t,n,i,r,o,a,s,l,c){if(a){var u=a.getLayout(),d=e.getData(),h=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),u&&u.isInView){var f=u.width,p=u.height,g=u.borderWidth,v=u.invisible,b=a.getRawIndex(),y=s&&s.getRawIndex(),_=a.viewChildren,w=u.upperHeight,x=_&&_.length,C=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),k=h.getModel(["blur","itemStyle"]),O=h.getModel(["select","itemStyle"]),M=C.get("borderRadius")||0,D=V("nodeGroup",pN);if(D){if(l.add(D),D.x=u.x||0,D.y=u.y||0,D.markRedraw(),SN(D).nodeWidth=f,SN(D).nodeHeight=p,u.isAboveViewRoot)return D;var E=V("background",gN,c,_N);E&&R(D,E,x&&u.upperLabelHeight);var T=h.getModel("emphasis"),L=T.get("focus"),I=T.get("blurScope"),A=T.get("disabled"),N="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(x)Jl(D)&&Ql(D,!1),E&&(Ql(E,!A),d.setItemGraphicEl(a.dataIndex,E),Kl(E,N,I));else{var P=V("content",gN,c,wN);P&&F(D,P),E.disableMorphing=!0,E&&Jl(E)&&Ql(E,!1),Ql(D,!A),d.setItemGraphicEl(a.dataIndex,D),Kl(D,N,I)}return D}}}function R(t,n,i){var r=Ws(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:M}),v)j(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=CN(C);l.fill=s;var c=xN(S);c.fill=S.get("borderColor");var u=xN(k);u.fill=k.get("borderColor");var d=xN(O);if(d.fill=O.get("borderColor"),i){var h=f-2*g;B(n,s,o.opacity,{x:g,y:0,width:h,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,kl(n)}t.add(n)}function F(t,n){var i=Ws(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(f-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:M}),v)j(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,c=CN(C);c.fill=l,c.decal=s.decal;var u=xN(S),d=xN(k),h=xN(O);B(n,l,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=d,n.ensureState("select").style=h,kl(n)}t.add(n)}function j(e){!e.invisible&&o.push(e)}function B(t,n,i,r){var o=h.getModel(r?bN:vN),s=zr(h.get("name"),null),l=o.getShallow("show");yc(t,_c(h,r?bN:vN),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var d=c.style,f=Object(m["normalizeCssArray"])(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:t.shape.height)-f[0]-f[2],0);d.width===e&&d.height===n||c.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",z(d,r,u);var p=c.getState("emphasis");z(p?p.style:null,r,u)}}function z(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function V(e,i,o,a){var s=null!=y&&n[e][y],l=r[e];return s?(n[e][y]=null,$(l,s)):v||(s=new i,s instanceof ea&&(s.z2=DN(o,a)),W(l,s)),t[e][b]=s}function $(e,t){var n=e[b]={};t instanceof pN?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(m["extend"])({},t.shape)}function W(e,t){var n=e[b]={},o=a.parentNode,s=t instanceof Fi;if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!s}}function DN(e,t){return e*yN+t}var EN=kN,TN=m["each"],LN=m["isObject"],IN=-1,AN=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=m["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=UN[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(RN(r),NN(r)):"category"===n?r.categories?PN(r):RN(r,!0):(m["assert"]("linear"!==n||r.dataExtent),RN(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return m["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return m["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){m["isObject"](e)?m["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=m["isArray"](t)?[]:m["isObject"](t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&TN(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(m["isArray"](e))e=e.slice();else{if(!LN(e))return[];var t=[];TN(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||m["isString"](s)&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(qN(u[1],e,c[1]))return o}else if(c[1]===1/0){if(qN(u[0],c[0],e))return o}else if(qN(u[0],c[0],e)&&qN(u[1],e,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function d(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:BN("color"),getColorMapper:function(){var e=this.option;return m["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),zN.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=Qt["fastLerp"](t,e.parsedVisual,i),r?i:Qt["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Qt["stringify"](Qt["fastLerp"](e,this.option.parsedVisual),"rgba")},category:zN,piecewise:function(e,t){var n=WN.call(this,t);return null==n&&(n=Qt["stringify"](Qt["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:VN}},colorHue:FN((function(e,t){return Qt["modifyHSL"](e,t)})),colorSaturation:FN((function(e,t){return Qt["modifyHSL"](e,null,t)})),colorLightness:FN((function(e,t){return Qt["modifyHSL"](e,null,null,t)})),colorAlpha:FN((function(e,t){return Qt["modifyAlpha"](e,t)})),decal:{applyVisual:BN("decal"),_normalizedToVisual:{linear:null,category:zN,piecewise:null,fixed:null}},opacity:{applyVisual:BN("opacity"),_normalizedToVisual:$N([0,1])},liftZ:{applyVisual:BN("liftZ"),_normalizedToVisual:{linear:VN,category:VN,piecewise:VN,fixed:VN}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:jN,category:zN,piecewise:function(e,t){var n=WN.call(this,t);return null==n&&(n=jN.call(this,e)),n},fixed:VN}},symbolSize:{applyVisual:BN("symbolSize"),_normalizedToVisual:$N([0,1])}},e}();function NN(e){var t=e.pieceList;e.hasSpecialVisual=!1,m["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function PN(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(TN(t,(function(e,t){n[e]=t})),!m["isArray"](i)){var r=[];m["isObject"](i)?TN(i,(function(e,t){var i=n[t];r[null!=i?i:IN]=e})):r[IN]=i,i=HN(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function RN(e,t){var n=e.visual,i=[];m["isObject"](n)?TN(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),HN(e,i)}function FN(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:$N([0,1])}}function jN(e){var t=this.option.visual;return t[Math.round(Qi(e,[0,1],[0,t.length-1],!0))]||{}}function BN(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function zN(e){var t=this.option.visual;return t[this.option.loop&&e!==IN?e%t.length:e]}function VN(){return this.option.visual[0]}function $N(e){return{linear:function(t){return Qi(t,e,this.option.visual,!0)},category:zN,piecewise:function(t,n){var i=WN.call(this,n);return null==i&&(i=Qi(t,e,this.option.visual,!0)),i},fixed:VN}}function WN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=AN.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function HN(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=m["map"](t,(function(e){var t=Qt["parse"](e);return t||[0,0,0,1]}))),t}var UN={linear:function(e){return Qi(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=AN.findPieceIndex(e,t,!0);if(null!=n)return Qi(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?IN:t},fixed:m["noop"]};function qN(e,t,n){return e?t<=n:t<n}var GN=AN,KN="itemStyle",YN=Kr(),XN={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||ZN(n,{},e.getViewRoot().getAncestors(),e)}};function ZN(e,t,n,i){var r=e.getModel(),o=e.getLayout(),a=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel(KN),c=QN(l,t,i),u=a.ensureUniqueItemVisual(e.dataIndex,"style"),d=l.get("borderColor"),h=l.get("borderColorSaturation");null!=h&&(s=JN(c),d=eP(h,s)),u.stroke=d;var f=e.viewChildren;if(f&&f.length){var p=nP(e,r,o,l,c,f);Object(m["each"])(f,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=rP(r,c,e,t,p,i);ZN(e,o,n,i)}}))}else s=JN(c),u.fill=s}}function QN(e,t,n){var i=Object(m["extend"])({},t),r=n.designatedVisualItemStyle;return Object(m["each"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function JN(e){var t=tP(e,"color");if(t){var n=tP(e,"colorAlpha"),i=tP(e,"colorSaturation");return i&&(t=Object(Qt["modifyHSL"])(t,null,null,i)),n&&(t=Object(Qt["modifyAlpha"])(t,n)),t}}function eP(e,t){return null!=t?Object(Qt["modifyHSL"])(t,null,null,e):null}function tP(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function nP(e,t,n,i,r,o){if(o&&o.length){var a=iP(t,"color")||null!=r.color&&"none"!==r.color&&(iP(t,"colorAlpha")||iP(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};"color"!==d.type||"index"!==u&&"id"!==u?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new GN(d);return YN(h).drColorMappingBy=u,h}}}function iP(e,t){var n=e.get(t);return Object(m["isArray"])(n)&&n.length?{name:t,range:n}:null}function rP(e,t,n,i,r,o){var a=Object(m["extend"])({},t);if(r){var s=r.type,l="color"===s&&YN(r).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(c)}return a}var oP=Math.max,aP=Math.min,sP=m["retrieve"],lP=m["each"],cP=["itemStyle","borderWidth"],uP=["itemStyle","gapWidth"],dP=["upperLabel","show"],hP=["upperLabel","height"],fP={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=ad(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],c=Ji(sP(s.width,l[0]),r),u=Ji(sP(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],f=BA(i,h,e),p="treemapRender"===d||"treemapMove"===d?i.rootRect:null,g=e.getViewRoot(),v=zA(g);if("treemapMove"!==d){var b="treemapZoomToNode"===d?wP(e,f,g,c,u):p?[p.width,p.height]:[c,u],y=a.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var _={squareRatio:a.squareRatio,sort:y,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]};g.setLayout(w),pP(g,_,!1,0),w=g.getLayout(),lP(v,(function(e,t){var n=(v[t+1]||g).getValue();e.setLayout(m["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var x=e.getData().tree.root;x.setLayout(xP(s,p,f),!0),e.setLayoutInfo(s),CP(x,new $e(-s.x,-s.y,r,o),v,g,0)}};function pP(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(cP),c=s.get(uP)/2,u=SP(s),d=Math.max(l,u),h=l-c,f=d-c;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:u},!0),r=oP(r-2*h,0),o=oP(o-h-f,0);var p=r*o,g=gP(e,s,p,t,n,i);if(g.length){var m={x:h,y:f,width:r,height:o},v=aP(r,o),b=1/0,y=[];y.area=0;for(var _=0,w=g.length;_<w;){var x=g[_];y.push(x),y.area+=x.getLayout().area;var C=yP(y,v,t.squareRatio);C<=b?(_++,b=C):(y.area-=y.pop().getLayout().area,_P(y,v,m,c,!1),v=aP(m.width,m.height),y.length=y.area=0,b=1/0)}if(y.length&&_P(y,v,m,c,!0),!n){var S=s.get("childrenVisibleMin");null!=S&&p<S&&(n=!0)}for(_=0,w=g.length;_<w;_++)pP(g[_],t,n,i+1)}}}function gP(e,t,n,i,r,o){var a=e.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];a=m["filter"](a,(function(e){return!e.isRemoved()})),vP(a,s);var c=bP(t,a,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=mP(t,n,c.sum,s,a),0===c.sum)return e.viewChildren=[];for(var u=0,d=a.length;u<d;u++){var h=a[u].getValue()/c.sum*n;a[u].setLayout({area:h})}return l&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0),e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}function mP(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var c=r["asc"===i?a-l-1:l].getValue();c/n*t<o&&(s=l,n-=c)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}function vP(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function bP(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var a,s=e.get("visualDimension");return t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],lP(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function yP(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;o<s;o++)a=e[o].getLayout().area,a&&(a<r&&(r=a),a>i&&(i=a));var l=e.area*e.area,c=t*t*n;return l?oP(c*i/l,l/(c*r)):1/0}function _P(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],c=n[s[o]],u=t?e.area/t:0;(r||u>n[l[a]])&&(u=n[l[a]]);for(var d=0,h=e.length;d<h;d++){var f=e[d],p={},g=u?f.getLayout().area/u:0,m=p[l[a]]=oP(u-2*i,0),v=n[s[o]]+n[l[o]]-c,b=d===h-1||v<g?v:g,y=p[l[o]]=oP(b-2*i,0);p[s[a]]=n[s[a]]+aP(i,m/2),p[s[o]]=c+aP(i,y/2),c+=b,f.setLayout(p,!0)}n[s[a]]+=u,n[l[a]]-=u}function wP(e,t,n,i,r){var o,a=(t||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,c=l*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var u=0,d=o.children,h=0,f=d.length;h<f;h++)u+=d[h].getValue();var p=a.getValue();if(0===p)return s;c*=u/p;var g=o.getModel(),m=g.get(cP),v=Math.max(m,SP(g));c+=4*m*m+(3*m+v)*Math.pow(c,.5),c>lr&&(c=lr),a=o}c<l&&(c=l);var b=Math.pow(c/l,.5);return[i*b,r*b]}function xP(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;while(s){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function CP(e,t,n,i,r){var o=e.getLayout(),a=n[r],s=a&&a===e;if(!(a&&!s||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(o),isAboveViewRoot:s},!0);var l=new $e(t.x-o.x,t.y-o.y,t.width,t.height);lP(e.viewChildren||[],(function(e){CP(e,l,n,i,r+1)}))}}function SP(e){return e.get(dP)?e.get(hP):0}function kP(e){e.registerSeriesModel(rN),e.registerChartView(EN),e.registerVisual(XN),e.registerLayout(fP),JA(e)}function OP(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){Object(m["isNumber"])(i)&&(i=o[i]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(i))return!1}return!0}))}))}function MP(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=a.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){Object(m["isString"])(o)&&(o=r["ec-"+o]);var a=n.getItemVisual(o,"style"),s=i.ensureUniqueItemVisual(e,"style");Object(m["extend"])(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)i.setItemVisual(e,l[c],n.getItemVisual(o,l[c]))}}))}))}function DP(e){return e instanceof Array||(e=[e,e]),e}function EP(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=DP(e.get("edgeSymbol")),r=DP(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=DP(i.getShallow("symbol",!0)),a=DP(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(m["extend"])(l,s),l.stroke){case"source":var c=r.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=r.node2.getVisual("style");l.stroke=c&&c.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var TP="--\x3e",LP=function(e){return e.get("autoCurveness")||null},IP=function(e,t){var n=LP(e),i=20,r=[];if(m["isNumber"](n))i=n;else if(m["isArray"](n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=r},AP=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(TP)},NP=function(e){var t=e.split(TP);return[t[0],t[2],t[1]].join(TP)},PP=function(e,t){var n=AP(e.node1,e.node2,t);return t.__edgeMap[n]},RP=function(e,t){var n=FP(AP(e.node1,e.node2,t),t),i=FP(AP(e.node2,e.node1,t),t);return n+i},FP=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function jP(e){LP(e)&&(e.__curvenessList=[],e.__edgeMap={},IP(e))}function BP(e,t,n,i){if(LP(n)){var r=AP(e,t,n),o=n.__edgeMap,a=o[NP(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function zP(e,t,n,i){var r=LP(t),o=m["isArray"](r);if(!r)return null;var a=PP(e,t);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var c=RP(e,t);IP(t,c),e.lineStyle=e.lineStyle||{};var u=AP(e.node1,e.node2,t),d=t.__curvenessList,h=o||c%2?0:1;if(a.isForward)return d[h+s];var f=NP(u),p=FP(f,t),g=d[s+p+h];return i?o?r&&0===r[0]?(p+h)%2?g:-g:((p%2?0:1)+h)%2?g:-g:(p+h)%2?g:-g:d[s+p+h]}function VP(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),$P(n,e)}}function $P(e,t){e.eachEdge((function(e,n){var i=m["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-zP(e,t,n,!0),0),r=y(e.node1.getLayout()),o=y(e.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(a)}))}function WP(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];Object(m["each"])(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var c=i.get(r[l],o);isNaN(c)||(s=!0),a.push(c)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}$P(i.graph,e)}else t&&"none"!==t||VP(e)}))}function HP(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,r=t.getZoom(),o=(r-1)*n+1;return o/i}function UP(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var qP=Math.PI,GP=[];function KP(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=e.getData(),s=a.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,d=a.count();if(a.setLayout({cx:l,cy:c}),d){if(n){var h=r.pointToData(i),f=h[0],p=h[1],g=[f-l,p-c];I(g,g),L(g,g,u),n.setLayout([l+g[0],c+g[1]],!0);var v=e.get(["circular","rotateLabel"]);XP(n,v,l,c)}YP[t](e,s,a,u,l,c,d),s.eachEdge((function(t,n){var i,r=m["retrieve3"](t.getModel().get(["lineStyle","curveness"]),zP(t,e,n),0),o=y(t.node1.getLayout()),a=y(t.node2.getLayout()),s=(o[0]+a[0])/2,u=(o[1]+a[1])/2;+r&&(r*=3,i=[l*r+s*(1-r),c*r+u*(1-r)]),t.setLayout([o,a,i])}))}}}var YP={value:function(e,t,n,i,r,o,a){var s=0,l=n.getSum("value"),c=2*Math.PI/(l||a);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;s+=n,e.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,i,r,o,a){var s=0;GP.length=a;var l=HP(e);t.eachNode((function(e){var t=UP(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=qP/2),GP[e.dataIndex]=n,s+=2*n}));var c=(2*qP-s)/a/2,u=0;t.eachNode((function(e){var t=c+GP[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+r,i*Math.sin(u)+o]),u+=t}))}};function XP(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel(),a=o.get(["label","rotate"])||0,s=r.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-i,l[0]-n);c<0&&(c=2*Math.PI+c);var u=l[0]<n;u&&(c-=Math.PI);var d=u?"left":"right";s.setTextConfig({rotation:-c,position:d,origin:"center"});var h=s.ensureState("emphasis");m["extend"](h.textConfig||(h.textConfig={}),{position:d})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function ZP(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&KP(e,"symbolSize")}))}var QP=x;function JP(e,t,n){for(var i=e,r=t,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var d=i[u];d.p||(d.p=v(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=y(d.p),d.edges=null}var h,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){h=e},afterStep:function(e){f=e},step:function(e){h&&h(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,u=a.n2;C(t,u.p,s.p);var d=S(t)-a.d,p=u.w/(s.w+u.w);isNaN(p)&&(p=0),I(t,t),!s.fixed&&QP(s.p,s.p,t,p*d*g),!u.fixed&&QP(u.p,u.p,t,-(1-p)*d*g)}}for(o=0;o<n;o++){var m=i[o];m.fixed||(C(t,l,m.p),QP(m.p,m.p,t,c*g))}for(o=0;o<n;o++){s=i[o];for(var v=o+1;v<n;v++){u=i[v];C(t,u.p,s.p);d=S(t);0===d&&(_(t,Math.random()-.5,Math.random()-.5),d=1);var y=(s.rep+u.rep)/d/d;!s.fixed&&QP(s.pp,s.pp,t,y),!u.fixed&&QP(u.pp,u.pp,t,-y)}}var w=[];for(o=0;o<n;o++){m=i[o];m.fixed||(C(w,m.p,m.pp),QP(m.p,m.p,w,g),b(m.pp,m.p))}g*=.992;var x=g<.01;f&&f(i,r,x),e&&e(x)}}}function eR(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&KP(e,"value"):VP(e);var l=r.getDataExtent("value"),c=o.getDataExtent("value"),u=a.get("repulsion"),d=a.get("edgeLength"),h=m["isArray"](u)?u:[u,u],f=m["isArray"](d)?d:[d,d];f=[f[1],f[0]];var p=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=Qi(e,l,h);return isNaN(i)&&(i=(h[0]+h[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=Qi(t,c,f);isNaN(o)&&(o=(f[0]+f[1])/2);var a=r.getModel(),s=m["retrieve3"](r.getModel().get(["lineStyle","curveness"]),-zP(r,e,n,!0),0);return{n1:p[r.node1.dataIndex],n2:p[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),v=t.getBoundingRect(),y=JP(p,g,{rect:v,gravity:a.get("gravity"),friction:a.get("friction")});y.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&b(e[n].p,i.getNodeByIndex(n).getLayout())})),y.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||i.getNodeByIndex(a).setLayout(e[a].p),n[r.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var l=t[a],c=i.getEdgeByIndex(a),u=l.n1.p,d=l.n2.p,h=c.getLayout();h=h?h.slice():[],h[0]=h[0]||[],h[1]=h[1]||[],b(h[0],u),b(h[1],d),+l.curveness&&(h[2]=[(u[0]+d[0])/2-(u[1]-d[1])*l.curveness,(u[1]+d[1])/2-(d[0]-u[0])*l.curveness]),c.setLayout(h)}})),e.forceLayout=y,e.preservedPoints=n,y.step()}else e.forceLayout=null}))}function tR(e,t,n){var i=Object(m["extend"])(e.getBoxLayoutParams(),{aspect:n});return ad(i,{width:t.getWidth(),height:t.getHeight()})}function nR(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),a=[],s=[];ca(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),c=tR(e,t,l);isNaN(l)&&(a=[c.x,c.y],s=[c.x+c.width,c.y+c.height]);var u=s[0]-a[0],d=s[1]-a[1],h=c.width,f=c.height,p=e.coordinateSystem=new NI;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(a[0],a[1],u,d),p.setViewRect(c.x,c.y,h,f),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var iR=tm.prototype,rR=am.prototype,oR=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}p(t,e)})(oR);function aR(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var sR=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oR},t.prototype.buildPath=function(e,t){aR(t)?iR.buildPath.call(this,e,t):rR.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return aR(this.shape)?iR.pointAt.call(this,e):rR.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=aR(t)?[t.x2-t.x1,t.y2-t.y1]:rR.tangentAt.call(this,e);return I(n,n)},t}(ss),lR=sR,cR=["fromSymbol","toSymbol"];function uR(e){return"_"+e+"Type"}function dR(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=Mb(r),c=Db(a||0,l),u=Ob(i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,s);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=e,u}}function hR(e){var t=new lR({name:"line",subPixelOptimize:!0});return fR(t.shape,e),t}function fR(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var pR=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return p(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),o=hR(r);o.shape.percent=0,cc(o,{shape:{percent:1}},i,t),this.add(o),Object(m["each"])(cR,(function(n){var i=dR(n,e,t);this.add(i),this[uR(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};fR(a.shape,o),lc(r,a,i,t),Object(m["each"])(cR,(function(n){var i=e.getItemVisual(t,n),r=uR(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=dR(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var h=e.getItemModel(t),f=h.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),a=h.getModel(["blur","lineStyle"]).getLineStyle(),s=h.getModel(["select","lineStyle"]).getLineStyle(),c=f.get("disabled"),u=f.get("focus"),d=f.get("blurScope"),l=_c(h)}var p=e.getItemVisual(t,"style"),g=p.stroke;r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,Object(m["each"])(cR,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=p.opacity;for(var n=0;n<Qs.length;n++){var i=Qs[n],o=r.getState(i);if(o){var a=o.style||{},s=t.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}t.markRedraw()}}),this);var v=i.getRawValue(t);yc(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==v?e.getName(t):isFinite(v)?er(v):v)+""});var b=this.getTextContent();if(b){var y=l.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=y.get("position")||"middle";var _=y.get("distance");Object(m["isArray"])(_)||(_=[_,_]),b.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Gl(this,u,d,c)},t.prototype.highlight=function(){Dl(this)},t.prototype.downplay=function(){El(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");fR(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=e.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),c=a.pointAt(s),u=C([],c,l);if(I(u,u),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=r*s,t.markRedraw()),n&&(n.setPosition(c),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,h=void 0,f=i.__labelDistance,p=f[0]*r,g=f[1]*r,m=s/2,v=a.tangentAt(m),b=[v[1],-v[0]],y=a.pointAt(m);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(w=Math.PI+w),i.rotation=w}var x=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-g,h="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=g,h="top";break;default:x=0,h="middle"}switch(i.__position){case"end":i.x=u[0]*p+c[0],i.y=u[1]*g+c[1],d=u[0]>.8?"left":u[0]<-.8?"right":"center",h=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*p+l[0],i.y=-u[1]*g+l[1],d=u[0]>.8?"right":u[0]<-.8?"left":"center",h=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*_+l[0],i.y=l[1]+x,d=v[0]<0?"right":"left",i.originX=-p*_,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=y[0],i.y=y[1]+x,d="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*_+c[0],i.y=c[1]+x,d=v[0]>=0?"right":"left",i.originX=p*_,i.originY=-x;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Fi),gR=pR,mR=function(){function e(e){this.group=new Fi,this._LineCtor=e||gR}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=bR(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bR(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||vR(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(_R(r)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(_R(i)){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);_R(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function vR(e){return e.animators&&e.animators.length>0}function bR(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:_c(t)}}function yR(e){return isNaN(e[0])||isNaN(e[1])}function _R(e){return e&&!yR(e[0])&&!yR(e[1])}var wR=mR,xR=[],CR=[],SR=[],kR=Vt,OR=R,MR=Math.abs;function DR(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){xR[0]=kR(r[0],o[0],a[0],u),xR[1]=kR(r[1],o[1],a[1],u);var d=MR(OR(xR,t)-l);d<s&&(s=d,i=u)}for(var h=0;h<32;h++){var f=i+c;CR[0]=kR(r[0],o[0],a[0],i),CR[1]=kR(r[1],o[1],a[1],i),SR[0]=kR(r[0],o[0],a[0],f),SR[1]=kR(r[1],o[1],a[1],f);d=OR(CR,t)-l;if(MR(d)<.01)break;var p=OR(SR,t)-l;c/=2,d<0?p>=0?i+=c:i-=c:p>=0?i-=c:i+=c}return i}function ER(e,t){var n=[],i=Ut,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[y(l[0]),y(l[1])],l[2]&&l.__original.push(y(l[2])));var d=l.__original;if(null!=l[2]){if(b(r[0],d[0]),b(r[1],d[2]),b(r[2],d[1]),c&&"none"!==c){var h=UP(e.node1),f=DR(r,d[0],h*t);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){h=UP(e.node2),f=DR(r,d[1],h*t);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}b(l[0],r[0]),b(l[1],r[2]),b(l[2],r[1])}else{if(b(o[0],d[0]),b(o[1],d[1]),C(a,o[1],o[0]),I(a,a),c&&"none"!==c){h=UP(e.node1);x(o[0],o[0],a,h*t)}if(u&&"none"!==u){h=UP(e.node2);x(o[1],o[1],a,-h*t)}b(l[0],o[0]),b(l[1],o[1])}}))}function TR(e){return"view"===e.type}var LR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){var n=new pM,i=new wR,r=this.group;this._controller=new dL(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(TR(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):lc(s,l,e)}ER(e.getGraph(),HP(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();a.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var f=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(f){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),KP(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),$P(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Ws(r).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Ws(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){XP(e,p,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!mL(t,n,e)})),TR(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){hL(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){fL(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),ER(e.getGraph(),HP(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=HP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){ER(e.getGraph(),HP(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(fv),IR=LR;function AR(e){return"_EC_"+e}var NR=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[AR(e)]){var i=new PR(e,t);return i.hostGraph=this,this.nodes.push(i),n[AR(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[AR(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(m["isNumber"](e)&&(e=this.nodes[e]),m["isNumber"](t)&&(t=this.nodes[t]),e instanceof PR||(e=i[AR(e)]),t instanceof PR||(t=i[AR(t)]),e&&t){var o=e.id+"-"+t.id,a=new RR(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof PR&&(e=e.id),t instanceof PR&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof PR||(t=this._nodesMap[AR(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null)){var a=[t];while(a.length){var s=a.shift(),l=s[r];for(o=0;o<l.length;o++){var c=l[o],u=c.node1===s?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,s))return;a.push(u),u.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),PR=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),RR=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function FR(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}m["mixin"](PR,FR("hostGraph","data")),m["mixin"](RR,FR("hostGraph","edgeData"));var jR=NR;function BR(e,t,n,i,r){for(var o=new jR(i),a=0;a<e.length;a++)o.addNode(m["retrieve"](e[a].id,e[a].name,a),a);var s=[],l=[],c=0;for(a=0;a<t.length;a++){var u=t[a],d=u.source,h=u.target;o.addEdge(d,h,c)&&(l.push(u),s.push(m["retrieve"](zr(u.id,null),d+" > "+h)),c++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=hx(e,n);else{var g=fh.get(p),v=g&&g.dimensions||[];m["indexOf"](v,"value")<0&&v.concat(["value"]);var b=Yw(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;f=new Gw(b,n),f.initData(e)}var y=new Gw(["value"],n);return y.initData(l,s),r&&r(f,y),NA({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var zR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new iE(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Mr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){jP(this);var o=BR(i,n,this,!0,a);return m["each"](o.edges,(function(e){BP(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Uc.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pp("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=Tp({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=m["map"](this.option.categories||[],(function(e){return null!=e.value?e:m["extend"]({value:0},e)})),t=new Gw(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Hp),VR=zR,$R={type:"graphRoam",event:"graphRoam",update:"none"};function WR(e){e.registerChartView(IR),e.registerSeriesModel(VR),e.registerProcessor(OP),e.registerVisual(MP),e.registerVisual(EP),e.registerLayout(WP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,ZP),e.registerLayout(eR),e.registerCoordinateSystem("graphView",{dimensions:NI.dimensions,create:nR}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},m["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},m["noop"]),e.registerAction($R,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=KI(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var HR=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),UR=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return p(t,e),t.prototype.getDefaultShape=function(){return new HR},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(ss),qR=UR;function GR(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Ji(n[0],t.getWidth()),s=Ji(n[1],t.getHeight()),l=Ji(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function KR(e,t){var n=null==e?"":e+"";return t&&(Object(m["isString"])(t)?n=t.replace("{value}",n):Object(m["isFunction"])(t)&&(n=t(e))),n}var YR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=GR(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),d=u?lD:zg,h=c.get("show"),f=c.getModel("lineStyle"),p=f.get("width"),g=[s,l];Aa(g,!a),s=g[0],l=g[1];for(var v=l-s,b=s,y=[],_=0;h&&_<i.length;_++){var w=Math.min(Math.max(i[_][0],0),1);l=s+v*w;var x=new d({shape:{startAngle:b,endAngle:l,cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[_][1]}),x.setStyle(f.getLineStyle(["color","width"])),y.push(x),b=l}y.reverse(),Object(m["each"])(y,(function(e){return o.add(e)}));var C=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,C,r,s,l,a,p),this._renderTitleAndDetail(e,t,n,C,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,C,r,s,l,a,p)},t.prototype._renderTicks=function(e,t,n,i,r,o,a,s,l){for(var c,u,d=this.group,h=r.cx,f=r.cy,p=r.r,g=+e.get("min"),v=+e.get("max"),b=e.getModel("splitLine"),y=e.getModel("axisTick"),_=e.getModel("axisLabel"),w=e.get("splitNumber"),x=y.get("splitNumber"),C=Ji(b.get("length"),p),S=Ji(y.get("length"),p),k=o,O=(a-o)/w,M=O/x,D=b.getModel("lineStyle").getLineStyle(),E=y.getModel("lineStyle").getLineStyle(),T=b.get("distance"),L=0;L<=w;L++){if(c=Math.cos(k),u=Math.sin(k),b.get("show")){var I=T?T+l:l,A=new tm({shape:{x1:c*(p-I)+h,y1:u*(p-I)+f,x2:c*(p-C-I)+h,y2:u*(p-C-I)+f},style:D,silent:!0});"auto"===D.stroke&&A.setStyle({stroke:i(L/w)}),d.add(A)}if(_.get("show")){I=_.get("distance")+T;var N=KR(er(L/w*(v-g)+g),_.get("formatter")),P=i(L/w),R=c*(p-C-I)+h,F=u*(p-C-I)+f,j=_.get("rotate"),B=0;"radial"===j?(B=-k+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===j?B=-k-Math.PI/2:Object(m["isNumber"])(j)&&(B=j*Math.PI/180),0===B?d.add(new $s({style:wc(_,{text:N,x:R,y:F,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0})):d.add(new $s({style:wc(_,{text:N,x:R,y:F,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:R,originY:F,rotation:B}))}if(y.get("show")&&L!==w){I=y.get("distance");I=I?I+l:l;for(var z=0;z<=x;z++){c=Math.cos(k),u=Math.sin(k);var V=new tm({shape:{x1:c*(p-I)+h,y1:u*(p-I)+f,x2:c*(p-S-I)+h,y2:u*(p-S-I)+f},silent:!0,style:E});"auto"===E.stroke&&V.setStyle({stroke:i((L+z/x)/w)}),d.add(V),k+=M}k-=M}else k+=O}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var c=this.group,u=this._data,d=this._progressEls,h=[],f=e.get(["pointer","show"]),p=e.getModel("progress"),g=p.get("show"),v=e.getData(),b=v.mapDimension("value"),y=+e.get("min"),_=+e.get("max"),w=[y,_],x=[o,a];function C(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Ji(a.get("width"),r.r),l=Ji(a.get("length"),r.r),c=e.get(["pointer","icon"]),u=a.get("offsetCenter"),d=Ji(u[0],r.r),h=Ji(u[1],r.r),f=a.get("keepAspect");return i=c?Ob(c,d-s/2,h-l,s,l,null,f):new qR({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=p.get("roundCap"),i=n?lD:zg,a=p.get("overlap"),c=a?p.get("width"):l/v.count(),u=a?r.r-c:r.r-(e+1)*c,d=a?r.r:r.r-e*c,h=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:d}});return a&&(h.z2=_-v.get(b,e)%_),h}(g||f)&&(v.diff(u).add((function(t){var n=v.get(b,t);if(f){var i=C(t,o);cc(i,{rotation:-((isNaN(+n)?x[0]:Qi(n,w,x,!0))+Math.PI/2)},e),c.add(i),v.setItemGraphicEl(t,i)}if(g){var r=S(t,o),a=p.get("clip");cc(r,{shape:{endAngle:Qi(n,w,x,a)}},e),c.add(r),Hs(e.seriesIndex,v.dataType,t,r),h[t]=r}})).update((function(t,n){var i=v.get(b,t);if(f){var r=u.getItemGraphicEl(n),a=r?r.rotation:o,s=C(t,a);s.rotation=a,lc(s,{rotation:-((isNaN(+i)?x[0]:Qi(i,w,x,!0))+Math.PI/2)},e),c.add(s),v.setItemGraphicEl(t,s)}if(g){var l=d[n],m=l?l.shape.endAngle:o,y=S(t,m),_=p.get("clip");lc(y,{shape:{endAngle:Qi(i,w,x,_)}},e),c.add(y),Hs(e.seriesIndex,v.dataType,t,y),h[t]=y}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),c=l.fill;if(s instanceof gs){var u=s.style;s.useStyle(Object(m["extend"])({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Qi(v.get(b,e),w,[0,1],!0))),s.z2EmphasisLift=0,Zl(s,t),Gl(s,r,o,a)}if(g){var d=h[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Zl(d,t),Gl(d,r,o,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Ob(o,t.cx-r/2+Ji(a[0],t.r),t.cy-r/2+Ji(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new Fi,d=[],h=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new $s({silent:!0}),h[e]=new $s({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],h[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),g=new Fi,m=i(Qi(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),y=r.cx+Ji(b[0],r.r),_=r.cy+Ji(b[1],r.r),w=d[t];w.attr({z2:p?0:2,style:wc(v,{x:y,y:_,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(w)}var x=n.getModel("detail");if(x.get("show")){var C=x.get("offsetCenter"),S=r.cx+Ji(C[0],r.r),k=r.cy+Ji(C[1],r.r),O=Ji(x.get("width"),r.r),M=Ji(x.get("height"),r.r),D=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:m,E=(w=h[t],x.get("formatter"));w.attr({z2:p?0:2,style:wc(x,{x:S,y:k,text:KR(o,E),width:isNaN(O)?null:O,height:isNaN(M)?null:M,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Lc(w,{normal:x},o,(function(e){return KR(e,E)})),f&&Ic(w,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return KR(a?a.interpolatedValue:o,E)}}),g.add(w)}u.add(g)})),this.group.add(u),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(fv),XR=YR,ZR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return p(t,e),t.prototype.getInitialData=function(e,t){return tE(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Hp),QR=ZR;function JR(e){e.registerChartView(XR),e.registerSeriesModel(QR)}var eF=["itemStyle","opacity"],tF=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Zg,a=new $s;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return p(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(eF);l=null==l?1:l,n||pc(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,cc(i,{style:{opacity:l}},r,t)):lc(i,{style:{opacity:l},shape:{points:a.points}},r,t),Zl(i,o),this._updateLabel(e,t),Gl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"style"),u=c.fill;yc(r,_c(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ie(d[0][0],d[0][1]):null},lc(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),QS(n,JS(a),{stroke:u})},t}(Kg),nF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new tF(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);fc(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(fv),iF=nF,rF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iE(m["bind"](this.getData,this),m["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return tE(this,{coordDimensions:["value"],encodeDefaulter:m["curry"](Ad,this)})},t.prototype._defaultLabelLine=function(e){Mr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Hp),oF=rF;function aF(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function sF(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();a<s;a++)r[a]=a;return Object(m["isFunction"])(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}function lF(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,r,o,a,s=e.getItemModel(t),l=s.getModel("label"),c=l.get("position"),u=s.getModel("labelLine"),d=e.getItemLayout(t),h=d.points,f="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(f)"insideLeft"===c?(r=(h[0][0]+h[3][0])/2+5,o=(h[0][1]+h[3][1])/2,i="left"):"insideRight"===c?(r=(h[1][0]+h[2][0])/2-5,o=(h[1][1]+h[2][1])/2,i="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,o=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,g=void 0,m=void 0,v=void 0,b=u.get("length");0,"left"===c?(p=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,m=p-b,r=m-5,i="right"):"right"===c?(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,m=p+b,r=m+5,i="left"):"top"===c?(p=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,v=g-b,o=v-5,i="center"):"bottom"===c?(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,v=g+b,o=v+5,i="center"):"rightTop"===c?(p="horizontal"===n?h[3][0]:h[1][0],g="horizontal"===n?h[3][1]:h[1][1],"horizontal"===n?(v=g-b,o=v-5,i="center"):(m=p+b,r=m+5,i="top")):"rightBottom"===c?(p=h[2][0],g=h[2][1],"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p+b,r=m+5,i="bottom")):"leftTop"===c?(p=h[0][0],g="horizontal"===n?h[0][1]:h[1][1],"horizontal"===n?(v=g-b,o=v-5,i="center"):(m=p-b,r=m-5,i="right")):"leftBottom"===c?(p="horizontal"===n?h[1][0]:h[3][0],g="horizontal"===n?h[1][1]:h[2][1],"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p-b,r=m-5,i="right")):(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p+b,r=m+5,i="left")),"horizontal"===n?(m=p,r=m):(v=g,o=v),a=[[p,g],[m,v]]}d.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:f}}))}function cF(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=aF(e,t),a=e.get("orient"),s=o.width,l=o.height,c=sF(n,r),u=o.x,d=o.y,h="horizontal"===a?[Ji(e.get("minSize"),l),Ji(e.get("maxSize"),l)]:[Ji(e.get("minSize"),s),Ji(e.get("maxSize"),s)],f=n.getDataExtent(i),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=e.get("funnelAlign"),v=e.get("gap"),b="horizontal"===a?s:l,y=(b-v*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===a){var r=n.get(i,e)||0,o=Qi(r,[p,g],h,!0),c=void 0;switch(m){case"top":c=d;break;case"center":c=d+(l-o)/2;break;case"bottom":c=d+(l-o);break}return[[t,c],[t,c+o]]}var f,v=n.get(i,e)||0,b=Qi(v,[p,g],h,!0);switch(m){case"left":f=u;break;case"center":f=u+(s-b)/2;break;case"right":f=u+s-b;break}return[[f,t],[f+b,t]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===a?u+=s:d+=l,c=c.reverse());for(var w=0;w<c.length;w++){var x=c[w],C=c[w+1],S=n.getItemModel(x);if("horizontal"===a){var k=S.get(["itemStyle","width"]);null==k?k=y:(k=Ji(k,s),"ascending"===r&&(k=-k));var O=_(x,u),M=_(C,u+k);u+=k+v,n.setItemLayout(x,{points:O.concat(M.slice().reverse())})}else{var D=S.get(["itemStyle","height"]);null==D?D=y:(D=Ji(D,l),"ascending"===r&&(D=-D));O=_(x,d),M=_(C,d+D);d+=D+v,n.setItemLayout(x,{points:O.concat(M.slice().reverse())})}}lF(n)}))}function uF(e){e.registerChartView(iF),e.registerSeriesModel(oF),e.registerLayout(cF),e.registerProcessor(UD("funnel"))}var dF=.3,hF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Fi,n._initialized=!1,n}return p(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,l=s.dimensions,c=mF(e);function u(e){var t=gF(o,r,e,l,s);vF(t,o,e,c)}function d(t,n){var i=a.getItemGraphicEl(n),r=pF(o,t,l,s);o.setItemGraphicEl(t,i),lc(i,{shape:{points:r}},e,t),pc(i),vF(i,o,t,c)}function h(e){var t=a.getItemGraphicEl(e);r.remove(t)}if(o.diff(a).add(u).update(d).remove(h).execute(),!this._initialized){this._initialized=!0;var f=fF(s,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(f)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,a=mF(t),s=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=gF(i,this._dataGroup,l,o,r);c.incremental=!0,vF(c,i,l,a),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(fv);function fF(e,t,n){var i=e.model,r=e.getRect(),o=new Ss({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),cc(o,{shape:{width:r.width,height:r.height}},t,n),o}function pF(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);bF(s,i.getAxis(a).type)||r.push(i.dataToPoint(s,a))}return r}function gF(e,t,n,i,r){var o=pF(e,n,i,r),a=new Zg({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function mF(e){var t=e.get("smooth",!0);return!0===t&&(t=dF),t=br(t),Object(m["eqNaN"])(t)&&(t=0),{smooth:t}}function vF(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");Zl(e,r,"lineStyle"),Gl(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function bF(e,t){return"category"===t?null==e:null==e||isNaN(e)}var yF=hF,_F=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return p(t,e),t.prototype.getInitialData=function(e,t){return hx(null,this,{useEncodeDefaulter:Object(m["bind"])(wF,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Hp);function wF(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(m["each"])(t.dimensions,(function(e){var t=xF(e);n[e]=t})),n}}function xF(e){return+e.replace("dim","")}var CF=_F,SF=["lineStyle","opacity"],kF={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(SF,!0);null!=o&&(r=o)}var a=t.ensureUniqueItemVisual(n,"style");a.opacity=r}),e.start,e.end)}}}},OF=kF;function MF(e){DF(e),EF(e)}function DF(e){if(!e.parallel){var t=!1;m["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function EF(e){var t=Or(e.parallelAxis);m["each"](t,(function(t){if(m["isObject"](t)){var n=t.parallelIndex||0,i=Or(e.parallel)[n];i&&i.parallelAxisDefault&&m["merge"](t,i.parallelAxisDefault,!1)}}))}var TF=5,LF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(m["each"])(IF,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(m["bind"])(e,this))}),this)),bv(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){yv(this,"_throttledDispatchExpand"),Object(m["each"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(m["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(qp),IF={mousedown:function(e){AF(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(AF(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>TF)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&AF(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function AF(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var NF=LF,PF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&m["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){m["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=m["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);m["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(md),RF=PF,FF=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return p(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(kS),jF=FF;function BF(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=VF(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=VF(s,[0,a]),r=o=VF(s,[r,o]),i=0}t[0]=VF(t[0],n),t[1]=VF(t[1],n);var l=zF(t,i);t[i]+=e;var c,u=r||0,d=n.slice();return l.sign<0?d[0]+=u:d[1]-=u,t[i]=VF(t[i],d),c=zF(t,i),null!=r&&(c.sign!==l.sign||c.span<r)&&(t[1-i]=t[i]+l.sign*r),c=zF(t,i),null!=o&&c.span>o&&(t[1-i]=t[i]+c.sign*o),t}function zF(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function VF(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var $F=m["each"],WF=Math.min,HF=Math.max,UF=Math.floor,qF=Math.ceil,GF=er,KF=Math.PI,YF=function(){function e(e,t,n){this.type="parallel",this._axesMap=m["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;$F(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new jF(e,MC(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();$F(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),OC(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],c=this.dimensions.length,u=XF(t.get("axisExpandWidth"),l),d=XF(t.get("axisExpandCount")||0,[0,c]),h=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,f=t.get("axisExpandWindow");if(f)e=XF(f[1]-f[0],l),f[1]=f[0]+e;else{e=XF(u*(d-1),l);var p=t.get("axisExpandCenter")||UF(c/2);f=[u*p-e/2],f[1]=f[0]+e}var g=(s-e)/(c-d);g<3&&(g=0);var m=[UF(GF(f[0]/u,1))+1,qF(GF(f[1]/u,1))-1],v=g/u*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:f,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),$F(n,(function(t,n){var o=(i.axisExpandable?QF:ZF)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:KF/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],c=s[r],u=xe();Me(u,u,c),Oe(u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];m["each"](o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var d=e.getValues(a,c),h=0,f=o.length;h<f;h++){var p=s[h].getActiveState(d[h]);if("inactive"===p){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Hm([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return m["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),d=null!=u[0];if(c)d&&c&&s<r*u[0]?(l="jump",a=s-r*u[2]):d&&c&&s>r*(1-u[0])?(l="jump",a=s-r*(1-u[2])):(a=s-r*u[1])>=0&&(a=s-r*(1-u[1]))<=0&&(a=0),a*=t.axisExpandWidth/c,a?BF(a,i,o,"all"):l="none";else{var h=i[1]-i[0],f=o[1]*s/h;i=[HF(0,f-h/2)],i[1]=WF(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},e}();function XF(e,t){return WF(HF(e,t[0]),t[1])}function ZF(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function QF(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(n=e*s,i=s):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,u=!0):(n=r-(a-1-e)*s,i=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var JF=YF;function ej(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new JF(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Qr).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var tj={create:ej},nj=tj,ij=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return p(t,e),t.prototype.getAreaSelectStyle=function(){return wo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=m["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)tr(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(md);m["mixin"](ij,FC);var rj=ij,oj=!0,aj=Math.min,sj=Math.max,lj=Math.pow,cj=1e4,uj=6,dj=6,hj="globalPan",fj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},pj={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},gj={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},mj=0,vj=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Fi,n._uid="brushController_"+mj++,Object(m["each"])(Yj,(function(e,t){this._handlers[t]=Object(m["bind"])(e,this)}),n),n}return p(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||iL(t,hj,this._uid),Object(m["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(m["merge"])(Object(m["clone"])(gj),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;rL(e,hj,this._uid),Object(m["each"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(m["each"])(e,(function(e){t[e.panelId]=Object(m["clone"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(m["map"])(e,(function(e){return Object(m["merge"])(Object(m["clone"])(gj),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new vw(n,e,s,a).add(l).update(l).remove(c).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(e,t){return a(e.__brushOption,t)}function l(t,a){var s=e[t];if(null!=a&&n[a]===o)i[t]=n[a];else{var l=i[t]=null!=a?(n[a].__brushOption=s,n[a]):yj(r,bj(r,s));xj(r,l)}}function c(e){n[e]!==o&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Oj(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(q);function bj(e,t){var n=Qj[t.brushType].createCover(e,t);return n.__brushOption=t,wj(n,t),e.group.add(n),n}function yj(e,t){var n=Cj(t);return n.endCreating&&(n.endCreating(e,t),wj(t,t.__brushOption)),t}function _j(e,t){var n=t.__brushOption;Cj(t).updateCoverShape(e,t,n.range,n)}function wj(e,t){var n=t.z;null==n&&(n=cj),e.traverse((function(e){e.z=n,e.z2=n}))}function xj(e,t){Cj(t).updateCommon(e,t),_j(e,t)}function Cj(e){return Qj[e.__brushOption.brushType]}function Sj(e,t,n){var i,r=e._panels;if(!r)return oj;var o=e._transform;return Object(m["each"])(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function kj(e,t){var n=e._panels;if(!n)return oj;var i=t.__brushOption.panelId;return null!=i?n[i]:oj}function Oj(e){var t=e._covers,n=t.length;return Object(m["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Mj(e,t){var n=Object(m["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(m["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Dj(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1],a=lj(r*r+o*o,.5);return a>uj}function Ej(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Tj(e,t,n,i){var r=new Fi;return r.add(new Ss({name:"main",style:Nj(n),silent:!0,draggable:!0,cursor:"move",drift:Object(m["curry"])(Bj,e,t,r,["n","s","w","e"]),ondragend:Object(m["curry"])(Mj,t,{isEnd:!0})})),Object(m["each"])(i,(function(n){r.add(new Ss({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(m["curry"])(Bj,e,t,r,n),ondragend:Object(m["curry"])(Mj,t,{isEnd:!0})}))})),r}function Lj(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=sj(r,dj),a=n[0][0],s=n[1][0],l=a-r/2,c=s-r/2,u=n[0][1],d=n[1][1],h=u-o+r/2,f=d-o+r/2,p=u-a,g=d-s,m=p+r,v=g+r;Aj(e,t,"main",a,s,p,g),i.transformable&&(Aj(e,t,"w",l,c,o,v),Aj(e,t,"e",h,c,o,v),Aj(e,t,"n",l,c,m,o),Aj(e,t,"s",l,f,m,o),Aj(e,t,"nw",l,c,o,o),Aj(e,t,"ne",h,c,o,o),Aj(e,t,"sw",l,f,o,o),Aj(e,t,"se",h,f,o,o))}function Ij(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(Nj(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(m["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?Fj(e,n[0]):jj(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?pj[o]+"-resize":null})}))}function Aj(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(Wj($j(e,t,[[i,r],[i+o,r+a]])))}function Nj(e){return Object(m["defaults"])({strokeNoScale:!0},e.brushStyle)}function Pj(e,t,n,i){var r=[aj(e,n),aj(t,i)],o=[sj(e,n),sj(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function Rj(e){return Wm(e.group)}function Fj(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Um(n[t],Rj(e));return i[r]}function jj(e,t){var n=[Fj(e,t[0]),Fj(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function Bj(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=Vj(t,r,o);Object(m["each"])(i,(function(e){var t=fj[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(Pj(s[0][0],s[1][0],s[0][1],s[1][1])),xj(t,n),Mj(t,{isEnd:!1})}function zj(e,t,n,i){var r=t.__brushOption.range,o=Vj(e,n,i);Object(m["each"])(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),xj(e,t),Mj(e,{isEnd:!1})}function Vj(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function $j(e,t,n){var i=kj(e,t);return i&&i!==oj?i.clipPath(n,e._transform):Object(m["clone"])(n)}function Wj(e){var t=aj(e[0][0],e[1][0]),n=aj(e[0][1],e[1][1]),i=sj(e[0][0],e[1][0]),r=sj(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function Hj(e,t,n){if(e._brushType&&!Zj(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=Sj(e,t,n);if(!e._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===oj||s.panelId===o.panelId)&&Qj[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function Uj(e){var t=e.event;t.preventDefault&&t.preventDefault()}function qj(e,t,n){return e.childOfName("main").contain(t,n)}function Gj(e,t,n,i){var r,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),Dj(e)||o){if(a&&!o){"single"===s.brushMode&&Oj(e);var l=Object(m["clone"])(s);l.brushType=Kj(l.brushType,a),l.panelId=a===oj?null:a.panelId,o=e._creatingCover=bj(e,l),e._covers.push(o)}if(o){var c=Qj[Kj(e._brushType,a)],u=o.__brushOption;u.range=c.getCreatingRange($j(e,o,e._track)),i&&(yj(e,o),c.updateCommon(e,o)),_j(e,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Sj(e,t,n)&&Oj(e)&&(r={isEnd:i,removeOnClick:!0});return r}function Kj(e,t){return"auto"===e?t.defaultBrushType:e}var Yj={mousedown:function(e){if(this._dragging)Xj(this,e);else if(!e.target||!e.target.draggable){Uj(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=Sj(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(Hj(this,e,i),this._dragging){Uj(e);var r=Gj(this,e,i,!1);r&&Mj(this,r)}},mouseup:function(e){Xj(this,e)}};function Xj(e,t){if(e._dragging){Uj(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=Gj(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Mj(e,o)}}function Zj(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var Qj={lineX:Jj(0),lineY:Jj(1),rect:{createCover:function(e,t){function n(e){return e}return Tj({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Ej(e);return Pj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Lj(e,t,n,i)},updateCommon:Ij,contain:qj},polygon:{createCover:function(e,t){var n=new Fi;return n.add(new Zg({name:"main",style:Nj(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Kg({name:"main",draggable:!0,drift:Object(m["curry"])(zj,e,t),ondragend:Object(m["curry"])(Mj,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:$j(e,t,n)})},updateCommon:Ij,contain:qj}};function Jj(e){return{createCover:function(t,n){return Tj({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Ej(t),i=aj(n[0][e],n[1][e]),r=sj(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=kj(t,n);if(a!==oj&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Lj(t,n,l,r)},updateCommon:Ij,contain:qj}}var eB=vj;function tB(e){return e=rB(e),function(t){return Ym(t,e)}}function nB(e,t){return e=rB(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function iB(e,t,n){var i=rB(e);return function(e,r){return i.contain(r[0],r[1])&&!mL(e,t,n)}}function rB(e){return $e.create(e)}var oB=["axisLine","axisTickLabel","axisName"],aB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new eB(n.getZr())).on("brush",m["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!sB(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Fi,this.group.add(this._axisGroup),e.get("show")){var o=cB(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,c=e.axis.dim,u=a.getAxisLayout(c),d=m["extend"]({strokeContainThreshold:l},u),h=new sT(e,d);m["each"](oB,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,e,o,l,n),Km(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),c=$e.create({x:a[0],y:-r/2,width:s,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:tB(c),isTargetByCursor:iB(c,o,i),getLinearBrushOtherExtent:nB(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(lB(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=m["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(qp);function sB(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function lB(e){var t=e.axis;return m["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function cB(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var uB=aB,dB={type:"axisAreaSelect",event:"axisAreaSelected"};function hB(e){e.registerAction(dB,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var fB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pB(e){e.registerComponentView(NF),e.registerComponentModel(RF),e.registerCoordinateSystem("parallel",nj),e.registerPreprocessor(MF),e.registerComponentModel(rj),e.registerComponentView(uB),DE(e,"parallel",rj,fB),hB(e)}function gB(e){fw(pB),e.registerChartView(yF),e.registerSeriesModel(CF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,OF)}var mB=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),vB=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new mB},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Dl(this)},t.prototype.downplay=function(){El(this)},t}(ss),bB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return p(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,c=e.getData(),u=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new vB,i=Ws(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,c,h,f,p,g,v,b=t.getModel(),y=b.getModel("lineStyle"),_=y.get("curveness"),w=t.node1.getLayout(),x=t.node1.getModel(),C=x.get("localX"),S=x.get("localY"),k=t.node2.getLayout(),O=t.node2.getModel(),M=O.get("localX"),D=O.get("localY"),E=t.getLayout();switch(n.shape.extent=Math.max(1,E.dy),n.shape.orient=d,"vertical"===d?(r=(null!=C?C*s:w.x)+E.sy,a=(null!=S?S*l:w.y)+w.dy,c=(null!=M?M*s:k.x)+E.ty,h=null!=D?D*l:k.y,f=r,p=a*(1-_)+h*_,g=c,v=a*_+h*(1-_)):(r=(null!=C?C*s:w.x)+w.dx,a=(null!=S?S*l:w.y)+E.sy,c=null!=M?M*s:k.x,h=(null!=D?D*l:k.y)+E.ty,f=r*(1-_)+c*_,p=a,g=r*_+c*(1-_),v=h),n.setShape({x1:r,y1:a,x2:c,y2:h,cpx1:f,cpy1:p,cpx2:g,cpy2:v}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var T=t.node1.getVisual("color"),L=t.node2.getVisual("color");Object(m["isString"])(T)&&Object(m["isString"])(L)&&(n.style.fill=new gm(0,0,+("horizontal"===d),+("vertical"===d),[{color:T,offset:0},{color:L,offset:1}]))}yc(n,_c(b,"edgeLabel"),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:""+b.get("value")}),n.setTextConfig({position:"inside"});var I=b.getModel("emphasis");Zl(n,b,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),u.setItemGraphicEl(t.dataIndex,n);var A=I.get("focus");Gl(n,"adjacency"===A?t.getAdjacentDataIndices():A,I.get("blurScope"),I.get("disabled")),Ws(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),u=i.getModel("emphasis"),d=new Ss({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});yc(d,_c(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Zl(d,i),o.add(d),c.setItemGraphicEl(t.dataIndex,d),Ws(d).dataType="node";var h=u.get("focus");Gl(d,"adjacency"===h?t.getAdjacentDataIndices():h,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,r){var o=c.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(yB(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(fv);function yB(e,t,n){var i=new Ss({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return cc(i,{shape:{width:e.width+20}},t,n),i}var _B=bB,wB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Uc(r[a],this,t));if(i&&n){var s=BR(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return pp("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return pp("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Hp),xB=wB;function CB(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=SB(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,c=s.edges;OB(l);var u=m["filter"](l,(function(e){return 0===e.getLayout().value})),d=0!==u.length?0:e.get("layoutIterations"),h=e.get("orient"),f=e.get("nodeAlign");kB(l,c,n,i,o,a,d,h,f)}))}function SB(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kB(e,t,n,i,r,o,a,s,l){MB(e,t,n,r,o,s,l),IB(e,t,o,r,i,a,s),UB(e,s)}function OB(e){m["each"](e,(function(e){var t=WB(e.outEdges,$B),n=WB(e.inEdges,$B),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function MB(e,t,n,i,r,o,a){for(var s=[],l=[],c=[],u=[],d=0,h=0;h<t.length;h++)s[h]=1;for(h=0;h<e.length;h++)l[h]=e[h].inEdges.length,0===l[h]&&c.push(e[h]);var f=-1;while(c.length){for(var p=0;p<c.length;p++){var g=c[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:d},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var b=0;b<g.outEdges.length;b++){var y=g.outEdges[b],_=t.indexOf(y);s[_]=0;var w=y.node2,x=e.indexOf(w);0===--l[x]&&u.indexOf(w)<0&&u.push(w)}}++d,c=u,u=[]}for(h=0;h<s.length;h++)if(1===s[h])throw new Error("Sankey is a DAG, the original data has cycle!");var C=f>d-1?f:d-1;a&&"left"!==a&&EB(e,a,o,C);var S="vertical"===o?(r-n)/C:(i-n)/C;LB(e,S,o)}function DB(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function EB(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];r.indexOf(u.node1)<0&&r.push(u.node1)}}o=r,r=[],++a}m["each"](e,(function(e){DB(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&TB(e,i)}function TB(e,t){m["each"](e,(function(e){DB(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function LB(e,t,n){m["each"](e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function IB(e,t,n,i,r,o,a){var s=AB(e,a);NB(s,t,n,i,r,a),PB(s,r,n,i,a);for(var l=1;o>0;o--)l*=.99,RB(s,l,a),PB(s,r,n,i,a),HB(s,l,a),PB(s,r,n,i,a)}function AB(e,t){var n=[],i="vertical"===t?"y":"x",r=ro(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),m["each"](r.keys,(function(e){n.push(r.buckets.get(e))})),n}function NB(e,t,n,i,r,o){var a=1/0;m["each"](e,(function(e){var t=e.length,s=0;m["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l<a&&(a=l)})),m["each"](e,(function(e){m["each"](e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),m["each"](t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))}function PB(e,t,n,i,r){var o="vertical"===r?"x":"y";m["each"](e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,u=e.length,d="vertical"===r?"dx":"dy",h=0;h<u;h++)s=e[h],l=c-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[d]+t;var f="vertical"===r?i:n;if(l=c-t-f,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(h=u-2;h>=0;--h)s=e[h],l=s.getLayout()[o]+s.getLayout()[d]+t-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function RB(e,t,n){m["each"](e.slice().reverse(),(function(e){m["each"](e,(function(e){if(e.outEdges.length){var i=WB(e.outEdges,FB,n)/WB(e.outEdges,$B);if(isNaN(i)){var r=e.outEdges.length;i=r?WB(e.outEdges,jB,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-VB(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-VB(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function FB(e,t){return VB(e.node2,t)*e.getValue()}function jB(e,t){return VB(e.node2,t)}function BB(e,t){return VB(e.node1,t)*e.getValue()}function zB(e,t){return VB(e.node1,t)}function VB(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function $B(e){return e.getValue()}function WB(e,t,n){var i=0,r=e.length,o=-1;while(++o<r){var a=+t(e[o],n);isNaN(a)||(i+=a)}return i}function HB(e,t,n){m["each"](e,(function(e){m["each"](e,(function(e){if(e.inEdges.length){var i=WB(e.inEdges,BB,n)/WB(e.inEdges,$B);if(isNaN(i)){var r=e.inEdges.length;i=r?WB(e.inEdges,zB,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-VB(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-VB(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function UB(e,t){var n="vertical"===t?"x":"y";m["each"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),m["each"](e,(function(e){var t=0,n=0;m["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),m["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function qB(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;m["each"](n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),m["each"](n,(function(t){var n=new GN({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&m["each"](i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function GB(e){e.registerChartView(_B),e.registerSeriesModel(xB),e.registerLayout(CB),e.registerVisual(qB),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var KB=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],d=l[1-c],h=[r,o],f=h[c].get("type"),p=h[1-c].get("type"),g=e.data;if(g&&i){var v=[];m["each"](g,(function(e,t){var n;m["isArray"](e)?(n=e.slice(),e.unshift(t)):m["isArray"](e.value)?(n=m["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var b=this.defaultValueDimensions,y=[{name:u,type:ww(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:ww(p),dimsDef:b.slice()}];return tE(this,{coordDimensions:y,dimensionsCount:b.length+1,encodeDefaulter:m["curry"](Id,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),YB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return p(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Hp);Object(m["mixin"])(YB,KB,!0);var XB=YB,ZB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=ez(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(pc(n),tz(s,n,i,e)):n=ez(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(fv),QB=function(){function e(){}return e}(),JB=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return p(t,e),t.prototype.getDefaultShape=function(){return new QB},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(ss);function ez(e,t,n,i,r){var o=e.ends,a=new JB({shape:{points:r?nz(o,i,e):o}});return tz(e,a,t,n,r),a}function tz(e,t,n,i,r){var o=n.hostModel,s=a[r?"initProps":"updateProps"];s(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var l=n.getItemModel(i),c=l.getModel("emphasis");Zl(t,l),Gl(t,c.get("focus"),c.get("blurScope"),c.get("disabled"))}function nz(e,t,n){return m["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var iz=ZB,rz=m["each"];function oz(e){var t=az(e);rz(t,(function(e){var t=e.seriesModels;t.length&&(sz(e),rz(t,(function(t,n){lz(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function az(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=m["indexOf"](n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function sz(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;rz(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}rz(i,(function(e){var n=e.get("boxWidth");m["isArray"](n)||(n=[n,n]),s.push([Ji(n[0],t)||0,Ji(n[1],t)||0])}));var u=.8*t-2,d=u/r*.3,h=(u-d*(r-1))/r,f=h/2-u/2;rz(i,(function(e,t){a.push(f),f+=d+h,o.push(Math.min(Math.max(h,s[t][0]),s[t][1]))}))}function lz(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,l=["x","y"],c=r.mapDimension(l[a]),u=r.mapDimensionsAll(l[s]);if(!(null==c||u.length<5))for(var d=0;d<r.count();d++){var h=r.get(c,d),f=y(h,u[2],d),p=y(h,u[0],d),g=y(h,u[1],d),m=y(h,u[3],d),v=y(h,u[4],d),b=[];_(b,g,!1),_(b,m,!0),b.push(p,g,v,m),w(b,p),w(b,v),w(b,f),r.setItemLayout(d,{initBaseline:f[s],ends:b})}function y(e,n,o){var l,c=r.get(n,o),u=[];return u[a]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[a]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[a]+=o,r[a]-=o,n?e.push(i,r):e.push(r,i)}function w(e,t){var n=t.slice(),i=t.slice();n[a]-=o,i[a]+=o,e.push(n,i)}}function cz(e,t){t=t||{};for(var n=[],i=[],r=t.boundIQR,o="none"===r||0===r,a=0;a<e.length;a++){var s=tr(e[a].slice()),l=mr(s,.25),c=mr(s,.5),u=mr(s,.75),d=s[0],h=s[s.length-1],f=(null==r?1.5:r)*(u-l),p=o?d:Math.max(d,l-f),g=o?h:Math.min(h,u+f),v=t.itemNameFormatter,b=Object(m["isFunction"])(v)?v({value:a}):Object(m["isString"])(v)?v.replace("{value}",a+""):a+"";n.push([b,p,l,c,u,g]);for(var y=0;y<s.length;y++){var _=s[y];if(_<p||_>g){var w=[b,_];i.push(w)}}}return{boxData:n,outliers:i}}var uz={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==xd){var n="";0,Qd(n)}var i=cz(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function dz(e){e.registerSeriesModel(XB),e.registerChartView(iz),e.registerLayout(oz),e.registerTransform(uz)}var hz=["color","borderColor"],fz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&vz(s,a))return;var l=mz(a,n,!0);cc(l,{shape:{points:a.ends}},e,n),bz(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var c=n.getItemGraphicEl(l);if(t.hasValue(a)){var u=t.getItemLayout(a);o&&vz(s,u)?i.remove(c):(c?(lc(c,{shape:{points:u.ends}},e,a),pc(c)):c=mz(u,a),bz(c,t,a,r),i.add(c),t.setItemGraphicEl(a,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),xz(e,this.group);var t=e.get("clip",!0)?TM(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=mz(o,n);bz(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){xz(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(fv),pz=function(){function e(){}return e}(),gz=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return p(t,e),t.prototype.getDefaultShape=function(){return new pz},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(ss);function mz(e,t,n){var i=e.ends;return new gz({shape:{points:n?yz(i,e):i},z2:100})}function vz(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function bz(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Zl(e,r)}function yz(e,t){return m["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var _z=function(){function e(){}return e}(),wz=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return p(t,e),t.prototype.getDefaultShape=function(){return new _z},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(ss);function xz(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),a=new wz({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new wz({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new wz({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Cz(1,a,e,r),Cz(-1,s,e,r),Cz(0,l,e,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Cz(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(hz);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var Sz=fz,kz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return p(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Hp);Object(m["mixin"])(kz,KB,!0);var Oz=kz;function Mz(e){e&&m["isArray"](e.series)&&m["each"](e.series,(function(e){m["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Dz=["itemStyle","borderColor"],Ez=["itemStyle","borderColor0"],Tz=["itemStyle","borderColorDoji"],Lz=["itemStyle","color"],Iz=["itemStyle","color0"],Az={seriesType:"candlestick",plan:Gp(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?Lz:Iz)}function i(e,t){return t.get(0===e?Tz:e>0?Dz:Ez)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");Object(m["extend"])(l,s)}}}}}},Nz=Az,Pz={seriesType:"candlestick",plan:Gp(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=Fz(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Object(m["map"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=l[0],u=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?p:f};function f(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var f=l.get(s,a),p=l.get(c,a),g=l.get(u,a),m=l.get(d,a),v=l.get(h,a),b=Math.min(p,g),y=Math.max(p,g),_=M(b,f),w=M(y,f),x=M(m,f),C=M(v,f),S=[];D(S,w,0),D(S,_,1),S.push(T(C),T(w),T(x),T(_));var k=n.getItemModel(a),O=!!k.get(["itemStyle","borderColorDoji"]);n.setItemLayout(a,{sign:Rz(l,a,p,g,u,O),initBaseline:p>g?w[o]:_[o],ends:S,brushRect:E(m,v,f)})}function M(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function D(e,t,n){var o=t.slice(),a=t.slice();o[r]=$m(o[r]+i/2,1,!1),a[r]=$m(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function E(e,t,n){var a=M(e,n),s=M(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function T(e){return e[r]=$m(e[r],1),e}}function p(n,i){var a,l,f=Px(4*n.count),p=0,g=[],m=[],v=i.getStore(),b=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var y=v.get(s,l),_=v.get(c,l),w=v.get(u,l),x=v.get(d,l),C=v.get(h,l);isNaN(y)||isNaN(x)||isNaN(C)?(f[p++]=NaN,p+=3):(f[p++]=Rz(v,l,_,w,u,b),g[r]=y,g[o]=x,a=t.dataToPoint(g,null,m),f[p++]=a?a[0]:NaN,f[p++]=a?a[1]:NaN,g[o]=C,a=t.dataToPoint(g,null,m),f[p++]=a?a[1]:NaN)}i.setLayout("largePoints",f)}}};function Rz(e,t,n,i,r,o){var a;return a=n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1,a}function Fz(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Ji(Object(m["retrieve2"])(e.get("barMaxWidth"),r),r),a=Ji(Object(m["retrieve2"])(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Ji(s,r):Math.max(Math.min(r/2,o),a)}var jz=Pz;function Bz(e){e.registerChartView(Sz),e.registerSeriesModel(Oz),e.registerPreprocessor(Mz),e.registerVisual(Nz),e.registerLayout(jz)}function zz(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var Vz=function(e){function t(t,n){var i=e.call(this)||this,r=new cM(t,n),o=new Fi;return i.add(r),i.add(o),i.updateData(t,n),i}return p(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=Ob(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}zz(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}zz(n,e)},t.prototype.highlight=function(){Dl(this)},t.prototype.downplay=function(){El(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=Mb(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=o.getModel("emphasis");r.setScale(s),r.traverse((function(e){e.setStyle("fill",c)}));var d=Db(e.getItemVisual(t,"symbolOffset"),s);d&&(r.x=d[0],r.y=d[1]);var h=e.getItemVisual(t,"symbolRotate");r.rotation=(h||0)*Math.PI/180||0;var f={};f.showEffectOn=i.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=t/e.count(),f.z=i.getShallow("z")||0,f.zlevel=i.getShallow("zlevel")||0,f.symbolType=a,f.color=c,f.rippleEffectColor=o.get(["rippleEffect","color"]),f.rippleNumber=o.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===e&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,Gl(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(Fi),$z=Vz,Wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){this._symbolDraw=new pM($z)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=ZM("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Te(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(fv),Hz=Wz,Uz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){return hx(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Hp),qz=Uz;function Gz(e){e.registerChartView(Hz),e.registerSeriesModel(qz),e.registerLayout(ZM("effectScatter"))}var Kz=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return p(t,e),t.prototype.createLine=function(e,t,n){return new gR(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");m["isArray"](r)||(r=[r,r]);var a=e.getItemVisual(t,"style"),s=i.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Ob(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(s),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),l=t.get("constantSpeed"),c=m["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var u=void 0;u=m["isFunction"](c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return N(e.__p1,e.__cp1)+N(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Vt,l=$t;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var c=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),u=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*N(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*N(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(Fi),Yz=Kz,Xz=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return p(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new Zg({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};lc(r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=r.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=o,Gl(this,a,s,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(Fi),Zz=Xz,Qz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return p(t,e),t.prototype.createLine=function(e,t,n){return new Zz(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],a=t[r];i+=N(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(a+1,r-1);for(o=s;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;o<r;o++)if(i[o]>t)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var d=e.__t<1?u[0]-c[0]:c[0]-u[0],h=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(Yz),Jz=Qz,eV=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),tV=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eV},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(s,l),r>0){var d=(s+c)/2-(l-u)*r,h=(l+u)/2-(c-s)*r;e.quadraticCurveTo(d,h,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var c=i[s++],u=i[s++],d=1;d<l;d++){var h=i[s++],f=i[s++];if(Ra(c,u,h,f,o,e,t))return a}a++}else for(a=0,s=0;s<i.length;){c=i[s++],u=i[s++],h=i[s++],f=i[s++];if(r>0){var p=(c+h)/2-(u-f)*r,g=(u+f)/2-(h-c)*r;if(ja(c,u,p,g,h,f,o,e,t))return a}else if(Ra(c,u,h,f,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],c=n[s++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new $e(i,r,o,a)}return e},t}(ss),nV=function(){function e(){this.group=new Fi}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new tV({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=Ws(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),iV=nV,rV={seriesType:"lines",plan:Gp(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var d=0,h=[];for(u=r.start;u<r.end;u++){var f=e.getLineCoords(u,a);n&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(a[p],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(u=r.start;u<r.end;u++){var g=o.getItemModel(u),m=(f=e.getLineCoords(u,a),[]);if(n)for(var v=0;v<f;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var b=g.get(["lineStyle","curveness"]);+b&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*b,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*b])}o.setItemLayout(u,m)}}}}}},oV=rV,aV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var c=e.get("clip",!0)&&TM(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=oV.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new iV:new wR(r?i?Jz:Zz:i?Yz:gR),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(fv),sV=aV,lV="undefined"===typeof Uint32Array?Array:Uint32Array,cV="undefined"===typeof Float64Array?Array:Float64Array;function uV(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(m["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(m["mergeAll"])([n,e[0],e[1]])})))}var dV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return p(t,e),t.prototype.init=function(t){t.data=t.data||[],uV(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(uV(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(m["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(m["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(m["isNumber"])(e[0])){for(var n=e.length,i=new lV(n),r=new cV(n),o=0,a=0,s=0,l=0;l<n;){s++;var c=e[l++];i[a++]=o+t,i[a++]=c;for(var u=0;u<c;u++){var d=e[l++],h=e[l++];r[o++]=d,r[o++]=h}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new Gw(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getItemModel(e),o=r.get("name");if(o)return o;var a=r.get("fromName"),s=r.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pp("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Hp),hV=dV;function fV(e){return e instanceof Array||(e=[e,e]),e}var pV={seriesType:"lines",reset:function(e){var t=fV(e.get("symbol")),n=fV(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=fV(n.getShallow("symbol",!0)),r=fV(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},gV=pV;function mV(e){e.registerChartView(sV),e.registerSeriesModel(hV),e.registerLayout(oV),e.registerVisual(gV)}var vV=256,bV=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hi["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),h=e.length;u.width=t,u.height=n;for(var f=0;f<h;++f){var p=e[f],g=p[0],m=p[1],v=p[2],b=i(v);d.globalAlpha=b,d.drawImage(a,g-c,m-c)}if(!u.width||!u.height)return u;var y=d.getImageData(0,0,u.width,u.height),_=y.data,w=0,x=_.length,C=this.minOpacity,S=this.maxOpacity,k=S-C;while(w<x){b=_[w+3]/256;var O=4*Math.floor(b*(vV-1));if(b>0){var M=o(b)?s:l;b>0&&(b=b*k+C),_[w++]=M[O],_[w++]=M[O+1],_[w++]=M[O+2],_[w++]=M[O+3]*b*256}else w+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=hi["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),yV=bV;function _V(e,t,n){var i=e[1]-e[0];t=m["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i<r;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function wV(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function xV(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var CV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):xV(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(xV(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,c=e.coordinateSystem,u=LM(c,"cartesian2d");if(u){var d=c.getAxis("x"),h=c.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var f=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),y=_c(e),_=e.getModel("emphasis"),w=_.get("focus"),x=_.get("blurScope"),C=_.get("disabled"),S=u?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],k=n;k<i;k++){var O=void 0,M=p.getItemVisual(k,"style");if(u){var D=p.get(S[0],k),E=p.get(S[1],k);if(isNaN(p.get(S[2],k))||isNaN(D)||isNaN(E)||D<s[0]||D>s[1]||E<l[0]||E>l[1])continue;var T=c.dataToPoint([D,E]);O=new Ss({shape:{x:T[0]-o/2,y:T[1]-a/2,width:o,height:a},style:M})}else{if(isNaN(p.get(S[1],k)))continue;O=new Ss({z2:1,shape:c.dataToRect([p.get(S[0],k)]).contentShape,style:M})}if(p.hasItemOption){var L=p.getItemModel(k),I=L.getModel("emphasis");g=I.getModel("itemStyle").getItemStyle(),m=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),b=L.get(["itemStyle","borderRadius"]),w=I.get("focus"),x=I.get("blurScope"),C=I.get("disabled"),y=_c(L)}O.shape.r=b;var A=e.getRawValue(k),N="-";A&&null!=A[2]&&(N=A[2]+""),yc(O,y,{labelFetcher:e,labelDataIndex:k,defaultOpacity:M.opacity,defaultText:N}),O.ensureState("emphasis").style=g,O.ensureState("blur").style=m,O.ensureState("select").style=v,Gl(O,w,x,C),O.incremental=r,r&&(O.states.emphasis.hoverLayer=!0),f.add(O),p.setItemGraphicEl(k,O),this._progressiveEls&&this._progressiveEls.push(O)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new yV;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),c=e.getRoamTransform();l.applyTransform(c);var u=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),p=h-u,g=f-d,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=u,r[1]-=d,r.push(i),r})),b=n.getExtent(),y="visualMap.continuous"===n.type?wV(b,n.option.range):_V(b,n.getPieceList(),n.option.selected);s.update(v,p,g,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},y);var _=new gs({style:{width:p,height:g,x:u,y:d,image:s.canvas},silent:!0});this.group.add(_)},t.type="heatmap",t}(fv),SV=CV,kV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){return hx(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=fh.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Hp),OV=kV;function MV(e){e.registerChartView(SV),e.registerSeriesModel(OV)}var DV=["itemStyle","borderWidth"],EV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],TV=new yg,LV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),c=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:EV[+l],categoryDim:EV[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=WV(r,e),n=IV(r,e,t,u),o=qV(r,u,n);r.setItemGraphicEl(e,o),i.add(o),QV(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=WV(r,e),s=IV(r,e,a,u),l=YV(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?GV(n,u,s):n=qV(r,u,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),QV(n,u,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&KV(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){KV(i,Ws(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(fv);function IV(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};AV(n,o,r,i,h),PV(e,t,r,o,a,h.boundingLength,h.pxSign,u,i,h),RV(n,h.symbolScale,c,i,h);var f=h.symbolSize,p=Db(n.get("symbolOffset"),f);return FV(n,f,r,o,a,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function AV(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[a.wh]<=0);if(m["isArray"](s)){var d=[NV(l,s[0])-c,NV(l,s[1])-c];d[1]<d[0]&&d.reverse(),o=d[u]}else o=null!=s?NV(l,s)-c:t?i.coordSysExtent[a.index][u]-c:n[a.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[a.wh]),r.pxSign=o>0?1:-1}function NV(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function PV(e,t,n,i,r,o,a,s,l,c){var u,d=l.valueDim,h=l.categoryDim,f=Math.abs(n[h.wh]),p=e.getItemVisual(t,"symbolSize");u=m["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],u[h.index]=Ji(u[h.index],f),u[d.index]=Ji(u[d.index],i?f:Math.abs(o)),c.symbolSize=u;var g=c.symbolScale=[u[0]/s,u[1]/s];g[d.index]*=(l.isHorizontal?-1:1)*a}function RV(e,t,n,i,r){var o=e.get(DV)||0;o&&(TV.attr({scaleX:t[0],scaleY:t[1],rotation:n}),TV.updateTransform(),o/=TV.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function FV(e,t,n,i,r,o,a,s,l,c,u,d){var h=u.categoryDim,f=u.valueDim,p=d.pxSign,g=Math.max(t[f.index]+s,0),v=g;if(i){var b=Math.abs(l),y=m["retrieve"](e.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var w=Ji(y,t[f.index]),x=Math.max(g+2*w,0),C=_?0:2*w,S=yr(i),k=S?i:JV((b+C)/x),O=b-k*g;w=O/2/(_?k:Math.max(k-1,1)),x=g+2*w,C=_?0:2*w,S||"fixed"===i||(k=c?JV((Math.abs(c)+C)/x):0),v=k*x-C,d.repeatTimes=k,d.symbolMargin=w}var M=p*(v/2),D=d.pathPosition=[];D[h.index]=n[h.wh]/2,D[f.index]="start"===a?M:"end"===a?l-M:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var E=d.bundlePosition=[];E[h.index]=n[h.xy],E[f.index]=n[f.xy];var T=d.barRectShape=m["extend"]({},n);T[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(D[f.index]+M)),T[h.wh]=n[h.wh];var L=d.clipShape={};L[h.xy]=-n[h.xy],L[h.wh]=u.ecSize[h.wh],L[f.xy]=0,L[f.wh]=n[f.wh]}function jV(e){var t=e.symbolPatternSize,n=Ob(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function BV(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(XV(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?ZV(e,null,p(u),n,i):ZV(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),u++}));u<c;u++){var h=jV(n);h.__pictorialAnimationIndex=u,h.__pictorialRepeatTimes=c,r.add(h);var f=p(u);ZV(h,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}function p(e){var t=s.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-e),t[l.index]=d*(r-c/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zV(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?ZV(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=jV(n),r.add(o),ZV(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function VV(e,t,n){var i=m["extend"]({},t.barRectShape),r=e.__pictorialBarRect;r?ZV(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new Ss({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function $V(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=m["extend"]({},n.clipShape),s=t.valueDim,l=n.animationModel,c=n.dataIndex;if(r)lc(r,{shape:o},l,c);else{o[s.wh]=0,r=new Ss({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var u={};u[s.wh]=n.clipShape[s.wh],a[i?"updateProps":"initProps"](r,{shape:u},l,c)}}}function WV(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=HV,n.isAnimationEnabled=UV,n}function HV(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function UV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function qV(e,t,n,i){var r=new Fi,o=new Fi;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?BV(r,t,n):zV(r,t,n),VV(r,n,i),$V(r,t,n,i),r.__pictorialShapeStr=YV(e,n),r.__pictorialSymbolMeta=n,r}function GV(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;lc(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?BV(e,t,n,!0):zV(e,t,n,!0),VV(e,n,!0),$V(e,t,n,!0)}function KV(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];XV(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),m["each"](o,(function(e){dc(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function YV(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function XV(e,t,n){m["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function ZV(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&a[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function QV(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");XV(e,(function(e){if(e instanceof gs){var t=e.style;e.useStyle(m["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,c&&(e.cursor=c),e.z2=n.z2}));var f=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;yc(p,_c(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:oM(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Gl(e,u,d,o.get("disabled"))}function JV(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var e$=LV,t$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return p(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Xc(iD.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(iD),n$=t$;function i$(e){e.registerChartView(e$),e.registerSeriesModel(n$),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(m["curry"])(Ux,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qx("pictorialBar"))}var r$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return p(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,c=s.boundaryGap;function u(e){return e.name}o.x=0,o.y=l.y+c[0];var d=new vw(this._layersSeries||[],a,u,u),h=[];function f(t,n,s){var l=r._layers;if("remove"!==t){for(var c,u,d=[],f=[],p=a[n].indices,g=0;g<p.length;g++){var m=i.getItemLayout(p[g]),v=m.x,b=m.y0,y=m.y;d.push(v,b),f.push(v,b+y),c=i.getItemVisual(p[g],"style")}var _=i.getItemLayout(p[0]),w=e.getModel("label"),x=w.get("margin"),C=e.getModel("emphasis");if("add"===t){var S=h[n]=new Fi;u=new MM({shape:{points:d,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(u),o.add(S),e.isAnimationEnabled()&&u.setClipPath(o$(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{S=l[s];u=S.childAt(0),o.add(S),h[n]=S,lc(u,{shape:{points:d,stackedOnPoints:f}},e),pc(u)}yc(u,_c(e),{labelDataIndex:p[g-1],defaultText:i.getName(p[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var k=u.getTextContent();k&&(k.x=_.x-x,k.y=_.y0+_.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Zl(u,e),Gl(u,C.get("focus"),C.get("blurScope"),C.get("disabled"))}else o.remove(l[n])}d.add(Object(m["bind"])(f,this,"add")).update(Object(m["bind"])(f,this,"update")).remove(Object(m["bind"])(f,this,"remove")).execute(),this._layersSeries=a,this._layers=h},t.type="themeRiver",t}(fv);function o$(e,t,n){var i=new Ss({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return cc(i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}var a$=r$,s$=2,l$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iE(m["bind"](this.getData,this),m["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=ro(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var c=r[a].dataList[l][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Qr).models[0],i=n.get("type"),r=m["filter"](e.data,(function(e){return void 0!==e[2]})),o=this.fixData(r||[]),a=[],s=this.nameMap=m["createHashMap"](),l=0,c=0;c<o.length;++c)a.push(o[c][s$]),s.get(o[c][s$])||(s.set(o[c][s$],l),l++);var u=Yw(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ww(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Gw(u,this);return d.initData(o),d},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=ro(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){m["isArray"](e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var c=Number.MAX_VALUE,u=-1,d=o[l].indices.length,h=0;h<d;++h){var f=r.get(e[0],o[l].indices[h]),p=Math.abs(f-t);p<=c&&(i=f,c=p,u=o[l].indices[h])}a.push(u)}return{dataIndices:a,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return pp("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Hp),c$=l$;function u$(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),a=n.getAxis();if(i.boundaryGap=o,"horizontal"===a.orient){o[0]=Ji(o[0],r.height),o[1]=Ji(o[1],r.height);var s=r.height-o[0]-o[1];d$(t,e,s)}else{o[0]=Ji(o[0],r.width),o[1]=Ji(o[1],r.width);var l=r.width-o[0]-o[1];d$(t,e,l)}t.setLayout("layoutInfo",i)}))}function d$(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),l=m["map"](o,(function(t){return m["map"](t.indices,(function(t){var n=r.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),c=h$(l),u=c.y0,d=n/c.max,h=o.length,f=o[0].indices.length,p=0;p<f;++p){i=u[p]*d,e.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*d});for(var g=1;g<h;++g)i+=l[g-1][p][1]*d,e.setItemLayout(o[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:i,y:l[g][p][1]*d})}}function h$(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<t;++l)s+=e[l][a][1];s>o&&(o=s),i.push(s)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;o=0;for(var u=0;u<n;++u){var d=i[u]+r[u];d>o&&(o=d)}return{y0:r,max:o}}function f$(e){e.registerChartView(a$),e.registerSeriesModel(c$),e.registerLayout(u$),e.registerProcessor(UD("themeRiver"))}var p$=2,g$=4,m$=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=p$,o.textConfig={inside:!0},Ws(o).seriesIndex=n.seriesIndex;var a=new $s({z2:g$,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return p(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Ws(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),c=m["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var d=t.getVisual("decal");d&&(u.decal=gy(d,r));var h=fD(a.getModel("itemStyle"),c,!0);m["extend"](c,h),m["each"](Qs,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=fD(n,c);i&&(t.shape=i)})),e?(o.setShape(c),o.shape.r=l.r0,cc(o,{shape:{r:l.r}},n,t.dataIndex)):(lc(o,{shape:c},n),pc(o)),o.useStyle(u),this._updateLabel(n);var f=a.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var p=s.get("focus"),g="ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Gl(this,g,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),c=this,u=c.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=h&&Math.abs(o)<h);function p(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!f,m["each"](Js,(function(i){var h="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,g=f?u:u.ensureState(i),v=e.getFormattedLabel(d,i);f&&(v=v||t.node.name),g.style=wc(h,{},null,"normal"!==i,!0),v&&(g.style.text=v);var b=h.get("show");null==b||f||(g.ignore=!b);var y,_=p(h,"position"),w=f?c:c.states[i],x=w.style.fill;w.textConfig={outsideFill:"inherit"===h.get("color")?x:null,inside:"outside"!==_};var C=p(h,"distance")||0,S=p(h,"align");"outside"===_?(y=r.r+C,S=a>Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(y=r.r0+C,a>Math.PI/2&&(S="right")):"right"===S&&(y=r.r-C,a>Math.PI/2&&(S="left")):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=p(h,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var k=p(h,"rotate"),O=0;"radial"===k?(O=za(-a),O>Math.PI/2&&O<1.5*Math.PI&&(O+=Math.PI)):"tangential"===k?(O=Math.PI/2-a,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):m["isNumber"](k)&&(O=k*Math.PI/180),g.rotation=O})),u.dirtyStyle()},t}(zg),v$=m$,b$="sunburstRootToNode",y$="sunburstHighlight",_$="sunburstUnhighlight";function w$(e){e.registerAction({type:b$,update:"updateView"},(function(e,t){function n(t,n){var i=BA(e,[b$],t);if(i){var r=t.getViewRoot();r&&(e.direction=VA(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:y$,update:"none"},(function(e,t,n){function i(t){var n=BA(e,[y$],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(m["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(m["extend"])(e,{type:"highlight"}))})),e.registerAction({type:_$,update:"updateView"},(function(e,t,n){e=Object(m["extend"])({},e),n.dispatchAction(Object(m["extend"])(e,{type:"downplay"}))}))}var x$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];s.eachNode((function(e){u.push(e)}));var d=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];f(r,o)}0===e.length&&0===t.length||new vw(t,e,n,n).add(i).update(i).remove(m["curry"](i,null)).execute()}function f(i,r){if(c||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):p(r);else if(i){var s=new v$(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function p(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new v$(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(u,d),g(a,s),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Ju(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:b$,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(fv),C$=x$,S$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};k$(n);var i=this._levelModels=m["map"](e.levels||[],(function(e){return new Uc(e,this,t)}),this),r=jA.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=$A(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){eN(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Hp);function k$(e){var t=0;m["each"](e.children,(function(e){k$(e);var n=e.value;m["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;m["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),m["isArray"](e.value)?e.value[0]=n:e.value=n}var O$=S$,M$=Math.PI/180;function D$(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");m["isArray"](i)||(i=[0,i]),m["isArray"](t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Ji(t[0],r),l=Ji(t[1],o),c=Ji(i[0],a/2),u=Ji(i[1],a/2),d=-e.get("startAngle")*M$,h=e.get("minAngle")*M$,f=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,v=e.get("sort");null!=v&&E$(p,v);var b=0;m["each"](p.children,(function(e){!isNaN(e.getValue())&&b++}));var y=p.getValue(),_=Math.PI/(y||b)*2,w=p.depth>0,x=p.height-(w?-1:1),C=(u-c)/(x||1),S=e.get("clockwise"),k=e.get("stillShowZeroSum"),O=S?1:-1,M=function(t,n){if(t){var i=n;if(t!==f){var r=t.getValue(),o=0===y&&k?_:r*_;o<h&&(o=h),i=n+O*o;var u=t.depth-g-(w?-1:1),d=c+C*u,p=c+C*(u+1),v=e.getLevelModel(t);if(v){var b=v.get("r0",!0),x=v.get("r",!0),D=v.get("radius",!0);null!=D&&(b=D[0],x=D[1]),null!=b&&(d=Ji(b,a/2)),null!=x&&(p=Ji(x,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:S,cx:s,cy:l,r0:d,r:p})}if(t.children&&t.children.length){var E=0;m["each"](t.children,(function(e){E+=M(e,n+E)}))}return i-n}};if(w){var D=c,E=c+C,T=2*Math.PI;f.setLayout({angle:T,startAngle:d,endAngle:d+T,clockwise:S,cx:s,cy:l,r0:D,r:E})}M(p,d)}))}function E$(e,t){var n=e.children||[];e.children=T$(n,t),n.length&&m["each"](e.children,(function(e){E$(e,t)}))}function T$(e,t){if(m["isFunction"](t)){var n=m["map"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),m["map"](n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function L$(e){var t={};function n(e,n,i){var r=e;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&Object(m["isString"])(o)&&(o=Object(Qt["lift"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");Object(m["extend"])(s,a)}))}))}function I$(e){e.registerChartView(C$),e.registerSeriesModel(O$),e.registerLayout(Object(m["curry"])(D$,"sunburst")),e.registerProcessor(Object(m["curry"])(UD,"sunburst")),e.registerVisual(L$),w$(e)}var A$={color:"fill",borderColor:"stroke"},N$={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},P$=Kr(),R$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return hx(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=P$(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Hp),F$=R$;function j$(e,t){return t=t||[0,0],m["map"](["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function B$(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:m["bind"](j$,e)}}}function z$(e,t){return t=t||[0,0],m["map"]([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function V$(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:m["bind"](z$,e)}}}function $$(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function W$(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(m["bind"])($$,e)}}}function H$(e,t){return t=t||[0,0],m["map"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function U$(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:m["bind"](H$,e)}}}function q$(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function G$(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(m["hasOwn"])(e,"text")))}function K$(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Object(m["hasOwn"])(a,"text")&&(o.text=a.text),Object(m["hasOwn"])(a,"rich")&&(o.rich=a.rich),Object(m["hasOwn"])(a,"textFill")&&(o.fill=a.textFill),Object(m["hasOwn"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(m["hasOwn"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(m["hasOwn"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(m["hasOwn"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(m["hasOwn"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(m["hasOwn"])(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(m["hasOwn"])(a,"textPosition")&&(i.position=a.textPosition),Object(m["hasOwn"])(a,"textOffset")&&(i.offset=a.textOffset),Object(m["hasOwn"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(m["hasOwn"])(a,"textDistance")&&(i.distance=a.textDistance)}return Y$(o,e),Object(m["each"])(o.rich,(function(e){Y$(e,e)})),{textConfig:i,textContent:r}}function Y$(e,t){t&&(t.font=t.textFont||t.font,Object(m["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(m["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(m["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(m["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(m["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(m["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(m["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(m["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(m["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(m["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(m["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(m["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(m["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(m["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(m["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function X$(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";Z$(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(m["each"])(t.rich,(function(e){Z$(e,e)})),i}function Z$(e,t){t&&(Object(m["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(m["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(m["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(m["hasOwn"])(t,"font")&&(e.font=t.font),Object(m["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(m["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(m["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(m["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(m["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(m["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(m["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(m["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(m["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(m["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(m["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(m["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(m["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(m["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(m["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(m["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(m["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(m["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(m["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(m["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(m["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(m["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var Q$={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},J$=Object(m["keys"])(Q$),eW=(Object(m["reduce"])(li,(function(e,t){return e[t]=1,e}),{}),li.join(", "),["","style","shape","extra"]),tW=Kr();function nW(e,t,n,i,r){var o=e+"Animation",a=ac(e,i,r)||{},s=tW(t).userDuring;return a.duration>0&&(a.during=s?Object(m["bind"])(hW,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(m["extend"])(a,n[o]),a}function iW(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=tW(e),c=t.style;l.userDuring=t.during;var u={},d={};if(mW(e,t,d),pW("shape",t,d),pW("extra",t,d),!o&&s&&(gW(e,t,u),fW("shape",e,t,u),fW("extra",e,t,u),vW(e,t,c,u)),d.style=c,sW(e,d,a),cW(e,t),s)if(o){var h={};Object(m["each"])(eW,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),Object(m["extend"])(e?h[e]:h,n.enterFrom))}));var f=nW("enter",e,t,n,r);f.duration>0&&e.animateFrom(h,f)}else lW(e,t,r||0,n,u);rW(e,t),c?e.dirty():e.markRedraw()}function rW(e,t){for(var n=tW(e).leaveToProps,i=0;i<eW.length;i++){var r=eW[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=tW(e).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(m["extend"])(r?n[r]:n,o.leaveTo))}}function oW(e,t,n,i){if(e){var r=e.parent,o=tW(e).leaveToProps;if(o){var a=nW("update",e,t,n,0);a.done=function(){r.remove(e),i&&i()},e.animateTo(o,a)}else r.remove(e),i&&i()}}function aW(e){return"all"===e}function sW(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function lW(e,t,n,i,r){if(r){var o=nW("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function cW(e,t){Object(m["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(m["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof ea&&Object(m["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof ss&&Object(m["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var uW={},dW={setTransform:function(e,t){return uW.el[e]=t,this},getTransform:function(e){return uW.el[e]},setShape:function(e,t){var n=uW.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=uW.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=uW.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=uW.el.style;if(t)return t[e]},setExtra:function(e,t){var n=uW.el.extra||(uW.el.extra={});return n[e]=t,this},getExtra:function(e){var t=uW.el.extra;if(t)return t[e]}};function hW(){var e=this,t=e.el;if(t){var n=tW(t).userDuring,i=e.userDuring;n===i?(uW.el=t,i(dW)):e.el=e.userDuring=null}}function fW(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),aW(l))Object(m["extend"])(o,a);else for(var c=Or(l),u=0;u<c.length;u++){var d=c[u],h=a[d];o[d]=h}else if(aW(s)||Object(m["indexOf"])(s,e)>=0){!o&&(o=i[e]={});var f=Object(m["keys"])(a);for(u=0;u<f.length;u++){d=f[u],h=a[d];bW(r[d],h)&&(o[d]=h)}}}}}function pW(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=Object(m["keys"])(i),a=0;a<o.length;a++){var s=o[a];r[s]=cn(i[s])}}function gW(e,t,n){for(var i=t.transition,r=aW(i)?li:Or(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}function mW(e,t,n){for(var i=0;i<J$.length;i++){var r=J$[i],o=Q$[r],a=t[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<li.length;i++){var s=li[i];null!=t[s]&&(n[s]=t[s])}}function vW(e,t,n,i){if(n){var r,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!aW(a)){var l=Or(a);!r&&(r=i.style={});for(var c=0;c<l.length;c++){var u=l[c],d=o[u];r[u]=d}}else if(e.getAnimationStyleProps&&(aW(s)||aW(a)||Object(m["indexOf"])(s,"style")>=0)){var h=e.getAnimationStyleProps(),f=h?h.style:null;if(f){!r&&(r=i.style={});var p=Object(m["keys"])(n);for(c=0;c<p.length;c++){u=p[c];if(f[u]){d=o[u];r[u]=d}}}}}}}function bW(e,t){return Object(m["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}var yW=Kr(),_W=["percent","easing","shape","style","extra"];function wW(e){e.stopAnimation("keyframe"),e.attr(yW(e))}function xW(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(m["isArray"])(t))Object(m["each"])(t,(function(t){xW(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=ac("enter",n,0);r=o&&o.duration}if(i&&r){var a=yW(e);Object(m["each"])(eW,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),Object(m["each"])(i,(function(i){var s=e.animators,l=n?i[n]:i;if(l){var c=Object(m["keys"])(l);if(n||(c=Object(m["filter"])(c,(function(e){return Object(m["indexOf"])(_W,e)<0}))),c.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var u=0;u<s.length;u++)s[u]!==o&&s[u].targetName===o.targetName&&s[u].stopTracks(c);n&&(a[n]=a[n]||{});var d=n?a[n]:a;Object(m["each"])(c,(function(t){d[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,c,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var CW="emphasis",SW="normal",kW="blur",OW="select",MW=[SW,CW,kW,OW],DW={normal:["itemStyle"],emphasis:[CW,"itemStyle"],blur:[kW,"itemStyle"],select:[OW,"itemStyle"]},EW={normal:["label"],emphasis:[CW,"label"],blur:[kW,"label"],select:[OW,"label"]},TW=["x","y"],LW="e\0\0",IW={normal:{},emphasis:{},blur:{},select:{}},AW={cartesian2d:B$,geo:V$,single:W$,polar:U$,calendar:q$};function NW(e){return e instanceof ss}function PW(e){return e instanceof ea}function RW(e,t){t.copyTransform(e),PW(t)&&PW(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,NW(t)&&NW(e)&&t.setShape(e.shape))}var FW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),a=this.group,s=HW(e,o,t,n);r||a.removeAll(),o.diff(r).add((function(t){qW(n,null,t,s(t,i),e,a,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&oW(n,P$(n).option,e)})).update((function(t,l){var c=r.getItemGraphicEl(l);qW(n,c,t,s(t,i),e,a,o)})).execute();var l=e.get("clip",!0)?TM(e.coordinateSystem,!1,e):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),a=HW(t,o,n,i),s=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=qW(null,null,c,a(c,r),t,this.group,o);u&&(u.traverse(l),s.push(u))}},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},t.type="custom",t}(fv),jW=FW;function BW(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=aH(i);t=Pm(o,null,r,i.layout||"center"),P$(t).customPathData=o}else if("image"===n)t=new gs({}),P$(t).customImagePath=e.style.image;else if("text"===n)t=new $s({});else if("group"===n)t=new Fi;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Nm(n);if(!a){var s="";0,Qd(s)}t=new a}return P$(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function zW(e,t,n,i,r,o,a){wW(t);var s=r&&r.normal.cfg;s&&t.setTextConfig(s),i&&null==i.transition&&(i.transition=TW);var l=i&&i.style;if(l){if("text"===t.type){var c=l;Object(m["hasOwn"])(c,"textFill")&&(c.fill=c.textFill),Object(m["hasOwn"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,d=NW(t)?l.decal:null;e&&d&&(d.dirty=!0,u=gy(d,e)),l.__decalPattern=u}if(PW(t)&&l){u=l.__decalPattern;u&&(l.decal=u)}iW(t,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),xW(t,i.keyframeAnimation,o)}function VW(e,t,n,i,r){var o=t.isGroup?null:t,a=r&&r[e].cfg;if(o){var s=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),kl(o)}}function $W(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=t.z2;null!=a&&(i.z2=a||0);for(var s=0;s<MW.length;s++)WW(i,t,MW[s])}}function WW(e,t,n){var i,r=n===SW,o=r?t:QW(t,n),a=o?o.z2:null;null!=a&&(i=r?e:e.ensureState(n),i.z2=a||0)}function HW(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):AW[o.type](o));for(var s,l,c=Object(m["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:w,style:C,ordinalRawValue:x,styleEmphasis:S,visual:M,barLayout:D,currentSeriesIndices:E,font:T},a.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:UW(e.getData())},d={},h={},f={},p={},g=0;g<MW.length;g++){var v=MW[g];f[v]=e.getModel(DW[v]),p[v]=e.getModel(EW[v])}function b(e){return e===s?l||(l=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=b(e).getModel(DW[n])):b(e).getModel(DW[n]):f[n]}function _(e,n){return t.hasItemOption?e===s?h[n]||(h[n]=b(e).getModel(EW[n])):b(e).getModel(EW[n]):p[n]}return function(e,n){return s=e,l=null,d={},h={},r&&r(Object(m["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function w(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)}function x(e,n){null==n&&(n=s),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function C(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,SW).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var c={inheritColor:Object(m["isString"])(o)?o:"#000"},u=_(i,SW),d=wc(u,null,c,!1,!0);d.text=u.getShallow("show")?Object(m["retrieve2"])(e.getFormattedLabel(i,SW),oM(t,i)):null;var h=xc(u,c,!1);return O(n,l),l=X$(l,d,h),n&&k(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=y(i,CW).getItemStyle(),o=_(i,CW),a=wc(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(m["retrieve3"])(e.getFormattedLabel(i,CW),e.getFormattedLabel(i,SW),oM(t,i)):null;var l=xc(o,null,!0);return O(n,r),r=X$(r,a,l),n&&k(r,n),r.legacy=!0,r}function k(e,t){for(var n in t)Object(m["hasOwn"])(t,n)&&(e[n]=t[n])}function O(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function M(e,n){if(null==n&&(n=s),Object(m["hasOwn"])(A$,e)){var i=t.getItemVisual(n,"style");return i?i[A$[e]]:null}if(Object(m["hasOwn"])(N$,e))return t.getItemVisual(n,e)}function D(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Bx(Object(m["defaults"])({axis:t},e))}}function E(){return n.getCurrentSeriesIndices()}function T(e){return Ec(e,n)}}function UW(e){var t={};return Object(m["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function qW(e,t,n,i,r,o,a){if(i){var s=GW(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Gl(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function GW(e,t,n,i,r,o){var a=-1,s=t;t&&KW(t,i,r)&&(a=Object(m["indexOf"])(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=BW(i),s&&RW(s,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),IW.normal.cfg=IW.normal.conOpt=IW.emphasis.cfg=IW.emphasis.conOpt=IW.blur.cfg=IW.blur.conOpt=IW.select.cfg=IW.select.conOpt=null,IW.isLegacy=!1,XW(c,n,i,r,l,IW),YW(c,n,i,r,l),zW(e,c,n,i,IW,r,l),Object(m["hasOwn"])(i,"info")&&(P$(c).info=i.info);for(var u=0;u<MW.length;u++){var d=MW[u];if(d!==SW){var h=QW(i,d),f=JW(i,h,d);VW(d,c,h,f,IW)}}return $W(c,i,r),"group"===i.type&&eH(e,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function KW(e,t,n){var i=P$(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&sH(o)&&aH(o)!==i.customPathData||"image"===r&&Object(m["hasOwn"])(a,"image")&&a.image!==i.customImagePath}function YW(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&KW(a,o,i)&&(a=null),a||(a=BW(o),e.setClipPath(a)),zW(null,a,t,o,null,i,r)}}function XW(e,t,n,i,r,o){if(!e.isGroup){ZW(n,null,o),ZW(n,CW,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=l){var u=e.getTextContent();if(!1===a)u&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=BW(a),e.setTextContent(u)),zW(null,u,t,a,null,i,r);for(var d=a&&a.style,h=0;h<MW.length;h++){var f=MW[h];if(f!==SW){var p=o[f].conOpt;VW(f,u,p,JW(a,p,f),null)}}d?u.dirty():u.markRedraw()}}}}function ZW(e,t,n){var i=t?QW(e,t):e,r=t?JW(e,i,CW):e.style,o=e.type,a=i?i.textConfig:null,s=e.textContent,l=s?t?QW(s,t):s:null;if(r&&(n.isLegacy||G$(r,o,!!a,!!l))){n.isLegacy=!0;var c=K$(r,o,!t);!a&&c.textConfig&&(a=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var d=t?n[t]:n.normal;d.cfg=a,d.conOpt=l}function QW(e,t){return t?e?e[t]:null:e}function JW(e,t,n){var i=t&&t.style;return null==i&&n===CW&&e&&(i=e.styleEmphasis),i}function eH(e,t,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(a||l||c)if(l)nH({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});else{c&&t.removeAll();for(var u=0;u<a;u++){var d=o[u],h=t.childAt(u);d?(null==d.ignore&&(d.ignore=!1),GW(e,h,n,d,r,t)):h.ignore=!0}for(var f=t.childCount()-1;f>=u;f--){var p=t.childAt(f);tH(t,p,r)}}}function tH(e,t,n){t&&oW(t,P$(e).option,n)}function nH(e){new vw(e.oldChildren,e.newChildren,iH,iH,e).add(rH).update(rH).remove(oH).execute()}function iH(e,t){var n=e&&e.name;return null!=n?n:LW+t}function rH(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;GW(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function oH(e){var t=this.context,n=t.oldChildren[e];n&&oW(n,P$(n).option,t.seriesModel)}function aH(e){return e&&(e.pathData||e.d)}function sH(e){return e&&(Object(m["hasOwn"])(e,"pathData")||Object(m["hasOwn"])(e,"d"))}function lH(e){e.registerChartView(jW),e.registerSeriesModel(F$)}var cH=Kr(),uH=m["clone"],dH=m["bind"],hH=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=m["curry"](fH,t,u);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Fi,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);vH(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=gT(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=cH(e).pointerEl=new a[r.type](uH(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=cH(e).labelEl=new $s(uH(t.label));e.add(r),gH(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=cH(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=cH(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),gH(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Zm(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){me(e.event)},onmousedown:dH(this._onHandleDragMove,this,0,0),drift:dH(this._onHandleDragMove,this),ondragend:dH(this._onHandleDragEnd,this)}),i.add(r)),vH(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");m["isArray"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,bv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,mH(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(mH(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(mH(i)),cH(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),yv(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function fH(e,t,n,i){pH(cH(n).lastProp,i)||(cH(n).lastProp=i,t?lc(n,i,e):(n.stopAnimation(),n.attr(i)))}function pH(e,t){if(m["isObject"](e)&&m["isObject"](t)){var n=!0;return m["each"](t,(function(t,i){n=n&&pH(e[i],t)})),!!n}return e===t}function gH(e,t){e[t.get(["label","show"])?"show":"hide"]()}function mH(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function vH(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}var bH=hH;function yH(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function _H(e,t,n,i,r){var o=n.get("value"),a=xH(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Wu(s.get("padding")||0),c=s.getFont(),u=mi(a,c),d=r.position,h=u.width+l[1]+l[3],f=u.height+l[0]+l[2],p=r.align;"right"===p&&(d[0]-=h),"center"===p&&(d[0]-=h/2);var g=r.verticalAlign;"bottom"===g&&(d[1]-=f),"middle"===g&&(d[1]-=f/2),wH(d,h,f,i);var m=s.get("backgroundColor");m&&"auto"!==m||(m=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:wc(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function wH(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function xH(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:TC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};m["each"](i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),m["isString"](a)?o=a.replace("{value}",o):m["isFunction"](a)&&(o=a(s))}return o}function CH(e,t,n){var i=xe();return Me(i,i,n.rotation),Oe(i,i,n.position),Hm([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function SH(e,t,n,i,r,o){var a=sT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),_H(t,i,r,o,{position:CH(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function kH(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function OH(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function MH(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var DH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=EH(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var u=yH(i),d=TH[s](o,c,l);d.style=u,e.graphicKey=d.type,e.pointer=d}var h=jE(a.model,n);SH(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=jE(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=CH(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=EH(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(a[1],c[l]),c[l]=Math.max(a[0],c[l]);var u=(s[1]+s[0])/2,d=[u,u];d[l]=c[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(bH);function EH(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var TH={line:function(e,t,n){var i=kH([t,n[0]],[t,n[1]],LH(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:OH([t-i/2,n[0]],[i,r],LH(e))}}};function LH(e){return"x"===e.dim?0:1}var IH=DH,AH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},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}},t}(md),NH=AH,PH=Kr(),RH=m["each"];function FH(e,t,n){if(!g["a"].node){var i=t.getZr();PH(i).records||(PH(i).records={}),jH(i,t);var r=PH(i).records[e]||(PH(i).records[e]={});r.handler=n}}function jH(e,t){function n(n,i){e.on(n,(function(n){var r=$H(t);RH(PH(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),BH(r.pendings,t)}))}PH(e).initialized||(PH(e).initialized=!0,n("click",m["curry"](VH,"click")),n("mousemove",m["curry"](VH,"mousemove")),n("globalout",zH))}function BH(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function zH(e,t,n){e.handler("leave",null,n)}function VH(e,t,n,i){t.handler(e,n,i)}function $H(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function WH(e,t){if(!g["a"].node){var n=t.getZr(),i=(PH(n).records||{})[e];i&&(PH(n).records[e]=null)}}var HH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";FH("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){WH("axisPointer",t)},t.prototype.dispose=function(e,t){WH("axisPointer",t)},t.type="axisPointer",t}(qp),UH=HH;function qH(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Gr(o,e);if(null==a||a<0||m["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),d=u.dim,h=c.dim,f="x"===d||"radius"===d?1:0,p=o.mapDimension(h),g=[];g[f]=o.get(p,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(m["map"](l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var GH=Kr();function KH(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||Object(m["bind"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){rU(r)&&(r=qH({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=rU(r),c=o.axesInfo,u=s.axesInfo,d="leave"===i||rU(r),h={},f={},p={list:[],map:{}},g={showPointer:Object(m["curry"])(ZH,f),showTooltip:Object(m["curry"])(QH,p)};Object(m["each"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);Object(m["each"])(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=nU(c,e);if(!d&&n&&(!c||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&YH(e,a,g,!1,h)}}))}));var v={};return Object(m["each"])(u,(function(e,t){var n=e.linkGroup;n&&!f[t]&&Object(m["each"])(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,iU(t),iU(e)))),v[e.key]=o}}))})),Object(m["each"])(v,(function(e,t){YH(u[t],e,g,!0,h)})),JH(f,u,h),eU(p,r,e,a),tU(u,a,n),h}}function YH(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=XH(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(m["extend"])(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function XH(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(m["each"])(t.seriesModels,(function(t,l){var c,u,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);u=h.dataIndices,c=h.nestestValue}else{if(u=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!u.length)return;c=t.getData().get(d[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,p=Math.abs(f);p<=a&&((p<a||f>=0&&s<0)&&(a=p,s=f,r=c,o.length=0),Object(m["each"])(u,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function ZH(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function QH(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,c=bT(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function JH(e,t,n){var i=n.axesInfo=[];Object(m["each"])(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function eU(e,t,n,i){if(!rU(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function tU(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=GH(i)[r]||{},a=GH(i)[r]={};Object(m["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&Object(m["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Object(m["each"])(o,(function(e,t){!a[t]&&l.push(e)})),Object(m["each"])(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function nU(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function iU(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function rU(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function oU(e){wT.registerAxisPointerClass("CartesianAxisPointer",IH),e.registerComponentModel(NH),e.registerComponentView(UH),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(m["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=lT(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KH)}function aU(e){fw(AT),fw(oU)}var sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),c=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var d=yH(i),h=cU[u](o,a,c,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var f=i.get(["label","margin"]),p=lU(t,n,i,a,f);_H(e,n,i,r,p)},t}(bH);function lU(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,c,u,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=xe();Me(h,h,s),Oe(h,h,[i.cx,i.cy]),l=Hm([a,-r],h);var f=t.getModel("axisLabel").get("rotate")||0,p=sT.innerTextLayout(s,f*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var g=d[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var cU={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:kH(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:MH(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:MH(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},uU=sU,dU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(md),hU=dU,fU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qr).models[0]},t.type="polarAxis",t}(md);m["mixin"](fU,FC);var pU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="angleAxis",t}(fU),gU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="radiusAxis",t}(fU),mU=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return p(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(kS);mU.prototype.dataToRadius=kS.prototype.dataToCoord,mU.prototype.radiusToData=kS.prototype.coordToData;var vU=mU,bU=Kr(),yU=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return p(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=mi(null==o?"":o+"",t.getFont(),"center","top"),c=Math.max(l.height,7),u=c/s;isNaN(u)&&(u=1/0);var d=Math.max(0,Math.floor(u)),h=bU(e.model),f=h.lastAutoInterval,p=h.lastTickCount;return null!=f&&null!=p&&Math.abs(f-d)<=1&&Math.abs(p-r)<=1&&f>d?d=f:(h.lastTickCount=r,h.lastAutoInterval=d),d},t}(kS);yU.prototype.dataToAngle=kS.prototype.dataToCoord,yU.prototype.angleToData=kS.prototype.coordToData;var _U=yU,wU=["radius","angle"],xU=function(){function e(e){this.dimensions=wU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new vU,this._angleAxis=new _U,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,c=l<o?1:-1;while(l<o||l>a)l+=360*c;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=CU(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=CU(t);return i===this?this.pointToData(n):null},e}();function CU(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var SU=xU;function kU(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Ji(i[0],r),e.cy=Ji(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:m["isArray"](l)||(l=[0,l]);var c=[Ji(l[0],s),Ji(l[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}function OU(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();m["each"](PC(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),m["each"](PC(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),OC(i.scale,i.model),OC(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function MU(e){return"angleAxis"===e.mainType}function DU(e,t){if(e.type=t.get("type"),e.scale=MC(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),MU(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var EU={dimensions:wU,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new SU(i+"");r.update=OU;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");DU(o,s),DU(a,l),kU(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Qr).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},TU=EU,LU=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function IU(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function AU(e){var t=e.getRadiusAxis();return t.inverse?0:1}function NU(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var PU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return p(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=m["map"](n.getViewLabels(),(function(e){e=m["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));NU(s),NU(o),m["each"](LU,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||RU[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(wT),RU={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=AU(n),c=l?0:1;a=0===o[c]?new yg({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Wg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[AU(n)],c=m["map"](i,(function(e){return new tm({shape:IU(n,[l,l+s],e.coord)})}));e.add(jm(c,{style:m["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),c=o[AU(n)],u=[],d=0;d<r.length;d++)for(var h=0;h<r[d].length;h++)u.push(new tm({shape:IU(n,[c,c+l],r[d][h].coord)}));e.add(jm(u,{style:m["defaults"](s.getModel("lineStyle").getLineStyle(),m["defaults"](a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");m["each"](a,(function(i,r){var a=l,d=i.tickValue,h=o[AU(n)],f=n.coordToPoint([h+c,i.coord]),p=n.cx,g=n.cy,v=Math.abs(f[0]-p)/h<.3?"center":f[0]>p?"left":"right",b=Math.abs(f[1]-g)/h<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[d]){var y=s[d];m["isObject"](y)&&y.textStyle&&(a=new Uc(y.textStyle,l,l.ecModel))}var _=new $s({silent:sT.isLabelSilent(t),style:wc(a,{x:f[0],y:f[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:b})});if(e.add(_),u){var w=sT.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=i.rawLabel,Ws(_).eventData=w}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<i.length;d++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new tm({shape:IU(n,o,i[d].coord)}))}for(d=0;d<u.length;d++)e.add(jm(u[d],{style:m["defaults"]({stroke:l[d%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],c=0;c<r.length;c++)for(var u=0;u<r[c].length;u++)l.push(new tm({shape:IU(n,o,r[c][u].coord)}));e.add(jm(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=Math.PI/180,h=-i[0].coord*d,f=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),g=t.get("clockwise"),v=1,b=i.length;v<=b;v++){var y=v===b?i[0].coord:i[v].coord,_=c++%l.length;u[_]=u[_]||[],u[_].push(new zg({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:h,endAngle:-y*d,clockwise:g},silent:!0})),h=-y*d}for(v=0;v<u.length;v++)e.add(jm(u[v],{style:m["defaults"]({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}},FU=PU,jU=["axisLine","axisTickLabel","axisName"],BU=["splitLine","splitArea","minorSplitLine"],zU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return p(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new Fi;this.group.add(i);var r=e.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),c=a.getExtent()[0],u=r.getExtent(),d=$U(o,e,c),h=new sT(e,d);m["each"](jU,h.add,h),i.add(h.getGroup()),Km(n,i,e),m["each"](BU,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&VU[t](this.group,e,o,c,u,s,l)}),this)}},t.type="radiusAxis",t}(wT),VU={splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=0;d<o.length;d++){var h=c++%l.length;u[h]=u[h]||[],u[h].push(new yg({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[d].coord,0)}}))}for(d=0;d<u.length;d++)e.add(jm(u[d],{style:m["defaults"]({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),c=[],u=0;u<a.length;u++)for(var d=0;d<a[u].length;d++)c.push(new yg({shape:{cx:n.cx,cy:n.cy,r:a[u][d].coord}}));e.add(jm(c,{style:m["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var a=t.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],d=o[0].coord,h=1;h<o.length;h++){var f=c++%l.length;u[f]=u[f]||[],u[f].push(new zg({shape:{cx:n.cx,cy:n.cy,r0:d,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),d=o[h].coord}for(h=0;h<u.length;h++)e.add(jm(u[h],{style:m["defaults"]({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function $U(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var WU=zU;function HU(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function UU(e,t){return t.dim+e.model.componentIndex}function qU(e,t,n){var i={},r=GU(m["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=UU(n,o),s=HU(e),l=r[a][s],c=l.offset,u=l.width,d=n.getOtherAxis(o),h=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=t.mapDimension(d.dim),v=t.mapDimension(o.dim),b=ox(t,m),y="radius"!==o.dim||!e.get("roundCap",!0),_=d.dataToCoord(0),w=0,x=t.count();w<x;w++){var C=t.get(m,w),S=t.get(v,w),k=C>=0?"p":"n",O=_;b&&(i[s][S]||(i[s][S]={p:_,n:_}),O=i[s][S][k]);var M=void 0,D=void 0,E=void 0,T=void 0;if("radius"===d.dim){var L=d.dataToCoord(C)-_,I=o.dataToCoord(S);Math.abs(L)<p&&(L=(L<0?-1:1)*p),M=O,D=O+L,E=I-c,T=E-u,b&&(i[s][S][k]=D)}else{var A=d.dataToCoord(C,y)-_,N=o.dataToCoord(S);Math.abs(A)<g&&(A=(A<0?-1:1)*g),M=N+c,D=M+u,E=O,T=O+A,b&&(i[s][S][k]=T)}t.setItemLayout(w,{cx:h,cy:f,r0:M,r:D,startAngle:-E*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:E>=T})}}}))}function GU(e){var t={};m["each"](e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=UU(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),c=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[a]=c;var d=HU(e);u[d]||c.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var h=Ji(e.get("barWidth"),l),f=Ji(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");h&&!u[d].width&&(h=Math.min(c.remainedWidth,h),u[d].width=h,c.remainedWidth-=h),f&&(u[d].maxWidth=f),null!=p&&(c.gap=p),null!=g&&(c.categoryGap=g)}));var n={};return m["each"](t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Ji(e.categoryGap,r),a=Ji(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,c=(s-o)/(l+(l-1)*a);c=Math.max(c,0),m["each"](i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,l--)})),c=(s-o)/(l+(l-1)*a),c=Math.max(c,0);var u,d=0;m["each"](i,(function(e,t){e.width||(e.width=c),u=e,d+=e.width*(1+a)})),u&&(d-=u.width*a);var h=-d/2;m["each"](i,(function(e,i){n[t][i]=n[t][i]||{offset:h,width:e.width},h+=e.width*(1+a)}))})),n}var KU=qU,YU={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},XU={splitNumber:5},ZU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="polar",t}(qp);function QU(e){fw(oU),wT.registerAxisPointerClass("PolarAxisPointer",uU),e.registerCoordinateSystem("polar",TU),e.registerComponentModel(hU),e.registerComponentView(ZU),DE(e,"angle",pU,YU),DE(e,"radius",gU,XU),e.registerComponentView(FU),e.registerComponentView(WU),e.registerLayout(Object(m["curry"])(KU,"bar"))}function JU(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?c.vertical[o]:l[0],"horizontal"===a?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};r.rotation=Math.PI/2*u[a];var d={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=d[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),m["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=t.rotate;return null==h&&(h=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var eq=["axisLine","axisTickLabel","axisName"],tq=["splitArea","splitLine"],nq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return p(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Fi;var s=JU(t),l=new sT(t,s);m["each"](eq,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),m["each"](tq,(function(e){t.get([e,"show"])&&iq[e](this,this.group,this._axisGroup,t)}),this),Km(a,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){ST(this)},t.type="singleAxis",t}(wT),iq={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),c=i.coordinateSystem.getRect(),u=r.isHorizontal(),d=[],h=0,f=r.getTicksCoords({tickModel:o}),p=[],g=[],v=0;v<f.length;++v){var b=r.toGlobalCoord(f[v].coord);u?(p[0]=b,p[1]=c.y,g[0]=b,g[1]=c.y+c.height):(p[0]=c.x,p[1]=b,g[0]=c.x+c.width,g[1]=b);var y=new tm({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});zm(y.shape,l);var _=h++%s.length;d[_]=d[_]||[],d[_].push(y)}var w=a.getLineStyle(["color"]);for(v=0;v<d.length;++v)t.add(jm(d[v],{style:m["defaults"]({stroke:s[v%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,i){CT(e,n,i,i)}},rq=nq,oq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(md);Object(m["mixin"])(oq,FC.prototype);var aq=oq,sq=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return p(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(kS),lq=sq,cq=["single"],uq=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=cq,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new lq(i,MC(e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(m["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),OC(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=ad({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=dq(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=dq(t);return i===this?this.pointToData(n):null},e}();function dq(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var hq=uq;function fq(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new hq(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Qr).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var pq={create:fq,dimensions:cq},gq=pq,mq=["x","y"],vq=["width","height"],bq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=wq(a,1-_q(o)),l=a.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=yH(i),d=yq[c](o,l,s);d.style=u,e.graphicKey=d.type,e.pointer=d}var h=JU(n);SH(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=JU(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=CH(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=_q(r),s=wq(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var c=wq(o,1-a),u=(c[1]+c[0])/2,d=[u,u];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(bH),yq={line:function(e,t,n){var i=kH([t,n[0]],[t,n[1]],_q(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:OH([t-i/2,n[0]],[i,r],_q(e))}}};function _q(e){return e.isHorizontal()?0:1}function wq(e,t){var n=e.getRect();return[n[mq[t]],n[mq[t]]+n[vq[t]]]}var xq=bq,Cq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="single",t}(qp);function Sq(e){fw(oU),wT.registerAxisPointerClass("SingleAxisPointer",xq),e.registerComponentView(Cq),e.registerComponentView(rq),e.registerComponentModel(aq),DE(e,"single",aq,aq.defaultOption),e.registerCoordinateSystem("single",gq)}var kq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t,n,i){var r=dd(t);e.prototype.init.apply(this,arguments),Oq(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),Oq(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(md);function Oq(e,t){var n,i=e.cellSize;n=m["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=m["map"]([0,1],(function(e){return ld(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));ud(e,t,{type:"box",ignoreSize:r})}var Mq=kq,Dq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,c=new Ss({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){h(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=o.getDateInfo(d)}function h(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Zg({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(m["isString"])(e)&&e?Ku(e,t):Object(m["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,u="horizontal"===n?0:1,d={top:[l,s[u][1]],bottom:[l,s[1-u][1]],left:[s[1-u][0],c],right:[s[u][0],c]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var f=r.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:h},g=this._formatterLabel(f,p),m=new $s({z2:30,style:wc(r,{text:g})});m.attr(this._yearTextPositionControl(m,d[a],n,a,o)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(m["isString"])(o)||(o&&(t=su(o)||t),o=t.get(["time","monthAbbr"])||[]);var u="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,f=0;f<c[u].length-1;f++){var p=c[u][f].slice(),g=this._firstDayOfMonth[f];if(h){var v=this._firstDayPoints[f];p[d]=(v[d]+c[0][f+1][d])/2}var b=r.get("formatter"),y=o[+g.m-1],_={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},w=this._formatterLabel(b,_),x=new $s({z2:30,style:Object(m["extend"])(wc(r,{text:w}),this._monthTextPositionControl(p,h,n,s,a))});i.add(x)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",a="middle",s=e[0],l=e[1],c="start"===n;return"horizontal"===t?(s=s+i+(c?1:-1)*r[0]/2,o=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,a=c?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),c=o.get("margin"),u=a.getFirstDayOfWeek();if(!l||Object(m["isString"])(l)){l&&(t=su(l)||t);var d=t.get(["time","dayOfWeekShort"]);l=d||Object(m["map"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var h=a.getNextNDay(n.end.time,7-n.lweek).time,f=[a.getCellWidth(),a.getCellHeight()];c=Ji(c,Math.min(f[1],f[0])),"start"===s&&(h=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var p=0;p<7;p++){var g=a.getNextNDay(h,p),v=a.dataToRect([g.time],!1).center,b=p;b=Math.abs((p+u)%7);var y=new $s({z2:30,style:Object(m["extend"])(wc(o,{text:l[b]}),this._weekTextPositionControl(v,i,s,c,f))});r.add(y)}}},t.type="calendar",t}(qp),Eq=Dq,Tq=864e5,Lq=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=hr(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];m["each"]([0,1],(function(e){c(r,e)&&(o[i[e]]=r[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},l=this._rect=ad(o,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}m["each"]([0,1],(function(e){c(r,e)||(r[e]=l[i[e]]/a[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){m["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+Tq))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=Iq(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Iq(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(m["isArray"](t)&&1===t.length&&(t=t[0]),m["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/Tq)-Math.floor(n[0].time/Tq)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function Iq(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var Aq=Lq;function Nq(e){e.registerComponentModel(Mq),e.registerComponentView(Eq),e.registerCoordinateSystem("calendar",Aq)}function Pq(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Rq(e,t){var n;return m["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function Fq(e,t,n){var i=m["extend"]({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(m["merge"](r,i,!0),ud(r,i,{ignoreSize:!0}),hd(n,r),zq(n,r),zq(n,r,"shape"),zq(n,r,"style"),zq(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var jq=["transition","enterFrom","leaveTo"],Bq=jq.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function zq(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?jq:Bq,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function Vq(e,t){if(e&&(e.hv=t.hv=[Rq(t,["left","right"]),Rq(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var $q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return p(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var a=Lr(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];m["each"](a,(function(e,t){var n=e.newOption;n&&(s.push(n),Pq(e,n),Fq(r,t,n),Vq(r[t],n))}),this),n.elements=m["filter"](r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){m["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(md),Wq={path:null,compoundPath:null,group:Fi,image:gs,text:$s},Hq=Kr(),Uq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){this._elMap=m["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");m["each"](t,(function(t){var a=zr(t.id,null),s=null!=a?n.get(a):null,l=zr(t.parentId,null),c=null!=l?n.get(l):i,u=t.type,d=t.style;"text"===u&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var h=t.textContent,f=t.textConfig;if(d&&G$(d,u,!!f,!!h)){var p=K$(d,u,!0);!f&&p.textConfig&&(f=t.textConfig=p.textConfig),!h&&p.textContent&&(h=p.textContent)}var g=Xq(t);var m=t.$action||"merge",v="merge"===m,b="replace"===m;if(v){var y=!s,_=s;y?_=Gq(a,c,t.type,n):(_&&(Hq(_).isNew=!1),wW(_)),_&&(iW(_,g,e,{isInit:y}),Yq(_,t,r,o))}else if(b){Kq(s,t,n,e);var w=Gq(a,c,t.type,n);w&&(iW(w,g,e,{isInit:!0}),Yq(w,t,r,o))}else"remove"===m&&(rW(s,t),Kq(s,t,n,e));var x=n.get(a);if(x&&h)if(v){var C=x.getTextContent();C?C.attr(h):x.setTextContent(new $s(h))}else b&&x.setTextContent(new $s(h));if(x){var S=t.clipPath;if(S){var k=S.type,O=void 0;y=!1;if(v){var M=x.getClipPath();y=!M||Hq(M).type!==k,O=y?qq(k):M}else b&&(y=!0,O=qq(k));x.setClipPath(O),iW(O,S,e,{isInit:y}),xW(O,S.keyframeAnimation,e)}var D=Hq(x);x.setTextConfig(f),D.option=t,Zq(x,e,t),nv({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),xW(x,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],l=0;l<n.length;l++){var c=n[l],u=zr(c.id,null),d=null!=u?r.get(u):null;if(d&&d.isGroup){var h=d.parent,f=h===i,p=Hq(d),g=Hq(h);p.width=Ji(p.option.width,f?o:g.width)||0,p.height=Ji(p.option.height,f?a:g.height)||0}}for(l=n.length-1;l>=0;l--){c=n[l],u=zr(c.id,null),d=null!=u?r.get(u):null;if(d){h=d.parent,g=Hq(h);var v=h===i?{width:o,height:a}:{width:g.width,height:g.height},b={},y=sd(d,c,v,null,{hv:c.hv,boundingMode:c.bounding},b);if(!Hq(d).isNew&&y){for(var _=c.transition,w={},x=0;x<s.length;x++){var C=s[x],S=b[C];_&&(aW(_)||m["indexOf"](_,C)>=0)?w[C]=S:d[C]=S}lc(d,w,e,0)}else d.attr(b)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){Kq(n,Hq(n).option,t,e._lastGraphicModel)})),this._elMap=m["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(qp);function qq(e){var t=m["hasOwn"](Wq,e)?Wq[e]:Nm(e);var n=new t({});return Hq(n).type=e,n}function Gq(e,t,n,i){var r=qq(n);return t.add(r),i.set(e,r),Hq(r).id=e,Hq(r).isNew=!0,r}function Kq(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){Kq(e,t,n,i)})),oW(e,t,i),n.removeKey(Hq(e).id))}function Yq(e,t,n,i){e.isGroup||m["each"]([["cursor",ea.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];m["hasOwn"](t,i)?e[i]=m["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),m["each"](m["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=m["isFunction"](i)?i:null}})),m["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function Xq(e){return e=m["extend"]({},e),m["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(td),(function(t){delete e[t]})),e}function Zq(e,t,n){var i=Ws(e).eventData;e.silent||e.ignore||i||(i=Ws(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function Qq(e){e.registerComponentModel($q),e.registerComponentView(Uq),e.registerPreprocessor((function(e){var t=e.graphic;Object(m["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var Jq=["x","y","radius","angle","single"],eG=["cartesian2d","polar","singleAxis"];function tG(e){var t=e.get("coordinateSystem");return Object(m["indexOf"])(eG,t)>=0}function nG(e){return e+"Axis"}function iG(e,t){var n,i=Object(m["createHashMap"])(),r=[],o=Object(m["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function rG(e){var t=e.ecModel,n={infoList:[],infoMap:Object(m["createHashMap"])()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(nG(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var oG=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),aG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return p(t,e),t.prototype.init=function(e,t,n){var i=sG(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=sG(e);Object(m["merge"])(this.option,e,!0),Object(m["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(m["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(m["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(m["each"])(Jq,(function(n){var i=this.getReferringComponents(nG(n),Jr);if(i.specified){t=!0;var r=new oG;Object(m["each"])(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new oG;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Qr).models[0];a&&Object(m["each"])(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Qr).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(m["each"])(Jq,(function(t){if(i){var r=n.findComponents({mainType:nG(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new oG;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(m["each"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(nG(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(m["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(nG(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(m["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(m["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(md);function sG(e){var t={};return Object(m["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var lG=aG,cG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.select",t}(lG),uG=cG,dG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(qp),hG=dG,fG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.select",t}(hG),pG=fG,gG=m["each"],mG=tr,vG=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(tG(t)){var n=nG(this._dimName),i=t.getReferringComponents(n,Qr).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return m["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];gG(["start","end"],(function(i,c){var u=e[i],d=e[i+"Value"];"percent"===o[c]?(null==u&&(u=a[c]),d=r.parse(Qi(u,a,n))):(t=!0,d=null==d?n[c]:r.parse(d),u=Qi(d,n,a)),l[c]=null==d||isNaN(d)?n[c]:d,s[c]=null==u||isNaN(u)?a[c]:u})),mG(l),mG(s);var c=this._minMaxSpan;function u(e,t,n,i,o){var a=o?"Span":"ValueSpan";BF(0,e,n,"all",c["min"+a],c["max"+a]);for(var s=0;s<2;s++)t[s]=Qi(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?u(l,s,n,a,!1):u(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=bG(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&gG(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var s=t.getStore(),l=m["map"](i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,a=0;a<i.length;a++){var c=s.get(l[a],e),u=!isNaN(c),d=c<o[0],h=c>o[1];if(u&&!d&&!h)return!0;u&&(r=!0),d&&(t=!0),h&&(n=!0)}return r&&t&&n}))}else gG(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));gG(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;gG(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Qi(n[0]+o,n,[0,100],!0):null!=r&&(o=Qi(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=rr(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function bG(e,t,n){var i=[1/0,-1/0];gG(n,(function(e){RC(i,e.getData(),t)}));var r=e.getAxisModel(),o=xC(r.axis.scale,r,i).calculate();return[o.min,o.max]}var yG=vG,_G={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(nG(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new yG(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=Object(m["createHashMap"])();return Object(m["each"])(n,(function(e){Object(m["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},wG=_G;function xG(e){e.registerAction("dataZoom",(function(e,t){var n=iG(t,e);Object(m["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var CG=!1;function SG(e){CG||(CG=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,wG),xG(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function kG(e){e.registerComponentModel(uG),e.registerComponentView(pG),SG(e)}var OG=function(){function e(){}return e}(),MG={};function DG(e,t){MG[e]=t}function EG(e){return MG[e]}var TG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;m["each"](this.option.feature,(function(e,n){var i=EG(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),m["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(md),LG=TG;function IG(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ad(i,o,r);rd(t.get("orient"),e,t.get("itemGap"),a.width,a.height),sd(e,i,o,r)}function AG(e,t){var n=Wu(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new Ss({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var NG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),c=[];m["each"](s,(function(e,t){c.push(t)})),new vw(this._featureNames||[],c).add(u).update(u).remove(m["curry"](u,null)).execute(),this._featureNames=c,IG(r,e,n),r.add(AG(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!m["isFunction"](l)&&t){var c=l.style||(l.style={}),u=mi(t,$s.makeFont(c)),d=e.x+r.x,h=e.y+r.y+o,f=!1;h+u.height>n.getHeight()&&(a.position="top",f=!0);var p=f?-5-u.height:o+10;d+u.width/2>n.getWidth()?(a.position=["100%",p],c.align="right"):d-u.width/2<0&&(a.position=[0,p],c.align="left")}}))}function u(r,o){var a,u=c[r],h=c[o],f=s[u],p=new Uc(f,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===u&&(f.title=i.newTitle),u&&!h){if(PG(u))a={onclick:p.option.onclick,featureName:u};else{var g=EG(u);if(!g)return;a=new g}l[u]=a}else if(a=l[h],!a)return;a.uid=Gc("toolbox-feature"),a.model=p,a.ecModel=t,a.api=n;var m=a instanceof OG;u||!h?!p.get("show")||m&&a.unusable?m&&a.remove&&a.remove(t,n):(d(p,a,u),p.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Dl:El)(i[e])},a instanceof OG&&a.render&&a.render(p,t,n,i)):m&&a.dispose&&a.dispose(t,n)}function d(i,s,l){var c,u,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),f=s instanceof OG&&s.getIcons?s.getIcons():i.get("icon"),p=i.get("title")||{};m["isString"](f)?(c={},c[l]=f):c=f,m["isString"](p)?(u={},u[l]=p):u=p;var g=i.iconPaths={};m["each"](c,(function(l,c){var f=Zm(l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(d.getItemStyle());var p=f.ensureState("emphasis");p.style=h.getItemStyle();var v=new $s({style:{text:u[c],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});f.setTextContent(v),nv({el:f,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",(function(){var t=h.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),f.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",c])?Dl:El)(f),r.add(f),f.on("click",m["bind"](s.onclick,s,t,n,c)),g[c]=f}))}},t.prototype.updateView=function(e,t,n,i){m["each"](this._features,(function(e){e instanceof OG&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){m["each"](this._features,(function(n){n instanceof OG&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){m["each"](this._features,(function(n){n instanceof OG&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(qp);function PG(e){return 0===e.indexOf("my")}var RG=NG,FG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=g["a"].browser;if(Object(m["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||r){var u=a.split(","),d=u[0].indexOf("base64")>-1,h=r?decodeURIComponent(u[1]):u[1];d&&(h=window.atob(h));var f=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var p=h.length,v=new Uint8Array(p);while(p--)v[p]=h.charCodeAt(p);var b=new Blob([v]);window.navigator.msSaveOrOpenBlob(b,f)}else{var y=document.createElement("iframe");document.body.appendChild(y);var _=y.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(h),w.close(),_.focus(),w.execCommand("SaveAs",!0,f),document.body.removeChild(y)}}else{var x=n.get("lang"),C='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',S=window.open();S.document.write(C),S.document.title=i}},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(OG),jG=FG,BG="__ec_magicType_stack__",zG=[["line","bar"],["stack"]],VG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return m["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={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"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if($G[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=$G[n](t,r,e,i);o&&(m["defaults"](o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",d=e.getReferringComponents(u,Qr).models[0],h=d.componentIndex;a[u]=a[u]||[];for(var f=0;f<=h;f++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}};m["each"](zG,(function(e){m["indexOf"](e,n)>=0&&m["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=m["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(OG),$G={line:function(e,t,n,i){if("bar"===e)return m["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return m["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===BG;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),m["merge"]({id:t,stack:r?"":BG},i.get(["option","stack"])||{},!0)}};Q_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var WG=VG,HG=new Array(60).join("-"),UG="\t";function qG(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function GG(e){var t=[];return m["each"](e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(m["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];m["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join(UG)],c=0;c<s[0].length;c++){for(var u=[],d=0;d<s.length;d++)u.push(s[d][c]);l.push(u.join(UG))}t.push(l.join("\n"))})),t.join("\n\n"+HG+"\n\n")}function KG(e){return m["map"](e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),a=0;a<e-1;a++)i[a]=arguments[a];n.push((o?o+UG:"")+i.join(UG))})),n.join("\n")})).join("\n\n"+HG+"\n\n")}function YG(e){var t=qG(e);return{value:m["filter"]([GG(t.seriesGroupByCategoryAxis),KG(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+HG+"\n\n"),meta:t.meta}}function XG(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ZG(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(UG)>=0)return!0}var QG=new RegExp("["+UG+"]+","g");function JG(e){for(var t=e.split(/\n+/g),n=XG(t.shift()).split(QG),i=[],r=m["map"](n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=XG(t[o]).split(QG);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}function eK(e){for(var t=e.split(/\n+/g),n=XG(t.shift()),i=[],r=0;r<t.length;r++){var o=XG(t[r]);if(o){var a=o.split(QG),s="",l=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var u=0;u<a.length;u++)l.push(+a[u]);1===l.length&&(c?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function tK(e,t){var n=e.split(new RegExp("\n*"+HG+"\n*","g")),i={series:[]};return m["each"](n,(function(e,n){if(ZG(e)){var r=JG(e),o=t[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=eK(e);i.series.push(r)}})),i}var nK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),d=YG(e);if(m["isFunction"](c)){var h=c(t.getOption());m["isString"](h)?s.innerHTML=h:m["isDom"](h)&&s.appendChild(h)}else{l.readOnly=i.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),l.value=d.value,s.appendChild(l)}var p=d.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var v="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),y=document.createElement("div");v+=";background-color:"+i.get("buttonColor"),v+=";color:"+i.get("buttonTextColor");var _=this;function w(){n.removeChild(r),_._dom=null}pe(b,"click",w),pe(y,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)w();else{var e;try{e=m["isFunction"](u)?u(s,t.getOption()):tK(l.value,p)}catch(n){throw w(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}})),b.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=b.style.cssText=v,!i.get("readOnly")&&g.appendChild(y),g.appendChild(b),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(OG);function iK(e,t){return m["map"](e,(function(e,n){var i=t&&t[n];if(m["isObject"](i)&&!m["isArray"](i)){var r=m["isObject"](e)&&!m["isArray"](e);r||(e={value:e});var o=null!=i.name&&null==e.name;return e=m["defaults"](e,i),o&&delete e.name,e}return e}))}Q_({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];m["each"](e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:iK(e.data,r)})}else n.push(m["extend"]({type:"scatter"},e))})),t.mergeOption(m["defaults"]({series:n},e.newOption))}));var rK=nK,oK=m["each"],aK=Kr();function sK(e,t){var n=dK(e);oK(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function lK(e){var t=dK(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return oK(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function cK(e){aK(e).snapshots=null}function uK(e){return dK(e).length}function dK(e){var t=aK(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var hK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.onclick=function(e,t){cK(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={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:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(OG);Q_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var fK=hK,pK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],gK=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=vK(t,e);Object(m["each"])(bK,(function(e,t){(!n||!n.include||Object(m["indexOf"])(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=wK[e.brushType](0,n,t);e.__rangeOffset={offset:CK[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(m["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(m["each"])(i.coordSyses,(function(i){var r=wK[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(m["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=wK[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?CK[e.brushType](i.values,r.offset,kK(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(m["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:tB(i),isTargetByCursor:iB(i,e,n.coordSysModel),getLinearBrushOtherExtent:nB(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(m["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=vK(t,e),r=0;r<n.length;r++){var o=n[r],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<yK.length;s++)if(yK[s](i,o))return o}return!0},e}();function mK(e){return e[0]>e[1]&&e.reverse(),e}function vK(e,t){return Xr(e,t,{includeMainTypes:pK})}var bK={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Object(m["createHashMap"])(),a={},s={};(n||i||r)&&(Object(m["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(m["each"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(m["each"])(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];Object(m["each"])(r.getCartesians(),(function(e,t){(Object(m["indexOf"])(n,e.getAxis("x").model)>=0||Object(m["indexOf"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:_K.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(m["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_K.geo})}))}},yK=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],_K={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Wm(e)),t}},wK={lineX:Object(m["curry"])(xK,0),lineY:Object(m["curry"])(xK,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[mK([r[0],o[0]]),mK([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(m["map"])(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function xK(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=mK(Object(m["map"])([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var CK={lineX:Object(m["curry"])(SK,0),lineY:Object(m["curry"])(SK,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(m["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function SK(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function kK(e,t){var n=OK(e),i=OK(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function OK(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var MK=gK,DK=m["each"],EK=Wr("toolbox-dataZoom_"),TK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new eB(n.getZr()),this._brushController.on("brush",m["bind"](this._onBrush,this)).mount()),NK(e,t,this,i,n),AK(e,t)},t.prototype.onclick=function(e,t,n){LK[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new MK(IK(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),sK(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),c=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=BF(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];DK(e,(function(e,n){t.push(m["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(OG),LK={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(lK(this.ecModel))}};function IK(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function AK(e,t){e.setIconStatus("back",uK(t)>1?"emphasis":"normal")}function NK(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new MK(IK(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Bd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=IK(i),a=Xr(e,o);return DK(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),DK(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:EK+t+o};a[n]=o,r.push(a)}}));var PK=TK;function RK(e){e.registerComponentModel(LG),e.registerComponentView(RG),DG("saveAsImage",jG),DG("magicType",WG),DG("dataView",rK),DG("dataZoom",PK),DG("restore",fK),fw(kG)}var FK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(md),jK=FK;function BK(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function zK(e){if(g["a"].domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var VK=zK(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$K=zK(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function WK(e,t){if(!e)return t;t=$u(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function HK(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var UK=WK($K,"transition"),qK=WK(VK,"transform"),GK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(g["a"].transform3dSupported?"will-change:transform;":"");function KK(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function YK(e,t,n){if(!Object(m["isString"])(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Qu(t);var o,a=KK(n),s=Math.max(1.5*Math.round(r),6),l="",c=qK+":";Object(m["indexOf"])(["left","right"],a)>-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var u=o*Math.PI/180,d=s+r,h=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),f=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+f+"px";var p=t+" solid "+r+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function XK(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=g["a"].transformSupported?","+qK+i:",left"+i+",top"+i),UK+":"+r}function ZK(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!g["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=g["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+qK+":"+a+";":[["top",0],["left",0],[VK,a]]}function QK(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),Object(m["each"])(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function JK(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),d=Dp(e,"html"),h=l+"px "+c+"px "+a+"px "+s;return i.push("box-shadow:"+h),t&&r&&i.push(XK(r,n)),o&&i.push("background-color:"+o),Object(m["each"])(["width","color","radius"],(function(t){var n="border-"+t,r=$u(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(QK(u)),null!=d&&i.push("padding:"+Wu(d).join("px ")+"px"),i.join(";")+";"}function eY(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&Q(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var tY=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,g["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;eY(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;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 t=r.handler,n=r.painter.getViewportRoot();he(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=HK(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=GK+JK(e,!this._firstShow,this._longHide)+ZK(r[0],r[1],!0)+"border-color:"+Qu(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(Object(m["isString"])(r)&&"item"===n.get("trigger")&&!BK(n)&&(a=YK(n,i,r)),Object(m["isString"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(m["isArray"])(e)||(e=[e]);for(var s=0;s<e.length;s++)Object(m["isDom"])(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(eY(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=ZK(n[0],n[1]);Object(m["each"])(r,(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",g["a"].transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(m["bind"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}(),nY=tY,iY=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),aY(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;m["isObject"](e)&&Qd(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new $s({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Dp(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),m["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),m["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=oY(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;aY(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=rY(r.borderWidth||0),a=oY(r);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(m["bind"](this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rY(e){return Math.max(0,e)}function oY(e){var t=rY(e.shadowBlur||0),n=rY(e.shadowOffsetX||0),i=rY(e.shadowOffsetY||0);return{left:rY(t-n),right:rY(t+n),top:rY(t-i),bottom:rY(t+i)}}function aY(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sY=iY,lY=new Ss({shape:{x:-1,y:-1,width:2,height:2}}),cY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){if(!g["a"].node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=io(n.get("renderMode"));this._tooltipContent="richText"===i?new sY(t):new nY(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!g["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?bv(this,"_updatePosition",50,"fixRate"):yv(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");FH("itemTooltip",this._api,Object(m["bind"])((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!g["a"].node&&n.getDom()){var r=dY(i,n);this._ticket="";var o=i.dataByCoordSys,a=mY(i,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=lY;l.x=i.x,l.y=i.y,l.update(),Ws(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=qH(i,t),u=c.point[0],d=c.point[1];null!=u&&null!=d&&this._tryShow({offsetX:u,offsetY:d,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(dY(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),c=uY([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,hb(n,(function(e){return null!=Ws(e).dataIndex?(o=e,!0):null!=Ws(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(m["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=uY([t.tooltipOption],i),a=this._renderMode,s=[],l=pp("section",{blocks:[],noHeader:!0}),c=[],u=new Ep;Object(m["each"])(e,(function(e){Object(m["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=xH(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=pp("section",{header:o,noHeader:!Object(m["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(m["each"])(e.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=h.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=TC(t.axis,{value:r}),p.axisValueLabel=o,p.marker=u.makeTooltipMarker("item",Qu(p.color),a);var g=Sf(h.formatTooltip(f,!0,null)),v=g.frag;if(v){var b=uY([h],i).get("valueFormatter");d.blocks.push(b?Object(m["extend"])({valueFormatter:b},v):v)}g.text&&c.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),c.reverse();var d=t.position,h=o.get("order"),f=_p(l,u,a,h,n.get("useUTC"),o.get("textStyle"));f&&c.unshift(f);var p="richText"===a?"\n\n":"<br/>",g=c.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],d,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Ws(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,c=r.dataType,u=s.getData(c),d=this._renderMode,h=e.positionDefault,f=uY([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,c),v=new Ep;g.marker=v.makeTooltipMarker("item",Qu(g.color),d);var b=Sf(s.formatTooltip(l,!1,c)),y=f.get("order"),_=f.get("valueFormatter"),w=b.frag,x=w?_p(_?Object(m["extend"])({valueFormatter:_},w):w,v,d,y,i.get("useUTC"),f.get("textStyle")):b.text,C="item_"+s.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,x,g,C,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Ws(t),r=i.tooltipConfig,o=r.option||{};if(Object(m["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var c=e.positionDefault,u=uY(s,this._tooltipModel,c?{position:c}:null),d=u.get("content"),h=Math.random()+"",f=new Ep;this._showOrMove(u,(function(){var n=Object(m["clone"])(u.get("formatterParams")||{});this._showTooltipContent(u,d,n,h,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),f=h.color;if(u)if(Object(m["isString"])(u)){var p=e.ecModel.get("useUTC"),g=Object(m["isArray"])(n)?n[0]:n,v=g&&g.axisType&&g.axisType.indexOf("time")>=0;d=u,v&&(d=Cu(g.axisValue,d,p)),d=Gu(d,n,!0)}else if(Object(m["isFunction"])(u)){var b=Object(m["bind"])((function(t,i){t===this._ticket&&(c.setContent(i,l,e,f,a),this._updatePosition(e,a,r,o,c,n,s))}),this);this._ticket=i,d=u(n,i,b)}else d=u;c.setContent(d,l,e,f,a),c.show(e,f),this._updatePosition(e,a,r,o,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Object(m["isArray"])(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(m["isArray"])(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),u=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Object(m["isFunction"])(t)&&(t=t([n,i],o,r.el,h,{viewSize:[s,l],contentSize:c.slice()})),Object(m["isArray"])(t))n=Ji(t[0],s),i=Ji(t[1],l);else if(Object(m["isObject"])(t)){var f=t;f.width=c[0],f.height=c[1];var p=ad(f,{width:s,height:l});n=p.x,i=p.y,u=null,d=null}else if(Object(m["isString"])(t)&&a){var g=pY(t,h,c,e.get("borderWidth"));n=g[0],i=g[1]}else{g=hY(n,i,r,s,l,u?null:20,d?null:20);n=g[0],i=g[1]}if(u&&(n-=gY(u)?c[0]/2:"right"===u?c[0]:0),d&&(i-=gY(d)?c[1]/2:"bottom"===d?c[1]:0),BK(e)){g=fY(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&Object(m["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(m["each"])(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&Object(m["each"])(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Object(m["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!g["a"].node&&t.getDom()&&(yv(this,"_updatePosition"),this._tooltipContent.dispose(),WH("itemTooltip",t))},t.type="tooltip",t}(qp);function uY(e,t,n){var i,r=t.ecModel;n?(i=new Uc(n,r,r),i=new Uc(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Uc&&(a=a.get("tooltip",!0)),Object(m["isString"])(a)&&(a={formatter:a}),a&&(i=new Uc(a,i,r)))}return i}function dY(e,t){return e.dispatchAction||Object(m["bind"])(t.dispatchAction,t)}function hY(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],c=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+c+a>r?t-=c+a:t+=a),[e,t]}function fY(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function pY(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,c=t.width,u=t.height;switch(e){case"inside":s=t.x+c/2-r/2,l=t.y+u/2-o/2;break;case"top":s=t.x+c/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-r/2,l=t.y+u+a;break;case"left":s=t.x-r-a,l=t.y+u/2-o/2;break;case"right":s=t.x+c+a,l=t.y+u/2-o/2}return[s,l]}function gY(e){return"center"===e||"middle"===e}function mY(e,t,n){var i=Zr(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=eo(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Ws(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var vY=cY;function bY(e){fw(oU),e.registerComponentModel(jK),e.registerComponentView(vY),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},m["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},m["noop"])}var yY=["rect","polygon","keep","clear"];function _Y(e,t){var n=Or(e?e.brush:[]);if(n.length){var i=[];m["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;m["isArray"](r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),wY(s),t&&!s.length&&s.push.apply(s,yY)}}function wY(e){var t={};m["each"](e,(function(e){t[e]=1})),e.length=0,m["each"](t,(function(t,n){e.push(n)}))}var xY=m["each"];function CY(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function SY(e,t,n){var i={};return xY(t,(function(t){var o=i[t]=r();xY(e[t],(function(e,i){if(GN.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new GN(r),"opacity"===i&&(r=m["clone"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new GN(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function kY(e,t,n){var i;m["each"](n,(function(e){t.hasOwnProperty(e)&&CY(t[e])&&(i=!0)})),i&&m["each"](n,(function(n){t.hasOwnProperty(n)&&CY(t[n])?e[n]=m["clone"](t[n]):delete e[n]}))}function OY(e,t,n,i,r,o){var a,s={};function l(e){return ab(n,a,e)}function c(e,t){lb(n,a,e,t)}function u(e,u){a=null==o?e:u;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,e),f=t[h],p=s[h],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(e,l,c)}}m["each"](e,(function(e){var n=GN.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(u):n.each([o],u)}function MY(e,t,n,i){var r={};return m["each"](e,(function(e){var n=GN.prepareVisualTypes(t[e]);r[e]=n})),{progress:function(e,o){var a,s;function l(e){return ab(o,s,e)}function c(e,t){lb(o,s,e,t)}null!=i&&(a=o.getDimensionIndex(i));var u=o.getStore();while(null!=(s=e.next())){var d=o.getRawDataItem(s);if(!d||!1!==d.visualMap)for(var h=null!=i?u.get(a,s):s,f=n(h),p=t[f],g=r[f],m=0,v=g.length;m<v;m++){var b=g[m];p[b]&&p[b].applyVisual(h,l,c)}}}}}function DY(e){var t=e.brushType,n={point:function(i){return EY[t].point(i,n,e)},rect:function(i){return EY[t].rect(i,n,e)}};return n}var EY={lineX:TY(0),lineY:TY(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&UC(n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,a=e.width,s=e.height,l=i[0];return!!(UC(i,r,o)||UC(i,r+a,o)||UC(i,r,o+s)||UC(i,r+a,o+s)||$e.create(e).contain(l[0],l[1])||Qm(r,o,r+a,o,i)||Qm(r,o,r,o+s,i)||Qm(r+a,o,r+a,o+s,i)||Qm(r,o+s,r+a,o+s,i))||void 0}}};function TY(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,o=t[e];return LY(o,r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[t[e]],i[t[e]]+i[n[e]]];return s[1]<s[0]&&s.reverse(),LY(s[0],a)||LY(s[1],a)||LY(a[0],s)||LY(a[1],s)}}}}function LY(e,t){return t[0]<=e&&e<=t[1]}var IY=["inBrush","outOfBrush"],AY="__ecBrushSelect",NY="__ecInBrushSelectEvent";function PY(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new MK(t.option,e);n.setInputRanges(t.areas,e)}))}function RY(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),PY(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:m["clone"](t.areas),selected:[]};o.push(a);var s=t.option,l=s.brushLink,c=[],u=[],d=[],h=!1;n||(i=s.throttleType,r=s.throttleDelay);var f=m["map"](t.areas,(function(e){var t=VY[e.brushType],n=m["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=DY(n),n})),p=SY(t.option,IY,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!c[e]}function v(e){return!!e.length}function b(e,t){var n=e.coordinateSystem;h=h||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}function y(n,i,r){if(n.brushSelector&&!zY(t,i)&&(m["each"](f,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),h=h||v(r)})),g(i)&&v(r))){var o=n.getData();o.each((function(e){BY(n,r,o,e)&&(u[e]=1)}))}}m["isArray"](l)&&m["each"](l,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=d[t]=[];"parallel"===e.subType?b(e,t):y(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var i=d[t],r=e.getData(),o=g(t)?function(e){return u[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return BY(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?h:v(i))&&OY(IY,p,r,o)}))})),FY(t,i,r,o,n)}function FY(e,t,n,i,r){if(r){var o=e.getZr();if(!o[NY]){o[AY]||(o[AY]=jY);var a=bv(o,AY,n,t);a(e,i)}}}function jY(e,t){if(!e.isDisposed()){var n=e.getZr();n[NY]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[NY]=!1}}function BY(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r];if(e.brushSelector(i,n,a.selectors,a))return!0}}function zY(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(m["isArray"](n)?m["indexOf"](n,t)<0:t!==n)}var VY={rect:function(e){return $Y(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&$Y(t)}};function $Y(e){return new $e(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var WY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new eB(t.getZr())).on("brush",m["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){PY(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:m["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:m["clone"](n),$from:t})},t.type="brush",t}(qp),HY=WY,UY="#ddd",qY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return p(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&kY(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:UY},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=m["map"](e,(function(e){return GY(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=GY(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(md);function GY(e,t){return m["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Uc(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var KY=qY,YY=["rect","polygon","lineX","lineY","keep","clear"],XY=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,m["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return m["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:YY.slice(),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:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(OG),ZY=XY;function QY(e){e.registerComponentView(HY),e.registerComponentModel(KY),e.registerPreprocessor(_Y),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,RY),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},m["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},m["noop"]),DG("brush",ZY)}var JY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return p(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(md),eX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=m["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new $s({style:wc(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),d=new $s({style:wc(o,{text:u,fill:o.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!h&&!p,d.silent=!f&&!p,h&&l.on("click",(function(){Ju(h,"_"+e.get("target"))})),f&&d.on("click",(function(){Ju(f,"_"+e.get("subtarget"))})),Ws(l).eventData=Ws(d).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(d);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var b=ad(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?b.x+=b.width:"center"===a&&(b.x+=b.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?b.y+=b.height:"middle"===s&&(b.y+=b.height/2),s=s||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),d.setStyle(y),g=i.getBoundingRect();var _=b.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new Ss({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(qp);function tX(e){e.registerComponentModel(JY),e.registerComponentView(eX)}var nX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],Object(m["each"])(n,(function(t,n){var i,o=zr(Er(t),"");Object(m["isObject"])(t)?(i=Object(m["clone"])(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new Gw([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={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:{},label:{color:"#000"},data:[]},t}(md),iX=nX,rX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="timeline.slider",t.defaultOption=Xc(iX.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(iX);Object(m["mixin"])(rX,Cf.prototype);var oX=rX,aX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="timeline",t}(qp),sX=aX,lX=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return p(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(kS),cX=lX,uX=Math.PI,dX=Kr(),hX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return pp("nameValue",{noName:!0,value:t})},Object(m["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=pX(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":Object(m["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var a,s,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:uX/2},h="vertical"===r?o.height:o.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,v=p?f.get("itemGap"):0,b=g+v,y=e.get(["label","rotate"])||0;y=y*uX/180;var _=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),x=p&&f.get("showPrevBtn",!0),C=p&&f.get("showNextBtn",!0),S=0,k=h;"left"===_||"bottom"===_?(w&&(a=[0,0],S+=b),x&&(s=[S,0],S+=b),C&&(l=[k-g,0],k-=b)):(w&&(a=[k-g,0],k-=b),x&&(s=[0,0],S+=b),C&&(l=[k-g,0],k-=b));var O=[S,k];return e.get("inverse")&&O.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:O,controlSize:g,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=xe(),a=r.x,s=r.y+r.height;Oe(o,o,[-a,-s]),Me(o,o,-uX/2),Oe(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),c=v(n.getBoundingRect()),u=v(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var f=e.labelPosOpt;if(null==f||Object(m["isString"])(f)){var p="+"===f?0:1;b(d,c,l,1,p),b(h,u,l,1,1-p)}else{p=f>=0?0:1;b(d,c,l,1,p),h[1]=d[1]+f}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function b(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=fX(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new cX("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Fi;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new tm({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(m["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new tm({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(m["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(m["each"])(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),u=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(m["bind"])(r._changeTimeline,r,e.value)},h=mX(s,l,t,d);h.ensureState("emphasis").style=c.getItemStyle(),h.ensureState("progress").style=u.getItemStyle(),Ul(h);var f=Ws(h);s.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(m["each"])(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),c=s.getModel(["emphasis","label"]),u=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new $s({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(m["bind"])(r._changeTimeline,r,o),silent:!1,style:wc(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=wc(c),h.ensureState("progress").style=wc(u),t.add(h),Ul(h),dX(h).dataIndex=o,r._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(e,n,l,c){if(e){var u=_i(Object(m["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-u/2,u,u],h=gX(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Ul(h)}}u(e.nextBtnPosition,"next",Object(m["bind"])(this._changeTimeline,this,c?"-":"+")),u(e.prevBtnPosition,"prev",Object(m["bind"])(this._changeTimeline,this,c?"+":"-")),u(e.playPosition,l?"stop":"play",Object(m["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(m["bind"])(s._handlePointerDrag,s),e.ondragend=Object(m["bind"])(s._handlePointerDragend,s),vX(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){vX(e,s._progressLine,o,n,i)}};this._currentPointer=mX(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=tr(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(t||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return Hm(e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-e);s<i&&(i=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",dX(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(sX);function fX(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ex({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new sC({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ix}}function pX(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function gX(e,t,n,i){var r=i.style,o=Zm(e.get(["controlStyle",t]),i||{},new $e(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function mX(e,t,n,i,r,o){var a=t.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=e.get("symbol");r=Ob(s,-1,-1,2,2,a),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=Object(m["merge"])({rectHover:!0,z2:100},i,!0);var c=Mb(e.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var u=Db(e.get("symbolOffset"),c);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var d=e.get("symbolRotate");return i.rotation=(d||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function vX(e,t,n,i,r,o){if(!e.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}var bX=hX;function yX(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(m["defaults"])({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function _X(e){var t=e&&e.timeline;m["isArray"](t)||(t=t?[t]:[]),m["each"](t,(function(e){e&&wX(e)}))}function wX(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),xX(e),CX(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});CX(i,"position")||(i.position=e.controlPosition),"none"!==i.position||CX(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}m["each"](e.data||[],(function(e){m["isObject"](e)&&!m["isArray"](e)&&(!CX(e,"value")&&CX(e,"name")&&(e.value=e.name),xX(e))}))}function xX(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};m["each"](i,(function(e,t){o[t]||CX(r,t)||(r[t]=e)})),n.label&&!CX(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function CX(e,t){return e.hasOwnProperty(t)}function SX(e){e.registerComponentModel(oX),e.registerComponentView(bX),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),yX(e),e.registerPreprocessor(_X)}function kX(e,t){if(!e)return!1;for(var n=Object(m["isArray"])(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function OX(e){Mr(e,"label",["show"])}var MX=Kr(),DX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(g["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=MX(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&OX(n),m["each"](n.data,(function(e){e instanceof Array?(OX(e[0]),OX(e[1])):OX(e)})),o=this.createMarkerModelFromSeries(n,this,t),m["extend"](o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),MX(e)[r]=o):MX(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return pp("section",{header:this.name,blocks:[pp("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return MX(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(md);m["mixin"](DX,Cf.prototype);var EX=DX,TX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(EX),LX=TX;function IX(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function AX(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function NX(e,t,n,i,r,o){var a=[],s=ox(t,i),l=s?t.getCalculationInfo("stackResultDimension"):i,c=$X(t,l,e),u=t.indicesOfNearest(l,c)[0];a[r]=t.get(n,u),a[o]=t.get(l,u);var d=t.get(i,u),h=nr(t.get(i,u));return h=Math.min(h,20),h>=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var PX={min:Object(m["curry"])(NX,"min"),max:Object(m["curry"])(NX,"max"),average:Object(m["curry"])(NX,"average"),median:Object(m["curry"])(NX,"median")};function RX(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!AX(t)&&!Object(m["isArray"])(t.coord)&&Object(m["isArray"])(r)){var o=FX(t,n,i,e);if(t=Object(m["clone"])(t),t.type&&PX[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(m["indexOf"])(r,o.baseAxis.dim),s=Object(m["indexOf"])(r,o.valueAxis.dim),l=PX[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(m["isArray"])(r))for(var c=t.coord,u=0;u<2;u++)PX[c[u]]&&(c[u]=$X(n,n.mapDimension(r[u]),c[u]));else t.coord=[];return t}}function FX(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(jX(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function jX(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function BX(e,t){return!(e&&e.containData&&t.coord&&!IX(t))||e.containData(t.coord)}function zX(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!IX(t)&&!IX(n))||e.containZone(t.coord,n.coord)}function VX(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return Df(o,t[r])}:function(e,n,i,r){return Df(e.value,t[r])}}function $X(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var WX=Kr(),HX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){this.markerGroupMap=Object(m["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){WX(e).keep=!1})),t.eachSeries((function(e){var r=EX.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!WX(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){WX(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(m["each"])(e,(function(e){var i=EX.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?Tl(e):Ll(e))}))}}))},t.type="marker",t}(qp),UX=HX;function qX(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Ji(a.get("x"),n.getWidth()),l=Ji(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var c=e.get(i.dimensions[0],r),u=e.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var GX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=EX.getMarkerModelFromSeries(e,"markPoint");t&&(qX(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new pM),c=KX(r,e,t);t.setData(c),qX(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(m["isFunction"])(i)||Object(m["isFunction"])(r)||Object(m["isFunction"])(o)||Object(m["isFunction"])(s)){var u=t.getRawValue(e),d=t.getDataParams(e);Object(m["isFunction"])(i)&&(i=i(u,d)),Object(m["isFunction"])(r)&&(r=r(u,d)),Object(m["isFunction"])(o)&&(o=o(u,d)),Object(m["isFunction"])(s)&&(s=s(u,d))}var h=n.getModel("itemStyle").getItemStyle(),f=sb(a,"color");h.fill||(h.fill=f),c.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Ws(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(UX);function KX(e,t,n){var i;i=e?Object(m["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(m["extend"])(Object(m["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Gw(i,n),o=Object(m["map"])(n.get("data"),Object(m["curry"])(RX,t));e&&(o=Object(m["filter"])(o,Object(m["curry"])(BX,e)));var a=VX(!!e,i);return r.initData(o,null,a),r}var YX=GX;function XX(e){e.registerComponentModel(LX),e.registerComponentView(YX),e.registerPreprocessor((function(e){kX(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var ZX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(EX),QX=ZX,JX=Kr(),eZ=function(e,t,n,i){var r,o=e.getData();if(Object(m["isArray"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(m["retrieve"])(i.yAxis,i.xAxis);else{var c=FX(i,o,t,e);s=c.valueAxis;var u=ax(o,c.valueDataDim);l=$X(o,u,a)}var d="x"===s.dim?0:1,h=1-d,f=Object(m["clone"])(i),p={coord:[]};f.type=null,f.coord=[],f.coord[h]=-1/0,p.coord[h]=1/0;var g=n.get("precision");g>=0&&Object(m["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[d]=p.coord[d]=l,r=[f,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[RX(e,r[0]),RX(e,r[1]),Object(m["extend"])({},r[2])];return v[2].type=v[2].type||null,Object(m["merge"])(v[2],v[0]),Object(m["merge"])(v[2],v[1]),v};function tZ(e){return!isNaN(e)&&!isFinite(e)}function nZ(e,t,n,i){var r=1-e,o=i.dimensions[e];return tZ(t[r])&&tZ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function iZ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(nZ(1,n,i,e)||nZ(0,n,i,e)))return!0}return BX(e,t[0])&&BX(e,t[1])}function rZ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Ji(s.get("x"),r.getWidth()),c=Ji(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),h=e.get(u[1],t);o=a.dataToPoint([d,h])}if(LM(a,"cartesian2d")){var f=a.getAxis("x"),p=a.getAxis("y");u=a.dimensions;tZ(e.get(u[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):tZ(e.get(u[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];e.setItemLayout(t,o)}var oZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=EX.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=JX(t).from,o=JX(t).to;r.each((function(t){rZ(r,t,!0,e,n),rZ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new wR);this.group.add(l.group);var c=aZ(r,e,t),u=c.from,d=c.to,h=c.line;JX(t).from=u,JX(t).to=d,t.setData(h);var f=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),v=t.get("symbolOffset");function b(t,n,r){var o=t.getItemModel(n);rZ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sb(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(m["retrieve2"])(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(m["retrieve2"])(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(m["retrieve2"])(o.get("symbolSize"),p[r?0:1]),symbol:Object(m["retrieve2"])(o.get("symbol",!0),f[r?0:1]),style:s})}Object(m["isArray"])(f)||(f=[f,f]),Object(m["isArray"])(p)||(p=[p,p]),Object(m["isArray"])(g)||(g=[g,g]),Object(m["isArray"])(v)||(v=[v,v]),c.from.each((function(e){b(u,e,!0),b(d,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),c.line.eachItemGraphicEl((function(e){Ws(e).dataModel=t,e.traverse((function(e){Ws(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(UX);function aZ(e,t,n){var i;i=e?Object(m["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(m["extend"])(Object(m["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Gw(i,n),o=new Gw(i,n),a=new Gw([],n),s=Object(m["map"])(n.get("data"),Object(m["curry"])(eZ,t,e,n));e&&(s=Object(m["filter"])(s,Object(m["curry"])(iZ,e)));var l=VX(!!e,i);return r.initData(Object(m["map"])(s,(function(e){return e[0]})),null,l),o.initData(Object(m["map"])(s,(function(e){return e[1]})),null,l),a.initData(Object(m["map"])(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var sZ=oZ;function lZ(e){e.registerComponentModel(QX),e.registerComponentView(sZ),e.registerPreprocessor((function(e){kX(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var cZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(EX),uZ=cZ,dZ=Kr(),hZ=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var a=RX(e,r),s=RX(e,o),l=a.coord,c=s.coord;l[0]=Object(m["retrieve"])(l[0],-1/0),l[1]=Object(m["retrieve"])(l[1],-1/0),c[0]=Object(m["retrieve"])(c[0],1/0),c[1]=Object(m["retrieve"])(c[1],1/0);var u=Object(m["mergeAll"])([{},a,s]);return u.coord=[a.coord,s.coord],u.x0=a.x,u.y0=a.y,u.x1=s.x,u.y1=s.y,u}};function fZ(e){return!isNaN(e)&&!isFinite(e)}function pZ(e,t,n,i){var r=1-e;return fZ(t[r])&&fZ(n[r])}function gZ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return LM(e,"cartesian2d")?!(!n||!i||!pZ(1,n,i,e)&&!pZ(0,n,i,e))||zX(e,r,o):BX(e,r)||BX(e,o)}function mZ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Ji(s.get(n[0]),r.getWidth()),c=Ji(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),h=a.clampData(u),f=a.clampData(d),p=[];"x0"===n[0]?p[0]=h[0]>f[0]?d[0]:u[0]:p[0]=h[0]>f[0]?u[0]:d[0],"y0"===n[1]?p[1]=h[1]>f[1]?d[1]:u[1]:p[1]=h[1]>f[1]?u[1]:d[1],o=i.getMarkerPosition(p,n,!0)}else{var g=e.get(n[0],t),m=e.get(n[1],t),v=[g,m];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(LM(a,"cartesian2d")){var b=a.getAxis("x"),y=a.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);fZ(g)?o[0]=b.toGlobalCoord(b.getExtent()["x0"===n[0]?0:1]):fZ(m)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var vZ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],bZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=EX.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=Object(m["map"])(vZ,(function(r){return mZ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Fi});this.group.add(l.group),this.markKeep(l);var c=yZ(r,e,t);t.setData(c),c.each((function(t){var n=Object(m["map"])(vZ,(function(n){return mZ(c,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),u=s.getExtent(),d=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],h=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];tr(d),tr(h);var f=!(l[0]>d[1]||l[1]<d[0]||u[0]>h[1]||u[1]<h[0]),p=!f;c.setItemLayout(t,{points:n,allClipped:p});var g=c.getItemModel(t).getModel("itemStyle").getItemStyle(),v=sb(a,"color");g.fill||(g.fill=v,Object(m["isString"])(g.fill)&&(g.fill=Qt["modifyAlpha"](g.fill,.4))),g.stroke||(g.stroke=v),c.setItemVisual(t,"style",g)})),c.diff(dZ(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Kg({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=dZ(l).data.getItemGraphicEl(n),r=c.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?lc(i,{shape:{points:r.points}},t,e):i=new Kg({shape:{points:r.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=dZ(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),r=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),yc(e,_c(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(m["isString"])(r.fill)?Qt["modifyAlpha"](r.fill,1):"#000"}),Zl(e,i),Gl(e,null,null,i.get(["emphasis","disabled"])),Ws(e).dataModel=t})),dZ(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(UX);function yZ(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var a=Object(m["map"])(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Object(m["extend"])(Object(m["extend"])({},i),{name:e,ordinalMeta:null})}));r=Object(m["map"])(o,(function(e,t){return{name:e,type:a[t%2].type}})),i=new Gw(r,n)}else r=[{name:"value",type:"float"}],i=new Gw(r,n);var s=Object(m["map"])(n.get("data"),Object(m["curry"])(hZ,t,e,n));e&&(s=Object(m["filter"])(s,Object(m["curry"])(gZ,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return Df(o,r[i])}:function(e,t,n,i){return Df(e.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}var _Z=bZ;function wZ(e){e.registerComponentModel(uZ),e.registerComponentView(_Z),e.registerPreprocessor((function(e){kX(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var xZ=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},CZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),m["isArray"](t)&&m["each"](t,(function(e,i){m["isString"](e)&&(e={type:e}),t[i]=m["merge"](e,xZ(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider,s=a.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(s)),s.length?t=t.concat(s):r=!0}else r=!0;r&&Vr(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=m["createHashMap"](),o=m["map"](i,(function(e){return(m["isString"](e)||m["isNumber"](e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new Uc(e,this,this.ecModel))}),this);this._data=m["filter"](o,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;m["each"](i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;m["each"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;m["each"](e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&m["indexOf"](this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={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,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(md),SZ=CZ,kZ=m["curry"],OZ=m["each"],MZ=Fi,DZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return p(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new MZ),this.group.add(this._selectorGroup=new MZ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),d=ad(l,c,u),h=this.layoutInner(e,r,d,i,a,s),f=ad(m["defaults"]({width:h.width,height:h.height},l),c,u);this.group.x=f.x-h.x,this.group.y=f.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AG(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=m["createHashMap"](),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),OZ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new MZ;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var f=h.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),v=f.getVisual("style"),b=this._createItem(h,a,o,r,t,e,p,v,g,c,i);b.on("click",kZ(LZ,a,null,i,u)).on("mouseover",kZ(AZ,h.name,null,i,u)).on("mouseout",kZ(NZ,h.name,null,i,u)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),f=s.getItemVisual(d,"legendIcon"),p=Object(Qt["parse"])(h.fill);p&&0===p[3]&&(p[3]=.2,h=m["extend"](m["extend"]({},h),{fill:Object(Qt["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,r,t,e,{},h,f,c,i);g.on("click",kZ(LZ,null,a,i,u)).on("mouseover",kZ(AZ,null,a,i,u)).on("mouseout",kZ(NZ,null,a,i,u)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();OZ(e,(function(e){var i=e.type,r=new $s({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);yc(r,{normal:a,emphasis:s},{defaultText:e.title}),Ul(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,c,u){var d=e.visualDrawType,h=r.get("itemWidth"),f=r.get("itemHeight"),p=r.isSelected(t),g=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),b=i.get("icon");l=b||l||"roundRect";var y=EZ(l,i,a,s,d,p,u),_=new MZ,w=i.getModel("textStyle");if(!m["isFunction"](e.getLegendIcon)||b&&"inherit"!==b){var x="inherit"===b&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;_.add(TZ({itemWidth:h,itemHeight:f,icon:l,iconRotate:x,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}))}else _.add(e.getLegendIcon({itemWidth:h,itemHeight:f,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:v}));var C="left"===o?h+5:-5,S=o,k=r.get("formatter"),O=t;m["isString"](k)&&k?O=k.replace("{name}",null!=t?t:""):m["isFunction"](k)&&(O=k(t));var M=i.get("inactiveColor");_.add(new $s({style:wc(w,{text:O,x:C,y:f/2,fill:p?w.getTextColor():M,align:S,verticalAlign:"middle"})}));var D=new Ss({shape:_.getBoundingRect(),invisible:!0}),E=i.getModel("tooltip");return E.get("show")&&nv({el:D,componentModel:r,itemName:t,itemTooltipOption:E.option}),_.add(D),_.eachChild((function(e){e.silent=!0})),D.silent=!c,this.getContentGroup().add(_),Ul(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();rd(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),c=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){rd("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],h=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?d[f]+=l[p]+h:c[f]+=u[p]+h,d[1-f]+=l[g]/2-u[g]/2,s.x=d[0],s.y=d[1],a.x=c[0],a.y=c[1];var v={x:0,y:0};return v[p]=l[p]+h+u[p],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+d[1-f]),v}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(qp);function EZ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),OZ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");c.decal=d&&"inherit"!==d?gy(d,a):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),s(c,i);var h=t.getModel("lineStyle"),f=h.getLineStyle();if(s(f,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var p=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===p?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=h.get("inactiveColor"),f.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}function TZ(e){var t=e.icon||"roundRect",n=Ob(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function LZ(e,t,n,i){NZ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),AZ(e,t,n,i)}function IZ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(t=n[i].states.emphasis))i++;return t&&t.hoverLayer}function AZ(e,t,n,i){IZ(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function NZ(e,t,n,i){IZ(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var PZ=DZ;function RZ(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function FZ(e,t,n){var i,r={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var a=n.getData();Object(m["each"])(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function jZ(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(m["curry"])(FZ,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(m["curry"])(FZ,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(m["curry"])(FZ,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(m["curry"])(FZ,"select")),e.registerAction("legendUnSelect","legendunselected",Object(m["curry"])(FZ,"unSelect"))}function BZ(e){e.registerComponentModel(SZ),e.registerComponentView(PZ),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,RZ),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),jZ(e)}var zZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=dd(t);e.prototype.init.call(this,t,n,i),VZ(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),VZ(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Xc(SZ.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(SZ);function VZ(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,ud(t,n,{type:"box",ignoreSize:!!r})}var $Z=zZ,WZ=Fi,HZ=["width","height"],UZ=["x","y"],qZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return p(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new WZ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WZ)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,a,s);var c=this._controllerGroup,u=n.get("pageIconSize",!0),d=m["isArray"](u)?u:[u,u];f("pagePrev",0);var h=n.getModel("pageTextStyle");function f(e,t){var i=e+"DataIndex",o=Zm(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:m["bind"](l._pageGo,l,i,n,r)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});o.name=e,c.add(o)}c.add(new $s({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=HZ[s],c=UZ[s],u=HZ[1-s],d=UZ[1-s];r&&rd("horizontal",a,e.get("selectorItemGap",!0));var h=e.get("selectorButtonGap",!0),f=a.getBoundingRect(),p=[-f.x,-f.y],g=m["clone"](n);r&&(g[l]=n[l]-f[l]-h);var v=this._layoutContentAndController(e,i,g,s,l,u,d,c);if(r){if("end"===o)p[s]+=v[l]+h;else{var b=f[l]+h;p[s]-=b,v[c]-=b}v[l]+=f[l]+h,p[1-s]+=v[d]+v[u]/2-f[u]/2,v[u]=Math.max(v[u],f[u]),v[d]=Math.min(v[d],f[d]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return v},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,a,s){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;rd(e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),rd("horizontal",u,e.get("pageButtonItemGap",!0));var d=l.getBoundingRect(),h=u.getBoundingRect(),f=this._showController=d[r]>n[r],p=[-d.x,-d.y];t||(p[i]=l[s]);var g=[0,0],v=[-h.x,-h.y],b=m["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var y=e.get("pageButtonPosition",!0);"end"===y?v[i]+=n[r]-h[r]:g[i]+=h[r]+b}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(p),c.setPosition(g),u.setPosition(v);var _={x:0,y:0};if(_[r]=f?n[r]:d[r],_[o]=Math.max(d[o],h[o]),_[a]=Math.min(0,h[a]+v[1-i]),c.__rectSize=n[r],f){var w={x:0,y:0};w[r]=Math.max(n[r]-h[r]-b,0),w[o]=_[o],c.setClipPath(new Ss({shape:w})),c.__rectSize=w[r]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&lc(l,{x:x.contentPosition[0],y:x.contentPosition[1]},f?e:null),this._updatePageInfoView(e,x),_},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;m["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",m["isString"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=HZ[r],a=UZ[r],s=this._findTargetItemIndex(t),l=n.children(),c=l[s],u=l.length,d=u?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return h;var f=b(c);h.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=u;++p)v=b(l[p]),(!v&&m.e>g.s+i||v&&!y(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=g.i),++h.pageCount)),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)v=b(l[p]),v&&y(m,v.s)||!(g.i<m.i)||(m=g,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=v;return h;function b(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(PZ),GZ=qZ;function KZ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function YZ(e){fw(BZ),e.registerComponentModel($Z),e.registerComponentView(GZ),KZ(e)}function XZ(e){fw(BZ),fw(YZ)}var ZZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.inside",t.defaultOption=Xc(lG.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(lG),QZ=ZZ,JZ=Kr();function eQ(e,t,n){JZ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function tQ(e,t){for(var n=JZ(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=t.uid,c=s.get(l);c&&(s.removeKey(l),s.keys().length||nQ(n,a))}}}function nQ(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function iQ(e,t){var n={model:t,containsPoint:Object(m["curry"])(oQ,t),dispatchAction:Object(m["curry"])(rQ,e),dataZoomInfoMap:null,controller:null},i=n.controller=new dL(e.getZr());return Object(m["each"])(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function rQ(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function oQ(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function aQ(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function sQ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=JZ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(m["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=rG(e);Object(m["each"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,iQ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(m["createHashMap"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=aQ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),bv(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else nQ(i,e)}))}))}var lQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return p(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),eQ(i,t,{pan:Object(m["bind"])(cQ.pan,this),zoom:Object(m["bind"])(cQ.zoom,this),scrollMove:Object(m["bind"])(cQ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){tQ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(hG),cQ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=dQ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return BF(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:uQ((function(e,t,n,i,r,o){var a=dQ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:uQ((function(e,t,n,i,r,o){var a=dQ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function uQ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return BF(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var dQ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},hQ=lQ;function fQ(e){SG(e),e.registerComponentModel(QZ),e.registerComponentView(hQ),sQ(e)}var pQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Xc(lG.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(lG),gQ=pQ,mQ=Ss,vQ=7,bQ=1,yQ=30,_Q=7,wQ="horizontal",xQ="vertical",CQ=5,SQ=["line","bar","candlestick","scatter"],kQ={easing:"cubicOut",duration:100,delay:0},OQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return p(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(m["bind"])(this._onBrush,this),this._onBrushEnd=Object(m["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),bv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){yv(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Fi;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?_Q:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===wQ?{right:o.width-r.x-r.width,top:o.height-yQ-vQ-i,width:r.width,height:yQ}:{right:vQ,top:r.y,width:yQ,height:r.height},s=dd(e.option);Object(m["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=ad(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===xQ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==wQ||r?n===wQ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==xQ||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new mQ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new mQ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(m["bind"])(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=r.getDataExtent(a),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var d,h=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],g=[],m=f[1]/(r.count()-1),v=0,b=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(b>0&&t%b)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Qi(e,c,h,!0);n&&!d&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&d&&(p.push([v,0]),g.push([v,0])),p.push([v,i]),g.push([v,i]),v+=m,d=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,_=0;_<3;_++){var w=x(1===_);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function x(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new Fi,i=new Kg({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Zg({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();Object(m["each"])(a,(function(e){if(!n&&!(!0!==t&&Object(m["indexOf"])(SQ,e.get("type"))<0)){var a,s=i.getComponent(nG(r),o).axis,l=MQ(r),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,c=a.get("brushSelect"),u=t.filler=new mQ({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new mQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:bQ,fill:"rgba(0,0,0,0)"}})),Object(m["each"])([0,1],(function(t){var o=a.get("handleIcon");!Cb[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Ob(o,-1,0,2,2,null,!0);s.attr({cursor:DQ(this._orient),draggable:!0,drift:Object(m["bind"])(this._onDragMove,this,t),ondragend:Object(m["bind"])(this._onDragEnd,this),onmouseover:Object(m["bind"])(this._showDataInfo,this,!0),onmouseout:Object(m["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=Ji(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Ul(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),r.add(n[t]=s);var d=a.getModel("textStyle");e.add(i[t]=new $s({silent:!0,invisible:!0,style:wc(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=u;if(c){var h=Ji(a.get("moveHandleSize"),o[1]),f=t.moveHandle=new Ss({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),p=.8*h,g=t.moveHandleIcon=Ob(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+h/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(h,10));d=t.moveZone=new Ss({invisible:!0,shape:{y:o[1]-v,height:h+v}}),d.on("mouseover",(function(){s.enterEmphasis(f)})).on("mouseout",(function(){s.leaveEmphasis(f)})),r.add(f),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:DQ(this._orient),drift:Object(m["bind"])(this._onDragMove,this,"all"),ondragstart:Object(m["bind"])(this._showDataInfo,this,!0),ondragend:Object(m["bind"])(this._onDragEnd,this),onmouseover:Object(m["bind"])(this._showDataInfo,this,!0),onmouseout:Object(m["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Qi(e[0],[0,100],t,!0),Qi(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];BF(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Qi(o.minSpan,a,r,!0):null,null!=o.maxSpan?Qi(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=tr([Qi(i[0],r,a,!0),Qi(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=tr(n.slice()),r=this._size;Object(m["each"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var c=a[l],u=c.getClipPath();u||(u=new Ss,c.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,c=e?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var u=tr(this._handleEnds.slice());function d(e){var t=Wm(n.handles[e].parent,this.group),a=Um(0===e?"right":"left",t),s=this._handleWidth/2+CQ,l=Hm([u[e]+(0===e?-s:s),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===wQ?"middle":a,align:r===wQ?a:"center",text:o[e]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return Object(m["isFunction"])(i)?i(e,o):Object(m["isString"])(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,me(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=Hm([t,n],r,!0),a=this._updateInterval(e,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ie(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=tr([Qi(n.x,r,o,!0),Qi(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(me(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new mQ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?kQ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=rG(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(hG);function MQ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function DQ(e){return"vertical"===e?"ns-resize":"ew-resize"}var EQ=OQ;function TQ(e){e.registerComponentModel(gQ),e.registerComponentView(EQ),SG(e)}function LQ(e){fw(fQ),fw(TQ)}var IQ={get:function(e,t,n){var i=m["clone"]((AQ[e]||{})[t]);return n&&m["isArray"](i)?i[i.length-1]:i}},AQ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},NQ=IQ,PQ=GN.mapVisual,RQ=GN.eachVisual,FQ=m["isArray"],jQ=m["each"],BQ=tr,zQ=Qi,VQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&kY(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=m["bind"](e,this),this.controllerVisuals=SY(this.option.controller,t,e),this.targetVisuals=SY(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Or(e),t},t.prototype.eachTargetSeries=function(e,t){m["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],m["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return m["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):m["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=BQ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});m["merge"](i,n),m["merge"](r,n);var o=this.isCategory();function a(n){FQ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},jQ(i,(function(e,t){if(GN.isValidType(t)){var n=NQ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";jQ(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&m["clone"](t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&m["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=PQ(l.symbol,(function(e){return"none"===e?a:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;RQ(c,(function(e){e>u&&(u=e)})),l.symbolSize=PQ(c,(function(e){return zQ(e,[0,u],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(md),$Q=VQ,WQ=[20,140],HQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=WQ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=WQ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):m["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),m["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=tr((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=UQ(this,"outOfRange",this.getExtent()),n=UQ(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;a<l&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&r(t[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(c=1;a<l;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(i.length&&r(i[i.length-1].value,"outOfRange"),c=0),r(t[a],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Xc($Q.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}($Q);function UQ(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&o<n[1];s++)a.push(o),o+=r;return a.push(n[1]),a}var qQ=HQ,GQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return p(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Wu(t.get("padding")||0),i=e.getBoundingRect();e.add(new Ss({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===t){var a=r.get("contentColor");o.color=a}function s(e){return o[e]}function l(e,t){o[e]=t}var c=r.controllerVisuals[i||r.getValueState(e)],u=GN.prepareVisualTypes(c);return m["each"](u,(function(i){var r=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=c.__alphaForOpacity),GN.dependsOn(i,t)&&r&&r.applyVisual(e,s,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;sd(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(qp),KQ=GQ,YQ=[["left","right","width"],["top","bottom","height"]];function XQ(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===i.orient?1:0,s=YQ[a],l=[0,null,10],c={},u=0;u<3;u++)c[YQ[1-a][u]]=l[u],c[s[u]]=2===u?n[0]:i[s[u]];var d=[["x","width",3],["y","height",0]][a],h=ad(c,o,i.padding);return s[(h.margin[d[2]]||0)+h[d[0]]+.5*h[d[1]]<.5*o[d[1]]?0:1]}function ZQ(e,t){return m["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var QQ=Qi,JQ=m["each"],eJ=Math.min,tJ=Math.max,nJ=12,iJ=6,rJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return p(t,e),t.prototype.doRender=function(e,t,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new $s({style:wc(d,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,a=XQ(t,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new Fi;s.add(l),l.add(n.outOfRange=oJ()),l.add(n.inRange=oJ(null,o?lJ(this._orient):null,m["bind"](this._dragHandle,this,"all",!1),m["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Ss({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=tJ(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,i,u,r),this._createHandle(t,s,1,i,u,r)),this._createIndicator(t,s,i,u,r),e.add(s)},t.prototype._createHandle=function(e,t,n,i,r,o){var a=m["bind"](this._dragHandle,this,n,!1),s=m["bind"](this._dragHandle,this,n,!0),l=_i(e.get("handleSize"),i[0]),c=Ob(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=lJ(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){me(e.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Ql(c,!0),t.add(c);var d=this.visualMapModel.textStyleModel,h=new $s({cursor:u,draggable:!0,drift:a,onmousemove:function(e){me(e.event)},ondragend:s,style:wc(d,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var f=[l,0],p=this._shapes;p.handleThumbs[n]=c,p.handleLabelPoints[n]=f,p.handleLabels[n]=h},t.prototype._createIndicator=function(e,t,n,i,r){var o=_i(e.get("indicatorSize"),n[0]),a=Ob(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof gs){var l=a.style;a.useStyle(m["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);t.add(a);var c=this.visualMapModel.textStyleModel,u=new $s({silent:!0,invisible:!0,style:wc(c,{x:0,y:0,text:""})});this.group.add(u);var d=[("horizontal"===r?i/2:iJ)+n[0]/2,0],h=this._shapes;h.indicator=a,h.indicatorLabel=u,h.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():sJ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[QQ(t[0],n,i,!0),QQ(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];BF(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[QQ(i[0],r,o,!0),QQ(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),a=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new gm(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+r*o;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Fi("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();JQ([0,1],(function(l){var c=r[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=QQ(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=d/a[0],c.x=a[0]-d/2;var h=Hm(n.handleLabelPoints[l],Wm(c,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",u),h=this.getControllerVisual(e,"symbolSize"),f=QQ(e,o,s,!0),p=a[0]-h/2,g={x:c.x,y:c.y};c.y=f,c.x=p;var m=Hm(l.indicatorLabelPoint,Wm(c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),y=this._orient,_="horizontal"===y;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?b:"middle",align:_?"center":b});var w={x:p,y:f,style:{fill:d}},x={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,C),v.animateTo(x,C)}else c.attr(w),v.attr(x);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var k=0;k<S.length;k++)this._api.enterBlur(S[k])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=eJ(tJ(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=eJ(tJ(r[0],e),r[1]);var a=aJ(n,o,r),s=[e-a,e+a],l=QQ(e,r,o,!0),c=[QQ(s[0],r,o,!0),QQ(s[1],r,o,!0)];s[0]<r[0]&&(c[0]=-1/0),s[1]>r[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",a):c[1]===1/0?this._showIndicator(l,c[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var u=this._hoverLinkDataIndices,d=[];(t||sJ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var h=qr(u,d);this._dispatchHighDown("downplay",ZQ(h[0],n)),this._dispatchHighDown("highlight",ZQ(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(hb(e.target,(function(e){var n=Ws(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ZQ(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=Wm(t,i?null:this.group);return m["isArray"](e)?Hm(e,r,n):Um(e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(KQ);function oJ(e,t,n,i){return new Kg({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){me(e.event)},ondragend:i})}function aJ(e,t,n){var i=nJ/2,r=e.get("hoverLinkDataSize");return r&&(i=QQ(r,t,n,!0)/2),i}function sJ(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function lJ(e){return"vertical"===e?"ns-resize":"ew-resize"}var cJ=rJ,uJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},dJ=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},hJ=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(MY(t.stateList,t.targetVisuals,m["bind"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(m["bind"](fJ,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function fJ(e,t,n,i){for(var r=t.targetVisuals[i],o=GN.prepareVisualTypes(r),a={color:sb(e.getData(),"color")},s=0,l=o.length;s<l;s++){var c=o[s],u=r["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,d,h)}return a.color;function d(e){return a[e]}function h(e,t){a[e]=t}}var pJ=m["each"];function gJ(e){var t=e&&e.visualMap;m["isArray"](t)||(t=t?[t]:[]),pJ(t,(function(e){if(e){mJ(e,"splitList")&&!mJ(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&m["isArray"](t)&&pJ(t,(function(e){m["isObject"](e)&&(mJ(e,"start")&&!mJ(e,"min")&&(e.min=e.start),mJ(e,"end")&&!mJ(e,"max")&&(e.max=e.end))}))}}))}function mJ(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var vJ=!1;function bJ(e){vJ||(vJ=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(uJ,dJ),Object(m["each"])(hJ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(gJ))}function yJ(e){e.registerComponentModel(qQ),e.registerComponentView(cJ),bJ(e)}var _J=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return p(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],wJ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=m["clone"](r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=m["map"](this._pieceList,(function(e){return e=m["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=GN.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}m["each"](t.pieces,(function(e){m["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),m["each"](n,(function(e,n){var i=!1;m["each"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&m["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=NQ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,m["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;m["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=m["clone"](e)},t.prototype.getValueState=function(e){var t=GN.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=GN.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return m["each"](r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Xc($Q.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}($Q),wJ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),vr(e),m["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;m["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),xJ(t,e)},pieces:function(e){var t=this.option;m["each"](t.pieces,(function(t,n){m["isObject"](t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var d=[["gte","gt","min"],["lte","lt","max"]][u],h=0;h<3&&null==o[u];h++)o[u]=t[d[h]],a[u]=s[h],c[u]=2===h;null==o[u]&&(o[u]=l[u])}c[0]&&o[1]===1/0&&(a[0]=0),c[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=GN.retrieveVisuals(t),e.push(i)}),this),xJ(t,e),vr(e),m["each"](e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function xJ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var CJ=_J,SJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),c=l.endsText,u=m["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,u,a),m["each"](l.viewPieceList,(function(i){var l=i.piece,c=new Fi;c.onclick=m["bind"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(c,d,[0,0,s[0],s[1]]),u){var h=this.visualMapModel.getValueState(d);c.add(new $s({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===h?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,u,a),rd(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:ZQ(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return XQ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Fi,a=this.visualMapModel.textStyleModel;o.add(new $s({style:wc(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=m["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Ob(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=m["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,m["each"](r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(KQ),kJ=SJ;function OJ(e){e.registerComponentModel(CJ),e.registerComponentView(kJ),bJ(e)}function MJ(e){fw(yJ),fw(OJ)}var DJ={label:{enabled:!0},decal:{show:!1}},EJ=Kr(),TJ={};function LJ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=m["clone"](DJ);m["merge"](i.label,e.getLocaleModel().get("aria"),!1),m["merge"](n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=m["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),EJ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(m["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Hd(t.ecModel,t.name,TJ,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=t.getRawData(),a={},s=EJ(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",u=Hd(t.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(d,u))}))}}function c(e,t){var n=e?m["extend"](m["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=m["defaults"](r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var c,u=e.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,f=Math.min(u,h);if(!(u<1)){var p=s();if(p){var g=r.get(["general","withTitle"]);c=a(g,{title:p})}else c=r.get(["general","withoutTitle"]);var v=[],b=u>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);c+=a(b,{seriesCount:u}),e.eachSeries((function(e,t){if(t<f){var n=void 0,i=e.get("name"),o=i?"withName":"withoutName";n=u>1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var c=r.get(["data","partialData"]);n+=a(c,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),p=r.get(["data","separator","end"]),g=[],m=0;m<s.count();m++)if(m<d){var b=s.getName(m),y=s.getValues(m),_=r.get(["data",b?"withName":"withoutName"]);g.push(a(_,{name:b,value:y.join(h)}))}n+=g.join(h)+p,v.push(n)}}));var y=r.getModel(["series","multiple","separator"]),_=y.get("middle"),w=y.get("end");c+=v.join(_)+w,o.setAttribute("aria-label",c)}}}}function a(e,t){if(!m["isString"](e))return e;var n=e;return m["each"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function s(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){return e.getLocaleModel().get(["series","typeNames"])[t]||"自定义图"}}function IJ(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},m["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function AJ(e){e.registerPreprocessor(IJ),e.registerVisual(e.PRIORITY.VISUAL.ARIA,LJ)}var NJ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},PJ=function(){function e(e){var t=this._condVal=Object(m["isString"])(e)?new RegExp(e):Object(m["isRegExp"])(e)?e:null;if(null==t){var n="";0,Qd(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(m["isString"])(t)?this._condVal.test(e):!!Object(m["isNumber"])(t)&&this._condVal.test(e+"")},e}(),RJ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),FJ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),jJ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),BJ=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),zJ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?i:n))return!1;return!0},e}();function VJ(e,t){if(!0===e||!1===e){var n=new RJ;return n.value=e,n}var i="";return UJ(e)||Qd(i),e.and?$J("and",e,t):e.or?$J("or",e,t):e.not?WJ(e,t):HJ(e,t)}function $J(e,t,n){var i=t[e],r="";Object(m["isArray"])(i)||Qd(r),i.length||Qd(r);var o="and"===e?new FJ:new jJ;return o.children=Object(m["map"])(i,(function(e){return VJ(e,n)})),o.children.length||Qd(r),o}function WJ(e,t){var n=e.not,i="";UJ(n)||Qd(i);var r=new BJ;return r.child=VJ(n,t),r.child||Qd(i),r}function HJ(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=Object(m["keys"])(e),a=e.parser,s=a?Tf(a):null,l=0;l<o.length;l++){var c=o[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Object(m["hasOwn"])(NJ,c)?NJ[c]:c,d=e[c],h=s?s(d):d,f=Pf(u,h)||"reg"===u&&new PJ(h);f||Qd(n),r.push(f)}}r.length||Qd(n);var p=new zJ;return p.valueGetterParam=i,p.valueParser=s,p.getValue=t.getValue,p.subCondList=r,p}function UJ(e){return Object(m["isObject"])(e)&&!Object(m["isArrayLike"])(e)}var qJ=function(){function e(e,t){this._cond=VJ(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function GJ(e,t){return new qJ(e,t)}var KJ={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=GJ(e.config,{valueGetterAttrMap:Object(m["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Object(m["hasOwn"])(e,"dimension")||Qd(t);var r=n.getDimensionInfo(i);return r||Qd(t),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}};var YJ={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",r=Or(n);r.length||Qd(i);var o=[];Object(m["each"])(r,(function(e){var n=e.dimension,r=e.order,a=e.parser,s=e.incomparable;if(null==n&&Qd(i),"asc"!==r&&"desc"!==r&&Qd(i),s&&"min"!==s&&"max"!==s){var l="";0,Qd(l)}if("asc"!==r&&"desc"!==r){var c="";0,Qd(c)}var u=t.getDimensionInfo(n);u||Qd(i);var d=a?Tf(a):null;a&&!d&&Qd(i),o.push({dimIdx:u.index,parser:d,comparator:new Af(r,s)})}));var a=t.sourceFormat;a!==xd&&a!==Cd&&Qd(i);for(var s=[],l=0,c=t.count();l<c;l++)s.push(t.getRawDataItem(l));return s.sort((function(e,n){for(var i=0;i<o.length;i++){var r=o[i],a=t.retrieveValueFromItem(e,r.dimIdx),s=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function XJ(e){e.registerTransform(KJ),e.registerTransform(YJ)}var ZJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return p(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new ap(this),sp(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),sp(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Md},t}(md),QJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return p(t,e),t.type="dataset",t}(qp);function JJ(e){e.registerComponentModel(ZJ),e.registerComponentView(QJ)}var e0=Pa.CMD;function t0(e,t){return Math.abs(e-t)<1e-5}function n0(e){var t,n,i,r,o,a=e.data,s=e.len(),l=[],c=0,u=0,d=0,h=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,i,r){t0(e,i)&&t0(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=n<e?-1:1,u=Math.cos(e),d=Math.sin(e),h=Math.cos(n),f=Math.sin(n),p=u*o+i,g=d*a+r,m=h*o+i,v=f*a+r,b=o*l*c,y=a*l*c;t.push(p-b*d,g+y*u,m+b*f,v-y*h,m,v)}for(var m=0;m<s;){var v=a[m++],b=1===m;switch(b&&(c=a[m],u=a[m+1],d=c,h=u,v!==e0.L&&v!==e0.C&&v!==e0.Q||(t=[d,h])),v){case e0.M:c=d=a[m++],u=h=a[m++],f(d,h);break;case e0.L:n=a[m++],i=a[m++],p(c,u,n,i),c=n,u=i;break;case e0.C:t.push(a[m++],a[m++],a[m++],a[m++],c=a[m++],u=a[m++]);break;case e0.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],t.push(c+2/3*(n-c),u+2/3*(i-u),r+2/3*(n-r),o+2/3*(i-o),r,o),c=r,u=o;break;case e0.A:var y=a[m++],_=a[m++],w=a[m++],x=a[m++],C=a[m++],S=a[m++]+C;m+=1;var k=!a[m++];n=Math.cos(C)*w+y,i=Math.sin(C)*x+_,b?(d=n,h=i,f(d,h)):p(c,u,n,i),c=Math.cos(S)*w+y,u=Math.sin(S)*x+_;for(var O=(k?-1:1)*Math.PI/2,M=C;k?M>S:M<S;M+=O){var D=k?Math.max(M+O,S):Math.min(M+O,S);g(M,D,y,_,w,x)}break;case e0.R:d=c=a[m++],h=u=a[m++],n=d+a[m++],i=h+a[m++],f(n,h),p(n,h,n,i),p(n,i,d,i),p(d,i,d,h),p(d,h,n,h);break;case e0.Z:t&&p(c,u,d,h),c=d,u=h;break}}return t&&t.length>2&&l.push(t),l}function i0(e,t,n,i,r,o,a,s,l,c){if(t0(e,n)&&t0(t,i)&&t0(r,a)&&t0(o,s))l.push(a,s);else{var u=2/c,d=u*u,h=a-e,f=s-t,p=Math.sqrt(h*h+f*f);h/=p,f/=p;var g=n-e,m=i-t,v=r-a,b=o-s,y=g*g+m*m,_=v*v+b*b;if(y<d&&_<d)l.push(a,s);else{var w=h*g+f*m,x=-h*v-f*b,C=y-w*w,S=_-x*x;if(C<d&&w>=0&&S<d&&x>=0)l.push(a,s);else{var k=[],O=[];jt(e,n,r,a,.5,k),jt(t,i,o,s,.5,O),i0(k[0],O[0],k[1],O[1],k[2],O[2],k[3],O[3],l,c),i0(k[4],O[4],k[5],O[5],k[6],O[6],k[7],O[7],l,c)}}}}function r0(e,t){var n=n0(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var c=2;c<o.length;){var u=o[c++],d=o[c++],h=o[c++],f=o[c++],p=o[c++],g=o[c++];i0(s,l,u,d,h,f,p,g,a,t),s=p,l=g}i.push(a)}return i}function o0(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],c=0;c<a;c++)l.push(s);var u=a*s,d=n-u;if(d>0)for(c=0;c<d;c++)l[c%a]+=1;return l}function a0(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),l=s*r,c=r-i,u=l>Math.abs(c),d=o0([l,c],u?0:1,t),h=(u?s:c)/d.length,f=0;f<d.length;f++)for(var p=(u?c:s)/d[f],g=0;g<d[f];g++){var m={};u?(m.startAngle=o+h*f,m.endAngle=o+h*(f+1),m.r0=i+p*g,m.r=i+p*(g+1)):(m.startAngle=o+p*g,m.endAngle=o+p*(g+1),m.r0=i+h*f,m.r=i+h*(f+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function s0(e,t,n){for(var i=e.width,r=e.height,o=i>r,a=o0([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",d=e[s]/a.length,h=0;h<a.length;h++)for(var f=e[l]/a[h],p=0;p<a[h];p++){var g={};g[c]=h*d,g[u]=p*f,g[s]=d,g[l]=f,g.x+=e.x,g.y+=e.y,n.push(g)}}function l0(e,t,n,i){return e*i-n*t}function c0(e,t,n,i,r,o,a,s){var l=n-e,c=i-t,u=a-r,d=s-o,h=l0(u,d,l,c);if(Math.abs(h)<1e-6)return null;var f=e-r,p=t-o,g=l0(f,p,u,d)/h;return g<0||g>1?null:new Ie(g*l+e,g*c+t)}function u0(e,t,n){var i=new Ie;Ie.sub(i,n,t),i.normalize();var r=new Ie;Ie.sub(r,e,t);var o=r.dot(i);return o}function d0(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function h0(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var a=e[o],s=e[(o+1)%i],l=c0(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:u0(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var c=r[0],u=r[r.length-1];if(u.idx<c.idx){var d=c;c=u,u=d}var h=[c.pt.x,c.pt.y],f=[u.pt.x,u.pt.y],p=[h],g=[f];for(o=c.idx+1;o<=u.idx;o++)d0(p,e[o].slice());d0(p,f),d0(p,h);for(o=u.idx+1;o<=c.idx+i;o++)d0(g,e[o%i].slice());return d0(g,h),d0(g,f),[{points:p},{points:g}]}function f0(e){var t=e.points,n=[],i=[];ca(t,n,i);var r=new $e(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,c=new Ie,u=new Ie;return o>a?(c.x=u.x=s+o/2,c.y=l,u.y=l+a):(c.y=u.y=l+a/2,c.x=s,u.x=s+o),h0(t,c,u)}function p0(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);p0(e,o[0],r,i),p0(e,o[1],n-r,i)}return i}function g0(e,t){for(var n=[],i=0;i<t;i++)n.push(mg(e));return n}function m0(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function v0(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function b0(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":s0(r,t,i),n=Ss;break;case"sector":a0(r,t,i),n=zg;break;case"circle":a0({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=zg;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(m["map"])(r0(e.getUpdatedPathProxy(),a),(function(e){return v0(e)})),l=s.length;if(0===l)p0(f0,{points:s[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:s[c]});else{var u=0,d=Object(m["map"])(s,(function(e){var t=[],n=[];ca(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));d.sort((function(e,t){return t.area-e.area}));var h=t;for(c=0;c<l;c++){var f=d[c];if(h<=0)break;var p=c===l-1?h:Math.ceil(f.area/u*t);p<0||(p0(f0,{points:f.poly},p,i),h-=p)}}n=Kg;break}if(!n)return g0(e,t);var g=[];for(c=0;c<i.length;c++){var v=new n;v.setShape(i[c]),m0(e,v),g.push(v)}return g}function y0(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],a=n<i?e:t,s=Math.min(n,i),l=Math.abs(i-n)/6,c=(s-2)/6,u=Math.ceil(l/c)+1,d=[a[0],a[1]],h=l,f=2;f<s;){var p=a[f-2],g=a[f-1],m=a[f++],v=a[f++],b=a[f++],y=a[f++],_=a[f++],w=a[f++];if(h<=0)d.push(m,v,b,y,_,w);else{for(var x=Math.min(h,u-1)+1,C=1;C<=x;C++){var S=C/x;jt(p,m,b,_,S,r),jt(g,v,y,w,S,o),p=r[3],g=o[3],d.push(r[1],o[1],r[2],o[2],p,g),m=r[5],v=o[5],b=r[6],y=o[6]}h-=x-1}}return a===e?[d,t]:[e,d]}function _0(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],a=0;a<t.length;)o[a++]=i,o[a++]=r;return o}function w0(e,t){for(var n,i,r,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],c=t[s],u=void 0,d=void 0;l?c?(n=y0(l,c),u=n[0],d=n[1],i=u,r=d):(d=_0(r||l,l),u=l):(u=_0(i||c,c),d=c),o.push(u),a.push(d)}return[o,a]}function x0(e){for(var t=0,n=0,i=0,r=e.length,o=0,a=r-2;o<r;a=o,o+=2){var s=e[a],l=e[a+1],c=e[o],u=e[o+1],d=s*u-c*l;t+=d,n+=(s+c)*d,i+=(l+u)*d}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function C0(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,a=0,s=e.length,l=s-2,c=0;c<r;c++){for(var u=6*c,d=0,h=0;h<s;h+=2){var f=0===h?u:(u+h-2)%l+2,p=e[f]-n[0],g=e[f+1]-n[1],m=t[h]-i[0],v=t[h+1]-i[1],b=m-p,y=v-g;d+=b*b+y*y}d<o&&(o=d,a=c)}return a}function S0(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function k0(e,t,n,i){for(var r,o=[],a=0;a<e.length;a++){var s=e[a],l=t[a],c=x0(s),u=x0(l);null==r&&(r=c[2]<0!==u[2]<0);var d=[],h=[],f=0,p=1/0,g=[],m=s.length;r&&(s=S0(s));for(var v=6*C0(s,l,c,u),b=m-2,y=0;y<b;y+=2){var _=(v+y)%b+2;d[y+2]=s[_]-c[0],d[y+3]=s[_+1]-c[1]}if(d[0]=s[v]-c[0],d[1]=s[v+1]-c[1],n>0)for(var w=i/n,x=-i/2;x<=i/2;x+=w){var C=Math.sin(x),S=Math.cos(x),k=0;for(y=0;y<s.length;y+=2){var O=d[y],M=d[y+1],D=l[y]-u[0],E=l[y+1]-u[1],T=D*S-E*C,L=D*C+E*S;g[y]=T,g[y+1]=L;var I=T-O,A=L-M;k+=I*I+A*A}if(k<p){p=k,f=x;for(var N=0;N<g.length;N++)h[N]=g[N]}}else for(var P=0;P<m;P+=2)h[P]=l[P]-u[0],h[P+1]=l[P+1]-u[1];o.push({from:d,to:h,fromCp:c,toCp:u,rotation:-f})}return o}function O0(e){return e.__isCombineMorphing}var M0="__mOriginal_";function D0(e,t,n){var i=M0+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),a&&a.apply(this,t),e}}function E0(e,t){var n=M0+t;e[n]&&(e[t]=e[n],e[n]=null)}function T0(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=t[0]*o+t[2]*a+t[4],i[r++]=t[1]*o+t[3]*a+t[5]}}function L0(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=w0(n0(n),n0(i)),o=r[0],a=r[1],s=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}s&&T0(o,s),l&&T0(a,l),D0(t,"updateTransform",{replace:c}),t.transform=null;var u=k0(o,a,10,Math.PI),d=[];D0(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var a=u[o],s=a.from,l=a.to,c=a.rotation*n,h=a.fromCp,f=a.toCp,p=Math.sin(c),g=Math.cos(c);j(r,h,f,n);for(var m=0;m<s.length;m+=2){var v=s[m],b=s[m+1],y=l[m],_=l[m+1],w=v*i+y*n,x=b*i+_*n;d[m]=w*g-x*p+r[0],d[m+1]=w*p+x*g+r[1]}var C=d[0],S=d[1];e.moveTo(C,S);for(m=2;m<s.length;){y=d[m++],_=d[m++];var k=d[m++],O=d[m++],M=d[m++],D=d[m++];C===y&&S===_&&k===M&&O===D?e.lineTo(M,D):e.bezierCurveTo(y,_,k,O,M,D),C=M,S=D}}}})}function I0(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;function o(){E0(t,"buildPath"),E0(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return L0(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(m["defaults"])({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){o(),i&&i()}},n)),t}function A0(e,t,n,i,r,o){var a=16;e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var s,l=0,c=(1<<a)/2;c>0;c/=2){var u=0,d=0;(e&c)>0&&(u=1),(t&c)>0&&(d=1),l+=c*c*(3*u^d),0===d&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function N0(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(m["map"])(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=Object(m["map"])(o,(function(o,a){return{cp:o,z:A0(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function P0(e){return b0(e.path,e.count)}function R0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function F0(e,t,n){var i=[];function r(e){for(var t=0;t<e.length;t++){var n=e[t];O0(n)?r(n.childrenRef()):n instanceof ss&&i.push(n)}}r(e);var o=i.length;if(!o)return R0();var a=n.dividePath||P0,s=a({path:t,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),R0();i=N0(i),s=N0(s);for(var l=n.done,c=n.during,u=n.individualDelay,d=new ui,h=0;h<o;h++){var f=i[h],p=s[h];p.parent=t,p.copyTransform(d),u||L0(f,p)}function g(e){for(var t=0;t<s.length;t++)s[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,E0(t,"addSelfToZr"),E0(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return s},D0(t,"addSelfToZr",{after:function(e){g(e)}}),D0(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<s.length;t++)s[t].removeSelfFromZr(e)}});var b=s.length;if(u){var y=b,_=function(){y--,0===y&&(v(),l&&l())};for(h=0;h<b;h++){var w=u?Object(m["defaults"])({delay:(n.delay||0)+u(h,b,i[h],s[h]),done:_},n):n;I0(i[h],s[h],w)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(m["defaults"])({during:function(e){for(var n=0;n<b;n++){var i=s[n];i.__morphT=t.__morphT,i.dirtyShape()}c&&c(e)},done:function(){v();for(var t=0;t<e.length;t++)E0(e[t],"updateTransform");l&&l()}},n));return t.__zr&&g(t.__zr),{fromIndividuals:i,toIndividuals:s,count:b}}function j0(e,t,n){var i=t.length,r=[],o=n.dividePath||P0;function a(e){for(var t=0;t<e.length;t++){var n=e[t];O0(n)?a(n.childrenRef()):n instanceof ss&&r.push(n)}}if(O0(e)){a(e.childrenRef());var s=r.length;if(s<i)for(var l=0,c=s;c<i;c++)r.push(mg(r[l++%s]));r.length=i}else{r=o({path:e,count:i});var u=e.getComputedTransform();for(c=0;c<r.length;c++)r[c].setLocalTransform(u);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),R0()}r=N0(r),t=N0(t);var d=n.individualDelay;for(c=0;c<i;c++){var h=d?Object(m["defaults"])({delay:(n.delay||0)+d(c,i,r[c],t[c])},n):n;I0(r[c],t[c],h)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}function B0(e){return Object(m["isArray"])(e[0])}function z0(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(t[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[s].many=l.slice(0,c),s++}return n}var V0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=mg(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function $0(e,t,n,i,r,o){if(e.length&&t.length){var a=ac("update",i,r);if(a&&a.duration>0){var s,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);B0(e)&&(s=e,l=t),B0(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,h=s?z0(l,s):z0(d?t:e,[d?e:t]),f=0,p=0;p<h.length;p++)f+=h[p].many.length;var g=0;for(p=0;p<h.length;p++)v(h[p],d,g,f),g+=h[p].many.length}}function v(e,t,i,r,a){var s=e.many,l=e.one;if(1!==s.length||a)for(var d=Object(m["defaults"])({dividePath:V0[n],individualDelay:c&&function(e,t,n,o){return c(e+i,r)}},u),h=t?F0(s,l,d):j0(l,s,d),f=h.fromIndividuals,p=h.toIndividuals,g=f.length,b=0;b<g;b++){w=c?Object(m["defaults"])({delay:c(b,g)},u):u;o(f[b],p[b],t?s[b]:e.one,t?e.one:s[b],w)}else{var y=t?s[0]:l,_=t?l:s[0];if(O0(y))v({many:[y],one:_},!0,i,r,!0);else{var w=c?Object(m["defaults"])({delay:c(i,r)},u):u;I0(y,_,w),o(y,_,y,_,w)}}}}function W0(e){if(!e)return[];if(Object(m["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(W0(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof ss&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var H0=1e4,U0=Kr();function q0(e){for(var t=e.dimensions,n=0;n<t.length;n++){var i=e.getDimensionInfo(t[n]);if(i&&0===i.otherDims.itemGroupId)return t[n]}}function G0(e){var t=[];return Object(m["each"])(e,(function(e){var n=e.data;if(!(n.count()>H0))for(var i=n.getIndices(),r=q0(n),o=0;o<i.length;o++)t.push({dataGroupId:e.dataGroupId,data:n,dim:e.dim||r,divide:e.divide,dataIndex:o})})),t}function K0(e,t,n){e.traverse((function(e){e instanceof ss&&cc(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function Y0(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function X0(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function Z0(e,t,n){var i=ac("update",n,t);i&&e.traverse((function(e){if(e instanceof ea){var t=gc(e);t&&e.animateFrom({style:t},i)}}))}function Q0(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function J0(e,t,n){var i=G0(e),r=G0(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?Object(m["extend"])(Object(m["extend"])({},n.style),e.style):e.style},r)}function a(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=a(i),l=a(r),c=!1;function u(e,t){return function(n){var i=n.data,r=n.dataIndex;if(t)return i.getId(r);var o=n.dataGroupId,a=e?s||l:l||s,c=a&&i.getDimensionInfo(a),u=c&&c.ordinalMeta;if(c){var d=i.get(c.name,r);return u&&u.categories[d]||d+""}var h=i.getRawDataItem(r);return h&&h.groupId?h.groupId+"":o||i.getId(r)}}var d=Q0(i,r),h={};if(!d)for(var f=0;f<r.length;f++){var p=r[f],g=p.data.getItemGraphicEl(p.dataIndex);g&&(h[g.id]=!0)}function v(e,t){var n=i[t],a=r[e],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=a.data.getItemGraphicEl(a.dataIndex);l!==u?l&&h[l.id]||u&&(X0(u),l?(X0(l),Y0(l),c=!0,$0(W0(l),W0(u),a.divide,s,e,o)):K0(u,s,e)):u&&Z0(u,a.dataIndex,s)}new vw(i,r,u(!0,d),u(!1,d),null,"multiple").update(v).updateManyToOne((function(e,t){var n=r[e],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),u=Object(m["filter"])(Object(m["map"])(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==l&&!h[e.id]}));l&&(X0(l),u.length?(Object(m["each"])(u,(function(e){X0(e),Y0(e)})),c=!0,$0(W0(u),W0(l),n.divide,s,e,o)):K0(l,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!h[a.id]){var s=Object(m["filter"])(Object(m["map"])(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==a})),l=r[e[0]].data.hostModel;s.length&&(Object(m["each"])(s,(function(e){return X0(e)})),a?(X0(a),Y0(a),c=!0,$0(W0(a),W0(s),n.divide,l,e[0],o)):Object(m["each"])(s,(function(t){return K0(t,l,e[0])})))}})).updateManyToMany((function(e,t){new vw(t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){v(e[n],t[i])})).execute()})).execute(),c&&Object(m["each"])(t,(function(e){var t=e.data,i=t.hostModel,r=i&&n.getViewOfSeriesModel(i),o=ac("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(e){e instanceof ss&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function e1(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function t1(e){return Object(m["isArray"])(e)?e.sort().join(","):e}function n1(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function i1(e,t){var n=Object(m["createHashMap"])(),i=Object(m["createHashMap"])(),r=Object(m["createHashMap"])();return Object(m["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=e1(t),l=t1(s);i.set(l,{dataGroupId:o,data:a}),Object(m["isArray"])(s)&&Object(m["each"])(s,(function(e){r.set(e,{key:l,dataGroupId:o,data:a})}))})),Object(m["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=e1(e),s=t1(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:n1(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:n1(o),data:o}]});else if(Object(m["isArray"])(a)){0;var c=[];Object(m["each"])(a,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:n1(t.data),data:t.data})})),c.length&&n.set(s,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:n1(o)}]})}else{var u=r.get(a);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:n1(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:o,divide:n1(o)})}}}})),n}function r1(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function o1(e,t,n,i){var r=[],o=[];Object(m["each"])(Or(e.from),(function(e){var n=r1(t.oldSeries,e);n>=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:n1(t.oldData[n]),dim:e.dimension})})),Object(m["each"])(Or(e.to),(function(e){var i=r1(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:n1(r),dim:e.dimension})}})),r.length>0&&o.length>0&&J0(r,o,i)}function a1(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(m["each"])(Or(n.seriesTransition),(function(e){Object(m["each"])(Or(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][Np]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=U0(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(m["each"])(Or(r),(function(e){o1(e,i,n,t)}));else{var o=i1(i,n);Object(m["each"])(o.keys(),(function(e){var n=o.get(e);J0(n.oldSeries,n.newSeries,t)}))}Object(m["each"])(n.updatedSeries,(function(e){e[Np]&&(e[Np]=!1)}))}for(var a=e.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<a.length;u++){var d=a[u].getData();d.count()<H0&&(s.push(a[u]),l.push(a[u].get("dataGroupId")),c.push(d))}}))}fw([Dk]),fw([nM]),fw([tD,BD,lE,NT,tL,JI,ZA,kP,WR,JR,uF,gB,GB,dz,Bz,Gz,mV,MV,i$,f$,I$,lH]),fw(aU),fw(QU),fw(QI),fw(Sq),fw(pB),fw(Nq),fw(Qq),fw(RK),fw(bY),fw(oU),fw(QY),fw(tX),fw(SX),fw(XX),fw(lZ),fw(wZ),fw(XZ),fw(LQ),fw(fQ),fw(TQ),fw(MJ),fw(yJ),fw(OJ),fw(AJ),fw(XJ),fw(JJ),fw(a1),fw(mk)},"31f4":function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},"323e":function(e,t,n){var i,r;
  51. /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
  52. * @license MIT */(function(o,a){i=a,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function i(e){return 100*(-1+e)}function r(e,n,r){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"},o.transition="all "+n+"ms "+r,o}e.configure=function(e){var n,i;for(n in e)i=e[n],void 0!==i&&e.hasOwnProperty(n)&&(t[n]=i);return this},e.status=null,e.set=function(i){var s=e.isStarted();i=n(i,t.minimum,1),e.status=1===i?null:i;var l=e.render(!s),c=l.querySelector(t.barSelector),u=t.speed,d=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(c,r(i,u,d)),1===i?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var i=e.status;return i?("number"!==typeof t&&(t=(1-i)*n(Math.random()*i,.1,.95)),i=n(i+t,0,.994),e.set(i)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(i){return i&&"resolved"!==i.state()?(0===n&&e.start(),t++,n++,i.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var r=document.createElement("div");r.id="nprogress",r.innerHTML=t.template;var o,s=r.querySelector(t.barSelector),c=n?"-100":i(e.status||0),u=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(o=r.querySelector(t.spinnerSelector),o&&d(o)),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(r),r},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function i(t){var n=document.body.style;if(t in n)return t;var i,r=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(r--)if(i=e[r]+o,i in n)return i;return t}function r(e){return e=n(e),t[e]||(t[e]=i(e))}function o(e,t,n){t=r(t),e.style[t]=n}return function(e,t){var n,i,r=arguments;if(2==r.length)for(n in t)i=t[n],void 0!==i&&t.hasOwnProperty(n)&&o(e,n,i);else o(e,r[1],r[2])}}();function s(e,t){var n="string"==typeof e?e:u(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),i=n+t;s(n,t)||(e.className=i.substring(1))}function c(e,t){var n,i=u(e);s(e,t)&&(n=i.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},3252:function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,a=n.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var r=e[i];n.push(r.high),n.push(r.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),e}))},"32a9":function(e,t,n){(function(t){var i=n("6d87"),r=n("4f14"),o=n("ae0b"),a=n("fcd1"),s=n("c6a1");function l(e){try{var t="__xe_t";return e.setItem(t,1),e.removeItem(t),!0}catch(n){return!1}}function c(e){return navigator.userAgent.indexOf(e)>-1}function u(){var e,n,u,d=!1,h={isNode:!1,isMobile:d,isPC:!1,isDoc:!!r};return o||typeof t===i?(u=c("Edge"),n=c("Chrome"),d=/(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent),h.isDoc&&(e=r.body||r.documentElement,s(["webkit","khtml","moz","ms","o"],(function(t){h["-"+t]=!!e[t+"MatchesSelector"]}))),a(h,{edge:u,firefox:c("Firefox"),msie:!u&&h["-ms"],safari:!n&&!u&&c("Safari"),isMobile:d,isPC:!d,isLocalStorage:l(o.localStorage),isSessionStorage:l(o.sessionStorage)})):h.isNode=!0,h}e.exports=u}).call(this,n("f28c"))},"32aa":function(e,t){function n(e){return e.getMonth()}e.exports=n},"32d7":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"32e9":function(e,t,n){var i=n("86cc"),r=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"32fc":function(e,t,n){var i=n("e53d").document;e.exports=i&&i.documentElement},"335c":function(e,t,n){var i=n("6b4c");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"335d":function(e,t,n){},"33a4":function(e,t,n){var i=n("84f2"),r=n("2b4c")("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[r]===e)}},3452:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("3252"),n("17e1"),n("a8ce"),n("1132"),n("72fe"),n("df2f"),n("94f8"),n("191b"),n("d6e6"),n("b86b"),n("e61b"),n("10b7"),n("5980"),n("7bbcc"),n("2b79"),n("38ba"),n("00bb"),n("f4ea"),n("aaef"),n("4ba9"),n("81bf"),n("a817"),n("a11b"),n("8cef"),n("2a66"),n("b86c"),n("6d08"),n("c198"),n("a40e"),n("c3b6"),n("1382"),n("3d5a"))})(0,(function(e){return e}))},3466:function(e,t){var n=Object.prototype.toString;e.exports=n},3490:function(e,t,n){var i=n("8965"),r=n("ea7d"),o=r(i);e.exports=o},"34ef":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},3535:function(e,t){function n(e){return(e.split(".")[1]||"").length}e.exports=n},"3535e":function(e,t,n){"use strict";var i=n("5ca1"),r=n("02f4")(!0),o=n("79e5"),a=o((function(){return"𠮷"!=="𠮷".at(0)}));i(i.P+i.F*a,"String",{at:function(e){return r(this,e)}})},"355d":function(e,t){t.f={}.propertyIsEnumerable},"357d":function(e,t,n){},"358a":function(e,t){function n(e,t){if(e.lastIndexOf)return e.lastIndexOf(t);for(var n=e.length-1;n>=0;n--)if(t===e[n])return n;return-1}e.exports=n},"35e8":function(e,t,n){var i=n("d9f6"),r=n("aebd");e.exports=n("8e60")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},3648:function(e,t,n){},3660:function(e,t,n){var i=n("a58e"),r=n("e4e5"),o=n("7fff"),a=n("4c7b"),s=n("9a44"),l=n("6c36"),c=n("969d");function u(e,t){var n,u,d,h,f,p=t||{},g=p.digits||p.fixed,m=a(e);return m?(n=(p.ceil?r:p.floor?o:i)(e,g),u=c(g?l(n,g):n).split("."),h=u[0],f=u[1],d=h&&n<0,d&&(h=h.substring(1,h.length))):(n=s(e).replace(/,/g,""),u=n?[n]:[],h=u[0]),u.length?(d?"-":"")+h.replace(new RegExp("(?=(?!(\\b))(.{"+(p.spaceNumber||3)+"})+$)","g"),p.separator||",")+(f?"."+f:""):n}e.exports=u},3696:function(e,t,n){var i=n("4c7b");function r(e){return i(e)&&isNaN(e)}e.exports=r},"36bd":function(e,t,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");e.exports=function(e){var t=i(this),n=o(t.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);while(c>s)t[s++]=e;return t}},"36c3":function(e,t,n){var i=n("335c"),r=n("25eb");e.exports=function(e){return i(r(e))}},"36d5":function(e,t,n){var i=n("8c84"),r=i("RegExp");e.exports=r},"36da":function(module,exports,__webpack_require__){(function(e,t){module.exports=t()})("undefined"!==typeof self&&self,(function(){return function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,l=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&l.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);c&&c(t);while(l.length)l.shift()()}var n={},i={0:0};function r(e){return o.p+"index.umd.min."+({}[e]||e)+".js"}function o(t){if(n[t])return n[t].exports;var i=n[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,o),i.l=!0,i.exports}o.e=function(e){var t=[],n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=a);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.src=r(e);var c=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(u);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}i[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)o.d(n,i,function(t){return e[t]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var a=("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]=("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var l=0;l<a.length;l++)t(a[l]);var c=s;return o(o.s="5069")}({"006c":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;-webkit-transition:width .1s linear;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{-webkit-animation-name:progress;animation-name:progress;-webkit-animation-duration:4s;animation-duration:4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes progress{0%{-webkit-transform:translateX(0) scaleX(1);transform:translateX(0) scaleX(1)}50%{-webkit-transform:translateX(2500%) scaleX(3);transform:translateX(2500%) scaleX(3)}to{-webkit-transform:translateX(4950%) scaleX(1);transform:translateX(4950%) scaleX(1)}}@keyframes progress{0%{-webkit-transform:translateX(0) scaleX(1);transform:translateX(0) scaleX(1)}50%{-webkit-transform:translateX(2500%) scaleX(3);transform:translateX(2500%) scaleX(3)}to{-webkit-transform:translateX(4950%) scaleX(1);transform:translateX(4950%) scaleX(1)}}",""]),e.exports=t},"00ad":function(e,t,n){var i=n("61b6");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("08cdbd56",i,!0,{sourceMap:!1,shadowMode:!1})},"02de":function(e,t,n){"use strict";var i=n("83ec"),r=n("55ab"),o=n("e244"),a=n("fe32"),s=n("eee7"),l=n("b896").f,c=n("8c42"),u=o.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:h})}},"030e":function(e,t,n){"use strict";var i=n("ac97");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"0556":function(e,t,n){var i=n("4e70");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("c1082ae6",i,!0,{sourceMap:!1,shadowMode:!1})},"061d":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-aria-container{position:absolute;left:-999em}",""]),e.exports=t},"0678":function(e,t,n){var i=n("061d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("0a503a2c",i,!0,{sourceMap:!1,shadowMode:!1})},"085b":function(e,t,n){"use strict";var i=n("55ab"),r=n("e244"),o=n("a056"),a=n("7d86"),s=n("fe32"),l=n("c401"),c=n("ca23"),u=n("7f82"),d=n("ac97"),h=n("ca2b"),f=n("f0f1").f,p=n("42b1").f,g=n("b896").f,m=n("3395").trim,v="Number",b=r[v],y=b.prototype,_=l(h(y))==v,w=function(e){var t,n,i,r,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=m(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=c.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,i)}return+c};if(o(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(_?d((function(){y.valueOf.call(n)})):l(n)!=v)?c(new b(w(t)),n,C):w(t)},S=i?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),k=0;S.length>k;k++)s(b,x=S[k])&&!s(C,x)&&g(C,x,p(b,x));C.prototype=y,y.constructor=C,a(r,v,C)}},"0874":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"0952":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".custom-tree-node[data-v-bfa41dee]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}",""]),e.exports=t},"0adc":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,"@-webkit-keyframes codicon-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes codicon-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.codicon-animation-spin{-webkit-animation:codicon-spin 1.5s steps(30) infinite;animation:codicon-spin 1.5s steps(30) infinite}",""]),e.exports=t},"0cf4":function(e,t,n){var i=n("a73f");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("5ee2876b",i,!0,{sourceMap:!1,shadowMode:!1})},"0da4":function(e,t,n){"use strict";var i=n("6965"),r=n("d53b");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},"0df9":function(e,t,n){"use strict";var i=n("0cf4"),r=n.n(i);r.a},"0ef1":function(e,t){t.f=Object.getOwnPropertySymbols},"10b1":function(e,t,n){var i=n("53c2"),r=n("a0c9"),o=n("1eca");t=i(!1);var a=r(o);t.push([e.i,"@font-face{font-family:codicon;src:url("+a+') format("truetype")}.codicon[class*=codicon-]{font:normal normal normal 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-user-select:none;user-select:none;-webkit-user-select:none;-ms-user-select:none}',""]),e.exports=t},1115:function(e,t,n){"use strict";var i=n("00ad"),r=n.n(i);r.a},"11b0":function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},"11cb":function(e,t,n){var i=n("9d6f");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("7d6c689e",i,!0,{sourceMap:!1,shadowMode:!1})},"11e2":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .lines-content .cdr{position:absolute}",""]),e.exports=t},"139d":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}",""]),e.exports=t},"13a8":function(e,t,n){var i=n("fbcf"),r=n("2cdc");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},"154c":function(e,t,n){var i=n("4cdd");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("da9b1e04",i,!0,{sourceMap:!1,shadowMode:!1})},"15b2":function(e,t,n){"use strict";var i,r,o,a=n("a7f7"),s=n("69f1"),l=n("fe32"),c=n("1810"),u=n("f0db"),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(i=r)):h=!0),void 0==i&&(i={}),u||l(i,d)||s(i,d,f),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},1613:function(e,t,n){var i=n("0adc");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("b04beba4",i,!0,{sourceMap:!1,shadowMode:!1})},"17b9":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-form-container"},[n("el-form",{ref:"widgetForm",attrs:{"label-position":e.data.labelPosition||"left","label-width":e.data.labelWidth?e.data.labelWidth+"px":"100px","label-suffix":e.data.labelSuffix,model:e.form,size:"small"}},[n("el-row",{attrs:{gutter:e.data.gutter}},[n("draggable",{staticClass:"widget-form-list",attrs:{list:e.data.column,group:{name:"form"},"ghost-class":"ghost",animation:300},on:{add:e.handleWidgetAdd,end:function(t){return e.$emit("change")}}},[e._l(e.data.column,(function(t,i){return["dynamic"==t.type?n("div",{key:i,staticClass:"widget-form-table",class:{active:e.selectWidget.prop==t.prop},on:{click:function(t){return e.handleSelectWidget(i)}}},[n("widget-form-table",{attrs:{data:e.data,column:t,index:i,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},change:function(t){return e.$emit("change")}}})],1):"group"==t.type?n("div",{key:i,staticClass:"widget-form-group",class:{active:e.selectWidget.prop==t.prop},on:{click:function(t){return e.handleSelectWidget(i)}}},[n("widget-form-group",{attrs:{data:e.data,column:t,index:i,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},change:function(t){return e.$emit("change")}}})],1):n("el-col",{key:i,attrs:{md:t.span||12,xs:24,offset:t.offset||0}},[n("el-form-item",{staticClass:"widget-form-item",class:{active:e.selectWidget.prop==t.prop,required:t.required},attrs:{label:t.label,labelWidth:t.labelWidth,prop:t.prop},nativeOn:{click:function(t){return e.handleSelectWidget(i)}}},[n("widget-form-item",{attrs:{item:t,params:t.params}}),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(i)}}},[n("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClone(i)}}},[n("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]}))],2)],1)],1)],1)},r=[],o=(n("d927"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["title"==e.item.type?n("span",{staticStyle:{"margin-left":"5px"},style:e.item.styles},[e._v(" "+e._s(e.item.value)+" ")]):n(e.getComponent(e.item.type,e.item.component),e._b({tag:"component",attrs:{multiple:!1,placeholder:e.item.placeholder||e.getPlaceholder(e.item),dic:e.item.dicData}},"component",Object.assign(e.deepClone(e.item),e.params,{size:e.item.size||"small"}),!1),[e.params.html?n("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])],1)}),a=[],s=(n("2f62"),{name:"widget-form-item",props:{item:{type:Object,default:function(){return{}}},params:{type:Object,default:function(){return{}}}},data:function(){return{form:{}}},methods:{getComponent:function(e,t){var n="avue-",i="input";return t||(["array","img","url"].includes(e)?i="array":"select"===e?i="select":"radio"===e?i="radio":"checkbox"===e?i="checkbox":["time","timerange"].includes(e)?i="time":["dates","date","datetime","datetimerange","daterange","week","month","year"].includes(e)?i="date":"cascader"===e?i="cascader":"number"===e?i="input-number":"password"===e?i="input":"switch"===e?i="switch":"rate"===e?i="rate":"upload"===e?i="upload":"slider"===e?i="slider":"dynamic"===e?i="dynamic":"icon"===e?i="input-icon":"color"===e?i="input-color":"map"===e&&(i="input-map"),n+i)},getPlaceholder:function(e){var t=e.label;return["select","checkbox","radio","tree","color","dates","date","datetime","datetimerange","daterange","week","month","year","map","icon"].includes(e.type)?"请选择 ".concat(t):"请输入 ".concat(t)}}}),l=s,c=n("e3d4"),u=Object(c["a"])(l,o,a,!1,null,null,null),d=u.exports,h=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h3",{directives:[{name:"show",rawName:"v-show",value:e.column.label,expression:"column.label"}],staticStyle:{margin:"10px"}},[e._v(e._s(e.column.label))]),n("draggable",{staticClass:"widget-form-table__content",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200,handle:".widget-form-table__item"},on:{add:function(t){return e.handleWidgetTableAdd(t,e.column)},end:function(t){return e.$emit("change")}}},[e.column.children.column.length>0?e._l(e.column.children.column,(function(t,i){return n("div",{key:i,staticClass:"widget-form-table__item",class:{active:e.selectWidget.prop==t.prop,required:t.required},style:{minWidth:t.width?t.width+"px":"33.3%",width:t.width?t.width+"px":"33.3%"},on:{click:function(n){return n.stopPropagation(),e.handleWidgetTableSelect(t)}}},[n("el-table",{attrs:{data:[t],border:""}},[n("el-table-column",{attrs:{prop:t.prop,label:t.label,align:e.column.children.align,"header-align":e.column.children.headerAlign}},[n("widget-form-item",{attrs:{item:t,params:e.column.params}}),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-table-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetTableDelete(e.column,i)}}},[n("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-table-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(n){return n.stopPropagation(),e.handleWidgetTableClone(e.column,t)}}},[n("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)],1)})):[n("avue-empty",{staticStyle:{width:"100%"},attrs:{size:"50",desc:"拖拽字段至此"}})]],2),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(e.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClear(e.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)},f=[],p=(n("eb46"),n("f96e"),n("863c")),g=n("d958"),m=n.n(g),v={name:"widget-form-table",props:["data","column","select","index"],components:{WidgetFormItem:d,draggable:m.a},data:function(){return{selectWidget:this.select}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.column[e]},handleWidgetClear:function(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete:function(e){var t=this;this.data.column.length-1===e?0===e?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick((function(){t.data.column.splice(e,1),t.$emit("change")}))},handleWidgetCloneTable:function(e){var t=this,n=this.deepClone(this.data.column[e]);n.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),n.children.column.forEach((function(e){e.prop=Date.now()+"_"+Math.ceil(99999*Math.random())})),this.data.column.splice(e,0,n),this.$nextTick((function(){t.handleSelectWidget(e+1),t.$emit("change")}))},handleWidgetTableAdd:function(e,t){var n=e.newIndex,i=e.item;if(1==n&&n>t.children.column.length-1&&(n=0),["子表单","富文本","坐标拾取器","分组"].includes(i.textContent))t.children.column.splice(n,1);else{var r=this.deepClone(t.children.column[n]);r.prop||(r.prop=Date.now()+"_"+Math.ceil(99999*Math.random())),r.subfield=!0,delete r.icon,this.$set(t.children.column,n,Object(p["a"])({},r)),this.selectWidget=t.children.column[n],this.$emit("change")}},handleWidgetTableSelect:function(e){this.selectWidget=e},handleWidgetTableClone:function(e,t){var n=this,i=this.deepClone(t);i.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),this.$set(e.children.column,e.children.column.length,Object(p["a"])({},i)),this.$nextTick((function(){n.selectWidget=e.children.column[e.children.column.length-1],n.$emit("change")}))},handleWidgetTableDelete:function(e,t){var n=this;e.children.column.length-1==t?this.selectWidget=0==t?e:e.children.column[t-1]:this.selectWidget=e.children.column[t+1],this.$nextTick((function(){e.children.column.splice(t,1),n.$emit("change")}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},b=v,y=Object(c["a"])(b,h,f,!1,null,null,null),_=y.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h4",{directives:[{name:"show",rawName:"v-show",value:e.column.label,expression:"column.label"}],staticClass:"widget-form-group__head"},[n("i",{directives:[{name:"show",rawName:"v-show",value:e.column.icon,expression:"column.icon"}],class:e.column.icon,staticStyle:{"margin-right":"10px"}}),e._v(e._s(e.column.label))]),n("draggable",{staticClass:"widget-form-group__body",attrs:{list:e.column.children.column,group:{name:"form"},"ghost-class":"ghost",animation:200},on:{add:function(t){return e.handleWidgetGroupAdd(t,e.column)},end:function(t){return e.$emit("change")}}},[e._l(e.column.children.column,(function(t,i){return["dynamic"==t.type?n("div",{key:i,staticClass:"widget-form-table",class:{active:e.selectWidget.prop==t.prop},on:{click:function(n){return n.stopPropagation(),e.handleWidgetTableSelect(t)}}},[n("widget-form-table",{attrs:{data:e.column.children,column:t,index:i,select:e.selectWidget},on:{"update:select":function(t){e.selectWidget=t},change:function(t){return e.$emit("change")}}})],1):n("el-col",{key:i,attrs:{md:t.span||12,xs:24,offset:t.offset||0}},[n("el-form-item",{staticClass:"widget-form-group__item",class:{active:e.selectWidget.prop==t.prop,required:t.required},attrs:{label:t.label,prop:t.prop},nativeOn:{click:function(n){return n.stopPropagation(),e.handleWidgetTableSelect(t)}}},[n("widget-form-item",{attrs:{item:t,params:e.column.params}}),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-form-group__item--delete",attrs:{title:"删除",circle:"",plain:"",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetTableDelete(e.column,i)}}},[n("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==t.prop?n("el-button",{staticClass:"widget-form-group__item--clone",attrs:{title:"复制",circle:"",plain:"",type:"primary"},on:{click:function(n){return n.stopPropagation(),e.handleWidgetTableClone(e.column,t)}}},[n("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)],1)]}))],2),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-delete",attrs:{title:"删除",circle:"",plain:"",size:"small",type:"danger"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetDelete(e.index)}}},[n("i",{staticClass:"iconfont icon-delete"})]):e._e(),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-clear",attrs:{title:"清空",circle:"",plain:"",size:"small",type:"warning"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetClear(e.index)}}},[n("i",{staticClass:"iconfont icon-clear"})]):e._e(),e.selectWidget.prop==e.column.prop?n("el-button",{staticClass:"widget-action-clone",attrs:{title:"复制",circle:"",plain:"",size:"small",type:"primary"},on:{click:function(t){return t.stopPropagation(),e.handleWidgetCloneTable(e.index)}}},[n("i",{staticClass:"iconfont icon-copy"})]):e._e()],1)},x=[],C={name:"widget-form-group",props:["data","column","select","index"],components:{WidgetFormItem:d,WidgetFormTable:_,draggable:m.a},data:function(){return{selectWidget:this.select}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.column[e]},handleWidgetClear:function(e){this.data.column[e].children.column=[],this.selectWidget=this.data.column[e],this.$emit("change")},handleWidgetDelete:function(e){var t=this;this.data.column.length-1===e?0===e?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick((function(){t.data.column.splice(e,1),t.$emit("change")}))},handleWidgetCloneTable:function(e){var t=this,n=this.deepClone(this.data.column[e]);n.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),n.children.column.forEach((function(e){e.prop=Date.now()+"_"+Math.ceil(99999*Math.random())})),this.data.column.splice(e,0,n),this.$nextTick((function(){t.handleSelectWidget(e+1),t.$emit("change")}))},handleWidgetTableSelect:function(e){this.selectWidget=e},handleWidgetTableClone:function(e,t){var n=this,i=this.deepClone(t);i.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),this.$set(e.children.column,e.children.column.length,Object(p["a"])({},i)),this.$nextTick((function(){n.selectWidget=e.children.column[e.children.column.length-1],n.$emit("change")}))},handleWidgetTableDelete:function(e,t){var n=this;e.children.column.length-1==t?this.selectWidget=0==t?e:e.children.column[t-1]:this.selectWidget=e.children.column[t+1],this.$nextTick((function(){e.children.column.splice(t,1),n.$emit("change")}))},handleWidgetGroupAdd:function(e,t){var n=e.newIndex,i=e.item;if(1==n&&n>t.children.column.length-1&&(n=0),["分组"].includes(i.textContent))t.children.column.splice(n,1);else{var r=this.deepClone(t.children.column[n]);r.prop||(r.prop=Date.now()+"_"+Math.ceil(99999*Math.random())),delete r.icon,"dynamic"==r.type?r.span=24:r.span=12,this.$set(t.children.column,n,Object(p["a"])({},r)),this.selectWidget=t.children.column[n],this.$emit("change")}}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},S=C,k=Object(c["a"])(S,w,x,!1,null,null,null),O=k.exports,M={name:"widget-form",components:{Draggable:m.a,WidgetFormItem:d,WidgetFormTable:_,WidgetFormGroup:O},props:["data","select"],data:function(){return{selectWidget:this.select,form:{}}},methods:{handleSelectWidget:function(e){this.selectWidget=this.data.column[e]},handleWidgetAdd:function(e){var t=e.newIndex,n=this.deepClone(this.data.column[t]);n.prop||(n.prop=Date.now()+"_"+Math.ceil(99999*Math.random())),delete n.icon,delete n.subfield,"title"==n.type&&(delete n.label,this.form[n.prop]=n.value),this.$set(this.data.column,t,n),this.handleSelectWidget(t),this.$emit("change")},handleWidgetDelete:function(e){var t=this;this.data.column.length-1===e?0===e?this.selectWidget={}:this.handleSelectWidget(e-1):this.handleSelectWidget(e+1),this.$nextTick((function(){t.data.column.splice(e,1),t.$emit("change")}))},handleWidgetClone:function(e){var t=this,n=this.deepClone(this.data.column[e]);n.prop=Date.now()+"_"+Math.ceil(99999*Math.random()),this.data.column.splice(e,0,n),this.$nextTick((function(){t.handleSelectWidget(e+1),t.$emit("change")}))}},watch:{select:function(e){this.selectWidget=e},selectWidget:{handler:function(e){this.$emit("update:select",e)},deep:!0}}},D=M,E=Object(c["a"])(D,i,r,!1,null,null,null);t["a"]=E.exports},"17be":function(e,t,n){var i=n("e244"),r=n("9550"),o=i.WeakMap;e.exports="function"===typeof o&&/native code/.test(r(o))},"17d4":function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},1810:function(e,t,n){var i=n("e244"),r=n("986e"),o=n("fe32"),a=n("76b2"),s=n("8fed"),l=n("bd77"),c=r("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},"1a37":function(e,t,n){var i=n("6120");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("11b4b069",i,!0,{sourceMap:!1,shadowMode:!1})},"1a7b":function(e,t,n){var i=n("e248");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("4bc745f9",i,!0,{sourceMap:!1,shadowMode:!1})},"1cb4":function(e,t,n){"use strict";(function(e,i){n.d(t,"i",(function(){return v})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return S})),n.d(t,"j",(function(){return k})),n.d(t,"a",(function(){return O})),n.d(t,"e",(function(){return E}));const r="en";let o=!1,a=!1,s=!1,l=!1,c=!1,u=!1,d=void 0,h=r,f=void 0,p=void 0;const g="undefined"!==typeof e&&"undefined"!==typeof e.versions&&"undefined"!==typeof e.versions.electron&&"renderer"===e.type;if("object"!==typeof navigator||g){if("object"===typeof e){o="win32"===e.platform,a="darwin"===e.platform,s="linux"===e.platform,d=r,h=r;const t=Object({NODE_ENV:"production",BASE_URL:"/"})["VSCODE_NLS_CONFIG"];if(t)try{const e=JSON.parse(t),n=e.availableLanguages["*"];d=e.locale,h=n||r,f=e._translationsConfigFile}catch(T){}l=!0}}else p=navigator.userAgent,o=p.indexOf("Windows")>=0,a=p.indexOf("Macintosh")>=0,u=(p.indexOf("Macintosh")>=0||p.indexOf("iPad")>=0||p.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,s=p.indexOf("Linux")>=0,c=!0,d=navigator.language,h=d;let m=0;a?m=1:o?m=3:s&&(m=2);const v=o,b=a,y=s,_=l,w=c,x=u,C="object"===typeof self?self:"object"===typeof i?i:{},S=C,k=function(){if(S.setImmediate)return S.setImmediate.bind(S);if("function"===typeof S.postMessage&&!S.importScripts){let e=[];S.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),S.postMessage({vscodeSetImmediateId:i},"*")}}if("undefined"!==typeof e&&"function"===typeof e.nextTick)return e.nextTick.bind(e);const t=Promise.resolve();return e=>t.then(e)}(),O=a||u?2:o?1:3;let M=!0,D=!1;function E(){if(!D){D=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);M=513===t[0]}return M}}).call(this,n("2552"),n("c8ed"))},"1e33":function(e,t,n){"use strict";t["a"]=[{title:"布局字段",list:[{type:"group",label:"分组",icon:"icon-group",display:!0,arrow:!1,collapse:!0,children:{column:[]}},{type:"dynamic",label:"子表单",icon:"icon-table",span:24,display:!0,children:{align:"center",headerAlign:"center",index:!1,addBtn:!0,delBtn:!0,column:[]}},{type:"title",icon:"icon-title",span:24,display:!0,styles:{fontSize:"18px",color:"#000"},label:"标题",labelWidth:"0px",value:"标题"}]},{title:"输入字段",list:[{type:"input",label:"单行文本",icon:"icon-input",span:24,display:!0},{type:"password",label:"密码",icon:"icon-password",span:24,display:!0},{type:"textarea",label:"多行文本",icon:"icon-textarea",span:24,display:!0},{type:"number",label:"计数器",icon:"icon-number",controls:!0,span:24,display:!0},{type:"url",label:"超链接",icon:"icon-url",span:24,display:!0},{type:"array",label:"数组",icon:"icon-array",span:24,display:!0},{type:"img",label:"图片",icon:"icon-img",span:24,display:!0},{type:"map",component:"avue-input-map",label:"地图选择器",icon:"icon-map",span:24,display:!0}]},{title:"选择字段",list:[{type:"radio",label:"单选框组",icon:"icon-radio",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"checkbox",label:"多选框组",icon:"icon-checkbox",dicData:[{label:"选项一",value:"0"},{label:"选项二",value:"1"},{label:"选项三",value:"2"}],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"select",label:"下拉选择器",icon:"icon-select",dicData:[{label:"选项一",value:0},{label:"选项二",value:1},{label:"选项三",value:2}],cascaderItem:[],span:24,display:!0,dicOption:"static",props:{label:"label",value:"value"}},{type:"cascader",label:"级联选择器",icon:"icon-link",span:24,display:!0,dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:11},{label:"选项1-2",value:12}]},{label:"选项二",value:1},{label:"选项三",value:2}],cascaderIndex:1,showAllLevels:!0,dicOption:"static",separator:"/",props:{label:"label",value:"value"}},{type:"tree",label:"树形选择器",icon:"icon-tree",span:24,display:!0,dicOption:"static",dicData:[{label:"选项一",value:0,children:[{label:"选项1-1",value:11},{label:"选项1-2",value:12}]},{label:"选项二",value:1},{label:"选项三",value:2}],parent:!0,props:{label:"label",value:"value"}}]},{title:"上传字段",list:[{type:"upload",label:"上传",icon:"icon-upload",span:24,display:!0,showFileList:!0,multiple:!0,limit:10,propsHttp:{},canvasOption:{},headersConfig:[],dataConfig:[]}]},{title:"日期时间字段",list:[{type:"year",label:"年",icon:"icon-year",span:24,display:!0,format:"yyyy",valueFormat:"yyyy"},{type:"month",label:"月",icon:"icon-month",span:24,display:!0,format:"MM",valueFormat:"MM"},{type:"week",label:"周",icon:"icon-week",span:24,display:!0,format:"yyyy 第 WW 周"},{type:"date",label:"日期",icon:"icon-date",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"time",label:"时间",icon:"icon-time",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetime",label:"日期时间",icon:"icon-datetime",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"},{type:"daterange",label:"日期范围",icon:"icon-date-range",span:24,display:!0,format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd"},{type:"timerange",label:"时间范围",icon:"icon-time-range",span:24,display:!0,format:"HH:mm:ss",valueFormat:"HH:mm:ss"},{type:"datetimerange",label:"日期时间范围",icon:"icon-datetime-range",span:24,display:!0,format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss"}]},{title:"插件字段(富文本需要单独引入)",list:[{title:"日历",component:"elCalendar",labelWidth:"40",icon:"icon-map",span:24,params:{}},{type:"ueditor",component:"avue-ueditor",label:"富文本",icon:"icon-richtext",span:24,display:!0,options:{action:"",oss:"",props:{},ali:{},qiniu:{}}}]},{title:"其他字段",list:[{type:"icon",label:"图标",component:"avue-input-icon",icon:"icon-icon",span:24,display:!0,params:{iconList:[{label:"基本图标",list:["el-icon-info","el-icon-error","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]},{label:"方向图标",list:["el-icon-info","el-icon-back","el-icon-arrow-left","el-icon-arrow-down","el-icon-arrow-right","el-icon-arrow-up"]},{label:"符号图标",list:["el-icon-plus","el-icon-minus","el-icon-close","el-icon-check"]}]}},{type:"switch",label:"开关",icon:"icon-switch",span:24,display:!0,value:0,dicData:[{label:"",value:"0"},{label:"",value:"1"}]},{type:"rate",label:"评价",icon:"icon-star",span:24,display:!0,max:5,value:0,texts:["极差","失望","一般","满意","惊喜"],colors:["#99A9BF","#F7BA2A","#FF9900"]},{type:"slider",label:"滑块",icon:"icon-slider",span:24,display:!0,min:0,max:10},{type:"color",label:"颜色选择器",icon:"icon-color",span:24,display:!0}]}]},"1eca":function(e,t,n){e.exports=n.p+"fonts/codicon.22349029.ttf"},"1f2d":function(e,t,n){var i=n("6cd1");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("156943b0",i,!0,{sourceMap:!1,shadowMode:!1})},"1ffd":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}",""]),e.exports=t},2273:function(e,t,n){var i=n("6043");e.exports=i("navigator","userAgent")||""},2444:function(e,t,n){var i=n("db65");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("98b53788",i,!0,{sourceMap:!1,shadowMode:!1})},2552:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("e3f4")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},2717:function(e,t,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||a.exec(f.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===l)return d[h];if(l===u&&d[h].innerHTML&&d[h].innerHTML.trim()===r)return d[h]}return null}}return e}))},2790:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("9bf1"),core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_slice__WEBPACK_IMPORTED_MODULE_0__),_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("863c"),_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("826e");__webpack_exports__["a"]={data:function(){return{historySteps:{index:0,maxStep:20,steps:[],storage:!1}}},watch:{historySteps:{handler:function(e){e.storage?localStorage.setItem("avue-form-history",Object(_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_2__["a"])(e)):localStorage.removeItem("avue-form-history")},deep:!0}},methods:{initHistory:function initHistory(data){if(data.storage){var history=localStorage.getItem("avue-form-history");if(history){this.historySteps=eval("("+history+")");var _this$historySteps=this.historySteps,_index=_this$historySteps.index,_steps=_this$historySteps.steps;return this.deepClone(_steps[_index])}}this.historySteps=Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["a"])(Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_1__["a"])({},this.historySteps),data);var _this$historySteps2=this.historySteps,index=_this$historySteps2.index,steps=_this$historySteps2.steps;return this.deepClone(steps[index])},handleHistoryChange:function(e){this.historySteps.index==this.historySteps.maxStep-1?this.historySteps.steps.shift():this.historySteps.index++,this.historySteps.steps[this.historySteps.index]=this.deepClone(e),this.historySteps.index<this.historySteps.steps.length-1&&(this.historySteps.steps=this.historySteps.steps.slice(0,this.historySteps.index+1))},handleUndo:function(){return 0!=this.historySteps.index&&this.historySteps.index--,this.deepClone(this.historySteps.steps[this.historySteps.index])},handleRedo:function(){return this.historySteps.index!=this.historySteps.steps.length-1&&this.historySteps.index++,this.deepClone(this.historySteps.steps[this.historySteps.index])}}}},"294d":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover .minimap-slider.active,.monaco-editor .minimap.slider-mouseover:hover .minimap-slider{opacity:1}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}",""]),e.exports=t},"2adc":function(e,t,n){var i=n("006c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("4be37e8e",i,!0,{sourceMap:!1,shadowMode:!1})},"2c21":function(e,t,n){var i,r,o=n("e244"),a=n("2273"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"2c50":function(e,t,n){"use strict";var i=n("83ec"),r=n("b4fd"),o=n("45ad"),a=n("3d1a"),s=[].join,l=r!=Object,c=a("join",",");i({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},"2c69":function(e,t,n){var i=n("83ec"),r=n("55ab"),o=n("c1ca"),a=n("45ad"),s=n("42b1"),l=n("acd4");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=a(e),r=s.f,c=o(i),u={},d=0;while(c.length>d)n=r(i,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},"2cdc":function(e,t,n){var i=n("eee7");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"2eb0":function(e,t,n){"use strict";var i=n("83ec"),r=n("6e1d");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},"2f62":function(e,t,n){"use strict";var i=n("83ec"),r=n("f226").includes,o=n("6e10"),a=n("9f1e"),s=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"2f6c":function(e,t,n){var i=n("e244"),r=n("72c7"),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},3073:function(e,t,n){var i=n("fbcf"),r=n("eee7"),o=n("fc01");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},"312a":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-keybinding{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border:1px solid hsla(0,0%,80%,.4);border-bottom-color:hsla(0,0%,73.3%,.4);border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 hsla(0,0%,73.3%,.4);box-shadow:inset 0 -1px 0 hsla(0,0%,73.3%,.4);background-color:hsla(0,0%,86.7%,.4);vertical-align:middle;color:#555;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.hc-black .monaco-keybinding>.monaco-keybinding-key,.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:hsla(0,0%,50.2%,.17);color:#ccc;border:1px solid rgba(51,51,51,.6);border-bottom-color:rgba(68,68,68,.6);-webkit-box-shadow:inset 0 -1px 0 rgba(68,68,68,.6);box-shadow:inset 0 -1px 0 rgba(68,68,68,.6)}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}",""]),e.exports=t},"325d":function(e,t,n){"use strict";var i=n("83ec"),r=n("e0e0"),o=n("a7f7"),a=n("13a8"),s=n("63ef"),l=n("69f1"),c=n("7d86"),u=n("1810"),d=n("f0db"),h=n("d85b"),f=n("15b2"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",y="entries",_=function(){return this};e.exports=function(e,t,n,u,f,w,x){r(n,t,u);var C,S,k,O=function(e){if(e===f&&L)return L;if(!g&&e in E)return E[e];switch(e){case v:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",D=!1,E=e.prototype,T=E[m]||E["@@iterator"]||f&&E[f],L=!g&&T||O(f),I="Array"==t&&E.entries||T;if(I&&(C=o(I.call(new e)),p!==Object.prototype&&C.next&&(d||o(C)===p||(a?a(C,p):"function"!=typeof C[m]&&l(C,m,_)),s(C,M,!0,!0),d&&(h[M]=_))),f==b&&T&&T.name!==b&&(D=!0,L=function(){return T.call(this)}),d&&!x||E[m]===L||l(E,m,L),h[t]=L,f)if(S={values:O(b),keys:w?L:O(v),entries:O(y)},x)for(k in S)(g||D||!(k in E))&&c(E,k,S[k]);else i({target:t,proto:!0,forced:g||D},S);return S}},3352:function(e,t,n){var i=n("80db"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},3395:function(e,t,n){var i=n("0874"),r=n("d554"),o="["+r+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},"358f":function(e,t,n){var i=n("5124");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("13719944",i,!0,{sourceMap:!1,shadowMode:!1})},"35d6":function(e,t,n){var i,r,o,a=n("17be"),s=n("e244"),l=n("eee7"),c=n("69f1"),u=n("fe32"),d=n("2f6c"),h=n("5350"),f=n("fd3f"),p=s.WeakMap,g=function(e){return o(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=d.state||(d.state=new p),b=v.get,y=v.has,_=v.set;i=function(e,t){return t.facade=e,_.call(v,e,t),t},r=function(e){return b.call(v,e)||{}},o=function(e){return y.call(v,e)}}else{var w=h("state");f[w]=!0,i=function(e,t){return t.facade=e,c(e,w,t),t},r=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:i,get:r,has:o,enforce:g,getterFor:m}},"36df":function(e,t,n){var i=n("294d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("3e355ff7",i,!0,{sourceMap:!1,shadowMode:!1})},"370b":function(e,t,n){"use strict";var i=n("8aa3").forEach,r=n("3d1a"),o=n("9f1e"),a=r("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"37fd":function(e,t,n){"use strict";var i=n("83ec"),r=n("8aa3").filter,o=n("72d4"),a=n("9f1e"),s=o("filter"),l=a("filter");i({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"396d":function(e,t,n){var i=n("fe32"),r=n("45ad"),o=n("f226").indexOf,a=n("fd3f");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"3a5d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUMAAADXCAYAAACAszPmAAAAAXNSR0IArs4c6QAADXRJREFUeAHt3cuLZGcZB+BvLk2PM0ZxFMdJXEQCYRIialrUmPgXuM0qkI3GnVl4ScBtUEFFXOhCEBQ3oiDi36BGkWQ0gpgIZgK59EhIxhBn0nMfz+nqwq6e6upT019933vqPAVxuuty3vc8b/fPU3UufWB9ff1GciNAgMDABQ6363/y5MmBM8y3+mfPnmU2H5lnEwgt0P5OHwzdoeYIECBQSEAYFoJWhgCB2ALCMPZ8dEeAQCEBYVgIWhkCBGILCMPY89EdAQKFBIRhIWhlCBCILbB5aE3sFnVHgEAtgfaQk0Xddh7St6haO+vstj4zw/DPr26knz/3dnrr4vXN199/cjV9/cHjm19/9w/n0nP/vjSx3I9/aDU9+VA/Hv/e0+fSX89O9v/J21fTVz876n9ixeb4ZlEDnaOFqU/t+gMx9cXuJDAAgZlvk3/6l/8HYWtx9frynKxy/vIo4LfP+Nn1S+nbv3tz+12+JkBgIAIH2tPxdttqeOTXo03kb306pZUmNg/NjM5+ibW5/s7VyZ6feiala839v3h49hk57dbfbma2DCdNfddvgUX+PO/8HVpUrZ11pk2krT3zbfL4RW0ILlMQtut18EBK714Zr6F/CRAYusDMMPxE8xnhlWZTaeXg5aE7WX8CBJZcYGYYPrG1s2RRm69Lbmv1CBDokcDMMOzRemRp9f7bj6RrS7STKAuKhRAYiMDMMGwPn2lvj941DI2vPPC+YayotSRA4CaBmfuH2+MIdx5LeNMS3EGAAIElEJi5ZbgE6zfXKoy3hMcHjs/14q0nd9mNfyvL9RoCBBYrIAy3+doK3obhSwIDE5j5NnlgFlaXAIEBC8zcMmzPNR7dJs/hjer13Bsp/fZMSv+9Murw3mZ/yBfvHX39k3+k9MJ/Jju/p3n8sW2Pjx8dn3kz+1zrs2n24ynr49POpX7gw0fS45+x02c8N//mFyj5sU/JWtOkZobh+LOzvhxn+JsXU7qw7RS79tS6Zbmdv3TzudR/evViOv/7N9M3Pvf+ZVlN60GgmsDMc5PHXfUlDL/29Kjjpz6V0pFDy3UK4bRzqb/5bEpXmozc61zq8Rz9S4DAdIE9z03+TnOc4eHmU8VHPjJ9AVHvPdScd+xc6qjT0ReBmAIzd6D8rT3OcMc1/2Kuxqir9jPCu97TbBXOfPMfeQ30RoBALYGlio3xzpJamOoSINBfgZlh+MFjh9LrF66lJ/84WsGPNXuX+3Cl6758xrnfH5v2XOrLy7SXaL8gXk9gHwIzw/Cx+9+bfvzsW+ncxmhPZvTfuxfPXUntWSRDOZf6oZXmOKLmmowvvPB6uuOOOzZ/DF577bV04cKFiR+JY8eOeZzPIH4+XnnllbSxsTHx87+2tjbx/W7fzAzD+06sph99/sTU144Pu5n6YHNnjcfb4wPbs0iGEoa72bufwFAFVlZW0tWro+PrrlzZOuC4I0anQ2s6Lqv608YHS3//weqtFGngZ/9sjh9qbo+vvatIPUUI9EngpZdeSm0gdtky3PPQmj6t+BB7/fsb14a42taZQCeBo0ePpsuXu1+lf+bb5HHFoeyQGK+vfwkQ6L/AiRPTP+Lbbc06heFuL452/ymn6UYbiX4I9EZgqcLwS1sXXeiNvkYJEFiYQHtkRXs7depUpxpLFYad1niJnnTfBw6l5sxDNwIEpgjsPMRsylMm7lqqMGwv09XehrKFaC/yaN7+l0AOgaUKw53XK8wBZBkECAxDYOaFGoZB0N+1/MEzG6n9z40Agf0LLNWW4fHmwtznmotyP7F1LnV7Jesv3DNC6nKl651blvu9kvVHm8/0vrx1QPQPT2+knccFzvP4r56/lJ5/c9uVa5vVOtucN378iE8N9/9rYAnLKNCehjrPbanC8OHm7zv/8l8pvb11nGXtc6kvXrzYzCLP2SHr56834Td56e4TRw+kR+87Ms+8PZfAYATG5+t3XeFOp+MN5aDrrn+DofXY67mnT5/enMHdd9/ddRaeR4DAAgRuu+22PZfa/k77zHBPJk8gQKCPAu1xhuNjDbv0v1Rvk7ussOcQIDAMgXmPM7RlOIyfC2tJgMAeArYM9wC61Yfn3ZN1q3W8jgCBPALCMI/jTUuZd0/WTQtwBwECRQWEYVFuxQgQKCUw77szYbigyYz3YtlCXBCwxRLYQ2De3z1huAforT48756sW63jdQQI5BHoFIZ7HWCcpxVLIUCAQD6B8bsz1zPMZ2pJBAj0UGDed2eOM+zhkLVMgEB+gU5vk/OXXf4lzrsna/lFrCGB2ALCcEHzmXdP1oLasFgCBDoKCMOOUJ5GgEC/BOZ9d9YpDF3Ca/4fgjNnzqTV1dXNS30dPOij2fkFvYLA/gTmfXfWKQz319IwX339+vXU7s16+eWX05133rmJ0O7q37mHq/1/r/HQPM7Hz8eFicCY5/djfX39pt+vGzdupLW1tYll7vaNMNxNJtP9KysrmZZkMQQIzBJog6/9b/vt8OHuEedK19vkuh5c3uVK19sW60sCBIILuNJ18AFpjwCBcgI+2S9nrRIBAoEFhGHg4WiNAIFyAsKwnLVKBAgEFhCGgYejNQIEygkIw3LWKhEgEFhAGAYejtYIECgnIAzLWatEgEBgAWEYeDhaI0CgnIAwLGetEgECgQWEYeDhaI0AgXICnc5i7nrObrm2VSJAgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPF30DJi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDyBThd39dfx4g1ORwQI5BWwZZjX09IIEOipgDDs6eC0TYBAXgFhmNfT0ggQ6KmAMOzp4LRNgEBegU47UPx1vLzolkaAQDwBW4bxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCAgDCugK0mAQDwBYRhvJjoiQKCCgDCsgK4kAQLxBIRhvJnoiACBCgLCsAK6kgQIxBMQhvFmoiMCBCoICMMK6EoSIBBPQBjGm4mOCBCoICAMK6ArSYBAPAFhGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEE+h0cVd/HS/e4HREgEBeAVuGeT0tjQCBngoIw54OTtsECOQVEIZ5PS2NAIGeCgjDng5O2wQI5BXotAPFX8fLi25pBAjEE7BlGG8mOiJAoIKAMKyAriQBAvEEhGG8meiIAIEKAsKwArqSBAjEExCG8WaiIwIEKggIwwroShIgEE9AGMabiY4IEKggIAwroCtJgEA8AWEYbyY6IkCggoAwrICuJAEC8QSEYbyZ6IgAgQoCwrACupIECMQTEIbxZqIjAgQqCAjDCuhKEiAQT0AYxpuJjggQqCDQ6XqG/iBUhckoSYBAUQFbhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogp02pvsr+NFHZ++CBDIJWDLMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAsIwl6TlECDQawFh2OvxaZ4AgVwCwjCXpOUQINBrAWHY6/FpngCBXALCMJek5RAg0GsBYdjr8WmeAIFcAp0u4eUPQuXithwCBKIK2DKMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBUQBgW5VaMAIGoAsIw6mT0RYBAUQFhWJRbMQIEogoIw6iT0RcBAkUFhGFRbsUIEIgqIAyjTkZfBAgUFRCGRbkVI0AgqoAwjDoZfREgUFRAGBblVowAgagCwjDqZPRFgEBRAWFYlFsxAgSiCgjDqJPRFwECRQWEYVFuxQgQiCogDKNORl8ECBQVEIZFuRUjQCCqgDCMOhl9ESBQVEAYFuVWjACBqALCMOpk9EWAQFEBYViUWzECBKIKCMOok9EXAQJFBYRhUW7FCBCIKiAMo05GXwQIFBUQhkW5FSNAIKqAMIw6GX0RIFBU4H8RUTV123y9kQAAAABJRU5ErkJggg=="},"3c82":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px}",""]),e.exports=t},"3d1a":function(e,t,n){"use strict";var i=n("ac97");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},"3e1a":function(e,t,n){var i=n("396d"),r=n("e629");e.exports=Object.keys||function(e){return i(e,r)}},"3ef6":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=g;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=c(e),a=i[0],s=i[1],l=new o(d(e,a,s)),u=0,h=s>0?a-4:a;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(f(i));return r.join("")}function g(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,l=n-r;s<l;s+=a)o.push(p(e,s,s+a>l?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"3f13":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .margin-view-overlays .current-line,.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}",""]),e.exports=t},"3fa4":function(e,t,n){"use strict";function i(e){return!e||"string"!==typeof e||0===e.trim().length}n.d(t,"B",(function(){return i})),n.d(t,"v",(function(){return o})),n.d(t,"s",(function(){return a})),n.d(t,"t",(function(){return s})),n.d(t,"I",(function(){return l})),n.d(t,"N",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"P",(function(){return d})),n.d(t,"q",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"M",(function(){return p})),n.d(t,"L",(function(){return g})),n.d(t,"u",(function(){return m})),n.d(t,"x",(function(){return v})),n.d(t,"H",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"F",(function(){return x})),n.d(t,"G",(function(){return C})),n.d(t,"r",(function(){return k})),n.d(t,"Q",(function(){return M})),n.d(t,"d",(function(){return D})),n.d(t,"e",(function(){return E})),n.d(t,"D",(function(){return T})),n.d(t,"E",(function(){return L})),n.d(t,"i",(function(){return I})),n.d(t,"y",(function(){return A})),n.d(t,"J",(function(){return P})),n.d(t,"K",(function(){return R})),n.d(t,"p",(function(){return F})),n.d(t,"l",(function(){return B})),n.d(t,"j",(function(){return V})),n.d(t,"z",(function(){return W})),n.d(t,"a",(function(){return H})),n.d(t,"m",(function(){return U})),n.d(t,"k",(function(){return q})),n.d(t,"C",(function(){return G})),n.d(t,"A",(function(){return K})),n.d(t,"b",(function(){return Y})),n.d(t,"R",(function(){return X})),n.d(t,"O",(function(){return Z})),n.d(t,"w",(function(){return Q})),n.d(t,"c",(function(){return J}));const r=/{(\d+)}/g;function o(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function a(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}}))}function s(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;while(e.indexOf(t,i)===i)i+=n;return e.substring(i)}function c(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;while(1){if(o=e.lastIndexOf(t,r-1),-1===o||o+n!==r)break;if(0===o)return"";r=o}return e.substring(0,r)}function u(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function h(e,t){const n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function f(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=s(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;const t=e.exec("");return!(!t||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function v(e,t=0,n=e.length){for(let i=t;i<n;i++){const n=e.charCodeAt(i);if(32!==n&&9!==n)return e.substring(t,i)}return e.substring(t,n)}function b(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function y(e,t){return e<t?-1:e>t?1:0}function _(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(i<o)return-1;if(i>o)return 1}const a=i-n,s=o-r;return a<s?-1:a>s?1:0}function w(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let a=e.charCodeAt(n),s=t.charCodeAt(r);if(a===s)continue;const l=a-s;if((32!==l||!C(s))&&(-32!==l||!C(a)))return x(a)&&x(s)?l:_(e.toLowerCase(),t.toLowerCase(),n,i,r,o)}const a=i-n,s=o-r;return a<s?-1:a>s?1:0}function x(e){return e>=97&&e<=122}function C(e){return e>=65&&e<=90}function S(e){return x(e)||C(e)}function k(e,t){return e.length===t.length&&O(e,t)}function O(e,t,n=e.length){for(let i=0;i<n;i++){const n=e.charCodeAt(i),r=t.charCodeAt(i);if(n!==r)if(S(n)&&S(r)){const e=Math.abs(n-r);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function M(e,t){const n=t.length;return!(t.length>e.length)&&O(e,t,n)}function D(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function E(e,t){let n,i=Math.min(e.length,t.length);const r=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(o-n))return n;return i}function T(e){return 55296<=e&&e<=56319}function L(e){return 56320<=e&&e<=57343}function I(e,t){return t-56320+(e-55296<<10)+65536}function A(e,t,n){const i=e.charCodeAt(n);if(T(i)&&n+1<t){const t=e.charCodeAt(n+1);if(L(t))return I(i,t)}return i}function N(e,t){const n=e.charCodeAt(t-1);if(L(n)&&t>1){const i=e.charCodeAt(t-2);if(T(i))return I(i,n)}return n}function P(e,t){const n=ee.getInstance(),i=t,r=e.length,o=A(e,r,t);t+=o>=65536?2:1;let a=n.getGraphemeBreakType(o);while(t<r){const i=A(e,r,t),o=n.getGraphemeBreakType(i);if(J(a,o))break;t+=i>=65536?2:1,a=o}return t-i}function R(e,t){const n=ee.getInstance(),i=t,r=N(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);while(t>0){const i=N(e,t),r=n.getGraphemeBreakType(i);if(J(r,o))break;t-=i>=65536?2:1,o=r}return i-t}function F(e){const t=e.byteLength,n=[];let i=0;while(i<t){const r=e[i];let o;if(o=r>=240&&i+3<t?(7&e[i++])<<18>>>0|(63&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=224&&i+2<t?(15&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=192&&i+1<t?(31&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:e[i++],o>=0&&o<=55295||o>=57344&&o<=65535)n.push(String.fromCharCode(o));else if(o>=65536&&o<=1114111){const e=o-65536,t=55296+((1047552&e)>>>10),i=56320+((1023&e)>>>0);n.push(String.fromCharCode(t)),n.push(String.fromCharCode(i))}else n.push(String.fromCharCode(65533))}return n.join("")}const j=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function B(e){return j.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function V(e){return z.test(e)}const $=/^[\t\n\r\x20-\x7E]*$/;function W(e){return $.test(e)}const H=/[\u2028\u2029]/;function U(e){return H.test(e)}function q(e){for(let t=0,n=e.length;t<n;t++)if(G(e.charCodeAt(t)))return!0;return!1}function G(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function K(e){return e>=127462&&e<=127487||e>=9728&&e<=10175||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129651||e>=129656&&e<=129666||e>=129680&&e<=129685}const Y=String.fromCharCode(65279);function X(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function Z(e){const t=26;return e%=2*t,e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function Q(e){const t=ee.getInstance();return t.getGraphemeBreakType(e)}function J(e,t){return 0===e?5!==t&&7!==t:(2!==e||3!==t)&&(4===e||2===e||3===e||4===t||2===t||3===t||(8!==e||8!==t&&9!==t&&11!==t&&12!==t)&&(11!==e&&9!==e||9!==t&&10!==t)&&(12!==e&&10!==e||10!==t)&&5!==t&&13!==t&&7!==t&&1!==e&&(13!==e||14!==t)&&(6!==e||6!==t))}class ee{constructor(){this._data=te()}static getInstance(){return ee._INSTANCE||(ee._INSTANCE=new ee),ee._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;while(i<=n)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function te(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}ee._INSTANCE=null},"407e":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-tl-row{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;border-left:1px solid transparent;-webkit-transition:border-color .1s linear;transition:border-color .1s linear}.monaco-tl-contents,.monaco-tl-twistie{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;-ms-flex-negative:0;flex-shrink:0;width:16px;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:inherit!important;-webkit-transform:translateX(3px);transform:translateX(3px)}.monaco-tl-contents{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden}.monaco-tl-twistie.collapsed:before{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{-webkit-animation:codicon-spin 1.25s steps(30) infinite;animation:codicon-spin 1.25s steps(30) infinite}",""]),e.exports=t},"40cd":function(e,t,n){var i=n("6baf");i("iterator")},"42b1":function(e,t,n){var i=n("55ab"),r=n("11b0"),o=n("4d82"),a=n("45ad"),s=n("7f82"),l=n("fe32"),c=n("bf6f"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},4467:function(e,t,n){var i=n("ac97");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},"45ad":function(e,t,n){var i=n("b4fd"),r=n("0874");e.exports=function(e){return i(r(e))}},4792:function(e,t,n){"use strict";var i=n("9b09"),r=n.n(i);r.a},4974:function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},r=0;r<t.length;r++){var o=t[r],a=o[0],s=o[1],l=o[2],c=o[3],u={id:e+":"+r,css:s,media:l,sourceMap:c};i[a]?i[a].parts.push(u):n.push(i[a]={id:a,parts:[u]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var r="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,r){c=n,d=r||{};var a=i(e,t);return g(a),function(t){for(var n=[],r=0;r<a.length;r++){var s=a[r],l=o[s.id];l.refs--,n.push(l)}for(t?(a=i(e,t),g(a)):a=[],r=0;r<n.length;r++)if(l=n[r],0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(r=0;r<n.parts.length;r++)a.push(v(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,i=document.querySelector("style["+h+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var r=l++;i=s||(s=m()),t=y.bind(null,i,r,!1),n=y.bind(null,i,r,!0)}else i=m(),t=_.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function _(e,t){var n=t.css,i=t.media,r=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(h,t.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4ad5":function(e,t,n){var i=n("2273");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(i)},"4cdd":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-action-bar{text-align:right;white-space:nowrap}.monaco-action-bar .actions-container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 auto;padding:0;width:100%;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar.reverse .actions-container{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.monaco-action-bar .action-item{cursor:pointer;display:inline-block;-webkit-transition:-webkit-transform 50ms ease;transition:-webkit-transform 50ms ease;transition:transform 50ms ease;transition:transform 50ms ease,-webkit-transform 50ms ease;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar.animated .action-item.active{-webkit-transform:scale(1.272019649);transform:scale(1.272019649)}.monaco-action-bar .action-item .codicon,.monaco-action-bar .action-item .icon{display:inline-block}.monaco-action-bar .action-item .codicon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.monaco-action-bar .action-label{font-size:11px;margin-right:4px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar.animated.vertical .action-item.active{-webkit-transform:translate(5px);transform:translate(5px)}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;-webkit-box-flex:1;-ms-flex:1;flex:1;max-width:170px;min-width:60px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:10px}",""]),e.exports=t},"4d82":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4e70":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,"::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}",""]),e.exports=t},"4eaf":function(e,t,n){var i=n("80db"),r=n("0874"),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},"4fe1":function(e,t,n){var i=n("e244");e.exports=function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},5069:function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var i=window.document.currentScript,r=n("2717");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("84f7"),n("8d60");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"标题宽度"}},[n("el-input",{attrs:{placeholder:"标题宽度"},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),e._v(" 自定义属性 "),n("monaco-editor",{attrs:{height:"300",keyIndex:e.data.prop,options:e.options},model:{value:e.params,callback:function(t){e.params=t},expression:"params"}}),e._v(" 自定义事件 "),n("monaco-editor",{attrs:{height:"300",keyIndex:e.data.prop,options:e.options},model:{value:e.event,callback:function(t){e.event=t},expression:"event"}}),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1)],1)},s=[],l=n("c293"),c=l["a"],u=n("e3d4"),d=Object(u["a"])(c,a,s,!1,null,null,null),h=d.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"前缀"}},[n("el-input",{attrs:{placeholder:"前缀"},model:{value:e.data.prepend,callback:function(t){e.$set(e.data,"prepend",t)},expression:"data.prepend"}})],1),n("el-form-item",{attrs:{label:"后缀"}},[n("el-input",{attrs:{placeholder:"后缀"},model:{value:e.data.append,callback:function(t){e.$set(e.data,"append",t)},expression:"data.append"}})],1),n("el-form-item",{attrs:{label:"最大长度"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:e.data.maxlength,callback:function(t){e.$set(e.data,"maxlength",t)},expression:"data.maxlength"}})],1),"password"!=e.data.type?n("el-form-item",{attrs:{label:"显示计数"}},[n("el-switch",{model:{value:e.data.showWordLimit,callback:function(t){e.$set(e.data,"showWordLimit",t)},expression:"data.showWordLimit"}})],1):e._e(),"password"==e.data.type?n("el-form-item",{attrs:{label:"显示密码"}},[n("el-switch",{model:{value:e.data.showPassword,callback:function(t){e.$set(e.data,"showPassword",t)},expression:"data.showPassword"}})],1):e._e(),n("el-form-item",{attrs:{label:"是否只读"}},[n("el-switch",{model:{value:e.data.readonly,callback:function(t){e.$set(e.data,"readonly",t)},expression:"data.readonly"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"校验"}},[n("br"),e._v(" 是否必填: "),n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}}),n("el-input",{attrs:{placeholder:"正则表达式"},model:{value:e.data.pattern,callback:function(t){e.$set(e.data,"pattern",t)},expression:"data.pattern"}})],1)],1)},p=[],g=(n("eb46"),n("ef61"),n("f54f"),n("2eb0"),n("f05e"),n("f96e"),{name:"config-input",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()},"data.pattern":function(e){this.validator.pattern=e?{pattern:new RegExp(e),message:"".concat(this.data.label,"格式不匹配")}:null,this.generateRule()}}}),m=g,v=Object(u["a"])(m,f,p,!1,null,null,null),b=v.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"最大长度"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大长度"},model:{value:e.data.maxlength,callback:function(t){e.$set(e.data,"maxlength",t)},expression:"data.maxlength"}})],1),n("el-form-item",{attrs:{label:"显示计数"}},[n("el-switch",{model:{value:e.data.showWordLimit,callback:function(t){e.$set(e.data,"showWordLimit",t)},expression:"data.showWordLimit"}})],1),n("el-form-item",{attrs:{label:"最小行"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最小行",min:1},model:{value:e.data.minRows,callback:function(t){e.$set(e.data,"minRows",t)},expression:"data.minRows"}})],1),n("el-form-item",{attrs:{label:"最大行"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大行",min:2},model:{value:e.data.maxRows,callback:function(t){e.$set(e.data,"maxRows",t)},expression:"data.maxRows"}})],1),n("el-form-item",{attrs:{label:"是否只读"}},[n("el-switch",{model:{value:e.data.readonly,callback:function(t){e.$set(e.data,"readonly",t)},expression:"data.readonly"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"校验"}},[n("br"),e._v(" 是否必填: "),n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}}),n("el-input",{attrs:{placeholder:"正则表达式"},model:{value:e.data.pattern,callback:function(t){e.$set(e.data,"pattern",t)},expression:"data.pattern"}})],1)],1)},_=[],w={name:"config-textarea",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()},"data.pattern":function(e){this.validator.pattern=e?{pattern:new RegExp(e),message:"".concat(this.data.label,"格式不匹配")}:null,this.generateRule()}}},x=w,C=Object(u["a"])(x,y,_,!1,null,null,null),S=C.exports,k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"最小值"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最小值"},model:{value:e.data.minRows,callback:function(t){e.$set(e.data,"minRows",t)},expression:"data.minRows"}})],1),n("el-form-item",{attrs:{label:"最大值"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大值"},model:{value:e.data.maxRows,callback:function(t){e.$set(e.data,"maxRows",t)},expression:"data.maxRows"}})],1),n("el-form-item",{attrs:{label:"步长"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"步长"},model:{value:e.data.step,callback:function(t){e.$set(e.data,"step",t)},expression:"data.step"}})],1),n("el-form-item",{attrs:{label:"数值精度"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"数值精度",min:0,max:10},model:{value:e.data.precision,callback:function(t){e.$set(e.data,"precision",t)},expression:"data.precision"}})],1),n("el-form-item",{attrs:{label:"开启控制器"}},[n("el-switch",{model:{value:e.data.controls,callback:function(t){e.$set(e.data,"controls",t)},expression:"data.controls"}})],1),e.data.controls?n("el-form-item",{attrs:{label:"控制器位置"}},[n("el-radio",{attrs:{label:""},model:{value:e.data.controlsPosition,callback:function(t){e.$set(e.data,"controlsPosition",t)},expression:"data.controlsPosition"}},[e._v("默认 ")]),n("el-radio",{attrs:{label:"right"},model:{value:e.data.controlsPosition,callback:function(t){e.$set(e.data,"controlsPosition",t)},expression:"data.controlsPosition"}},[e._v("右 ")])],1):e._e(),n("el-form-item",{attrs:{label:"是否只读"}},[n("el-switch",{model:{value:e.data.readonly,callback:function(t){e.$set(e.data,"readonly",t)},expression:"data.readonly"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"校验"}},[n("br"),e._v(" 是否必填: "),n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}}),n("el-input",{attrs:{placeholder:"正则表达式"},model:{value:e.data.pattern,callback:function(t){e.$set(e.data,"pattern",t)},expression:"data.pattern"}})],1)],1)},O=[],M={name:"config-number",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()},"data.pattern":function(e){this.validator.pattern=e?{pattern:new RegExp(e),message:"".concat(this.data.label,"格式不匹配")}:null,this.generateRule()}}},D=M,E=Object(u["a"])(D,k,O,!1,null,null,null),T=E.exports,L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"对齐方式"}},[n("el-select",{attrs:{placeholder:"对齐方式"},model:{value:e.data.children.align,callback:function(t){e.$set(e.data.children,"align",t)},expression:"data.children.align"}},[n("el-option",{attrs:{label:"居左",value:"left"}}),n("el-option",{attrs:{label:"居中",value:"center"}}),n("el-option",{attrs:{label:"居右",value:"right"}})],1)],1),n("el-form-item",{attrs:{label:"头部对齐方式"}},[n("el-select",{attrs:{placeholder:"对齐方式"},model:{value:e.data.children.headerAlign,callback:function(t){e.$set(e.data.children,"headerAlign",t)},expression:"data.children.headerAlign"}},[n("el-option",{attrs:{label:"居左",value:"left"}}),n("el-option",{attrs:{label:"居中",value:"center"}}),n("el-option",{attrs:{label:"居右",value:"right"}})],1)],1),n("el-form-item",{attrs:{label:"表单格式"}},[n("el-select",{attrs:{placeholder:"表单格式"},model:{value:e.data.children.type,callback:function(t){e.$set(e.data.children,"type",t)},expression:"data.children.type"}},[n("el-option",{attrs:{label:"表格",value:""}}),n("el-option",{attrs:{label:"表单",value:"form"}})],1)],1),"form"==e.data.children.type?n("el-form-item",{attrs:{label:"序号"}},[n("el-switch",{model:{value:e.data.children.index,callback:function(t){e.$set(e.data.children,"index",t)},expression:"data.children.index"}})],1):e._e(),n("el-form-item",{attrs:{label:"添加按钮"}},[n("el-switch",{model:{value:e.data.children.addBtn,callback:function(t){e.$set(e.data.children,"addBtn",t)},expression:"data.children.addBtn"}})],1),n("el-form-item",{attrs:{label:"删除按钮"}},[n("el-switch",{model:{value:e.data.children.delBtn,callback:function(t){e.$set(e.data.children,"delBtn",t)},expression:"data.children.delBtn"}})],1),n("el-form-item",{attrs:{label:"是否只读"}},[n("el-switch",{model:{value:e.data.readonly,callback:function(t){e.$set(e.data,"readonly",t)},expression:"data.readonly"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1)],1)},I=[],A={name:"config-dynamic",props:["data"]},N=A,P=Object(u["a"])(N,L,I,!1,null,null,null),R=P.exports,F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"自定义"}},[n("el-button",{staticClass:"danger",attrs:{type:"text"},on:{click:e.handleDicClear}},[e._v("清空 ")]),e._l(e.data.dicData,(function(t,i){return n("div",{key:i,staticClass:"dic"},[n("el-input",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"自定义文字"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}),n("el-input",{attrs:{size:"mini",placeholder:"自定义值"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}})],1)}))],2),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1)],1)},j=[],B={name:"config-switch",props:["data"],methods:{handleDicClear:function(){this.data.dicData=[{label:"",value:"0"},{label:"",value:"1"}]}}},z=B,V=(n("fab5"),Object(u["a"])(z,F,j,!1,null,"727980f3",null)),$=V.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"最大星数"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大星数"},model:{value:e.data.max,callback:function(t){e.$set(e.data,"max",t)},expression:"data.max"}})],1),n("el-form-item",{attrs:{label:"是否显示文本"}},[n("el-switch",{model:{value:e.data.showText,callback:function(t){e.$set(e.data,"showText",t)},expression:"data.showText"}})],1),e.data.showText?n("el-form-item",{attrs:{label:"自定义文本"}},[e._l(e.data.texts,(function(t,i){return n("el-tag",{key:i,attrs:{closable:""},on:{close:function(n){return e.handleTextClose(t)}}},[e._v(e._s(t)+" ")])})),e.textVisible?n("el-input",{ref:"textTag",staticClass:"input-new-tag",attrs:{size:"mini"},on:{blur:e.handleTextConfirm},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleTextConfirm(t)}},model:{value:e.textValue,callback:function(t){e.textValue=t},expression:"textValue"}}):n("el-button",{staticStyle:{"margin-left":"5px"},attrs:{size:"mini",icon:"el-icon-plus",circle:""},on:{click:e.showTextInput}})],2):e._e(),n("el-form-item",{attrs:{label:"自定义颜色"}},[e._l(e.data.colors,(function(t,i){return n("el-tag",{key:i,style:{color:t},attrs:{closable:""},on:{close:function(n){return e.handleColorClose(t)}}},[e._v(e._s(t)+" ")])})),n("el-color-picker",{staticClass:"color-picker",attrs:{size:"mini"},on:{change:e.handleColorConfirm},model:{value:e.colorValue,callback:function(t){e.colorValue=t},expression:"colorValue"}})],2),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},H=[],U=(n("6edd"),n("d927"),{name:"config-rate",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null},textVisible:!1,textValue:"",colorVisible:!1,colorValue:"",iconVisible:!1,iconValue:""}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleTextClose:function(e){this.data.texts.splice(this.data.texts.indexOf(e),1)},showTextInput:function(){var e=this;this.textVisible=!0,this.$nextTick((function(){e.$refs.textTag.$refs.input.focus()}))},handleTextConfirm:function(){this.textValue&&this.data.texts.push(this.textValue),this.textVisible=!1,this.textValue=""},handleColorClose:function(e){this.data.colors.splice(this.data.colors.indexOf(e),1)},handleColorConfirm:function(){this.colorValue&&this.data.colors.push(this.colorValue),this.colorValue=""}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()}}}),q=U,G=(n("b1b6"),Object(u["a"])(q,W,H,!1,null,"ccc30782",null)),K=G.exports,Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"最小值"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最小值",max:e.data.max-1,min:0},model:{value:e.data.min,callback:function(t){e.$set(e.data,"min",t)},expression:"data.min"}})],1),n("el-form-item",{attrs:{label:"最大值"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"最大值",min:e.data.min+1},model:{value:e.data.max,callback:function(t){e.$set(e.data,"max",t)},expression:"data.max"}})],1),n("el-form-item",{attrs:{label:"步长"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"步长",min:1,max:e.data.max-e.data.min},model:{value:e.data.step,callback:function(t){e.$set(e.data,"step",t)},expression:"data.step"}})],1),n("el-form-item",{attrs:{label:"显示间隔点"}},[n("el-switch",{model:{value:e.data.showStops,callback:function(t){e.$set(e.data,"showStops",t)},expression:"data.showStops"}})],1),n("el-form-item",{attrs:{label:"显示输入框"}},[n("el-switch",{model:{value:e.data.showInput,callback:function(t){e.$set(e.data,"showInput",t)},expression:"data.showInput"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1)],1)},X=[],Z={name:"config-slider",props:["data"]},Q=Z,J=Object(u["a"])(Q,Y,X,!1,null,null,null),ee=J.exports,te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},ne=[],ie={name:"config-color",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()}}},re=ie,oe=Object(u["a"])(re,te,ne,!1,null,null,null),ae=oe.exports,se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"字典配置"}},[n("br"),n("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(t){e.$set(e.data,"dicOption",t)},expression:"data.dicOption"}},[n("el-tab-pane",{attrs:{label:"静态数据",name:"static"}},[n("draggable",{attrs:{tag:"ul",list:e.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.dicData,(function(t,i){return n("li",{key:i},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),n("el-input",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"label"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}),n("el-input",{attrs:{size:"mini",placeholder:"value"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}}),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleRemoveFields(i)}}})],1)})),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddFields}},[e._v("添加列 ")])],1)],1),n("el-tab-pane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),n("el-input",{attrs:{placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(t){e.$set(e.data,"dicUrl",t)},expression:"data.dicUrl"}}),e._v(" 请求方法 "),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(t){e.$set(e.data,"dicMethod",t)},expression:"data.dicMethod"}},[n("el-option",{attrs:{label:"POST",value:"post"}}),n("el-option",{attrs:{label:"GET",value:"get"}})],1),"post"==e.data.dicMethod?n("p",[e._v(" 请求参数 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(t){e.$set(e.data,"dicQueryConfig",t)},expression:"data.dicQueryConfig"}})],1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"字典key配置"}},[n("ul",e._l(e.data.props,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{width:"50px"}},[e._v(e._s(i))]),n("el-input",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[i],callback:function(t){e.$set(e.data.props,i,t)},expression:"data.props[key]"}})],1)})),0)]),"remote"==e.data.dicOption?n("el-form-item",{attrs:{label:"重新请求字典(crud)"}},[n("el-switch",{model:{value:e.data.dicFlag,callback:function(t){e.$set(e.data,"dicFlag",t)},expression:"data.dicFlag"}})],1):e._e(),n("el-form-item",{attrs:{label:"边框"}},[n("el-switch",{model:{value:e.data.border,callback:function(t){e.$set(e.data,"border",t)},expression:"data.border"}})],1),e.data.border?n("el-form-item",{attrs:{label:"尺寸"}},[n("el-radio-group",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[n("el-radio-button",{attrs:{label:"medium"}},[e._v("正常")]),n("el-radio-button",{attrs:{label:"small"}},[e._v("小")]),n("el-radio-button",{attrs:{label:"mini"}},[e._v("超小")])],1)],1):e._e(),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},le=[],ce=n("d958"),ue=n.n(ce),de={name:"config-radio",props:["data"],components:{Draggable:ue.a},data:function(){return{validator:{type:null,required:null,pattern:null,length:null},option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleRemoveFields:function(e){this.data.dicData.splice(e,1)},handleAddFields:function(){var e=Math.ceil(99999*Math.random());this.data.dicData.push({label:"字段".concat(e),value:"col_".concat(e)})},handleTabClick:function(e){var t=e.name;"remote"!=t||this.data.dicQueryConfig||(this.data.dicQueryConfig=[])}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请选择".concat(this.data.label)}:null,this.generateRule()}}},he=de,fe=Object(u["a"])(he,se,le,!1,null,null,null),pe=fe.exports,ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"字典配置"}},[n("br"),n("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(t){e.$set(e.data,"dicOption",t)},expression:"data.dicOption"}},[n("el-tab-pane",{attrs:{label:"静态数据",name:"static"}},[n("draggable",{attrs:{tag:"ul",list:e.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.dicData,(function(t,i){return n("li",{key:i},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),n("el-input",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"label"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}),n("el-input",{attrs:{size:"mini",placeholder:"value"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}}),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleRemoveFields(i)}}})],1)})),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddFields}},[e._v("添加列 ")])],1)],1),n("el-tab-pane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),n("el-input",{attrs:{placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(t){e.$set(e.data,"dicUrl",t)},expression:"data.dicUrl"}}),e._v(" 请求方法 "),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(t){e.$set(e.data,"dicMethod",t)},expression:"data.dicMethod"}},[n("el-option",{attrs:{label:"POST",value:"post"}}),n("el-option",{attrs:{label:"GET",value:"get"}})],1),"post"==e.data.dicMethod?n("p",[e._v(" 请求参数 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(t){e.$set(e.data,"dicQueryConfig",t)},expression:"data.dicQueryConfig"}})],1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"字典key配置"}},[n("ul",e._l(e.data.props,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{width:"50px"}},[e._v(e._s(i))]),n("el-input",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[i],callback:function(t){e.$set(e.data.props,i,t)},expression:"data.props[key]"}})],1)})),0)]),"remote"==e.data.dicOption?n("el-form-item",{attrs:{label:"重新请求字典(crud)"}},[n("el-switch",{model:{value:e.data.dicFlag,callback:function(t){e.$set(e.data,"dicFlag",t)},expression:"data.dicFlag"}})],1):e._e(),e.data.button?e._e():n("el-form-item",{attrs:{label:"边框"}},[n("el-switch",{model:{value:e.data.border,callback:function(t){e.$set(e.data,"border",t)},expression:"data.border"}})],1),e.data.border?e._e():n("el-form-item",{attrs:{label:"按钮"}},[n("el-switch",{model:{value:e.data.button,callback:function(t){e.$set(e.data,"button",t)},expression:"data.button"}})],1),e.data.border||e.data.button?n("el-form-item",{attrs:{label:"尺寸"}},[n("el-radio-group",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[n("el-radio-button",{attrs:{label:"medium"}},[e._v("正常")]),n("el-radio-button",{attrs:{label:"small"}},[e._v("小")]),n("el-radio-button",{attrs:{label:"mini"}},[e._v("超小")])],1)],1):e._e(),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},me=[],ve={name:"config-checkbox",props:["data"],components:{Draggable:ue.a},data:function(){return{validator:{type:null,required:null,pattern:null,length:null},option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleRemoveFields:function(e){this.data.dicData.splice(e,1)},handleAddFields:function(){var e=Math.ceil(99999*Math.random());this.data.dicData.push({label:"字段".concat(e),value:"col_".concat(e)})},handleTabClick:function(e){var t=e.name;"remote"!=t||this.data.dicQueryConfig||(this.data.dicQueryConfig=[])}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请选择".concat(this.data.label)}:null,this.generateRule()}}},be=ve,ye=Object(u["a"])(be,ge,me,!1,null,null,null),_e=ye.exports,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"是否多选"}},[n("el-switch",{model:{value:e.data.multiple,callback:function(t){e.$set(e.data,"multiple",t)},expression:"data.multiple"}})],1),e.data.multiple?n("el-form-item",{attrs:{label:"是否可拖拽(需引入sortable.js)"}},[n("el-switch",{model:{value:e.data.drag,callback:function(t){e.$set(e.data,"drag",t)},expression:"data.drag"}})],1):e._e(),e.data.multiple?n("el-form-item",{attrs:{label:"多选数量限制"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"多选限制",min:0,max:e.data.dicData.length},model:{value:e.data.limit,callback:function(t){e.$set(e.data,"limit",t)},expression:"data.limit"}})],1):e._e(),n("el-form-item",{attrs:{label:"字典配置"}},[n("br"),n("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(t){e.$set(e.data,"dicOption",t)},expression:"data.dicOption"}},[n("el-tab-pane",{attrs:{label:"静态数据",name:"static"}},[n("draggable",{attrs:{tag:"ul",list:e.data.dicData,group:{name:"dic"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.dicData,(function(t,i){return n("li",{key:i},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),n("el-input",{staticStyle:{"margin-right":"5px"},attrs:{size:"mini",placeholder:"label"},model:{value:t.label,callback:function(n){e.$set(t,"label",n)},expression:"item.label"}}),n("el-input",{attrs:{size:"mini",placeholder:"value"},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"item.value"}}),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleRemoveFields(i)}}})],1)})),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddFields}},[e._v("添加列 ")])],1)],1),n("el-tab-pane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),n("el-input",{attrs:{placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(t){e.$set(e.data,"dicUrl",t)},expression:"data.dicUrl"}}),e._v(" 请求方法 "),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(t){e.$set(e.data,"dicMethod",t)},expression:"data.dicMethod"}},[n("el-option",{attrs:{label:"POST",value:"post"}}),n("el-option",{attrs:{label:"GET",value:"get"}})],1),"post"==e.data.dicMethod?n("p",[e._v(" 请求参数 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(t){e.$set(e.data,"dicQueryConfig",t)},expression:"data.dicQueryConfig"}})],1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"级联配置"}},[n("draggable",{attrs:{tag:"ul",list:e.data.cascaderItem,group:{name:"cascaderItem"},"ghost-class":"ghost",handle:".drag-item"}},e._l(e.data.cascaderItem,(function(t,i){return n("li",{key:i},[n("i",{staticClass:"drag-item el-icon-s-operation",staticStyle:{"font-size":"16px",margin:"0 5px",cursor:"move"}}),n("el-input",{attrs:{size:"mini",placeholder:"级联属性值"},model:{value:e.data.cascaderItem[i],callback:function(t){e.$set(e.data.cascaderItem,i,t)},expression:"data.cascaderItem[index]"}}),n("el-button",{staticStyle:{padding:"4px","margin-left":"5px"},attrs:{circle:"",plain:"",type:"danger",size:"mini",icon:"el-icon-minus"},on:{click:function(t){return e.handleRemoveCascaderItemFields(i)}}})],1)})),0),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleAddCascaderItemFields}},[e._v("添加列")])],1)],1),n("el-form-item",{attrs:{label:"级联默认选中"}},[n("el-input-number",{staticStyle:{width:"calc(100% - 120px)"},attrs:{"controls-position":"right",placeholder:"级联默认选中",min:0},model:{value:e.data.cascaderIndex,callback:function(t){e.$set(e.data,"cascaderIndex",t)},expression:"data.cascaderIndex"}})],1),n("el-form-item",{attrs:{label:"字典key配置"}},[n("ul",e._l(e.data.props,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{width:"50px"}},[e._v(e._s(i))]),n("el-input",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[i],callback:function(t){e.$set(e.data.props,i,t)},expression:"data.props[key]"}})],1)})),0)]),"remote"==e.data.dicOption?n("el-form-item",{attrs:{label:"重新请求字典(crud)"}},[n("el-switch",{model:{value:e.data.dicFlag,callback:function(t){e.$set(e.data,"dicFlag",t)},expression:"data.dicFlag"}})],1):e._e(),n("el-form-item",{attrs:{label:"尺寸"}},[n("el-radio-group",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[n("el-radio-button",{attrs:{label:"medium"}},[e._v("正常")]),n("el-radio-button",{attrs:{label:"small"}},[e._v("小")]),n("el-radio-button",{attrs:{label:"mini"}},[e._v("超小")])],1)],1),n("el-form-item",{attrs:{label:"是否可清空"}},[n("el-switch",{model:{value:e.data.clearable,callback:function(t){e.$set(e.data,"clearable",t)},expression:"data.clearable"}})],1),n("el-form-item",{attrs:{label:"是否可搜索"}},[n("el-switch",{model:{value:e.data.filterable,callback:function(t){e.$set(e.data,"filterable",t)},expression:"data.filterable"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},xe=[],Ce={name:"config-select",props:["data"],components:{Draggable:ue.a},data:function(){return{validator:{type:null,required:null,pattern:null,length:null},option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleRemoveFields:function(e){this.data.dicData.splice(e,1)},handleAddFields:function(){var e=Math.ceil(99999*Math.random());this.data.dicData.push({label:"字段".concat(e),value:"col_".concat(e)})},handleRemoveCascaderItemFields:function(e){this.data.cascaderItem.splice(e,1)},handleAddCascaderItemFields:function(){this.data.cascaderItem.push("")},handleTabClick:function(e){var t=e.name;"remote"!=t||this.data.dicQueryConfig||(this.data.dicQueryConfig=[])}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请选择".concat(this.data.label)}:null,this.generateRule()}}},Se=Ce,ke=Object(u["a"])(Se,we,xe,!1,null,null,null),Oe=ke.exports,Me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"字典配置"}},[n("br"),n("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(t){e.$set(e.data,"dicOption",t)},expression:"data.dicOption"}},[n("el-tab-pane",{attrs:{label:"静态数据",name:"static"}},[n("el-tree",{ref:"tree",attrs:{data:e.data.dicData,"default-expand-all":"",draggable:"","node-key":"value","expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,r=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(i.label))]),n("span",[n("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-plus"},on:{click:function(t){return e.handleNodeAdd(r)}}}),n("el-button",{staticClass:"danger",attrs:{type:"text",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.handleNodeRemove(i,r)}}})],1)])}}])}),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleParentNodeAdd}},[e._v("添加父级 ")])],1)],1),n("el-tab-pane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),n("el-input",{attrs:{placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(t){e.$set(e.data,"dicUrl",t)},expression:"data.dicUrl"}}),e._v(" 请求方法 "),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(t){e.$set(e.data,"dicMethod",t)},expression:"data.dicMethod"}},[n("el-option",{attrs:{label:"POST",value:"post"}}),n("el-option",{attrs:{label:"GET",value:"get"}})],1),"post"==e.data.dicMethod?n("p",[e._v(" 请求参数 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(t){e.$set(e.data,"dicQueryConfig",t)},expression:"data.dicQueryConfig"}})],1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"字典key配置"}},[n("ul",e._l(e.data.props,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{width:"50px"}},[e._v(e._s(i))]),n("el-input",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[i],callback:function(t){e.$set(e.data.props,i,t)},expression:"data.props[key]"}})],1)})),0)]),"remote"==e.data.dicOption?n("el-form-item",{attrs:{label:"重新请求字典(crud)"}},[n("el-switch",{model:{value:e.data.dicFlag,callback:function(t){e.$set(e.data,"dicFlag",t)},expression:"data.dicFlag"}})],1):e._e(),n("el-form-item",{attrs:{label:"选项分隔符"}},[n("el-input",{attrs:{placeholder:"选项分隔符"},model:{value:e.data.separator,callback:function(t){e.$set(e.data,"separator",t)},expression:"data.separator"}})],1),n("el-form-item",{attrs:{label:"是否显示选中值的完整路径"}},[n("el-switch",{model:{value:e.data.showAllLevels,callback:function(t){e.$set(e.data,"showAllLevels",t)},expression:"data.showAllLevels"}})],1),n("el-form-item",{attrs:{label:"是否可清空"}},[n("el-switch",{model:{value:e.data.clearable,callback:function(t){e.$set(e.data,"clearable",t)},expression:"data.clearable"}})],1),n("el-form-item",{attrs:{label:"是否可搜索"}},[n("el-switch",{model:{value:e.data.filterable,callback:function(t){e.$set(e.data,"filterable",t)},expression:"data.filterable"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1),n("el-dialog",{attrs:{visible:e.dialogVisible,rules:e.dialogRules,"before-close":e.beforeClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{ref:"dialogForm",attrs:{model:e.dialogForm,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"label"}},[n("el-input",{attrs:{placeholder:"label"},model:{value:e.dialogForm.label,callback:function(t){e.$set(e.dialogForm,"label",t)},expression:"dialogForm.label"}})],1),n("el-form-item",{attrs:{label:"value"}},[n("el-input",{attrs:{placeholder:"value",type:this.dialogInputType},model:{value:e.dialogForm.value,callback:function(t){e.$set(e.dialogForm,"value",t)},expression:"dialogForm.value"}},[n("el-select",{staticStyle:{width:"100px"},attrs:{slot:"append",placeholder:"数据类型"},slot:"append",model:{value:e.dialogInputType,callback:function(t){e.dialogInputType=t},expression:"dialogInputType"}},[n("el-option",{attrs:{label:"String",value:"text"}}),n("el-option",{attrs:{label:"Number",value:"number"}})],1)],1)],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),"add"==e.dialogStatus?n("el-button",{attrs:{type:"primary"},on:{click:e.handleDialogAdd}},[e._v("确 定")]):e._e()],1)],1)],1)},De=[],Ee=(n("b105"),n("085b"),{name:"config-cascader",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null},dialogForm:{},dialogVisible:!1,dialogRules:{label:{required:!0,message:"请输入label"},value:{required:!0,message:"请输入value"}},dialogStatus:"add",selectData:void 0,dialogInputType:"text",option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleTabClick:function(e){var t=e.name;"remote"!=t||this.data.dicQueryConfig||(this.data.dicQueryConfig=[])},handleParentNodeAdd:function(){this.selectData=void 0,this.dialogStatus="add",this.dialogVisible=!0},handleNodeAdd:function(e){this.selectData=e,this.dialogStatus="add",this.dialogVisible=!0},handleNodeRemove:function(e,t){var n=e.parent,i=n.data.children||n.data,r=i.findIndex((function(e){return e.id===t.id}));i.splice(r,1)},handleDialogAdd:function(){var e=this;this.$refs.dialogForm.validate((function(t){if(t){var n=e.dialogForm,i=n.label,r=n.value,o=e.$refs.tree.getNode(r);if(o)e.$message.error("value重复");else{var a=e.selectData,s={label:i,value:"number"==e.dialogInputType?Number(r):r};a?(a.children||e.$set(a,"children",[]),a.children.push(s)):e.$set(e.data.dicData,e.data.dicData.length,s),e.beforeClose()}}}))},beforeClose:function(){this.$refs.dialogForm.clearValidate(),this.dialogForm={},this.dialogVisible=!1}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请选择".concat(this.data.label),trigger:"change"}:null,this.generateRule()}}}),Te=Ee,Le=(n("4792"),Object(u["a"])(Te,Me,De,!1,null,"bfa41dee",null)),Ie=Le.exports,Ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"字典配置"}},[n("br"),n("el-tabs",{attrs:{stretch:""},on:{"tab-click":e.handleTabClick},model:{value:e.data.dicOption,callback:function(t){e.$set(e.data,"dicOption",t)},expression:"data.dicOption"}},[n("el-tab-pane",{attrs:{label:"静态数据",name:"static"}},[n("el-tree",{ref:"tree",attrs:{data:e.data.dicData,"default-expand-all":"",draggable:"","node-key":"value","expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,r=t.data;return n("span",{staticClass:"custom-tree-node"},[n("span",[e._v(e._s(i.label))]),n("span",[n("el-button",{attrs:{type:"text",size:"mini",icon:"el-icon-plus"},on:{click:function(t){return e.handleNodeAdd(r)}}}),n("el-button",{staticClass:"danger",attrs:{type:"text",size:"mini",icon:"el-icon-delete"},on:{click:function(t){return e.handleNodeRemove(i,r)}}})],1)])}}])}),n("div",{staticStyle:{"margin-left":"22px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.handleParentNodeAdd}},[e._v("添加父级 ")])],1)],1),n("el-tab-pane",{attrs:{label:"远端数据",name:"remote"}},[e._v(" 网址 "),n("el-input",{attrs:{placeholder:"远端数据字典网址"},model:{value:e.data.dicUrl,callback:function(t){e.$set(e.data,"dicUrl",t)},expression:"data.dicUrl"}}),e._v(" 请求方法 "),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请求方法"},model:{value:e.data.dicMethod,callback:function(t){e.$set(e.data,"dicMethod",t)},expression:"data.dicMethod"}},[n("el-option",{attrs:{label:"POST",value:"post"}}),n("el-option",{attrs:{label:"GET",value:"get"}})],1),"post"==e.data.dicMethod?n("p",[e._v(" 请求参数 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dicQueryConfig,callback:function(t){e.$set(e.data,"dicQueryConfig",t)},expression:"data.dicQueryConfig"}})],1):e._e()],1)],1)],1),n("el-form-item",{attrs:{label:"字典key配置"}},[n("ul",e._l(e.data.props,(function(t,i){return n("li",{key:i},[n("span",{staticStyle:{width:"50px"}},[e._v(e._s(i))]),n("el-input",{attrs:{size:"mini",placeholder:"key配置"},model:{value:e.data.props[i],callback:function(t){e.$set(e.data.props,i,t)},expression:"data.props[key]"}})],1)})),0)]),"remote"==e.data.dicOption?n("el-form-item",{attrs:{label:"重新请求字典(crud)"}},[n("el-switch",{model:{value:e.data.dicFlag,callback:function(t){e.$set(e.data,"dicFlag",t)},expression:"data.dicFlag"}})],1):e._e(),n("el-form-item",{attrs:{label:"当有子级时,是否可选择父级"}},[n("el-switch",{model:{value:e.data.parent,callback:function(t){e.$set(e.data,"parent",t)},expression:"data.parent"}})],1),n("el-form-item",{attrs:{label:"是否多选"}},[n("el-switch",{model:{value:e.data.multiple,callback:function(t){e.$set(e.data,"multiple",t)},expression:"data.multiple"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1),n("el-dialog",{attrs:{visible:e.dialogVisible,rules:e.dialogRules,"before-close":e.beforeClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("el-form",{ref:"dialogForm",attrs:{model:e.dialogForm,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"label"}},[n("el-input",{attrs:{placeholder:"label"},model:{value:e.dialogForm.label,callback:function(t){e.$set(e.dialogForm,"label",t)},expression:"dialogForm.label"}})],1),n("el-form-item",{attrs:{label:"value"}},[n("el-input",{attrs:{placeholder:"value",type:this.dialogInputType},model:{value:e.dialogForm.value,callback:function(t){e.$set(e.dialogForm,"value",t)},expression:"dialogForm.value"}},[n("el-select",{staticStyle:{width:"100px"},attrs:{slot:"append",placeholder:"数据类型"},slot:"append",model:{value:e.dialogInputType,callback:function(t){e.dialogInputType=t},expression:"dialogInputType"}},[n("el-option",{attrs:{label:"String",value:"text"}}),n("el-option",{attrs:{label:"Number",value:"number"}})],1)],1)],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),"add"==e.dialogStatus?n("el-button",{attrs:{type:"primary"},on:{click:e.handleDialogAdd}},[e._v("确 定")]):e._e()],1)],1)],1)},Ne=[],Pe={name:"config-tree",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null},dialogForm:{},dialogVisible:!1,dialogRules:{label:{required:!0,message:"请输入label"},value:{required:!0,message:"请输入value"}},dialogStatus:"add",selectData:void 0,dialogInputType:"text",option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t},handleTabClick:function(e){var t=e.name;"remote"!=t||this.data.dicQueryConfig||(this.data.dicQueryConfig=[])},handleParentNodeAdd:function(){this.selectData=void 0,this.dialogStatus="add",this.dialogVisible=!0},handleNodeAdd:function(e){this.selectData=e,this.dialogStatus="add",this.dialogVisible=!0},handleNodeRemove:function(e,t){var n=e.parent,i=n.data.children||n.data,r=i.findIndex((function(e){return e.id===t.id}));i.splice(r,1)},handleDialogAdd:function(){var e=this;this.$refs.dialogForm.validate((function(t){if(t){var n=e.dialogForm,i=n.label,r=n.value,o=e.$refs.tree.getNode(r);if(o)e.$message.error("value重复");else{var a=e.selectData,s={label:i,value:"number"==e.dialogInputType?new Number(r):r};a?(a.children||e.$set(a,"children",[]),a.children.push(s)):e.$set(e.data.dicData,e.data.dicData.length,s),e.beforeClose()}}}))},beforeClose:function(){this.$refs.dialogForm.clearValidate(),this.dialogForm={},this.dialogVisible=!1}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请选择".concat(this.data.label)}:null,this.generateRule()},"data.multiple":function(e){e?this.data.defaultValue=[]:delete this.data.defaultValue}}},Re=Pe,Fe=(n("0df9"),Object(u["a"])(Re,Ae,Ne,!1,null,"77c43025",null)),je=Fe.exports,Be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[-1!=e.data.type.indexOf("range")?[n("el-form-item",{attrs:{label:"开始占位内容"}},[n("el-input",{attrs:{placeholder:"开始占位内容"},model:{value:e.data.startPlaceholder,callback:function(t){e.$set(e.data,"startPlaceholder",t)},expression:"data.startPlaceholder"}})],1),n("el-form-item",{attrs:{label:"结束占位内容"}},[n("el-input",{attrs:{placeholder:"结束占位内容"},model:{value:e.data.endPlaceholder,callback:function(t){e.$set(e.data,"endPlaceholder",t)},expression:"data.endPlaceholder"}})],1)]:n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"显示格式化"}},[n("el-input",{attrs:{placeholder:"显示格式化"},model:{value:e.data.format,callback:function(t){e.$set(e.data,"format",t)},expression:"data.format"}})],1),n("el-form-item",{attrs:{label:"值格式化"}},[n("el-input",{attrs:{placeholder:"值格式化"},model:{value:e.data.valueFormat,callback:function(t){e.$set(e.data,"valueFormat",t)},expression:"data.valueFormat"}})],1),["timerange","daterange","datetimerange"].includes(e.data.type)?n("el-form-item",{attrs:{label:"取消范围联动"}},[n("el-switch",{model:{value:e.data.unlinkPanels,callback:function(t){e.$set(e.data,"unlinkPanels",t)},expression:"data.unlinkPanels"}})],1):e._e(),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],2)},ze=[],Ve={name:"config-date",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()}}},$e=Ve,We=Object(u["a"])($e,Be,ze,!1,null,null,null),He=We.exports,Ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.data.oss?e._e():n("el-form-item",{attrs:{label:"上传地址"}},[n("el-input",{attrs:{placeholder:"上传地址"},model:{value:e.data.action,callback:function(t){e.$set(e.data,"action",t)},expression:"data.action"}})],1),e.data.oss?e._e():n("el-form-item",{attrs:{label:"接受文件类型"}},[n("el-input",{attrs:{placeholder:"接受文件类型,如:image/png,image/jpg"},model:{value:e.data.accept,callback:function(t){e.$set(e.data,"accept",t)},expression:"data.accept"}})],1),n("el-form-item",{attrs:{label:"oss"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/doc/form/form-upload-qiniu",target:"_blank"}},[e._v("请先按照相关文档配置avue七牛/阿里配置")]),n("br"),n("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:e.data.oss,callback:function(t){e.$set(e.data,"oss",t)},expression:"data.oss"}},[n("el-option",{attrs:{label:"阿里",value:"ali"}}),n("el-option",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),n("el-form-item",{attrs:{label:"是否拖拽上传"}},[n("el-switch",{model:{value:e.data.drag,callback:function(t){e.$set(e.data,"drag",t)},expression:"data.drag"}})],1),e.data.drag?e._e():n("el-form-item",{attrs:{label:"文件列表类型"}},[n("el-select",{attrs:{placeholder:"文件列表类型",clearable:""},model:{value:e.data.listType,callback:function(t){e.$set(e.data,"listType",t)},expression:"data.listType"}},[n("el-option",{attrs:{label:"附件",value:"text"}}),n("el-option",{attrs:{label:"照片墙",value:"picture-card"}}),n("el-option",{attrs:{label:"头像",value:"picture-img"}}),n("el-option",{attrs:{label:"缩略图",value:"picture"}})],1)],1),n("el-form-item",{attrs:{label:"参数设置"}},[e._v(" 请求头 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.headersConfig,callback:function(t){e.$set(e.data,"headersConfig",t)},expression:"data.headersConfig"}}),e._v(" 请求体 "),n("avue-dynamic",{attrs:{children:e.option},model:{value:e.data.dataConfig,callback:function(t){e.$set(e.data,"dataConfig",t)},expression:"data.dataConfig"}})],1),n("el-form-item",{attrs:{label:"服务器返回参数设置"}},[n("br"),e._v(" 上传成功返回结构体的图片地址 "),n("el-input",{attrs:{placeholder:"上传成功返回结构体的图片地址"},model:{value:e.data.propsHttp.url,callback:function(t){e.$set(e.data.propsHttp,"url",t)},expression:"data.propsHttp.url"}}),e._v(" 上传成功返回结构体的图片的姓名 "),n("el-input",{attrs:{placeholder:"上传成功返回结构体的图片的姓名"},model:{value:e.data.propsHttp.name,callback:function(t){e.$set(e.data.propsHttp,"name",t)},expression:"data.propsHttp.name"}}),e._v(" 返回结构体的层次 "),n("el-input",{attrs:{placeholder:"返回结构体的层次"},model:{value:e.data.propsHttp.res,callback:function(t){e.$set(e.data.propsHttp,"res",t)},expression:"data.propsHttp.res"}}),e._v(" 上传文件流时的名称 "),n("el-input",{attrs:{placeholder:"fileName"},model:{value:e.data.propsHttp.fileName,callback:function(t){e.$set(e.data.propsHttp,"fileName",t)},expression:"data.propsHttp.fileName"}})],1),n("el-form-item",{attrs:{label:"是否显示已上传文件列表"}},[n("el-switch",{model:{value:e.data.showFileList,callback:function(t){e.$set(e.data,"showFileList",t)},expression:"data.showFileList"}})],1),n("el-form-item",{attrs:{label:"文件大小限制(字节)"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文件大小限制(字节)",min:0},model:{value:e.data.fileSize,callback:function(t){e.$set(e.data,"fileSize",t)},expression:"data.fileSize"}})],1),n("el-form-item",{attrs:{label:"上传限制提示"}},[n("el-input",{attrs:{placeholder:"上传限制提示"},model:{value:e.data.tip,callback:function(t){e.$set(e.data,"tip",t)},expression:"data.tip"}})],1),n("el-form-item",{attrs:{label:"上传中提示"}},[n("el-input",{attrs:{placeholder:"上传中提示"},model:{value:e.data.loadText,callback:function(t){e.$set(e.data,"loadText",t)},expression:"data.loadText"}})],1),n("el-form-item",{attrs:{label:"是否多文件上传"}},[n("el-switch",{model:{value:e.data.multiple,callback:function(t){e.$set(e.data,"multiple",t)},expression:"data.multiple"}})],1),n("el-form-item",{attrs:{label:"多文件上传数量限制"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"多文件上传数量限制",min:1},model:{value:e.data.limit,callback:function(t){e.$set(e.data,"limit",t)},expression:"data.limit"}})],1),n("el-form-item",{attrs:{label:"图片水印设置"}},[n("br"),e._v(" 水印文字 "),n("el-input",{attrs:{placeholder:"水印文字"},model:{value:e.data.canvasOption.text,callback:function(t){e.$set(e.data.canvasOption,"text",t)},expression:"data.canvasOption.text"}}),e._v(" 字体类型 "),n("el-input",{attrs:{placeholder:"字体类型"},model:{value:e.data.canvasOption.fontFamily,callback:function(t){e.$set(e.data.canvasOption,"fontFamily",t)},expression:"data.canvasOption.fontFamily"}}),e._v(" 字体颜色 "),n("avue-input-color",{attrs:{placeholder:"字体颜色"},model:{value:e.data.canvasOption.color,callback:function(t){e.$set(e.data.canvasOption,"color",t)},expression:"data.canvasOption.color"}}),e._v(" 字体大小 "),n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"字体大小"},model:{value:e.data.canvasOption.fontSize,callback:function(t){e.$set(e.data.canvasOption,"fontSize",t)},expression:"data.canvasOption.fontSize"}}),e._v(" 文字的透明度 "),n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文字的透明度",step:10,min:10,max:100},model:{value:e.data.canvasOption.opacity,callback:function(t){e.$set(e.data.canvasOption,"opacity",t)},expression:"data.canvasOption.opacity"}}),e._v(" 文字距离图片底部的距离"),n("br"),n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文字距离图片底部的距离"},model:{value:e.data.canvasOption.bottom,callback:function(t){e.$set(e.data.canvasOption,"bottom",t)},expression:"data.canvasOption.bottom"}}),e._v(" 文字距离图片右边的距离"),n("br"),n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"文字距离图片右边的距离"},model:{value:e.data.canvasOption.right,callback:function(t){e.$set(e.data.canvasOption,"right",t)},expression:"data.canvasOption.right"}}),e._v(" 压缩图片比率"),n("br"),n("el-input-number",{staticStyle:{width:"100%"},attrs:{"controls-position":"right",placeholder:"压缩图片比率",step:.1,min:0,max:1},model:{value:e.data.canvasOption.ratio,callback:function(t){e.$set(e.data.canvasOption,"ratio",t)},expression:"data.canvasOption.ratio"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},qe=[],Ge={name:"config-upload",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null},option:{column:[{type:"input",prop:"key",label:"key"},{type:"input",prop:"value",label:"value"}]}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()},"data.drag":function(e){e&&delete this.data.listType}}},Ke=Ge,Ye=Object(u["a"])(Ke,Ue,qe,!1,null,null,null),Xe=Ye.exports,Ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"图片上传地址"}},[n("el-input",{attrs:{placeholder:"图片上传地址"},model:{value:e.data.options.action,callback:function(t){e.$set(e.data.options,"action",t)},expression:"data.options.action"}})],1),n("el-form-item",{attrs:{label:"配置参数"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/doc/plugins/ueditor-plugins",target:"_blank"}},[e._v("详细文档")]),n("br"),e._v(" 返回的数据结构层次 "),n("el-input",{attrs:{placeholder:"返回的数据结构层次"},model:{value:e.data.options.props.res,callback:function(t){e.$set(e.data.options.props,"res",t)},expression:"data.options.props.res"}}),e._v(" 返回结构体图片地址字段 "),n("el-input",{attrs:{placeholder:"返回结构体图片地址字段"},model:{value:e.data.options.props.url,callback:function(t){e.$set(e.data.options.props,"url",t)},expression:"data.options.props.url"}})],1),n("el-form-item",{attrs:{label:"oss"}},[n("el-select",{attrs:{placeholder:"oss不写则为普通上传",clearable:""},model:{value:e.data.options.oss,callback:function(t){e.$set(e.data.options,"oss",t)},expression:"data.options.oss"}},[n("el-option",{attrs:{label:"阿里",value:"ali"}}),n("el-option",{attrs:{label:"七牛",value:"qiniu"}})],1)],1),"qiniu"==e.data.options.oss?[n("el-form-item",{attrs:{label:"七牛oss配置"}},[n("br"),e._v(" AK "),n("el-input",{attrs:{placeholder:"七牛云的密钥(AK)"},model:{value:e.data.options.qiniu.AK,callback:function(t){e.$set(e.data.options.qiniu,"AK",t)},expression:"data.options.qiniu.AK"}}),e._v(" SK "),n("el-input",{attrs:{placeholder:"七牛云的密钥(SK)"},model:{value:e.data.options.qiniu.SK,callback:function(t){e.$set(e.data.options.qiniu,"SK",t)},expression:"data.options.qiniu.SK"}}),e._v(" scope "),n("el-input",{attrs:{placeholder:"七牛云存储的空间名"},model:{value:e.data.options.qiniu.scope,callback:function(t){e.$set(e.data.options.qiniu,"scope",t)},expression:"data.options.qiniu.scope"}}),e._v(" url "),n("el-input",{attrs:{placeholder:"空间的自定义域名"},model:{value:e.data.options.qiniu.url,callback:function(t){e.$set(e.data.options.qiniu,"url",t)},expression:"data.options.qiniu.url"}}),e._v(" deadline "),n("el-input",{attrs:{placeholder:"token的过期时间"},model:{value:e.data.options.qiniu.deadline,callback:function(t){e.$set(e.data.options.qiniu,"deadline",t)},expression:"data.options.qiniu.deadline"}})],1)]:e._e(),"ali"==e.data.options.oss?[n("el-form-item",{attrs:{label:"阿里oss配置"}},[n("br"),e._v(" region "),n("el-input",{attrs:{placeholder:"region"},model:{value:e.data.options.ali.region,callback:function(t){e.$set(e.data.options.ali,"region",t)},expression:"data.options.ali.region"}}),e._v(" endpoint "),n("el-input",{attrs:{placeholder:"endpoint"},model:{value:e.data.options.ali.endpoint,callback:function(t){e.$set(e.data.options.ali,"endpoint",t)},expression:"data.options.ali.endpoint"}}),e._v(" accessKeyId "),n("el-input",{attrs:{placeholder:"accessKeyId"},model:{value:e.data.options.ali.accessKeyId,callback:function(t){e.$set(e.data.options.ali,"accessKeyId",t)},expression:"data.options.ali.accessKeyId"}}),e._v(" accessKeySecret "),n("el-input",{attrs:{placeholder:"accessKeySecret"},model:{value:e.data.options.ali.accessKeySecret,callback:function(t){e.$set(e.data.options.ali,"accessKeySecret",t)},expression:"data.options.ali.accessKeySecret"}}),e._v(" bucket "),n("el-input",{attrs:{placeholder:"bucket\t"},model:{value:e.data.options.ali.bucket,callback:function(t){e.$set(e.data.options.ali,"bucket",t)},expression:"data.options.ali.bucket"}})],1)]:e._e(),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],2)},Qe=[],Je={name:"config-ueditor",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()},"data.options.oss":function(e){"ali"==e?this.data.options.qiniu={}:"qiniu"==e&&(this.data.options.ali={})}}},et=Je,tt=Object(u["a"])(et,Ze,Qe,!1,null,null,null),nt=tt.exports,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/doc/plugins/map-plugins",target:"_blank"}},[e._v("详细文档")]),n("br"),n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},rt=[],ot={name:"config-map",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"".concat(this.data.label,"必须填写")}:null,this.generateRule()}}},at=ot,st=Object(u["a"])(at,it,rt,!1,null,null,null),lt=st.exports,ct=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"图标"}},[n("avue-input-icon",{attrs:{"icon-list":e.iconList,placeholder:"图标"},model:{value:e.data.icon,callback:function(t){e.$set(e.data,"icon",t)},expression:"data.icon"}}),n("el-form-item",{attrs:{label:"开启折叠"}},[n("el-switch",{model:{value:e.data.arrow,callback:function(t){e.$set(e.data,"arrow",t)},expression:"data.arrow"}})],1),e.data.arrow?n("el-form-item",{attrs:{label:"默认展开"}},[n("el-switch",{model:{value:e.data.collapse,callback:function(t){e.$set(e.data,"collapse",t)},expression:"data.collapse"}})],1):e._e(),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1)],1)],1)},ut=[],dt={name:"config-group",props:["data"],data:function(){return{iconList:[{label:"element-ui",list:["el-icon-info","el-icon-error","el-icon-success","el-icon-warning","el-icon-question"]}]}}},ht=dt,ft=Object(u["a"])(ht,ct,ut,!1,null,"f53992fa",null),pt=ft.exports,gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"占位内容"}},[n("el-input",{attrs:{placeholder:"占位内容"},model:{value:e.data.placeholder,callback:function(t){e.$set(e.data,"placeholder",t)},expression:"data.placeholder"}})],1),n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"尺寸"}},[n("el-radio-group",{attrs:{size:"mini"},model:{value:e.data.size,callback:function(t){e.$set(e.data,"size",t)},expression:"data.size"}},[n("el-radio-button",{attrs:{label:"medium"}},[e._v("正常")]),n("el-radio-button",{attrs:{label:"small"}},[e._v("小")]),n("el-radio-button",{attrs:{label:"mini"}},[e._v("超小")])],1)],1),n("el-form-item",{attrs:{label:"是否禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1),n("el-form-item",{attrs:{label:"是否可见"}},[n("el-switch",{model:{value:e.data.display,callback:function(t){e.$set(e.data,"display",t)},expression:"data.display"}})],1),n("el-form-item",{attrs:{label:"是否必填"}},[n("el-switch",{model:{value:e.data.required,callback:function(t){e.$set(e.data,"required",t)},expression:"data.required"}})],1)],1)},mt=[],vt={name:"config-array",props:["data"],data:function(){return{validator:{type:null,required:null,pattern:null,length:null}}},methods:{generateRule:function(){var e=this,t=[];Object.keys(this.validator).forEach((function(n){e.validator[n]&&t.push(e.validator[n])})),this.data.rules=t}},watch:{"data.required":function(e){this.validator.required=e?{required:!0,message:"请输入".concat(this.data.label)}:null,this.generateRule()}}},bt=vt,yt=Object(u["a"])(bt,gt,mt,!1,null,null,null),_t=yt.exports,wt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-form-item",{attrs:{label:"默认值"}},[n("el-input",{attrs:{placeholder:"默认值"},model:{value:e.data.value,callback:function(t){e.$set(e.data,"value",t)},expression:"data.value"}})],1),n("el-form-item",{attrs:{label:"距左边边距"}},[n("el-input",{attrs:{placeholder:"距左边边距"},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),n("el-form-item",{attrs:{label:"颜色"}},[n("el-color-picker",{attrs:{size:"mini"},model:{value:e.data.styles.color,callback:function(t){e.$set(e.data.styles,"color",t)},expression:"data.styles.color"}})],1),n("el-form-item",{attrs:{label:"字体大小"}},[n("el-input",{attrs:{placeholder:"字体大小"},model:{value:e.data.styles.fontSize,callback:function(t){e.$set(e.data.styles,"fontSize",t)},expression:"data.styles.fontSize"}})],1),n("el-form-item",{attrs:{label:"粗体"}},[n("el-select",{attrs:{placeholder:"粗体"},model:{value:e.data.styles.fontWeight,callback:function(t){e.$set(e.data.styles,"fontWeight",t)},expression:"data.styles.fontWeight"}},e._l(e.options,(function(e){return n("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)],1)},xt=[],Ct={name:"config-title",props:["data"],data:function(){return{options:["100","200","300","400","500","600","700","800","900","blod","bloder","inherit","initial","lighter","normal","revert","unset"]}}},St=Ct,kt=Object(u["a"])(St,wt,xt,!1,null,null,null),Ot=kt.exports,Mt=[h,b,S,T,R,$,K,ee,ae,pe,_e,Oe,Ie,je,He,nt,Xe,lt,pt,_t,Ot],Dt={install:function(e){this.installed||(this.installed=!0,Mt.map((function(t){e.component(t.name,t)})))}},Et=Dt,Tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-designer"},[n("el-container",[n("el-aside",{attrs:{width:e.leftWidth}},[n("div",{staticClass:"fields-list"},[e.customFields&&e.customFields.length>0?[n("el-link",{staticClass:"field-title",attrs:{underline:!1,href:"https://github.com/sscfaith/avue-form-design/blob/master/CHANGELOG.md#2020-09-22",target:"_blank"}},[e._v("自定义字段 "),n("i",{staticClass:"el-icon-question"})]),n("draggable",{attrs:{tag:"ul",list:e.customFields,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[e._l(e.customFields,(function(t,i){return[t.tips?n("el-tooltip",{key:i,attrs:{effect:"dark",content:t.tips}},[n("li",{key:i,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(n){return e.handleFieldClick(t)}}},[n("i",{class:t.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(t.title||t.label))])])])]):n("li",{key:i,staticClass:"field-label"},[n("a",{staticStyle:{padding:"0 5px"},on:{click:function(n){return e.handleFieldClick(t)}}},[n("i",{class:t.icon}),n("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(t.title||t.label))])])])]}))],2)]:e._e(),e._l(e.fields,(function(t,i){return n("div",{key:i},[t.list.find((function(t){return e.includeFields.includes(t.type)}))?[n("div",{staticClass:"field-title"},[e._v(e._s(t.title))]),n("draggable",{attrs:{tag:"ul",list:t.list,group:{name:"form",pull:"clone",put:!1},"ghost-class":"ghost",sort:!1}},[e._l(t.list,(function(t,i){return[e.includeFields.includes(t.type)?n("li",{key:i,staticClass:"field-label"},[n("a",{on:{click:function(n){return e.handleFieldClick(t)}}},[n("i",{staticClass:"icon iconfont",class:t.icon}),n("span",[e._v(e._s(t.title||t.label))])])]):e._e()]}))],2)]:e._e()],2)}))],2)]),n("el-container",{staticClass:"widget-container",attrs:{direction:"vertical"}},[n("el-header",{staticClass:"widget-container-header"},[n("div",[e.undoRedo?[n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-left",disabled:0==e.historySteps.index},on:{click:function(t){e.widgetForm=e.handleUndo()}}},[e._v("撤销")]),n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-refresh-right",disabled:e.historySteps.index==e.historySteps.steps.length-1},on:{click:function(t){e.widgetForm=e.handleRedo()}}},[e._v("重做")])]:e._e()],2),n("div",{staticStyle:{display:"flex","align-items":"center"}},[e.showGithubStar?n("iframe",{staticStyle:{"margin-left":"10px"},attrs:{src:"https://ghbtns.com/github-btn.html?user=sscfaith&repo=avue-form-design&type=star&count=true",frameborder:"0",scrolling:"0",width:"100",height:"20",title:"GitHub"}}):e._e(),e._t("toolbar-left"),e.toolbar.includes("avue-doc")?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-document"},on:{click:e.handleAvueDoc}},[e._v("Avue文档")]):e._e(),e.toolbar.includes("import")?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-upload2"},on:{click:function(t){e.importJsonVisible=!0}}},[e._v("导入JSON")]):e._e(),e.toolbar.includes("generate")?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-download"},on:{click:e.handleGenerateJson}},[e._v("生成JSON")]):e._e(),e.toolbar.includes("preview")?n("el-button",{attrs:{type:"text",size:"medium",icon:"el-icon-view"},on:{click:e.handlePreview}},[e._v("预览")]):e._e(),e.toolbar.includes("clear")?n("el-button",{staticClass:"danger",attrs:{type:"text",size:"medium",icon:"el-icon-delete"},on:{click:e.handleClear}},[e._v("清空")]):e._e(),e._t("toolbar")],2)]),n("el-main",{style:{background:0==e.widgetForm.column.length?"url("+e.widgetEmpty+") no-repeat 50%":""}},[n("widget-form",{ref:"widgetForm",attrs:{data:e.widgetForm,select:e.widgetFormSelect},on:{"update:select":function(t){e.widgetFormSelect=t},change:function(t){return e.handleHistoryChange(e.widgetForm)}}})],1)],1),n("el-aside",{staticClass:"widget-config-container",attrs:{width:e.rightWidth}},[n("el-tabs",{attrs:{stretch:""},model:{value:e.configTab,callback:function(t){e.configTab=t},expression:"configTab"}},[n("el-tab-pane",{staticStyle:{padding:"0 10px"},attrs:{label:"字段属性",name:"widget"}},[n("widget-config",{attrs:{data:e.widgetFormSelect}})],1),n("el-tab-pane",{staticStyle:{padding:"0 10px"},attrs:{label:"表单属性",name:"form",lazy:""}},[n("form-config",{attrs:{data:e.widgetForm}})],1)],1)],1),n("el-drawer",{attrs:{title:"导入JSON",visible:e.importJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.importJsonVisible=t}}},[n("monaco-editor",{attrs:{keyIndex:"import",height:"82%"},model:{value:e.importJson,callback:function(t){e.importJson=t},expression:"importJson"}}),n("div",{staticClass:"drawer-foot"},[n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.handleImportJsonSubmit}},[e._v("确定")]),n("el-button",{attrs:{size:"medium",type:"danger"},on:{click:function(t){e.importJsonVisible=!1}}},[e._v("取消")])],1)],1),n("el-drawer",{attrs:{title:"生成JSON",visible:e.generateJsonVisible,size:"50%","append-to-body":"","destroy-on-close":""},on:{"update:visible":function(t){e.generateJsonVisible=t}}},[n("monaco-editor",{attrs:{keyIndex:"generate",height:"82%","read-only":!0},model:{value:e.widgetFormPreview,callback:function(t){e.widgetFormPreview=t},expression:"widgetFormPreview"}}),n("div",{staticClass:"drawer-foot"},[n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.handleGenerate}},[e._v("生成")]),n("el-popover",{attrs:{placement:"top",trigger:"hover",width:"350px"}},[n("el-form",{staticStyle:{padding:"0 20px"},attrs:{"label-suffix":":","label-width":"180px","label-position":"left"},model:{value:e.configOption,callback:function(t){e.configOption=t},expression:"configOption"}},[n("el-form-item",{attrs:{label:"类型"}},[n("el-popover",{staticStyle:{"margin-right":"15px"},attrs:{placement:"top-start",trigger:"hover",content:"复制json对象"}},[n("el-radio",{attrs:{slot:"reference",label:"json"},slot:"reference",model:{value:e.configOption.generateType,callback:function(t){e.$set(e.configOption,"generateType",t)},expression:"configOption.generateType"}},[e._v("json")])],1),n("el-popover",{attrs:{placement:"top-start",trigger:"hover",content:"复制string字符串,可直接用于后端保存无需再次处理。"}},[n("el-radio",{attrs:{slot:"reference",label:"string"},slot:"reference",model:{value:e.configOption.generateType,callback:function(t){e.$set(e.configOption,"generateType",t)},expression:"configOption.generateType"}},[e._v("string")])],1)],1),n("el-form-item",{attrs:{label:"缩进长度-空格数量"}},[n("el-slider",{attrs:{"show-stops":"",marks:{1:"1",2:"2",3:"3",4:"4"},min:1,max:4,step:1},model:{value:e.configOption.space,callback:function(t){e.$set(e.configOption,"space",t)},expression:"configOption.space"}})],1),n("el-form-item",{attrs:{label:"引号类型"}},[n("el-switch",{attrs:{"active-value":"single","inactive-value":"double","active-text":"单引号","inactive-text":"双引号"},model:{value:e.configOption.quoteType,callback:function(t){e.$set(e.configOption,"quoteType",t)},expression:"configOption.quoteType"}})],1),n("el-form-item",{attrs:{label:"移除key的引号"}},[n("el-switch",{model:{value:e.configOption.dropQuotesOnKeys,callback:function(t){e.$set(e.configOption,"dropQuotesOnKeys",t)},expression:"configOption.dropQuotesOnKeys"}})],1),n("el-form-item",{attrs:{label:"移除数字字符串的引号"}},[n("el-switch",{model:{value:e.configOption.dropQuotesOnNumbers,callback:function(t){e.$set(e.configOption,"dropQuotesOnNumbers",t)},expression:"configOption.dropQuotesOnNumbers"}})],1)],1),n("el-button",{staticStyle:{"margin-left":"10px"},attrs:{slot:"reference",size:"medium",type:"primary"},on:{click:e.handleCopy},slot:"reference"},[e._v("复制")])],1)],1)],1),n("el-drawer",{attrs:{title:"预览",visible:e.previewVisible,size:"60%","append-to-body":"","before-close":e.handleBeforeClose},on:{"update:visible":function(t){e.previewVisible=t}}},[e.previewVisible?n("avue-form",{ref:"form",staticClass:"preview-form",attrs:{option:e.widgetFormPreview},on:{submit:e.handlePreviewSubmit},model:{value:e.widgetModels,callback:function(t){e.widgetModels=t},expression:"widgetModels"}}):e._e(),n("div",{staticClass:"drawer-foot"},[n("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.handlePreviewSubmit}},[e._v("确定")]),n("el-button",{attrs:{size:"medium",type:"danger"},on:{click:e.handleBeforeClose}},[e._v("取消")])],1)],1)],1)],1)},Lt=[],It=n("e669"),At=It["a"],Nt=(n("1115"),Object(u["a"])(At,Tt,Lt,!1,null,null,null)),Pt=Nt.exports,Rt={install:function(e){e.use(Et),e.component("Avue"+Pt.name,Pt)}};t["default"]=Rt},5124:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".quick-input-widget{position:absolute;width:600px;z-index:2000;padding-bottom:6px;left:50%;margin-left:-300px}.quick-input-left-action-bar,.quick-input-titlebar{display:-webkit-box;display:-ms-flexbox;display:flex}.quick-input-left-action-bar{margin-left:4px;-webkit-box-flex:1;-ms-flex:1;flex:1}.quick-input-left-action-bar.monaco-action-bar .actions-container{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.quick-input-title{padding:3px 0;text-align:center}.quick-input-right-action-bar{display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:4px;-webkit-box-flex:1;-ms-flex:1;flex:1}.quick-input-titlebar .monaco-action-bar .action-label.codicon{margin:0;width:19px;height:100%;background-position:50%;background-repeat:no-repeat}.quick-input-description{margin:6px}.quick-input-header{display:-webkit-box;display:-ms-flexbox;display:flex;padding:6px 6px 0 6px;margin-bottom:-2px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative}.quick-input-check-all{-ms-flex-item-align:center;align-self:center;margin:0}.quick-input-filter{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.quick-input-box,.quick-input-filter{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{-ms-flex-item-align:center;align-self:center;position:absolute;right:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.quick-input-message{margin-top:-1px;padding:5px 5px 2px 5px}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px;margin-top:6px}.quick-input-widget.hidden-input .quick-input-list{margin-top:0}.quick-input-list .monaco-list{overflow:hidden;max-height:440px}.quick-input-list .quick-input-list-entry{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row:first-child .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1}.quick-input-list .quick-input-list-checkbox{-ms-flex-item-align:center;align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;-webkit-box-flex:1;-ms-flex:1;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{-webkit-box-flex:1;-ms-flex:1;flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:sub}.quick-input-list .quick-input-list-rows .monaco-highlighted-label span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:8px}.quick-input-list .quick-input-list-entry-action-bar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin:0;height:100%;padding:0 2px;vertical-align:middle}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px}.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label,.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label{display:-webkit-box;display:-ms-flexbox;display:flex}",""]),e.exports=t},"52a2":function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},5350:function(e,t,n){var i=n("986e"),r=n("76b2"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},"53c2":function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var o=r(i),a=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=i(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"===typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(r[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);i&&r[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"53d7":function(e,t,n){var i=n("f68d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("8674e010",i,!0,{sourceMap:!1,shadowMode:!1})},"53ff":function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},5491:function(e,t,n){"use strict";function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,"a",(function(){return i})),n("c225"),n("02de"),n("40cd"),n("e2da"),n("fa89"),n("a078"),n("95d1")},"55ab":function(e,t,n){var i=n("ac97");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"58a5":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-inputbox{position:relative;display:block;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:inherit}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox>.wrapper>.input,.monaco-inputbox>.wrapper>.mirror{padding:4px}.monaco-inputbox>.wrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.wrapper>.input{display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.wrapper>input{text-overflow:ellipsis}.monaco-inputbox>.wrapper>textarea.input{display:block;-ms-overflow-style:none;scrollbar-width:none;outline:none}.monaco-inputbox>.wrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.wrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.wrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;min-height:34px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}",""]),e.exports=t},"59cf":function(e,t,n){var i=n("1810"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"59e5":function(e,t,n){var i,r,o,a=n("e244"),s=n("ac97"),l=n("d6ed"),c=n("a780"),u=n("f146"),d=n("4ad5"),h=n("f79e"),f=a.location,p=a.setImmediate,g=a.clearImmediate,m=a.process,v=a.MessageChannel,b=a.Dispatch,y=0,_={},w="onreadystatechange",x=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},C=function(e){return function(){x(e)}},S=function(e){x(e.data)},k=function(e){a.postMessage(e+"",f.protocol+"//"+f.host)};p&&g||(p=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return _[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(y),y},g=function(e){delete _[e]},h?i=function(e){m.nextTick(C(e))}:b&&b.now?i=function(e){b.now(C(e))}:v&&!d?(r=new v,o=r.port2,r.port1.onmessage=S,i=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&f&&"file:"!==f.protocol&&!s(k)?(i=k,a.addEventListener("message",S,!1)):i=w in u("script")?function(e){c.appendChild(u("script"))[w]=function(){c.removeChild(this),x(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:p,clear:g}},"5a37":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".codicon-wrench-subaction{opacity:.5}",""]),e.exports=t},"5a43":function(e,t,n){var i=n("c401");e.exports=Array.isArray||function(e){return"Array"==i(e)}},6023:function(e,t,n){var i=n("d53b"),r=n("d85b"),o=n("1810"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||r[i(e)]}},6043:function(e,t,n){var i=n("642d"),r=n("e244"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},6120:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent}.monaco-editor .inputarea.ime-input{z-index:10}",""]),e.exports=t},6161:function(e,t,n){var i=n("7d86");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},"61b6":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,'*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box}body{margin:0!important}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;min-height:100%;height:100%}.form-designer{height:100%;background:#fff;outline:1px solid #e4e7ed}.form-designer ::-webkit-scrollbar{width:0!important;height:0!important}.form-designer ::-webkit-scrollbar-track{background-color:transparent!important}.form-designer ::-webkit-scrollbar-thumb,.form-designer ::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px transparent!important;border-radius:10px!important}.form-designer ::-webkit-scrollbar-thumb{background-color:#fff!important}.form-designer .fields-list{padding:10px 0;width:100%;height:100%}.form-designer .fields-list .field-title{padding:8px 12px;font-size:13px}.form-designer .fields-list ul{position:relative;overflow:hidden;padding:0 10px 10px;margin:0}.form-designer .fields-list .field-label{font-size:12px;display:block;width:48%;line-height:26px;position:relative;float:left;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:1%;color:#333;border:1px solid #f4f6fc}.form-designer .fields-list .field-label:hover{color:#409eff;border:1px dashed #409eff}.form-designer .fields-list .field-label>a{display:block;cursor:move;background:#f4f6fc;border:1px solid #f4f6fc}.form-designer .fields-list .field-label>a .icon{margin-right:6px;margin-left:8px;font-size:14px;display:inline-block;vertical-align:middle}.form-designer .fields-list .field-label>a span{display:inline-block;vertical-align:middle}.form-designer .fields-list .field-label-disabled{font-size:12px;display:block;width:48%;line-height:26px;position:relative;float:left;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:1%;color:#333;border:1px solid #f4f6fc}.form-designer .fields-list .field-label-disabled:hover{color:grey;border:1px dashed grey}.form-designer .fields-list .field-label-disabled>a{display:block;cursor:not-allowed;background:#f4f6fc;border:1px solid #f4f6fc}.form-designer .fields-list .field-label-disabled>a .icon{margin-right:6px;margin-left:8px;font-size:14px;display:inline-block;vertical-align:middle}.form-designer .fields-list .field-label-disabled>a span{display:inline-block;vertical-align:middle}.form-designer .widget-container{-webkit-box-flex:1;-ms-flex:1;flex:1;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0}.form-designer .widget-container .widget-container-header{height:45px!important;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom:2px solid #e4e7ed}.form-designer .widget-container .el-main{padding:0;position:relative}.form-designer .widget-form-container{height:100%;position:relative;top:0;left:0;right:0;bottom:0}.form-designer .widget-form-container .el-form,.form-designer .widget-form-container .el-form .el-row{height:100%}.form-designer .widget-form-container .widget-form-list{height:100%;min-height:calc(100% - 45px);padding-bottom:50px;overflow:hidden;overflow-y:scroll}.form-designer .widget-form-container .widget-form-list .widget-form-item{min-height:55px;padding:5px 10px 18px;margin:0;position:relative;border-left:5px solid transparent}.form-designer .widget-form-container .widget-form-list .widget-form-item.required .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-item:after{position:absolute;left:0;right:0;bottom:0;top:0;display:block;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-item:hover{background:#ecf8ff;cursor:move}.form-designer .widget-form-container .widget-form-list .widget-form-item.active{border-left:3px solid #409eff;background:#ecf5ff}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-delete{position:absolute;right:10px;bottom:-32px;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-item .widget-action-clone{position:absolute;right:50px;bottom:-32px;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-table{position:relative;padding:2px;float:left;width:100%}.form-designer .widget-form-container .widget-form-list .widget-form-table__content{display:-webkit-box;display:-ms-flexbox;display:flex;padding:10px 5px;width:100%;height:100%;overflow-y:hidden;outline:1px dashed #ccc;outline-offset:-1px;min-height:103px}.form-designer .widget-form-container .widget-form-list .widget-form-table__content .ghost{background:#fff;border-left:5px solid #409eff;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0!important;position:relative;outline:0 none;height:100%;min-height:90px;width:0!important;min-width:0!important;margin:1px 2px 0 2px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item{position:relative;min-width:33.3%;width:33.3%;padding:1px;height:100%}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.required .el-table__header .cell:before{content:"*";color:#f56c6c;margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item.active{outline:1px solid #409eff;outline-offset:-1px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:hover{outline:1px solid #409eff;outline-offset:-1px;cursor:move}.form-designer .widget-form-container .widget-form-list .widget-form-table__item:after{position:absolute;left:0;right:0;bottom:0;top:0;display:block;content:"";z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-delete{position:absolute;right:0;bottom:0;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone{position:absolute;right:30px;bottom:0;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .widget-table-action-clone i{font-size:10px}.form-designer .widget-form-container .widget-form-list .widget-form-table__item .el-button--small.is-circle{padding:5px}.form-designer .widget-form-container .widget-form-list .widget-form-table.active{border-left:3px solid #409eff;background:#ecf5ff}.form-designer .widget-form-container .widget-form-list .widget-form-table:hover{background:#ecf8ff;cursor:move}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-delete{position:absolute;right:10px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clear{position:absolute;right:50px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-table .widget-action-clone{position:absolute;right:90px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-group{position:relative;width:100%;float:left;padding:2px}.form-designer .widget-form-container .widget-form-list .widget-form-group__head{margin:10px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body{min-height:150px;height:100%;outline:1px dashed #ccc;outline-offset:-1px;overflow:hidden;padding-bottom:15px}.form-designer .widget-form-container .widget-form-list .widget-form-group__body .ghost{background:#fff;border-left:5px solid #409eff;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0!important;position:relative;outline:0 none;height:100%;min-height:57px;width:0!important;min-width:0!important;margin:1px 2px 0 2px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item{padding:10px;margin:3px;position:relative;border-left:5px solid transparent;background:#fff}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.required .el-form-item__label:before{content:"*";color:#f56c6c;margin-right:4px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item.active{outline:1px solid #409eff;outline-offset:-1px}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:hover{outline:1px solid #409eff;outline-offset:-1px;cursor:move}.form-designer .widget-form-container .widget-form-list .widget-form-group__item:after{position:absolute;left:0;right:0;bottom:0;top:0;display:block;content:"";z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--delete{position:absolute;right:0;bottom:-24px;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-group__item--clone{position:absolute;right:34px;bottom:-24px;z-index:1002}.form-designer .widget-form-container .widget-form-list .widget-form-group.active{border-left:3px solid #409eff;background:#ecf5ff}.form-designer .widget-form-container .widget-form-list .widget-form-group:hover{background:#ecf8ff;cursor:move}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-delete{position:absolute;right:10px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clear{position:absolute;right:50px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .widget-form-group .widget-action-clone{position:absolute;right:90px;bottom:-12px;z-index:1001}.form-designer .widget-form-container .widget-form-list .iconfont{font-size:13px}.form-designer .widget-form-container .widget-form-list .el-button--small.is-circle{padding:7px}.form-designer .widget-form-container .ghost{background:#fff;border-top:5px solid #409eff;-webkit-box-sizing:border-box;box-sizing:border-box;font-size:0;content:"";overflow:hidden;padding:0!important;position:relative;outline:0 none;height:0!important;width:100%;margin:2px 0}.form-designer .widget-config-container{height:100%;padding-top:5px}.form-designer .widget-config-container .el-tabs{height:100%}.form-designer .widget-config-container .el-tabs__header{margin:0;width:380px;height:45px;background:#fff;z-index:1000}.form-designer .widget-config-container .el-tabs__content{height:calc(100% - 45px);overflow-y:scroll}.form-designer .widget-config-container .widget-config .el-tabs__header{position:relative;display:block;top:0;margin:0}.form-designer .widget-config-container .widget-config .el-tabs__content{margin-top:0}.form-designer .widget-config-container .widget-config .ghost{background:#fff;border:1px dashed #409eff}.form-designer .widget-config-container .widget-config ul{margin:0;padding:0}.form-designer .widget-config-container .widget-config ul li{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%}.form-designer .widget-config-container .widget-config ul li .ghost{list-style:none;font-size:0;height:35px}.form-designer .widget-config-container .avue-group__item{padding:0}.form-designer .el-container{height:100%}.form-designer .el-container .el-main{height:calc(100% - 45px)}.form-designer .el-container .el-aside{background:#fff}.form-designer .danger{color:#f56c6c}.form-designer .warning{color:#e6a23c}.drawer-foot{position:absolute;bottom:0;left:0;right:0;padding:20px;display:-webkit-box;display:-ms-flexbox;display:flex}.drawer-foot button{width:50%}.drawer-foot>span{display:inline-block;width:50%}.drawer-foot>span button{width:100%}.preview-form{overflow-y:scroll;height:83vh}.popper-bo .el-alert{margin-bottom:10px}.el-drawer__wrapper :focus{outline:0}',""]),e.exports=t},"61c0":function(e,t,n){"use strict";var i=n("4eaf").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"63ef":function(e,t,n){var i=n("b896").f,r=n("fe32"),o=n("1810"),a=o("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},"642d":function(e,t,n){var i=n("e244");e.exports=i},6965:function(e,t,n){var i=n("1810"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"69f1":function(e,t,n){var i=n("55ab"),r=n("b896"),o=n("4d82");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"6a0b":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .overlayWidgets{position:absolute;top:0;left:0}",""]),e.exports=t},"6aad":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}",""]),e.exports=t},"6baf":function(e,t,n){var i=n("642d"),r=n("fe32"),o=n("aca4"),a=n("b896").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},"6cd1":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}",""]),e.exports=t},"6e10":function(e,t,n){var i=n("1810"),r=n("ca2b"),o=n("b896"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},"6e1d":function(e,t,n){"use strict";var i=n("ff5c"),r=n("030e"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(e){var t,n,r,s,d=this,h=c&&d.sticky,f=i.call(d),p=d.source,g=0,m=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),m=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",f)),u&&(n=new RegExp("^"+p+"$(?!\\s)",f)),l&&(t=d.lastIndex),r=o.call(h?n:d,m),h?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:l&&r&&(d.lastIndex=d.global?r.index+r[0].length:t),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),e.exports=s},"6edd":function(e,t,n){"use strict";var i=n("83ec"),r=n("f226").indexOf,o=n("3d1a"),a=n("9f1e"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},7043:function(e,t,n){var i=n("e5d9");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("e71c809e",i,!0,{sourceMap:!1,shadowMode:!1})},"70a8":function(e,t,n){var i=n("6a0b");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("66c11253",i,!0,{sourceMap:!1,shadowMode:!1})},7115:function(e,t,n){var i=n("c09a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("bf659326",i,!0,{sourceMap:!1,shadowMode:!1})},"72b1":function(e,t,n){var i=n("407e");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("30943f45",i,!0,{sourceMap:!1,shadowMode:!1})},"72c7":function(e,t,n){var i=n("e244"),r=n("69f1");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},"72d4":function(e,t,n){var i=n("ac97"),r=n("1810"),o=n("2c21"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},7352:function(e,t,n){"use strict";var i=n("e820"),r=n("7439"),o=n("fbcf"),a=n("0874"),s=n("a55b"),l=n("61c0"),c=n("ce47"),u=n("ec23"),d=n("6e1d"),h=n("ac97"),f=[].push,p=Math.min,g=4294967295,m=!h((function(){return!RegExp(g,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var s,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");while(s=d.call(m,i)){if(l=m.lastIndex,l>p&&(u.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&f.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o))break;m.lastIndex===s.index&&m.lastIndex++}return p===i.length?!c&&m.test("")||u.push(""):u.push(i.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var d=o(e),h=String(this),f=s(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),y=new f(m?d:"^(?:"+d.source+")",b),_=void 0===r?g:r>>>0;if(0===_)return[];if(0===h.length)return null===u(y,h)?[h]:[];var w=0,x=0,C=[];while(x<h.length){y.lastIndex=m?x:0;var S,k=u(y,m?h:h.slice(x));if(null===k||(S=p(c(y.lastIndex+(m?0:x)),h.length))===w)x=l(h,x,v);else{if(C.push(h.slice(w,x)),C.length===_)return C;for(var O=1;O<=k.length-1;O++)if(C.push(k[O]),C.length===_)return C;x=w=S}}return C.push(h.slice(w)),C}]}),!m)},7439:function(e,t,n){var i=n("eee7"),r=n("c401"),o=n("1810"),a=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},"769f":function(e,t,n){var i=n("f3d6");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("425648c8",i,!0,{sourceMap:!1,shadowMode:!1})},"76b2":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},"76d1":function(e,t,n){"use strict";
  53. /**!
  54. * Sortable 1.10.2
  55. * @author RubaXa <trash@rubaxa.org>
  56. * @author owenm <owen23355@gmail.com>
  57. * @license MIT
  58. */function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function l(e,t){if(null==e)return{};var n,i,r=s(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c(e){return u(e)||d(e)||h()}function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function d(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}n.r(t),n.d(t,"MultiDrag",(function(){return jt})),n.d(t,"Sortable",(function(){return Qe})),n.d(t,"Swap",(function(){return Ot}));var f="1.10.2";function p(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var g=p(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),m=p(/Edge/i),v=p(/firefox/i),b=p(/safari/i)&&!p(/chrome/i)&&!p(/android/i),y=p(/iP(ad|od|hone)/i),_=p(/chrome/i)&&p(/android/i),w={capture:!1,passive:!1};function x(e,t,n){e.addEventListener(t,n,!g&&w)}function C(e,t,n){e.removeEventListener(t,n,!g&&w)}function S(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function O(e,t,n,i){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||i&&e===n)return e;if(e===n)break}while(e=k(e))}return null}var M,D=/\s+/g;function E(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(D," ").replace(" "+t+" "," ");e.className=(i+(n?" "+t:"")).replace(D," ")}}function T(e,t,n){var i=e&&e.style;if(i){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=n+("string"===typeof n?"":"px")}}function L(e,t){var n="";if("string"===typeof e)n=e;else do{var i=T(e,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function I(e,t,n){if(e){var i=e.getElementsByTagName(t),r=0,o=i.length;if(n)for(;r<o;r++)n(i[r],r);return i}return[]}function A(){var e=document.scrollingElement;return e||document.documentElement}function N(e,t,n,i,r){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,u,d;if(e!==window&&e!==A()?(o=e.getBoundingClientRect(),a=o.top,s=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!g))do{if(r&&r.getBoundingClientRect&&("none"!==T(r,"transform")||n&&"static"!==T(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(T(r,"border-top-width")),s-=h.left+parseInt(T(r,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(r=r.parentNode);if(i&&e!==window){var f=L(r||e),p=f&&f.a,m=f&&f.d;f&&(a/=m,s/=p,d/=p,u/=m,l=a+u,c=s+d)}return{top:a,left:s,bottom:l,right:c,width:d,height:u}}}function P(e,t,n){var i=V(e,!0),r=N(e)[t];while(i){var o=N(i)[n],a=void 0;if(a="top"===n||"left"===n?r>=o:r<=o,!a)return i;if(i===A())break;i=V(i,!1)}return!1}function R(e,t,n){var i=0,r=0,o=e.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==Qe.ghost&&o[r]!==Qe.dragged&&O(o[r],n.draggable,e,!1)){if(i===t)return o[r];i++}r++}return null}function F(e,t){var n=e.lastElementChild;while(n&&(n===Qe.ghost||"none"===T(n,"display")||t&&!S(n,t)))n=n.previousElementSibling;return n||null}function j(e,t){var n=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Qe.clone||t&&!S(e,t)||n++;return n}function B(e){var t=0,n=0,i=A();if(e)do{var r=L(e),o=r.a,a=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==i&&(e=e.parentNode));return[t,n]}function z(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var i in t)if(t.hasOwnProperty(i)&&t[i]===e[n][i])return Number(n);return-1}function V(e,t){if(!e||!e.getBoundingClientRect)return A();var n=e,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=T(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return A();if(i||t)return n;i=!0}}}while(n=n.parentNode);return A()}function $(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function W(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function H(e,t){return function(){if(!M){var n=arguments,i=this;1===n.length?e.call(i,n[0]):e.apply(i,n),M=setTimeout((function(){M=void 0}),t)}}}function U(){clearTimeout(M),M=void 0}function q(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function G(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function K(e,t){T(e,"position","absolute"),T(e,"top",t.top),T(e,"left",t.left),T(e,"width",t.width),T(e,"height",t.height)}function Y(e){T(e,"position",""),T(e,"top",""),T(e,"left",""),T(e,"width",""),T(e,"height","")}var X="Sortable"+(new Date).getTime();function Z(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==T(e,"display")&&e!==Qe.ghost){t.push({target:e,rect:N(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var i=L(e,!0);i&&(n.top-=i.f,n.left-=i.e)}e.fromRect=n}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(z(t,{target:e}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof n&&n());var r=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=N(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=L(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&W(l,s)&&!W(a,s)&&(u.top-s.top)/(u.left-s.left)===(a.top-s.top)/(a.left-s.left)&&(t=J(u,l,c,i.options)),W(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=i.options.animation),i.animate(n,u,s,t)),t&&(r=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),r?e=setTimeout((function(){"function"===typeof n&&n()}),o):"function"===typeof n&&n(),t=[]},animate:function(e,t,n,i){if(i){T(e,"transition",""),T(e,"transform","");var r=L(this.el),o=r&&r.a,a=r&&r.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,T(e,"transform","translate3d("+s+"px,"+l+"px,0)"),Q(e),T(e,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),T(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){T(e,"transition",""),T(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),i)}}}}function Q(e){return e.offsetWidth}function J(e,t,n,i){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*i.animation}var ee=[],te={initializeByDefault:!0},ne={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.push(e)},pluginEvent:function(e,t,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var r=e+"Global";ee.forEach((function(i){t[i.pluginName]&&(t[i.pluginName][r]&&t[i.pluginName][r](a({sortable:t},n)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,i){for(var r in ee.forEach((function(i){var r=i.pluginName;if(e.options[r]||i.initializeByDefault){var a=new i(e,t,e.options);a.sortable=e,a.options=e.options,e[r]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);"undefined"!==typeof a&&(e.options[r]=a)}},getEventProperties:function(e,t){var n={};return ee.forEach((function(i){"function"===typeof i.eventProperties&&o(n,i.eventProperties.call(t[i.pluginName],e))})),n},modifyOption:function(e,t,n){var i;return ee.forEach((function(r){e[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[t]&&(i=r.optionListeners[t].call(e[r.pluginName],n))})),i}};function ie(e){var t=e.sortable,n=e.rootEl,i=e.name,r=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[X],t){var b,y=t.options,_="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||g||m?(b=document.createEvent("Event"),b.initEvent(i,!0,!0)):b=new CustomEvent(i,{bubbles:!0,cancelable:!0}),b.to=s||n,b.from=l||n,b.item=r||n,b.clone=o,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=h,b.originalEvent=f,b.pullMode=p?p.lastPutMode:void 0;var w=a({},v,ne.getEventProperties(i,t));for(var x in w)b[x]=w[x];n&&n.dispatchEvent(b),y[_]&&y[_].call(t,b)}}var re=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,r=l(n,["evt"]);ne.pluginEvent.bind(Qe)(e,t,a({dragEl:ae,parentEl:se,ghostEl:le,rootEl:ce,nextEl:ue,lastDownEl:de,cloneEl:he,cloneHidden:fe,dragStarted:Oe,putSortable:ye,activeSortable:Qe.active,originalEvent:i,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:ve,hideGhostForTarget:Ke,unhideGhostForTarget:Ye,cloneNowHidden:function(){fe=!0},cloneNowShown:function(){fe=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:i})}},r))};function oe(e){ie(a({putSortable:ye,cloneEl:he,targetEl:ae,rootEl:ce,oldIndex:pe,oldDraggableIndex:me,newIndex:ge,newDraggableIndex:ve},e))}var ae,se,le,ce,ue,de,he,fe,pe,ge,me,ve,be,ye,_e,we,xe,Ce,Se,ke,Oe,Me,De,Ee,Te,Le=!1,Ie=!1,Ae=[],Ne=!1,Pe=!1,Re=[],Fe=!1,je=[],Be="undefined"!==typeof document,ze=y,Ve=m||g?"cssFloat":"float",$e=Be&&!_&&!y&&"draggable"in document.createElement("div"),We=function(){if(Be){if(g)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),He=function(e,t){var n=T(e),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=R(e,0,t),o=R(e,1,t),a=r&&T(r),s=o&&T(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+N(r).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+N(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=i&&"none"===n[Ve]||o&&"none"===n[Ve]&&l+c>i)?"vertical":"horizontal"},Ue=function(e,t,n){var i=n?e.left:e.top,r=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return i===a||r===s||i+o/2===a+l/2},qe=function(e,t){var n;return Ae.some((function(i){if(!F(i)){var r=N(i),o=i[X].options.emptyInsertThreshold,a=e>=r.left-o&&e<=r.right+o,s=t>=r.top-o&&t<=r.bottom+o;return o&&a&&s?n=i:void 0}})),n},Ge=function(e){function t(e,n){return function(i,r,o,a){var s=i.options.group.name&&r.options.group.name&&i.options.group.name===r.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(i,r,o,a),n)(i,r,o,a);var l=(n?i:r).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},r=e.group;r&&"object"==i(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Ke=function(){!We&&le&&T(le,"display","none")},Ye=function(){!We&&le&&T(le,"display","")};Be&&document.addEventListener("click",(function(e){if(Ie)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ie=!1,!1}),!0);var Xe=function(e){if(ae){e=e.touches?e.touches[0]:e;var t=qe(e.clientX,e.clientY);if(t){var n={};for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[X]._onDragOver(n)}}},Ze=function(e){ae&&ae.parentNode[X]._isOutsideThisEl(e.target)};function Qe(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[X]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Qe.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in ne.initializePlugins(this,e,n),n)!(i in t)&&(t[i]=n[i]);for(var r in Ge(t),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!t.forceFallback&&$e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?x(e,"pointerdown",this._onTapStart):(x(e,"mousedown",this._onTapStart),x(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(x(e,"dragover",this),x(e,"dragenter",this)),Ae.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,Z())}function Je(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function et(e,t,n,i,r,o,a,s){var l,c,u=e[X],d=u.options.onMove;return!window.CustomEvent||g||m?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=i,l.related=r||t,l.relatedRect=o||N(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),d&&(c=d.call(u,l,a)),c}function tt(e){e.draggable=!1}function nt(){Fe=!1}function it(e,t,n){var i=N(F(n.el,n.options.draggable)),r=10;return t?e.clientX>i.right+r||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+r}function rt(e,t,n,i,r,o,a,s){var l=i?e.clientY:e.clientX,c=i?n.height:n.width,u=i?n.top:n.left,d=i?n.bottom:n.right,h=!1;if(!a)if(s&&Ee<c*r){if(!Ne&&(1===De?l>u+c*o/2:l<d-c*o/2)&&(Ne=!0),Ne)h=!0;else if(1===De?l<u+Ee:l>d-Ee)return-De}else if(l>u+c*(1-r)/2&&l<d-c*(1-r)/2)return ot(t);return h=h||a,h&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function ot(e){return j(ae)<j(e)?1:-1}function at(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,i=0;while(n--)i+=t.charCodeAt(n);return i.toString(36)}function st(e){je.length=0;var t=e.getElementsByTagName("input"),n=t.length;while(n--){var i=t[n];i.checked&&je.push(i)}}function lt(e){return setTimeout(e,0)}function ct(e){return clearTimeout(e)}Qe.prototype={constructor:Qe,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Me=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,ae):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=i.filter;if(st(n),!ae&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(s=O(s,i.draggable,n,!1),(!s||!s.animated)&&de!==s)){if(pe=j(s),me=j(s,i.draggable),"function"===typeof c){if(c.call(this,e,s,this))return oe({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),re("filter",t,{evt:e}),void(r&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(i){if(i=O(l,i.trim(),n,!1),i)return oe({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:n,toEl:n}),re("filter",t,{evt:e}),!0})),c))return void(r&&e.cancelable&&e.preventDefault());i.handle&&!O(l,i.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var i,r=this,o=r.el,a=r.options,s=o.ownerDocument;if(n&&!ae&&n.parentNode===o){var l=N(n);if(ce=o,ae=n,se=ae.parentNode,ue=ae.nextSibling,de=n,be=a.group,Qe.dragged=ae,_e={target:ae,clientX:(t||e).clientX,clientY:(t||e).clientY},Se=_e.clientX-l.left,ke=_e.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ae.style["will-change"]="all",i=function(){re("delayEnded",r,{evt:e}),Qe.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!v&&r.nativeDraggable&&(ae.draggable=!0),r._triggerDragStart(e,t),oe({sortable:r,name:"choose",originalEvent:e}),E(ae,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){I(ae,e.trim(),tt)})),x(s,"dragover",Xe),x(s,"mousemove",Xe),x(s,"touchmove",Xe),x(s,"mouseup",r._onDrop),x(s,"touchend",r._onDrop),x(s,"touchcancel",r._onDrop),v&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ae.draggable=!0),re("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(m||g))i();else{if(Qe.eventCanceled)return void this._onDrop();x(s,"mouseup",r._disableDelayedDrag),x(s,"touchend",r._disableDelayedDrag),x(s,"touchcancel",r._disableDelayedDrag),x(s,"mousemove",r._delayedDragTouchMoveHandler),x(s,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&x(s,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(i,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ae&&tt(ae),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?x(document,"pointermove",this._onTouchMove):x(document,t?"touchmove":"mousemove",this._onTouchMove):(x(ae,"dragend",this),x(ce,"dragstart",this._onDragStart));try{document.selection?lt((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Le=!1,ce&&ae){re("dragStarted",this,{evt:t}),this.nativeDraggable&&x(document,"dragover",Ze);var n=this.options;!e&&E(ae,n.dragClass,!1),E(ae,n.ghostClass,!0),Qe.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(we){this._lastX=we.clientX,this._lastY=we.clientY,Ke();var e=document.elementFromPoint(we.clientX,we.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(we.clientX,we.clientY),e===t)break;t=e}if(ae.parentNode[X]._isOutsideThisEl(e),t)do{if(t[X]){var n=void 0;if(n=t[X]._onDragOver({clientX:we.clientX,clientY:we.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ye()}},_onTouchMove:function(e){if(_e){var t=this.options,n=t.fallbackTolerance,i=t.fallbackOffset,r=e.touches?e.touches[0]:e,o=le&&L(le,!0),a=le&&o&&o.a,s=le&&o&&o.d,l=ze&&Te&&B(Te),c=(r.clientX-_e.clientX+i.x)/(a||1)+(l?l[0]-Re[0]:0)/(a||1),u=(r.clientY-_e.clientY+i.y)/(s||1)+(l?l[1]-Re[1]:0)/(s||1);if(!Qe.active&&!Le){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(le){o?(o.e+=c-(xe||0),o.f+=u-(Ce||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");T(le,"webkitTransform",d),T(le,"mozTransform",d),T(le,"msTransform",d),T(le,"transform",d),xe=c,Ce=u,we=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!le){var e=this.options.fallbackOnBody?document.body:ce,t=N(ae,!0,ze,!0,e),n=this.options;if(ze){Te=e;while("static"===T(Te,"position")&&"none"===T(Te,"transform")&&Te!==document)Te=Te.parentNode;Te!==document.body&&Te!==document.documentElement?(Te===document&&(Te=A()),t.top+=Te.scrollTop,t.left+=Te.scrollLeft):Te=A(),Re=B(Te)}le=ae.cloneNode(!0),E(le,n.ghostClass,!1),E(le,n.fallbackClass,!0),E(le,n.dragClass,!0),T(le,"transition",""),T(le,"transform",""),T(le,"box-sizing","border-box"),T(le,"margin",0),T(le,"top",t.top),T(le,"left",t.left),T(le,"width",t.width),T(le,"height",t.height),T(le,"opacity","0.8"),T(le,"position",ze?"absolute":"fixed"),T(le,"zIndex","100000"),T(le,"pointerEvents","none"),Qe.ghost=le,e.appendChild(le),T(le,"transform-origin",Se/parseInt(le.style.width)*100+"% "+ke/parseInt(le.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,i=e.dataTransfer,r=n.options;re("dragStart",this,{evt:e}),Qe.eventCanceled?this._onDrop():(re("setupClone",this),Qe.eventCanceled||(he=G(ae),he.draggable=!1,he.style["will-change"]="",this._hideClone(),E(he,this.options.chosenClass,!1),Qe.clone=he),n.cloneId=lt((function(){re("clone",n),Qe.eventCanceled||(n.options.removeCloneOnHide||ce.insertBefore(he,ae),n._hideClone(),oe({sortable:n,name:"clone"}))})),!t&&E(ae,r.dragClass,!0),t?(Ie=!0,n._loopId=setInterval(n._emulateDragOver,50)):(C(document,"mouseup",n._onDrop),C(document,"touchend",n._onDrop),C(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(n,i,ae)),x(document,"drop",n),T(ae,"transform","translateZ(0)")),Le=!0,n._dragStartId=lt(n._dragStarted.bind(n,t,e)),x(document,"selectstart",n),Oe=!0,b&&T(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,i,r,o=this.el,s=e.target,l=this.options,c=l.group,u=Qe.active,d=be===c,h=l.sort,f=ye||u,p=this,g=!1;if(!Fe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=O(s,l.draggable,o,!0),I("dragOver"),Qe.eventCanceled)return g;if(ae.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return R(!1);if(Ie=!1,u&&!l.disabled&&(d?h||(i=!ce.contains(ae)):ye===this||(this.lastPutMode=be.checkPull(this,u,ae,e))&&c.checkPut(this,u,ae,e))){if(r="vertical"===this._getDirection(e,s),t=N(ae),I("dragOverValid"),Qe.eventCanceled)return g;if(i)return se=ce,A(),this._hideClone(),I("revert"),Qe.eventCanceled||(ue?ce.insertBefore(ae,ue):ce.appendChild(ae)),R(!0);var m=F(o,l.draggable);if(!m||it(e,r,this)&&!m.animated){if(m===ae)return R(!1);if(m&&o===e.target&&(s=m),s&&(n=N(s)),!1!==et(ce,o,ae,t,s,n,e,!!s))return A(),o.appendChild(ae),se=o,B(),R(!0)}else if(s.parentNode===o){n=N(s);var v,b,y=0,_=ae.parentNode!==o,w=!Ue(ae.animated&&ae.toRect||t,s.animated&&s.toRect||n,r),x=r?"top":"left",C=P(s,"top","top")||P(ae,"top","top"),S=C?C.scrollTop:void 0;if(Me!==s&&(v=n[x],Ne=!1,Pe=!w&&l.invertSwap||_),y=rt(e,s,n,r,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Pe,Me===s),0!==y){var k=j(ae);do{k-=y,b=se.children[k]}while(b&&("none"===T(b,"display")||b===le))}if(0===y||b===s)return R(!1);Me=s,De=y;var M=s.nextElementSibling,D=!1;D=1===y;var L=et(ce,o,ae,t,s,n,e,D);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Fe=!0,setTimeout(nt,30),A(),D&&!M?o.appendChild(ae):s.parentNode.insertBefore(ae,D?M:s),C&&q(C,0,S-C.scrollTop),se=ae.parentNode,void 0===v||Pe||(Ee=Math.abs(v-N(s)[x])),B(),R(!0)}if(o.contains(ae))return R(!1)}return!1}function I(l,c){re(l,p,a({evt:e,isOwner:d,axis:r?"vertical":"horizontal",revert:i,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:R,onMove:function(n,i){return et(ce,o,ae,t,n,N(n),e,i)},changed:B},c))}function A(){I("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(t){return I("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==f&&(E(ae,ye?ye.options.ghostClass:u.options.ghostClass,!1),E(ae,l.ghostClass,!0)),ye!==p&&p!==Qe.active?ye=p:p===Qe.active&&ye&&(ye=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){I("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===ae&&!ae.animated||s===o&&!s.animated)&&(Me=null),l.dragoverBubble||e.rootEl||s===document||(ae.parentNode[X]._isOutsideThisEl(e.target),!t&&Xe(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function B(){ge=j(ae),ve=j(ae,l.draggable),oe({sortable:p,name:"change",toEl:o,newIndex:ge,newDraggableIndex:ve,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Xe),C(document,"mousemove",Xe),C(document,"touchmove",Xe)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ge=j(ae),ve=j(ae,n.draggable),re("drop",this,{evt:e}),se=ae&&ae.parentNode,ge=j(ae),ve=j(ae,n.draggable),Qe.eventCanceled||(Le=!1,Pe=!1,Ne=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ct(this.cloneId),ct(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),b&&T(document.body,"user-select",""),T(ae,"transform",""),e&&(Oe&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),le&&le.parentNode&&le.parentNode.removeChild(le),(ce===se||ye&&"clone"!==ye.lastPutMode)&&he&&he.parentNode&&he.parentNode.removeChild(he),ae&&(this.nativeDraggable&&C(ae,"dragend",this),tt(ae),ae.style["will-change"]="",Oe&&!Le&&E(ae,ye?ye.options.ghostClass:this.options.ghostClass,!1),E(ae,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:se,newIndex:null,newDraggableIndex:null,originalEvent:e}),ce!==se?(ge>=0&&(oe({rootEl:se,name:"add",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"remove",toEl:se,originalEvent:e}),oe({rootEl:se,name:"sort",toEl:se,fromEl:ce,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),ye&&ye.save()):ge!==pe&&ge>=0&&(oe({sortable:this,name:"update",toEl:se,originalEvent:e}),oe({sortable:this,name:"sort",toEl:se,originalEvent:e})),Qe.active&&(null!=ge&&-1!==ge||(ge=pe,ve=me),oe({sortable:this,name:"end",toEl:se,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){re("nulling",this),ce=ae=se=le=ue=he=de=fe=_e=we=Oe=ge=ve=pe=me=Me=De=ye=be=Qe.dragged=Qe.ghost=Qe.clone=Qe.active=null,je.forEach((function(e){e.checked=!0})),je.length=xe=Ce=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ae&&(this._onDragOver(e),Je(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,o=this.options;i<r;i++)e=n[i],O(e,o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||at(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,i){var r=n.children[i];O(r,this.options.draggable,n,!1)&&(t[e]=r)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return O(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var i=ne.modifyOption(this,e,t);n[e]="undefined"!==typeof i?i:t,"group"===e&&Ge(n)},destroy:function(){re("destroy",this);var e=this.el;e[X]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ae.splice(Ae.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!fe){if(re("hideClone",this),Qe.eventCanceled)return;T(he,"display","none"),this.options.removeCloneOnHide&&he.parentNode&&he.parentNode.removeChild(he),fe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(fe){if(re("showClone",this),Qe.eventCanceled)return;ce.contains(ae)&&!this.options.group.revertClone?ce.insertBefore(he,ae):ue?ce.insertBefore(he,ue):ce.appendChild(he),this.options.group.revertClone&&this.animate(ae,he),T(he,"display",""),fe=!1}}else this._hideClone()}},Be&&x(document,"touchmove",(function(e){(Qe.active||Le)&&e.cancelable&&e.preventDefault()})),Qe.utils={on:x,off:C,css:T,find:I,is:function(e,t){return!!O(e,t,e,!1)},extend:$,throttle:H,closest:O,toggleClass:E,clone:G,index:j,nextTick:lt,cancelNextTick:ct,detectDirection:He,getChild:R},Qe.get=function(e){return e[X]},Qe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Qe.utils=a({},Qe.utils,e.utils)),ne.mount(e)}))},Qe.create=function(e,t){return new Qe(e,t)},Qe.version=f;var ut,dt,ht,ft,pt,gt,mt=[],vt=!1;function bt(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?x(document,"dragover",this._handleAutoScroll):this.options.supportPointer?x(document,"pointermove",this._handleFallbackAutoScroll):t.touches?x(document,"touchmove",this._handleFallbackAutoScroll):x(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),_t(),yt(),U()},nulling:function(){pt=dt=ut=vt=gt=ht=ft=null,mt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(i,r);if(pt=e,t||m||g||b){xt(e,this.options,o,t);var a=V(o,!0);!vt||gt&&i===ht&&r===ft||(gt&&_t(),gt=setInterval((function(){var o=V(document.elementFromPoint(i,r),!0);o!==a&&(a=o,yt()),xt(e,n.options,o,t)}),10),ht=i,ft=r)}else{if(!this.options.bubbleScroll||V(o,!0)===A())return void yt();xt(e,this.options,V(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}function yt(){mt.forEach((function(e){clearInterval(e.pid)})),mt=[]}function _t(){clearInterval(gt)}var wt,xt=H((function(e,t,n,i){if(t.scroll){var r,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=A(),u=!1;dt!==n&&(dt=n,yt(),ut=t.scroll,r=t.scrollFn,!0===ut&&(ut=V(n,!0)));var d=0,h=ut;do{var f=h,p=N(f),g=p.top,m=p.bottom,v=p.left,b=p.right,y=p.width,_=p.height,w=void 0,x=void 0,C=f.scrollWidth,S=f.scrollHeight,k=T(f),O=f.scrollLeft,M=f.scrollTop;f===c?(w=y<C&&("auto"===k.overflowX||"scroll"===k.overflowX||"visible"===k.overflowX),x=_<S&&("auto"===k.overflowY||"scroll"===k.overflowY||"visible"===k.overflowY)):(w=y<C&&("auto"===k.overflowX||"scroll"===k.overflowX),x=_<S&&("auto"===k.overflowY||"scroll"===k.overflowY));var D=w&&(Math.abs(b-o)<=s&&O+y<C)-(Math.abs(v-o)<=s&&!!O),E=x&&(Math.abs(m-a)<=s&&M+_<S)-(Math.abs(g-a)<=s&&!!M);if(!mt[d])for(var L=0;L<=d;L++)mt[L]||(mt[L]={});mt[d].vx==D&&mt[d].vy==E&&mt[d].el===f||(mt[d].el=f,mt[d].vx=D,mt[d].vy=E,clearInterval(mt[d].pid),0==D&&0==E||(u=!0,mt[d].pid=setInterval(function(){i&&0===this.layer&&Qe.active._onTouchMove(pt);var t=mt[this.layer].vy?mt[this.layer].vy*l:0,n=mt[this.layer].vx?mt[this.layer].vx*l:0;"function"===typeof r&&"continue"!==r.call(Qe.dragged.parentNode[X],n,t,e,pt,mt[this.layer].el)||q(mt[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=V(h,!1)));vt=u}}),30),Ct=function(e){var t=e.originalEvent,n=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||r;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function St(){}function kt(){}function Ot(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;wt=t},dragOverValid:function(e){var t=e.completed,n=e.target,i=e.onMove,r=e.activeSortable,o=e.changed,a=e.cancel;if(r.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=wt;!1!==i(n)?(E(n,l.swapClass,!0),wt=n):wt=null,c&&c!==wt&&E(c,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,i=e.dragEl,r=n||this.sortable,o=this.options;wt&&E(wt,o.swapClass,!1),wt&&(o.swap||n&&n.options.swap)&&i!==wt&&(r.captureAnimationState(),r!==t&&t.captureAnimationState(),Mt(i,wt),r.animateAll(),r!==t&&t.animateAll())},nulling:function(){wt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:wt}}})}function Mt(e,t){var n,i,r=e.parentNode,o=t.parentNode;r&&o&&!r.isEqualNode(t)&&!o.isEqualNode(e)&&(n=j(e),i=j(t),r.isEqualNode(o)&&n<i&&i++,r.insertBefore(t,r.children[n]),o.insertBefore(e,o.children[i]))}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=R(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(t,i):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Ct},o(St,{pluginName:"revertOnSpill"}),kt.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable,i=n||this.sortable;i.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),i.animateAll()},drop:Ct},o(kt,{pluginName:"removeOnSpill"});var Dt,Et,Tt,Lt,It,At=[],Nt=[],Pt=!1,Rt=!1,Ft=!1;function jt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?x(document,"pointerup",this._deselectMultiDrag):(x(document,"mouseup",this._deselectMultiDrag),x(document,"touchend",this._deselectMultiDrag)),x(document,"keydown",this._checkKeyDown),x(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var i="";At.length&&Et===e?At.forEach((function(e,t){i+=(t?", ":"")+e.textContent})):i=n.textContent,t.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;Tt=t},delayEnded:function(){this.isMultiDrag=~At.indexOf(Tt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var i=0;i<At.length;i++)Nt.push(G(At[i])),Nt[i].sortableIndex=At[i].sortableIndex,Nt[i].draggable=!1,Nt[i].style["will-change"]="",E(Nt[i],this.options.selectedClass,!1),At[i]===Tt&&E(Nt[i],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,i=e.dispatchSortableEvent,r=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||At.length&&Et===t&&(zt(!0,n),i("clone"),r()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,i=e.cancel;this.isMultiDrag&&(zt(!1,n),Nt.forEach((function(e){T(e,"display","")})),t(),It=!1,i())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),i=e.cancel;this.isMultiDrag&&(Nt.forEach((function(e){T(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),It=!0,i())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Et&&Et.multiDrag._deselectMultiDrag(),At.forEach((function(e){e.sortableIndex=j(e)})),At=At.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ft=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){At.forEach((function(e){e!==Tt&&T(e,"position","absolute")}));var i=N(Tt,!1,!0,!0);At.forEach((function(e){e!==Tt&&K(e,i)})),Rt=!0,Pt=!0}n.animateAll((function(){Rt=!1,Pt=!1,t.options.animation&&At.forEach((function(e){Y(e)})),t.options.sort&&Vt()}))}},dragOver:function(e){var t=e.target,n=e.completed,i=e.cancel;Rt&&~At.indexOf(t)&&(n(!1),i())},revert:function(e){var t=e.fromSortable,n=e.rootEl,i=e.sortable,r=e.dragRect;At.length>1&&(At.forEach((function(e){i.addAnimationState({target:e,rect:Rt?N(e):r}),Y(e),e.fromRect=r,t.removeAnimationState(e)})),Rt=!1,Bt(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,i=e.insertion,r=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(i){if(n&&r._hideClone(),Pt=!1,s.animation&&At.length>1&&(Rt||!n&&!r.options.sort&&!a)){var l=N(Tt,!1,!0,!0);At.forEach((function(e){e!==Tt&&(K(e,l),o.appendChild(e))})),Rt=!0}if(!n)if(Rt||Vt(),At.length>1){var c=It;r._showClone(t),r.options.animation&&!It&&c&&Nt.forEach((function(e){r.addAnimationState({target:e,rect:Lt}),e.fromRect=Lt,e.thisAnimationDuration=null}))}else r._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,i=e.activeSortable;if(At.forEach((function(e){e.thisAnimationDuration=null})),i.options.animation&&!n&&i.multiDrag.isMultiDrag){Lt=o({},t);var r=L(Tt,!0);Lt.top-=r.f,Lt.left-=r.e}},dragOverAnimationComplete:function(){Rt&&(Rt=!1,Vt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,i=e.parentEl,r=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=i.children;if(!Ft)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),E(Tt,c.selectedClass,!~At.indexOf(Tt)),~At.indexOf(Tt))At.splice(At.indexOf(Tt),1),Dt=null,ie({sortable:r,rootEl:n,name:"deselect",targetEl:Tt,originalEvt:t});else{if(At.push(Tt),ie({sortable:r,rootEl:n,name:"select",targetEl:Tt,originalEvt:t}),t.shiftKey&&Dt&&r.el.contains(Dt)){var d,h,f=j(Dt),p=j(Tt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~At.indexOf(u[h])||(E(u[h],c.selectedClass,!0),At.push(u[h]),ie({sortable:r,rootEl:n,name:"select",targetEl:u[h],originalEvt:t}))}else Dt=Tt;Et=l}if(Ft&&this.isMultiDrag){if((i[X].options.sort||i!==n)&&At.length>1){var g=N(Tt),m=j(Tt,":not(."+this.options.selectedClass+")");if(!Pt&&c.animation&&(Tt.thisAnimationDuration=null),l.captureAnimationState(),!Pt&&(c.animation&&(Tt.fromRect=g,At.forEach((function(e){if(e.thisAnimationDuration=null,e!==Tt){var t=Rt?N(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),Vt(),At.forEach((function(e){u[m]?i.insertBefore(e,u[m]):i.appendChild(e),m++})),a===j(Tt))){var v=!1;At.forEach((function(e){e.sortableIndex===j(e)||(v=!0)})),v&&o("update")}At.forEach((function(e){Y(e)})),l.animateAll()}Et=l}(n===i||s&&"clone"!==s.lastPutMode)&&Nt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Ft=!1,Nt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),C(document,"pointerup",this._deselectMultiDrag),C(document,"mouseup",this._deselectMultiDrag),C(document,"touchend",this._deselectMultiDrag),C(document,"keydown",this._checkKeyDown),C(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(("undefined"===typeof Ft||!Ft)&&Et===this.sortable&&(!e||!O(e.target,this.options.draggable,this.sortable.el,!1))&&(!e||0===e.button))while(At.length){var t=At[0];E(t,this.options.selectedClass,!1),At.shift(),ie({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[X];t&&t.options.multiDrag&&!~At.indexOf(e)&&(Et&&Et!==t&&(Et.multiDrag._deselectMultiDrag(),Et=t),E(e,t.options.selectedClass,!0),At.push(e))},deselect:function(e){var t=e.parentNode[X],n=At.indexOf(e);t&&t.options.multiDrag&&~n&&(E(e,t.options.selectedClass,!1),At.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return At.forEach((function(i){var r;t.push({multiDragElement:i,index:i.sortableIndex}),r=Rt&&i!==Tt?-1:Rt?j(i,":not(."+e.options.selectedClass+")"):j(i),n.push({multiDragElement:i,index:r})})),{items:c(At),clones:[].concat(Nt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),"ctrl"===e?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Bt(e,t){At.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function zt(e,t){Nt.forEach((function(n,i){var r=t.children[n.sortableIndex+(e?Number(i):0)];r?t.insertBefore(n,r):t.appendChild(n)}))}function Vt(){At.forEach((function(e){e!==Tt&&e.parentNode&&e.parentNode.removeChild(e)}))}Qe.mount(new bt),Qe.mount(kt,St),t["default"]=Qe},"7d86":function(e,t,n){var i=n("e244"),r=n("69f1"),o=n("fe32"),a=n("72c7"),s=n("9550"),l=n("35d6"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),l=u(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==i?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:r(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},"7e50":function(e,t,n){var i=n("83ec"),r=n("ac97"),o=n("45ad"),a=n("42b1").f,s=n("55ab"),l=r((function(){a(1)})),c=!s||l;i({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},"7eca":function(e,t,n){"use strict";function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}function r(e,t,...n){return i(t,n)}n.r(t),n.d(t,"CancellationTokenSource",(function(){return xR})),n.d(t,"Emitter",(function(){return CR})),n.d(t,"KeyCode",(function(){return SR})),n.d(t,"KeyMod",(function(){return kR})),n.d(t,"Position",(function(){return OR})),n.d(t,"Range",(function(){return MR})),n.d(t,"Selection",(function(){return DR})),n.d(t,"SelectionDirection",(function(){return ER})),n.d(t,"MarkerSeverity",(function(){return TR})),n.d(t,"MarkerTag",(function(){return LR})),n.d(t,"Uri",(function(){return IR})),n.d(t,"Token",(function(){return AR})),n.d(t,"editor",(function(){return NR})),n.d(t,"languages",(function(){return PR}));var o=n("1cb4");const a="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function s(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of a)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const l=s();function c(e){let t=l;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const u={maxLen:1e3,windowSize:15,timeBudget:150};function d(e,t,n,i,r=u){if(n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?(i+=e,o=0):i+=o,n=n.substring(o,e+r.maxLen/2),d(e,t,n,i,r)}Date.now();const o=e-1-i;let a=-1,s=null;for(let l=1;;l++){Date.now(),r.timeBudget;const e=o-r.windowSize*l;t.lastIndex=Math.max(0,e);const i=h(t,n,o,a);if(!i&&s)break;if(s=i,e<=0)break;a=e}if(s){let e={word:s[0],startColumn:i+1+s.index,endColumn:i+1+s.index+s[0].length};return t.lastIndex=0,e}return null}function h(e,t,n,i){let r;while(r=e.exec(t)){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}const f=8;class p{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class g{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class m{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class v{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}compute(e,t,n){return n}}class b{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class y{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,n){return n}}class _ extends y{static boolean(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}constructor(e,t,n,i){"undefined"!==typeof i&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return _.boolean(e,this.defaultValue)}}class w extends y{constructor(e,t,n,i,r,o){"undefined"!==typeof o&&(o.type="integer",o.default=n,o.minimum=i,o.maximum=r),super(e,t,n,o),this.minimum=i,this.maximum=r}static clampedInt(e,t,n,i){if("undefined"===typeof e)return t;let r=parseInt(e,10);return isNaN(r)?t:(r=Math.max(n,r),r=Math.min(i,r),0|r)}validate(e){return w.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class x extends y{constructor(e,t,n,i,r){"undefined"!==typeof r&&(r.type="number",r.default=n),super(e,t,n,r),this.validationFn=i}static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const n=parseFloat(e);return isNaN(n)?t:n}validate(e){return this.validationFn(x.float(e,this.defaultValue))}}class C extends y{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,n,i){"undefined"!==typeof i&&(i.type="string",i.default=n),super(e,t,n,i)}validate(e){return C.string(e,this.defaultValue)}}class S extends y{constructor(e,t,n,i,r){"undefined"!==typeof r&&(r.type="string",r.enum=i,r.default=n),super(e,t,n,r),this._allowedValues=i}static stringSet(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e}validate(e){return S.stringSet(e,this.defaultValue,this._allowedValues)}}class k extends v{constructor(e,t,n,i,r,o,a){"undefined"!==typeof a&&(a.type="string",a.enum=r,a.default=i),super(e,t,n,a),this._allowedValues=r,this._convert=o}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}function O(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class M extends v{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[r("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),r("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:r("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return 0===n?e.accessibilitySupport:n}}class D extends v{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(14,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:r("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:r("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:_.boolean(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:_.boolean(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function E(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var T;function L(e){switch(e){case"line":return T.Line;case"block":return T.Block;case"underline":return T.Underline;case"line-thin":return T.LineThin;case"block-outline":return T.BlockOutline;case"underline-thin":return T.UnderlineThin}}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(T||(T={}));class I extends b{constructor(){super(114,[57,27])}compute(e,t,n){const i=["monaco-editor"];return t.get(27)&&i.push(t.get(27)),e.extraEditorClassName&&i.push(e.extraEditorClassName),"default"===t.get(57)?i.push("mouse-default"):"copy"===t.get(57)&&i.push("mouse-copy"),t.get(92)&&i.push("showUnused"),t.get(113)&&i.push("showDeprecated"),i.join(" ")}}class A extends _{constructor(){super(26,"emptySelectionClipboard",!0,{description:r("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class N extends v{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(29,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:r("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:e.seedSearchStringFromSelection,description:r("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[r("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),r("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),r("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:r("find.autoFindInSelection","Controls the condition for turning on find in selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:r("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:o["f"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:r("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:r("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:_.boolean(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:_.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":S.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:_.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:_.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:_.boolean(t.loop,this.defaultValue.loop)}}}class P extends v{constructor(){super(37,"fontLigatures",P.OFF,{anyOf:[{type:"boolean",description:r("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:r("fontFeatureSettings","Explicit font-feature-settings.")}],description:r("fontLigaturesGeneral","Configures font ligatures or font features."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?P.OFF:"true"===e?P.ON:e:Boolean(e)?P.ON:P.OFF}}P.OFF='"liga" off, "calt" off',P.ON='"liga" on, "calt" on';class R extends b{constructor(){super(36)}compute(e,t,n){return e.fontInfo}}class F extends y{constructor(){super(38,"fontSize",le.fontSize,{type:"number",minimum:6,maximum:100,default:le.fontSize,description:r("fontSize","Controls the font size in pixels.")})}validate(e){let t=x.float(e,this.defaultValue);return 0===t?le.fontSize:x.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}class j extends v{constructor(){super(39,"fontWeight",le.fontWeight,{anyOf:[{type:"number",minimum:j.MINIMUM_VALUE,maximum:j.MAXIMUM_VALUE,errorMessage:r("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:j.SUGGESTION_VALUES}],default:le.fontWeight,description:r("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(w.clampedInt(e,le.fontWeight,j.MINIMUM_VALUE,j.MAXIMUM_VALUE))}}j.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],j.MINIMUM_VALUE=1,j.MAXIMUM_VALUE=1e3;class B extends v{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[r("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};super(43,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:r("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:r("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:r("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleDeclarations":Object.assign({description:r("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:r("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({description:r("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},t),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,description:r("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,description:r("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,description:r("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,description:r("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,description:r("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,n,i,r,o;if(!e||"object"!==typeof e)return this.defaultValue;const a=e;return{multiple:S.stringSet(a.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=a.multipleDefinitions)&&void 0!==t?t:S.stringSet(a.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=a.multipleTypeDefinitions)&&void 0!==n?n:S.stringSet(a.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=a.multipleDeclarations)&&void 0!==i?i:S.stringSet(a.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(r=a.multipleImplementations)&&void 0!==r?r:S.stringSet(a.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=a.multipleReferences)&&void 0!==o?o:S.stringSet(a.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:C.string(a.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:C.string(a.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:C.string(a.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:C.string(a.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:C.string(a.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class z extends v{constructor(){const e={enabled:!0,delay:300,sticky:!0};super(46,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:r("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,description:r("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:r("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_.boolean(t.enabled,this.defaultValue.enabled),delay:w.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:_.boolean(t.sticky,this.defaultValue.sticky)}}}class V extends b{constructor(){super(117,[42,50,31,56,84,52,53,86,106,109,110,2])}compute(e,t,n){return V.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=e.scrollBeyondLastLine?t-1:0,i=(e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/i);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:i,minimapLineCount:r}}static _computeMinimapLayout(e,t){const n=e.outerWidth,i=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,s=e.lineHeight,l=e.typicalHalfwidthCharacterWidth,c=e.scrollBeyondLastLine,u=e.minimap.renderCharacters;let d=r>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const h=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,y=e.isViewportWrapping,_=u?2:3;let w=Math.floor(r*i);const x=w/r;let C=!1,S=!1,k=_*d,O=d/r,M=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:n,extraLinesBeyondLastLine:o,desiredRatio:l,minimapLineCount:u}=V.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:c,height:i,lineHeight:s,pixelRatio:r}),h=v/u;if(h>1)C=!0,S=!0,d=1,k=1,O=d/r;else{let i=!1,c=d+1;if("fit"===p){const n=Math.ceil((v+o)*k);y&&a&&b<=t.stableFitRemainingWidth?(i=!0,c=t.stableFitMaxMinimapScale):(i=n>w,y&&i?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0))}if("fill"===p||i){C=!0;const e=d;k=Math.min(s*r,Math.max(1,Math.floor(1/l))),d=Math.min(c,Math.max(1,Math.floor(k/_))),d>e&&(M=Math.min(2,d/e)),O=d/r/M,w=Math.ceil(Math.max(n,v+o)*k),y&&i&&(t.stableFitMaxMinimapScale=d)}}}const D=Math.floor(h*O),E=Math.min(D,Math.max(0,Math.floor((b-m-2)*O/(l+O)))+f);let T=Math.floor(r*E);const L=T/r;T=Math.floor(T*M);const I=u?1:2,A="left"===g?0:n-E-m;return{renderMinimap:I,minimapLeft:A,minimapWidth:E,minimapHeightIsEditorHeight:C,minimapIsSampling:S,minimapScale:d,minimapLineHeight:k,minimapCanvasInnerWidth:T,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:L,minimapCanvasOuterHeight:x}}static computeLayout(e,t){const n=0|t.outerWidth,i=0|t.outerHeight,r=0|t.lineHeight,o=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,s=t.maxDigitWidth,l=t.pixelRatio,c=t.viewLineCount,u=e.get(106),d=e.get(109),h=e.get(110),f=e.get(2),p=t.isDominatedByLongLines,g=e.get(42),v=0!==e.get(52).renderType,b=e.get(53),y=e.get(86),_=e.get(56),x=e.get(84),C=x.verticalScrollbarSize,S=x.verticalHasArrows,k=x.arrowSize,O=x.horizontalScrollbarSize,M=e.get(50),D=e.get(31);let E;if("string"===typeof M&&/^\d+(\.\d+)?ch$/.test(M)){const e=parseFloat(M.substr(0,M.length-2));E=w.clampedInt(e*a,0,0,1e3)}else E=w.clampedInt(M,0,0,1e3);D&&(E+=16);let T=0;if(v){const e=Math.max(o,b);T=Math.round(e*s)}let L=0;g&&(L=r);let I=0,A=I+L,N=A+T,P=N+E;const R=n-L-T-E;let F=!1,j=!1,B=-1;2!==f&&(h&&p?(F=!0,j=!0):"on"===u||"bounded"===u?j=!0:"wordWrapColumn"===u&&(B=d));const z=V._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:a,pixelRatio:l,scrollBeyondLastLine:y,minimap:_,verticalScrollbarWidth:C,viewLineCount:c,remainingWidth:R,isViewportWrapping:j},t.memory||new m);0!==z.renderMinimap&&0===z.minimapLeft&&(I+=z.minimapWidth,A+=z.minimapWidth,N+=z.minimapWidth,P+=z.minimapWidth);const $=R-z.minimapWidth,W=Math.max(1,Math.floor(($-C-2)/a)),H=S?k:0;return j&&(B=Math.max(1,W),"bounded"===u&&(B=Math.min(B,d))),{width:n,height:i,glyphMarginLeft:I,glyphMarginWidth:L,lineNumbersLeft:A,lineNumbersWidth:T,decorationsLeft:N,decorationsWidth:E,contentLeft:P,contentWidth:$,minimap:z,viewportColumn:W,isWordWrapMinified:F,isViewportWrapping:j,wrappingColumn:B,verticalScrollbarWidth:C,horizontalScrollbarHeight:O,overviewRuler:{top:H,width:C,height:i-2*H,right:0}}}}class $ extends v{constructor(){const e={enabled:!0};super(49,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:r("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_.boolean(t.enabled,this.defaultValue.enabled)}}}class W extends w{constructor(){super(51,"lineHeight",le.lineHeight,0,150,{description:r("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})}compute(e,t,n){return e.fontInfo.lineHeight}}class H extends v{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(56,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:r("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[r("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),r("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),r("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:r("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:r("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:r("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:r("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:r("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:r("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_.boolean(t.enabled,this.defaultValue.enabled),size:S.stringSet(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:S.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:S.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:_.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:w.clampedInt(t.scale,1,1,3),maxColumn:w.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function U(e){return"ctrlCmd"===e?o["f"]?"metaKey":"ctrlKey":"altKey"}class q extends v{constructor(){super(66,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:r("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:r("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:w.clampedInt(t.top,0,0,1e3),bottom:w.clampedInt(t.bottom,0,0,1e3)}}}class G extends v{constructor(){const e={enabled:!0,cycle:!1};super(67,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:r("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:r("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:_.boolean(t.enabled,this.defaultValue.enabled),cycle:_.boolean(t.cycle,this.defaultValue.cycle)}}}class K extends b{constructor(){super(115)}compute(e,t,n){return e.pixelRatio}}class Y extends v{constructor(){const e={other:!0,comments:!1,strings:!1};super(70,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:r("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:r("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:r("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:r("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if("boolean"===typeof e)return e;if(e&&"object"===typeof e){const t=e,n={other:_.boolean(t.other,this.defaultValue.other),comments:_.boolean(t.comments,this.defaultValue.comments),strings:_.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue}}class X extends v{constructor(){super(52,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r("lineNumbers.off","Line numbers are not rendered."),r("lineNumbers.on","Line numbers are rendered as absolute number."),r("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}}}function Z(e){const t=e.get(79);return"editable"===t?e.get(72):"on"!==t}class Q extends v{constructor(){const e=[],t={type:"number",description:r("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(83,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:r("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:r("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){let t=[];for(let n of e)if("number"===typeof n)t.push({column:w.clampedInt(n,0,0,1e4),color:null});else if(n&&"object"===typeof n){const e=n;t.push({column:w.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}function J(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}class ee extends v{constructor(){super(84,"scrollbar",{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,n=w.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=w.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:w.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:J(t.vertical,this.defaultValue.vertical),horizontal:J(t.horizontal,this.defaultValue.horizontal),useShadows:_.boolean(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:_.boolean(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:_.boolean(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:_.boolean(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:_.boolean(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:w.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:w.clampedInt(t.verticalSliderSize,i,0,1e3)}}}class te extends v{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,showMethods:!0,showFunctions:!0,showConstructors:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0,statusBar:{visible:!1}};super(96,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[r("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),r("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:r("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:r("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:r("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:r("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:r("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:r("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:e.maxVisibleSuggestions,minimum:1,maximum:15,description:r("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:r("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:r("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")},"editor.suggest.statusBar.visible":{type:"boolean",default:!1,markdownDescription:r("editor.suggest.statusBar.visible","Controls the visibility of the status bar at the bottom of the suggest widget.")}})}validate(e){var t;if(!e||"object"!==typeof e)return this.defaultValue;const n=e;return{insertMode:S.stringSet(n.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:_.boolean(n.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:_.boolean(n.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:_.boolean(n.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:_.boolean(n.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:_.boolean(n.showIcons,this.defaultValue.showIcons),maxVisibleSuggestions:w.clampedInt(n.maxVisibleSuggestions,this.defaultValue.maxVisibleSuggestions,1,15),showMethods:_.boolean(n.showMethods,this.defaultValue.showMethods),showFunctions:_.boolean(n.showFunctions,this.defaultValue.showFunctions),showConstructors:_.boolean(n.showConstructors,this.defaultValue.showConstructors),showFields:_.boolean(n.showFields,this.defaultValue.showFields),showVariables:_.boolean(n.showVariables,this.defaultValue.showVariables),showClasses:_.boolean(n.showClasses,this.defaultValue.showClasses),showStructs:_.boolean(n.showStructs,this.defaultValue.showStructs),showInterfaces:_.boolean(n.showInterfaces,this.defaultValue.showInterfaces),showModules:_.boolean(n.showModules,this.defaultValue.showModules),showProperties:_.boolean(n.showProperties,this.defaultValue.showProperties),showEvents:_.boolean(n.showEvents,this.defaultValue.showEvents),showOperators:_.boolean(n.showOperators,this.defaultValue.showOperators),showUnits:_.boolean(n.showUnits,this.defaultValue.showUnits),showValues:_.boolean(n.showValues,this.defaultValue.showValues),showConstants:_.boolean(n.showConstants,this.defaultValue.showConstants),showEnums:_.boolean(n.showEnums,this.defaultValue.showEnums),showEnumMembers:_.boolean(n.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:_.boolean(n.showKeywords,this.defaultValue.showKeywords),showWords:_.boolean(n.showWords,this.defaultValue.showWords),showColors:_.boolean(n.showColors,this.defaultValue.showColors),showFiles:_.boolean(n.showFiles,this.defaultValue.showFiles),showReferences:_.boolean(n.showReferences,this.defaultValue.showReferences),showFolders:_.boolean(n.showFolders,this.defaultValue.showFolders),showTypeParameters:_.boolean(n.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:_.boolean(n.showSnippets,this.defaultValue.showSnippets),showUsers:_.boolean(n.showUsers,this.defaultValue.showUsers),showIssues:_.boolean(n.showIssues,this.defaultValue.showIssues),statusBar:{visible:_.boolean(null===(t=n.statusBar)||void 0===t?void 0:t.visible,!!this.defaultValue.statusBar.visible)}}}}class ne extends b{constructor(){super(116,[72])}compute(e,t,n){const i=t.get(72);return!!i||e.tabFocusMode}}function ie(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class re extends b{constructor(){super(118,[117])}compute(e,t,n){const i=t.get(117);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}const oe="Consolas, 'Courier New', monospace",ae="Menlo, Monaco, 'Courier New', monospace",se="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",le={fontFamily:o["f"]?ae:o["d"]?se:oe,fontWeight:"normal",fontSize:o["f"]?12:14,lineHeight:0,letterSpacing:0},ce={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},ue=[];function de(e){return ue[e.id]=e,e}const he={acceptSuggestionOnCommitCharacter:de(new _(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:r("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:de(new S(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",r("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:r("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:de(new M),accessibilityPageSize:de(new w(3,"accessibilityPageSize",10,1,1073741824,{description:r("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:de(new C(4,"ariaLabel",r("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:de(new S(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),r("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:r("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingOvertype:de(new S(6,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",r("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:r("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:de(new S(7,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",r("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),r("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:r("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:de(new k(8,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],O,{enumDescriptions:[r("editor.autoIndent.none","The editor will not insert indentation automatically."),r("editor.autoIndent.keep","The editor will keep the current line's indentation."),r("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),r("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),r("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:r("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:de(new _(9,"automaticLayout",!1)),autoSurround:de(new S(10,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[r("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),r("editor.autoSurround.quotes","Surround with quotes but not brackets."),r("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:r("autoSurround","Controls whether the editor should automatically surround selections.")})),codeLens:de(new _(11,"codeLens",!0,{description:r("codeLens","Controls whether the editor shows CodeLens.")})),colorDecorators:de(new _(12,"colorDecorators",!0,{description:r("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:de(new _(13,"columnSelection",!1,{description:r("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:de(new D),contextmenu:de(new _(15,"contextmenu",!0)),copyWithSyntaxHighlighting:de(new _(16,"copyWithSyntaxHighlighting",!0,{description:r("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:de(new k(17,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],E,{description:r("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:de(new _(18,"cursorSmoothCaretAnimation",!1,{description:r("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:de(new k(19,"cursorStyle",T.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],L,{description:r("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:de(new w(20,"cursorSurroundingLines",0,0,1073741824,{description:r("cursorSurroundingLines","Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors.")})),cursorSurroundingLinesStyle:de(new S(21,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[r("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),r("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:r("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:de(new w(22,"cursorWidth",0,0,1073741824,{markdownDescription:r("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:de(new _(23,"disableLayerHinting",!1)),disableMonospaceOptimizations:de(new _(24,"disableMonospaceOptimizations",!1)),dragAndDrop:de(new _(25,"dragAndDrop",!0,{description:r("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:de(new A),extraEditorClassName:de(new C(27,"extraEditorClassName","")),fastScrollSensitivity:de(new x(28,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:r("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:de(new N),fixedOverflowWidgets:de(new _(30,"fixedOverflowWidgets",!1)),folding:de(new _(31,"folding",!0,{description:r("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:de(new S(32,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[r("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),r("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:r("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:de(new _(33,"foldingHighlight",!0,{description:r("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),unfoldOnClickAfterEndOfLine:de(new _(34,"unfoldOnClickAfterEndOfLine",!1,{description:r("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:de(new C(35,"fontFamily",le.fontFamily,{description:r("fontFamily","Controls the font family.")})),fontInfo:de(new R),fontLigatures2:de(new P),fontSize:de(new F),fontWeight:de(new j),formatOnPaste:de(new _(40,"formatOnPaste",!1,{description:r("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:de(new _(41,"formatOnType",!1,{description:r("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:de(new _(42,"glyphMargin",!0,{description:r("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:de(new B),hideCursorInOverviewRuler:de(new _(44,"hideCursorInOverviewRuler",!1,{description:r("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:de(new _(45,"highlightActiveIndentGuide",!0,{description:r("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:de(new z),inDiffEditor:de(new _(47,"inDiffEditor",!1)),letterSpacing:de(new x(48,"letterSpacing",le.letterSpacing,e=>x.clamp(e,-5,20),{description:r("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:de(new $),lineDecorationsWidth:de(new y(50,"lineDecorationsWidth",10)),lineHeight:de(new W),lineNumbers:de(new X),lineNumbersMinChars:de(new w(53,"lineNumbersMinChars",5,1,300)),links:de(new _(54,"links",!0,{description:r("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:de(new S(55,"matchBrackets","always",["always","near","never"],{description:r("matchBrackets","Highlight matching brackets.")})),minimap:de(new H),mouseStyle:de(new S(57,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:de(new x(58,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:r("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:de(new _(59,"mouseWheelZoom",!1,{markdownDescription:r("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:de(new _(60,"multiCursorMergeOverlapping",!0,{description:r("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:de(new k(61,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],U,{markdownEnumDescriptions:[r("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:r({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:de(new S(62,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[r("multiCursorPaste.spread","Each cursor pastes a single line of the text."),r("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:r("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),occurrencesHighlight:de(new _(63,"occurrencesHighlight",!0,{description:r("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:de(new _(64,"overviewRulerBorder",!0,{description:r("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:de(new w(65,"overviewRulerLanes",3,0,3)),padding:de(new q),parameterHints:de(new G),peekWidgetDefaultFocus:de(new S(68,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[r("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),r("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:r("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:de(new _(69,"definitionLinkOpensInPeek",!1,{description:r("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:de(new Y),quickSuggestionsDelay:de(new w(71,"quickSuggestionsDelay",10,0,1073741824,{description:r("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:de(new _(72,"readOnly",!1)),renameOnType:de(new _(73,"renameOnType",!1,{description:r("renameOnType","Controls whether the editor auto renames on type.")})),renderControlCharacters:de(new _(74,"renderControlCharacters",!1,{description:r("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:de(new _(75,"renderIndentGuides",!0,{description:r("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:de(new _(76,"renderFinalNewline",!0,{description:r("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:de(new S(77,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",r("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:r("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:de(new _(78,"renderLineHighlightOnlyWhenFocus",!1,{description:r("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused")})),renderValidationDecorations:de(new S(79,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:de(new S(80,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",r("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),r("renderWhitespace.selection","Render whitespace characters only on selected text."),r("renderWhitespace.trailing","Render only trailing whitespace characters"),""],description:r("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:de(new w(81,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:de(new _(82,"roundedSelection",!0,{description:r("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:de(new Q),scrollbar:de(new ee),scrollBeyondLastColumn:de(new w(85,"scrollBeyondLastColumn",5,0,1073741824,{description:r("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:de(new _(86,"scrollBeyondLastLine",!0,{description:r("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:de(new _(87,"scrollPredominantAxis",!0,{description:r("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:de(new _(88,"selectionClipboard",!0,{description:r("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:o["d"]})),selectionHighlight:de(new _(89,"selectionHighlight",!0,{description:r("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:de(new _(90,"selectOnLineNumbers",!0)),showFoldingControls:de(new S(91,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[r("showFoldingControls.always","Always show the folding controls."),r("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:r("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:de(new _(92,"showUnused",!0,{description:r("showUnused","Controls fading out of unused code.")})),showDeprecated:de(new _(113,"showDeprecated",!0,{description:r("showDeprecated","Controls strikethrough deprecated variables.")})),snippetSuggestions:de(new S(93,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[r("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),r("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),r("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),r("snippetSuggestions.none","Do not show snippet suggestions.")],description:r("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smoothScrolling:de(new _(94,"smoothScrolling",!1,{description:r("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:de(new w(95,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:de(new te),suggestFontSize:de(new w(97,"suggestFontSize",0,0,1e3,{markdownDescription:r("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")})),suggestLineHeight:de(new w(98,"suggestLineHeight",0,0,1e3,{markdownDescription:r("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")})),suggestOnTriggerCharacters:de(new _(99,"suggestOnTriggerCharacters",!0,{description:r("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:de(new S(100,"suggestSelection","recentlyUsed",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[r("suggestSelection.first","Always select the first suggestion."),r("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),r("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:r("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:de(new S(101,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[r("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),r("tabCompletion.off","Disable tab completions."),r("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:r("tabCompletion","Enables tab completions.")})),tabIndex:de(new w(102,"tabIndex",0,-1,1073741824)),unusualLineTerminators:de(new S(103,"unusualLineTerminators","prompt",["off","prompt","auto"],{enumDescriptions:[r("unusualLineTerminators.off","Unusual line terminators are ignored."),r("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed."),r("unusualLineTerminators.auto","Unusual line terminators are automatically removed.")],description:r("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useTabStops:de(new _(104,"useTabStops",!0,{description:r("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:de(new C(105,"wordSeparators",a,{description:r("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:de(new S(106,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[r("wordWrap.off","Lines will never wrap."),r("wordWrap.on","Lines will wrap at the viewport width."),r({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),r({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:r({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:de(new C(107,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:de(new C(108,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:de(new w(109,"wordWrapColumn",80,1,1073741824,{markdownDescription:r({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapMinified:de(new _(110,"wordWrapMinified",!0)),wrappingIndent:de(new k(111,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],ie,{enumDescriptions:[r("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),r("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),r("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),r("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:r("wrappingIndent","Controls the indentation of wrapped lines.")})),wrappingStrategy:de(new S(112,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[r("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),r("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],description:r("wrappingStrategy","Controls the algorithm that computes wrapping points.")})),editorClassName:de(new I),pixelRatio:de(new K),tabFocusMode:de(new ne),layoutInfo:de(new V),wrappingInfo:de(new re)};class fe{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const pe=new fe;function ge(e){be(e)||pe.onUnexpectedError(e)}function me(e){if(e instanceof Error){let{name:t,message:n}=e;const i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i}}return e}const ve="Canceled";function be(e){return e instanceof Error&&e.name===ve&&e.message===ve}function ye(){const e=new Error(ve);return e.name=e.message,e}function _e(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function we(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}var xe;(function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function i(){return n}function*r(e){yield e}function o(e){return e||n}function a(e){return e[Symbol.iterator]().next().value}function s(e,t){for(const n of e)if(t(n))return!0;return!1}function*l(e,t){for(const n of e)t(n)&&(yield n)}function*c(e,t){for(const n of e)yield t(n)}function*u(...e){for(const t of e)for(const e of t)yield e}function d(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let o=0;o<n;o++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator](){return r}}]}e.empty=i,e.single=r,e.from=o,e.first=a,e.some=s,e.filter=l,e.map=c,e.concat=u,e.consume=d})(xe||(xe={}));const Ce=!1,Se="__is_disposable_tracked__";function ke(e){if(Ce&&e&&e!==Ae.None)try{e[Se]=!0}catch(t){}}function Oe(e){if(!Ce)return e;const t=new Error("Potentially leaked disposable").stack;return setTimeout(()=>{e[Se]||console.log(t)},3e3),e}class Me extends Error{constructor(e){super(`Encounter errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function De(e){return"function"===typeof e.dispose&&0===e.dispose.length}function Ee(e){if(xe.is(e)){let n=[];for(const i of e)if(i){ke(i);try{i.dispose()}catch(t){n.push(t)}}if(1===n.length)throw n[0];if(n.length>1)throw new Me(n);return Array.isArray(e)?[]:e}if(e)return ke(e),e.dispose(),e}function Te(...e){return e.forEach(ke),Oe({dispose:()=>Ee(e)})}function Le(e){const t=Oe({dispose:()=>{ke(t),e()}});return t}class Ie{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(ke(this),this._isDisposed=!0,this.clear())}clear(){try{Ee(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return ke(e),this._isDisposed?Ie.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}Ie.DISABLE_DISPOSED_WARNING=!1;class Ae{constructor(){this._store=new Ie,Oe(this)}dispose(){ke(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}Ae.None=Object.freeze({dispose(){}});class Ne{constructor(e){this.object=e}dispose(){}}class Pe{constructor(e){this.element=e,this.next=Pe.Undefined,this.prev=Pe.Undefined}}Pe.Undefined=new Pe(void 0);class Re{constructor(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Pe.Undefined}clear(){this._first=Pe.Undefined,this._last=Pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new Pe(e);if(this._first===Pe.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==Pe.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Pe.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Pe.Undefined&&e.next!==Pe.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Pe.Undefined&&e.next===Pe.Undefined?(this._first=Pe.Undefined,this._last=Pe.Undefined):e.next===Pe.Undefined?(this._last=this._last.prev,this._last.next=Pe.Undefined):e.prev===Pe.Undefined&&(this._first=this._first.next,this._first.prev=Pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;while(e!==Pe.Undefined)yield e.element,e=e.next}toArray(){const e=[];for(let t=this._first;t!==Pe.Undefined;t=t.next)e.push(t.element);return e}}var Fe;(function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e(e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)},null,i),o&&r.dispose(),r}}function n(e,t){return l((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return l((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return l((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function o(e){return e}function a(...e){return(t,n=null,i)=>Te(...e.map(e=>e(e=>t.call(n,e),null,i)))}function s(e,t,i){let r=i;return n(e,e=>(r=t(r,e),r))}function l(e){let t;const n=new ze({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function c(e,t,n=100,i=!1,r){let o,a=void 0,s=void 0,l=0;const c=new ze({leakWarningThreshold:r,onFirstListenerAdd(){o=e(e=>{l++,a=t(a,e),i&&!s&&(c.fire(a),a=void 0),clearTimeout(s),s=setTimeout(()=>{const e=a;a=void 0,s=void 0,(!i||l>1)&&c.fire(e),l=0},n)})},onLastListenerRemove(){o.dispose()}});return c.event}function u(e){const i=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-i)}function d(e){let t,n=!0;return r(e,e=>{const i=n||e!==t;return n=!1,t=e,i})}function h(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):a.fire(e)});const o=()=>{i&&i.forEach(e=>a.fire(e)),i=null},a=new ze({onFirstListenerAdd(){r||(r=e(e=>a.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return a.event}e.None=()=>Ae.None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=o,e.any=a,e.reduce=s,e.snapshot=l,e.debounce=c,e.stopwatch=u,e.latch=d,e.buffer=h;class f{constructor(e){this.event=e}map(e){return new f(n(this.event,e))}forEach(e){return new f(i(this.event,e))}filter(e){return new f(r(this.event,e))}reduce(e,t){return new f(s(this.event,e,t))}latch(){return new f(d(this.event))}debounce(e,t=100,n=!1,i){return new f(c(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}function p(e){return new f(e)}function g(e,t,n=(e=>e)){const i=(...e)=>a.fire(n(...e)),r=()=>e.on(t,i),o=()=>e.removeListener(t,i),a=new ze({onFirstListenerAdd:r,onLastListenerRemove:o});return a.event}function m(e,t,n=(e=>e)){const i=(...e)=>a.fire(n(...e)),r=()=>e.addEventListener(t,i),o=()=>e.removeEventListener(t,i),a=new ze({onFirstListenerAdd:r,onLastListenerRemove:o});return a.event}function v(e){const t=new ze;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event}function b(e){return new Promise(n=>t(e)(n))}e.chain=p,e.fromNodeEventEmitter=g,e.fromDOMEventEmitter=m,e.fromPromise=v,e.toPromise=b})(Fe||(Fe={}));let je=-1;class Be{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=je;if("number"===typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(n)||0;if(this._stacks.set(n,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let n;this._warnCountdown=.5*t;let i=0;for(const[e,t]of this._stacks)(!n||i<t)&&(n=e,i=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${i}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class ze{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=je>0?new Be(this._options&&this._options.leakWarningThreshold):void 0}get event(){return this._event||(this._event=(e,t,n)=>{this._listeners||(this._listeners=new Re);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const r=this._listeners.push(t?[e,t]:e);let o,a;return i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t),this._leakageMon&&(o=this._leakageMon.check(this._listeners.size)),a={dispose:()=>{if(o&&o(),a.dispose=ze._noop,!this._disposed&&(r(),this._options&&this._options.onLastListenerRemove)){const e=this._listeners&&!this._listeners.isEmpty();e||this._options.onLastListenerRemove(this)}}},n instanceof Ie?n.add(a):Array.isArray(n)&&n.push(a),a}),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Re);for(let t of this._listeners)this._deliveryQueue.push([t,e]);while(this._deliveryQueue.size>0){const[e,n]=this._deliveryQueue.shift();try{"function"===typeof e?e.call(void 0,n):e[0].call(e[1],n)}catch(t){ge(t)}}}}dispose(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}ze._noop=function(){};class Ve extends ze{constructor(e){super(e),this._isPaused=0,this._eventQueue=new Re,this._mergeFn=e&&e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){const e=this._eventQueue.toArray();this._eventQueue.clear(),super.fire(this._mergeFn(e))}else while(!this._isPaused&&0!==this._eventQueue.size)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class $e{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(e=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>t.call(n,e)):t.call(n,e)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}class We{constructor(){this.listening=!1,this.inputEvent=Fe.None,this.inputEventListener=Ae.None,this.emitter=new ze({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const He=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var Ue;(function(e){function t(t){return t===e.None||t===e.Cancelled||t instanceof qe||!(!t||"object"!==typeof t)&&"boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Fe.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:He})})(Ue||(Ue={}));class qe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?He:(this._emitter||(this._emitter=new ze),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Ge{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new qe),this._token}cancel(){this._token?this._token instanceof qe&&this._token.cancel():this._token=Ue.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof qe&&this._token.dispose():this._token=Ue.None}}class Ke{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Ye=new Ke,Xe=new Ke,Ze=new Ke;var Qe;function Je(e,t){const n=(65535&t)<<16>>>0;return(e|n)>>>0}function et(e,t){if(0===e)return null;const n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new it(0!==i?[tt(n,t),tt(i,t)]:[tt(n,t)])}function tt(e,t){const n=!!(2048&e),i=!!(256&e),r=2===t?i:n,o=!!(1024&e),a=!!(512&e),s=2===t?n:i,l=255&e;return new nt(r,o,a,s,l)}(function(){function e(e,t,n=t,i=n){Ye.define(e,t),Xe.define(e,n),Ze.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})(),function(e){function t(e){return Ye.keyCodeToStr(e)}function n(e){return Ye.strToKeyCode(e)}function i(e){return Xe.keyCodeToStr(e)}function r(e){return Ze.keyCodeToStr(e)}function o(e){return Xe.strToKeyCode(e)||Ze.strToKeyCode(e)}e.toString=t,e.fromString=n,e.toUserSettingsUS=i,e.toUserSettingsGeneral=r,e.fromUserSettings=o}(Qe||(Qe={}));class nt{constructor(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new it([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class it{constructor(e){if(0===e.length)throw _e("parts");this.parts=e}}class rt{constructor(e,t,n,i,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=o}}class ot{}var at=n("f940");const st=65,lt=97,ct=90,ut=122,dt=46,ht=47,ft=92,pt=58,gt=63;class mt extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function vt(e,t){if("string"!==typeof e)throw new mt(t,"string",e)}function bt(e){return e===ht||e===ft}function yt(e){return e===ht}function _t(e){return e>=st&&e<=ct||e>=lt&&e<=ut}function wt(e,t,n,i){let r="",o=0,a=-1,s=0,l=0;for(let c=0;c<=e.length;++c){if(c<e.length)l=e.charCodeAt(c);else{if(i(l))break;l=ht}if(i(l)){if(a===c-1||1===s);else if(2===s){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==dt||r.charCodeAt(r.length-2)!==dt){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):(r=r.slice(0,e),o=r.length-1-r.lastIndexOf(n)),a=c,s=0;continue}if(0!==r.length){r="",o=0,a=c,s=0;continue}}t&&(r+=r.length>0?n+"..":"..",o=2)}else r.length>0?r+=`${n}${e.slice(a+1,c)}`:r=e.slice(a+1,c),o=c-a-1;a=c,s=0}else l===dt&&-1!==s?++s:s=-1}return r}function xt(e,t){if(null===t||"object"!==typeof t)throw new mt("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const Ct={resolve(...e){let t="",n="",i=!1;for(let r=e.length-1;r>=-1;r--){let o;if(r>=0){if(o=e[r],vt(o,"path"),0===o.length)continue}else 0===t.length?o=at["a"]():(o=at["b"]["="+t]||at["a"](),(void 0===o||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===ft)&&(o=t+"\\"));const a=o.length;let s=0,l="",c=!1;const u=o.charCodeAt(0);if(1===a)bt(u)&&(s=1,c=!0);else if(bt(u))if(c=!0,bt(o.charCodeAt(1))){let e=2,t=e;while(e<a&&!bt(o.charCodeAt(e)))e++;if(e<a&&e!==t){const n=o.slice(t,e);t=e;while(e<a&&bt(o.charCodeAt(e)))e++;if(e<a&&e!==t){t=e;while(e<a&&!bt(o.charCodeAt(e)))e++;e!==a&&e===t||(l=`\\\\${n}\\${o.slice(t,e)}`,s=e)}}}else s=1;else _t(u)&&o.charCodeAt(1)===pt&&(l=o.slice(0,2),s=2,a>2&&bt(o.charCodeAt(2))&&(c=!0,s=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(i){if(t.length>0)break}else if(n=`${o.slice(s)}\\${n}`,i=c,c&&t.length>0)break}return n=wt(n,!i,"\\",bt),i?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){vt(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return yt(o)?"\\":e;if(bt(o))if(r=!0,bt(e.charCodeAt(1))){let r=2,o=r;while(r<t&&!bt(e.charCodeAt(r)))r++;if(r<t&&r!==o){const a=e.slice(o,r);o=r;while(r<t&&bt(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&!bt(e.charCodeAt(r)))r++;if(r===t)return`\\\\${a}\\${e.slice(o)}\\`;r!==o&&(n=`\\\\${a}\\${e.slice(o,r)}`,i=r)}}}else i=1;else _t(o)&&e.charCodeAt(1)===pt&&(n=e.slice(0,2),i=2,t>2&&bt(e.charCodeAt(2))&&(r=!0,i=3));let a=i<t?wt(e.slice(i),!r,"\\",bt):"";return 0!==a.length||r||(a="."),a.length>0&&bt(e.charCodeAt(t-1))&&(a+="\\"),void 0===n?r?"\\"+a:a:r?`${n}\\${a}`:`${n}${a}`},isAbsolute(e){vt(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return bt(n)||t>2&&_t(n)&&e.charCodeAt(1)===pt&&bt(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let o=0;o<e.length;++o){const i=e[o];vt(i,"path"),i.length>0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&bt(n.charCodeAt(0))){++r;const e=n.length;e>1&&bt(n.charCodeAt(1))&&(++r,e>2&&(bt(n.charCodeAt(2))?++r:i=!1))}if(i){while(r<t.length&&bt(t.charCodeAt(r)))r++;r>=2&&(t="\\"+t.slice(r))}return Ct.normalize(t)},relative(e,t){if(vt(e,"from"),vt(t,"to"),e===t)return"";const n=Ct.resolve(e),i=Ct.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";let r=0;while(r<e.length&&e.charCodeAt(r)===ft)r++;let o=e.length;while(o-1>r&&e.charCodeAt(o-1)===ft)o--;const a=o-r;let s=0;while(s<t.length&&t.charCodeAt(s)===ft)s++;let l=t.length;while(l-1>s&&t.charCodeAt(l-1)===ft)l--;const c=l-s,u=a<c?a:c;let d=-1,h=0;for(;h<u;h++){const n=e.charCodeAt(r+h);if(n!==t.charCodeAt(s+h))break;n===ft&&(d=h)}if(h!==u){if(-1===d)return i}else{if(c>u){if(t.charCodeAt(s+h)===ft)return i.slice(s+h+1);if(2===h)return i.slice(s+h)}a>u&&(e.charCodeAt(r+h)===ft?d=h:2===h&&(d=3)),-1===d&&(d=0)}let f="";for(h=r+d+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==ft||(f+=0===f.length?"..":"\\..");return s+=d,f.length>0?`${f}${i.slice(s,l)}`:(i.charCodeAt(s)===ft&&++s,i.slice(s,l))},toNamespacedPath(e){if("string"!==typeof e)return e;if(0===e.length)return"";const t=Ct.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ft){if(t.charCodeAt(1)===ft){const e=t.charCodeAt(2);if(e!==gt&&e!==dt)return"\\\\?\\UNC\\"+t.slice(2)}}else if(_t(t.charCodeAt(0))&&t.charCodeAt(1)===pt&&t.charCodeAt(2)===ft)return"\\\\?\\"+t;return e},dirname(e){vt(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return bt(r)?e:".";if(bt(r)){if(n=i=1,bt(e.charCodeAt(1))){let r=2,o=r;while(r<t&&!bt(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&bt(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&!bt(e.charCodeAt(r)))r++;if(r===t)return e;r!==o&&(n=i=r+1)}}}}else _t(r)&&e.charCodeAt(1)===pt&&(n=t>2&&bt(e.charCodeAt(2))?3:2,i=n);let o=-1,a=!0;for(let s=t-1;s>=i;--s)if(bt(e.charCodeAt(s))){if(!a){o=s;break}}else a=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&vt(t,"ext"),vt(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&_t(e.charCodeAt(0))&&e.charCodeAt(1)===pt&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(bt(l)){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(bt(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){vt(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,a=0;e.length>=2&&e.charCodeAt(1)===pt&&_t(e.charCodeAt(0))&&(t=i=2);for(let s=e.length-1;s>=t;--s){const t=e.charCodeAt(s);if(bt(t)){if(!o){i=s+1;break}}else-1===r&&(o=!1,r=s+1),t===dt?-1===n?n=s:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===i+1?"":e.slice(n,r)},format:xt.bind(null,"\\"),parse(e){vt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return bt(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(bt(r)){if(i=1,bt(e.charCodeAt(1))){let t=2,r=t;while(t<n&&!bt(e.charCodeAt(t)))t++;if(t<n&&t!==r){r=t;while(t<n&&bt(e.charCodeAt(t)))t++;if(t<n&&t!==r){r=t;while(t<n&&!bt(e.charCodeAt(t)))t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(_t(r)&&e.charCodeAt(1)===pt){if(n<=2)return t.root=t.dir=e,t;if(i=2,bt(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,a=i,s=-1,l=!0,c=e.length-1,u=0;for(;c>=i;--c)if(r=e.charCodeAt(c),bt(r)){if(!l){a=c+1;break}}else-1===s&&(l=!1,s=c+1),r===dt?-1===o?o=c:1!==u&&(u=1):-1!==o&&(u=-1);return-1!==s&&(-1===o||0===u||1===u&&o===s-1&&o===a+1?t.base=t.name=e.slice(a,s):(t.name=e.slice(a,o),t.base=e.slice(a,s),t.ext=e.slice(o,s))),t.dir=a>0&&a!==i?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},St={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const r=i>=0?e[i]:at["a"]();vt(r,"path"),0!==r.length&&(t=`${r}/${t}`,n=r.charCodeAt(0)===ht)}return t=wt(t,!n,"/",yt),n?"/"+t:t.length>0?t:"."},normalize(e){if(vt(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ht,n=e.charCodeAt(e.length-1)===ht;return e=wt(e,!t,"/",yt),0===e.length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e)},isAbsolute(e){return vt(e,"path"),e.length>0&&e.charCodeAt(0)===ht},join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];vt(i,"path"),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":St.normalize(t)},relative(e,t){if(vt(e,"from"),vt(t,"to"),e===t)return"";if(e=St.resolve(e),t=St.resolve(t),e===t)return"";const n=1,i=e.length,r=i-n,o=1,a=t.length-o,s=r<a?r:a;let l=-1,c=0;for(;c<s;c++){const i=e.charCodeAt(n+c);if(i!==t.charCodeAt(o+c))break;i===ht&&(l=c)}if(c===s)if(a>s){if(t.charCodeAt(o+c)===ht)return t.slice(o+c+1);if(0===c)return t.slice(o+c)}else r>s&&(e.charCodeAt(n+c)===ht?l=c:0===c&&(l=0));let u="";for(c=n+l+1;c<=i;++c)c!==i&&e.charCodeAt(c)!==ht||(u+=0===u.length?"..":"/..");return`${u}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(vt(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===ht;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===ht){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&vt(t,"ext"),vt(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,s=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===ht){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1),a>=0&&(l===t.charCodeAt(a)?-1===--a&&(r=n):(a=-1,r=s))}return i===r?r=s:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===ht){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){vt(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let a=e.length-1;a>=0;--a){const s=e.charCodeAt(a);if(s!==ht)-1===i&&(r=!1,i=a+1),s===dt?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:xt.bind(null,"/"),parse(e){vt(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===ht;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,a=-1,s=!0,l=e.length-1,c=0;for(;l>=i;--l){const t=e.charCodeAt(l);if(t!==ht)-1===a&&(s=!1,a=l+1),t===dt?-1===r?r=l:1!==c&&(c=1):-1!==r&&(c=-1);else if(!s){o=l+1;break}}if(-1!==a){const i=0===o&&n?1:o;-1===r||0===c||1===c&&r===a-1&&r===o+1?t.base=t.name=e.slice(i,a):(t.name=e.slice(i,r),t.base=e.slice(i,a),t.ext=e.slice(r,a))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};St.win32=Ct.win32=Ct,St.posix=Ct.posix=St;const kt="win32"===at["c"]?Ct.normalize:St.normalize,Ot="win32"===at["c"]?Ct.resolve:St.resolve,Mt="win32"===at["c"]?Ct.relative:St.relative,Dt="win32"===at["c"]?Ct.dirname:St.dirname,Et="win32"===at["c"]?Ct.basename:St.basename,Tt="win32"===at["c"]?Ct.extname:St.extname,Lt="win32"===at["c"]?Ct.sep:St.sep,It=/^\w[\w\d+.-]*$/,At=/^\//,Nt=/^\/\//;function Pt(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!It.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!At.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Nt.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function Rt(e,t){return e||t?e:"file"}function Ft(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Bt&&(t=Bt+t):t=Bt;break}return t}const jt="",Bt="/",zt=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class Vt{constructor(e,t,n,i,r,o=!1){"object"===typeof e?(this.scheme=e.scheme||jt,this.authority=e.authority||jt,this.path=e.path||jt,this.query=e.query||jt,this.fragment=e.fragment||jt):(this.scheme=Rt(e,o),this.authority=t||jt,this.path=Ft(this.scheme,n||jt),this.query=i||jt,this.fragment=r||jt,Pt(this,o))}static isUri(e){return e instanceof Vt||!!e&&"string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"function"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString}get fsPath(){return Gt(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=jt),void 0===n?n=this.authority:null===n&&(n=jt),void 0===i?i=this.path:null===i&&(i=jt),void 0===r?r=this.query:null===r&&(r=jt),void 0===o?o=this.fragment:null===o&&(o=jt),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new Wt(t,n,i,r,o)}static parse(e,t=!1){const n=zt.exec(e);return n?new Wt(n[2]||jt,Zt(n[4]||jt),Zt(n[5]||jt),Zt(n[7]||jt),Zt(n[9]||jt),t):new Wt(jt,jt,jt,jt,jt)}static file(e){let t=jt;if(o["i"]&&(e=e.replace(/\\/g,Bt)),e[0]===Bt&&e[1]===Bt){const n=e.indexOf(Bt,2);-1===n?(t=e.substring(2),e=Bt):(t=e.substring(2,n),e=e.substring(n)||Bt)}return new Wt("file",t,e,jt,jt)}static from(e){return new Wt(e.scheme,e.authority,e.path,e.query,e.fragment)}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPaths on URI without path");let n;return n=o["i"]&&"file"===e.scheme?Vt.file(Ct.join(Gt(e,!0),...t)).path:St.join(e.path,...t),e.with({path:n})}toString(e=!1){return Kt(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof Vt)return e;{const t=new Wt(e);return t._formatted=e.external,t._fsPath=e._sep===$t?e.fsPath:null,t}}return e}}const $t=o["i"]?1:void 0;class Wt extends Vt{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Gt(this,!1)),this._fsPath}toString(e=!1){return e?Kt(this,!0):(this._formatted||(this._formatted=Kt(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=$t),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const Ht={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Ut(e,t){let n=void 0,i=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=Ht[o];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function qt(e){let t=void 0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=Ht[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function Gt(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,o["i"]&&(n=n.replace(/\//g,"\\")),n}function Kt(e,t){const n=t?qt:Ut;let i="",{scheme:r,authority:o,path:a,query:s,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=Bt,i+=Bt),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}i+=n(a,!0)}return s&&(i+="?",i+=n(s,!1)),l&&(i+="#",i+=t?l:Ut(l,!1)),i}function Yt(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+Yt(e.substr(3)):e}}const Xt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Zt(e){return e.match(Xt)?e.replace(Xt,e=>Yt(e)):e}class Qt{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new Qt(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return Qt.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return Qt.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return Qt.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){let n=0|e.column,i=0|t.column;return n-i}return n-i}clone(){return new Qt(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new Qt(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}}class Jt{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return Jt.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Jt.containsPosition(this,e)}static containsPosition(e,t){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)}containsRange(e){return Jt.containsRange(this,e)}static containsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)}strictContainsRange(e){return Jt.strictContainsRange(this,e)}static strictContainsRange(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)}plusRange(e){return Jt.plusRange(this,e)}static plusRange(e,t){let n,i,r,o;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(r=t.endLineNumber,o=t.endColumn):t.endLineNumber===e.endLineNumber?(r=t.endLineNumber,o=Math.max(t.endColumn,e.endColumn)):(r=e.endLineNumber,o=e.endColumn),new Jt(n,i,r,o)}intersectRanges(e){return Jt.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,a=t.startLineNumber,s=t.startColumn,l=t.endLineNumber,c=t.endColumn;return n<a?(n=a,i=s):n===a&&(i=Math.max(i,s)),r>l?(r=l,o=c):r===l&&(o=Math.min(o,c)),n>r||n===r&&i>o?null:new Jt(n,i,r,o)}equalsRange(e){return Jt.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return Jt.getEndPosition(this)}static getEndPosition(e){return new Qt(e.endLineNumber,e.endColumn)}getStartPosition(){return Jt.getStartPosition(this)}static getStartPosition(e){return new Qt(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new Jt(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new Jt(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return Jt.collapseToStart(this)}static collapseToStart(e){return new Jt(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new Jt(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new Jt(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)}static areIntersecting(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){const n=0|e.endColumn,i=0|t.endColumn;return n-i}return n-i}return n-i}return n-i}const n=e?1:0,i=t?1:0;return n-i}static compareRangesUsingEnds(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}class en extends Jt{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return en.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new en(this.startLineNumber,this.startColumn,e,t):new en(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new Qt(this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new en(e,t,this.endLineNumber,this.endColumn):new en(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new en(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new en(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new en(e,t,n,i):new en(n,i,e,t)}}class tn{constructor(e,t,n){this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}class nn{constructor(e,t){this.tokens=e,this.endState=t}}class rn{constructor(e,t){this.tokens=e,this.endState=t}}var on,an,sn,ln,cn,un,dn,hn,fn,pn,gn,mn,vn,bn,yn,_n,wn,xn,Cn,Sn,kn,On,Mn,Dn,En,Tn,Ln,In,An,Nn,Pn,Rn,Fn,jn;(function(e){e[e["Unknown"]=0]="Unknown",e[e["Disabled"]=1]="Disabled",e[e["Enabled"]=2]="Enabled"})(on||(on={})),function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace",e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(an||(an={})),function(e){e[e["Method"]=0]="Method",e[e["Function"]=1]="Function",e[e["Constructor"]=2]="Constructor",e[e["Field"]=3]="Field",e[e["Variable"]=4]="Variable",e[e["Class"]=5]="Class",e[e["Struct"]=6]="Struct",e[e["Interface"]=7]="Interface",e[e["Module"]=8]="Module",e[e["Property"]=9]="Property",e[e["Event"]=10]="Event",e[e["Operator"]=11]="Operator",e[e["Unit"]=12]="Unit",e[e["Value"]=13]="Value",e[e["Constant"]=14]="Constant",e[e["Enum"]=15]="Enum",e[e["EnumMember"]=16]="EnumMember",e[e["Keyword"]=17]="Keyword",e[e["Text"]=18]="Text",e[e["Color"]=19]="Color",e[e["File"]=20]="File",e[e["Reference"]=21]="Reference",e[e["Customcolor"]=22]="Customcolor",e[e["Folder"]=23]="Folder",e[e["TypeParameter"]=24]="TypeParameter",e[e["User"]=25]="User",e[e["Issue"]=26]="Issue",e[e["Snippet"]=27]="Snippet"}(sn||(sn={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(ln||(ln={})),function(e){e[e["Invoke"]=0]="Invoke",e[e["TriggerCharacter"]=1]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(cn||(cn={})),function(e){e[e["EXACT"]=0]="EXACT",e[e["ABOVE"]=1]="ABOVE",e[e["BELOW"]=2]="BELOW"}(un||(un={})),function(e){e[e["NotSet"]=0]="NotSet",e[e["ContentFlush"]=1]="ContentFlush",e[e["RecoverFromMarkers"]=2]="RecoverFromMarkers",e[e["Explicit"]=3]="Explicit",e[e["Paste"]=4]="Paste",e[e["Undo"]=5]="Undo",e[e["Redo"]=6]="Redo"}(dn||(dn={})),function(e){e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(hn||(hn={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(fn||(fn={})),function(e){e[e["None"]=0]="None",e[e["Keep"]=1]="Keep",e[e["Brackets"]=2]="Brackets",e[e["Advanced"]=3]="Advanced",e[e["Full"]=4]="Full"}(pn||(pn={})),function(e){e[e["acceptSuggestionOnCommitCharacter"]=0]="acceptSuggestionOnCommitCharacter",e[e["acceptSuggestionOnEnter"]=1]="acceptSuggestionOnEnter",e[e["accessibilitySupport"]=2]="accessibilitySupport",e[e["accessibilityPageSize"]=3]="accessibilityPageSize",e[e["ariaLabel"]=4]="ariaLabel",e[e["autoClosingBrackets"]=5]="autoClosingBrackets",e[e["autoClosingOvertype"]=6]="autoClosingOvertype",e[e["autoClosingQuotes"]=7]="autoClosingQuotes",e[e["autoIndent"]=8]="autoIndent",e[e["automaticLayout"]=9]="automaticLayout",e[e["autoSurround"]=10]="autoSurround",e[e["codeLens"]=11]="codeLens",e[e["colorDecorators"]=12]="colorDecorators",e[e["columnSelection"]=13]="columnSelection",e[e["comments"]=14]="comments",e[e["contextmenu"]=15]="contextmenu",e[e["copyWithSyntaxHighlighting"]=16]="copyWithSyntaxHighlighting",e[e["cursorBlinking"]=17]="cursorBlinking",e[e["cursorSmoothCaretAnimation"]=18]="cursorSmoothCaretAnimation",e[e["cursorStyle"]=19]="cursorStyle",e[e["cursorSurroundingLines"]=20]="cursorSurroundingLines",e[e["cursorSurroundingLinesStyle"]=21]="cursorSurroundingLinesStyle",e[e["cursorWidth"]=22]="cursorWidth",e[e["disableLayerHinting"]=23]="disableLayerHinting",e[e["disableMonospaceOptimizations"]=24]="disableMonospaceOptimizations",e[e["dragAndDrop"]=25]="dragAndDrop",e[e["emptySelectionClipboard"]=26]="emptySelectionClipboard",e[e["extraEditorClassName"]=27]="extraEditorClassName",e[e["fastScrollSensitivity"]=28]="fastScrollSensitivity",e[e["find"]=29]="find",e[e["fixedOverflowWidgets"]=30]="fixedOverflowWidgets",e[e["folding"]=31]="folding",e[e["foldingStrategy"]=32]="foldingStrategy",e[e["foldingHighlight"]=33]="foldingHighlight",e[e["unfoldOnClickAfterEndOfLine"]=34]="unfoldOnClickAfterEndOfLine",e[e["fontFamily"]=35]="fontFamily",e[e["fontInfo"]=36]="fontInfo",e[e["fontLigatures"]=37]="fontLigatures",e[e["fontSize"]=38]="fontSize",e[e["fontWeight"]=39]="fontWeight",e[e["formatOnPaste"]=40]="formatOnPaste",e[e["formatOnType"]=41]="formatOnType",e[e["glyphMargin"]=42]="glyphMargin",e[e["gotoLocation"]=43]="gotoLocation",e[e["hideCursorInOverviewRuler"]=44]="hideCursorInOverviewRuler",e[e["highlightActiveIndentGuide"]=45]="highlightActiveIndentGuide",e[e["hover"]=46]="hover",e[e["inDiffEditor"]=47]="inDiffEditor",e[e["letterSpacing"]=48]="letterSpacing",e[e["lightbulb"]=49]="lightbulb",e[e["lineDecorationsWidth"]=50]="lineDecorationsWidth",e[e["lineHeight"]=51]="lineHeight",e[e["lineNumbers"]=52]="lineNumbers",e[e["lineNumbersMinChars"]=53]="lineNumbersMinChars",e[e["links"]=54]="links",e[e["matchBrackets"]=55]="matchBrackets",e[e["minimap"]=56]="minimap",e[e["mouseStyle"]=57]="mouseStyle",e[e["mouseWheelScrollSensitivity"]=58]="mouseWheelScrollSensitivity",e[e["mouseWheelZoom"]=59]="mouseWheelZoom",e[e["multiCursorMergeOverlapping"]=60]="multiCursorMergeOverlapping",e[e["multiCursorModifier"]=61]="multiCursorModifier",e[e["multiCursorPaste"]=62]="multiCursorPaste",e[e["occurrencesHighlight"]=63]="occurrencesHighlight",e[e["overviewRulerBorder"]=64]="overviewRulerBorder",e[e["overviewRulerLanes"]=65]="overviewRulerLanes",e[e["padding"]=66]="padding",e[e["parameterHints"]=67]="parameterHints",e[e["peekWidgetDefaultFocus"]=68]="peekWidgetDefaultFocus",e[e["definitionLinkOpensInPeek"]=69]="definitionLinkOpensInPeek",e[e["quickSuggestions"]=70]="quickSuggestions",e[e["quickSuggestionsDelay"]=71]="quickSuggestionsDelay",e[e["readOnly"]=72]="readOnly",e[e["renameOnType"]=73]="renameOnType",e[e["renderControlCharacters"]=74]="renderControlCharacters",e[e["renderIndentGuides"]=75]="renderIndentGuides",e[e["renderFinalNewline"]=76]="renderFinalNewline",e[e["renderLineHighlight"]=77]="renderLineHighlight",e[e["renderLineHighlightOnlyWhenFocus"]=78]="renderLineHighlightOnlyWhenFocus",e[e["renderValidationDecorations"]=79]="renderValidationDecorations",e[e["renderWhitespace"]=80]="renderWhitespace",e[e["revealHorizontalRightPadding"]=81]="revealHorizontalRightPadding",e[e["roundedSelection"]=82]="roundedSelection",e[e["rulers"]=83]="rulers",e[e["scrollbar"]=84]="scrollbar",e[e["scrollBeyondLastColumn"]=85]="scrollBeyondLastColumn",e[e["scrollBeyondLastLine"]=86]="scrollBeyondLastLine",e[e["scrollPredominantAxis"]=87]="scrollPredominantAxis",e[e["selectionClipboard"]=88]="selectionClipboard",e[e["selectionHighlight"]=89]="selectionHighlight",e[e["selectOnLineNumbers"]=90]="selectOnLineNumbers",e[e["showFoldingControls"]=91]="showFoldingControls",e[e["showUnused"]=92]="showUnused",e[e["snippetSuggestions"]=93]="snippetSuggestions",e[e["smoothScrolling"]=94]="smoothScrolling",e[e["stopRenderingLineAfter"]=95]="stopRenderingLineAfter",e[e["suggest"]=96]="suggest",e[e["suggestFontSize"]=97]="suggestFontSize",e[e["suggestLineHeight"]=98]="suggestLineHeight",e[e["suggestOnTriggerCharacters"]=99]="suggestOnTriggerCharacters",e[e["suggestSelection"]=100]="suggestSelection",e[e["tabCompletion"]=101]="tabCompletion",e[e["tabIndex"]=102]="tabIndex",e[e["unusualLineTerminators"]=103]="unusualLineTerminators",e[e["useTabStops"]=104]="useTabStops",e[e["wordSeparators"]=105]="wordSeparators",e[e["wordWrap"]=106]="wordWrap",e[e["wordWrapBreakAfterCharacters"]=107]="wordWrapBreakAfterCharacters",e[e["wordWrapBreakBeforeCharacters"]=108]="wordWrapBreakBeforeCharacters",e[e["wordWrapColumn"]=109]="wordWrapColumn",e[e["wordWrapMinified"]=110]="wordWrapMinified",e[e["wrappingIndent"]=111]="wrappingIndent",e[e["wrappingStrategy"]=112]="wrappingStrategy",e[e["showDeprecated"]=113]="showDeprecated",e[e["editorClassName"]=114]="editorClassName",e[e["pixelRatio"]=115]="pixelRatio",e[e["tabFocusMode"]=116]="tabFocusMode",e[e["layoutInfo"]=117]="layoutInfo",e[e["wrappingInfo"]=118]="wrappingInfo"}(gn||(gn={})),function(e){e[e["TextDefined"]=0]="TextDefined",e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(mn||(mn={})),function(e){e[e["LF"]=0]="LF",e[e["CRLF"]=1]="CRLF"}(vn||(vn={})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(bn||(bn={})),function(e){e[e["Unknown"]=0]="Unknown",e[e["Backspace"]=1]="Backspace",e[e["Tab"]=2]="Tab",e[e["Enter"]=3]="Enter",e[e["Shift"]=4]="Shift",e[e["Ctrl"]=5]="Ctrl",e[e["Alt"]=6]="Alt",e[e["PauseBreak"]=7]="PauseBreak",e[e["CapsLock"]=8]="CapsLock",e[e["Escape"]=9]="Escape",e[e["Space"]=10]="Space",e[e["PageUp"]=11]="PageUp",e[e["PageDown"]=12]="PageDown",e[e["End"]=13]="End",e[e["Home"]=14]="Home",e[e["LeftArrow"]=15]="LeftArrow",e[e["UpArrow"]=16]="UpArrow",e[e["RightArrow"]=17]="RightArrow",e[e["DownArrow"]=18]="DownArrow",e[e["Insert"]=19]="Insert",e[e["Delete"]=20]="Delete",e[e["KEY_0"]=21]="KEY_0",e[e["KEY_1"]=22]="KEY_1",e[e["KEY_2"]=23]="KEY_2",e[e["KEY_3"]=24]="KEY_3",e[e["KEY_4"]=25]="KEY_4",e[e["KEY_5"]=26]="KEY_5",e[e["KEY_6"]=27]="KEY_6",e[e["KEY_7"]=28]="KEY_7",e[e["KEY_8"]=29]="KEY_8",e[e["KEY_9"]=30]="KEY_9",e[e["KEY_A"]=31]="KEY_A",e[e["KEY_B"]=32]="KEY_B",e[e["KEY_C"]=33]="KEY_C",e[e["KEY_D"]=34]="KEY_D",e[e["KEY_E"]=35]="KEY_E",e[e["KEY_F"]=36]="KEY_F",e[e["KEY_G"]=37]="KEY_G",e[e["KEY_H"]=38]="KEY_H",e[e["KEY_I"]=39]="KEY_I",e[e["KEY_J"]=40]="KEY_J",e[e["KEY_K"]=41]="KEY_K",e[e["KEY_L"]=42]="KEY_L",e[e["KEY_M"]=43]="KEY_M",e[e["KEY_N"]=44]="KEY_N",e[e["KEY_O"]=45]="KEY_O",e[e["KEY_P"]=46]="KEY_P",e[e["KEY_Q"]=47]="KEY_Q",e[e["KEY_R"]=48]="KEY_R",e[e["KEY_S"]=49]="KEY_S",e[e["KEY_T"]=50]="KEY_T",e[e["KEY_U"]=51]="KEY_U",e[e["KEY_V"]=52]="KEY_V",e[e["KEY_W"]=53]="KEY_W",e[e["KEY_X"]=54]="KEY_X",e[e["KEY_Y"]=55]="KEY_Y",e[e["KEY_Z"]=56]="KEY_Z",e[e["Meta"]=57]="Meta",e[e["ContextMenu"]=58]="ContextMenu",e[e["F1"]=59]="F1",e[e["F2"]=60]="F2",e[e["F3"]=61]="F3",e[e["F4"]=62]="F4",e[e["F5"]=63]="F5",e[e["F6"]=64]="F6",e[e["F7"]=65]="F7",e[e["F8"]=66]="F8",e[e["F9"]=67]="F9",e[e["F10"]=68]="F10",e[e["F11"]=69]="F11",e[e["F12"]=70]="F12",e[e["F13"]=71]="F13",e[e["F14"]=72]="F14",e[e["F15"]=73]="F15",e[e["F16"]=74]="F16",e[e["F17"]=75]="F17",e[e["F18"]=76]="F18",e[e["F19"]=77]="F19",e[e["NumLock"]=78]="NumLock",e[e["ScrollLock"]=79]="ScrollLock",e[e["US_SEMICOLON"]=80]="US_SEMICOLON",e[e["US_EQUAL"]=81]="US_EQUAL",e[e["US_COMMA"]=82]="US_COMMA",e[e["US_MINUS"]=83]="US_MINUS",e[e["US_DOT"]=84]="US_DOT",e[e["US_SLASH"]=85]="US_SLASH",e[e["US_BACKTICK"]=86]="US_BACKTICK",e[e["US_OPEN_SQUARE_BRACKET"]=87]="US_OPEN_SQUARE_BRACKET",e[e["US_BACKSLASH"]=88]="US_BACKSLASH",e[e["US_CLOSE_SQUARE_BRACKET"]=89]="US_CLOSE_SQUARE_BRACKET",e[e["US_QUOTE"]=90]="US_QUOTE",e[e["OEM_8"]=91]="OEM_8",e[e["OEM_102"]=92]="OEM_102",e[e["NUMPAD_0"]=93]="NUMPAD_0",e[e["NUMPAD_1"]=94]="NUMPAD_1",e[e["NUMPAD_2"]=95]="NUMPAD_2",e[e["NUMPAD_3"]=96]="NUMPAD_3",e[e["NUMPAD_4"]=97]="NUMPAD_4",e[e["NUMPAD_5"]=98]="NUMPAD_5",e[e["NUMPAD_6"]=99]="NUMPAD_6",e[e["NUMPAD_7"]=100]="NUMPAD_7",e[e["NUMPAD_8"]=101]="NUMPAD_8",e[e["NUMPAD_9"]=102]="NUMPAD_9",e[e["NUMPAD_MULTIPLY"]=103]="NUMPAD_MULTIPLY",e[e["NUMPAD_ADD"]=104]="NUMPAD_ADD",e[e["NUMPAD_SEPARATOR"]=105]="NUMPAD_SEPARATOR",e[e["NUMPAD_SUBTRACT"]=106]="NUMPAD_SUBTRACT",e[e["NUMPAD_DECIMAL"]=107]="NUMPAD_DECIMAL",e[e["NUMPAD_DIVIDE"]=108]="NUMPAD_DIVIDE",e[e["KEY_IN_COMPOSITION"]=109]="KEY_IN_COMPOSITION",e[e["ABNT_C1"]=110]="ABNT_C1",e[e["ABNT_C2"]=111]="ABNT_C2",e[e["MAX_VALUE"]=112]="MAX_VALUE"}(yn||(yn={})),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(_n||(_n={})),function(e){e[e["Unnecessary"]=1]="Unnecessary",e[e["Deprecated"]=2]="Deprecated"}(wn||(wn={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(xn||(xn={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["TEXTAREA"]=1]="TEXTAREA",e[e["GUTTER_GLYPH_MARGIN"]=2]="GUTTER_GLYPH_MARGIN",e[e["GUTTER_LINE_NUMBERS"]=3]="GUTTER_LINE_NUMBERS",e[e["GUTTER_LINE_DECORATIONS"]=4]="GUTTER_LINE_DECORATIONS",e[e["GUTTER_VIEW_ZONE"]=5]="GUTTER_VIEW_ZONE",e[e["CONTENT_TEXT"]=6]="CONTENT_TEXT",e[e["CONTENT_EMPTY"]=7]="CONTENT_EMPTY",e[e["CONTENT_VIEW_ZONE"]=8]="CONTENT_VIEW_ZONE",e[e["CONTENT_WIDGET"]=9]="CONTENT_WIDGET",e[e["OVERVIEW_RULER"]=10]="OVERVIEW_RULER",e[e["SCROLLBAR"]=11]="SCROLLBAR",e[e["OVERLAY_WIDGET"]=12]="OVERLAY_WIDGET",e[e["OUTSIDE_EDITOR"]=13]="OUTSIDE_EDITOR"}(Cn||(Cn={})),function(e){e[e["TOP_RIGHT_CORNER"]=0]="TOP_RIGHT_CORNER",e[e["BOTTOM_RIGHT_CORNER"]=1]="BOTTOM_RIGHT_CORNER",e[e["TOP_CENTER"]=2]="TOP_CENTER"}(Sn||(Sn={})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(kn||(kn={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Relative"]=2]="Relative",e[e["Interval"]=3]="Interval",e[e["Custom"]=4]="Custom"}(On||(On={})),function(e){e[e["None"]=0]="None",e[e["Text"]=1]="Text",e[e["Blocks"]=2]="Blocks"}(Mn||(Mn={})),function(e){e[e["Smooth"]=0]="Smooth",e[e["Immediate"]=1]="Immediate"}(Dn||(Dn={})),function(e){e[e["Auto"]=1]="Auto",e[e["Hidden"]=2]="Hidden",e[e["Visible"]=3]="Visible"}(En||(En={})),function(e){e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL"}(Tn||(Tn={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(Ln||(Ln={})),function(e){e[e["File"]=0]="File",e[e["Module"]=1]="Module",e[e["Namespace"]=2]="Namespace",e[e["Package"]=3]="Package",e[e["Class"]=4]="Class",e[e["Method"]=5]="Method",e[e["Property"]=6]="Property",e[e["Field"]=7]="Field",e[e["Constructor"]=8]="Constructor",e[e["Enum"]=9]="Enum",e[e["Interface"]=10]="Interface",e[e["Function"]=11]="Function",e[e["Variable"]=12]="Variable",e[e["Constant"]=13]="Constant",e[e["String"]=14]="String",e[e["Number"]=15]="Number",e[e["Boolean"]=16]="Boolean",e[e["Array"]=17]="Array",e[e["Object"]=18]="Object",e[e["Key"]=19]="Key",e[e["Null"]=20]="Null",e[e["EnumMember"]=21]="EnumMember",e[e["Struct"]=22]="Struct",e[e["Event"]=23]="Event",e[e["Operator"]=24]="Operator",e[e["TypeParameter"]=25]="TypeParameter"}(In||(In={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(An||(An={})),function(e){e[e["Hidden"]=0]="Hidden",e[e["Blink"]=1]="Blink",e[e["Smooth"]=2]="Smooth",e[e["Phase"]=3]="Phase",e[e["Expand"]=4]="Expand",e[e["Solid"]=5]="Solid"}(Nn||(Nn={})),function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"}(Pn||(Pn={})),function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges",e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges",e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore",e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(Rn||(Rn={})),function(e){e[e["None"]=0]="None",e[e["Same"]=1]="Same",e[e["Indent"]=2]="Indent",e[e["DeepIndent"]=3]="DeepIndent"}(Fn||(Fn={}));class Bn{static chord(e,t){return Je(e,t)}}function zn(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ge,Emitter:ze,KeyCode:yn,KeyMod:Bn,Position:Qt,Range:Jt,Selection:en,SelectionDirection:Tn,MarkerSeverity:_n,MarkerTag:wn,Uri:Vt,Token:tn}}Bn.CtrlCmd=2048,Bn.Shift=1024,Bn.Alt=512,Bn.WinCtrl=256,n("769f"),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(jn||(jn={}));const Vn=Wn("instantiationService");function $n(e,t,n,i){t[jn.DI_TARGET]===t?t[jn.DI_DEPENDENCIES].push({id:e,index:n,optional:i}):(t[jn.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}],t[jn.DI_TARGET]=t)}function Wn(e){if(jn.serviceIds.has(e))return jn.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");$n(t,e,i,!1)};return t.toString=()=>e,jn.serviceIds.set(e,t),t}function Hn(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");$n(e,t,i,!0)}}const Un=Wn("codeEditorService");class qn{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new ze,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}function Gn(){return qn.INSTANCE.getZoomLevel()}function Kn(){return qn.INSTANCE.getTimeSinceLastZoomLevelChanged()}function Yn(e){return qn.INSTANCE.onDidChangeZoomLevel(e)}function Xn(){return qn.INSTANCE.getZoomFactor()}function Zn(){return qn.INSTANCE.getPixelRatio()}qn.INSTANCE=new qn;const Qn=navigator.userAgent,Jn=Qn.indexOf("Edge/")>=0,ei=Qn.indexOf("Firefox")>=0,ti=Qn.indexOf("AppleWebKit")>=0,ni=Qn.indexOf("Chrome")>=0,ii=!ni&&Qn.indexOf("Safari")>=0,ri=!ni&&!ii&&ti,oi=(Qn.indexOf("iPad")>=0||ii&&navigator.maxTouchPoints,Jn&&Qn.indexOf("WebView/")>=0),ai=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches,si=(e,t,n)=>{const i=e=>r.fire(e),r=new ze({onFirstListenerAdd:()=>{e.addEventListener(t,i,n)},onLastListenerRemove:()=>{e.removeEventListener(t,i,n)}});return r.event};let li=new Array(230),ci=new Array(112);function ui(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return Qe.fromString(t)}return li[e.keyCode]||0}(function(){for(let t=0;t<ci.length;t++)ci[t]=-1;function e(e,t){li[e]=t,ci[t]=e}e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),ei?(e(59,80),e(107,81),e(109,83),o["f"]&&e(224,57)):ti&&(e(91,57),o["f"]?e(93,57):e(92,57))})();const di=o["f"]?256:2048,hi=512,fi=1024,pi=o["f"]?2048:256;class gi{constructor(e){this._standardKeyboardEventBrand=!0;let t=e;this.browserEvent=t,this.target=t.target,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.keyCode=ui(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=di),this.altKey&&(t|=hi),this.shiftKey&&(t|=fi),this.metaKey&&(t|=pi),t|=e,t}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new nt(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}let mi,vi=!1,bi=null;function yi(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if("null"!==t.origin&&"null"!==n.origin&&(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port))return vi=!0,null}catch(t){return vi=!0,null}return e.parent}class _i{static getSameOriginWindowChain(){if(!bi){bi=[];let e,t=window;do{e=yi(t),e?bi.push({window:t,iframeElement:t.frameElement||null}):bi.push({window:t,iframeElement:null}),t=e}while(t)}return bi.slice(0)}static hasDifferentOriginAncestor(){return bi||this.getSameOriginWindowChain(),vi}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,i=0,r=this.getSameOriginWindowChain();for(const o of r){if(n+=o.window.scrollY,i+=o.window.scrollX,o.window===t)break;if(!o.iframeElement)break;let e=o.iframeElement.getBoundingClientRect();n+=e.top,i+=e.left}return{top:n,left:i}}}class wi{constructor(e){this.timestamp=Date.now(),this.browserEvent=e,this.leftButton=0===e.button,this.middleButton=1===e.button,this.rightButton=2===e.button,this.buttons=e.buttons,this.target=e.target,this.detail=e.detail||1,"dblclick"===e.type&&(this.detail=2),this.ctrlKey=e.ctrlKey,this.shiftKey=e.shiftKey,this.altKey=e.altKey,this.metaKey=e.metaKey,"number"===typeof e.pageX?(this.posx=e.pageX,this.posy=e.pageY):(this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop);let t=_i.getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class xi{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){let t=e,n=e;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if("undefined"!==typeof n.VERTICAL_AXIS&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?ei&&!o["f"]?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)ii&&o["i"]?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if("undefined"!==typeof n.HORIZONTAL_AXIS&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?ei&&!o["f"]?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}function Ci(e){return e&&"function"===typeof e.then}function Si(e){const t=new Ge,n=e(t.token),i=new Promise((e,i)=>{t.token.onCancellationRequested(()=>{i(ye())}),Promise.resolve(n).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),i(e)})});return new class{cancel(){t.cancel()}then(e,t){return i.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return i.finally(e)}}}class ki{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(ye()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}function Oi(e,t){return t?new Promise((n,i)=>{const r=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(r),i(ye())})}):Si(t=>Oi(e,t))}function Mi(e,t=0){const n=setTimeout(e,t);return Le(()=>clearTimeout(n))}class Di{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class Ei{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class Ti{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}(function(){if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining(){return 15}});mi=t=>{const n=setTimeout(()=>t(e));let i=!1;return{dispose(){i||(i=!0,clearTimeout(n))}}}}else mi=(e,t)=>{const n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(n))}}}})();class Li{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=mi(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}function Ii(e,t=0){return e[e.length-(1+t)]}function Ai(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function Ni(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function Pi(e,t,n){let i=0,r=e.length-1;while(i<=r){const o=(i+r)/2|0,a=n(e[o],t);if(a<0)i=o+1;else{if(!(a>0))return o;r=o-1}}return-(i+1)}function Ri(e,t){return ji(e,t,0,e.length-1,[]),e}function Fi(e,t,n,i,r,o){let a=n,s=i+1;for(let l=n;l<=r;l++)o[l]=e[l];for(let l=n;l<=r;l++)a>i?e[l]=o[s++]:s>r?e[l]=o[a++]:t(o[s],o[a])<0?e[l]=o[s++]:e[l]=o[a++]}function ji(e,t,n,i,r){if(i<=n)return;const o=n+(i-n)/2|0;ji(e,t,n,o,r),ji(e,t,o+1,i,r),t(e[o],e[o+1])<=0||Fi(e,t,n,o,i,r)}function Bi(e){return e.filter(e=>!!e)}function zi(e){return!Array.isArray(e)||0===e.length}function Vi(e){return Array.isArray(e)&&e.length>0}function $i(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const i=t(e);return!n[i]&&(n[i]=!0,!0)})}function Wi(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))}function Hi(e,t){for(let n=0;n<e.length;n++){const i=e[n];if(t(i))return n}return-1}function Ui(e,t,n){const i=Hi(e,t);return i<0?n:e[i]}function qi(e,t){return e.length>0?e[0]:t}function Gi(e,t){let n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);const i=[];if(n<=t)for(let r=n;r<t;r++)i.push(r);else for(let r=n;r>t;r--)i.push(r);return i}function Ki(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}var Yi;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeSettings="vscode-settings",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.vscodeWebviewResource="vscode-webview-resource",e.extension="extension"})(Yi||(Yi={}));class Xi{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n=`[${n}]`);const i=this._ports[t],r=this._connectionTokens[t];let a="path="+encodeURIComponent(e.path);return"string"===typeof r&&(a+="&tkn="+encodeURIComponent(r)),Vt.from({scheme:o["h"]?this._preferredWebSchema:Yi.vscodeRemoteResource,authority:`${n}:${i}`,path:"/vscode-remote-resource",query:a})}}const Zi=new Xi,Qi={clipboard:{writeText:o["g"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:o["g"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:(()=>{if(Jn){let e=navigator.userAgent.indexOf("Edge/"),t=parseInt(navigator.userAgent.substring(e+5,navigator.userAgent.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0})()},keyboard:(()=>o["g"]||ai?0:navigator.keyboard||ii?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)};function Ji(e){while(e.firstChild)e.removeChild(e.firstChild)}function er(e){e.parentNode&&e.parentNode.removeChild(e)}function tr(e){while(e){if(e===document.body)return!0;e=e.parentNode||e.host}return!1}const nr=new class{hasClass(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)}addClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.addClass(e,t)))}addClass(e,t){t&&e.classList&&e.classList.add(t)}removeClass(e,t){t&&e.classList&&e.classList.remove(t)}removeClasses(e,...t){t.forEach(t=>t.split(" ").forEach(t=>this.removeClass(e,t)))}toggleClass(e,t,n){e.classList&&e.classList.toggle(t,n)}},ir=nr.hasClass.bind(nr),rr=nr.addClass.bind(nr),or=nr.addClasses.bind(nr),ar=nr.removeClass.bind(nr),sr=nr.removeClasses.bind(nr),lr=nr.toggleClass.bind(nr);class cr{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function ur(e,t,n,i){return new cr(e,t,n,i)}function dr(e){return function(t){return e(new wi(t))}}function hr(e){return function(t){return e(new gi(t))}}let fr=function(e,t,n,i){let r=n;return"click"===t||"mousedown"===t?r=dr(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=hr(n)),ur(e,t,r,i)};function pr(e,t){return ur(e,"mouseout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}function gr(e,t){return ur(e,"pointerout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}let mr,vr,br=null;function yr(e){if(!br){const e=e=>setTimeout(()=>e((new Date).getTime()),0);br=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return br.call(self,e)}class _r{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){ge(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let e=[],t=null,n=!1,i=!1,r=()=>{n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(_r.sort);let e=t.shift();e.execute()}i=!1};vr=(t,i=0)=>{let o=new _r(t,i);return e.push(o),n||(n=!0,yr(r)),o},mr=(e,n)=>{if(i){let i=new _r(e,n);return t.push(i),i}return vr(e,n)}})();const wr=16,xr=function(e,t){return t};class Cr extends Ae{constructor(e,t,n,i=xr,r=wr){super();let o=null,a=0,s=this._register(new Di),l=()=>{a=(new Date).getTime(),n(o),o=null};this._register(ur(e,t,e=>{o=i(o,e);let t=(new Date).getTime()-a;t>=r?(s.cancel(),l()):s.setIfNotSet(l,r-t)}))}}function Sr(e,t,n,i,r){return new Cr(e,t,n,i,r)}function kr(e){return document.defaultView.getComputedStyle(e,null)}function Or(e){if(e!==document.body)return new Dr(e.clientWidth,e.clientHeight);if(o["c"]&&window.visualViewport){const e=window.visualViewport.width,t=window.visualViewport.height-(ai?24:0);return new Dr(e,t)}if(window.innerWidth&&window.innerHeight)return new Dr(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Dr(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Dr(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class Mr{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let i=kr(e),r="0";return i&&(r=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),Mr.convertToPixels(e,r)}static getBorderLeftWidth(e){return Mr.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return Mr.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return Mr.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return Mr.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return Mr.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return Mr.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return Mr.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return Mr.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return Mr.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return Mr.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return Mr.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return Mr.getDimension(e,"margin-bottom","marginBottom")}}class Dr{constructor(e,t){this.width=e,this.height=t}}function Er(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;const r=Br(e)?null:kr(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=Mr.getBorderLeftWidth(e),n+=Mr.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function Tr(e){let t=e.getBoundingClientRect();return{left:t.left+Lr.scrollX,top:t.top+Lr.scrollY,width:t.width,height:t.height}}const Lr=new class{get scrollX(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function Ir(e){let t=Mr.getMarginLeft(e)+Mr.getMarginRight(e);return e.offsetWidth+t}function Ar(e){let t=Mr.getBorderLeftWidth(e)+Mr.getBorderRightWidth(e),n=Mr.getPaddingLeft(e)+Mr.getPaddingRight(e);return e.offsetWidth-t-n}function Nr(e){let t=Mr.getBorderTopWidth(e)+Mr.getBorderBottomWidth(e),n=Mr.getPaddingTop(e)+Mr.getPaddingBottom(e);return e.offsetHeight-t-n}function Pr(e){let t=Mr.getMarginTop(e)+Mr.getMarginBottom(e);return e.offsetHeight+t}function Rr(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function Fr(e,t,n){while(e&&e.nodeType===e.ELEMENT_NODE){if(ir(e,t))return e;if(n)if("string"===typeof n){if(ir(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function jr(e,t,n){return!!Fr(e,t,n)}function Br(e){return e&&!!e.host&&!!e.mode}function zr(e){return!!Vr(e)}function Vr(e){while(e.parentNode){if(e===document.body)return null;e=e.parentNode}return Br(e)?e:null}function $r(){let e=document.activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function Wr(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let Hr=null;function Ur(){return Hr||(Hr=Wr()),Hr}function qr(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function Gr(e,t,n=Ur()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function Kr(e,t=Ur()){if(!t)return;let n=qr(t),i=[];for(let r=0;r<n.length;r++){let t=n[r];-1!==t.selectorText.indexOf(e)&&i.push(r)}for(let r=i.length-1;r>=0;r--)t.sheet.deleteRule(i[r])}function Yr(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const Xr={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:Jn?"mousewheel":"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:ti?"webkitAnimationStart":"animationstart",ANIMATION_END:ti?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:ti?"webkitAnimationIteration":"animationiteration"},Zr={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function Qr(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function Jr(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}class eo extends Ae{constructor(e){super(),this._onDidFocus=this._register(new ze),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new ze),this.onDidBlur=this._onDidBlur.event;let t=Rr(document.activeElement,e),n=!1;const i=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(n=!0,window.setTimeout(()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{let n=Rr(document.activeElement,e);n!==t&&(t?r():i())},this._register(si(e,Xr.FOCUS,!0)(i)),this._register(si(e,Xr.BLUR,!0)(r))}}function to(e){return new eo(e)}function no(e,...t){return t.forEach(t=>e.appendChild(t)),t[t.length-1]}const io=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;function ro(e,...t){e.innerText="",Bi(t).forEach(t=>{t instanceof Node?e.appendChild(t):e.appendChild(document.createTextNode(t))})}var oo;function ao(e,t,n,...i){let r=io.exec(t);if(!r)throw new Error("Bad use of emmet");n=Object.assign({},n||{});let o,a=r[1]||"div";return o=e!==oo.HTML?document.createElementNS(e,a):document.createElement(a),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach(e=>{const t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))}),Bi(i).forEach(e=>{e instanceof Node?o.appendChild(e):o.appendChild(document.createTextNode(e))}),o}function so(e,t,...n){return ao(oo.HTML,e,t,...n)}function lo(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function co(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function uo(e,t){while(e&&e.nodeType===e.ELEMENT_NODE){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function ho(e){if(e&&e.hasAttribute("tabIndex")){if(document.activeElement===e){let t=uo(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}}function fo(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function po(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function go(e){if(o["g"]||oi)window.open(e);else{let t=window.open();t&&(t.opener=null,t.location.href=e)}}function mo(e){const t=()=>{e(),n=vr(t)};let n=vr(t);return Le(()=>n.dispose())}function vo(e){return e&&Yi.vscodeRemote===e.scheme?Zi.rewrite(e):e}function bo(e){return e?`url('${vo(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(oo||(oo={})),so.SVG=function(e,t,...n){return ao(oo.SVG,e,t,...n)},Zi.setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");var yo=n("c223");function _o(e){let t=JSON.parse(e);return t=wo(t),t}function wo(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return Vt.revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof yo["a"]||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let n=0;n<e.length;++n)e[n]=wo(e[n],t+1);else for(const n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=wo(e[n],t+1))}return e}var xo=n("3fa4");function Co(e){return e.replace(/[\\/]/g,St.sep)}function So(e,t,n,i=Lt){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){const n=Object(xo["Q"])(e,t);if(!n)return!1;if(t.length===e.length)return!0;let r=t.length;return t.charAt(t.length-1)===i&&r--,e.charAt(r)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function ko(e){return Gt(e,!0)}class Oo{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:Object(xo["f"])(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return Vt.joinPath(e,...t)}basenameOrAuthority(e){return Do(e)||e.authority}basename(e){return St.basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===Yi.file?t=Vt.file(Dt(ko(e))).path:(t=St.dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===Yi.file?Vt.file(kt(ko(e))).path:St.normalize(e.path),e.with({path:t})}relativePath(e,t){if(e.scheme!==t.scheme||!Lo(e.authority,t.authority))return;if(e.scheme===Yi.file){const n=Mt(ko(e),ko(t));return o["i"]?Co(n):n}let n=e.path||"/",i=t.path||"/";if(this._ignorePathCasing(e)){let e=0;for(const t=Math.min(n.length,i.length);e<t;e++)if(n.charCodeAt(e)!==i.charCodeAt(e)&&n.charAt(e).toLowerCase()!==i.charAt(e).toLowerCase())break;n=i.substr(0,e)+n.substr(e)}return St.relative(n,i)}resolvePath(e,t){if(e.scheme===Yi.file){const n=Vt.file(Ot(ko(e),t));return e.with({authority:n.authority,path:n.path})}return-1===t.indexOf("/")&&(t=Co(t),/^[a-zA-Z]:(\/|$)/.test(t)&&(t="/"+t)),e.with({path:St.resolve(e.path,t)})}isEqualAuthority(e,t){return e===t||Object(xo["r"])(e,t)}}const Mo=new Oo(()=>!1),Do=(Mo.isEqual.bind(Mo),Mo.basenameOrAuthority.bind(Mo),Mo.basename.bind(Mo)),Eo=(Mo.dirname.bind(Mo),Mo.joinPath.bind(Mo)),To=Mo.normalizePath.bind(Mo),Lo=(Mo.relativePath.bind(Mo),Mo.resolvePath.bind(Mo),Mo.isEqualAuthority.bind(Mo));var Io;function Ao(e){return"string"===typeof e}function No(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Po(e){return"number"===typeof e&&!isNaN(e)}function Ro(e){return!0===e||!1===e}function Fo(e){return"undefined"===typeof e}function jo(e){return Fo(e)||null===e}function Bo(e){return"function"===typeof e}function zo(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)Vo(e[i],t[i])}function Vo(e,t){if(Ao(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(Bo(t)){try{if(e instanceof t)return}catch(n){}if(!jo(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function $o(e){let t=[],n=Object.getPrototypeOf(e);while(Object.prototype!==n)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function Wo(e){const t=[];for(const n of $o(e))"function"===typeof e[n]&&t.push(n);return t}function Ho(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const r of e)i[r]=n(r);return i}function Uo(e){return null===e?void 0:e}(function(e){function t(t){const n=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach(e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(Io||(Io={}));const qo=Wn("commandService"),Go=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ze,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){if(!e)throw new Error("invalid command");if("string"===typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){const t=[];for(let i of e.description.args)t.push(i.constraint);const n=e.handler;e.handler=function(e,...i){return zo(i,t),n(e,...i)}}const{id:n}=e;let i=this._commands.get(n);i||(i=new Re,this._commands.set(n,i));let r=i.unshift(e),o=Le(()=>{r();const e=this._commands.get(n);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),o}registerCommandAlias(e,t){return Go.registerCommand(e,(e,...n)=>e.get(qo).executeCommand(t,...n))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return xe.first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}};var Ko=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const Yo=Wn("openerService");function Xo(e,t){return Vt.isUri(e)?Object(xo["r"])(e.scheme,t):Object(xo["Q"])(e,t+":")}var Zo;Object.freeze({_serviceBrand:void 0,registerOpener(){return Ae.None},registerValidator(){return Ae.None},registerExternalUriResolver(){return Ae.None},setExternalOpener(){},open(){return Ko(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(e){return Ko(this,void 0,void 0,(function*(){return{resolved:e,dispose(){}}}))}}),function(e){e[e["API"]=0]="API",e[e["USER"]=1]="USER"}(Zo||(Zo={}));var Qo=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Jo=function(e,t){return function(n,i){t(n,i,e)}},ea=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};let ta=class{constructor(e){this._commandService=e}open(e){return ea(this,void 0,void 0,(function*(){if(!Xo(e,Yi.command))return!1;"string"===typeof e&&(e=Vt.parse(e));let t=[];try{t=_o(decodeURIComponent(e.query))}catch(n){try{t=_o(e.query)}catch(i){}}return Array.isArray(t)||(t=[t]),yield this._commandService.executeCommand(e.path,...t),!0}))}};ta=Qo([Jo(0,qo)],ta);let na=class{constructor(e){this._editorService=e}open(e,t){return ea(this,void 0,void 0,(function*(){"string"===typeof e&&(e=Vt.parse(e));let n=void 0;const i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);return i&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===Yi.file&&(e=To(e)),yield this._editorService.openCodeEditor({resource:e,options:{selection:n,context:(null===t||void 0===t?void 0:t.fromUserGesture)?Zo.USER:Zo.API}},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}))}};na=Qo([Jo(0,Un)],na);let ia=class{constructor(e,t){this._openers=new Re,this._validators=new Re,this._resolvers=new Re,this._externalOpener={openExternal:e=>(Xo(e,Yi.http)||Xo(e,Yi.https)?go(e):window.location.href=e,Promise.resolve(!0))},this._openers.push({open:(e,t)=>ea(this,void 0,void 0,(function*(){return!!((null===t||void 0===t?void 0:t.openExternal)||Xo(e,Yi.mailto)||Xo(e,Yi.http)||Xo(e,Yi.https))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new ta(t)),this._openers.push(new na(e))}open(e,t){return ea(this,void 0,void 0,(function*(){for(const t of this._validators.toArray())if(!(yield t.shouldOpen(e)))return!1;for(const n of this._openers.toArray()){const i=yield n.open(e,t);if(i)return!0}return!1}))}resolveExternalUri(e,t){return ea(this,void 0,void 0,(function*(){for(const n of this._resolvers.toArray()){const i=yield n.resolveExternalUri(e,t);if(i)return i}return{resolved:e,dispose:()=>{}}}))}_doOpenExternal(e,t){return ea(this,void 0,void 0,(function*(){const n="string"===typeof e?Vt.parse(e):e,{resolved:i}=yield this.resolveExternalUri(n,t);return"string"===typeof e&&n.toString()===i.toString()?this._externalOpener.openExternal(e):this._externalOpener.openExternal(encodeURI(i.toString(!0)))}))}dispose(){this._validators.clear()}};function ra(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}function oa(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"===typeof e[n]?t[n]=oa(e[n]):t[n]=e[n]}),t}function aa(e){if(!e||"object"!==typeof e)return e;const t=[e];while(t.length>0){const e=t.shift();Object.freeze(e);for(const n in e)if(sa.call(e,n)){const i=e[n];"object"!==typeof i||Object.isFrozen(i)||t.push(i)}}return e}ia=Qo([Jo(0,Un),Jo(1,qo)],ia);const sa=Object.prototype.hasOwnProperty;function la(e,t,n=!0){return No(e)?(No(t)&&Object.keys(t).forEach(i=>{i in e?n&&(No(e[i])&&No(t[i])?la(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]}),e):t}function ca(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e}function ua(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!ua(e[n],t[n]))return!1}else{const r=[];for(i in e)r.push(i);r.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!ua(r,o))return!1;for(n=0;n<r.length;n++)if(!ua(e[r[n]],t[r[n]]))return!1}return!0}function da(e,t,n){const i=t(e);return"undefined"===typeof i?n:i}const ha={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class fa extends Ae{constructor(e,t={}){super(),this._onDidUpdate=this._register(new ze),this._editor=e,this._options=la(t,ha,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(e=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new Jt(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new Jt(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort((e,t)=>e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,n=this._editor.getPosition();if(n){for(let i=0,r=this.ranges.length;i<r&&!t;i++){let r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(e,t){if(ra(!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=n.range.getStartPosition();this._editor.setPosition(e),this._editor.revealPositionInCenter(e,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}const pa=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new ze,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}},ga=o["f"]?1.5:1.35,ma=8;class va{constructor(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,n){const i=e.get(35),r=e.get(39),o=e.get(38),a=e.get(37),s=e.get(51),l=e.get(48);return va._create(i,r,o,a,s,l,t,n)}static _create(e,t,n,i,r,o,a,s){0===r?r=Math.round(ga*n):r<ma&&(r=ma);const l=1+(s?0:.1*pa.getZoomLevel());return n*=l,r*=l,new va({zoomLevel:a,fontFamily:e,fontWeight:t,fontSize:n,fontFeatureSettings:i,lineHeight:r,letterSpacing:o})}getId(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}class ba extends va{constructor(e,t){super(e),this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}function ya(e){return e&&"string"===typeof e.id}const _a={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var wa,xa;(function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"})(wa||(wa={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(xa||(xa={}));class Ca{constructor(e){this.tabSize=Math.max(1,0|e.tabSize),this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class Sa{constructor(e,t){this.range=e,this.matches=t}}class ka{constructor(e,t,n,i,r,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class Oa{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}class Ma{constructor(e,t){this[Symbol.toStringTag]="ResourceMap",e instanceof Ma?(this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:Ma.defaultToKey):(this.map=new Map,this.toKey=null!==e&&void 0!==e?e:Ma.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),t),this}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(let[n,i]of this.map)e(i,Vt.parse(n),this)}values(){return this.map.values()}*keys(){for(let e of this.map.keys())yield Vt.parse(e)}*entries(){for(let e of this.map.entries())yield[Vt.parse(e[0]),e[1]]}*[Symbol.iterator](){for(let e of this.map)yield[Vt.parse(e[0]),e[1]]}}Ma.defaultToKey=e=>e.toString();class Da{constructor(){this[Symbol.toStringTag]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;while(i){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[Symbol.iterator](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;while(t&&n>e)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class Ea extends Da{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}const Ta="**",La="/",Ia="[/\\\\]",Aa="[^/\\\\]",Na=/\//g;function Pa(e){switch(e){case 0:return"";case 1:return Aa+"*?";default:return`(?:${Ia}|${Aa}+${Ia}|${Ia}${Aa}+)*?`}}function Ra(e,t){if(!e)return[];const n=[];let i=!1,r=!1,o="";for(const a of e){switch(a){case t:if(!i&&!r){n.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1;break}o+=a}return o&&n.push(o),n}function Fa(e){if(!e)return"";let t="";const n=Ra(e,La);if(n.every(e=>e===Ta))t=".*";else{let e=!1;n.forEach((i,r)=>{if(i===Ta)return void(e||(t+=Pa(2),e=!0));let o=!1,a="",s=!1,l="";for(const e of i)if("}"!==e&&o)a+=e;else if(!s||"]"===e&&l)switch(e){case"{":o=!0;continue;case"[":s=!0;continue;case"}":const n=Ra(a,","),i=`(?:${n.map(e=>Fa(e)).join("|")})`;t+=i,o=!1,a="";break;case"]":t+="["+l+"]",s=!1,l="";break;case"?":t+=Aa;continue;case"*":t+=Pa(1);continue;default:t+=xo["t"](e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||l?e===La?"":xo["t"](e):"^",l+=t}r<n.length-1&&(n[r+1]!==Ta||r+2<n.length)&&(t+=Ia),e=!1})}return t}const ja=/^\*\*\/\*\.[\w\.-]+$/,Ba=/^\*\*\/([\w\.-]+)\/?$/,za=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,Va=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,$a=/^\*\*((\/[\w\.-]+)+)\/?$/,Wa=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,Ha=new Ea(1e4),Ua=function(){return!1},qa=function(){return null};function Ga(e,t){if(!e)return qa;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,o=Ha.get(i);if(o)return Ka(o,e);if(ja.test(n)){const e=n.substr(4);o=function(t,i){return"string"===typeof t&&t.endsWith(e)?n:null}}else o=(r=Ba.exec(Ya(n,t)))?Xa(r[1],n):(t.trimForExclusions?Va:za).test(n)?Za(n,t):(r=$a.exec(Ya(n,t)))?Qa(r[1].substr(1),n,!0):(r=Wa.exec(Ya(n,t)))?Qa(r[1],n,!1):Ja(n);return Ha.set(i,o),Ka(o,e)}function Ka(e,t){return"string"===typeof t?e:function(n,i){return So(n,t.base)?e(Mt(t.base,n),i):null}}function Ya(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function Xa(e,t){const n="/"+e,i="\\"+e,r=function(r,o){return"string"!==typeof r?null:o?o===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},o=[e];return r.basenames=o,r.patterns=[t],r.allBasenames=o,r}function Za(e,t){const n=os(e.slice(1,-1).split(",").map(e=>Ga(e,t)).filter(e=>e!==qa),e),i=n.length;if(!i)return qa;if(1===i)return n[0];const r=function(t,i){for(let r=0,o=n.length;r<o;r++)if(n[r](t,i))return e;return null},o=Ui(n,e=>!!e.allBasenames);o&&(r.allBasenames=o.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return a.length&&(r.allPaths=a),r}function Qa(e,t,n){const i=Lt!==St.sep?e.replace(Na,Lt):e,r=Lt+i,o=n?function(e,n){return"string"!==typeof e||e!==i&&!e.endsWith(r)?null:t}:function(e,n){return"string"===typeof e&&e===i?t:null};return o.allPaths=[(n?"*/":"./")+e],o}function Ja(e){try{const t=new RegExp(`^${Fa(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return qa}}function es(e,t,n){return!(!e||"string"!==typeof t)&&ts(e)(t,void 0,n)}function ts(e,t={}){if(!e)return Ua;if("string"===typeof e||ns(e)){const n=Ga(e,t);if(n===qa)return Ua;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return is(e,t)}function ns(e){const t=e;return t&&"string"===typeof t.base&&"string"===typeof t.pattern}function is(e,t){const n=os(Object.getOwnPropertyNames(e).map(n=>rs(n,e[n],t)).filter(e=>e!==qa)),i=n.length;if(!i)return qa;if(!n.some(e=>!!e.requiresSiblings)){if(1===i)return n[0];const e=function(e,t){for(let i=0,r=n.length;i<r;i++){const r=n[i](e,t);if(r)return r}return null},t=Ui(n,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const r=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,i){let r=void 0;for(let o=0,a=n.length;o<a;o++){const a=n[o];a.requiresSiblings&&i&&(t||(t=Et(e)),r||(r=t.substr(0,t.length-Tt(e).length)));const s=a(e,t,r,i);if(s)return s}return null},o=Ui(n,e=>!!e.allBasenames);o&&(r.allBasenames=o.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return a.length&&(r.allPaths=a),r}function rs(e,t,n){if(!1===t)return qa;const i=Ga(e,n);if(i===qa)return qa;if("boolean"===typeof t)return i;if(t){const n=t.when;if("string"===typeof n){const t=(t,r,o,a)=>{if(!a||!i(t,r))return null;const s=n.replace("$(basename)",o),l=a(s);return Ci(l)?l.then(t=>t?e:null):l?e:null};return t.requiresSiblings=!0,t}}return i}function os(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const i=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const o=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};o.basenames=i,o.patterns=r,o.allBasenames=i;const a=e.filter(e=>!e.basenames);return a.push(o),a}function as(e,t,n,i){if(Array.isArray(e)){let r=0;for(const o of e){const e=as(o,t,n,i);if(10===e)return e;e>r&&(r=e)}return r}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:r,pattern:o,scheme:a,hasAccessToAllModels:s}=e;if(!i&&!s)return 0;let l=0;if(a)if(a===t.scheme)l=10;else{if("*"!==a)return 0;l=5}if(r)if(r===n)l=10;else{if("*"!==r)return 0;l=Math.max(l,5)}if(o){let e;if(e="string"===typeof o?o:Object.assign(Object.assign({},o),{base:kt(o.base)}),e!==t.fsPath&&!es(e,t.fsPath))return 0;l=10}return l}return 0}const ss=Wn("modelService");function ls(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}function cs(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(cs):!!e.exclusive)}class us{constructor(){this._clock=0,this._entries=[],this._onDidChange=new ze}get onDidChange(){return this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Le(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){let t={uri:e.uri.toString(),language:e.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==t.language||this._lastCandidate.uri!==t.uri){this._lastCandidate=t;for(let t of this._entries)if(t._score=as(t.selector,e.uri,e.getLanguageIdentifier().language,ls(e)),cs(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(us._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}class ds{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new ze,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),Le(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerPromise(e,t){let n=null,i=!1;return this._promises.set(e,t.then(t=>{this._promises.delete(e),!i&&t&&(n=this.register(e,t))})),Le(()=>{i=!0,n&&n.dispose()})}getPromise(e){const t=this.get(e);if(t)return Promise.resolve(t);const n=this._promises.get(e);return n?n.then(t=>this.get(e)):null}get(e){return this._map.get(e)||null}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}function hs(...e){return function(t,n){for(let i=0,r=e.length;i<r;i++){const r=e[i](t,n);if(r)return r}return null}}const fs=ps.bind(void 0,!0);function ps(e,t,n){if(!n||n.length<t.length)return null;let i;return i=e?xo["Q"](n,t):0===n.indexOf(t),i?t.length>0?[{start:0,end:t.length}]:[]:null}function gs(e,t){const n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function ms(e,t){return vs(e.toLowerCase(),t.toLowerCase(),0,0)}function vs(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){let r=null;return(r=vs(e,t,n+1,i+1))?Ss({start:i,end:i+1},r):null}return vs(e,t,n,i+1)}function bs(e){return 97<=e&&e<=122}function ys(e){return 65<=e&&e<=90}function _s(e){return 48<=e&&e<=57}function ws(e){return 32===e||9===e||10===e||13===e}const xs=new Set;function Cs(e){return bs(e)||ys(e)||_s(e)}function Ss(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function ks(e,t){for(let n=t;n<e.length;n++){const t=e.charCodeAt(n);if(ys(t)||_s(t)||n>0&&!Cs(e.charCodeAt(n-1)))return n}return e.length}function Os(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;{let r=null,o=i+1;r=Os(e,t,n+1,i+1);while(!r&&(o=ks(t,o))<t.length)r=Os(e,t,n+1,o),o++;return null===r?null:Ss({start:i,end:i+1},r)}}function Ms(e){let t=0,n=0,i=0,r=0,o=0;for(let u=0;u<e.length;u++)o=e.charCodeAt(u),ys(o)&&t++,bs(o)&&n++,Cs(o)&&i++,_s(o)&&r++;const a=t/e.length,s=n/e.length,l=i/e.length,c=r/e.length;return{upperPercent:a,lowerPercent:s,alphaPercent:l,numericPercent:c}}function Ds(e){const{upperPercent:t,lowerPercent:n}=e;return 0===n&&t>.6}function Es(e){const{upperPercent:t,lowerPercent:n,alphaPercent:i,numericPercent:r}=e;return n>.2&&t<.8&&i>.6&&r<.2}function Ts(e){let t=0,n=0,i=0,r=0;for(let o=0;o<e.length;o++)i=e.charCodeAt(o),ys(i)&&t++,bs(i)&&n++,ws(i)&&r++;return 0!==t&&0!==n||0!==r?t<=5:e.length<=30}function Ls(e,t){if(!t)return null;if(t=t.trim(),0===t.length)return null;if(!Ts(e))return null;if(t.length>60)return null;const n=Ms(t);if(!Es(n)){if(!Ds(n))return null;t=t.toLowerCase()}let i=null,r=0;e=e.toLowerCase();while(r<t.length&&null===(i=Os(e,t,0,r)))r=ks(t,r+1);return i}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(e=>xs.add(e.charCodeAt(0)));const Is=hs(fs,Ls,gs),As=hs(fs,Ls,ms),Ns=new Ea(1e4);function Ps(e,t,n=!1){if("string"!==typeof e||"string"!==typeof t)return null;let i=Ns.get(e);i||(i=new RegExp(xo["n"](e),"i"),Ns.set(e,i));const r=i.exec(t);return r?[{start:r.index,end:r.index+r[0].length}]:n?As(e,t):Is(e,t)}const Rs=128;function Fs(){const e=[],t=[0];for(let n=1;n<=Rs;n++)t.push(-n);for(let n=0;n<=Rs;n++){const i=t.slice(0);i[0]=-n,e.push(i)}return e}const js=Fs(),Bs=Fs(),zs=Fs(),Vs=!1;function $s(e,t,n,i,r){function o(e,t,n=" "){while(e.length<t)e=n+e;return e}let a=` | |${i.split("").map(e=>o(e,3)).join("|")}\n`;for(let s=0;s<=n;s++)a+=0===s?" |":t[s-1]+"|",a+=e[s].slice(0,r+1).map(e=>o(e.toString(),3)).join("|")+"\n";return a}function Ws(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log($s(js,e,e.length,n,n.length)),console.log($s(zs,e,e.length,n,n.length)),console.log($s(Bs,e,e.length,n,n.length))}function Hs(e,t){if(t<0||t>=e.length)return!1;const n=e.charCodeAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function Us(e,t){if(t<0||t>=e.length)return!1;const n=e.charCodeAt(t);switch(n){case 32:case 9:return!0;default:return!1}}function qs(e,t,n){return t[e]!==n[e]}function Gs(e,t,n,i,r,o){while(t<n&&r<o)e[t]===i[r]&&(t+=1),r+=1;return t===n}var Ks;function Ys(e,t,n,i,r,o,a){const s=e.length>Rs?Rs:e.length,l=i.length>Rs?Rs:i.length;if(n>=s||o>=l||s-n>l-o)return;if(!Gs(t,n,s,r,o,l))return;let c=1,u=1,d=n,h=o,f=!1;for(c=1,d=n;d<s;c++,d++)for(u=1,h=o;h<l;u++,h++){const o=Xs(e,t,d,n,i,r,h);d===n&&o>1&&(f=!0),Bs[c][u]=o;const a=js[c-1][u-1]+(o>1?1:o),s=js[c-1][u]+-1,l=js[c][u-1]+-1;l>=s?l>a?(js[c][u]=l,zs[c][u]=4):l===a?(js[c][u]=l,zs[c][u]=6):(js[c][u]=a,zs[c][u]=2):s>a?(js[c][u]=s,zs[c][u]=1):s===a?(js[c][u]=s,zs[c][u]=3):(js[c][u]=a,zs[c][u]=2)}return Vs&&Ws(e,n,i,o),(f||a)&&(Zs=0,Js=-100,el=o,tl=a,nl(c-1,u-1,s===l?1:0,0,!1),0!==Zs)?[Js,Qs,o]:void 0}function Xs(e,t,n,i,r,o,a){return t[n]!==o[a]?-1:a===n-i?e[n]===r[a]?7:5:!qs(a,r,o)||0!==a&&qs(a-1,r,o)?!Hs(o,a)||0!==a&&Hs(o,a-1)?Hs(o,a-1)||Us(o,a-1)?5:1:5:e[n]===r[a]?7:5}(function(e){function t(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}e.Default=Object.freeze([-100,0,0]),e.isDefault=t})(Ks||(Ks={}));let Zs=0,Qs=0,Js=0,el=0,tl=!1;function nl(e,t,n,i,r){if(Zs>=10||n<-25)return;let o=0;while(e>0&&t>0){const a=Bs[e][t],s=zs[e][t];if(4===s)t-=1,r?n-=5:0!==i&&(n-=1),r=!1,o=0;else{if(!(2&s))return;if(4&s&&nl(e,t-1,0!==i?n-1:n,i,r),n+=a,e-=1,t-=1,r=!0,i+=Math.pow(2,t+el),1===a){if(o+=1,0===e&&!tl)return}else n+=1+o*(a-1),o=0}}n-=t>=3?9:3*t,Zs+=1,n>Js&&(Js=n,Qs=i)}const il="$(";function rl(e){const t=e.indexOf(il);return-1===t?{text:e}:ol(e,t)}function ol(e,t){const n=[];let i="";function r(e){if(e){i+=e;for(const t of e)n.push(c)}}let o,a,s=-1,l="",c=0,u=t;const d=e.length;r(e.substr(0,t));while(u<d){if(o=e[u],a=e[u+1],o===il[0]&&a===il[1])s=u,r(l),l=il,u++;else if(")"===o&&-1!==s){const e=u-s+1;c+=e,s=-1,l=""}else-1!==s?/^[a-z0-9\-]$/i.test(o)?l+=o:(r(l),s=-1,l=""):r(o);u++}return r(l),{text:i,codiconOffsets:n}}function al(e,t,n=!1){const{text:i,codiconOffsets:r}=t;if(!r||0===r.length)return Ps(e,i,n);const o=Object(xo["I"])(i," "),a=i.length-o.length,s=Ps(e,o,n);if(s)for(const l of s){const e=r[l.start+a]+a;l.start+=e,l.end+=e}return s}class sl{constructor(){this._icons=new Map,this._onDidRegister=new ze}add(e){this._icons.has(e.id)?console.error("Duplicate registration of codicon "+e.id):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ll=new sl,cl=ll;function ul(e,t,n){return new dl(e,t)}class dl{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,ll.add(this)}get classNames(){return"codicon codicon-"+this.id}get cssSelector(){return".codicon.codicon-"+this.id}}(function(e){e.add=new e("add",{character:"\\ea60"}),e.plus=new e("plus",{character:"\\ea60"}),e.gistNew=new e("gist-new",{character:"\\ea60"}),e.repoCreate=new e("repo-create",{character:"\\ea60"}),e.lightbulb=new e("lightbulb",{character:"\\ea61"}),e.lightBulb=new e("light-bulb",{character:"\\ea61"}),e.repo=new e("repo",{character:"\\ea62"}),e.repoDelete=new e("repo-delete",{character:"\\ea62"}),e.gistFork=new e("gist-fork",{character:"\\ea63"}),e.repoForked=new e("repo-forked",{character:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{character:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{character:"\\ea64"}),e.recordKeys=new e("record-keys",{character:"\\ea65"}),e.keyboard=new e("keyboard",{character:"\\ea65"}),e.tag=new e("tag",{character:"\\ea66"}),e.tagAdd=new e("tag-add",{character:"\\ea66"}),e.tagRemove=new e("tag-remove",{character:"\\ea66"}),e.person=new e("person",{character:"\\ea67"}),e.personAdd=new e("person-add",{character:"\\ea67"}),e.personFollow=new e("person-follow",{character:"\\ea67"}),e.personOutline=new e("person-outline",{character:"\\ea67"}),e.personFilled=new e("person-filled",{character:"\\ea67"}),e.gitBranch=new e("git-branch",{character:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{character:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{character:"\\ea68"}),e.sourceControl=new e("source-control",{character:"\\ea68"}),e.mirror=new e("mirror",{character:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{character:"\\ea69"}),e.star=new e("star",{character:"\\ea6a"}),e.starAdd=new e("star-add",{character:"\\ea6a"}),e.starDelete=new e("star-delete",{character:"\\ea6a"}),e.starEmpty=new e("star-empty",{character:"\\ea6a"}),e.comment=new e("comment",{character:"\\ea6b"}),e.commentAdd=new e("comment-add",{character:"\\ea6b"}),e.alert=new e("alert",{character:"\\ea6c"}),e.warning=new e("warning",{character:"\\ea6c"}),e.search=new e("search",{character:"\\ea6d"}),e.searchSave=new e("search-save",{character:"\\ea6d"}),e.logOut=new e("log-out",{character:"\\ea6e"}),e.signOut=new e("sign-out",{character:"\\ea6e"}),e.logIn=new e("log-in",{character:"\\ea6f"}),e.signIn=new e("sign-in",{character:"\\ea6f"}),e.eye=new e("eye",{character:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{character:"\\ea70"}),e.eyeWatch=new e("eye-watch",{character:"\\ea70"}),e.circleFilled=new e("circle-filled",{character:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{character:"\\ea71"}),e.closeDirty=new e("close-dirty",{character:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{character:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{character:"\\ea71"}),e.debugHint=new e("debug-hint",{character:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{character:"\\ea72"}),e.edit=new e("edit",{character:"\\ea73"}),e.pencil=new e("pencil",{character:"\\ea73"}),e.info=new e("info",{character:"\\ea74"}),e.issueOpened=new e("issue-opened",{character:"\\ea74"}),e.gistPrivate=new e("gist-private",{character:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{character:"\\ea75"}),e.lock=new e("lock",{character:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{character:"\\ea75"}),e.close=new e("close",{character:"\\ea76"}),e.removeClose=new e("remove-close",{character:"\\ea76"}),e.x=new e("x",{character:"\\ea76"}),e.repoSync=new e("repo-sync",{character:"\\ea77"}),e.sync=new e("sync",{character:"\\ea77"}),e.clone=new e("clone",{character:"\\ea78"}),e.desktopDownload=new e("desktop-download",{character:"\\ea78"}),e.beaker=new e("beaker",{character:"\\ea79"}),e.microscope=new e("microscope",{character:"\\ea79"}),e.vm=new e("vm",{character:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{character:"\\ea7a"}),e.file=new e("file",{character:"\\ea7b"}),e.fileText=new e("file-text",{character:"\\ea7b"}),e.more=new e("more",{character:"\\ea7c"}),e.ellipsis=new e("ellipsis",{character:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{character:"\\ea7c"}),e.mailReply=new e("mail-reply",{character:"\\ea7d"}),e.reply=new e("reply",{character:"\\ea7d"}),e.organization=new e("organization",{character:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{character:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{character:"\\ea7e"}),e.newFile=new e("new-file",{character:"\\ea7f"}),e.fileAdd=new e("file-add",{character:"\\ea7f"}),e.newFolder=new e("new-folder",{character:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{character:"\\ea80"}),e.trash=new e("trash",{character:"\\ea81"}),e.trashcan=new e("trashcan",{character:"\\ea81"}),e.history=new e("history",{character:"\\ea82"}),e.clock=new e("clock",{character:"\\ea82"}),e.folder=new e("folder",{character:"\\ea83"}),e.fileDirectory=new e("file-directory",{character:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{character:"\\ea83"}),e.logoGithub=new e("logo-github",{character:"\\ea84"}),e.markGithub=new e("mark-github",{character:"\\ea84"}),e.github=new e("github",{character:"\\ea84"}),e.terminal=new e("terminal",{character:"\\ea85"}),e.console=new e("console",{character:"\\ea85"}),e.repl=new e("repl",{character:"\\ea85"}),e.zap=new e("zap",{character:"\\ea86"}),e.symbolEvent=new e("symbol-event",{character:"\\ea86"}),e.error=new e("error",{character:"\\ea87"}),e.stop=new e("stop",{character:"\\ea87"}),e.variable=new e("variable",{character:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{character:"\\ea88"}),e.array=new e("array",{character:"\\ea8a"}),e.symbolArray=new e("symbol-array",{character:"\\ea8a"}),e.symbolModule=new e("symbol-module",{character:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{character:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{character:"\\ea8b"}),e.symbolObject=new e("symbol-object",{character:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{character:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{character:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{character:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{character:"\\ea8f"}),e.symbolNull=new e("symbol-null",{character:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{character:"\\ea90"}),e.symbolNumber=new e("symbol-number",{character:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{character:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{character:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{character:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{character:"\\ea92"}),e.symbolKey=new e("symbol-key",{character:"\\ea93"}),e.symbolText=new e("symbol-text",{character:"\\ea93"}),e.symbolReference=new e("symbol-reference",{character:"\\ea94"}),e.goToFile=new e("go-to-file",{character:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{character:"\\ea95"}),e.symbolValue=new e("symbol-value",{character:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{character:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{character:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{character:"\\ea97"}),e.archive=new e("archive",{character:"\\ea98"}),e.arrowBoth=new e("arrow-both",{character:"\\ea99"}),e.arrowDown=new e("arrow-down",{character:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{character:"\\ea9b"}),e.arrowRight=new e("arrow-right",{character:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{character:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{character:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{character:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{character:"\\eaa0"}),e.arrowUp=new e("arrow-up",{character:"\\eaa1"}),e.bell=new e("bell",{character:"\\eaa2"}),e.bold=new e("bold",{character:"\\eaa3"}),e.book=new e("book",{character:"\\eaa4"}),e.bookmark=new e("bookmark",{character:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{character:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{character:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{character:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{character:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{character:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{character:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{character:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{character:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{character:"\\eaab"}),e.briefcase=new e("briefcase",{character:"\\eaac"}),e.broadcast=new e("broadcast",{character:"\\eaad"}),e.browser=new e("browser",{character:"\\eaae"}),e.bug=new e("bug",{character:"\\eaaf"}),e.calendar=new e("calendar",{character:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{character:"\\eab1"}),e.check=new e("check",{character:"\\eab2"}),e.checklist=new e("checklist",{character:"\\eab3"}),e.chevronDown=new e("chevron-down",{character:"\\eab4"}),e.chevronLeft=new e("chevron-left",{character:"\\eab5"}),e.chevronRight=new e("chevron-right",{character:"\\eab6"}),e.chevronUp=new e("chevron-up",{character:"\\eab7"}),e.chromeClose=new e("chrome-close",{character:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{character:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{character:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{character:"\\eabb"}),e.circleOutline=new e("circle-outline",{character:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{character:"\\eabc"}),e.circleSlash=new e("circle-slash",{character:"\\eabd"}),e.circuitBoard=new e("circuit-board",{character:"\\eabe"}),e.clearAll=new e("clear-all",{character:"\\eabf"}),e.clippy=new e("clippy",{character:"\\eac0"}),e.closeAll=new e("close-all",{character:"\\eac1"}),e.cloudDownload=new e("cloud-download",{character:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{character:"\\eac3"}),e.code=new e("code",{character:"\\eac4"}),e.collapseAll=new e("collapse-all",{character:"\\eac5"}),e.colorMode=new e("color-mode",{character:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{character:"\\eac7"}),e.compareChanges=new e("compare-changes",{character:"\\eafd"}),e.creditCard=new e("credit-card",{character:"\\eac9"}),e.dash=new e("dash",{character:"\\eacc"}),e.dashboard=new e("dashboard",{character:"\\eacd"}),e.database=new e("database",{character:"\\eace"}),e.debugContinue=new e("debug-continue",{character:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{character:"\\ead0"}),e.debugPause=new e("debug-pause",{character:"\\ead1"}),e.debugRestart=new e("debug-restart",{character:"\\ead2"}),e.debugStart=new e("debug-start",{character:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{character:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{character:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{character:"\\ead6"}),e.debugStop=new e("debug-stop",{character:"\\ead7"}),e.debug=new e("debug",{character:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{character:"\\ead9"}),e.deviceCamera=new e("device-camera",{character:"\\eada"}),e.deviceMobile=new e("device-mobile",{character:"\\eadb"}),e.diffAdded=new e("diff-added",{character:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{character:"\\eadd"}),e.diffModified=new e("diff-modified",{character:"\\eade"}),e.diffRemoved=new e("diff-removed",{character:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{character:"\\eae0"}),e.diff=new e("diff",{character:"\\eae1"}),e.discard=new e("discard",{character:"\\eae2"}),e.editorLayout=new e("editor-layout",{character:"\\eae3"}),e.emptyWindow=new e("empty-window",{character:"\\eae4"}),e.exclude=new e("exclude",{character:"\\eae5"}),e.extensions=new e("extensions",{character:"\\eae6"}),e.eyeClosed=new e("eye-closed",{character:"\\eae7"}),e.fileBinary=new e("file-binary",{character:"\\eae8"}),e.fileCode=new e("file-code",{character:"\\eae9"}),e.fileMedia=new e("file-media",{character:"\\eaea"}),e.filePdf=new e("file-pdf",{character:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{character:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{character:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{character:"\\eaee"}),e.fileZip=new e("file-zip",{character:"\\eaef"}),e.files=new e("files",{character:"\\eaf0"}),e.filter=new e("filter",{character:"\\eaf1"}),e.flame=new e("flame",{character:"\\eaf2"}),e.foldDown=new e("fold-down",{character:"\\eaf3"}),e.foldUp=new e("fold-up",{character:"\\eaf4"}),e.fold=new e("fold",{character:"\\eaf5"}),e.folderActive=new e("folder-active",{character:"\\eaf6"}),e.folderOpened=new e("folder-opened",{character:"\\eaf7"}),e.gear=new e("gear",{character:"\\eaf8"}),e.gift=new e("gift",{character:"\\eaf9"}),e.gistSecret=new e("gist-secret",{character:"\\eafa"}),e.gist=new e("gist",{character:"\\eafb"}),e.gitCommit=new e("git-commit",{character:"\\eafc"}),e.gitCompare=new e("git-compare",{character:"\\eafd"}),e.gitMerge=new e("git-merge",{character:"\\eafe"}),e.githubAction=new e("github-action",{character:"\\eaff"}),e.githubAlt=new e("github-alt",{character:"\\eb00"}),e.globe=new e("globe",{character:"\\eb01"}),e.grabber=new e("grabber",{character:"\\eb02"}),e.graph=new e("graph",{character:"\\eb03"}),e.gripper=new e("gripper",{character:"\\eb04"}),e.heart=new e("heart",{character:"\\eb05"}),e.home=new e("home",{character:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{character:"\\eb07"}),e.hubot=new e("hubot",{character:"\\eb08"}),e.inbox=new e("inbox",{character:"\\eb09"}),e.issueClosed=new e("issue-closed",{character:"\\eb0a"}),e.issueReopened=new e("issue-reopened",{character:"\\eb0b"}),e.issues=new e("issues",{character:"\\eb0c"}),e.italic=new e("italic",{character:"\\eb0d"}),e.jersey=new e("jersey",{character:"\\eb0e"}),e.json=new e("json",{character:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{character:"\\eb10"}),e.key=new e("key",{character:"\\eb11"}),e.law=new e("law",{character:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{character:"\\eb13"}),e.linkExternal=new e("link-external",{character:"\\eb14"}),e.link=new e("link",{character:"\\eb15"}),e.listOrdered=new e("list-ordered",{character:"\\eb16"}),e.listUnordered=new e("list-unordered",{character:"\\eb17"}),e.liveShare=new e("live-share",{character:"\\eb18"}),e.loading=new e("loading",{character:"\\eb19"}),e.location=new e("location",{character:"\\eb1a"}),e.mailRead=new e("mail-read",{character:"\\eb1b"}),e.mail=new e("mail",{character:"\\eb1c"}),e.markdown=new e("markdown",{character:"\\eb1d"}),e.megaphone=new e("megaphone",{character:"\\eb1e"}),e.mention=new e("mention",{character:"\\eb1f"}),e.milestone=new e("milestone",{character:"\\eb20"}),e.mortarBoard=new e("mortar-board",{character:"\\eb21"}),e.move=new e("move",{character:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{character:"\\eb23"}),e.mute=new e("mute",{character:"\\eb24"}),e.noNewline=new e("no-newline",{character:"\\eb25"}),e.note=new e("note",{character:"\\eb26"}),e.octoface=new e("octoface",{character:"\\eb27"}),e.openPreview=new e("open-preview",{character:"\\eb28"}),e.package_=new e("package",{character:"\\eb29"}),e.paintcan=new e("paintcan",{character:"\\eb2a"}),e.pin=new e("pin",{character:"\\eb2b"}),e.play=new e("play",{character:"\\eb2c"}),e.run=new e("run",{character:"\\eb2c"}),e.plug=new e("plug",{character:"\\eb2d"}),e.preserveCase=new e("preserve-case",{character:"\\eb2e"}),e.preview=new e("preview",{character:"\\eb2f"}),e.project=new e("project",{character:"\\eb30"}),e.pulse=new e("pulse",{character:"\\eb31"}),e.question=new e("question",{character:"\\eb32"}),e.quote=new e("quote",{character:"\\eb33"}),e.radioTower=new e("radio-tower",{character:"\\eb34"}),e.reactions=new e("reactions",{character:"\\eb35"}),e.references=new e("references",{character:"\\eb36"}),e.refresh=new e("refresh",{character:"\\eb37"}),e.regex=new e("regex",{character:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{character:"\\eb39"}),e.remote=new e("remote",{character:"\\eb3a"}),e.remove=new e("remove",{character:"\\eb3b"}),e.replaceAll=new e("replace-all",{character:"\\eb3c"}),e.replace=new e("replace",{character:"\\eb3d"}),e.repoClone=new e("repo-clone",{character:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{character:"\\eb3f"}),e.repoPull=new e("repo-pull",{character:"\\eb40"}),e.repoPush=new e("repo-push",{character:"\\eb41"}),e.report=new e("report",{character:"\\eb42"}),e.requestChanges=new e("request-changes",{character:"\\eb43"}),e.rocket=new e("rocket",{character:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{character:"\\eb45"}),e.rootFolder=new e("root-folder",{character:"\\eb46"}),e.rss=new e("rss",{character:"\\eb47"}),e.ruby=new e("ruby",{character:"\\eb48"}),e.saveAll=new e("save-all",{character:"\\eb49"}),e.saveAs=new e("save-as",{character:"\\eb4a"}),e.save=new e("save",{character:"\\eb4b"}),e.screenFull=new e("screen-full",{character:"\\eb4c"}),e.screenNormal=new e("screen-normal",{character:"\\eb4d"}),e.searchStop=new e("search-stop",{character:"\\eb4e"}),e.server=new e("server",{character:"\\eb50"}),e.settingsGear=new e("settings-gear",{character:"\\eb51"}),e.settings=new e("settings",{character:"\\eb52"}),e.shield=new e("shield",{character:"\\eb53"}),e.smiley=new e("smiley",{character:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{character:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{character:"\\eb56"}),e.splitVertical=new e("split-vertical",{character:"\\eb57"}),e.squirrel=new e("squirrel",{character:"\\eb58"}),e.starFull=new e("star-full",{character:"\\eb59"}),e.starHalf=new e("star-half",{character:"\\eb5a"}),e.symbolClass=new e("symbol-class",{character:"\\eb5b"}),e.symbolColor=new e("symbol-color",{character:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{character:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{character:"\\eb5e"}),e.symbolField=new e("symbol-field",{character:"\\eb5f"}),e.symbolFile=new e("symbol-file",{character:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{character:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{character:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{character:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{character:"\\eb64"}),e.symbolProperty=new e("symbol-property",{character:"\\eb65"}),e.wrench=new e("wrench",{character:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{character:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{character:"\\eb66"}),e.tasklist=new e("tasklist",{character:"\\eb67"}),e.telescope=new e("telescope",{character:"\\eb68"}),e.textSize=new e("text-size",{character:"\\eb69"}),e.threeBars=new e("three-bars",{character:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{character:"\\eb6b"}),e.thumbsup=new e("thumbsup",{character:"\\eb6c"}),e.tools=new e("tools",{character:"\\eb6d"}),e.triangleDown=new e("triangle-down",{character:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{character:"\\eb6f"}),e.triangleRight=new e("triangle-right",{character:"\\eb70"}),e.triangleUp=new e("triangle-up",{character:"\\eb71"}),e.twitter=new e("twitter",{character:"\\eb72"}),e.unfold=new e("unfold",{character:"\\eb73"}),e.unlock=new e("unlock",{character:"\\eb74"}),e.unmute=new e("unmute",{character:"\\eb75"}),e.unverified=new e("unverified",{character:"\\eb76"}),e.verified=new e("verified",{character:"\\eb77"}),e.versions=new e("versions",{character:"\\eb78"}),e.vmActive=new e("vm-active",{character:"\\eb79"}),e.vmOutline=new e("vm-outline",{character:"\\eb7a"}),e.vmRunning=new e("vm-running",{character:"\\eb7b"}),e.watch=new e("watch",{character:"\\eb7c"}),e.whitespace=new e("whitespace",{character:"\\eb7d"}),e.wholeWord=new e("whole-word",{character:"\\eb7e"}),e.window=new e("window",{character:"\\eb7f"}),e.wordWrap=new e("word-wrap",{character:"\\eb80"}),e.zoomIn=new e("zoom-in",{character:"\\eb81"}),e.zoomOut=new e("zoom-out",{character:"\\eb82"}),e.listFilter=new e("list-filter",{character:"\\eb83"}),e.listFlat=new e("list-flat",{character:"\\eb84"}),e.listSelection=new e("list-selection",{character:"\\eb85"}),e.selection=new e("selection",{character:"\\eb85"}),e.listTree=new e("list-tree",{character:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{character:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{character:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{character:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{character:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{character:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{character:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{character:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{character:"\\eb8c"}),e.symbolString=new e("symbol-string",{character:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{character:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{character:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{character:"\\eb90"}),e.callIncoming=new e("call-incoming",{character:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{character:"\\eb93"}),e.menu=new e("menu",{character:"\\eb94"}),e.expandAll=new e("expand-all",{character:"\\eb95"}),e.feedback=new e("feedback",{character:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{character:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{character:"\\eb98"}),e.account=new e("account",{character:"\\eb99"}),e.bellDot=new e("bell-dot",{character:"\\eb9a"}),e.debugConsole=new e("debug-console",{character:"\\eb9b"}),e.library=new e("library",{character:"\\eb9c"}),e.output=new e("output",{character:"\\eb9d"}),e.runAll=new e("run-all",{character:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{character:"\\eb9f"}),e.pinned=new e("pinned",{character:"\\eba0"}),e.githubInverted=new e("github-inverted",{character:"\\eba1"}),e.debugAlt=new e("debug-alt",{character:"\\eb91"}),e.serverProcess=new e("server-process",{character:"\\eba2"}),e.serverEnvironment=new e("server-environment",{character:"\\eba3"}),e.pass=new e("pass",{character:"\\eba4"}),e.stopCircle=new e("stop-circle",{character:"\\eba5"}),e.playCircle=new e("play-circle",{character:"\\eba6"}),e.record=new e("record",{character:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{character:"\\eba8"}),e.vmConnect=new e("vm-connect",{character:"\\eba9"}),e.cloud=new e("cloud",{character:"\\ebaa"}),e.merge=new e("merge",{character:"\\ebab"})})(dl||(dl={}));const hl=/(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi;function fl(e){return e.replace(hl,(e,t,n,i,r)=>t?`$(${n})`:`<span class="codicon codicon-${i}${r?" codicon-animation-"+r:""}"></span>`)}const pl=/(\s)?(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)(\s)?/gi;function gl(e){return-1===e.indexOf(il)?e:e.replace(pl,(e,t,n,i)=>n?e:t||i||"")}class ml{constructor(e,t){this.language=e,this.id=t}}class vl{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;return 1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;"),4&i&&(r+="text-decoration: underline;"),r}}var bl,yl,_l;(function(){let e=Object.create(null);e[0]="symbol-method",e[1]="symbol-function",e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues"})(),function(){let e=Object.create(null);e["method"]=0,e["function"]=1,e["constructor"]=2,e["field"]=3,e["variable"]=4,e["class"]=5,e["struct"]=6,e["interface"]=7,e["module"]=8,e["property"]=9,e["event"]=10,e["operator"]=11,e["unit"]=12,e["value"]=13,e["constant"]=14,e["enum"]=15,e["enum-member"]=16,e["enumMember"]=16,e["keyword"]=17,e["snippet"]=27,e["text"]=18,e["color"]=19,e["file"]=20,e["reference"]=21,e["customcolor"]=22,e["folder"]=23,e["type-parameter"]=24,e["typeParameter"]=24,e["account"]=25,e["issue"]=26}(),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(bl||(bl={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(yl||(yl={})),function(e){const t=new Map;t.set("file",0),t.set("module",1),t.set("namespace",2),t.set("package",3),t.set("class",4),t.set("method",5),t.set("property",6),t.set("field",7),t.set("constructor",8),t.set("enum",9),t.set("interface",10),t.set("function",11),t.set("variable",12),t.set("constant",13),t.set("string",14),t.set("number",15),t.set("boolean",16),t.set("array",17),t.set("object",18),t.set("key",19),t.set("null",20),t.set("enum-member",21),t.set("struct",22),t.set("event",23),t.set("operator",24),t.set("type-parameter",25);const n=new Map;function i(e){return t.get(e)}function r(e){return n.get(e)}function o(e,t){const i=n.get(e);let r=i&&cl.get("symbol-"+i);return r||(console.info("No codicon found for SymbolKind "+e),r=dl.symbolProperty),`${t?"inline":"block"} ${r.classNames}`}n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=i,e.toString=r,e.toCssClassName=o}(_l||(_l={}));class wl{constructor(e){this.value=e}}wl.Comment=new wl("comment"),wl.Imports=new wl("imports"),wl.Region=new wl("region");const xl=new us,Cl=new us,Sl=new us,kl=new us,Ol=new us,Ml=new us,Dl=new us,El=new us,Tl=new us,Ll=new us,Il=new us,Al=new us,Nl=new us,Pl=new us,Rl=new us,Fl=new us,jl=new us,Bl=new us,zl=new us,Vl=new us,$l=new us,Wl=new us,Hl=new us,Ul=new ds;class ql{clone(){return this}equals(e){return this===e}}const Gl=new ql,Kl="vs.editor.nullMode",Yl=new ml(Kl,0);function Xl(e,t,n,i){return new nn([new tn(i,"",e)],n)}function Zl(e,t,n,i){let r=new Uint32Array(2);return r[0]=i,r[1]=(16384|e<<0|2<<23)>>>0,new rn(r,null===n?Gl:n)}const Ql="editorWorkerService",Jl=Wn(Ql),ec=Wn("textModelService"),tc="$initialize";let nc=!1;function ic(e){o["h"]&&(nc||(nc=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}class rc{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&(e=new Error,e.name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req,i=this._handler.handleMessage(t.method,t.args);i.then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=me(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:me(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{const n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class oc extends Ae{constructor(e,t,n){super();let i=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",e=>{this._protocol.handleMessage(e)},e=>{i&&i(e)})),this._protocol=new rc({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!==typeof n[e])return Promise.reject(new Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(n[e].apply(n,t))}catch(i){return Promise.reject(i)}}}),this._protocol.setWorkerId(this._worker.getId());let r=null;"undefined"!==typeof self.require&&"function"===typeof self.require.getConfig?r=self.require.getConfig():"undefined"!==typeof self.requirejs&&(r=self.requirejs.s.contexts._.config);const o=Wo(n);this._onModuleLoaded=this._protocol.sendMessage(tc,[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,o]);const a=(e,t)=>this._request(e,t);this._lazyProxy=new Promise((e,n)=>{i=n,this._onModuleLoaded.then(t=>{e(Ho(t,a))},e=>{n(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,i)},i)})}_onError(e,t){console.error(e),console.info(t)}}function ac(e,t){if(o["b"].MonacoEnvironment){if("function"===typeof o["b"].MonacoEnvironment.getWorker)return o["b"].MonacoEnvironment.getWorker(e,t);if("function"===typeof o["b"].MonacoEnvironment.getWorkerUrl)return new Worker(o["b"].MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function sc(e){return"function"===typeof e.then}class lc{constructor(e,t,n,i,r){this.id=t;const o=ac("workerMain.js",n);sc(o)?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){i(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(n=>n.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class cc{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,n){let i=++cc.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new lc(e,i,this._label||"anonymous"+i,t,e=>{ic(e),this._webWorkerFailedBeforeError=e,n(e)})}}var uc;cc.LAST_WORKER_ID=0,function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(uc||(uc={}));class dc{constructor(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){const n=e.notIn[t];switch(n){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}isOK(e){return 0===(this._standardTokenMask&e)}}function hc(e,t){let n=e.getCount(),i=e.findTokenIndexAtOffset(t),r=e.getLanguageId(i),o=i;while(o+1<n&&e.getLanguageId(o+1)===r)o++;let a=i;while(a>0&&e.getLanguageId(a-1)===r)a--;return new fc(e,r,a,o+1,e.getStartOffset(a),e.getEndOffset(o))}class fc{constructor(e,t,n,i,r,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){const e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){const t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function pc(e){return 0!==(7&e)}class gc{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new dc(e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new dc({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new dc({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"===typeof e.autoCloseBefore?e.autoCloseBefore:gc.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(e,t,n){if(0===t.getTokenCount())return!0;const i=t.findTokenIndexAtOffset(n-2),r=t.getStandardTokenType(i);return e.isOK(r)}getSurroundingPairs(){return this._surroundingPairs}}let mc;function vc(){return mc||(mc=new TextDecoder(o["e"]()?"UTF-16LE":"UTF-16BE")),mc}gc.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";const bc="undefined"!==typeof TextDecoder;let yc,_c;function wc(e,t,n){const i=new Uint16Array(e.buffer,t,n);return vc().decode(i)}function xc(e,t,n){let i=[],r=0;for(let o=0;o<n;o++){const n=yo["b"](e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}bc?(yc=e=>new Cc(e),_c=wc):(yc=e=>new Sc,_c=xc);class Cc{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return vc().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||xo["D"](e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}class Sc{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}class kc{constructor(e,t,n,i,r,o){this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=o,this._openSet=kc._toSet(this.open),this._closeSet=kc._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}function Oc(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const n=[];for(let a=0;a<t;a++)n[a]=a;const i=(e,t)=>{const[n,i]=e,[r,o]=t;return n===r||n===o||i===r||i===o},r=(e,i)=>{const r=Math.min(e,i),o=Math.max(e,i);for(let a=0;a<t;a++)n[a]===o&&(n[a]=r)};for(let a=0;a<t;a++){const o=e[a];for(let s=a+1;s<t;s++){const t=e[s];i(o,t)&&r(n[a],n[s])}}const o=[];for(let a=0;a<t;a++){let i=[],r=[];for(let o=0;o<t;o++)if(n[o]===a){const[t,n]=e[o];i.push(t),r.push(n)}i.length>0&&o.push({open:i,close:r})}return o}class Mc{constructor(e,t){const n=Oc(t);this.brackets=n.map((t,i)=>new kc(e,i,t.open,t.close,Lc(t.open,t.close,n,i),Ic(t.open,t.close,n,i))),this.forwardRegex=Ac(this.brackets),this.reversedRegex=Nc(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function Dc(e,t,n,i){for(let r=0,o=t.length;r<o;r++){if(r===n)continue;const o=t[r];for(const t of o.open)t.indexOf(e)>=0&&i.push(t);for(const t of o.close)t.indexOf(e)>=0&&i.push(t)}}function Ec(e,t){return e.length-t.length}function Tc(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function Lc(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,a=r.length;o<a;o++)Dc(r[o],n,i,r);return r=Tc(r),r.sort(Ec),r.reverse(),Rc(r)}function Ic(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,a=r.length;o<a;o++)Dc(r[o],n,i,r);return r=Tc(r),r.sort(Ec),r.reverse(),Rc(r.map(Fc))}function Ac(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=Tc(t),Rc(t)}function Nc(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=Tc(t),Rc(t.map(Fc))}function Pc(e){const t=/^[\w ]+$/.test(e);return e=xo["t"](e),t?`\\b${e}\\b`:e}function Rc(e){let t=`(${e.map(Pc).join(")|(")})`;return xo["o"](t,!0)}const Fc=function(){function e(e){if(bc){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return vc().decode(t)}{let t=[],n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charAt(i);return t.join("")}}let t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}();class jc{static _findPrevBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let o=n.length-(r.index||0),a=r[0].length,s=i+o;return new Jt(t,s-a+1,t,s+1)}static findPrevBracketInRange(e,t,n,i,r){const o=Fc(n),a=o.substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,a,i)}static findNextBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let o=r.index||0,a=r[0].length;if(0===a)return null;let s=i+o;return new Jt(t,s+1,t,s+1+a)}static findNextBracketInRange(e,t,n,i,r){const o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}class Bc{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return e=e.filter((e,t,n)=>n.indexOf(e)===t),e}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(pc(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,a=jc.findPrevBracketInRange(r,1,o,0,o.length);if(!a)return null;const s=o.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),l=this._richEditBrackets.textIsOpenBracket[s];if(l)return null;const c=t.getActualLineContentBefore(a.startColumn-1);return/^\s*$/.test(c)?{matchOpenBracket:s}:null}}class zc{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}class Vc{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{const t=Vc._createOpenBracketRegExp(e[0]),n=Vc._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,o=this._regExpRules.length;r<o;r++){let e=this._regExpRules[r];const o=[{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.oneLineAboveText,text:t}].every(e=>!e.reg||e.reg.test(e.text));if(o)return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,o=this._brackets.length;r<o;r++){let e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:uc.IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,o=this._brackets.length;r<o;r++){let e=this._brackets[r];if(e.openRegExp.test(n))return{indentAction:uc.Indent}}return null}static _createOpenBracketRegExp(e){let t=xo["t"](e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",Vc._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=xo["t"](e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,Vc._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return ge(t),null}}}class $c{constructor(e,t,n){this._languageIdentifier=e,this._brackets=null,this._electricCharacter=null;let i=null;t&&(i=t._conf),this._conf=$c._mergeConf(i,n),this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new Vc(this._conf):null,this.comments=$c._handleComments(this._conf),this.characterPair=new gc(this._conf),this.wordDefinition=this._conf.wordPattern||l,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new zc(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Mc(this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new Bc(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}static _mergeConf(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}}static _handleComments(e){let t=e.comments;if(!t)return null;let n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){let[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}class Wc{constructor(e){this.languageIdentifier=e}}class Hc{constructor(){this._entries=new Map,this._onDidChange=new ze,this.onDidChange=this._onDidChange.event}register(e,t){let n=this._getRichEditSupport(e.id),i=new $c(e,n,t);return this._entries.set(e.id,i),this._onDidChange.fire(new Wc(e)),Le(()=>{this._entries.get(e.id)===i&&(this._entries.set(e.id,n),this._onDidChange.fire(new Wc(e)))})}_getRichEditSupport(e){return this._entries.get(e)}getIndentationRules(e){const t=this._entries.get(e);return t&&t.indentationRules||null}_getElectricCharacterSupport(e){let t=this._getRichEditSupport(e);return t&&t.electricCharacter||null}getElectricCharacters(e){let t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]}onElectricCharacter(e,t,n){let i=hc(t,n-1),r=this._getElectricCharacterSupport(i.languageId);return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}getComments(e){let t=this._getRichEditSupport(e);return t&&t.comments||null}_getCharacterPairSupport(e){let t=this._getRichEditSupport(e);return t&&t.characterPair||null}getAutoClosingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]}getAutoCloseBeforeSet(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():gc.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]}shouldAutoClosePair(e,t,n){const i=hc(t,n-1);return gc.shouldAutoClosePair(e,i,n-i.firstCharOffset)}getWordDefinition(e){let t=this._getRichEditSupport(e);return c(t&&t.wordDefinition||null)}getFoldingRules(e){let t=this._getRichEditSupport(e);return t?t.foldingRules:{}}getIndentRulesSupport(e){let t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,n){let i=e.getLanguageIdAtPosition(t,0);if(t>1){let r,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==i)return o;let t=e.getLineContent(r);if(!n.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return r;o=r}}return-1}getInheritIndentForLine(e,t,n,i=!0){if(e<4)return null;const r=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!r)return null;if(n<=1)return{indentation:"",action:null};const o=this.getPrecedingValidLine(t,n,r);if(o<0)return null;if(o<1)return{indentation:"",action:null};const a=t.getLineContent(o);if(r.shouldIncrease(a)||r.shouldIndentNextLine(a))return{indentation:xo["x"](a),action:uc.Indent,line:o};if(r.shouldDecrease(a))return{indentation:xo["x"](a),action:null,line:o};{if(1===o)return{indentation:xo["x"](t.getLineContent(o)),action:null,line:o};const e=o-1,n=r.getIndentMetadata(t.getLineContent(e));if(!(3&n)&&4&n){let n=0;for(let i=e-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(i))){n=i;break}return{indentation:xo["x"](t.getLineContent(n+1)),action:null,line:n+1}}if(i)return{indentation:xo["x"](t.getLineContent(o)),action:null,line:o};for(let i=o;i>0;i--){const e=t.getLineContent(i);if(r.shouldIncrease(e))return{indentation:xo["x"](e),action:uc.Indent,line:i};if(r.shouldIndentNextLine(e)){let e=0;for(let n=i-1;n>0;n--)if(!r.shouldIndentNextLine(t.getLineContent(i))){e=n;break}return{indentation:xo["x"](t.getLineContent(e+1)),action:null,line:e+1}}if(r.shouldDecrease(e))return{indentation:xo["x"](e),action:null,line:i}}return{indentation:xo["x"](t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,n,i,r){if(e<4)return null;const o=this._getRichEditSupport(n);if(!o)return null;const a=this.getIndentRulesSupport(n);if(!a)return null;const s=this.getInheritIndentForLine(e,t,i),l=t.getLineContent(i);if(s){const n=s.line;if(void 0!==n){const i=o.onEnter(e,"",t.getLineContent(n),"");if(i){let e=xo["x"](t.getLineContent(n));return i.removeText&&(e=e.substring(0,e.length-i.removeText)),i.indentAction===uc.Indent||i.indentAction===uc.IndentOutdent?e=r.shiftIndent(e):i.indentAction===uc.Outdent&&(e=r.unshiftIndent(e)),a.shouldDecrease(l)&&(e=r.unshiftIndent(e)),i.appendText&&(e+=i.appendText),xo["x"](e)}}return a.shouldDecrease(l)?s.action===uc.Indent?s.indentation:r.unshiftIndent(s.indentation):s.action===uc.Indent?r.shiftIndent(s.indentation):s.indentation}return null}getIndentForEnter(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);const r=t.getLineTokens(n.startLineNumber),o=hc(r,n.startColumn-1),a=o.getLineContent();let s,l,c=!1;if(o.firstCharOffset>0&&r.getLanguageId(0)!==o.languageId?(c=!0,s=a.substr(0,n.startColumn-1-o.firstCharOffset)):s=r.getLineContent().substring(0,n.startColumn-1),n.isEmpty())l=a.substr(n.startColumn-1-o.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);l=e.getLineContent().substr(n.endColumn-1-o.firstCharOffset)}const u=this.getIndentRulesSupport(o.languageId);if(!u)return null;const d=s,h=xo["x"](s),f={getLineTokens:e=>t.getLineTokens(e),getLanguageIdentifier:()=>t.getLanguageIdentifier(),getLanguageIdAtPosition:(e,n)=>t.getLanguageIdAtPosition(e,n),getLineContent:e=>e===n.startLineNumber?d:t.getLineContent(e)},p=xo["x"](r.getLineContent()),g=this.getInheritIndentForLine(e,f,n.startLineNumber+1);if(!g){const e=c?p:h;return{beforeEnter:e,afterEnter:e}}let m=c?p:g.indentation;return g.action===uc.Indent&&(m=i.shiftIndent(m)),u.shouldDecrease(l)&&(m=i.unshiftIndent(m)),{beforeEnter:c?p:h,afterEnter:m}}getIndentActionForType(e,t,n,i,r){if(e<4)return null;const o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),a=this.getIndentRulesSupport(o.languageId);if(!a)return null;const s=o.getLineContent(),l=s.substr(0,n.startColumn-1-o.firstCharOffset);let c;if(n.isEmpty())c=s.substr(n.startColumn-1-o.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);c=e.getLineContent().substr(n.endColumn-1-o.firstCharOffset)}if(!a.shouldDecrease(l+c)&&a.shouldDecrease(l+i+c)){const i=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!i)return null;let o=i.indentation;return i.action!==uc.Indent&&(o=r.unshiftIndent(o)),o}return null}getIndentMetadata(e,t){const n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}getEnterAction(e,t,n){const i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),r=this._getRichEditSupport(i.languageId);if(!r)return null;const o=i.getLineContent(),a=o.substr(0,n.startColumn-1-i.firstCharOffset);let s;if(n.isEmpty())s=o.substr(n.startColumn-1-i.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);s=e.getLineContent().substr(n.endColumn-1-i.firstCharOffset)}let l="";if(n.startLineNumber>1&&0===i.firstCharOffset){const e=this.getScopedLineTokens(t,n.startLineNumber-1);e.languageId===i.languageId&&(l=e.getLineContent())}const c=r.onEnter(e,l,a,s);if(!c)return null;const u=c.indentAction;let d=c.appendText;const h=c.removeText||0;d||(d=u===uc.Indent||u===uc.IndentOutdent?"\t":"");let f=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return h&&(f=f.substring(0,f.length-h)),{indentAction:u,appendText:d,removeText:h,indentation:f}}getIndentationAtPosition(e,t,n){const i=e.getLineContent(t);let r=xo["x"](i);return r.length>n-1&&(r=r.substring(0,n-1)),r}getScopedLineTokens(e,t,n){e.forceTokenization(t);const i=e.getLineTokens(t),r="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return hc(i,r)}getBracketsSupport(e){const t=this._getRichEditSupport(e);return t&&t.brackets||null}}const Uc=new Hc;class qc{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Gc(e,t){return(t<<5)-t+e|0}function Kc(e,t){t=Gc(149417,t);for(let n=0,i=e.length;n<i;n++)t=Gc(e.charCodeAt(n),t);return t}function Yc(e,t,n=32){const i=n-t,r=~((1<<i)-1);return(e<<t|(r&e)>>>i)>>>0}function Xc(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function Zc(e,t,n="0"){while(e.length<t)e=n+e;return e}function Qc(e,t=32){return Zc((e>>>0).toString(16),t/4)}class Jc{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let i,r,o=this._buffLen,a=this._leftoverHighSurrogate;0!==a?(i=a,r=-1,a=0):(i=e.charCodeAt(0),r=0);while(1){let s=i;if(xo["D"](i)){if(!(r+1<t)){a=i;break}{const t=e.charCodeAt(r+1);xo["E"](t)?(r++,s=xo["i"](i,t)):s=65533}}else xo["E"](i)&&(s=65533);if(o=this._push(n,o,s),r++,!(r<t))break;i=e.charCodeAt(r)}this._buffLen=o,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Qc(this._h0)+Qc(this._h1)+Qc(this._h2)+Qc(this._h3)+Qc(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Xc(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Xc(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Jc._bigBlock32,t=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,t.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,Yc(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let n,i,r,o=this._h0,a=this._h1,s=this._h2,l=this._h3,c=this._h4;for(let u=0;u<80;u++)u<20?(n=a&s|~a&l,i=1518500249):u<40?(n=a^s^l,i=1859775393):u<60?(n=a&s|a&l|s&l,i=2400959708):(n=a^s^l,i=3395469782),r=Yc(o,5)+n+c+i+e.getUint32(4*u,!1)&4294967295,c=l,l=s,s=Yc(a,30),a=o,o=r;this._h0=this._h0+o&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}Jc._bigBlock32=new DataView(new ArrayBuffer(320));class eu{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function tu(e,t,n){return new ou(new eu(e),new eu(t)).ComputeDiff(n).changes}class nu{static Assert(e,t){if(!e)throw new Error(t)}}class iu{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}}class ru{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new qc(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ou{constructor(e,t,n=null){this.ContinueProcessingPredicate=n;const[i,r,o]=ou._getElements(e),[a,s,l]=ou._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=a,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(ou._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Kc(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const o=[!1];let a=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(a=this.PrettifyChanges(a)),{quitEarly:o[0],changes:a}}ComputeDiffRecursive(e,t,n,i,r){r[0]=!1;while(e<=t&&n<=i&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&i>=n&&this.ElementsAreEqual(t,i))t--,i--;if(e>t||n>i){let r;return n<=i?(nu.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new qc(e,0,n,i-n+1)]):e<=t?(nu.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new qc(e,t-e+1,n,0)]):(nu.Assert(e===t+1,"originalStart should only be one more than originalEnd"),nu.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}const o=[0],a=[0],s=this.ComputeRecursionPoint(e,t,n,i,o,a,r),l=o[0],c=a[0];if(null!==s)return s;if(!r[0]){const o=this.ComputeDiffRecursive(e,l,n,c,r);let a=[];return a=r[0]?[new qc(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,r),this.ConcatenateChanges(o,a)}return[new qc(e,t-e+1,n,i-n+1)]}WALKTRACE(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v){let b=null,y=null,_=new ru,w=t,x=n,C=h[0]-g[0]-i,S=-1073741824,k=this.m_forwardHistory.length-1;do{const t=C+e;t===w||t<x&&l[t-1]<l[t+1]?(u=l[t+1],f=u-C-i,u<S&&_.MarkNextChange(),S=u,_.AddModifiedElement(u+1,f),C=t+1-e):(u=l[t-1]+1,f=u-C-i,u<S&&_.MarkNextChange(),S=u-1,_.AddOriginalElement(u,f+1),C=t-1-e),k>=0&&(l=this.m_forwardHistory[k],e=l[0],w=1,x=l.length-1)}while(--k>=-1);if(b=_.getReverseChanges(),v[0]){let e=h[0]+1,t=g[0]+1;if(null!==b&&b.length>0){const n=b[b.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}y=[new qc(e,d-e+1,t,p-t+1)]}else{_=new ru,w=o,x=a,C=h[0]-g[0]-s,S=1073741824,k=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=C+r;e===w||e<x&&c[e-1]>=c[e+1]?(u=c[e+1]-1,f=u-C-s,u>S&&_.MarkNextChange(),S=u+1,_.AddOriginalElement(u+1,f+1),C=e+1-r):(u=c[e-1],f=u-C-s,u>S&&_.MarkNextChange(),S=u,_.AddModifiedElement(u+1,f+1),C=e-1-r),k>=0&&(c=this.m_reverseHistory[k],r=c[0],w=1,x=c.length-1)}while(--k>=-1);y=_.getChanges()}return this.ConcatenateChanges(b,y)}ComputeRecursionPoint(e,t,n,i,r,o,a){let s=0,l=0,c=0,u=0,d=0,h=0;e--,n--,r[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=t-e+(i-n),p=f+1,g=new Int32Array(p),m=new Int32Array(p),v=i-n,b=t-e,y=e-n,_=t-i,w=b-v,x=w%2===0;g[v]=e,m[b]=t,a[0]=!1;for(let C=1;C<=f/2+1;C++){let f=0,w=0;c=this.ClipDiagonalBound(v-C,C,v,p),u=this.ClipDiagonalBound(v+C,C,v,p);for(let e=c;e<=u;e+=2){s=e===c||e<u&&g[e-1]<g[e+1]?g[e+1]:g[e-1]+1,l=s-(e-v)-y;const n=s;while(s<t&&l<i&&this.ElementsAreEqual(s+1,l+1))s++,l++;if(g[e]=s,s+l>f+w&&(f=s,w=l),!x&&Math.abs(e-b)<=C-1&&s>=m[e])return r[0]=s,o[0]=l,n<=m[e]&&C<=1448?this.WALKTRACE(v,c,u,y,b,d,h,_,g,m,s,t,r,l,i,o,x,a):null}const S=(f-e+(w-n)-C)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,S))return a[0]=!0,r[0]=f,o[0]=w,S>0&&C<=1448?this.WALKTRACE(v,c,u,y,b,d,h,_,g,m,s,t,r,l,i,o,x,a):(e++,n++,[new qc(e,t-e+1,n,i-n+1)]);d=this.ClipDiagonalBound(b-C,C,b,p),h=this.ClipDiagonalBound(b+C,C,b,p);for(let p=d;p<=h;p+=2){s=p===d||p<h&&m[p-1]>=m[p+1]?m[p+1]-1:m[p-1],l=s-(p-b)-_;const f=s;while(s>e&&l>n&&this.ElementsAreEqual(s,l))s--,l--;if(m[p]=s,x&&Math.abs(p-v)<=C&&s<=g[p])return r[0]=s,o[0]=l,f>=g[p]&&C<=1448?this.WALKTRACE(v,c,u,y,b,d,h,_,g,m,s,t,r,l,i,o,x,a):null}if(C<=1447){let e=new Int32Array(u-c+2);e[0]=v-c+1,iu.Copy2(g,c,e,1,u-c+1),this.m_forwardHistory.push(e),e=new Int32Array(h-d+2),e[0]=b-d+1,iu.Copy2(m,d,e,1,h-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(v,c,u,y,b,d,h,_,g,m,s,t,r,l,i,o,x,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,a=n.modifiedLength>0;while(n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength)))n.originalStart++,n.modifiedStart++;let s=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)&&(e[t]=s[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];n.originalLength>0&&(i=n.originalStart+n.originalLength),n.modifiedLength>0&&(r=n.modifiedStart+n.modifiedLength)}const o=n.originalLength>0,a=n.modifiedLength>0;let s=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const u=this._boundaryScore(t,n.originalLength,c,n.modifiedLength);u>l&&(l=u,s=e)}n.originalStart-=s,n.modifiedStart-=s}return e}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){const r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,i)?1:0;return r+o}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return iu.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],iu.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return iu.Copy(e,0,n,0,e.length),iu.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(nu.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),nu.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){const i=e.originalStart;let r=e.originalLength;const o=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(r=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new qc(i,r,o,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=n,o=i-n-1,a=t%2===0;if(e<0){const e=r%2===0;return a===e?0:1}{const e=o%2===0;return a===e?i-1:i-2}}}const au=3;function su(e,t,n,i){const r=new ou(e,t,n);return r.ComputeDiff(i)}class lu{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=pu(e[i],1),n[i]=gu(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let t=0,n=this.lines.length;t<n;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let a=0;for(let s=t;s<=n;s++){const t=this.lines[s],n=e?this._startColumns[s]:1,l=e?this._endColumns[s]:t.length+1;for(let e=n;e<l;e++)i[a]=t.charCodeAt(e-1),r[a]=s+1,o[a]=e,a++}return new cu(i,r,o)}}class cu{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class uu{constructor(e,t,n,i,r,o,a,s){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=a,this.modifiedEndColumn=s}static createFromDiffChange(e,t,n){let i,r,o,a,s,l,c,u;return 0===e.originalLength?(i=0,r=0,o=0,a=0):(i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),a=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(s=0,l=0,c=0,u=0):(s=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new uu(i,r,o,a,s,l,c,u)}}function du(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],o=r.originalStart-(n.originalStart+n.originalLength),a=r.modifiedStart-(n.modifiedStart+n.modifiedLength),s=Math.min(o,a);s<au?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}class hu{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,o,a){let s,l,c,u,d=void 0;if(0===t.originalLength?(s=n.getStartLineNumber(t.originalStart)-1,l=0):(s=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,u=0):(c=i.getStartLineNumber(t.modifiedStart),u=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),s=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=su(o,s,r,!0).changes;a&&(l=du(l)),d=[];for(let e=0,t=l.length;e<t;e++)d.push(uu.createFromDiffChange(l[e],o,s))}return new hu(s,l,c,u,d)}}class fu{constructor(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new lu(e),this.modified=new lu(t),this.continueLineDiff=mu(n.maxComputationTime),this.continueCharDiff=mu(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};const e=su(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(hu.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,o=0;for(let a=-1,s=t.length;a<s;a++){const e=a+1<s?t[a+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;while(r<n&&o<l){const e=this.originalLines[r],t=this.modifiedLines[o];if(e!==t){{let n=pu(e,1),a=pu(t,1);while(n>1&&a>1){const i=e.charCodeAt(n-2),r=t.charCodeAt(a-2);if(i!==r)break;n--,a--}(n>1||a>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,a)}{let n=gu(e,1),a=gu(t,1);const s=e.length+1,l=t.length+1;while(n<s&&a<l){const t=e.charCodeAt(n-1),i=e.charCodeAt(a-1);if(t!==i)break;n++,a++}(n<s||a<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,s,o+1,a,l)}}r++,o++}e&&(i.push(hu.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,a))return;let s=void 0;this.shouldComputeCharChanges&&(s=[new uu(t,n,t,i,r,o,r,a)]),e.push(new hu(t,t,r,r,s))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,a){const s=e.length;if(0===s)return!1;const l=e[s-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new uu(t,n,t,i,r,o,r,a)),!0)}}function pu(e,t){const n=xo["u"](e);return-1===n?t:n+1}function gu(e,t){const n=xo["H"](e);return-1===n?t:n+2}function mu(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function vu(e){return e<0?0:e>255?255:0|e}function bu(e){return e<0?0:e>4294967295?4294967295:0|e}class yu{constructor(e,t){this.index=e,this.remainder=t}}class _u{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=bu(e);const n=this.values,i=this.prefixSum,r=t.length;return 0!==r&&(this.values=new Uint32Array(n.length+r),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+r),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=bu(e),t=bu(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=bu(e),t=bu(t);const n=this.values,i=this.prefixSum;if(e>=n.length)return!1;let r=n.length-e;return t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalValue(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)}getAccumulatedValue(e){return e<0?0:(e=bu(e),this._getAccumulatedValue(e))}_getAccumulatedValue(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalValue();let t=0,n=this.values.length-1,i=0,r=0,o=0;while(t<=n)if(i=t+(n-t)/2|0,r=this.prefixSum[i],o=r-this.values[i],e<o)n=i-1;else{if(!(e>=r))break;t=i+1}return new yu(i,e-o)}}class wu{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new Qt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new _u(n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(e){if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}}_acceptInsertText(e,t){if(0===t.length)return;let n=t.split(/\r\n|\r|\n/);if(1===n.length)return void this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1));n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);let i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}class xu{constructor(e){let t=vu(e);this._defaultValue=t,this._asciiMap=xu._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=vu(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class Cu{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class Su{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){let[i,o,a]=e[r];o>t&&(t=o),i>n&&(n=i),a>n&&(n=a)}t++,n++;let i=new Cu(n,t,0);for(let r=0,o=e.length;r<o;r++){let[t,n,o]=e[r];i.set(t,n,o)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let ku=null;function Ou(){return null===ku&&(ku=new Su([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ku}let Mu=null;function Du(){if(null===Mu){Mu=new xu(0);const e=" \t<>'\"、。。、,.:;‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(let n=0;n<e.length;n++)Mu.set(e.charCodeAt(n),1);const t=".,;";for(let n=0;n<t.length;n++)Mu.set(t.charCodeAt(n),2)}return Mu}class Eu{static _createLink(e,t,n,i,r){let o=r-1;do{const n=t.charCodeAt(o),i=e.get(n);if(2!==i)break;o--}while(o>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}static computeLinks(e,t=Ou()){const n=Du();let i=[];for(let r=1,o=e.getLineCount();r<=o;r++){const o=e.getLineContent(r),a=o.length;let s=0,l=0,c=0,u=1,d=!1,h=!1,f=!1,p=!1;while(s<a){let e=!1;const a=o.charCodeAt(s);if(13===u){let t;switch(a){case 40:d=!0,t=0;break;case 41:t=d?0:1;break;case 91:f=!0,h=!0,t=0;break;case 93:f=!1,t=h?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:t=34===c||96===c?0:1;break;case 34:t=39===c||96===c?0:1;break;case 96:t=39===c||34===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(a)}1===t&&(i.push(Eu._createLink(n,o,r,l,s)),e=!0)}else if(12===u){let t;91===a?(h=!0,t=0):t=n.get(a),1===t?e=!0:u=13}else u=t.nextState(u,a),0===u&&(e=!0);e&&(u=1,d=!1,h=!1,p=!1,l=s+1,c=a),s++}13===u&&i.push(Eu._createLink(n,o,r,l,a))}return i}}function Tu(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?Eu.computeLinks(e):[]}class Lu{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}Lu.INSTANCE=new Lu;var Iu=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class Au extends wu{get uri(){return this._uri}get version(){return this._versionId}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=d(e.column,c(t),this._lines[e.lineNumber-1],0);return n?new Jt(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,a=[];return{*[Symbol.iterator](){while(1)if(o<a.length){const e=r.substring(a[o].start,a[o].end);o+=1,yield e}else{if(!(i<t.length))break;r=t[i],a=n(r,e),o=0,i+=1}}}}getLineWords(e,t){let n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const o of i)r.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return r}_wordenize(e,t){const n=[];let i;t.lastIndex=0;while(i=t.exec(e)){if(0===i[0].length)break;n.push({start:i.index,end:i.index+i[0].length})}return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const t=this._validatePosition({lineNumber:e.startLineNumber,column:e.startColumn}),n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});return t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn?{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column}:e}_validatePosition(e){if(!Qt.isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class Nu{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new Au(Vt.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let n=this._models[e];n.onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return Iu(this,void 0,void 0,(function*(){const r=this._getModel(e),o=this._getModel(t);if(!r||!o)return null;const a=r.getLinesContent(),s=o.getLinesContent(),l=new fu(a,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),c=l.computeDiff(),u=!(c.changes.length>0)&&this._modelsAreIdentical(r,o);return{quitEarly:c.quitEarly,identical:u,changes:c.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(let r=1;r<=n;r++){const n=e.getLineContent(r),i=t.getLineContent(r);if(n!==i)return!1}return!0}computeMoreMinimalEdits(e,t){return Iu(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const i=[];let r=void 0;t=Ri(t,(e,t)=>{if(e.range&&t.range)return Jt.compareRangesUsingStarts(e.range,t.range);let n=e.range?0:1,i=t.range?0:1;return n-i});for(let{range:e,text:o,eol:a}of t){if("number"===typeof a&&(r=a),Jt.isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>Nu._diffLimit){i.push({range:e,text:o});continue}const s=tu(t,o,!1),l=n.offsetAt(Jt.lift(e).getStartPosition());for(const e of s){const t=n.positionAt(l+e.originalStart),r=n.positionAt(l+e.originalStart+e.originalLength),a={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:r.lineNumber,endColumn:r.column}};n.getValueInRange(a.range)!==a.text&&i.push(a)}}return"number"===typeof r&&i.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}))}computeLinks(e){return Iu(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?Tu(t):null}))}textualSuggest(e,t,n,i){return Iu(this,void 0,void 0,(function*(){const r=this._getModel(e);if(!r)return null;const o=[],a=new Set,s=new RegExp(n,i),l=r.getWordAtPosition(t,s);l&&a.add(r.getValueInRange(l));for(let e of r.words(s))if(!a.has(e)&&(a.add(e),isNaN(Number(e))&&(o.push(e),a.size>Nu._suggestionsLimit)))break;return o}))}computeWordRanges(e,t,n,i){return Iu(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const o=new RegExp(n,i),a=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=r.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=a[n.word];t||(t=[],a[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return a}))}navigateValueSet(e,t,n,i,r){return Iu(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return null;let a=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let s=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!l)return null;let c=o.getValueInRange(l),u=Lu.INSTANCE.navigateValueSet(t,s,l,c,n);return u}))}loadForeignModule(e,t,n){const i=(e,t)=>this._host.fhr(e,t),r=Ho(n,i);let o={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(Wo(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}Nu._diffLimit=1e5,Nu._suggestionsLimit=1e4,"function"===typeof importScripts&&(o["b"].monaco=zn());const Pu=Wn("textResourceConfigurationService"),Ru=Wn("textResourcePropertiesService"),Fu=Wn("logService");var ju;(function(e){e[e["Trace"]=0]="Trace",e[e["Debug"]=1]="Debug",e[e["Info"]=2]="Info",e[e["Warning"]=3]="Warning",e[e["Error"]=4]="Error",e[e["Critical"]=5]="Critical",e[e["Off"]=6]="Off"})(ju||(ju={}));const Bu=ju.Info;class zu extends Ae{constructor(){super(...arguments),this.level=Bu,this._onDidChangeLogLevel=this._register(new ze)}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class Vu extends zu{constructor(e=Bu){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=ju.Trace&&console.log("%cTRACE","color: #888",e,...t)}info(e,...t){this.getLevel()<=ju.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=ju.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}const $u=o["b"].performance&&"function"===typeof o["b"].performance.now;class Wu{constructor(e){this._highResolution=$u&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new Wu(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?o["b"].performance.now():(new Date).getTime()}}var Hu=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Uu=function(e,t){return function(n,i){t(n,i,e)}},qu=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const Gu=6e4,Ku=3e5;function Yu(e,t){let n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}let Xu=class extends Ae{constructor(e,t,n){super(),this._modelService=e,this._workerManager=this._register(new Qu(this._modelService)),this._logService=n,this._register(Bl.register("*",{provideLinks:(e,t)=>Yu(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(Sl.register("*",new Zu(this._workerManager,t,this._modelService)))}dispose(){super.dispose()}canComputeDiff(e,t){return Yu(this._modelService,e)&&Yu(this._modelService,t)}computeDiff(e,t,n,i){return this._workerManager.withWorker().then(r=>r.computeDiff(e,t,n,i))}computeMoreMinimalEdits(e,t){if(Vi(t)){if(!Yu(this._modelService,e))return Promise.resolve(t);const n=Wu.create(!0),i=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t));return i.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),i}return Promise.resolve(void 0)}canNavigateValueSet(e){return Yu(this._modelService,e)}navigateValueSet(e,t,n){return this._workerManager.withWorker().then(i=>i.navigateValueSet(e,t,n))}canComputeWordRanges(e){return Yu(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,t))}};Xu=Hu([Uu(0,ss),Uu(1,Pu),Uu(2,Fu)],Xu);class Zu{constructor(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}provideCompletionItems(e,t){return qu(this,void 0,void 0,(function*(){const{wordBasedSuggestions:n}=this._configurationService.getValue(e.uri,t,"editor");if(!n)return;if(!Yu(this._modelService,e.uri))return;const i=e.getWordAtPosition(t),r=i?new Jt(t.lineNumber,i.startColumn,t.lineNumber,i.endColumn):Jt.fromPositions(t),o=r.setEndPosition(t.lineNumber,t.column),a=yield this._workerManager.withWorker(),s=yield a.textualSuggest(e.uri,t);return s?{suggestions:s.map(e=>({kind:18,label:e,insertText:e,range:{insert:o,replace:r}}))}:void 0}))}}class Qu extends Ae{constructor(e){super(),this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();let t=this._register(new Ei);t.cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(Ku/2)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;let e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;let e=(new Date).getTime()-this._lastWorkerUsedTime;e>Ku&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new nd(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class Ju extends Ae{constructor(e,t,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){let e=new Ei;e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(Gu/2)),this._register(e)}}dispose(){for(let e in this._syncedModels)Ee(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e){for(const t of e){let e=t.toString();this._syncedModels[e]||this._beginModelSync(t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){let e=(new Date).getTime(),t=[];for(let n in this._syncedModelsLastUsedTime){let i=e-this._syncedModelsLastUsedTime[n];i>Gu&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e){let t=this._modelService.getModel(e);if(!t)return;if(t.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:t.uri.toString(),lines:t.getLinesContent(),EOL:t.getEOL(),versionId:t.getVersionId()});const i=new Ie;i.add(t.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),i.add(t.onWillDispose(()=>{this._stopModelSync(n)})),i.add(Le(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=i}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Ee(t)}}class ed{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class td{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class nd extends Ae{constructor(e,t,n){super(),this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new cc(n),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new oc(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new td(this)))}catch(e){ic(e),this._worker=new ed(new Nu(new td(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(ic(e),this._worker=new ed(new Nu(new td(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Ju(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e){return this._disposed?Promise.reject(ye()):this._getProxy().then(t=>(this._getOrCreateModelManager(t).ensureSyncedResources(e),t))}computeDiff(e,t,n,i){return this._withSyncedResources([e,t]).then(r=>r.computeDiff(e.toString(),t.toString(),n,i))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t){return this._withSyncedResources([e]).then(n=>{let i=this._modelService.getModel(e);if(!i)return null;let r=Uc.getWordDefinition(i.getLanguageIdentifier().id),o=r.source,a=Object(xo["L"])(r);return n.textualSuggest(e.toString(),t,o,a)})}computeWordRanges(e,t){return this._withSyncedResources([e]).then(n=>{let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let r=Uc.getWordDefinition(i.getLanguageIdentifier().id),o=r.source,a=Object(xo["L"])(r);return n.computeWordRanges(e.toString(),t,o,a)})}navigateValueSet(e,t,n){return this._withSyncedResources([e]).then(i=>{let r=this._modelService.getModel(e);if(!r)return null;let o=Uc.getWordDefinition(r.getLanguageIdentifier().id),a=o.source,s=Object(xo["L"])(o);return i.navigateValueSet(e.toString(),t,n,a,s)})}dispose(){super.dispose(),this._disposed=!0}}function id(e,t){return new rd(e,t)}class rd extends nd{constructor(e,t){super(e,t.keepIdleModels||!1,t.label),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?Wo(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;const n=(t,n)=>e.fmr(t,n),i=(e,t)=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let r={};for(const e of t)r[e]=i(e,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}class od{constructor(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}equals(e){return e instanceof od&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let o=i;o<r;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){const t=this._tokens[1+(e<<1)];return t}getLanguageId(e){const t=this._tokens[1+(e<<1)];return vl.getLanguageId(t)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return vl.getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return vl.getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return vl.getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return vl.getInlineStyleFromMetadata(n,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return od.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new ad(this,e,t,n)}static convertToEndOffset(e,t){const n=e.length>>>1,i=n-1;for(let r=0;r<i;r++)e[r<<1]=e[r+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;while(n<i){const r=n+Math.floor((i-n)/2),o=e[r<<1];if(o===t)return r+1;o<t?n=r+1:o>t&&(i=r)}return n}}class ad{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let r=this._firstTokenIndex,o=e.getCount();r<o;r++){const t=e.getStartOffset(r);if(t>=n)break;this._tokensCount++}}equals(e){return e instanceof ad&&this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount)}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class sd{constructor(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const n=e.length,i=t.length;if(n!==i)return!1;for(let r=0;r<n;r++)if(!sd._equals(e[r],t[r]))return!1;return!0}static filter(e,t,n,i){if(0===e.length)return[];let r=[],o=0;for(let a=0,s=e.length;a<s;a++){const s=e[a],l=s.range;if(l.endLineNumber<t||l.startLineNumber>t)continue;if(l.isEmpty()&&(0===s.type||3===s.type))continue;const c=l.startLineNumber===t?l.startColumn:n,u=l.endLineNumber===t?l.endColumn:i;r[o++]=new sd(c,u,s.inlineClassName,s.type)}return r}static _typeCompare(e,t){const n=[2,0,1,3];return n[e]-n[t]}static compare(e,t){if(e.startColumn===t.startColumn){if(e.endColumn===t.endColumn){const n=sd._typeCompare(e.type,t.type);return 0===n?e.className<t.className?-1:e.className>t.className?1:0:n}return e.endColumn-t.endColumn}return e.startColumn-t.startColumn}}class ld{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.className=n,this.metadata=i}}class cd{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let n=0,i=e.length;n<i;n++)t|=e[n];return t}consumeLowerThan(e,t,n){while(this.count>0&&this.stopOffsets[0]<e){let e=0;while(e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1])e++;n.push(new ld(t,this.stopOffsets[e],this.classNames.join(" "),cd._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(n.push(new ld(t,e-1,this.classNames.join(" "),cd._metadata(this.metadata))),t=e),t}insert(e,t,n){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(n);else for(let i=0;i<this.count;i++)if(this.stopOffsets[i]>=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}}class ud{static normalize(e,t){if(0===t.length)return[];let n=[];const i=new cd;let r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];let s=a.startColumn,l=a.endColumn;const c=a.className,u=1===a.type?2:2===a.type?4:0;if(s>1){const t=e.charCodeAt(s-2);xo["D"](t)&&s--}if(l>1){const t=e.charCodeAt(l-2);xo["D"](t)&&l--}const d=s-1,h=l-2;r=i.consumeLowerThan(d,r,n),0===i.count&&(r=d),i.insert(h,c,u)}return i.consumeLowerThan(1073741824,r,n),n}}class dd{constructor(e,t,n){this.endIndex=e,this.type=t,this.metadata=n}isWhitespace(){return!!(1&this.metadata)}}class hd{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class fd{constructor(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v,b){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=a,this.lineTokens=s,this.lineDecorations=l,this.tabSize=c,this.startVisibleColumn=u,this.spaceWidth=d,this.stopRenderingLineAfter=p,this.renderWhitespace="all"===g?4:"boundary"===g?1:"selection"===g?2:"trailing"===g?3:0,this.renderControlCharacters=m,this.fontLigatures=v,this.selectionsOnLine=b&&b.sort((e,t)=>e.startOffset<t.startOffset?-1:1);const y=Math.abs(f-d),_=Math.abs(h-d);y<_?(this.renderSpaceWidth=f,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=h,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.startVisibleColumn===e.startVisibleColumn&&this.spaceWidth===e.spaceWidth&&this.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&sd.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class pd{constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}setPartData(e,t,n,i){let r=(t<<16|n<<0)>>>0;this._data[e]=r,this._absoluteOffsets[e]=i+n}getAbsoluteOffsets(){return this._absoluteOffsets}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}partDataToCharOffset(e,t,n){if(0===this.length)return 0;let i=(e<<16|n<<0)>>>0,r=0,o=this.length-1;while(r+1<o){let e=r+o>>>1,t=this._data[e];if(t===i)return e;t>i?o=e:r=e}if(r===o)return r;let a=this._data[r],s=this._data[o];if(a===i)return r;if(s===i)return o;let l,c=pd.getPartIndex(a),u=pd.getCharIndex(a),d=pd.getPartIndex(s);l=c!==d?t:pd.getCharIndex(s);let h=n-u,f=l-n;return h<=f?r:o}}class gd{constructor(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}function md(e,t){if(0===e.lineContent.length){let n=0,i="<span><span></span></span>";if(e.lineDecorations.length>0){const t=[],r=[];for(let i=0,o=e.lineDecorations.length;i<o;i++){const o=e.lineDecorations[i];1===o.type&&(t.push(e.lineDecorations[i].className),n|=1),2===o.type&&(r.push(e.lineDecorations[i].className),n|=2)}if(0!==n){const e=t.length>0?`<span class="${t.join(" ")}"></span>`:"",n=r.length>0?`<span class="${r.join(" ")}"></span>`:"";i=`<span>${e}${n}</span>`}}return t.appendASCIIString(i),new gd(new pd(0,0),!1,n)}return kd(_d(e),t)}class vd{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}function bd(e){let t=yc(1e4),n=md(e,t);return new vd(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}class yd{constructor(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.parts=o,this.containsForeignElements=a,this.fauxIndentLength=s,this.tabSize=l,this.startVisibleColumn=c,this.containsRTL=u,this.spaceWidth=d,this.renderSpaceCharCode=h,this.renderWhitespace=f,this.renderControlCharacters=p}}function _d(e){const t=e.lineContent;let n,i;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(n=!0,i=e.stopRenderingLineAfter):(n=!1,i=t.length);let r=wd(e.lineTokens,e.fauxIndentLength,i);(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(r=Cd(e,t,i,r));let o=0;if(e.lineDecorations.length>0){for(let t=0,n=e.lineDecorations.length;t<n;t++){const n=e.lineDecorations[t];3===n.type||1===n.type?o|=1:2===n.type&&(o|=2)}r=Sd(t,i,r,e.lineDecorations)}return e.containsRTL||(r=xd(t,r,!e.isBasicASCII||e.fontLigatures)),new yd(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,i,n,r,o,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}function wd(e,t,n){let i=[],r=0;t>0&&(i[r++]=new dd(t,"",0));for(let o=0,a=e.getCount();o<a;o++){const a=e.getEndOffset(o);if(a<=t)continue;const s=e.getClassName(o);if(a>=n){i[r++]=new dd(n,s,0);break}i[r++]=new dd(a,s,0)}return i}function xd(e,t,n){let i=0,r=[],o=0;if(n)for(let a=0,s=t.length;a<s;a++){const n=t[a],s=n.endIndex;if(i+50<s){const t=n.type,a=n.metadata;let l=-1,c=i;for(let n=i;n<s;n++)32===e.charCodeAt(n)&&(l=n),-1!==l&&n-c>=50&&(r[o++]=new dd(l+1,t,a),c=l+1,l=-1);c!==s&&(r[o++]=new dd(s,t,a))}else r[o++]=n;i=s}else for(let a=0,s=t.length;a<s;a++){const e=t[a],n=e.endIndex;let s=n-i;if(s>50){const t=e.type,a=e.metadata,l=Math.ceil(s/50);for(let e=1;e<l;e++){let n=i+50*e;r[o++]=new dd(n,t,a)}r[o++]=new dd(n,t,a)}else r[o++]=e;i=n}return r}function Cd(e,t,n,i){const r=e.continuesWithWrappedLine,o=e.fauxIndentLength,a=e.tabSize,s=e.startVisibleColumn,l=e.useMonospaceOptimizations,c=e.selectionsOnLine,u=1===e.renderWhitespace,d=3===e.renderWhitespace,h=e.renderSpaceWidth!==e.spaceWidth;let f=[],p=0,g=0,m=i[g].type,v=i[g].endIndex;const b=i.length;let y,_=!1,w=xo["u"](t);-1===w?(_=!0,w=n,y=n):y=xo["H"](t);let x=!1,C=0,S=c&&c[C],k=s%a;for(let M=o;M<n;M++){const e=t.charCodeAt(M);let r;if(S&&M>=S.endOffset&&(C++,S=c&&c[C]),M<w||M>y)r=!0;else if(9===e)r=!0;else if(32===e)if(u)if(x)r=!0;else{const e=M+1<n?t.charCodeAt(M+1):0;r=32===e||9===e}else r=!0;else r=!1;if(r&&c&&(r=!!S&&S.startOffset<=M&&S.endOffset>M),r&&d&&(r=_||M>y),x){if(!r||!l&&k>=a){if(h){const e=p>0?f[p-1].endIndex:o;for(let t=e+1;t<=M;t++)f[p++]=new dd(t,"mtkw",1)}else f[p++]=new dd(M,"mtkw",1);k%=a}}else(M===v||r&&M>o)&&(f[p++]=new dd(M,m,0),k%=a);9===e?k=a:xo["C"](e)?k+=2:k++,x=r;while(M===v)g++,g<b&&(m=i[g].type,v=i[g].endIndex)}let O=!1;if(x)if(r&&u){let e=n>0?t.charCodeAt(n-1):0,i=n>1?t.charCodeAt(n-2):0,r=32===e&&32!==i&&9!==i;r||(O=!0)}else O=!0;if(O)if(h){const e=p>0?f[p-1].endIndex:o;for(let t=e+1;t<=n;t++)f[p++]=new dd(t,"mtkw",1)}else f[p++]=new dd(n,"mtkw",1);else f[p++]=new dd(n,m,0);return f}function Sd(e,t,n,i){i.sort(sd.compare);const r=ud.normalize(e,i),o=r.length;let a=0,s=[],l=0,c=0;for(let d=0,h=n.length;d<h;d++){const e=n[d],t=e.endIndex,i=e.type,u=e.metadata;while(a<o&&r[a].startOffset<t){const e=r[a];if(e.startOffset>c&&(c=e.startOffset,s[l++]=new dd(c,i,u)),!(e.endOffset+1<=t)){c=t,s[l++]=new dd(c,i+" "+e.className,u|e.metadata);break}c=e.endOffset+1,s[l++]=new dd(c,i+" "+e.className,u|e.metadata),a++}t>c&&(c=t,s[l++]=new dd(c,i,u))}const u=n[n.length-1].endIndex;if(a<o&&r[a].startOffset===u){let e=[],t=0;while(a<o&&r[a].startOffset===u)e.push(r[a].className),t|=r[a].metadata,a++;s[l++]=new dd(c,e.join(" "),t)}return s}function kd(e,t){const n=e.fontIsMonospace,i=e.canUseHalfwidthRightwardsArrow,r=e.containsForeignElements,o=e.lineContent,a=e.len,s=e.isOverflowing,l=e.parts,c=e.fauxIndentLength,u=e.tabSize,d=e.startVisibleColumn,h=e.containsRTL,f=e.spaceWidth,p=e.renderSpaceCharCode,g=e.renderWhitespace,m=e.renderControlCharacters,v=new pd(a+1,l.length);let b=0,y=d,_=0,w=0,x=0,C=0;h?t.appendASCIIString('<span dir="ltr">'):t.appendASCIIString("<span>");for(let S=0,k=l.length;S<k;S++){C+=x;const e=l[S],a=e.endIndex,s=e.type,d=0!==g&&e.isWhitespace(),h=d&&!n&&("mtkw"===s||!r),k=b===a&&4===e.metadata;if(_=0,t.appendASCIIString('<span class="'),t.appendASCIIString(h?"mtkz":s),t.appendASCII(34),d){let e=0;{let t=b,n=y;for(;t<a;t++){const i=o.charCodeAt(t),r=0|(9===i?u-n%u:1);e+=r,t>=c&&(n+=r)}}for(h&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(f*e)),t.appendASCIIString('px"')),t.appendASCII(62);b<a;b++){v.setPartData(b,S-w,_,C),w=0;const e=o.charCodeAt(b);let n;if(9===e){n=u-y%u|0,!i||n>1?t.write1(8594):t.write1(65515);for(let e=2;e<=n;e++)t.write1(160)}else n=1,t.write1(p);_+=n,b>=c&&(y+=n)}x=e}else{let e=0;for(t.appendASCII(62);b<a;b++){v.setPartData(b,S-w,_,C),w=0;const n=o.charCodeAt(b);let i=1,r=1;switch(n){case 9:i=u-y%u,r=i;for(let e=1;e<=i;e++)t.write1(160);break;case 32:t.write1(160);break;case 60:t.appendASCIIString("&lt;");break;case 62:t.appendASCIIString("&gt;");break;case 38:t.appendASCIIString("&amp;");break;case 0:t.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:t.write1(65533);break;default:xo["C"](n)&&r++,m&&n<32?t.write1(9216+n):t.write1(n)}_+=i,e+=i,b>=c&&(y+=r)}x=e}k?w++:w=0,t.appendASCIIString("</span>")}return v.setPartData(a,l.length-1,_,C),s&&t.appendASCIIString("<span>&hellip;</span>"),t.appendASCIIString("</span>"),new gd(v,h,r)}class Od{constructor(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}}class Md{constructor(e,t){this.tabSize=e,this.data=t}}class Dd{constructor(e,t,n,i,r,o){this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=o}}class Ed{constructor(e,t,n,i,r,o,a,s,l,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=Ed.isBasicASCII(n,o),this.containsRTL=Ed.containsRTL(n,this.isBasicASCII,r),this.tokens=a,this.inlineDecorations=s,this.tabSize=l,this.startVisibleColumn=c}static isBasicASCII(e,t){return!t||xo["z"](e)}static containsRTL(e,t,n){return!(t||!n)&&xo["l"](e)}}class Td{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}class Ld{constructor(e,t){this.range=e,this.options=t}}function Id(e){return Array.isArray(e)}function Ad(e){return!Id(e)}function Nd(e){return"string"===typeof e}function Pd(e){return!Nd(e)}function Rd(e){return!e}function Fd(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function jd(e){return e.replace(/[&<>'"_]/g,"-")}function Bd(e,t){console.log(`${e.languageId}: ${t}`)}function zd(e,t){return new Error(`${e.languageId}: ${t}`)}function Vd(e,t,n,i,r){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let a=null;return t.replace(o,(function(t,o,s,l,c,u,d,h,f){return Rd(s)?Rd(l)?!Rd(c)&&c<i.length?Fd(e,i[c]):!Rd(d)&&e&&"string"===typeof e[d]?e[d]:(null===a&&(a=r.split("."),a.unshift(r)),!Rd(u)&&u<a.length?Fd(e,a[u]):""):Fd(e,n):"$"}))}function $d(e,t){let n=t;while(n&&n.length>0){const t=e.tokenizer[n];if(t)return t;const i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}function Wd(e,t){let n=t;while(n&&n.length>0){const t=e.stateNames[n];if(t)return!0;const i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return!1}const Hd=5;class Ud{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new qd(e,t);let n=qd.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let i=this._entries[n];return i||(i=new qd(e,t),this._entries[n]=i,i)}}Ud._INSTANCE=new Ud(Hd);class qd{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return qd._equals(this,e)}push(e){return Ud.create(this,e)}pop(){return this.parent}popall(){let e=this;while(e.parent)e=e.parent;return e}switchTo(e){return Ud.create(this.parent,e)}}class Gd{constructor(e,t){this.modeId=e,this.state=t}equals(e){return this.modeId===e.modeId&&this.state.equals(e.state)}clone(){let e=this.state.clone();return e===this.state?this:new Gd(this.modeId,this.state)}}class Kd{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t)return new Yd(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Yd(e,t);let n=qd.getStackElementId(e),i=this._entries[n];return i||(i=new Yd(e,null),this._entries[n]=i,i)}}Kd._INSTANCE=new Kd(Hd);class Yd{constructor(e,t){this.stack=e,this.embeddedModeData=t}clone(){let e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:Kd.create(this.stack,this.embeddedModeData)}equals(e){return e instanceof Yd&&!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData))}}class Xd{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(e,t){this._language=t}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new tn(e,t,this._language)))}nestedModeTokenize(e,t,n){const i=t.modeId,r=t.state,o=Ul.get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;let a=o.tokenize(e,r,n);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState}finalize(e){return new nn(this._tokens,e)}}class Zd{constructor(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id}emit(e,t){let n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){let i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;let a=new Uint32Array(i+r+o);null!==e&&a.set(e);for(let s=0;s<r;s++)a[i+s]=t[s];return null!==n&&a.set(n,i+r),a}nestedModeTokenize(e,t,n){const i=t.modeId,r=t.state,o=Ul.get(i);if(!o)return this.enterMode(n,i),this.emit(n,""),r;let a=o.tokenize2(e,r,n);return this._prependTokens=Zd._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new rn(Zd._merge(this._prependTokens,this._tokens,null),e)}}class Qd{constructor(e,t,n,i){this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._tokenizationRegistryListener=Ul.onDidChange(e=>{if(r)return;let t=!1;for(let n=0,i=e.changedLanguages.length;n<i;n++){let i=e.changedLanguages[n];if(this._embeddedModes[i]){t=!0;break}}t&&(r=!0,Ul.fire([this._modeId]),r=!1)})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let e=[];for(let t in this._embeddedModes){const n=Ul.get(t);if(n){if(n instanceof Qd){const t=n.getLoadStatus();!1===t.loaded&&e.push(t.promise)}continue}const i=Ul.getPromise(t);i&&e.push(i)}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>{})}}getInitialState(){let e=Ud.create(null,this._lexer.start);return Kd.create(e,null)}tokenize(e,t,n){let i=new Xd,r=this._tokenize(e,t,n,i);return i.finalize(r)}tokenize2(e,t,n){let i=new Zd(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),r=this._tokenize(e,t,n,i);return i.finalize(r)}_tokenize(e,t,n,i){return t.embeddedModeData?this._nestedTokenize(e,t,n,i):this._myTokenize(e,t,n,i)}_findLeavingNestedModeOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=$d(this._lexer,t.stack.state),!n))throw zd(this._lexer,"tokenizer state is not defined: "+t.stack.state);let i=-1,r=!1;for(const o of n){if(!Pd(o.action)||"@pop"!==o.action.nextEmbedded)continue;r=!0;let t=o.regex,n=o.regex.source;if("^(?:"===n.substr(0,4)&&")"===n.substr(n.length-1,1)){let e=(t.ignoreCase?"i":"")+(t.unicode?"u":"");t=new RegExp(n.substr(4,n.length-5),e)}let a=e.search(t);-1===a||0!==a&&o.matchOnlyAtLineStart||(-1===i||a<i)&&(i=a)}if(!r)throw zd(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i}_nestedTokenize(e,t,n,i){let r=this._findLeavingNestedModeOffset(e,t);if(-1===r){let r=i.nestedModeTokenize(e,t.embeddedModeData,n);return Kd.create(t.stack,new Gd(t.embeddedModeData.modeId,r))}let o=e.substring(0,r);o.length>0&&i.nestedModeTokenize(o,t.embeddedModeData,n);let a=e.substring(r);return this._myTokenize(a,t,n+r,i)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,n,i){i.enterMode(n,this._modeId);const r=e.length;let o=t.embeddedModeData,a=t.stack,s=0,l=null,c=!0;while(c||s<r){const t=s,u=a.depth,d=l?l.groups.length:0,h=a.state;let f=null,p=null,g=null,m=null,v=null;if(l){f=l.matches;const e=l.groups.shift();p=e.matched,g=e.action,m=l.rule,0===l.groups.length&&(l=null)}else{if(!c&&s>=r)break;c=!1;let t=this._lexer.tokenizer[h];if(!t&&(t=$d(this._lexer,h),!t))throw zd(this._lexer,"tokenizer state is not defined: "+h);let n=e.substr(s);for(const e of t)if((0===s||!e.matchOnlyAtLineStart)&&(f=n.match(e.regex),f)){p=f[0],g=e.action;break}}if(f||(f=[""],p=""),g||(s<r&&(f=[e.charAt(s)],p=f[0]),g=this._lexer.defaultToken),null===p)break;s+=p.length;while(Ad(g)&&Pd(g)&&g.test)g=g.test(p,f,h,s===r);let b=null;if("string"===typeof g||Array.isArray(g))b=g;else if(g.group)b=g.group;else if(null!==g.token&&void 0!==g.token){if(b=g.tokenSubst?Vd(this._lexer,g.token,p,f,h):g.token,g.nextEmbedded)if("@pop"===g.nextEmbedded){if(!o)throw zd(this._lexer,"cannot pop embedded mode if not inside one");o=null}else{if(o)throw zd(this._lexer,"cannot enter embedded mode from within an embedded mode");v=Vd(this._lexer,g.nextEmbedded,p,f,h)}if(g.goBack&&(s=Math.max(0,s-g.goBack)),g.switchTo&&"string"===typeof g.switchTo){let e=Vd(this._lexer,g.switchTo,p,f,h);if("@"===e[0]&&(e=e.substr(1)),!$d(this._lexer,e))throw zd(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(m));a=a.switchTo(e)}else{if(g.transform&&"function"===typeof g.transform)throw zd(this._lexer,"action.transform not supported");if(g.next)if("@push"===g.next){if(a.depth>=this._lexer.maxStack)throw zd(this._lexer,"maximum tokenizer stack size reached: ["+a.state+","+a.parent.state+",...]");a=a.push(h)}else if("@pop"===g.next){if(a.depth<=1)throw zd(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(m));a=a.pop()}else if("@popall"===g.next)a=a.popall();else{let e=Vd(this._lexer,g.next,p,f,h);if("@"===e[0]&&(e=e.substr(1)),!$d(this._lexer,e))throw zd(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(m));a=a.push(e)}}g.log&&"string"===typeof g.log&&Bd(this._lexer,this._lexer.languageId+": "+Vd(this._lexer,g.log,p,f,h))}if(null===b)throw zd(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(m));const y=t=>{let o=this._modeService.getModeIdForLanguageName(t);o&&(t=o);const l=this._getNestedEmbeddedModeData(t);if(s<r){const t=e.substr(s);return this._nestedTokenize(t,Kd.create(a,l),n+s,i)}return Kd.create(a,l)};if(Array.isArray(b)){if(l&&l.groups.length>0)throw zd(this._lexer,"groups cannot be nested: "+this._safeRuleName(m));if(f.length!==b.length+1)throw zd(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(m));let e=0;for(let t=1;t<f.length;t++)e+=f[t].length;if(e!==p.length)throw zd(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(m));l={rule:m,matches:f,groups:[]};for(let t=0;t<b.length;t++)l.groups[t]={action:b[t],matched:f[t+1]};s-=p.length}else{{if("@rematch"===b&&(s-=p.length,p="",f=null,b="",null!==v))return y(v);if(0===p.length){if(0===r||u!==a.depth||h!==a.state||(l?l.groups.length:0)!==d)continue;throw zd(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(m))}let e=null;if(Nd(b)&&0===b.indexOf("@brackets")){let t=b.substr("@brackets".length),n=Jd(this._lexer,p);if(!n)throw zd(this._lexer,"@brackets token returned but no bracket defined as: "+p);e=jd(n.token+t)}else{let t=""===b?"":b+this._lexer.tokenPostfix;e=jd(t)}i.emit(t+n,e)}if(null!==v)return y(v)}}return Kd.create(a,o)}_getNestedEmbeddedModeData(e){let t=this._locateMode(e);if(t){let e=Ul.get(t);if(e)return new Gd(t,e.getInitialState())}return new Gd(t||Kl,Gl)}_locateMode(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;let t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t}}function Jd(e,t){if(!t)return null;t=Fd(e,t);let n=e.brackets;for(const i of n){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}function eh(e,t,n,i){return new Qd(e,t,n,i)}class th{static colorizeElement(e,t,n,i){i=i||{};let r=i.theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();e.setTheme(r);let a=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;let s=e=>{n.innerHTML=e};return this.colorize(t,a||"",o,i).then(s,e=>console.error(e))}static colorize(e,t,n,i){let r=4;i&&"number"===typeof i.tabSize&&(r=i.tabSize),xo["R"](t)&&(t=t.substr(1));let o=t.split(/\r\n|\r|\n/),a=e.getModeId(n);if(!a)return Promise.resolve(ih(o,r));e.triggerMode(a);const s=Ul.get(a);if(s)return nh(o,r,s);const l=Ul.getPromise(a);return new Promise(l?(e,t)=>{l.then(n=>{nh(o,r,n).then(e,t)},t)}:(e,t)=>{let n=null,i=null;const s=()=>{n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);const s=Ul.get(a);s?nh(o,r,s).then(e,t):e(ih(o,r))};i=new Di,i.cancelAndSet(s,500),n=Ul.onDidChange(e=>{e.changedLanguages.indexOf(a)>=0&&s()})})}static colorizeLine(e,t,n,i,r=4){const o=Ed.isBasicASCII(e,t),a=Ed.containsRTL(e,o,n);let s=bd(new fd(!1,!0,e,!1,o,a,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null));return s.html}static colorizeModelLine(e,t,n=4){let i=e.getLineContent(t);e.forceTokenization(t);let r=e.getLineTokens(t),o=r.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)}}function nh(e,t,n){return new Promise((i,r)=>{const o=()=>{const a=rh(e,t,n);if(n instanceof Qd){const e=n.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}i(a)};o()})}function ih(e,t){let n=[];const i=16793600,r=new Uint32Array(2);r[0]=0,r[1]=i;for(let o=0,a=e.length;o<a;o++){let i=e[o];r[0]=i.length;const a=new od(r,i),s=Ed.isBasicASCII(i,!0),l=Ed.containsRTL(i,s,!0);let c=bd(new fd(!1,!0,i,!1,s,l,0,a,[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(c.html),n.push("<br/>")}return n.join("")}function rh(e,t,n){let i=[],r=n.getInitialState();for(let o=0,a=e.length;o<a;o++){let a=e[o],s=n.tokenize2(a,r,0);od.convertToEndOffset(s.tokens,a.length);let l=new od(s.tokens,a);const c=Ed.isBasicASCII(a,!0),u=Ed.containsRTL(a,c,!0);let d=bd(new fd(!1,!0,a,!1,c,u,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));i=i.concat(d.html),i.push("<br/>"),r=s.endState}return i.join("")}var oh;(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(oh||(oh={})),function(e){const t="error",n="warning",i="warn",r="info";function o(o){return o?xo["r"](t,o)?e.Error:xo["r"](n,o)||xo["r"](i,o)?e.Warning:xo["r"](r,o)?e.Info:e.Ignore:e.Ignore}e.fromValue=o}(oh||(oh={}));var ah=oh;function sh(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===_a.ICodeEditor}const lh=Wn("IWorkspaceEditService");function ch(e){return No(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}function uh(e){return No(e)&&Vt.isUri(e.resource)&&No(e.edit)}class dh{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(uh(e))return new hh(e.resource,e.edit,e.modelVersionId,e.metadata);if(ch(e))return new fh(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")})}}class hh extends dh{constructor(e,t,n,i){super(i),this.resource=e,this.textEdit=t,this.versionId=n,this.metadata=i}}class fh extends dh{constructor(e,t,n,i){super(i),this.oldResource=e,this.newResource=t,this.options=n,this.metadata=i}}class ph{constructor(){this.data=new Map}add(e,t){ra(Ao(e)),ra(No(t)),ra(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const gh=new ph,mh={JSONContribution:"base.contributions.json"};function vh(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}class bh{constructor(){this._onDidChangeSchema=new ze,this.schemasById={}}registerSchema(e,t){this.schemasById[vh(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const yh=new bh;gh.add(mh.JSONContribution,yh);const _h={Configuration:"base.contributions.configuration"},wh={properties:{},patternProperties:{}},xh={properties:{},patternProperties:{}},Ch={properties:{},patternProperties:{}},Sh={properties:{},patternProperties:{}},kh={properties:{},patternProperties:{}},Oh={properties:{},patternProperties:{}},Mh="vscode://schemas/settings/resourceLanguage",Dh=gh.as(mh.JSONContribution);class Eh{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new ze,this._onDidUpdateConfiguration=new ze,this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},Dh.registerSchema(Mh,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=[];e.forEach(e=>{n.push(...this.validateAndRegisterProperties(e,t)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),Dh.registerSchema(Mh,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,t=!0,n=3){n=jo(e.scope)?n:e.scope;let i=[],r=e.properties;if(r)for(let a in r){if(t&&Ph(a)){delete r[a];continue}const e=r[a];this.updatePropertyDefaultValue(a,e),Lh.test(a)?e.scope=void 0:e.scope=jo(e.scope)?n:e.scope,!r[a].hasOwnProperty("included")||r[a].included?(this.configurationProperties[a]=r[a],!r[a].deprecationMessage&&r[a].markdownDeprecationMessage&&(r[a].deprecationMessage=r[a].markdownDeprecationMessage),i.push(a)):(this.excludedConfigurationProperties[a]=r[a],delete r[a])}let o=e.allOf;if(o)for(let a of o)i.push(...this.validateAndRegisterProperties(a,t,n));return i}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{let n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);let i=e.allOf;i&&i.forEach(t)};t(e)}updateSchema(e,t){switch(wh.properties[e]=t,t.scope){case 1:xh.properties[e]=t;break;case 2:Ch.properties[e]=t;break;case 6:Sh.properties[e]=t;break;case 3:kh.properties[e]=t;break;case 4:Oh.properties[e]=t;break;case 5:Oh.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:r("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Mh};this.updatePropertyDefaultValue(t,n),wh.properties[t]=n,xh.properties[t]=n,Ch.properties[t]=n,Sh.properties[t]=n,kh.properties[t]=n,Oh.properties[t]=n}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let n=this.defaultValues[e];Fo(n)&&(n=t.default),Fo(n)&&(n=Ah(t.type)),t.default=n}}const Th="\\[.*\\]$",Lh=new RegExp(Th);function Ih(e){return e.substring(1,e.length-1)}function Ah(e){const t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const Nh=new Eh;function Ph(e){return Lh.test(e)?r("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==Nh.getConfigurationProperties()[e]?r("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null}gh.add(_h.Configuration,Nh);const Rh=Object.prototype.hasOwnProperty;function Fh(e,t){for(let n in e)if(Rh.call(e,n)){const i=t({key:n,value:e[n]},(function(){delete e[n]}));if(!1===i)return}}class jh{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}}const Bh=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new ze,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}},zh=Object.hasOwnProperty;class Vh{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class $h{constructor(){this._values=[]}_read(e){return this._values[e]}_write(e,t){this._values[e]=t}}class Wh{static readOptions(e){const t=e,n=new $h;for(const i of ue){const e="_never_"===i.name?void 0:t[i.name];n._write(i.id,e)}return n}static validateOptions(e){const t=new g;for(const n of ue)t._write(n.id,n.validate(e._read(n.id)));return t}static computeOptions(e,t){const n=new Vh;for(const i of ue)n._write(i.id,i.compute(t,n,e._read(i.id)));return n}static _deepEquals(e,t){if("object"!==typeof e||"object"!==typeof t)return e===t;if(Array.isArray(e)||Array.isArray(t))return!(!Array.isArray(e)||!Array.isArray(t))&&Ni(e,t);for(let n in e)if(!Wh._deepEquals(e[n],t[n]))return!1;return!0}static checkEquals(e,t){const n=[];let i=!1;for(const r of ue){const o=!Wh._deepEquals(e._read(r.id),t._read(r.id));n[r.id]=o,o&&(i=!0)}return i?new p(n):null}}function Hh(e){const t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");const n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off");const i=e.autoClosingBrackets;!1===i&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never");const r=e.cursorBlinking;"visible"===r&&(e.cursorBlinking="solid");const o=e.renderWhitespace;!0===o?e.renderWhitespace="boundary":!1===o&&(e.renderWhitespace="none");const a=e.renderLineHighlight;!0===a?e.renderLineHighlight="line":!1===a&&(e.renderLineHighlight="none");const s=e.acceptSuggestionOnEnter;!0===s?e.acceptSuggestionOnEnter="on":!1===s&&(e.acceptSuggestionOnEnter="off");const l=e.tabCompletion;!1===l?e.tabCompletion="off":!0===l&&(e.tabCompletion="onlySnippets");const c=e.suggest;if(c&&"object"===typeof c.filteredTypes&&c.filteredTypes){const e={method:"showMethods",function:"showFunctions",constructor:"showConstructors",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};Fh(e,e=>{const t=c.filteredTypes[e.key];!1===t&&(c[e.value]=t)})}const u=e.hover;!0===u?e.hover={enabled:!0}:!1===u&&(e.hover={enabled:!1});const d=e.parameterHints;!0===d?e.parameterHints={enabled:!0}:!1===d&&(e.parameterHints={enabled:!1});const h=e.autoIndent;!0===h?e.autoIndent="full":!1===h&&(e.autoIndent="advanced");const f=e.matchBrackets;!0===f?e.matchBrackets="always":!1===f&&(e.matchBrackets="never")}function Uh(e){const t=oa(e);return Hh(t),t}class qh extends Ae{constructor(e,t){super(),this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new ze),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new m,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=Uh(t),this._readOptions=Wh.readOptions(this._rawOptions),this._validatedOptions=Wh.validateOptions(this._readOptions),this._register(pa.onDidChangeZoomLevel(e=>this._recomputeOptions())),this._register(Bh.onDidChangeTabFocus(e=>this._recomputeOptions()))}observeReferenceElement(e){}dispose(){super.dispose()}_recomputeOptions(){const e=this.options,t=this._computeInternalOptions();if(e){const n=Wh.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChangeFast.fire(n),this._onDidChange.fire(n)}else this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const e=this._getEnvConfiguration(),t=va.createFromValidatedSettings(this._validatedOptions,e.zoomLevel,this.isSimpleWidget),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:Bh.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return Wh.computeOptions(this._validatedOptions,n)}static _subsetEquals(e,t){for(const n in t)if(zh.call(t,n)){const i=t[n],r=e[n];if(r===i)continue;if(Array.isArray(r)&&Array.isArray(i)){if(!Ni(r,i))return!1;continue}if(r&&"object"===typeof r&&i&&"object"===typeof i){if(!this._subsetEquals(r,i))return!1;continue}return!1}return!0}updateOptions(e){if("undefined"===typeof e)return;const t=Uh(e);qh._subsetEquals(this._rawOptions,t)||(this._rawOptions=la(this._rawOptions,t||{}),this._readOptions=Wh.readOptions(this._rawOptions),this._validatedOptions=Wh.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){const t=qh._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;while(e)e=Math.floor(e/10),t++;return t||1}}const Gh=Object.freeze({id:"editor",order:5,type:"object",title:r("editorConfigurationTitle","Editor"),scope:5}),Kh=gh.as(_h.Configuration),Yh=Object.assign(Object.assign({},Gh),{properties:{"editor.tabSize":{type:"number",default:ce.tabSize,minimum:1,markdownDescription:r("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:ce.insertSpaces,markdownDescription:r("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:ce.detectIndentation,markdownDescription:r("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.trimAutoWhitespace":{type:"boolean",default:ce.trimAutoWhitespace,description:r("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:ce.largeFileOptimizations,description:r("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{type:"boolean",default:!0,description:r("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[r("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),r("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),r("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:r("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:r("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:r("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"diffEditor.maxComputationTime":{type:"number",default:5e3,description:r("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:r("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:r("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:r("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:r("codeLens","Controls whether the editor shows CodeLens.")}}});function Xh(e){return"undefined"!==typeof e.type||"undefined"!==typeof e.anyOf}for(const RR of ue){const e=RR.schema;if("undefined"!==typeof e)if(Xh(e))Yh.properties["editor."+RR.name]=e;else for(let t in e)zh.call(e,t)&&(Yh.properties[t]=e[t])}let Zh=null;function Qh(){return null===Zh&&(Zh=Object.create(null),Object.keys(Yh.properties).forEach(e=>{Zh[e]=!0})),Zh}function Jh(e){const t=Qh();return t["editor."+e]||!1}function ef(e){const t=Qh();return t["diffEditor."+e]||!1}Kh.registerConfiguration(Yh);class tf{static insert(e,t){return{range:new Jt(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}const nf=Wn("configurationService");function rf(e,t){const n=Object.create(null);for(let i in e)of(n,i,e[i],t);return n}function of(e,t,n,i){const r=t.split("."),o=r.pop();let a=e;for(let s=0;s<r.length;s++){let e=r[s],n=a[e];switch(typeof n){case"undefined":n=a[e]=Object.create(null);break;case"object":break;default:return void i(`Ignoring ${t} as ${r.slice(0,s+1).join(".")} is ${JSON.stringify(n)}`)}a=n}if("object"===typeof a&&null!==a)try{a[o]=n}catch(s){i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(a)}`)}else i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(a)}`)}function af(e,t){const n=t.split(".");sf(e,n)}function sf(e,t){const n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){const i=e[n];"object"!==typeof i||Array.isArray(i)||(sf(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function lf(e,t,n){function i(e,t){let n=e;for(const i of t){if("object"!==typeof n||null===n)return;n=n[i]}return n}const r=t.split("."),o=i(e,r);return"undefined"===typeof o?n:o}function cf(){const e=gh.as(_h.Configuration).getConfigurationProperties();return Object.keys(e)}function uf(){const e=Object.create(null),t=gh.as(_h.Configuration).getConfigurationProperties();for(let n in t){let i=t[n].default;of(e,n,i,e=>console.error("Conflict in default settings: "+e))}return e}class df{constructor(e={},t=[],n=[]){this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?lf(this.contents,e):this.contents}override(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;let n={};for(const i of $i([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[i],r=t[i];r&&("object"===typeof e&&"object"===typeof r?(e=oa(e),this.mergeContents(e,r)):e=r),n[i]=e}return new df(n,this.keys,this.overrides)}merge(...e){const t=oa(this.contents),n=oa(this.overrides),i=[...this.keys];for(const r of e){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=n.filter(t=>Ni(t.identifiers,e.identifiers));t?this.mergeContents(t.contents,e.contents):n.push(oa(e))}for(const e of r.keys)-1===i.indexOf(e)&&i.push(e)}return new df(t,i,n)}freeze(){return this.isFrozen=!0,this}mergeContents(e,t){for(const n of Object.keys(t))n in e&&No(e[n])&&No(t[n])?this.mergeContents(e[n],t[n]):e[n]=oa(t[n])}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?aa(e):e}getContentsForOverrideIdentifer(e){for(const t of this.overrides)if(-1!==t.identifiers.indexOf(e))return t.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),of(this.contents,e,t,e=>{throw new Error(e)})}removeValue(e){this.removeKey(e)&&af(this.contents,e)}addKey(e){let t=this.keys.length;for(let n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)}removeKey(e){let t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)}}class hf extends df{constructor(){const e=uf(),t=cf(),n=[];for(const i of Object.keys(e))Lh.test(i)&&n.push({identifiers:[Ih(i).trim()],keys:Object.keys(e[i]),contents:rf(e[i],e=>console.error("Conflict in default settings file: "+e))});super(e,t,n)}}class ff{constructor(e,t,n=new df,i=new df,r=new Ma,o=new df,a=new Ma,s=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=a,this._freeze=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Ma,this._userConfiguration=null}getValue(e,t,n){const i=this.getConsolidateConfigurationModel(t,n);return i.getValue(e)}updateValue(e,t,n={}){let i;n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new df,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(e,t){let n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n}getConsolidatedConfigurationModelForResource({resource:e},t){let n=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const i=t.getFolder(e);i&&(n=this.getFolderConsolidatedConfiguration(i.uri)||n);const r=this._memoryConfigurationByResource.get(e);r&&(n=n.merge(r))}return n}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:n,overrides:i,keys:r}=this._folderConfigurations.get(t);return e.push([t,{contents:n,overrides:i,keys:r}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),n=this.parseConfigurationModel(e.user),i=this.parseConfigurationModel(e.workspace),r=e.folders.reduce((e,t)=>(e.set(Vt.revive(t[0]),this.parseConfigurationModel(t[1])),e),new Ma);return new ff(t,n,new df,i,r,new df,new Ma,!1)}static parseConfigurationModel(e){return new df(e.contents,e.keys,e.overrides).freeze()}}class pf{constructor(e,t,n,i){this.change=e,this.previous=t,this.currentConfiguraiton=n,this.currentWorkspace=i,this._previousConfiguration=void 0;const r=new Set;e.keys.forEach(e=>r.add(e)),e.overrides.forEach(([,e])=>e.forEach(e=>r.add(e))),this.affectedKeys=[...r.values()];const o=new df;this.affectedKeys.forEach(e=>o.setValue(e,{})),this.affectedKeysTree=o.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=ff.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var n;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(n=this.previous)||void 0===n?void 0:n.workspace):void 0,r=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!ua(i,r)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let n,i=rf({[t]:!0},()=>{});while("object"===typeof i&&(n=Object.keys(i)[0])){if(e=e[n],!e)return!1;i=i[n]}return!0}}class gf extends Ae{constructor(e,t,n,i,r){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=n,this._notificationService=i,this._logService=r,this._onDidUpdateKeybindings=this._register(new ze),this._currentChord=null,this._currentChordChecker=new Ei,this._currentChordStatusMessage=null,this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Fe.None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info("[KeybindingService]: "+e)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybindings(e){return Bi(this._getResolver().lookupKeybindings(e).map(e=>e.resolvedKeybinding))}lookupKeybinding(e){const t=this._getResolver().lookupPrimaryKeybinding(e);if(t)return t.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[i]=n.getDispatchParts();if(null===i)return null;const r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,i)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(r("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const n=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-n>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)}_doDispatch(e,t){let n=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;const[i]=e.getDispatchParts();if(null===i)return this._log("\\ Keyboard event cannot be dispatched."),n;const o=this._contextKeyService.getContext(t),a=this._currentChord?this._currentChord.keypress:null,s=e.getLabel(),l=this._getResolver().resolve(o,a,i);return this._logService.trace("KeybindingService#dispatch",s,null===l||void 0===l?void 0:l.commandId),l&&l.enterChord?(n=!0,this._enterChordMode(i,s),n):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(r("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,s),{hideAfter:1e4}),n=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(n=!0),"undefined"===typeof l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,e=>this._notificationService.warn(e)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),n)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class mf{constructor(e,t,n){this._log=n,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let i=0,r=e.length;i<r;i++){const t=e[i].command;t&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=mf.combine(e,t);for(let i=0,r=this._keybindings.length;i<r;i++){let e=this._keybindings[i];0!==e.keypressParts.length&&(e.when&&0===e.when.type||this._addKeyPress(e.keypressParts[0],e))}}static _isTargetedForRemoval(e,t,n,i,r){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(r){if(!e.when)return!1;if(!r.equals(e.when))return!1}return!0}static combine(e,t){e=e.slice(0);let n=[];for(const i of t){if(!i.command||0===i.command.length||"-"!==i.command.charAt(0)){n.push(i);continue}const t=i.command.substr(1),r=i.keypressParts[0],o=i.keypressParts[1],a=i.when;for(let n=e.length-1;n>=0;n--)this._isTargetedForRemoval(e[n],r,o,t,a)&&e.splice(n,1)}return e.concat(n)}_addKeyPress(e,t){const n=this._map.get(e);if("undefined"===typeof n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let i=n.length-1;i>=0;i--){let e=n[i];if(e.command===t.command)continue;const r=e.keypressParts.length>1,o=t.keypressParts.length>1;r&&o&&e.keypressParts[1]!==t.keypressParts[1]||mf.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e)}n.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}static whenIsEntirelyIncluded(e,t){return!t||!!e&&this._implies(e,t)}static _implies(e,t){const n=e.negate(),i=e=>9===e.type?e.expr:[e];let r=i(n).concat(i(t));for(let o=0;o<r.length;o++){const e=r[o],t=e.negate();for(let n=o+1;n<r.length;n++){const e=r[n];if(t.equals(e))return!0}}return!1}getKeybindings(){return this._keybindings}lookupKeybindings(e){let t=this._lookupMap.get(e);if("undefined"===typeof t||0===t.length)return[];let n=[],i=0;for(let r=t.length-1;r>=0;r--)n[i++]=t[r];return n}lookupPrimaryKeybinding(e){let t=this._lookupMap.get(e);return"undefined"===typeof t||0===t.length?null:t[t.length-1]}resolve(e,t,n){this._log(`| Resolving ${n}${t?" chorded from "+t:""}`);let i=null;if(null!==t){const e=this._map.get(t);if("undefined"===typeof e)return this._log("\\ No keybinding entries."),null;i=[];for(let t=0,r=e.length;t<r;t++){let r=e[t];r.keypressParts[1]===n&&i.push(r)}}else{const e=this._map.get(n);if("undefined"===typeof e)return this._log("\\ No keybinding entries."),null;i=e}let r=this._findCommand(e,i);return r?null===t&&r.keypressParts.length>1&&null!==r.keypressParts[1]?(this._log(`\\ From ${i.length} keybinding entries, matched chord, when: ${vf(r.when)}, source: ${bf(r)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${i.length} keybinding entries, matched ${r.command}, when: ${vf(r.when)}, source: ${bf(r)}.`),{enterChord:!1,leaveChord:r.keypressParts.length>1,commandId:r.command,commandArgs:r.commandArgs,bubble:r.bubble}):(this._log(`\\ From ${i.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let n=t.length-1;n>=0;n--){let i=t[n];if(mf.contextMatchesRules(e,i.when))return i}return null}static contextMatchesRules(e,t){return!t||t.evaluate(e)}}function vf(e){return e?""+e.serialize():"no when condition"}function bf(e){return e.isDefault?e.extensionId?"built-in extension "+e.extensionId:"built-in":e.extensionId?"user extension "+e.extensionId:"user"}class yf{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===o["a"]){if(e&&e.win)return e.win}else if(2===o["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=yf.bindToCurrentPlatform(e);if(t&&t.primary){const n=et(t.primary,o["a"]);n&&this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let n=0,i=t.secondary.length;n<i;n++){const i=t.secondary[n],r=et(i,o["a"]);r&&this._registerDefaultKeybinding(r,e.id,e.args,e.weight,-n-1,e.when)}}registerCommandAndKeybindingRule(e){this.registerKeybindingRule(e),Go.registerCommand(e)}static _mightProduceChar(e){return e>=21&&e<=30||e>=31&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&yf._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,n,i,r,a){1===o["a"]&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:a,weight1:i,weight2:r,extensionId:null}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(xf)),this._cachedMergedKeybindings.slice(0)}}const _f=new yf,wf={EditorModes:"platform.keybindingsRegistry"};function xf(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.command<t.command?-1:e.command>t.command?1:e.weight2-t.weight2}gh.add(wf.EditorModes,_f);class Cf{constructor(e,t,n,i,r,o){this.resolvedKeybinding=e,this.keypressParts=e?Sf(e.getDispatchParts()):[],this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=r,this.extensionId=o}}function Sf(e){let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i)return t;t.push(i)}return t}class kf{constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}toLabel(e,t,n){if(0===t.length)return null;const i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=n(o);if(null===a)return null;i[r]=Df(o,a,this.modifierLabels[e])}return i.join(" ")}}const Of=new kf({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:r({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:r({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:r({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:r({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),Mf=new kf({ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:r({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:r({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:r({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:r({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function Df(e,t,n){if(null===t)return"";const i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),""!==t&&i.push(t),i.join(n.separator)}class Ef extends ot{constructor(e,t){if(super(),0===t.length)throw _e("parts");this._os=e,this._parts=t}getLabel(){return Of.toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return Mf.toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new rt(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}}class Tf extends Ef{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return Qe.toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":Qe.toString(e.keyCode)}_getDispatchPart(e){return Tf.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=Qe.toString(e.keyCode),t}}const Lf=Wn("notificationService");class If{}const Af=Wn("contextService");var Nf,Pf,Rf,Ff,jf,Bf,zf,Vf,$f,Wf,Hf;(function(e){function t(e){return!(!e||"object"!==typeof e||"string"!==typeof e.id||!Array.isArray(e.folders))}e.isIWorkspace=t})(Nf||(Nf={})),function(e){function t(e){return!(!e||"object"!==typeof e||!Vt.isUri(e.uri)||"string"!==typeof e.name||"function"!==typeof e.toResource)}e.isIWorkspaceFolder=t}(Pf||(Pf={}));class Uf{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toResource(e){return Eo(this.uri,e)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}(function(e){e.noSelection=r("noSelection","No selection"),e.singleSelectionRange=r("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=r("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=r("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=r("multiSelection","{0} selections"),e.emergencyConfOn=r("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=r("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=r("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=r("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=r("readonlyEditor"," in a read-only code editor"),e.editableEditor=r("editableEditor"," in a code editor"),e.changeConfigToOnMac=r("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=r("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=r("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=r("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),e.tabFocusModeOnMsg=r("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=r("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),e.tabFocusModeOffMsg=r("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=r("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=r("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=r("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=r("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=r("showAccessibilityHelpAction","Show Accessibility Help")})(Rf||(Rf={})),function(e){e.inspectTokensAction=r("inspectTokens","Developer: Inspect Tokens")}(Ff||(Ff={})),function(e){e.gotoLineActionLabel=r("gotoLineActionLabel","Go to Line/Column...")}(jf||(jf={})),function(e){e.helpQuickAccessActionLabel=r("helpQuickAccess","Show all Quick Access Providers")}(Bf||(Bf={})),function(e){e.quickCommandActionLabel=r("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=r("quickCommandActionHelp","Show And Run Commands")}(zf||(zf={})),function(e){e.quickOutlineActionLabel=r("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=r("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(Vf||(Vf={})),function(e){e.editorViewAccessibleLabel=r("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=r("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}($f||($f={})),function(e){e.toggleHighContrast=r("toggleHighContrast","Toggle High Contrast Theme")}(Wf||(Wf={})),function(e){e.bulkEditServiceSummary=r("bulkEditServiceSummary","Made {0} edits in {1} files")}(Hf||(Hf={}));var qf=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Gf=function(e,t){return function(n,i){t(n,i,e)}},Kf=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class Yf{constructor(e){this.disposed=!1,this.model=e,this._onDispose=new ze}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onDispose.fire()}}function Xf(e,t,n){return sh(e)?t(e):n(e)}let Zf=class{constructor(e){this.modelService=e}setEditor(e){this.editor=e}createModelReference(e){let t=null;return this.editor&&(t=Xf(this.editor,t=>this.findModel(t,e),t=>this.findModel(t.getOriginalEditor(),e)||this.findModel(t.getModifiedEditor(),e))),t?Promise.resolve(new Ne(new Yf(t))):Promise.reject(new Error("Model not found"))}findModel(e,t){let n=this.modelService.getModel(t);return n&&n.uri.toString()!==t.toString()?null:n}};Zf=qf([Gf(0,ss)],Zf);class Qf{show(){return Qf.NULL_PROGRESS_RUNNER}showWhile(e,t){return Promise.resolve(void 0)}}Qf.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Jf{confirm(e){return this.doConfirm(e).then(e=>({confirmed:e,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,n,i){return Promise.resolve({choice:0})}}class ep{info(e){return this.notify({severity:ah.Info,message:e})}warn(e){return this.notify({severity:ah.Warning,message:e})}error(e){return this.notify({severity:ah.Error,message:e})}notify(e){switch(e.severity){case ah.Error:console.error(e.message);break;case ah.Warning:console.warn(e.message);break;default:console.log(e.message);break}return ep.NO_OP}status(e,t){return Ae.None}}ep.NO_OP=new If;class tp{constructor(e){this._onWillExecuteCommand=new ze,this._onDidExecuteCommand=new ze,this._instantiationService=e}executeCommand(e,...t){const n=Go.getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const i=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(i)}catch(i){return Promise.reject(i)}}}class np extends gf{constructor(e,t,n,i,r,o){super(e,t,n,i,r),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(ur(o,Xr.KEY_DOWN,e=>{let t=new gi(e),n=this._dispatch(t,t.target);n&&(t.preventDefault(),t.stopPropagation())}))}addDynamicKeybinding(e,t,n,i){const r=et(t,o["a"]),a=new Ie;return r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0,extensionId:null}),a.add(Le(()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){let n=this._dynamicKeybindings[t];if(n.command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver({source:1})}}))),a.add(Go.registerCommand(e,n)),this.updateResolver({source:1}),a}updateResolver(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(_f.getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new mf(e,t,e=>this._log(e))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){let n=[],i=0;for(const r of e){const e=r.when||void 0,o=r.keybinding;if(o){const a=this.resolveKeybinding(o);for(const o of a)n[i++]=new Cf(o,r.command,r.commandArgs,e,t,null)}else n[i++]=new Cf(void 0,r.command,r.commandArgs,e,t,null)}return n}resolveKeybinding(e){return[new Tf(e,o["a"])]}resolveKeyboardEvent(e){let t=new nt(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Tf(t,o["a"])}}function ip(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof Vt)}class rp{constructor(){this._onDidChangeConfiguration=new ze,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new ff(new hf,new df)}getValue(e,t){const n="string"===typeof e?e:void 0,i=ip(e)?e:ip(t)?t:{};return this._configuration.getValue(n,i,void 0)}updateValues(e){const t={data:this._configuration.toData()};let n=[];for(const i of e){const[e,t]=i;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),n.push(e))}if(n.length>0){const e=new pf({keys:n,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}}class op{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new ze,this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})})}getValue(e,t,n){const i=Qt.isIPosition(t)?t:null,r=i?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof r?this.configurationService.getValue():this.configurationService.getValue(r)}}let ap=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"auto"!==n?n:o["d"]||o["f"]?"\n":"\r\n"}};ap=qf([Gf(0,nf)],ap);class sp{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class lp{constructor(){const e=Vt.from({scheme:lp.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Uf({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(e){return e&&e.scheme===lp.SCHEME?this.workspace.folders[0]:null}}function cp(e,t,n){if(!t)return;if(!(e instanceof rp))return;let i=[];Object.keys(t).forEach(e=>{Jh(e)&&i.push(["editor."+e,t[e]]),n&&ef(e)&&i.push(["diffEditor."+e,t[e]])}),i.length>0&&e.updateValues(i)}lp.SCHEME="inmemory";class up{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Kf(this,void 0,void 0,(function*(){const t=new Map;for(let r of e){if(!(r instanceof hh))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let n=t.get(e);n||(n=[],t.set(e,n)),n.push(tf.replaceMove(Jt.lift(r.textEdit.range),r.textEdit.text))}let n=0,i=0;for(const[e,r]of t)e.pushStackElement(),e.pushEditOperations([],r,()=>[]),e.pushStackElement(),i+=1,n+=r.length;return{ariaSummary:xo["v"](Hf.bulkEditServiceSummary,n,i)}}))}}class dp{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}}class hp{constructor(e,t){this._codeEditorService=e,this._container=t,this.onLayout=Fe.None}get dimension(){return this._dimension||(this._dimension=Or(window.document.body)),this._dimension}get container(){return this._container}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}}n("0678");const fp=2e4;let pp,gp,mp,vp,bp;function yp(e){pp=document.createElement("div"),pp.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),pp.appendChild(e),e};gp=t(),mp=t();const n=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),pp.appendChild(e),e};vp=n(),bp=n(),e.appendChild(pp)}function _p(e){pp&&(gp.textContent!==e?(Ji(mp),wp(gp,e)):(Ji(gp),wp(mp,e)))}function wp(e,t){Ji(e),t.length>fp&&(t=t.substr(0,fp)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}n("0556");class xp{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class Cp{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const t=document.createElement("div");t.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),t.style.fontWeight=this._bareFontInfo.fontWeight,t.style.fontSize=this._bareFontInfo.fontSize+"px",t.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,t.style.lineHeight=this._bareFontInfo.lineHeight+"px",t.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(t);const n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),n.style.fontWeight="bold",n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",e.appendChild(n);const i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);const r=[];for(const o of this._requests){let e;0===o.type&&(e=t),2===o.type&&(e=n),1===o.type&&(e=i),e.appendChild(document.createElement("br"));const a=document.createElement("span");Cp._render(a,o),e.appendChild(a),r.push(a)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let n=t.chr;for(let e=0;e<8;e++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],n=this._testElements[e];t.fulfill(n.offsetWidth/256)}}}function Sp(e,t){const n=new Cp(e,t);n.read()}class kp extends Ae{constructor(e,t,n){super(),this.referenceDomElement=e,this.changeCallback=n,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!==typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())}}class Op{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}function Mp(){Dp.INSTANCE.clearCache()}class Dp extends Ae{constructor(){super(),this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._cache=new Op,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new Op,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(let n=0,i=e.length;n<i;n++){const i=e[n];i.isTrusted||(t=!0,this._cache.remove(i))}t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=Dp._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new ba({zoomLevel:Gn(),fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:t.isMonospace,typicalHalfwidthCharacterWidth:Math.max(t.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(t.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:t.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(t.spaceWidth,5),middotWidth:Math.max(t.middotWidth,5),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,n,i){const r=new xp(e,t);return n.push(r),i&&i.push(r),r}static _actualReadConfiguration(e){const t=[],n=[],i=this.createRequest("n",0,t,n),r=this.createRequest("m",0,t,null),o=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),s=this.createRequest("1",0,t,n),l=this.createRequest("2",0,t,n),c=this.createRequest("3",0,t,n),u=this.createRequest("4",0,t,n),d=this.createRequest("5",0,t,n),h=this.createRequest("6",0,t,n),f=this.createRequest("7",0,t,n),p=this.createRequest("8",0,t,n),g=this.createRequest("9",0,t,n),m=this.createRequest("→",0,t,n),v=this.createRequest("→",0,t,null),b=this.createRequest("·",0,t,n),y=this.createRequest(String.fromCharCode(11825),0,t,null);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("i",0,t,n),this.createRequest("l",0,t,n),this.createRequest("m",0,t,n),this.createRequest("|",1,t,n),this.createRequest("_",1,t,n),this.createRequest("i",1,t,n),this.createRequest("l",1,t,n),this.createRequest("m",1,t,n),this.createRequest("n",1,t,n),this.createRequest("|",2,t,n),this.createRequest("_",2,t,n),this.createRequest("i",2,t,n),this.createRequest("l",2,t,n),this.createRequest("m",2,t,n),this.createRequest("n",2,t,n),Sp(e,t);const _=Math.max(a.width,s.width,l.width,c.width,u.width,d.width,h.width,f.width,p.width,g.width);let w=e.fontFeatureSettings===P.OFF;const x=n[0].width;for(let k=1,O=n.length;w&&k<O;k++){const e=x-n[k].width;if(e<-.001||e>.001){w=!1;break}}let C=!0;w&&v.width!==x&&(C=!1),v.width>m.width&&(C=!1);const S=Kn()>2e3;return new ba({zoomLevel:Gn(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:w,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:r.width,canUseHalfwidthRightwardsArrow:C,spaceWidth:o.width,middotWidth:b.width,wsmiddotWidth:y.width,maxDigitWidth:_},S)}}Dp.INSTANCE=new Dp;class Ep extends qh{constructor(e,t,n=null,i){super(e,t),this.accessibilityService=i,this._elementSizeObserver=this._register(new kp(n,t.dimension,()=>this._onReferenceDomElementSizeChanged())),this._register(Dp.INSTANCE.onDidChange(()=>this._onCSSBasedConfigurationChanged())),this._validatedOptions.get(9)&&this._elementSizeObserver.startObserving(),this._register(Yn(e=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.fontFeatureSettings=t.fontFeatureSettings,e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"}static applyFontInfo(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setFontFeatureSettings(t.fontFeatureSettings),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)}_onReferenceDomElementSizeChanged(){this._recomputeOptions()}_onCSSBasedConfigurationChanged(){this._recomputeOptions()}observeReferenceElement(e){this._elementSizeObserver.observe(e)}dispose(){super.dispose()}_getExtraEditorClassName(){let e="";return ii||ri||(e+="no-user-select "),o["f"]&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:ti||ei,pixelRatio:Zn(),zoomLevel:Gn(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return Dp.INSTANCE.readConfiguration(e)}}var Tp=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class Lp extends Ae{constructor(e,t="",n="",i=!0,r){super(),this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)}}class Ip extends Ae{constructor(){super(...arguments),this._onDidBeforeRun=this._register(new ze),this.onDidBeforeRun=this._onDidBeforeRun.event,this._onDidRun=this._register(new ze),this.onDidRun=this._onDidRun.event}run(e,t){return Tp(this,void 0,void 0,(function*(){if(!e.enabled)return Promise.resolve(null);this._onDidBeforeRun.fire({action:e});try{const n=yield this.runAction(e,t);this._onDidRun.fire({action:e,result:n})}catch(n){this._onDidRun.fire({action:e,error:n})}}))}runAction(e,t){const n=t?e.run(t):e.run();return Promise.resolve(n)}}class Ap extends Lp{constructor(e){super(Ap.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}Ap.ID="vs.actions.separator";class Np extends Lp{constructor(e,t,n,i){super(e,t,i,!0),this._actions=n}get actions(){return Array.isArray(this._actions)?this._actions:this._actions()}}const Pp=new Map;Pp.set("false",!1),Pp.set("true",!0),Pp.set("isMac",o["f"]),Pp.set("isLinux",o["d"]),Pp.set("isWindows",o["i"]),Pp.set("isWeb",o["h"]),Pp.set("isMacNative",o["f"]&&!o["h"]);const Rp=Object.prototype.hasOwnProperty;class Fp{static has(e){return Vp.create(e)}static equals(e,t){return $p.create(e,t)}static regex(e,t){return Gp.create(e,t)}static not(e){return qp.create(e)}static and(...e){return Yp.create(e)}static or(...e){return Xp.create(e)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return Xp.create(n.map(e=>this._deserializeAndExpression(e,t)))}static _deserializeAndExpression(e,t){let n=e.split("&&");return Yp.create(n.map(e=>this._deserializeOne(e,t)))}static _deserializeOne(e,t){if(e=e.trim(),e.indexOf("!=")>=0){let n=e.split("!=");return Up.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return $p.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return Gp.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return Wp.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?qp.create(e.substr(1).trim()):Vp.create(e)}static _deserializeValue(e,t){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if(Object(xo["B"])(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),i=e.lastIndexOf("/");if(n===i||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let r=e.slice(n+1,i),o="i"===e[i+1]?"i":"";try{return new RegExp(r,o)}catch(a){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${a}`);return console.warn(`bad regexp-value '${e}', parse error: ${a}`),null}}}function jp(e,t){return e.cmp(t)}class Bp{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return zp.INSTANCE}}Bp.INSTANCE=new Bp;class zp{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return Bp.INSTANCE}}zp.INSTANCE=new zp;class Vp{constructor(e){this.key=e,this.type=2}static create(e){const t=Pp.get(e);return"boolean"===typeof t?t?zp.INSTANCE:Bp.INSTANCE:new Vp(e)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return qp.create(this.key)}}class $p{constructor(e,t){this.key=e,this.value=t,this.type=4}static create(e,t){if("boolean"===typeof t)return t?Vp.create(e):qp.create(e);const n=Pp.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?zp.INSTANCE:Bp.INSTANCE}return new $p(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return this.key+" == '"+this.value+"'"}keys(){return[this.key]}negate(){return Up.create(this.key,this.value)}}class Wp{constructor(e,t){this.key=e,this.valueKey=t,this.type=10}static create(e,t){return new Wp(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.valueKey<e.valueKey?-1:this.valueKey>e.valueKey?1:0}equals(e){return e.type===this.type&&this.key===e.key&&this.valueKey===e.valueKey}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"===typeof n&&"object"===typeof t&&null!==t&&Rp.call(t,n)}serialize(){return this.key+" in '"+this.valueKey+"'"}keys(){return[this.key,this.valueKey]}negate(){return Hp.create(this)}}class Hp{constructor(e){this._actual=e,this.type=11}static create(e){return new Hp(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Up{constructor(e,t){this.key=e,this.value=t,this.type=5}static create(e,t){if("boolean"===typeof t)return t?qp.create(e):Vp.create(e);const n=Pp.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?Bp.INSTANCE:zp.INSTANCE}return new Up(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0}equals(e){return e.type===this.type&&this.key===e.key&&this.value===e.value}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return this.key+" != '"+this.value+"'"}keys(){return[this.key]}negate(){return $p.create(this.key,this.value)}}class qp{constructor(e){this.key=e,this.type=3}static create(e){const t=Pp.get(e);return"boolean"===typeof t?t?Bp.INSTANCE:zp.INSTANCE:new qp(e)}cmp(e){return e.type!==this.type?this.type-e.type:this.key<e.key?-1:this.key>e.key?1:0}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!e.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return Vp.create(this.key)}}class Gp{constructor(e,t){this.key=e,this.regexp=t,this.type=7}static create(e,t){return new Gp(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return Kp.create(this)}}class Kp{constructor(e){this._actual=e,this.type=8}static create(e){return new Kp(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class Yp{constructor(e){this.expr=e,this.type=6}static create(e){return Yp._normalizeArr(e)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=jp(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e){const t=[];let n=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return Bp.INSTANCE;6!==i.type?t.push(i):t.push(...i.expr)}else n=!0;if(0===t.length&&n)return zp.INSTANCE;if(0!==t.length){if(1===t.length)return t[0];t.sort(jp);while(t.length>1){const e=t[t.length-1];if(9!==e.type)break;t.pop();const n=t.pop(),i=Xp.create(e.expr.map(e=>Yp.create([e,n])));i&&(t.push(i),t.sort(jp))}return new Yp(t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let t of this.expr)e.push(t.negate());return Xp.create(e)}}class Xp{constructor(e){this.expr=e,this.type=9}static create(e){const t=Xp._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new Xp(t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=jp(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e){let t=[],n=!1;if(e){for(let i=0,r=e.length;i<r;i++){const r=e[i];if(r)if(0!==r.type){if(1===r.type)return[zp.INSTANCE];9!==r.type?t.push(r):t=t.concat(r.expr)}else n=!0}if(0===t.length&&n)return[Bp.INSTANCE];t.sort(jp)}return t}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let n of this.expr)e.push(n.negate());const t=e=>9===e.type?e.expr:[e];while(e.length>1){const n=e.shift(),i=e.shift(),r=[];for(const e of t(n))for(const n of t(i))r.push(Fp.and(e,n));e.unshift(Fp.or(...r))}return e[0]}}class Zp extends Vp{constructor(e,t){super(e),this._defaultValue=t}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return Fp.not(this.key)}}const Qp=Wn("contextKeyService"),Jp="setContext";var eg=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},tg=function(e,t){return function(n,i){t(n,i,e)}};function ng(e){return void 0!==e.command}class ig{constructor(e){this.id=ig._idPool++,this._debugName=e}}ig._idPool=0,ig.CommandPalette=new ig("CommandPalette"),ig.EditorContext=new ig("EditorContext"),ig.EditorContextPeek=new ig("EditorContextPeek"),ig.MenubarEditMenu=new ig("MenubarEditMenu"),ig.MenubarGoMenu=new ig("MenubarGoMenu"),ig.MenubarSelectionMenu=new ig("MenubarSelectionMenu");const rg=Wn("menuService"),og=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ze,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===ig.CommandPalette}}addCommand(e){return this.addCommands(xe.single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Le(()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach((t,n)=>e.set(n,t)),e}appendMenuItem(e,t){return this.appendMenuItems(xe.single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new Re;for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new Re,this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),Le(()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===ig.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)ng(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach((n,i)=>{t.has(i)||e.push({command:n})})}};let ag=class extends Lp{constructor(e,t,n){super(e,t),this._commandService=n}run(...e){return this._commandService.executeCommand(this.id,...e)}};ag=eg([tg(2,qo)],ag);class sg extends Np{constructor(e,t,n,i){super("submenuitem."+e.submenu.id,"string"===typeof e.title?e.title:e.title.value,()=>{const r=[],o=t.createMenu(e.submenu,n),a=o.getActions(i);o.dispose();for(let e of a){const[,t]=e;t.length>0&&(r.push(...t),r.push(new Ap))}return r.length&&r.pop(),r},"submenu"),this.item=e}}let lg=class e extends ag{constructor(t,n,i,r,o){if("string"===typeof t.title?super(t.id,t.title,o):super(t.id,t.title.value,o),this._cssClass=void 0,this._enabled=!t.precondition||r.contextMatchesRules(t.precondition),this._tooltip=t.tooltip?"string"===typeof t.tooltip?t.tooltip:t.tooltip.value:void 0,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this._checked=r.contextMatchesRules(e.condition),this._checked&&e.tooltip&&(this._tooltip="string"===typeof e.tooltip?e.tooltip:e.tooltip.value)}this._options=i||{},this.item=t,this.alt=n?new e(n,void 0,this._options,r,o):void 0}dispose(){this.alt&&this.alt.dispose(),super.dispose()}run(...e){let t=[];return this._options.arg&&(t=[...t,this._options.arg]),this._options.shouldForwardArgs&&(t=[...t,...e]),super.run(...t)}};lg=eg([tg(3,Qp),tg(4,qo)],lg);const cg=Wn("telemetryService");class ug{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){let e=this._kbOpts.kbExpr;this.precondition&&(e=e?Fp.and(e,this.precondition):this.precondition),_f.registerCommandAndKeybindingRule({id:this.id,handler:(e,t)=>this.runCommand(e,t),weight:this._kbOpts.weight,args:this._kbOpts.args,when:e,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else Go.registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){og.appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon},when:e.when,order:e.order})}}class dg extends ug{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}runCommand(e,t){for(const n of this._implementations)if(n[1](e,t))return}}class hg extends ug{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class fg extends ug{static bindToContribution(e){return class extends fg{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,n,i){const r=e(n);r&&this._callback(e(n),i)}}}runCommand(e,t){const n=e.get(Un),i=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(i)return i.invokeWithinContext(e=>{const n=e.get(Qp);if(n.contextMatchesRules(Uo(this.precondition)))return this.runEditorCommand(e,i,t)})}}class pg extends fg{constructor(e){super(pg.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function n(t){return t.menuId||(t.menuId=ig.EditorContext),t.title||(t.title=e.label),t.when=Fp.and(e.precondition,t.when),t}return t=Array.isArray(e.menuOpts)?e.menuOpts:e.menuOpts?[e.menuOpts]:[],Array.isArray(e.contextMenuOpts)?t.push(...e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})}reportTelemetry(e,t){e.get(cg).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}function gg(e){return _g.INSTANCE.registerEditorCommand(e),e}function mg(e){const t=new e;return _g.INSTANCE.registerEditorAction(t),t}function vg(e,t){_g.INSTANCE.registerEditorContribution(e,t)}var bg;(function(e){function t(e){return _g.INSTANCE.getEditorCommand(e)}function n(){return _g.INSTANCE.getEditorActions()}function i(){return _g.INSTANCE.getEditorContributions()}function r(e){return _g.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)}function o(){return _g.INSTANCE.getDiffEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i,e.getSomeEditorContributions=r,e.getDiffEditorContributions=o})(bg||(bg={}));const yg={EditorCommonContributions:"editor.contributions"};class _g{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function wg(e){return e.register(),e}_g.INSTANCE=new _g,gh.add(yg.EditorCommonContributions,_g.INSTANCE);const xg=wg(new dg({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:ig.MenubarEditMenu,group:"1_do",title:r({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:ig.CommandPalette,group:"",title:r("undo","Undo"),order:1}]}));wg(new hg(xg,{id:"default:undo",precondition:void 0}));const Cg=wg(new dg({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:ig.MenubarEditMenu,group:"1_do",title:r({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:ig.CommandPalette,group:"",title:r("redo","Redo"),order:1}]}));wg(new hg(Cg,{id:"default:redo",precondition:void 0}));const Sg=wg(new dg({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:ig.MenubarSelectionMenu,group:"1_basic",title:r({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:ig.CommandPalette,group:"",title:r("selectAll","Select All"),order:1}]}));class kg{constructor(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._fontFeatureSettings="",this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){lr(this.domNode,e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Og(e){return new kg(e)}let Mg=0;function Dg(){const e="$memoize"+Mg++;let t=void 0;const n=function(n,i,r){let o=null,a=null;if("function"===typeof r.value?(o="value",a=r.value,0!==a.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof r.get&&(o="get",a=r.get),!a)throw new Error("not supported");const s=`${e}:${i}`;r[o]=function(...e){return t=this,this.hasOwnProperty(s)||Object.defineProperty(this,s,{configurable:!0,enumerable:!1,writable:!0,value:a.apply(this,e)}),this[s]}};return n.clear=()=>{"undefined"!==typeof t&&Object.getOwnPropertyNames(t).forEach(n=>{0===n.indexOf(e)&&delete t[n]})},n}function Eg(e,t,n){return Dg()(e,t,n)}var Tg,Lg=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(Tg||(Tg={}));class Ig extends Ae{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(ur(document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(ur(document,"touchend",e=>this.onTouchEnd(e))),this._register(ur(document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return Ig.isTouchDevice()?(Ig.INSTANCE||(Ig.INSTANCE=new Ig),Ig.INSTANCE.targets.push(e),{dispose:()=>{Ig.INSTANCE.targets=Ig.INSTANCE.targets.filter(t=>t!==e)}}):Ae.None}static ignoreTarget(e){return Ig.isTouchDevice()?(Ig.INSTANCE||(Ig.INSTANCE=new Ig),Ig.INSTANCE.ignoreTargets.push(e),{dispose:()=>{Ig.INSTANCE.ignoreTargets=Ig.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):Ae.None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,i=e.targetTouches.length;n<i;n++){let i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};let r=this.newGestureEvent(Tg.Start,i.target);r.pageX=i.pageX,r.pageY=i.pageY,this.dispatchEvent(r)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),n=Object.keys(this.activeTouches).length;for(let i=0,r=e.changedTouches.length;i<r;i++){let r=e.changedTouches.item(i);if(!this.activeTouches.hasOwnProperty(String(r.identifier))){console.warn("move of an UNKNOWN touch",r);continue}let o=this.activeTouches[r.identifier],a=Date.now()-o.initialTimeStamp;if(a<Ig.HOLD_DELAY&&Math.abs(o.initialPageX-Ii(o.rollingPageX))<30&&Math.abs(o.initialPageY-Ii(o.rollingPageY))<30){let e=this.newGestureEvent(Tg.Tap,o.initialTarget);e.pageX=Ii(o.rollingPageX),e.pageY=Ii(o.rollingPageY),this.dispatchEvent(e)}else if(a>=Ig.HOLD_DELAY&&Math.abs(o.initialPageX-Ii(o.rollingPageX))<30&&Math.abs(o.initialPageY-Ii(o.rollingPageY))<30){let e=this.newGestureEvent(Tg.Contextmenu,o.initialTarget);e.pageX=Ii(o.rollingPageX),e.pageY=Ii(o.rollingPageY),this.dispatchEvent(e)}else if(1===n){let e=Ii(o.rollingPageX),n=Ii(o.rollingPageY),i=Ii(o.rollingTimestamps)-o.rollingTimestamps[0],r=e-o.rollingPageX[0],a=n-o.rollingPageY[0];const s=this.targets.filter(e=>o.initialTarget instanceof Node&&e.contains(o.initialTarget));this.inertia(s,t,Math.abs(r)/i,r>0?1:-1,e,Math.abs(a)/i,a>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(Tg.End,o.initialTarget)),delete this.activeTouches[r.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}dispatchEvent(e){if(e.type===Tg.Tap){const t=(new Date).getTime();let n=0;n=t-this._lastSetTapCountTime>Ig.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=n}else e.type!==Tg.Change&&e.type!==Tg.Contextmenu||(this._lastSetTapCountTime=0);for(let t=0;t<this.ignoreTargets.length;t++)if(e.initialTarget instanceof Node&&this.ignoreTargets[t].contains(e.initialTarget))return;this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,n,i,r,o,a,s){this.handle=vr(()=>{let l=Date.now(),c=l-t,u=0,d=0,h=!0;n+=Ig.SCROLL_FRICTION*c,o+=Ig.SCROLL_FRICTION*c,n>0&&(h=!1,u=i*n*c),o>0&&(h=!1,d=a*o*c);let f=this.newGestureEvent(Tg.Change);f.translationX=u,f.translationY=d,e.forEach(e=>e.dispatchEvent(f)),h||this.inertia(e,l,n,i,r+u,o,a,s+d)})}onTouchMove(e){let t=Date.now();for(let n=0,i=e.changedTouches.length;n<i;n++){let i=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(i.identifier))){console.warn("end of an UNKNOWN touch",i);continue}let r=this.activeTouches[i.identifier],o=this.newGestureEvent(Tg.Change,r.initialTarget);o.translationX=i.pageX-Ii(r.rollingPageX),o.translationY=i.pageY-Ii(r.rollingPageY),o.pageX=i.pageX,o.pageY=i.pageY,this.dispatchEvent(o),r.rollingPageX.length>3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(i.pageX),r.rollingPageY.push(i.pageY),r.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}function Ag(e,t){let n=new wi(t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}Ig.SCROLL_FRICTION=-.005,Ig.HOLD_DELAY=700,Ig.CLEAR_TAP_COUNT_TIME=400,Lg([Eg],Ig,"isTouchDevice",null);class Ng{constructor(){this._hooks=new Ie,this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const t=this._onStopCallback;this._onStopCallback=null,e&&t&&t()}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,n,i,r){if(this.isMonitoring())return;this._mouseMoveEventMerger=n,this._mouseMoveCallback=i,this._onStopCallback=r;const a=_i.getSameOriginWindowChain(),s=o["c"]&&Qi.pointerEvents?"pointermove":"mousemove",l=o["c"]&&Qi.pointerEvents?"pointerup":"mouseup",c=a.map(e=>e.window.document),u=Vr(e);u&&c.unshift(u);for(const o of c)this._hooks.add(Sr(o,s,e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(ur(o,l,e=>this.stopMonitoring(!0)));if(_i.hasDifferentOriginAncestor()){let e=a[a.length-1];this._hooks.add(ur(e.window.document,"mouseout",e=>{let t=new wi(e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(ur(e.window.document,"mouseover",e=>{let t=new wi(e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(ur(e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)}))}}}class Pg{constructor(e,t){this.x=e,this.y=t}toClientCoordinates(){return new Rg(this.x-Lr.scrollX,this.y-Lr.scrollY)}}class Rg{constructor(e,t){this.clientX=e,this.clientY=t}toPageCoordinates(){return new Pg(this.clientX+Lr.scrollX,this.clientY+Lr.scrollY)}}class Fg{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i}}function jg(e){const t=Tr(e);return new Fg(t.left,t.top,t.width,t.height)}class Bg extends wi{constructor(e,t){super(e),this.pos=new Pg(this.posx,this.posy),this.editorPos=jg(t)}}class zg{constructor(e){this._editorViewDomNode=e}_create(e){return new Bg(e,this._editorViewDomNode)}onContextMenu(e,t){return ur(e,"contextmenu",e=>{t(this._create(e))})}onMouseUp(e,t){return ur(e,"mouseup",e=>{t(this._create(e))})}onMouseDown(e,t){return ur(e,"mousedown",e=>{t(this._create(e))})}onMouseLeave(e,t){return pr(e,e=>{t(this._create(e))})}onMouseMoveThrottled(e,t,n,i){const r=(e,t)=>n(e,this._create(t));return Sr(e,"mousemove",t,r,i)}}class Vg{constructor(e){this._editorViewDomNode=e}_create(e){return new Bg(e,this._editorViewDomNode)}onPointerUp(e,t){return ur(e,"pointerup",e=>{t(this._create(e))})}onPointerDown(e,t){return ur(e,"pointerdown",e=>{t(this._create(e))})}onPointerLeave(e,t){return gr(e,e=>{t(this._create(e))})}onPointerMoveThrottled(e,t,n,i){const r=(e,t)=>n(e,this._create(t));return Sr(e,"pointermove",t,r,i)}}class $g extends Ae{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new Ng),this._keydownListener=null}startMonitoring(e,t,n,i,r){this._keydownListener=fr(document,"keydown",e=>{const t=e.toKeybinding();t.isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0)},!0);const o=(e,t)=>n(e,new Bg(t,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(e,t,o,i,()=>{this._keydownListener.dispose(),r()})}}class Wg extends Ae{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,i=e.length;n<i;n++){let i=e[n];switch(i.type){case 0:this.onConfigurationChanged(i)&&(t=!0);break;case 1:this.onCursorStateChanged(i)&&(t=!0);break;case 2:this.onDecorationsChanged(i)&&(t=!0);break;case 3:this.onFlushed(i)&&(t=!0);break;case 4:this.onFocusChanged(i)&&(t=!0);break;case 5:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 6:this.onLineMappingChanged(i)&&(t=!0);break;case 7:this.onLinesChanged(i)&&(t=!0);break;case 8:this.onLinesDeleted(i)&&(t=!0);break;case 9:this.onLinesInserted(i)&&(t=!0);break;case 10:this.onRevealRangeRequest(i)&&(t=!0);break;case 11:this.onScrollChanged(i)&&(t=!0);break;case 13:this.onTokensChanged(i)&&(t=!0);break;case 12:this.onThemeChanged(i)&&(t=!0);break;case 14:this.onTokensColorsChanged(i)&&(t=!0);break;case 15:this.onZonesChanged(i)&&(t=!0);break;default:console.info("View received unknown event: "),console.info(i)}}t&&(this._shouldRender=!0)}}class Hg extends Wg{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class Ug{static write(e,t){e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){let n=[],i=0;while(e&&e!==document.body){if(e===t)break;e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement}const r=new Uint8Array(i);for(let o=0;o<i;o++)r[o]=n[i-o-1];return r}}class qg{constructor(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class Gg extends qg{constructor(e,t,n){super(e,t),this._viewLines=n}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class Kg{constructor(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n}}class Yg{constructor(e,t){this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class Xg{constructor(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)}}class Zg{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}class Qg{constructor(e,t){this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class Jg{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,n,i,r){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch(a){return null}finally{this._detachRange(o,r)}}static _mergeAdjacentRanges(e){if(1===e.length)return[new Yg(e[0].left,e[0].width)];e.sort(Qg.compare);let t=[],n=0,i=e[0].left,r=e[0].width;for(let o=1,a=e.length;o<a;o++){const a=e[o],s=a.left,l=a.width;i+r+.9>=s?r=Math.max(r,s+l-i):(t[n++]=new Yg(i,r),i=s,r=l)}return t[n++]=new Yg(i,r),t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n[i]=new Qg(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,n,i,r,o,a){const s=0,l=e.children.length-1;if(s>l)return null;if(t=Math.min(l,Math.max(s,t)),i=Math.min(l,Math.max(s,i)),t===i&&n===r&&0===n){const n=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(n,o)}t!==i&&i>0&&0===r&&(i--,r=1073741824);let c=e.children[t].firstChild,u=e.children[i].firstChild;if(c&&u||(!c&&0===n&&t>0&&(c=e.children[t-1].firstChild,n=1073741824),!u&&0===r&&i>0&&(u=e.children[i-1].firstChild,r=1073741824)),!c||!u)return null;n=Math.min(c.textContent.length,Math.max(0,n)),r=Math.min(u.textContent.length,Math.max(0,r));const d=this._readClientRects(c,n,u,r,a);return this._createHorizontalRangesFromClientRects(d,o)}}const em=Wn("themeService");function tm(e){return{id:e}}var nm;(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id}e.isThemeIcon=t;const n=/^\$\(([a-z.]+\/)?([a-z-~]+)\)$/i;function i(e){const t=n.exec(e);if(!t)return;let[,i,r]=t;return i||(i="codicon/"),{id:i+r}}e.fromString=i;const r=/^(codicon\/)?([a-z-]+)(~[a-z]+)?$/i;function o(e){const t=r.exec(e.id);if(!t)return;let[,,n,i]=t,o="codicon codicon-"+n;return i&&(o+=" "+i.substr(1)),o}e.asClassName=o})(nm||(nm={}));const im="dark",rm="hc";function om(e){switch(e){case im:return"vs-dark";case rm:return"hc-black";default:return"vs"}}const am={ThemingContribution:"base.contributions.theming"};class sm{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ze}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Le(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let lm=new sm;function cm(e){return lm.onColorThemeChange(e)}gh.add(am.ThemingContribution,lm);class um extends Ae{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}const dm=function(){return!!o["g"]||!(o["d"]||ei||ii)}();let hm=!0;const fm=Jn;class pm{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class gm{constructor(e,t){this.themeType=t;const n=e.options,i=n.get(36);this.renderWhitespace=n.get(80),this.renderControlCharacters=n.get(74),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(24),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(51),this.stopRenderingLineAfter=n.get(95),this.fontLigatures=n.get(37)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class mm{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Og(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return!(!fm&&this._options.themeType!==rm&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,n,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=n.getViewLineRenderingData(e),o=this._options,a=sd.filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let s=null;if(fm||o.themeType===rm||"selection"===this._options.renderWhitespace){const t=n.selections;for(const n of t){if(n.endLineNumber<e||n.startLineNumber>e)continue;const t=n.startLineNumber===e?n.startColumn:r.minColumn,i=n.endLineNumber===e?n.endColumn:r.maxColumn;t<i&&(o.themeType===rm||"selection"!==this._options.renderWhitespace?a.push(new sd(t,i,"inline-selected-text",0)):(s||(s=[]),s.push(new hd(t-1,i-1))))}}const l=new fd(o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,a,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==P.OFF,s);if(this._renderedViewLine&&this._renderedViewLine.input.equals(l))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(mm.CLASS_NAME),i.appendASCIIString('">');const c=md(l,i);i.appendASCIIString("</div>");let u=null;return hm&&dm&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===c.containsForeignElements&&r.content.length<300&&l.lineTokens.getCount()<100&&(u=new vm(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping)),u||(u=_m(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping,c.containsRTL,c.containsForeignElements)),this._renderedViewLine=u,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof vm}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof vm?this._renderedViewLine.monospaceAssumptionsAreValid():hm}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof vm&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));const i=0|this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;-1!==i&&e>i+1&&t>i+1&&(r=!0),-1!==i&&e>i+1&&(e=i+1),-1!==i&&t>i+1&&(t=i+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return o&&o.length>0?new Zg(r,o):null}getColumnOfNodeOffset(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1}}mm.CLASS_NAME="view-line";class vm{constructor(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return hm;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),hm=!1),hm}toSlowRenderedLine(){return _m(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,n){const i=this._getCharPosition(e),r=this._getCharPosition(t);return[new Yg(i,r-i)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;while(t)t=t.previousSibling,r++;const o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1}}class bm{constructor(e,t,n,i,r){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=r,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;const r=this._readPixelOffset(this.domNode,t,n);return-1===r?null:[new Yg(i,r-i)]}return this._readVisibleRangesForRange(this.domNode,e,t,n)}_readVisibleRangesForRange(e,t,n,i){if(t===n){const n=this._readPixelOffset(e,t,i);return-1===n?null:[new Yg(n,0)]}return this._readRawVisibleRangesForRange(e,t,n,i)}_readPixelOffset(e,t,n){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth();const t=this._getReadingTarget(e);return t.firstChild?t.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const i=this._pixelOffsetCache[t];if(-1!==i)return i;const r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r,r}return this._actualReadPixelOffset(e,t,n)}_actualReadPixelOffset(e,t,n){if(0===this._characterMapping.length){const t=Jg.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const i=this._characterMapping.charOffsetToPartData(t-1),r=pd.getPartIndex(i),o=pd.getCharIndex(i),a=Jg.readHorizontalRanges(this._getReadingTarget(e),r,o,r,o,n.clientRectDeltaLeft,n.endNode);if(!a||0===a.length)return-1;const s=a[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getAbsoluteOffsets(),n=Math.round(this.input.spaceWidth*e[t-1]);if(Math.abs(n-s)<=1)return n}return s}_readRawVisibleRangesForRange(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new Yg(0,this.getWidth())];const r=this._characterMapping.charOffsetToPartData(t-1),o=pd.getPartIndex(r),a=pd.getCharIndex(r),s=this._characterMapping.charOffsetToPartData(n-1),l=pd.getPartIndex(s),c=pd.getCharIndex(s);return Jg.readHorizontalRanges(this._getReadingTarget(e),o,a,l,c,i.clientRectDeltaLeft,i.endNode)}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;while(t)t=t.previousSibling,r++;const o=this._characterMapping.partDataToCharOffset(r,i,n);return o+1}}class ym extends bm{_readVisibleRangesForRange(e,t,n,i){const r=super._readVisibleRangesForRange(e,t,n,i);if(!r||0===r.length||t===n||1===t&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const t=this._readPixelOffset(e,n,i);if(-1!==t){const e=r[r.length-1];e.left<t&&(e.width=t-e.left)}}return r}}const _m=function(){return ti?wm:xm}();function wm(e,t,n,i,r){return new ym(e,t,n,i,r)}function xm(e,t,n,i,r){return new bm(e,t,n,i,r)}class Cm{constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${this.newText}")`:0===this.newText.length?`(delete@${this.oldPosition} "${this.oldText}")`:`(replace@${this.oldPosition} "${this.oldText}" with "${this.newText}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const i=t.length;yo["f"](e,i,n),n+=4;for(let r=0;r<i;r++)yo["e"](e,t.charCodeAt(r),n),n+=2;return n}static _readString(e,t){const n=yo["c"](e,t);return t+=4,_c(e,t,n)}writeSize(){return 8+Cm._writeStringSize(this.oldText)+Cm._writeStringSize(this.newText)}write(e,t){return yo["f"](e,this.oldPosition,t),t+=4,yo["f"](e,this.newPosition,t),t+=4,t=Cm._writeString(e,this.oldText,t),t=Cm._writeString(e,this.newText,t),t}static read(e,t,n){const i=yo["c"](e,t);t+=4;const r=yo["c"](e,t);t+=4;const o=Cm._readString(e,t);t+=Cm._writeStringSize(o);const a=Cm._readString(e,t);return t+=Cm._writeStringSize(a),n.push(new Cm(i,o,r,a)),t}}function Sm(e,t){if(null===e||0===e.length)return t;const n=new km(e,t);return n.compress()}class km{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);while(e<this._prevLen||t<this._currLen){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=km._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=km._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,o;if(i.oldEnd===n.newEnd)r=n,o=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,a]=km._splitPrev(n,i.oldLength);r=e,o=i,n=a,i=this._getCurr(++t)}else{const[t,a]=km._splitCurr(i,n.newLength);r=n,o=t,n=this._getPrev(++e),i=a}this._result[this._resultLen++]=new Cm(r.oldPosition,r.oldText,o.newPosition,o.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=o.newLength-o.oldLength}const r=km._merge(this._result),o=km._removeNoOps(r);return o}_acceptCurr(e){this._result[this._resultLen++]=km._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=km._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new Cm(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new Cm(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new Cm(e.oldPosition,e.oldText,e.newPosition,n),new Cm(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new Cm(e.oldPosition,n,e.newPosition,e.newText),new Cm(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;let t=[],n=0,i=e[0];for(let r=1;r<e.length;r++){const o=e[r];i.oldEnd===o.oldPosition?i=new Cm(i.oldPosition,i.oldText+o.oldText,i.newPosition,i.newText+o.newText):(t[n++]=i,i=o)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;let t=[],n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}function Om(e){return e.toString()}class Mm{constructor(e,t,n,i,r,o,a){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=o,this.changes=a}static create(e,t){const n=e.getAlternativeVersionId(),i=Tm(e);return new Mm(n,n,i,i,t,t,[])}append(e,t,n,i,r){t.length>0&&(this.changes=Sm(this.changes,t)),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(yo["f"](e,t?t.length:0,n),n+=4,t)for(const i of t)yo["f"](e,i.selectionStartLineNumber,n),n+=4,yo["f"](e,i.selectionStartColumn,n),n+=4,yo["f"](e,i.positionLineNumber,n),n+=4,yo["f"](e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=yo["c"](e,t);t+=4;for(let r=0;r<i;r++){const i=yo["c"](e,t);t+=4;const r=yo["c"](e,t);t+=4;const o=yo["c"](e,t);t+=4;const a=yo["c"](e,t);t+=4,n.push(new en(i,r,o,a))}return t}serialize(){let e=10+Mm._writeSelectionsSize(this.beforeCursorState)+Mm._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;yo["f"](t,this.beforeVersionId,n),n+=4,yo["f"](t,this.afterVersionId,n),n+=4,yo["g"](t,this.beforeEOL,n),n+=1,yo["g"](t,this.afterEOL,n),n+=1,n=Mm._writeSelections(t,this.beforeCursorState,n),n=Mm._writeSelections(t,this.afterCursorState,n),yo["f"](t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=yo["c"](t,n);n+=4;const r=yo["c"](t,n);n+=4;const o=yo["d"](t,n);n+=1;const a=yo["d"](t,n);n+=1;const s=[];n=Mm._readSelections(t,n,s);const l=[];n=Mm._readSelections(t,n,l);const c=yo["c"](t,n);n+=4;const u=[];for(let d=0;d<c;d++)n=Cm.read(t,n,u);return new Mm(i,r,o,a,s,l,u)}}class Dm{constructor(e,t){this.model=e,this._data=Mm.create(e,t)}get type(){return 0}get resource(){return Vt.isUri(this.model)?this.model:this.model.uri}get label(){return r("edit","Typing")}toString(){const e=this._data instanceof Mm?this._data:Mm.deserialize(this._data);return e.changes.map(e=>e.toString()).join(", ")}matchesResource(e){const t=Vt.isUri(this.model)?this.model:this.model.uri;return t.toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof Mm}append(e,t,n,i,r){this._data instanceof Mm&&this._data.append(e,t,n,i,r)}close(){this._data instanceof Mm&&(this._data=this._data.serialize())}undo(){if(Vt.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Mm&&(this._data=this._data.serialize());const e=Mm.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(Vt.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof Mm&&(this._data=this._data.serialize());const e=Mm.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}}class Em{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=Om(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=Om(e);return this._editStackElementsMap.has(t)}setModel(e){const t=Om(Vt.isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=Om(e.uri);if(this._editStackElementsMap.has(t)){const n=this._editStackElementsMap.get(t);return n.canAppend(e)}return!1}append(e,t,n,i,r){const o=Om(e.uri),a=this._editStackElementsMap.get(o);a.append(e,t,n,i,r)}close(){this._isOpen=!1}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}split(){return this._editStackElementsArr}}function Tm(e){const t=e.getEOL();return"\n"===t?0:1}function Lm(e){return!!e&&(e instanceof Dm||e instanceof Em)}class Im{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);Lm(e)&&e.close()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(Lm(t)&&t.canAppend(this._model))return t;const n=new Dm(this._model,e);return this._undoRedoService.pushElement(n),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],Tm(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n){const i=this._getOrCreateEditStackElement(e),r=this._model.applyEdits(t,!0),o=Im._computeCursorState(n,r),a=r.map((e,t)=>({index:t,textChange:e.textChange}));return a.sort((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition),i.append(this._model,a.map(e=>e.textChange),Tm(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return ge(n),null}}}class Am{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Nm(e,t,n,i,r){let o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o<t&&o<i;o++){let t=e.charCodeAt(o),i=n.charCodeAt(o);if(t!==i)break}let a=0,s=0;for(let h=o;h<t;h++){let t=e.charCodeAt(h);32===t?a++:s++}let l=0,c=0;for(let h=o;h<i;h++){let e=n.charCodeAt(h);32===e?l++:c++}if(a>0&&s>0)return;if(l>0&&c>0)return;let u=Math.abs(s-c),d=Math.abs(a-l);if(0===u)return r.spacesDiff=d,void(d>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));d%u!==0||(r.spacesDiff=d/u)}function Pm(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,o=0,a="",s=0;const l=[2,4,6,8,3,5,7],c=8;let u=[0,0,0,0,0,0,0,0,0],d=new Am;for(let p=1;p<=i;p++){let i=e.getLineLength(p),l=e.getLineContent(p);const h=i<=65536;let f=!1,g=0,m=0,v=0;for(let t=0,n=i;t<n;t++){let n=h?l.charCodeAt(t):e.getLineCharCode(p,t);if(9===n)v++;else{if(32!==n){f=!0,g=t;break}m++}}if(!f)continue;if(v>0?r++:m>1&&o++,Nm(a,s,l,g,d),d.looksLikeAlignment&&(!n||t!==d.spacesDiff))continue;let b=d.spacesDiff;b<=c&&u[b]++,a=l,s=g}let h=n;r!==o&&(h=r<o);let f=t;if(h){let e=h?0:.1*i;l.forEach(t=>{let n=u[t];n>e&&(e=n,f=t)}),4===f&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(f=2)}return{insertSpaces:h,tabSize:f}}function Rm(e){return(1&e.metadata)>>>0}function Fm(e,t){e.metadata=254&e.metadata|t<<0}function jm(e){return(2&e.metadata)>>>1===1}function Bm(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function zm(e){return(4&e.metadata)>>>2===1}function Vm(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function $m(e){return(8&e.metadata)>>>3===1}function Wm(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Hm(e){return(48&e.metadata)>>>4}function Um(e,t){e.metadata=207&e.metadata|t<<4}function qm(e){return(64&e.metadata)>>>6===1}function Gm(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}class Km{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Fm(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Vm(this,!1),Um(this,1),Wm(this,!1),Gm(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Bm(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;let t=this.options.className;Vm(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),Um(this,this.options.stickiness),Wm(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),Gm(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const Ym=new Km(null,0,0);Ym.parent=Ym,Ym.left=Ym,Ym.right=Ym,Fm(Ym,0);class Xm{constructor(){this.root=Ym,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r){return this.root===Ym?[]:ov(this,e,t,n,i,r)}search(e,t,n){return this.root===Ym?[]:rv(this,e,t,n)}collectNodesFromOwner(e){return nv(this,e)}collectNodesPostOrder(){return iv(this)}insert(e){av(this,e),this._normalizeDeltaIfNecessary()}delete(e){lv(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;while(e!==this.root)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)}acceptReplace(e,t,n,i){const r=ev(this,e,e+t);for(let o=0,a=r.length;o<a;o++){const e=r[o];lv(this,e)}this._normalizeDeltaIfNecessary(),tv(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let o=0,a=r.length;o<a;o++){const a=r[o];a.start=a.cachedAbsoluteStart,a.end=a.cachedAbsoluteEnd,Jm(a,e,e+t,n,i),a.maxEnd=a.end,av(this,a)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,Zm(this))}}function Zm(e){let t=e.root,n=0;while(t!==Ym)t.left===Ym||jm(t.left)?t.right===Ym||jm(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,pv(t),Bm(t,!0),Bm(t.left,!1),Bm(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;Bm(e.root,!1)}function Qm(e,t,n,i){return e<n||!(e>n)&&1!==i&&(2===i||t)}function Jm(e,t,n,i,r){const o=Hm(e),a=0===o||2===o,s=1===o||2===o,l=n-t,c=i,u=Math.min(l,c),d=e.start;let h=!1;const f=e.end;let p=!1;t<=d&&f<=n&&qm(e)&&(e.start=t,h=!0,e.end=t,p=!0);{const e=r?1:l>0?2:0;!h&&Qm(d,a,t,e)&&(h=!0),!p&&Qm(f,s,t,e)&&(p=!0)}if(u>0&&!r){const e=l>c?2:0;!h&&Qm(d,a,t+u,e)&&(h=!0),!p&&Qm(f,s,t+u,e)&&(p=!0)}{const i=r?1:0;!h&&Qm(d,a,n,i)&&(e.start=t+c,h=!0),!p&&Qm(f,s,n,i)&&(e.end=t+c,p=!0)}const g=c-l;h||(e.start=Math.max(0,d+g)),p||(e.end=Math.max(0,f+g)),e.start>e.end&&(e.end=e.start)}function ev(e,t,n){let i=e.root,r=0,o=0,a=0,s=0,l=[],c=0;while(i!==Ym)if(jm(i))Bm(i.left,!1),Bm(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!jm(i.left)){if(o=r+i.maxEnd,o<t){Bm(i,!0);continue}if(i.left!==Ym){i=i.left;continue}}a=r+i.start,a>n?Bm(i,!0):(s=r+i.end,s>=t&&(i.setCachedOffsets(a,s,0),l[c++]=i),Bm(i,!0),i.right===Ym||jm(i.right)||(r+=i.delta,i=i.right))}return Bm(e.root,!1),l}function tv(e,t,n,i){let r=e.root,o=0,a=0,s=0;const l=i-(n-t);while(r!==Ym)if(jm(r))Bm(r.left,!1),Bm(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),pv(r),r=r.parent;else{if(!jm(r.left)){if(a=o+r.maxEnd,a<t){Bm(r,!0);continue}if(r.left!==Ym){r=r.left;continue}}s=o+r.start,s>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),Bm(r,!0)):(Bm(r,!0),r.right===Ym||jm(r.right)||(o+=r.delta,r=r.right))}Bm(e.root,!1)}function nv(e,t){let n=e.root,i=[],r=0;while(n!==Ym)jm(n)?(Bm(n.left,!1),Bm(n.right,!1),n=n.parent):n.left===Ym||jm(n.left)?(n.ownerId===t&&(i[r++]=n),Bm(n,!0),n.right===Ym||jm(n.right)||(n=n.right)):n=n.left;return Bm(e.root,!1),i}function iv(e){let t=e.root,n=[],i=0;while(t!==Ym)jm(t)?(Bm(t.left,!1),Bm(t.right,!1),t=t.parent):t.left===Ym||jm(t.left)?t.right===Ym||jm(t.right)?(n[i++]=t,Bm(t,!0)):t=t.right:t=t.left;return Bm(e.root,!1),n}function rv(e,t,n,i){let r=e.root,o=0,a=0,s=0,l=[],c=0;while(r!==Ym){if(jm(r)){Bm(r.left,!1),Bm(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==Ym&&!jm(r.left)){r=r.left;continue}a=o+r.start,s=o+r.end,r.setCachedOffsets(a,s,i);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),n&&zm(r)&&(e=!1),e&&(l[c++]=r),Bm(r,!0),r.right===Ym||jm(r.right)||(o+=r.delta,r=r.right)}return Bm(e.root,!1),l}function ov(e,t,n,i,r,o){let a=e.root,s=0,l=0,c=0,u=0,d=[],h=0;while(a!==Ym)if(jm(a))Bm(a.left,!1),Bm(a.right,!1),a===a.parent.right&&(s-=a.parent.delta),a=a.parent;else{if(!jm(a.left)){if(l=s+a.maxEnd,l<t){Bm(a,!0);continue}if(a.left!==Ym){a=a.left;continue}}if(c=s+a.start,c>n)Bm(a,!0);else{if(u=s+a.end,u>=t){a.setCachedOffsets(c,u,o);let e=!0;i&&a.ownerId&&a.ownerId!==i&&(e=!1),r&&zm(a)&&(e=!1),e&&(d[h++]=a)}Bm(a,!0),a.right===Ym||jm(a.right)||(s+=a.delta,a=a.right)}}return Bm(e.root,!1),d}function av(e,t){if(e.root===Ym)return t.parent=Ym,t.left=Ym,t.right=Ym,Fm(t,0),e.root=t,e.root;sv(e,t),gv(t.parent);let n=t;while(n!==e.root&&1===Rm(n.parent))if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===Rm(t)?(Fm(n.parent,0),Fm(t,0),Fm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,dv(e,n)),Fm(n.parent,0),Fm(n.parent.parent,1),hv(e,n.parent.parent))}else{const t=n.parent.parent.left;1===Rm(t)?(Fm(n.parent,0),Fm(t,0),Fm(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,hv(e,n)),Fm(n.parent,0),Fm(n.parent.parent,1),dv(e,n.parent.parent))}return Fm(e.root,0),t}function sv(e,t){let n=0,i=e.root;const r=t.start,o=t.end;while(1){const e=mv(r,o,i.start+n,i.end+n);if(e<0){if(i.left===Ym){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===Ym){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=Ym,t.right=Ym,Fm(t,1)}function lv(e,t){let n,i;if(t.left===Ym?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Ym?(n=t.left,i=t):(i=cv(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Fm(n,0),t.detach(),uv(),pv(n),void(e.root.parent=Ym);let r,o=1===Rm(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Fm(i,Rm(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Ym&&(i.left.parent=i),i.right!==Ym&&(i.right.parent=i)),t.detach(),o)return gv(n.parent),i!==t&&(gv(i),gv(i.parent)),void uv();gv(n),gv(n.parent),i!==t&&(gv(i),gv(i.parent));while(n!==e.root&&0===Rm(n))n===n.parent.left?(r=n.parent.right,1===Rm(r)&&(Fm(r,0),Fm(n.parent,1),dv(e,n.parent),r=n.parent.right),0===Rm(r.left)&&0===Rm(r.right)?(Fm(r,1),n=n.parent):(0===Rm(r.right)&&(Fm(r.left,0),Fm(r,1),hv(e,r),r=n.parent.right),Fm(r,Rm(n.parent)),Fm(n.parent,0),Fm(r.right,0),dv(e,n.parent),n=e.root)):(r=n.parent.left,1===Rm(r)&&(Fm(r,0),Fm(n.parent,1),hv(e,n.parent),r=n.parent.left),0===Rm(r.left)&&0===Rm(r.right)?(Fm(r,1),n=n.parent):(0===Rm(r.left)&&(Fm(r.right,0),Fm(r,1),dv(e,r),r=n.parent.left),Fm(r,Rm(n.parent)),Fm(n.parent,0),Fm(r.left,0),hv(e,n.parent),n=e.root));Fm(n,0),uv()}function cv(e){while(e.left!==Ym)e=e.left;return e}function uv(){Ym.parent=Ym,Ym.delta=0,Ym.start=0,Ym.end=0}function dv(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Ym&&(n.left.parent=t),n.parent=t.parent,t.parent===Ym?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,pv(t),pv(n)}function hv(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Ym&&(n.right.parent=t),n.parent=t.parent,t.parent===Ym?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,pv(t),pv(n)}function fv(e){let t=e.end;if(e.left!==Ym){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==Ym){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function pv(e){e.maxEnd=fv(e)}function gv(e){while(e!==Ym){const t=fv(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function mv(e,t,n,i){return e===n?t-i:e-n}class vv{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==bv)return yv(this.right);let e=this;while(e.parent!==bv){if(e.parent.left===e)break;e=e.parent}return e.parent===bv?bv:e.parent}prev(){if(this.left!==bv)return _v(this.left);let e=this;while(e.parent!==bv){if(e.parent.right===e)break;e=e.parent}return e.parent===bv?bv:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const bv=new vv(null,0);function yv(e){while(e.left!==bv)e=e.left;return e}function _v(e){while(e.right!==bv)e=e.right;return e}function wv(e){return e===bv?0:e.size_left+e.piece.length+wv(e.right)}function xv(e){return e===bv?0:e.lf_left+e.piece.lineFeedCnt+xv(e.right)}function Cv(){bv.parent=bv}function Sv(e,t){let n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==bv&&(n.left.parent=t),n.parent=t.parent,t.parent===bv?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function kv(e,t){let n=t.left;t.left=n.right,n.right!==bv&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===bv?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Ov(e,t){let n,i;if(t.left===bv?(i=t,n=i.right):t.right===bv?(i=t,n=i.left):(i=yv(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),Cv(),void(e.root.parent=bv);let r,o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Ev(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,Ev(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==bv&&(i.left.parent=i),i.right!==bv&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Ev(e,i)),t.detach(),n.parent.left===n){let t=wv(n),i=xv(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){let r=t-n.parent.size_left,o=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,Dv(e,n.parent,r,o)}}if(Ev(e,n.parent),o)Cv();else{while(n!==e.root&&0===n.color)n===n.parent.left?(r=n.parent.right,1===r.color&&(r.color=0,n.parent.color=1,Sv(e,n.parent),r=n.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.right.color&&(r.left.color=0,r.color=1,kv(e,r),r=n.parent.right),r.color=n.parent.color,n.parent.color=0,r.right.color=0,Sv(e,n.parent),n=e.root)):(r=n.parent.left,1===r.color&&(r.color=0,n.parent.color=1,kv(e,n.parent),r=n.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.left.color&&(r.right.color=0,r.color=1,Sv(e,r),r=n.parent.left),r.color=n.parent.color,n.parent.color=0,r.left.color=0,kv(e,n.parent),n=e.root));n.color=0,Cv()}}function Mv(e,t){Ev(e,t);while(t!==e.root&&1===t.parent.color)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,Sv(e,t)),t.parent.color=0,t.parent.parent.color=1,kv(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,kv(e,t)),t.parent.color=0,t.parent.parent.color=1,Sv(e,t.parent.parent))}e.root.color=0}function Dv(e,t,n,i){while(t!==e.root&&t!==bv)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Ev(e,t){let n=0,i=0;if(t!==e.root){if(0===n){while(t!==e.root&&t===t.parent.right)t=t.parent;if(t===e.root)return;t=t.parent,n=wv(t.left)-t.size_left,i=xv(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}while(t!==e.root&&(0!==n||0!==i))t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}bv.parent=bv,bv.left=bv,bv.right=bv,bv.color=0;class Tv extends xu{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}function Lv(e){let t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}const Iv=Lv(e=>new Tv(e)),Av=999;class Nv{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?Pv(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=xo["o"](this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(i){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new Rv(t,this.wordSeparators?Iv(this.wordSeparators):null,n?this.searchString:null)}}function Pv(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i||119===i)return!0}}return!1}class Rv{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}function Fv(e,t,n){if(!n)return new Sa(e,null);let i=[];for(let r=0,o=t.length;r<o;r++)i[r]=t[r];return new Sa(e,i)}class jv{constructor(e){let t=[],n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;while(n<i){const r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class Bv{static findMatches(e,t,n,i,r){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new Wv(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,o){let a,s,l=0;if(i?(l=i.findLineFeedCountBeforeOffset(r),a=t+r+l):a=t+r,i){let e=i.findLineFeedCountBeforeOffset(r+o.length),t=e-l;s=a+o.length+t}else s=a+o.length;const c=e.getPositionAt(a),u=e.getPositionAt(s);return new Jt(c.lineNumber,c.column,u.lineNumber,u.column)}static _doFindMatchesMultiline(e,t,n,i,r){const o=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),s="\r\n"===e.getEOL()?new jv(a):null,l=[];let c,u=0;n.reset(0);while(c=n.next(a))if(l[u++]=Fv(this._getMultilineMatchRange(e,o,a,s,c.index,c[0]),c,i),u>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const o=[];let a=0;if(t.startLineNumber===t.endLineNumber){const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,o,i,r),o}const s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,o,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&a<r;l++)a=this._findMatchesInLine(n,e.getLineContent(l),l,0,a,o,i,r);if(a<r){const s=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,s,t.endLineNumber,0,a,o,i,r)}return o}static _findMatchesInLine(e,t,n,i,r,o,a,s){const l=e.wordSeparators;if(!a&&e.simpleSearch){const a=e.simpleSearch,c=a.length,u=t.length;let d=-c;while(-1!==(d=t.indexOf(a,d+c)))if((!l||$v(l,t,u,d,c))&&(o[r++]=new Sa(new Jt(n,d+1+i,n,d+1+c+i),null),r>=s))return r;return r}const c=new Wv(e.wordSeparators,e.regex);let u;c.reset(0);do{if(u=c.next(t),u&&(o[r++]=Fv(new Jt(n,u.index+1+i,n,u.index+1+u[0].length+i),u,a),r>=s))return r}while(u);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new Wv(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new Qt(t.lineNumber,1),o=e.getOffsetAt(r),a=e.getLineCount(),s=e.getValueInRange(new Jt(r.lineNumber,r.column,a,e.getLineMaxColumn(a)),1),l="\r\n"===e.getEOL()?new jv(s):null;n.reset(t.column-1);let c=n.next(s);return c?Fv(this._getMultilineMatchRange(e,o,s,l,c.index,c[0]),c,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new Qt(1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o),s=this._findFirstMatchInLine(n,a,o,t.column,i);if(s)return s;for(let l=1;l<=r;l++){const t=(o+l-1)%r,a=e.getLineContent(t+1),s=this._findFirstMatchInLine(n,a,t+1,1,i);if(s)return s}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const o=e.next(t);return o?Fv(new Jt(n,o.index+1,n,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new Wv(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new Jt(1,1,t.lineNumber,t.column),n,i,10*Av);if(r.length>0)return r[r.length-1];const o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new Qt(o,e.getLineMaxColumn(o)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,a=e.getLineContent(o).substring(0,t.column-1),s=this._findLastMatchInLine(n,a,o,i);if(s)return s;for(let l=1;l<=r;l++){const t=(r+o-l-1)%r,a=e.getLineContent(t+1),s=this._findLastMatchInLine(n,a,t+1,i);if(s)return s}return null}static _findLastMatchInLine(e,t,n,i){let r,o=null;e.reset(0);while(r=e.next(t))o=Fv(new Jt(n,r.index+1,n,r.index+1+r[0].length),r,i);return o}}function zv(e,t,n,i,r){if(0===i)return!0;const o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}function Vv(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}function $v(e,t,n,i,r){return zv(e,t,n,i,r)&&Vv(e,t,n,i,r)}class Wv{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const i=n.index,r=n[0].length;if(i===this._prevMatchStartIndex&&r===this._prevMatchLength){if(0===r){xo["y"](e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=r,!this._wordSeparators||$v(this._wordSeparators,e,t,i,r))return n}while(n);return null}}const Hv=65535;function Uv(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class qv{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function Gv(e,t=!0){let n=[0],i=1;for(let r=0,o=e.length;r<o;r++){const t=e.charCodeAt(r);13===t?r+1<o&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?Uv(n):n}function Kv(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,o=0,a=!0;for(let l=0,c=t.length;l<c;l++){const s=t.charCodeAt(l);13===s?l+1<c&&10===t.charCodeAt(l+1)?(o++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===s?(r++,e[n++]=l+1):a&&9!==s&&(s<32||s>126)&&(a=!1)}const s=new qv(Uv(e),i,r,o,a);return e.length=0,s}class Yv{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class Xv{constructor(e,t){this.buffer=e,this.lineStarts=t}}class Zv{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==bv&&e.iterate(e.root,e=>(e!==bv&&this._pieces.push(e.piece),!0))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Qv{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,n=this._cache;for(let i=0;i<n.length;i++){let r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){let e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class Jv{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new Xv("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=bv,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;let i=null;for(let r=0,o=e.length;r<o;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=Gv(e[r].buffer));let t=new Yv(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new Qv(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=Hv,n=t-Math.floor(t/3),i=2*n,r="",o=0,a=[];if(this.iterate(this.root,t=>{let s=this.getNodeContent(t),l=s.length;if(o<=n||o+l<i)return r+=s,o+=l,!0;let c=r.replace(/\r\n|\r|\n/g,e);return a.push(new Xv(c,Gv(c))),r=s,o=l,!0}),o>0){let t=r.replace(/\r\n|\r|\n/g,e);a.push(new Xv(t,Gv(t)))}this.create(a,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new Zv(this,e)}getOffsetAt(e,t){let n=0,i=this.root;while(i!==bv)if(i.left!==bv&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;let r=this.getAccumulatedValue(i,e-i.lf_left-2);return n+(r+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0,i=e;while(t!==bv)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){let r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){let e=this.getOffsetAt(n+1,1),t=i-e;return new Qt(n+1,t+1)}return new Qt(n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===bv){let t=this.getOffsetAt(n+1,1),r=i-e-t;return new Qt(n+1,r+1)}t=t.right}return new Qt(1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o=i.substring(r+e.remainder,r+n.piece.length);n=n.next();while(n!==bv){let e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){o+=e.substring(i,i+t.remainder);break}o+=e.substr(i,n.piece.length),n=n.next()}return o}getLinesContent(){let e=[],t=0,n="",i=!1;return this.iterate(this.root,r=>{if(r===bv)return!0;const o=r.piece;let a=o.length;if(0===a)return!0;const s=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,c=o.start.line,u=o.end.line;let d=l[c]+o.start.column;if(i&&(10===s.charCodeAt(d)&&(d++,a--),e[t++]=n,n="",i=!1,0===a))return!0;if(c===u)return this._EOLNormalized||13!==s.charCodeAt(d+a-1)?n+=s.substr(d,a):(i=!0,n+=s.substr(d,a-1)),!0;n+=this._EOLNormalized?s.substring(d,Math.max(d,l[c+1]-this._EOLLength)):s.substring(d,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<u;i++)n=this._EOLNormalized?s.substring(l[i],l[i+1]-this._EOLLength):s.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==s.charCodeAt(l[u]+o.end.column-1)?n=s.substr(l[u],o.end.column):(i=!0,0===o.end.column?t--:n=s.substr(l[u],o.end.column-1)),!0}),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{let t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start),i=n+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,o,a,s,l,c,u){let d,h,f,p=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),m=this.offsetInBuffer(e.piece.bufferIndex,r),v=this.offsetInBuffer(e.piece.bufferIndex,o),b={line:0,column:0};t._wordSeparators?(h=p.buffer.substring(m,v),f=e=>e+m,t.reset(0)):(h=p.buffer,f=e=>e,t.reset(m));do{if(d=t.next(h),d){if(f(d.index)>=v)return c;this.positionInBuffer(e,f(d.index)-g,b);let t=this.getLineFeedCnt(e.piece.bufferIndex,r,b),o=b.line===r.line?b.column-r.column+i:b.column+1,a=o+d[0].length;if(u[c++]=Fv(new Jt(n+t,o,n+t,a),d,s),f(d.index)+d[0].length>=v)return c;if(c>=l)return c}}while(d);return c}findMatchesLineByLine(e,t,n,i){const r=[];let o=0;const a=new Wv(t.wordSeparators,t.regex);let s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];let l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(s.node,s.remainder),u=this.positionInBuffer(l.node,l.remainder);if(s.node===l.node)return this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,c,u,t,n,i,o,r),r;let d=e.startLineNumber,h=s.node;while(h!==l.node){let l=this.getLineFeedCnt(h.piece.bufferIndex,c,h.piece.end);if(l>=1){let s=this._buffers[h.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),f=s[c.line+l],p=d===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(h,a,d,p,c,this.positionInBuffer(h,f-u),t,n,i,o,r),o>=i)return r;d+=l}let u=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){const s=this.getLineContent(d).substring(u,e.endColumn-1);return o=this._findMatchesInLine(t,a,s,e.endLineNumber,u,o,r,n,i),r}if(o=this._findMatchesInLine(t,a,this.getLineContent(d).substr(u),d,u,o,r,n,i),o>=i)return r;d++,s=this.nodeAt2(d,1),h=s.node,c=this.positionInBuffer(s.node,s.remainder)}if(d===e.endLineNumber){let s=d===e.startLineNumber?e.startColumn-1:0;const l=this.getLineContent(d).substring(s,e.endColumn-1);return o=this._findMatchesInLine(t,a,l,e.endLineNumber,s,o,r,n,i),r}let f=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,a,d,f,c,u,t,n,i,o,r),r}_findMatchesInLine(e,t,n,i,r,o,a,s,l){const c=e.wordSeparators;if(!s&&e.simpleSearch){const t=e.simpleSearch,s=t.length,u=n.length;let d=-s;while(-1!==(d=n.indexOf(t,d+s)))if((!c||$v(c,n,u,d,s))&&(a[o++]=new Sa(new Jt(i,d+1+r,i,d+1+s+r),null),o>=l))return o;return o}let u;t.reset(0);do{if(u=t.next(n),u&&(a[o++]=Fv(new Jt(i,u.index+1+r,i,u.index+1+u[0].length+r),u,s),o>=l))return o}while(u);return o}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==bv){let{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),o=n.piece,a=o.bufferIndex,s=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&r+o.length===e&&t.length<Hv)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){let e=[],r=new Yv(o.bufferIndex,s,o.end,this.getLineFeedCnt(o.bufferIndex,s,o.end),this.offsetInBuffer(a,o.end)-this.offsetInBuffer(a,s));if(this.shouldCheckCRLF()&&this.endWithCR(t)){let e=this.nodeCharCodeAt(n,i);if(10===e){let e={line:r.start.line+1,column:0};r=new Yv(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){let r=this.nodeCharCodeAt(n,i-1);if(13===r){let r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,s)}else this.deleteNodeTail(n,s);let l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{let e=this.createNewPieces(t),n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===bv)return;let n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){let o=this.positionInBuffer(r,n.remainder),a=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){let e=r.next();return Ov(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,a),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,o),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,o,a),void this.computeBufferMetadata())}let a=[],s=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,s),this._searchCache.validate(e),0===r.piece.length&&a.push(r);let l=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&a.push(o);let c=r.next();for(let d=c;d!==bv&&d!==o;d=d.next())a.push(d);let u=0===r.piece.length?r.prev():r;this.deleteNodes(a),this.validateCRLFWithNextNode(u),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let i=t.piece,r={line:i.start.line+1,column:0},o=new Yv(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=o,e+="\n",Dv(this,t,-1,-1),0===t.piece.length&&n.push(t)}let i=this.createNewPieces(e),r=this.rbInsertLeft(t,i[i.length-1]);for(let o=i.length-2;o>=0;o--)r=this.rbInsertLeft(r,i[o]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i;for(let o=1;o<n.length;o++)r=this.rbInsertRight(r,n[o]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){let i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,a=o[i.start.line]+i.start.column,s=a+t,l=i.start.line,c=i.end.line,u=0,d=0,h=0;while(l<=c){if(u=l+(c-l)/2|0,h=o[u],u===c)break;if(d=o[u+1],s<h)c=u-1;else{if(!(s>=d))break;l=u+1}}return n?(n.line=u,n.column=s-h,null):{line:u,column:s-h}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;let i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;let r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;let a=o-1,s=this._buffers[e].buffer;return 13===s.charCodeAt(a)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){let n=this._buffers[e].lineStarts;return n[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)Ov(this,e[t])}createNewPieces(e){if(e.length>Hv){let t=[];while(e.length>Hv){const n=e.charCodeAt(Hv-1);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,Hv-1),e=e.substring(Hv-1)):(i=e.substring(0,Hv),e=e.substring(Hv));let r=Gv(i);t.push(new Yv(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new Xv(i,r))}let n=Gv(e);return t.push(new Yv(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new Xv(e,n)),t}let t=this._buffers[0].buffer.length;const n=Gv(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length;let o=this._buffers[0].lineStarts.length-1,a=r-this._buffers[0].lineStarts[o],s={line:o,column:a},l=new Yv(0,i,s,this.getLineFeedCnt(0,i,s),r-t);return this._lastChangeBufferPos=s,[l]}getLineRawContent(e,t=0){let n=this.root,i="",r=this._searchCache.get2(e);if(r){n=r.node;let o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){let i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return a.substring(s+o,s+i-t)}i=a.substring(s+o,s+n.piece.length)}else{let r=0;const o=e;while(n!==bv)if(n.left!==bv&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let i=this.getAccumulatedValue(n,e-n.lf_left-2),a=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:o-(e-1-n.lf_left)}),s.substring(l+i,l+a-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(o+t,o+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}n=n.next();while(n!==bv){let e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){let r=this.getAccumulatedValue(n,0),o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(o,o+r-t),i}{let t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;while(e!==bv)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.validate(this._length)}getIndexOf(e,t){let n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;let n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,a=this.offsetInBuffer(n.bufferIndex,o),s=this.getLineFeedCnt(n.bufferIndex,n.start,o),l=s-i,c=a-r,u=n.length+c;e.piece=new Yv(n.bufferIndex,n.start,o,s,u),Dv(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,a=this.getLineFeedCnt(n.bufferIndex,o,n.end),s=this.offsetInBuffer(n.bufferIndex,o),l=a-i,c=r-s,u=n.length+c;e.piece=new Yv(n.bufferIndex,o,n.end,a,u),Dv(this,e,c,l)}shrinkNode(e,t,n){const i=e.piece,r=i.start,o=i.end,a=i.length,s=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),u=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new Yv(i.bufferIndex,i.start,l,c,u),Dv(this,e,u-a,c-s);let d=new Yv(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=Gv(t,!1);for(let h=0;h<r.length;h++)r[h]+=i;if(n){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const o=this._buffers[0].lineStarts.length-1,a=this._buffers[0].buffer.length-this._buffers[0].lineStarts[o],s={line:o,column:a},l=e.piece.length+t.length,c=e.piece.lineFeedCnt,u=this.getLineFeedCnt(0,e.piece.start,s),d=u-c;e.piece=new Yv(e.piece.bufferIndex,e.piece.start,s,u,l),this._lastChangeBufferPos=s,Dv(this,e,t.length,d)}nodeAt(e){let t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;while(t!==bv)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;let n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;while(n!==bv)if(n.left!==bv&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}n=n.next();while(n!==bv){if(n.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){let e=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:e}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;let n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;while(e!==this.root)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===bv||0===e.piece.lineFeedCnt)return!1;let t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;let o=n[i+1];return!(o>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(e){return"string"===typeof e?13===e.charCodeAt(e.length-1):e!==bv&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new Yv(e.piece.bufferIndex,e.piece.start,n,a,o),Dv(this,e,-1,-1),0===e.piece.length&&i.push(e);let s={line:t.piece.start.line+1,column:0};const l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Yv(t.piece.bufferIndex,s,t.piece.end,c,l),Dv(this,t,-1,-1),0===t.piece.length&&i.push(t);let u=this.createNewPieces("\r\n");this.rbInsertRight(e,u[0]);for(let d=0;d<i.length;d++)Ov(this,i[d])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)Ov(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new Yv(e.bufferIndex,t,e.end,r,i),Dv(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===bv)return t(bv);let n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===bv)return"";let t,n=this._buffers[e.piece.bufferIndex],i=e.piece,r=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(r,o),t}getPieceContent(e){let t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end),r=t.buffer.substring(n,i);return r}rbInsertRight(e,t){let n=new vv(t,1);n.left=bv,n.right=bv,n.parent=bv,n.size_left=0,n.lf_left=0;let i=this.root;if(i===bv)this.root=n,n.color=0;else if(e.right===bv)e.right=n,n.parent=e;else{let t=yv(e.right);t.left=n,n.parent=t}return Mv(this,n),n}rbInsertLeft(e,t){let n=new vv(t,1);if(n.left=bv,n.right=bv,n.parent=bv,n.size_left=0,n.lf_left=0,this.root===bv)this.root=n,n.color=0;else if(e.left===bv)e.left=n,n.parent=e;else{let t=_v(e.left);t.right=n,n.parent=t}return Mv(this,n),n}}function eb(e){let t=0,n=0,i=0,r=0;for(let o=0,a=e.length;o<a;o++){const s=e.charCodeAt(o);13===s?(0===t&&(n=o),t++,o+1<a&&10===e.charCodeAt(o+1)?(r|=2,o++):r|=3,i=o+1):10===s&&(r|=1,0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}function tb(e){return(16384|e<<0|2<<23)>>>0}const nb=new Uint32Array(0).buffer;class ib{constructor(){this.tokens=[]}add(e,t){if(this.tokens.length>0){const n=this.tokens[this.tokens.length-1],i=n.startLineNumber+n.tokens.length-1;if(i+1===e)return void n.tokens.push(t)}this.tokens.push(new sb(e,[t]))}}class rb{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new Jt(0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;while(t<n){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;while(r>t&&this._getDeltaLine(r-1)===e)r--;let o=i;while(o<n&&this._getDeltaLine(o+1)===e)o++;return new ob(this._tokens.subarray(4*r,4*o+4))}n=i-1}}return this._getDeltaLine(t)===e?new ob(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,o=this._tokenCount;let a=0,s=!1,l=0;for(let c=0;c<o;c++){const o=4*c,u=r[o],d=r[o+1],h=r[o+2],f=r[o+3];if((u>e||u===e&&h>=t)&&(u<n||u===n&&d<=i))s=!0;else{if(0===a&&(l=u),s){const e=4*a;r[e]=u-l,r[e+1]=d,r[e+2]=h,r[e+3]=f}a++}}return this._tokenCount=a,l}split(e,t,n,i){const r=this._tokens,o=this._tokenCount;let a=[],s=[],l=a,c=0,u=0;for(let d=0;d<o;d++){const o=4*d,a=r[o],h=r[o+1],f=r[o+2],p=r[o+3];if(a>e||a===e&&f>=t){if(a<n||a===n&&h<=i)continue;l!==s&&(l=s,c=0,u=a)}l[c++]=a-u,l[c++]=h,l[c++]=f,l[c++]=p}return[new rb(new Uint32Array(a)),new rb(new Uint32Array(s)),u]}acceptDeleteRange(e,t,n,i,r){const o=this._tokens,a=this._tokenCount,s=i-t;let l=0,c=!1;for(let u=0;u<a;u++){const d=4*u;let h=o[d],f=o[d+1],p=o[d+2];const g=o[d+3];if(h<t||h===t&&p<=n){l++;continue}if(h===t&&f<n)h===i&&p>r?p-=r-n:p=n;else if(h===t&&f===n){if(!(h===i&&p>r)){c=!0;continue}p-=r-n}else if(h<i||h===i&&f<r){if(!(h===i&&p>r)){c=!0;continue}h===t?(f=n,p=f+(p-r)):(f=0,p=f+(p-r))}else if(h>i){if(0===s&&!c){l=a;break}h-=s}else{if(!(h===i&&f>=r))throw new Error("Not possible!");e&&0===h&&(f+=e,p+=e),h-=s,f-=r-n,p-=r-n}const m=4*l;o[m]=h,o[m+1]=f,o[m+2]=p,o[m+3]=g,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,o){const a=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),s=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const o=4*c;let l=s[o],u=s[o+1],d=s[o+2];if(!(l<e||l===e&&d<t)){if(l===e&&d===t){if(!a)continue;d+=1}else if(l===e&&u<t&&t<d)0===n?d+=i:d=t;else{if(l===e&&u===t&&a)continue;if(l===e)if(l+=n,0===n)u+=i,d+=i;else{const e=d-u;u=r+(u-t),d=u+e}else l+=n}s[o]=l,s[o+1]=u,s[o+2]=d}}}}class ob{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}class ab{constructor(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(e){return this.startLineNumber<=e&&e<=this.endLineNumber?this.tokens.getLineTokens(e-this.startLineNumber):null}getRange(){const e=this.tokens.getRange();return e?new Jt(this.startLineNumber+e.startLineNumber,e.startColumn,this.startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber,[i,r,o]=this.tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new ab(this.startLineNumber,i),new ab(this.startLineNumber+o,r)]}applyEdit(e,t){const[n,i,r]=eb(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new Qt(e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){const e=n-t;return void(this.startLineNumber-=e)}const i=this.tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){const i=-t;this.startLineNumber-=i,this.tokens.acceptDeleteRange(e.startColumn-1,0,0,n,e.endColumn-1)}else this.tokens.acceptDeleteRange(0,t,e.startColumn-1,n,e.endColumn-1)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const o=e.lineNumber-this.startLineNumber;if(o<0)return void(this.startLineNumber+=t);const a=this.tokens.getMaxDeltaLine();o>=a+1||this.tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}class sb{constructor(e,t){this.startLineNumber=e,this.tokens=t}}function lb(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class cb{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let i=null;for(let r=0,o=this._pieces.length;r<o;r++){const e=this._pieces[r];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(r,1),r--,o--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){i=i||{index:r};continue}const[t,a]=e.split(n);t.isEmpty()?i=i||{index:r}:a.isEmpty()||(this._pieces.splice(r,1,t,a),r++,o++,i=i||{index:r})}return i=i||{index:this._pieces.length},t.length>0&&(this._pieces=Ki(this._pieces,i.index,t)),n}isComplete(){return this._isComplete}addSemanticTokens(e,t){const n=this._pieces;if(0===n.length)return t;const i=cb._findFirstPieceWithLine(n,e),r=n[i].getLineTokens(e);if(!r)return t;const o=t.getCount(),a=r.getCount();let s=0,l=[],c=0,u=0;const d=(e,t)=>{e!==u&&(u=e,l[c++]=e,l[c++]=t)};for(let h=0;h<a;h++){const e=r.getStartCharacter(h),n=r.getEndCharacter(h),i=r.getMetadata(h),a=((1&i?2048:0)|(2&i?4096:0)|(4&i?8192:0)|(8&i?8372224:0)|(16&i?4286578688:0))>>>0,l=~a>>>0;while(s<o&&t.getEndOffset(s)<=e)d(t.getEndOffset(s),t.getMetadata(s)),s++;s<o&&t.getStartOffset(s)<e&&d(e,t.getMetadata(s));while(s<o&&t.getEndOffset(s)<n)d(t.getEndOffset(s),t.getMetadata(s)&l|i&a),s++;if(s<o)d(n,t.getMetadata(s)&l|i&a),t.getEndOffset(s)===n&&s++;else{const e=Math.min(Math.max(0,s-1),o-1);d(n,t.getMetadata(e)&l|i&a)}}while(s<o)d(t.getEndOffset(s),t.getMetadata(s)),s++;return new od(new Uint32Array(l),t.getLineContent())}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;while(n<i){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){while(r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const o of this._pieces)o.acceptEdit(e,t,n,i,r)}}class ub{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==nb)return new od(lb(i),n);let r=new Uint32Array(2);return r[0]=n.length,r[1]=tb(e),new od(r,n)}static _massageTokens(e,t,n){const i=n?lb(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=vl.getLanguageId(i[1])!==e),!t)return nb}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=tb(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){while(e>=this._len)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=Ki(this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const o=ub._massageTokens(e,n,i);this._ensureLine(t);const a=this._lineTokens[t];return this._lineTokens[t]=o,!!r&&!ub._equals(a,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=lb(e),i=lb(t);if(n.length!==i.length)return!1;for(let r=0,o=n.length;r<o;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new Qt(e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=ub._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=ub._deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=ub._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=ub._append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=ub._deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=ub._insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=ub._insert(this._lineTokens[i],e.column-1,n))}static _deleteBeginning(e,t){return null===e||e===nb?e:ub._delete(e,0,t)}static _deleteEnding(e,t){if(null===e||e===nb)return e;const n=lb(e),i=n[n.length-2];return ub._delete(e,t,i)}static _delete(e,t,n){if(null===e||e===nb||t===n)return e;const i=lb(e),r=i.length>>>1;if(0===t&&i[i.length-2]===n)return nb;const o=od.findIndexInTokensArray(i,t),a=o>0?i[o-1<<1]:0,s=i[o<<1];if(n<s){const a=n-t;for(let e=o;e<r;e++)i[e<<1]-=a;return e}let l,c;a!==t?(i[o<<1]=t,l=o+1<<1,c=t):(l=o<<1,c=a);const u=n-t;for(let h=o+1;h<r;h++){const e=i[h<<1]-u;e>c&&(i[l++]=e,i[l++]=i[1+(h<<1)],c=e)}if(l===i.length)return e;let d=new Uint32Array(l);return d.set(i.subarray(0,l),0),d.buffer}static _append(e,t){if(t===nb)return e;if(e===nb)return t;if(null===e)return e;if(null===t)return null;const n=lb(e),i=lb(t),r=i.length>>>1;let o=new Uint32Array(n.length+i.length);o.set(n,0);let a=n.length;const s=n[n.length-2];for(let l=0;l<r;l++)o[a++]=i[l<<1]+s,o[a++]=i[1+(l<<1)];return o.buffer}static _insert(e,t,n){if(null===e||e===nb)return e;const i=lb(e),r=i.length>>>1;let o=od.findIndexInTokensArray(i,t);if(o>0){const e=i[o-1<<1];e===t&&o--}for(let a=o;a<r;a++)i[a<<1]+=n;return e}}class db{constructor(e,t,n,i,r,o,a){this._onDidChangeContent=new ze,this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._pieceTree=new Jv(e,n,a)}dispose(){this._onDidChangeContent.dispose()}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){let n=e+t;const i=this.getPositionAt(e),r=this.getPositionAt(n);return new Jt(i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;let n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);return i-n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const o=this.getLineContent(t),a=t===i?e.startColumn-1:0,s=t===r?e.endColumn-1:o.length;for(let e=a;e<s;e++)xo["D"](o.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=xo["u"](this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=xo["H"](this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,a=!0,s=[];for(let p=0;p<e.length;p++){let t=e[p];a&&t._isTracked&&(a=!1);let n=t.range;if(t.text){let e=!0;o||(e=!xo["z"](t.text),o=e),!i&&e&&(i=xo["l"](t.text)),!r&&e&&(r=xo["m"](t.text))}let l="",c=0,u=0,d=0;if(t.text){let e;[c,u,d,e]=eb(t.text);const n=this.getEOL(),i="\r\n"===n?2:1;l=0===e||e===i?t.text:t.text.replace(/\r\n|\r|\n/g,n)}s[p]={sortIndex:p,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:l,eolCount:c,firstLineLength:u,lastLineLength:d,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}s.sort(db._sortOpsAscending);let l=!1;for(let p=0,g=s.length-1;p<g;p++){let e=s[p].range.getEndPosition(),t=s[p+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");l=!0}}a&&(s=this._reduceOperations(s));let c=n||t?db._getInverseEditRanges(s):[],u=[];if(t)for(let p=0;p<s.length;p++){let e=s[p],t=c[p];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==xo["u"](i))||u.push({lineNumber:n,oldContent:i})}}let d=null;if(n){let e=0;d=[];for(let t=0;t<s.length;t++){const n=s[t],i=c[t],r=this.getValueInRange(n.range),o=n.rangeOffset+e;e+=n.text.length-r.length,d[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new Cm(n.rangeOffset,r,o,n.text)}}l||d.sort((e,t)=>e.sortIndex-t.sortIndex)}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=o;const h=this._doApplyEdits(s);let f=null;if(t&&u.length>0){u.sort((e,t)=>t.lineNumber-e.lineNumber),f=[];for(let e=0,t=u.length;e<t;e++){let t=u[e].lineNumber;if(e>0&&u[e-1].lineNumber===t)continue;let n=u[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===xo["u"](i)&&f.push(t)}}return this._onDidChangeContent.fire(),new Oa(d,h,f)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new Jt(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let o=n.startLineNumber,a=n.startColumn;const s=[];for(let h=0,f=e.length;h<f;h++){const n=e[h],i=n.range;t=t||n.forceMoveMarkers,s.push(this.getValueInRange(new Jt(o,a,i.startLineNumber,i.startColumn))),n.text.length>0&&s.push(n.text),o=i.endLineNumber,a=i.endColumn}const l=s.join(""),[c,u,d]=eb(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:u,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(db._sortOpsDescending);let t=[];for(let n=0;n<e.length;n++){let i=e[n];const r=i.range.startLineNumber,o=i.range.startColumn,a=i.range.endLineNumber,s=i.range.endColumn;if(r===a&&o===s&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new Jt(r,o,a,s);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){let t=[],n=0,i=0,r=null;for(let o=0,a=e.length;o<a;o++){let a,s,l,c=e[o];if(r?r.range.endLineNumber===c.range.startLineNumber?(a=n,s=i+(c.range.startColumn-r.range.endColumn)):(a=n+(c.range.startLineNumber-r.range.endLineNumber),s=c.range.startColumn):(a=c.range.startLineNumber,s=c.range.startColumn),c.text.length>0){const e=c.eolCount+1;l=1===e?new Jt(a,s,a,s+c.firstLineLength):new Jt(a,s,a+e-1,c.lastLineLength+1)}else l=new Jt(a,s,a,s);n=l.endLineNumber,i=l.endColumn,t.push(l),r=c}return t}static _sortOpsAscending(e,t){let n=Jt.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){let n=Jt.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class hb{constructor(e,t,n,i,r,o,a,s,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=o,this._containsUnusualLineTerminators=a,this._isBasicASCII=s,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let i=0,r=n.length;i<r;i++){let e=n[i].buffer.replace(/\r\n|\r|\n/g,t),r=Gv(e);n[i]=new Xv(e,r)}return new db(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL)}}class fb{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&xo["R"](e)&&(this.BOM=xo["b"],e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=Kv(this._tmpLineStarts,e);this.chunks.push(new Xv(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=xo["l"](e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=xo["m"](e))}finish(e=!0){return this._finish(),new hb(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=Gv(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}class pb{constructor(){this.changeType=1}}class gb{constructor(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}class mb{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class vb{constructor(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class bb{constructor(){this.changeType=5}}class yb{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){const n=this.changes[t];if(n.changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new yb(n,i,r,o)}}class _b{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=yb.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=_b._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new _b(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,o=e.isUndoing||t.isUndoing,a=e.isRedoing||t.isRedoing,s=e.isFlush||t.isFlush;return{changes:n,eol:i,versionId:r,isUndoing:o,isRedoing:a,isFlush:s}}}class wb{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)}_isValid(e){return e<this._len&&this._valid[e]}getBeginState(e){return e<this._len?this._beginState[e]:null}_ensureLine(e){while(e>=this._len)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[],i=[];for(let r=0;r<t;r++)n[r]=null,i[r]=!1;this._beginState=Ki(this._beginState,e,n),this._valid=Ki(this._valid,e,i),this._len+=t}_setValid(e,t){this._ensureLine(e),this._valid[e]=t}_setBeginState(e,t){this._ensureLine(e),this._beginState[e]=t}setEndState(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t===e-1)return;const i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);let r=t+1;while(r<e){if(!this._isValid(r))break;r++}this._invalidLineStartIndex=r}setFakeTokens(e){this._setValid(e,!1)}applyEdits(e,t){const n=e.endLineNumber-e.startLineNumber,i=t,r=Math.min(n,i);for(let o=r;o>=0;o--)this._invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new Qt(e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){const t=e.startLineNumber-1;t>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){const n=e.lineNumber-1;n>=this._len||this._insertLines(e.lineNumber,t)}}class xb extends Ae{constructor(e){super(),this._isDisposed=!1,this._textModel=e,this._tokenizationStateStore=new wb,this._tokenizationSupport=null,this._register(Ul.onDidChange(e=>{const t=this._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeRawContentFast(e=>{e.containsEvent(1)&&this._resetTokenizationState()})),this._register(this._textModel.onDidChangeContentFast(e=>{for(let t=0,n=e.changes.length;t<n;t++){const n=e.changes[t],[i]=eb(n.text);this._tokenizationStateStore.applyEdits(n.range,i)}this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=Cb(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&o["j"](()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(e=this._textModel.getLineCount()){const t=1,n=new ib,i=Wu.create(!1);while(this._hasLinesToTokenize()){if(i.elapsed()>t)break;const r=this._tokenizeOneInvalidLine(n);if(r>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(n.tokens)}tokenizeViewport(e,t){const n=new ib;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new ib;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationSupport)return;const n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),r=t-1;for(let o=this._tokenizationStateStore.invalidLineStartIndex;o<=r;o++){const t=this._textModel.getLineContent(o+1),r=this._tokenizationStateStore.getBeginState(o),a=Sb(n,this._tokenizationSupport,t,r);e.add(o+1,a.tokens),this._tokenizationStateStore.setEndState(i,o,a.endState),o=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,n){if(!this._tokenizationSupport)return;if(n<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex)return void this._updateTokensUntilLine(e,n);let i=this._textModel.getLineFirstNonWhitespaceColumn(t),r=[],o=null;for(let l=t-1;i>0&&l>=1;l--){let e=this._textModel.getLineFirstNonWhitespaceColumn(l);if(0!==e&&e<i){if(o=this._tokenizationStateStore.getBeginState(l-1),o)break;r.push(this._textModel.getLineContent(l)),i=e}}o||(o=this._tokenizationSupport.getInitialState());const a=this._textModel.getLanguageIdentifier();let s=o;for(let l=r.length-1;l>=0;l--){let e=Sb(a,this._tokenizationSupport,r[l],s);s=e.endState}for(let l=t;l<=n;l++){let t=this._textModel.getLineContent(l),n=Sb(a,this._tokenizationSupport,t,s);e.add(l,n.tokens),this._tokenizationStateStore.setFakeTokens(l-1),s=n.endState}}}function Cb(e){const t=e.getLanguageIdentifier();let n=e.isTooLargeForTokenization()?null:Ul.get(t.language),i=null;if(n)try{i=n.getInitialState()}catch(r){ge(r),n=null}return[n,i]}function Sb(e,t,n,i){let r=null;if(t)try{r=t.tokenize2(n,i.clone(),0)}catch(o){ge(o)}return r||(r=Zl(e.id,n,i,0)),od.convertToEndOffset(r.tokens,n.length),r}function kb(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Ob{constructor(e,t,n,i=1){this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=kb(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class Mb{constructor(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=kb(Math.max(Math.min(1,t),0),3),this.l=kb(Math.max(Math.min(1,n),0),3),this.a=kb(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,o=Math.max(t,n,i),a=Math.min(t,n,i);let s=0,l=0;const c=(a+o)/2,u=o-a;if(u>0){switch(l=Math.min(c<=.5?u/(2*c):u/(2-2*c),1),o){case t:s=(n-i)/u+(n<i?6:0);break;case n:s=(i-t)/u+2;break;case i:s=(t-n)/u+4;break}s*=60,s=Math.round(s)}return new Mb(s,l,c,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:r}=e;let o,a,s;if(0===n)o=a=s=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;o=Mb._hue2rgb(r,e,t+1/3),a=Mb._hue2rgb(r,e,t),s=Mb._hue2rgb(r,e,t-1/3)}return new Ob(Math.round(255*o),Math.round(255*a),Math.round(255*s),r)}}class Db{constructor(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=kb(Math.max(Math.min(1,t),0),3),this.v=kb(Math.max(Math.min(1,n),0),3),this.a=kb(Math.max(Math.min(1,i),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=Math.min(t,n,i),a=r-o,s=0===r?0:a/r;let l;return l=0===a?0:r===t?((n-i)/a%6+6)%6:r===n?(i-t)/a+2:(t-n)/a+4,new Db(Math.round(60*l),s,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:r}=e,o=i*n,a=o*(1-Math.abs(t/60%2-1)),s=i-o;let[l,c,u]=[0,0,0];return t<60?(l=o,c=a):t<120?(l=a,c=o):t<180?(c=o,u=a):t<240?(c=a,u=o):t<300?(l=a,u=o):t<360&&(l=o,u=a),l=Math.round(255*(l+s)),c=Math.round(255*(c+s)),u=Math.round(255*(u+s)),new Ob(l,c,u,r)}}class Eb{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof Ob)this.rgba=e;else if(e instanceof Mb)this._hsla=e,this.rgba=Mb.toRGBA(e);else{if(!(e instanceof Db))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Db.toRGBA(e)}}static fromHex(e){return Eb.Format.CSS.parseHex(e)||Eb.red}get hsla(){return this._hsla?this._hsla:Mb.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Db.fromRGBA(this.rgba)}equals(e){return!!e&&Ob.equals(this.rgba,e.rgba)&&Mb.equals(this.hsla,e.hsla)&&Db.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=Eb._relativeLuminanceForComponent(this.rgba.r),t=Eb._relativeLuminanceForComponent(this.rgba.g),n=Eb._relativeLuminanceForComponent(this.rgba.b),i=.2126*e+.7152*t+.0722*n;return kb(i,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){const e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n}isDarkerThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n}lighten(e){return new Eb(new Mb(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new Eb(new Mb(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:r}=this.rgba;return new Eb(new Ob(t,n,i,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new Eb(new Ob(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+Eb.Format.CSS.format(this)}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(i-r)/i,e.darken(n)}}function Tb(){return new fb}function Lb(e){const t=Tb();return t.acceptChunk(e),t.finish()}function Ib(e,t){const n="string"===typeof e?Lb(e):e;return n.create(t)}Eb.white=new Eb(new Ob(255,255,255,1)),Eb.black=new Eb(new Ob(0,0,0,1)),Eb.red=new Eb(new Ob(255,0,0,1)),Eb.blue=new Eb(new Ob(0,0,255,1)),Eb.cyan=new Eb(new Ob(0,255,255,1)),Eb.lightgrey=new Eb(new Ob(211,211,211,1)),Eb.transparent=new Eb(new Ob(0,0,0,0)),function(e){let t;(function(t){let n;(function(t){function n(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}function i(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}function r(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)}function o(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`}function a(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function s(e){return`#${a(e.rgba.r)}${a(e.rgba.g)}${a(e.rgba.b)}`}function l(t,n=!1){return n&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${a(t.rgba.r)}${a(t.rgba.g)}${a(t.rgba.b)}${a(Math.round(255*t.rgba.a))}`}function c(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}function u(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),i=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),r=16*d(t.charCodeAt(5))+d(t.charCodeAt(6));return new e(new Ob(n,i,r,1))}if(9===n){const n=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),i=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),r=16*d(t.charCodeAt(5))+d(t.charCodeAt(6)),o=16*d(t.charCodeAt(7))+d(t.charCodeAt(8));return new e(new Ob(n,i,r,o/255))}if(4===n){const n=d(t.charCodeAt(1)),i=d(t.charCodeAt(2)),r=d(t.charCodeAt(3));return new e(new Ob(16*n+n,16*i+i,16*r+r))}if(5===n){const n=d(t.charCodeAt(1)),i=d(t.charCodeAt(2)),r=d(t.charCodeAt(3)),o=d(t.charCodeAt(4));return new e(new Ob(16*n+n,16*i+i,16*r+r,(16*o+o)/255))}return null}function d(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}t.formatRGB=n,t.formatRGBA=i,t.formatHSL=r,t.formatHSLA=o,t.formatHex=s,t.formatHexA=l,t.format=c,t.parseHex=u})(n=t.CSS||(t.CSS={}))})(t=e.Format||(e.Format={}))}(Eb||(Eb={}));let Ab=0;const Nb=999,Pb=1e4;class Rb{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,n=0;do{let i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}while(1)}}const Fb=()=>{throw new Error("Invalid change accessor")};class jb{constructor(){this._searchCanceledBrand=void 0}}function Bb(e){return e instanceof jb?null:e}jb.INSTANCE=new jb;class zb extends Ae{constructor(e,t,n,i=null,r){super(),this._onWillDispose=this._register(new ze),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new Yb),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new ze),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new ze),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new ze),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new ze),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new ze),this.onDidChangeAttached=this._onDidChangeAttached.event,this._eventEmitter=this._register(new Xb),Ab++,this.id="$model"+Ab,this.isForSimpleWidget=t.isForSimpleWidget,this._associatedResource="undefined"===typeof i||null===i?Vt.parse("inmemory://model/"+Ab):i,this._undoRedoService=r,this._attachedEditorCount=0,this._buffer=Ib(e,t.defaultEOL),this._options=zb.resolveOptions(this._buffer,t);const o=this._buffer.getLineCount(),a=this._buffer.getValueLengthInRange(new Jt(1,1,o,this._buffer.getLineLength(o)+1),0);t.largeFileOptimizations?this._isTooLargeForTokenization=a>zb.LARGE_FILE_SIZE_THRESHOLD||o>zb.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=a>zb.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=n||Yl,this._languageRegistryListener=Uc.onDidChange(e=>{e.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=xo["O"](Ab),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new Vb,this._commandManager=new Im(this,r),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new ub,this._tokens2=new cb,this._tokenization=new xb(this)}static resolveOptions(e,t){if(t.detectIndentation){const n=Pm(e,t.tabSize,t.insertSpaces);return new Ca({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new Ca({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}onDidChangeRawContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.rawContentChangedEvent))}onDidChangeContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.contentChangedEvent))}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._isDisposing=!1}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||this._eventEmitter.fire(new _b(e,t))}setValue(e){if(this._assertNotDisposed(),null===e)return;const t=Ib(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}_createContentChanged2(e,t,n,i,r,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:a}}setValueFromTextBuffer(e){if(this._assertNotDisposed(),null===e)return;const t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),r=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new Vb,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new yb([new pb],this._versionId,!1,!1),this._createContentChanged2(new Jt(1,1,i,r),0,n,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new yb([new bb],this._versionId,!1,!1),this._createContentChanged2(new Jt(1,1,r,o),0,i,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.cachedAbsoluteStart-i.start,o=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn),a=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=o,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=o-r,i.end=a-r,pv(i)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=Pb?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new Ca({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(this._options.equals(o))return;let a=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(a)}detectIndentation(e,t){this._assertNotDisposed();let n=Pm(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}static _normalizeIndentationFromWhitespace(e,t,n){let i=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;let r="";if(!n){let e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let o=0;o<i;o++)r+=" ";return r}static normalizeIndentation(e,t,n){let i=xo["u"](e);return-1===i&&(i=e.length),zb._normalizeIndentationFromWhitespace(e.substring(0,i),t,n)+e.substring(i)}normalizeIndentation(e){return this._assertNotDisposed(),zb.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(xo["a"].source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Rb(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r,o;if(n<1)r=1,o=1;else if(n>t)r=t,o=this.getLineMaxColumn(r);else if(r=0|n,i<=1)o=1;else{const e=this.getLineMaxColumn(r);o=i>=e?e:0|i}const a=e.endLineNumber,s=e.endColumn;let l,c;if(a<1)l=1,c=1;else if(a>t)l=t,c=this.getLineMaxColumn(l);else if(l=0|a,s<=1)c=1;else{const e=this.getLineMaxColumn(l);c=s>=e?e:0|s}return n===r&&i===o&&a===l&&s===c&&e instanceof Jt&&!(e instanceof en)?e:new Jt(r,o,l,c)}_isValidPosition(e,t,n){if("number"!==typeof e||"number"!==typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;const i=this._buffer.getLineCount();if(e>i)return!1;if(1===t)return!0;const r=this.getLineMaxColumn(e);if(t>r)return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(xo["D"](n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new Qt(1,1);if(i>o)return new Qt(o,this.getLineMaxColumn(o));if(r<=1)return new Qt(i,1);const a=this.getLineMaxColumn(i);if(r>=a)return new Qt(i,a);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(xo["D"](e))return new Qt(i,r-1)}return new Qt(i,r)}validatePosition(e){const t=1;return this._assertNotDisposed(),e instanceof Qt&&this._isValidPosition(e.lineNumber,e.column,t)?e:this._validatePosition(e.lineNumber,e.column,t)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,a=xo["D"](e),s=xo["D"](t);return!a&&!s}return!0}validateRange(e){const t=1;if(this._assertNotDisposed(),e instanceof Jt&&!(e instanceof en)&&this._isValidRange(e,t))return e;const n=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),r=n.lineNumber,o=n.column,a=i.lineNumber,s=i.column;if(1===t){const e=o>1?this._buffer.getLineCharCode(r,o-2):0,t=s>1&&s<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,s-2):0,n=xo["D"](e),i=xo["D"](t);return n||i?r===a&&o===s?new Jt(r,o-1,a,s-1):n&&i?new Jt(r,o-1,a,s+1):n?new Jt(r,o-1,a,s):new Jt(r,o,a,s+1):new Jt(r,o,a,s)}return new Jt(r,o,a,s)}modifyPosition(e,t){this._assertNotDisposed();let n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new Jt(1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,o,a=Nb){this._assertNotDisposed();let s=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every(e=>Jt.isIRange(e))&&(s=t.map(e=>this.validateRange(e)))),null===s&&(s=[this.getFullModelRange()]),s=s.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);const l=[];let c;if(l.push(s.reduce((e,t)=>Jt.areIntersecting(e,t)?e.plusRange(t):(l.push(e),t))),!n&&e.indexOf("\n")<0){const t=new Nv(e,n,i,r),s=t.parseSearchRequest();if(!s)return[];c=e=>this.findMatchesLineByLine(e,s,o,a)}else c=t=>Bv.findMatches(this,new Nv(e,n,i,r),t,o,a);return l.map(c).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,n,i,r,o){this._assertNotDisposed();const a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new Nv(e,n,i,r),s=t.parseSearchRequest();if(!s)return null;const l=this.getLineCount();let c=new Jt(a.lineNumber,a.column,l,this.getLineMaxColumn(l)),u=this.findMatchesLineByLine(c,s,o,1);return Bv.findNextMatch(this,new Nv(e,n,i,r),a,o),u.length>0?u[0]:(c=new Jt(1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber)),u=this.findMatchesLineByLine(c,s,o,1),u.length>0?u[0]:null)}return Bv.findNextMatch(this,new Nv(e,n,i,r),a,o)}findPreviousMatch(e,t,n,i,r,o){this._assertNotDisposed();const a=this.validatePosition(t);return Bv.findPreviousMatch(this,new Nv(e,n,i,r),a,o)}pushStackElement(){this._commandManager.pushStackElement()}pushEOL(e){const t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof ka?e:new ka(e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let n=t.map(e=>({range:this.validateRange(e.range),text:e.text})),i=!0;if(e)for(let t=0,r=e.length;t<r;t++){let r=e[t],o=!1;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,i=t.startLineNumber>r.endLineNumber,a=r.startLineNumber>t.endLineNumber;if(!i&&!a){o=!0;break}}if(!o){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){let i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i),o=!0;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,a=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&a&&a.length>0&&"\n"===a.charAt(a.length-1))){o=!1;break}}if(o){const e=new Jt(i,1,i,r);t.push(new ka(null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n)}_applyUndo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new Jt(t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}});this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new Jt(t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}});this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==o.length){let e=[],t=n;for(let n=0,i=o.length;n<i;n++){const i=o[n],[a,s,l]=eb(i.text);this._tokens.acceptEdit(i.range,a,s),this._tokens2.acceptEdit(i.range,a,s,l,i.text.length>0?i.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(i.rangeOffset,i.rangeLength,i.text.length,i.forceMoveMarkers);const c=i.range.startLineNumber,u=i.range.endLineNumber,d=u-c,h=a,f=Math.min(d,h),p=h-d;for(let n=f;n>=0;n--){const i=c+n,o=r-t-p+i;e.push(new gb(i,this.getLineContent(o)))}if(f<d){const t=c+f;e.push(new mb(t+1,u))}if(f<h){const n=c+f,i=h-f,o=r-t-i+n+1;let a=[];for(let e=0;e<i;e++){let t=o+e;a[t-o]=this.getLineContent(t)}e.push(new vb(n+1,c+h,a))}t+=p}this._increaseVersionId(),this._emitContentChangedEvent(new yb(e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,Kb(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)},i=null;try{i=t(n)}catch(r){ge(r)}return n.addDecoration=Fb,n.changeDecoration=Fb,n.changeDecorationOptions=Fb,n.removeDecoration=Fb,n.deltaDecorations=Fb,i}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:Gb[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,a,r),i.setOptions(Gb[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];if(!t)return null;const n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1){let r=this.getLineCount(),o=Math.min(r,Math.max(1,e)),a=Math.min(r,Math.max(1,t)),s=this.getLineMaxColumn(a);return this._getDecorationsInRange(new Jt(o,1,a,s),n,i)}getDecorationsInRange(e,t=0,n=!1){let i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)}getOverviewRulerDecorations(e=0,t=!1){const n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)}getAllDecorations(e=0,t=!1){const n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)}_getDecorationsInRange(e,t,n){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),a=this._decorationsTree.intervalSearch(i,r,t,n,o);return this._ensureNodesHaveRanges(a)}_ensureNodesHaveRanges(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];null===n.range&&(n.range=this._getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd))}return e}_getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,o,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n){const i=this.getVersionId(),r=t.length;let o=0;const a=n.length;let s=0,l=new Array(a);while(o<r||s<a){let c=null;if(o<r){do{c=this._decorations[t[o++]]}while(!c&&o<r);c&&(this._decorationsTree.delete(c),this._onDidChangeDecorations.checkAffectedAndFire(c.options))}if(s<a){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new Km(t,0,0),this._decorations[t]=c}const t=n[s],r=this._validateRangeRelaxedNoAllocations(t.range),o=Kb(t.options),a=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),u=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);c.ownerId=e,c.reset(i,a,u,r),c.setOptions(o),this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),l[s]=c.id,s++}else c&&delete this._decorations[c.id]}return l}setTokens(e){if(0===e.length)return;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];let r=0,o=0,a=!1;for(let e=0,t=i.tokens.length;e<t;e++){const t=i.startLineNumber+e;if(a)this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!1),o=t;else{const n=this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!0);n&&(a=!0,r=t,o=t)}}a&&t.push({fromLineNumber:r,toLineNumber:o})}t.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasSemanticTokens(){return this._tokens2.isComplete()}setPartialSemanticTokens(e,t){if(this.hasSemanticTokens())return;const n=this._tokens2.setPartial(e,t);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(e){if(this._languageIdentifier.id===e.id)return;let t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const n=this.validatePosition(new Qt(e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[o,a]=zb._findLanguageBoundaries(i,r),s=d(t.column,Uc.getWordDefinition(i.getLanguageId(r)),n.substring(o,a),o);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s;if(r>0&&o===t.column-1){const[o,a]=zb._findLanguageBoundaries(i,r-1),s=d(t.column,Uc.getWordDefinition(i.getLanguageId(r-1)),n.substring(o,a),o);if(s&&s.startColumn<=e.column&&e.column<=s.endColumn)return s}return null}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);let r=e.getLineContent().length;for(let o=t,a=e.getCount();o<a&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]}getWordUntilPosition(e){const t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}}findMatchingBracketUp(e,t){let n=e.toLowerCase(),i=this.validatePosition(t),r=this._getLineTokens(i.lineNumber),o=r.getLanguageId(r.findTokenIndexAtOffset(i.column-1)),a=Uc.getBracketsSupport(o);if(!a)return null;let s=a.textIsBracket[n];return s?Bb(this._findMatchingBracketUp(s,i,null)):null}matchBracket(e){return this._matchBracket(this.validatePosition(e))}_matchBracket(e){const t=e.lineNumber,n=this._getLineTokens(t),i=n.getCount(),r=this._buffer.getLineContent(t),o=n.findTokenIndexAtOffset(e.column-1);if(o<0)return null;const a=Uc.getBracketsSupport(n.getLanguageId(o));if(a&&!pc(n.getStandardTokenType(o))){let i=Math.max(0,e.column-1-a.maxBracketLength);for(let e=o-1;e>=0;e--){const t=n.getEndOffset(e);if(t<=i)break;pc(n.getStandardTokenType(e))&&(i=t)}const s=Math.min(r.length,e.column-1+a.maxBracketLength);let l=null;while(1){const n=jc.findNextBracketInRange(a.forwardRegex,t,r,i,s);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=r.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),t=this._matchFoundBracket(n,a.textIsBracket[e],a.textIsOpenBracket[e],null);if(t){if(t instanceof jb)return null;l=t}}i=n.endColumn-1}if(l)return l}if(o>0&&n.getStartOffset(o)===e.column-1){const a=o-1,s=Uc.getBracketsSupport(n.getLanguageId(a));if(s&&!pc(n.getStandardTokenType(a))){const o=Math.max(0,e.column-1-s.maxBracketLength);let l=Math.min(r.length,e.column-1+s.maxBracketLength);for(let e=a+1;e<i;e++){const t=n.getStartOffset(e);if(t>=l)break;pc(n.getStandardTokenType(e))&&(l=t)}const c=jc.findPrevBracketInRange(s.reversedRegex,t,r,o,l);if(c&&c.startColumn<=e.column&&e.column<=c.endColumn){const e=r.substring(c.startColumn-1,c.endColumn-1).toLowerCase(),t=this._matchFoundBracket(c,s.textIsBracket[e],s.textIsOpenBracket[e],null);if(t)return t instanceof jb?null:t}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof jb?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageIdentifier.id,r=e.reversedRegex;let o=-1,a=0;const s=(t,i,s,l)=>{while(1){if(n&&++a%100===0&&!n())return jb.INSTANCE;const c=jc.findPrevBracketInRange(r,t,i,s,l);if(!c)break;const u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this._getLineTokens(l),n=e.getCount(),r=this._buffer.getLineContent(l);let o=n-1,a=r.length,c=r.length;l===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,c=t.column-1);let u=!0;for(;o>=0;o--){const t=e.getLanguageId(o)===i&&!pc(e.getStandardTokenType(o));if(t)u?a=e.getStartOffset(o):(a=e.getStartOffset(o),c=e.getEndOffset(o));else if(u&&a!==c){const e=s(l,r,a,c);if(e)return e}u=t}if(u&&a!==c){const e=s(l,r,a,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageIdentifier.id,r=e.forwardRegex;let o=1,a=0;const s=(t,i,s,l)=>{while(1){if(n&&++a%100===0&&!n())return jb.INSTANCE;const c=jc.findNextBracketInRange(r,t,i,s,l);if(!c)break;const u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;s=c.endColumn-1}return null},l=this.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this._getLineTokens(c),n=e.getCount(),r=this._buffer.getLineContent(c);let o=0,a=0,l=0;c===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),a=t.column-1,l=t.column-1);let u=!0;for(;o<n;o++){const t=e.getLanguageId(o)===i&&!pc(e.getStandardTokenType(o));if(t)u||(a=e.getStartOffset(o)),l=e.getEndOffset(o);else if(u&&a!==l){const e=s(c,r,a,l);if(e)return e}u=t}if(u&&a!==l){const e=s(c,r,a,l);if(e)return e}}return null}findPrevBracket(e){const t=this.validatePosition(e);let n=-1,i=null;for(let r=t.lineNumber;r>=1;r--){const e=this._getLineTokens(r),o=e.getCount(),a=this._buffer.getLineContent(r);let s=o-1,l=a.length,c=a.length;if(r===t.lineNumber){s=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const r=e.getLanguageId(s);n!==r&&(n=r,i=Uc.getBracketsSupport(n))}let u=!0;for(;s>=0;s--){const t=e.getLanguageId(s);if(n!==t){if(i&&u&&l!==c){const e=jc.findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(e)return this._toFoundBracket(i,e);u=!1}n=t,i=Uc.getBracketsSupport(n)}const o=!!i&&!pc(e.getStandardTokenType(s));if(o)u?l=e.getStartOffset(s):(l=e.getStartOffset(s),c=e.getEndOffset(s));else if(i&&u&&l!==c){const e=jc.findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(e)return this._toFoundBracket(i,e)}u=o}if(i&&u&&l!==c){const e=jc.findPrevBracketInRange(i.reversedRegex,r,a,l,c);if(e)return this._toFoundBracket(i,e)}}return null}findNextBracket(e){const t=this.validatePosition(e),n=this.getLineCount();let i=-1,r=null;for(let o=t.lineNumber;o<=n;o++){const e=this._getLineTokens(o),n=e.getCount(),a=this._buffer.getLineContent(o);let s=0,l=0,c=0;if(o===t.lineNumber){s=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const n=e.getLanguageId(s);i!==n&&(i=n,r=Uc.getBracketsSupport(i))}let u=!0;for(;s<n;s++){const t=e.getLanguageId(s);if(i!==t){if(r&&u&&l!==c){const e=jc.findNextBracketInRange(r.forwardRegex,o,a,l,c);if(e)return this._toFoundBracket(r,e);u=!1}i=t,r=Uc.getBracketsSupport(i)}const n=!!r&&!pc(e.getStandardTokenType(s));if(n)u||(l=e.getStartOffset(s)),c=e.getEndOffset(s);else if(r&&u&&l!==c){const e=jc.findNextBracketInRange(r.forwardRegex,o,a,l,c);if(e)return this._toFoundBracket(r,e)}u=n}if(r&&u&&l!==c){const e=jc.findNextBracketInRange(r.forwardRegex,o,a,l,c);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){let n;if("undefined"===typeof t)n=null;else{const e=Date.now();n=()=>Date.now()-e<=t}const i=this.validatePosition(e),r=this.getLineCount(),o=new Map;let a=[];const s=(e,t)=>{if(!o.has(e)){let n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;o.set(e,n)}a=o.get(e)};let l=0;const c=(e,t,i,r,o)=>{while(1){if(n&&++l%100===0&&!n())return jb.INSTANCE;const s=jc.findNextBracketInRange(e.forwardRegex,t,i,r,o);if(!s)break;const c=i.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),u=e.textIsBracket[c];if(u&&(u.isOpen(c)?a[u.index]++:u.isClose(c)&&a[u.index]--,-1===a[u.index]))return this._matchFoundBracket(s,u,!1,n);r=s.endColumn-1}return null};let u=-1,d=null;for(let h=i.lineNumber;h<=r;h++){const e=this._getLineTokens(h),t=e.getCount(),n=this._buffer.getLineContent(h);let r=0,o=0,a=0;if(h===i.lineNumber){r=e.findTokenIndexAtOffset(i.column-1),o=i.column-1,a=i.column-1;const t=e.getLanguageId(r);u!==t&&(u=t,d=Uc.getBracketsSupport(u),s(u,d))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(u!==t){if(d&&l&&o!==a){const e=c(d,h,n,o,a);if(e)return Bb(e);l=!1}u=t,d=Uc.getBracketsSupport(u),s(u,d)}const i=!!d&&!pc(e.getStandardTokenType(r));if(i)l||(o=e.getStartOffset(r)),a=e.getEndOffset(r);else if(d&&l&&o!==a){const e=c(d,h,n,o,a);if(e)return Bb(e)}l=i}if(d&&l&&o!==a){const e=c(d,h,n,o,a);if(e)return Bb(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.getValueInRange(t);n=n.toLowerCase();let i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null}static computeIndentLevel(e,t){let n=0,i=0,r=e.length;while(i<r){let r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}_computeIndentLevel(e){return zb.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)}getActiveIndentGuide(e,t,n){this._assertNotDisposed();const i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");const r=Uc.getFoldingRules(this._languageIdentifier.id),o=Boolean(r&&r.offSide);let a=-2,s=-1,l=-2,c=-1;const u=e=>{if(-1!==a&&(-2===a||a>e-1)){a=-1,s=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){a=t,s=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){l=t,c=e;break}}}};let d=-2,h=-1,f=-2,p=-1;const g=e=>{if(-2===d){d=-1,h=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){d=t,h=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,p=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){f=t,p=e;break}}}};let m=0,v=!0,b=0,y=!0,_=0,w=0;for(let x=0;v||y;x++){const r=e-x,a=e+x;x>1&&(r<1||r<t)&&(v=!1),x>1&&(a>i||a>n)&&(y=!1),x>5e4&&(v=!1,y=!1);let f=-1;if(v){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,c=e,f=Math.ceil(e/this._options.indentSize)):(u(r),f=this._getIndentLevelForWhitespaceLine(o,s,c))}let C=-1;if(y){const e=this._computeIndentLevel(a-1);e>=0?(d=a-1,h=e,C=Math.ceil(e/this._options.indentSize)):(g(a),C=this._getIndentLevelForWhitespaceLine(o,h,p))}if(0!==x){if(1===x){if(a<=i&&C>=0&&w+1===C){v=!1,m=a,b=a,_=C;continue}if(r>=1&&f>=0&&f-1===w){y=!1,m=r,b=r,_=f;continue}if(m=e,b=e,_=w,0===_)return{startLineNumber:m,endLineNumber:b,indent:_}}v&&(f>=_?m=r:v=!1),y&&(C>=_?b=a:y=!1)}else w=f}return{startLineNumber:m,endLineNumber:b,indent:_}}getLinesIndentGuides(e,t){this._assertNotDisposed();const n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=Uc.getFoldingRules(this._languageIdentifier.id),r=Boolean(i&&i.offSide);let o=new Array(t-e+1),a=-2,s=-1,l=-2,c=-1;for(let u=e;u<=t;u++){let t=u-e;const i=this._computeIndentLevel(u-1);if(i>=0)a=u-1,s=i,o[t]=Math.ceil(i/this._options.indentSize);else{if(-2===a){a=-1,s=-1;for(let e=u-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){a=e,s=t;break}}}if(-1!==l&&(-2===l||l<u-1)){l=-1,c=-1;for(let e=u;e<n;e++){let t=this._computeIndentLevel(e);if(t>=0){l=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,s,c)}}return o}_getIndentLevelForWhitespaceLine(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.indentSize):t===n||e?Math.ceil(n/this._options.indentSize):1+Math.floor(n/this._options.indentSize)}}zb.MODEL_SYNC_LIMIT=52428800,zb.LARGE_FILE_SIZE_THRESHOLD=20971520,zb.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,zb.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:ce.tabSize,indentSize:ce.indentSize,insertSpaces:ce.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:ce.trimAutoWhitespace,largeFileOptimizations:ce.largeFileOptimizations};class Vb{constructor(){this._decorationsTree0=new Xm,this._decorationsTree1=new Xm}intervalSearch(e,t,n,i,r){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r),a=this._decorationsTree1.intervalSearch(e,t,n,i,r);return o.concat(a)}search(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);{const n=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i);return n.concat(r)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)}insert(e){$m(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){$m(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}resolveNode(e,t){$m(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i)}}function $b(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class Wb{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class Hb extends Wb{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:wa.Center}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;let n=e?t.getColor(e.id):null;return n?n.toString():""}}class Ub extends Wb{constructor(e){super(e),this.position=e.position}getColor(e){return this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?Eb.fromHex(e):t.getColor(e.id)}}class qb{constructor(e){this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?$b(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new Hb(e.overviewRuler):null,this.minimap=e.minimap?new Ub(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?$b(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?$b(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?$b(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?$b(e.marginClassName):null,this.inlineClassName=e.inlineClassName?$b(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?$b(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?$b(e.afterContentClassName):null}static register(e){return new qb(e)}static createDynamic(e){return new qb(e)}}qb.EMPTY=qb.register({});const Gb=[qb.register({stickiness:0}),qb.register({stickiness:1}),qb.register({stickiness:2}),qb.register({stickiness:3})];function Kb(e){return e instanceof qb?e:qb.createDynamic(e)}class Yb extends Ae{constructor(){super(),this._actual=this._register(new ze),this.event=this._actual.event,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){if(this._deferredCnt--,0===this._deferredCnt&&this._shouldFire){const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class Xb extends Ae{constructor(){super(),this._fastEmitter=this._register(new ze),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new ze),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}const Zb=()=>!0,Qb=()=>!1,Jb=e=>" "===e||"\t"===e;function ey(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}class ty{constructor(e,t,n){this._languageIdentifier=e;const i=n.options,r=i.get(117);this.readOnly=i.get(72),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.lineHeight=i.get(51),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=i.get(104),this.wordSeparators=i.get(105),this.emptySelectionClipboard=i.get(26),this.copyWithSyntaxHighlighting=i.get(16),this.multiCursorMergeOverlapping=i.get(60),this.multiCursorPaste=i.get(62),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(7),this.autoClosingOvertype=i.get(6),this.autoSurround=i.get(10),this.autoIndent=i.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:ty._getShouldAutoClose(e,this.autoClosingQuotes),bracket:ty._getShouldAutoClose(e,this.autoClosingBrackets)};let o=ty._getAutoClosingPairs(e);if(o)for(const s of o)ey(this.autoClosingPairsOpen2,s.open.charAt(s.open.length-1),s),1===s.close.length&&ey(this.autoClosingPairsClose2,s.close,s);let a=ty._getSurroundingPairs(e);if(a)for(const s of a)this.surroundingPairs[s.open]=s.close}static shouldRecreate(e){return e.hasChanged(117)||e.hasChanged(105)||e.hasChanged(26)||e.hasChanged(60)||e.hasChanged(62)||e.hasChanged(5)||e.hasChanged(7)||e.hasChanged(6)||e.hasChanged(10)||e.hasChanged(104)||e.hasChanged(51)||e.hasChanged(72)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=ty._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return zb.normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return Uc.getElectricCharacters(e.id)}catch(t){return ge(t),null}}static _getAutoClosingPairs(e){try{return Uc.getAutoClosingPairs(e.id)}catch(t){return ge(t),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return Jb;case"languageDefined":return ty._getLanguageDefinedShouldAutoClose(e);case"always":return Zb;case"never":return Qb}}static _getLanguageDefinedShouldAutoClose(e){try{const t=Uc.getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(t){return ge(t),Qb}}static _getSurroundingPairs(e){try{return Uc.getSurroundingPairs(e.id)}catch(t){return ge(t),null}}}class ny{constructor(e,t,n,i){this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=ny._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,n,i){return e?new ny(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new Qt(t,n),i):new ny(new Jt(t,n,t,n),i,new Qt(t,n),i)}static _computeSelection(e,t){let n,i,r,o;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,r=t.lineNumber,o=t.column):(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column),new en(n,i,r,o)}}class iy{constructor(e,t,n){this.model=e,this.coordinatesConverter=t,this.cursorConfig=n}}class ry{constructor(e){this.modelState=e,this.viewState=null}}class oy{constructor(e){this.modelState=null,this.viewState=e}}class ay{constructor(e,t){this.modelState=e,this.viewState=t}static fromModelState(e){return new ry(e)}static fromViewState(e){return new oy(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,r=e.positionColumn,o=new ny(new Jt(t,n,t,n),0,new Qt(i,r),0);return ay.fromModelState(o)}static fromModelSelections(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class sy{constructor(e,t,n){this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}}class ly{static visibleColumnFromColumn(e,t,n){const i=e.length,r=t-1<i?t-1:i;let o=0,a=0;while(a<r){const t=xo["y"](e,r,a);if(a+=t>=65536?2:1,9===t)o=ly.nextRenderTabStop(o,n);else{let n=xo["w"](t);while(a<r){const t=xo["y"](e,r,a),i=xo["w"](t);if(xo["c"](n,i))break;a+=t>=65536?2:1,n=i}xo["C"](t)||xo["A"](t)?o+=2:o+=1}}return o}static visibleColumnFromColumn2(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length;let r=0,o=1,a=0;while(a<i){const s=xo["y"](e,i,a);let l;if(a+=s>=65536?2:1,9===s)l=ly.nextRenderTabStop(r,n);else{let t=xo["w"](s);while(a<i){const n=xo["y"](e,i,a),r=xo["w"](n);if(xo["c"](t,r))break;a+=n>=65536?2:1,t=r}l=xo["C"](s)||xo["A"](s)?r+2:r+1}const c=a+1;if(l>=t){const e=t-r,n=l-t;return n<e?c:o}r=l,o=c}return i+1}static columnFromVisibleColumn2(e,t,n,i){let r=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),o=t.getLineMinColumn(n);if(r<o)return o;let a=t.getLineMaxColumn(n);return r>a?a:r}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return e-1-(e-1)%t}static prevIndentTabStop(e,t){return e-1-(e-1)%t}}function cy(e){return"'"===e||'"'===e||"`"===e}class uy{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class dy{constructor(e,t,n=0,i=null,r=null,o=null){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!r&&i&&(r=new Jt(i.lineNumber,i.column,i.lineNumber,i.column)),this.range=r,this.detail=o}static _typeToString(e){return 1===e?"TEXTAREA":2===e?"GUTTER_GLYPH_MARGIN":3===e?"GUTTER_LINE_NUMBERS":4===e?"GUTTER_LINE_DECORATIONS":5===e?"GUTTER_VIEW_ZONE":6===e?"CONTENT_TEXT":7===e?"CONTENT_EMPTY":8===e?"CONTENT_VIEW_ZONE":9===e?"CONTENT_WIDGET":10===e?"OVERVIEW_RULER":11===e?"SCROLLBAR":12===e?"OVERLAY_WIDGET":"UNKNOWN"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail}toString(){return dy.toString(this)}}class hy{static isTextArea(e){return 2===e.length&&3===e[0]&&6===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class fy{constructor(e,t,n){this.model=e.model;const i=e.configuration.options;this.layoutInfo=i.get(117),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(51),this.typicalHalfwidthCharacterWidth=i.get(36).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return fy.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){let i,r=n.verticalOffset+n.height/2,o=e.model.getLineCount(),a=null,s=null;return n.afterLineNumber!==o&&(s=new Qt(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(a=new Qt(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),i=null===s?a:null===a?s:t<r?a:s,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:a,positionAfter:s,position:i}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.model.getLineCount(),t=this._context.model.getLineMaxColumn(e);return{range:new Jt(e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),n=this._context.model.getLineMaxColumn(t);return{range:new Jt(t,1,t,n),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return fy._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,n){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class py{constructor(e,t,n){this.editorPos=t,this.pos=n,this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y),this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft,this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,by._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}class gy extends py{constructor(e,t,n,i){super(e,t,n),this._ctx=e,i?(this.target=i,this.targetPath=Ug.collect(i,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset}\n\ttarget: ${this.target?this.target.outerHTML:null}`}fulfill(e,t=null,n=null,i=null){let r=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(r=ly.visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getTextModelOptions().tabSize)+1),new dy(this.target,e,r,t,n,i)}withTarget(e){return new gy(this._ctx,this.editorPos,this.pos,e)}}const my={isAfterLines:!0};function vy(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class by{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,n=Ug.collect(t,this._viewHelper.viewDomNode);return!(!hy.isChildOfContentWidgets(n)&&!hy.isChildOfOverflowingContentWidgets(n))||!!hy.isChildOfOverlayWidgets(n)}createMouseTarget(e,t,n,i){const r=new fy(this._context,this._viewHelper,e),o=new gy(r,t,n,i);try{const e=by._createMouseTarget(r,o,!1);return e}catch(a){return o.fulfill(0)}}static _createMouseTarget(e,t,n){if(null===t.target){if(n)return t.fulfill(0);const i=by._doHitTest(e,t);return i.position?by.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}const i=t;let r=null;return r=r||by._hitTestContentWidget(e,i),r=r||by._hitTestOverlayWidget(e,i),r=r||by._hitTestMinimap(e,i),r=r||by._hitTestScrollbarSlider(e,i),r=r||by._hitTestViewZone(e,i),r=r||by._hitTestMargin(e,i),r=r||by._hitTestViewCursor(e,i),r=r||by._hitTestTextArea(e,i),r=r||by._hitTestViewLines(e,i,n),r=r||by._hitTestScrollbar(e,i),r||t.fulfill(0)}static _hitTestContentWidget(e,t){if(hy.isChildOfContentWidgets(t.targetPath)||hy.isChildOfOverflowingContentWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null}static _hitTestOverlayWidget(e,t){if(hy.isChildOfOverlayWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null}static _hitTestViewCursor(e,t){if(t.target){const n=e.lastRenderData.lastViewCursorsRenderData;for(const e of n)if(t.target===e.domNode)return t.fulfill(6,e.position)}if(t.isInContentArea){const n=e.lastRenderData.lastViewCursorsRenderData,i=t.mouseContentHorizontalOffset,r=t.mouseVerticalOffset;for(const o of n){if(i<o.contentLeft)continue;if(i>o.contentLeft+o.width)continue;const n=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(n<=r&&r<=n+o.height)return t.fulfill(6,o.position)}}return null}static _hitTestViewZone(e,t){const n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){const e=t.isInContentArea?8:5;return t.fulfill(e,n.position,null,n)}return null}static _hitTestTextArea(e,t){return hy.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){if(t.isInMarginArea){const n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition();let r=Math.abs(t.pos.x-t.editorPos.x);const o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return r-=e.layoutInfo.glyphMarginLeft,r<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth,r<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,o)))}return null}static _hitTestViewLines(e,t,n){if(!hy.isChildOfViewLines(t.targetPath))return null;if(e.isAfterLines(t.mouseVerticalOffset)){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return t.fulfill(7,new Qt(n,i),void 0,my)}if(n){if(hy.isStrictChildOfViewLines(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(n)){const i=e.getLineWidth(n),r=vy(t.mouseContentHorizontalOffset-i);return t.fulfill(7,new Qt(n,1),void 0,r)}const i=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>=i){const r=vy(t.mouseContentHorizontalOffset-i),o=new Qt(n,e.model.getLineMaxColumn(n));return t.fulfill(7,o,void 0,r)}}return t.fulfill(0)}const i=by._doHitTest(e,t);return i.position?by.createMouseTargetFromHitTestPosition(e,t,i.position.lineNumber,i.position.column):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}static _hitTestMinimap(e,t){if(hy.isChildOfMinimap(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Qt(n,i))}return null}static _hitTestScrollbarSlider(e,t){if(hy.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Qt(n,i))}}return null}static _hitTestScrollbar(e,t){if(hy.isChildOfScrollableElement(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new Qt(n,i))}return null}getMouseColumn(e,t){const n=this._context.configuration.options,i=n.get(117),r=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-i.contentLeft;return by._getMouseColumn(r,n.get(36).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;const n=Math.round(e/t);return n+1}static createMouseTargetFromHitTestPosition(e,t,n,i){const r=new Qt(n,i),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(Jn&&1===r.column){const i=vy(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new Qt(n,e.model.getLineMaxColumn(n)),void 0,i)}const i=vy(t.mouseContentHorizontalOffset-o);return t.fulfill(7,r,void 0,i)}const a=e.visibleRangeForPosition(n,i);if(!a)return t.fulfill(0,r);const s=a.left;if(t.mouseContentHorizontalOffset===s)return t.fulfill(6,r);const l=[];if(l.push({offset:a.left,column:i}),i>1){const t=e.visibleRangeForPosition(n,i-1);t&&l.push({offset:t.left,column:i-1})}const c=e.model.getLineMaxColumn(n);if(i<c){const t=e.visibleRangeForPosition(n,i+1);t&&l.push({offset:t.left,column:i+1})}l.sort((e,t)=>e.offset-t.offset);for(let u=1;u<l.length;u++){const e=l[u-1],i=l[u];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=i.offset){const o=new Jt(n,e.column,n,i.column);return t.fulfill(6,r,o)}}return t.fulfill(6,r)}static _doHitTestWithCaretRangeFromPoint(e,t){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n),r=i+Math.floor(e.lineHeight/2);let o=t.pos.y+(r-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);const a=new Pg(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const n=Vr(e.viewDomNode);let i;if(i=n?"undefined"===typeof n.caretRangeFromPoint?yy(n,t.clientX,t.clientY):n.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY),!i||!i.startContainer)return{position:null,hitTarget:null};const r=i.startContainer;let o=null;if(r.nodeType===r.TEXT_NODE){const t=r.parentNode,n=t?t.parentNode:null,a=n?n.parentNode:null,s=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(s===mm.CLASS_NAME){const n=e.getPositionFromDOMInfo(t,i.startOffset);return{position:n,hitTarget:null}}o=r.parentNode}else if(r.nodeType===r.ELEMENT_NODE){const t=r.parentNode,n=t?t.parentNode:null,i=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;if(i===mm.CLASS_NAME){const t=e.getPositionFromDOMInfo(r,r.textContent.length);return{position:t,hitTarget:null}}o=r}return{position:null,hitTarget:o}}static _doHitTestWithCaretPositionFromPoint(e,t){const n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){const t=n.offsetNode.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null,o=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(o===mm.CLASS_NAME){const t=e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset);return{position:t,hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}if(n.offsetNode.nodeType===n.offsetNode.ELEMENT_NODE){const t=n.offsetNode.parentNode,i=t&&t.nodeType===t.ELEMENT_NODE?t.className:null;if(i===mm.CLASS_NAME){const t=n.offsetNode.childNodes[Math.min(n.offset,n.offsetNode.childNodes.length-1)];if(t){const n=e.getPositionFromDOMInfo(t,0);return{position:n,hitTarget:null}}}}return{position:null,hitTarget:n.offsetNode}}static _doHitTestWithMoveToPoint(e,t){let n=null,i=null;const r=document.body.createTextRange();try{r.moveToPoint(t.clientX,t.clientY)}catch(c){return{position:null,hitTarget:null}}r.collapse(!0);const o=r?r.parentElement():null,a=o?o.parentNode:null,s=a?a.parentNode:null,l=s&&s.nodeType===s.ELEMENT_NODE?s.className:"";if(l===mm.CLASS_NAME){const t=r.duplicate();t.moveToElementText(o),t.setEndPoint("EndToStart",r),n=e.getPositionFromDOMInfo(o,t.text.length),t.moveToElementText(e.viewDomNode)}else i=o;return r.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}}static _doHitTest(e,t){return"function"===typeof document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}}}function yy(e,t,n){const i=document.createRange();let r=e.elementFromPoint(t,n);if(null!==r){while(r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE)r=r.lastChild;const e=r.getBoundingClientRect(),n=window.getComputedStyle(r,null).getPropertyValue("font"),o=r.innerText;let a,s=e.left,l=0;if(t>e.left+e.width)l=o.length;else{const e=_y.getInstance();for(let i=0;i<o.length+1;i++){if(a=e.getCharWidth(o.charAt(i),n)/2,s+=a,t<s){l=i;break}s+=a}}i.setStart(r.firstChild,l),i.setEnd(r.firstChild,l)}return i}class _y{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return _y._INSTANCE||(_y._INSTANCE=new _y),_y._INSTANCE}getCharWidth(e,t){const n=e+t;if(this._cache[n])return this._cache[n];const i=this._canvas.getContext("2d");i.font=t;const r=i.measureText(e),o=r.width;return this._cache[n]=o,o}}function wy(e){return function(t,n){let i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}_y._INSTANCE=null;class xy extends Wg{constructor(e,t,n){super(),this._context=e,this.viewController=t,this.viewHelper=n,this.mouseTargetFactory=new by(this._context,n),this._mouseDownOperation=this._register(new Cy(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1;const i=new zg(this.viewHelper.viewDomNode);this._register(i.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(i.onMouseMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),wy(this.mouseTargetFactory),xy.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)));const r=e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(59))return;const t=new xi(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){const e=pa.getZoomLevel(),n=t.deltaY>0?1:-1;pa.setZoomLevel(e+n),t.preventDefault(),t.stopPropagation()}};this._register(ur(this.viewHelper.viewDomNode,Xr.MOUSE_WHEEL,r,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const n=new Rg(e,t),i=n.toPageCoordinates(),r=jg(this.viewHelper.viewDomNode);return i.y<r.y||i.y>r.y+r.height||i.x<r.x||i.x>r.x+r.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),r,i,null)}_createMouseTarget(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this._mouseDownOperation.isActive())return;const t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e){const t=this._createMouseTarget(e,!0),n=6===t.type||7===t.type,i=2===t.type||3===t.type||4===t.type,r=3===t.type,a=this._context.configuration.options.get(90),s=8===t.type||5===t.type,l=9===t.type;let c=e.leftButton||e.middleButton;o["f"]&&e.leftButton&&e.ctrlKey&&(c=!1);const u=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(c&&(n||r&&a))u(),this._mouseDownOperation.start(t.type,e);else if(i)e.preventDefault();else if(s){const n=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(u(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else l&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(u(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}xy.MOUSE_MOVE_MINIMUM_TIME=100;class Cy extends Ae{constructor(e,t,n,i,r){super(),this._context=e,this._viewController=t,this._viewHelper=n,this._createMouseTarget=i,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new $g(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new Di),this._mouseState=new Sy,this._currentSelection=new en(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const i=this._context.configuration.options;if(!i.get(72)&&i.get(25)&&!i.get(13)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,wy(null),e=>this._onMouseDownThenMove(e),()=>{const e=this._findMousePosition(this._lastMouseEvent,!0);this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:e?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,wy(null),e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,n=this._context.model,i=this._context.viewLayout,r=this._getMouseColumn(e);if(e.posy<t.y){const n=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),o=fy.getZoneAtCoord(this._context,n);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return new dy(null,13,r,e)}const a=i.getLineNumberAtVerticalOffset(n);return new dy(null,13,r,new Qt(a,1))}if(e.posy>t.y+t.height){const o=i.getCurrentScrollTop()+(e.posy-t.y),a=fy.getZoneAtCoord(this._context,o);if(a){const e=this._helpPositionJumpOverViewZone(a);if(e)return new dy(null,13,r,e)}const s=i.getLineNumberAtVerticalOffset(o);return new dy(null,13,r,new Qt(s,n.getLineMaxColumn(s)))}const o=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new dy(null,13,r,new Qt(o,1)):e.posx>t.x+t.width?new dy(null,13,r,new Qt(o,n.getLineMaxColumn(o))):null}_findMousePosition(e,t){const n=this._getPositionOutsideEditor(e);if(n)return n;const i=this._createMouseTarget(e,t),r=i.position;if(!r)return null;if(8===i.type||5===i.type){const e=this._helpPositionJumpOverViewZone(i.detail);if(e)return new dy(i.element,i.type,i.mouseColumn,e,null,i.detail)}return i}_helpPositionJumpOverViewZone(e){const t=new Qt(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null}_dispatchMouse(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})}}class Sy{constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const n=(new Date).getTime();n-this._lastSetMouseDownCountTime>Sy.CLEAR_MOUSE_DOWN_COUNT_TIME&&(e=1),this._lastSetMouseDownCountTime=n,e>this._lastMouseDownCount+1&&(e=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(e,this._lastMouseDownPositionEqualCount)}}function ky(e,t){const n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}Sy.CLEAR_MOUSE_DOWN_COUNT_TIME=400;class Oy extends xy{constructor(e,t,n){super(e,t,n),this.viewHelper.linesContentDomNode.style.touchAction="none",this._installGestureHandlerTimeout=window.setTimeout(()=>{if(this._installGestureHandlerTimeout=-1,window.MSGesture){const e=new MSGesture,t=new MSGesture;e.target=this.viewHelper.linesContentDomNode,t.target=this.viewHelper.linesContentDomNode,this.viewHelper.linesContentDomNode.addEventListener("pointerdown",n=>{const i=n.pointerType;"mouse"!==i?"touch"===i?(this._lastPointerType="touch",e.addPointer(n.pointerId)):(this._lastPointerType="pen",t.addPointer(n.pointerId)):this._lastPointerType="mouse"}),this._register(Sr(this.viewHelper.linesContentDomNode,"MSGestureChange",e=>this._onGestureChange(e),ky)),this._register(ur(this.viewHelper.linesContentDomNode,"MSGestureTap",e=>this._onCaptureGestureTap(e),!0))}},100),this._lastPointerType="mouse"}_onMouseDown(e){"mouse"===this._lastPointerType&&super._onMouseDown(e)}_onCaptureGestureTap(e){const t=new Bg(e,this.viewHelper.viewDomNode),n=this._createMouseTarget(t,!1);n.position&&this.viewController.moveTo(n.position),t.browserEvent.fromElement?(t.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(()=>{this.viewHelper.focusTextArea()})}_onGestureChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}dispose(){window.clearTimeout(this._installGestureHandlerTimeout),super.dispose()}}class My extends xy{constructor(e,t,n){super(e,t,n),this._register(Ig.addTarget(this.viewHelper.linesContentDomNode)),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Tap,e=>this.onTap(e))),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Change,e=>this.onChange(e))),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Contextmenu,e=>this._onContextMenu(new Bg(e,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(ur(this.viewHelper.linesContentDomNode,"pointerdown",e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"}));const i=new Vg(this.viewHelper.viewDomNode);this._register(i.onPointerMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),wy(this.mouseTargetFactory),xy.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onPointerDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new Bg(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.dispatchMouse({position:t.position,mouseColumn:t.position.column,startedOnLineNumbers:!1,mouseDownCount:e.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){e.target&&this.viewHelper.linesContentDomNode.contains(e.target)&&"touch"===this._lastPointerType||super._onMouseDown(e)}}class Dy extends xy{constructor(e,t,n){super(e,t,n),this._register(Ig.addTarget(this.viewHelper.linesContentDomNode)),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Tap,e=>this.onTap(e))),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Change,e=>this.onChange(e))),this._register(ur(this.viewHelper.linesContentDomNode,Tg.Contextmenu,e=>this._onContextMenu(new Bg(e,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new Bg(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class Ey extends Ae{constructor(e,t,n){super(),o["c"]&&Qi.pointerEvents?this.handler=this._register(new My(e,t,n)):window.TouchEvent?this.handler=this._register(new Dy(e,t,n)):window.navigator.pointerEnabled||window.PointerEvent?this.handler=this._register(new Oy(e,t,n)):this.handler=this._register(new xy(e,t,n))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}n("1a37");class Ty{constructor(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new Ty(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new Ty(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)}_finishDeduceEditorPosition(e,t,n){let i=0,r=-1;while(-1!==(r=t.indexOf("\n",r+1)))i++;return[e,n*t.length,i]}static selectedText(e){return new Ty(e,0,e.length,null,null)}static deduceInput(e,t,n){if(!e)return{text:"",replaceCharCnt:0};let i=e.value,r=e.selectionStart,o=e.selectionEnd,a=t.value,s=t.selectionStart,l=t.selectionEnd;const c=i.substring(o),u=a.substring(l),d=xo["e"](c,u);a=a.substring(0,a.length-d),i=i.substring(0,i.length-d);const h=i.substring(0,r),f=a.substring(0,s),p=xo["d"](h,f);if(a=a.substring(p),i=i.substring(p),s-=p,r-=p,l-=p,o-=p,n&&s===l&&i.length>0){let e=null;if(s===a.length?xo["P"](a,i)&&(e=a.substring(i.length)):xo["q"](a,i)&&(e=a.substring(0,a.length-i.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||xo["j"](e)))return{text:e,replaceCharCnt:0}}if(s===l){if(i===a&&0===r&&o===i.length&&s===a.length&&-1===a.indexOf("\n")&&xo["k"](a))return{text:"",replaceCharCnt:0};const e=h.length-p;return{text:a,replaceCharCnt:e}}const g=o-r;return{text:a,replaceCharCnt:g}}}Ty.EMPTY=new Ty("",0,0,null,null);class Ly{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const n=e*t,i=n+1,r=n+t;return new Jt(i,1,r+1,1)}static fromEditorSelection(e,t,n,i,r){const o=Ly._getPageOfLine(n.startLineNumber,i),a=Ly._getRangeForPage(o,i),s=Ly._getPageOfLine(n.endLineNumber,i),l=Ly._getRangeForPage(s,i),c=a.intersectRanges(new Jt(1,1,n.startLineNumber,n.startColumn));let u=t.getValueInRange(c,1);const d=t.getLineCount(),h=t.getLineMaxColumn(d),f=l.intersectRanges(new Jt(n.endLineNumber,n.endColumn,d,h));let p,g=t.getValueInRange(f,1);if(o===s||o+1===s)p=t.getValueInRange(n,1);else{const e=a.intersectRanges(n),i=l.intersectRanges(n);p=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(i,1)}if(r){const e=500;u.length>e&&(u=u.substring(u.length-e,u.length)),g.length>e&&(g=g.substring(0,e)),p.length>2*e&&(p=p.substring(0,e)+String.fromCharCode(8230)+p.substring(p.length-e,p.length))}return new Ty(u+p+g,u.length,u.length+p.length,new Qt(n.startLineNumber,n.startColumn),new Qt(n.endLineNumber,n.endColumn))}}const Iy={forceCopyWithSyntaxHighlighting:!1};class Ay{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}Ay.INSTANCE=new Ay;class Ny extends Ae{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new ze),this.onFocus=this._onFocus.event,this._onBlur=this._register(new ze),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new ze),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new ze),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new ze),this.onCut=this._onCut.event,this._onPaste=this._register(new ze),this.onPaste=this._onPaste.event,this._onType=this._register(new ze),this.onType=this._onType.event,this._onCompositionStart=this._register(new ze),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new ze),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new ze),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new ze),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new Ry(t)),this._asyncTriggerCut=this._register(new Ti(()=>this._onCut.fire(),0)),this._textAreaState=Ty.EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let n=null;this._register(fr(t.domNode,"keydown",e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),n=e,this._onKeyDown.fire(e)})),this._register(fr(t.domNode,"keyup",e=>{this._onKeyUp.fire(e)})),this._register(ur(t.domNode,"compositionstart",e=>{if(this._isDoingComposition)return;this._isDoingComposition=!0;let t=!1;o["f"]&&n&&n.equals(109)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data&&("ArrowRight"!==n.code&&"ArrowLeft"!==n.code||(t=!0)),t?this._textAreaState=new Ty(this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new Qt(this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition):Jn||this._setAndWriteTextAreaState("compositionstart",Ty.EMPTY),this._onCompositionStart.fire({moveOneCharacterLeft:t})}));const i=e=>{const t=this._textAreaState,n=Ty.readFromTextArea(this._textArea);return[n,Ty.deduceInput(t,n,e)]},r=e=>{const t=this._textAreaState,n=Ty.selectedText(e),i={text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart};return[n,i]},a=e=>!(!Jn||"ja"!==e);this._register(ur(t.domNode,"compositionupdate",e=>{if(a(e.locale)){const[t,n]=i(!1);return this._textAreaState=t,this._onType.fire(n),void this._onCompositionUpdate.fire(e)}const[t,n]=r(e.data||"");this._textAreaState=t,this._onType.fire(n),this._onCompositionUpdate.fire(e)})),this._register(ur(t.domNode,"compositionend",e=>{if(this._isDoingComposition){if(a(e.locale)){const[e,t]=i(!1);this._textAreaState=e,this._onType.fire(t)}else{const[t,n]=r(e.data||"");this._textAreaState=t,this._onType.fire(n)}(Jn||ni)&&(this._textAreaState=Ty.readFromTextArea(this._textArea)),this._isDoingComposition&&(this._isDoingComposition=!1,this._onCompositionEnd.fire())}})),this._register(ur(t.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[e,t]=i(o["f"]);0===t.replaceCharCnt&&1===t.text.length&&xo["D"](t.text.charCodeAt(0))||(this._textAreaState=e,0===this._nextCommand?""!==t.text&&this._onType.fire(t):(""===t.text&&0===t.replaceCharCnt||this._firePaste(t.text,null),this._nextCommand=0))})),this._register(ur(t.domNode,"cut",e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()})),this._register(ur(t.domNode,"copy",e=>{this._ensureClipboardGetsEditorSelection(e)})),this._register(ur(t.domNode,"paste",e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),Py.canUseTextData(e)){const[t,n]=Py.getTextData(e);""!==t&&this._firePaste(t,n)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",Ty.EMPTY),this._nextCommand=1})),this._register(ur(t.domNode,"focus",()=>{this._setHasFocus(!0)})),this._register(ur(t.domNode,"blur",()=>{this._setHasFocus(!1)}))}_installSelectionChangeListener(){let e=0;return ur(document,"selectionchange",t=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!ni)return;const n=Date.now(),i=n-e;if(e=n,i<5)return;const r=n-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),r<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const o=this._textArea.getValue();if(this._textAreaState.value!==o)return;const a=this._textArea.getSelectionStart(),s=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===s)return;const l=this._textAreaState.deduceEditorPosition(a),c=this._host.deduceModelPosition(l[0],l[1],l[2]),u=this._textAreaState.deduceEditorPosition(s),d=this._host.deduceModelPosition(u[0],u[1],u[2]),h=new en(c.lineNumber,c.column,d.lineNumber,d.column);this._onSelectionChangeRequest.fire(h)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const e=Vr(this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):tr(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(Jn?this._setAndWriteTextAreaState("focusgain",Ty.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(Py.canUseTextData(e)&&Qi.clipboard.richText),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};Ay.INSTANCE.set(ei?t.text.replace(/\r\n/g,"\n"):t.text,n),Py.canUseTextData(e)?Py.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",Ty.selectedText(t.text))}_firePaste(e,t){t||(t=Ay.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}class Py{static canUseTextData(e){return!!e.clipboardData||!!window.clipboardData}static getTextData(e){if(e.clipboardData){e.preventDefault();const n=e.clipboardData.getData("text/plain");let i=null;const r=e.clipboardData.getData("vscode-editor-data");if("string"===typeof r)try{i=JSON.parse(r),1!==i.version&&(i=null)}catch(t){}return[n,i]}if(window.clipboardData){e.preventDefault();const t=window.clipboardData.getData("Text");return[t,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),"string"===typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class Ry extends Ae{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){const n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}getSelectionStart(){return this._actual.domNode.selectionStart}getSelectionEnd(){return this._actual.domNode.selectionEnd}setSelectionRange(e,t,n){const i=this._actual.domNode;let r=null;const o=Vr(i);r=o?o.activeElement:document.activeElement;const a=r===i,s=i.selectionStart,l=i.selectionEnd;if(a&&s===t&&l===n)ei&&window.parent!==window&&i.focus();else{if(a)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(ei&&window.parent!==window&&i.focus());try{const e=Qr(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),Jr(i,e)}catch(c){}}}}n("1f2d");class Fy extends Wg{}const jy={ColorContribution:"base.contributions.colors"};class By{constructor(){this._onDidChangeSchema=new ze,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){let o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;let a={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(a.deprecationMessage=r),this.colorSchema.properties[e]=a,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n&&n.defaults){const e=n.defaults[t.type];return Mw(e,t)}}getColorSchema(){return this.colorSchema}toString(){let e=(e,t)=>{let n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(e).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}}const zy=new By;function Vy(e,t,n,i,r){return zy.registerColor(e,t,n,i,r)}gh.add(jy.ColorContribution,zy);const $y=Vy("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},r("foreground","Overall foreground color. This color is only used if not overridden by a component.")),Wy=(Vy("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},r("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),Vy("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},r("iconForeground","The default color for icons in the workbench.")),Vy("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},r("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component."))),Hy=Vy("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},r("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),Uy=Vy("contrastActiveBorder",{light:null,dark:null,hc:Wy},r("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),qy=(Vy("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},r("textLinkForeground","Foreground color for links in text.")),Vy("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:Eb.black},r("textCodeBlockBackground","Background color for code blocks in text.")),Vy("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},r("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),Gy=Vy("input.background",{dark:"#3C3C3C",light:Eb.white,hc:Eb.black},r("inputBoxBackground","Input box background.")),Ky=Vy("input.foreground",{dark:$y,light:$y,hc:$y},r("inputBoxForeground","Input box foreground.")),Yy=Vy("input.border",{dark:null,light:null,hc:Hy},r("inputBoxBorder","Input box border.")),Xy=(Vy("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:Hy},r("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),Vy("inputOption.activeBackground",{dark:kw(Wy,.4),light:kw(Wy,.2),hc:Eb.transparent},r("inputOption.activeBackground","Background color of activated options in input fields.")),Vy("inputOption.activeForeground",{dark:Eb.white,light:Eb.black,hc:null},r("inputOption.activeForeground","Foreground color of activated options in input fields.")),Vy("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:Eb.black},r("inputValidationInfoBackground","Input validation background color for information severity."))),Zy=Vy("inputValidation.infoForeground",{dark:null,light:null,hc:null},r("inputValidationInfoForeground","Input validation foreground color for information severity.")),Qy=Vy("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:Hy},r("inputValidationInfoBorder","Input validation border color for information severity.")),Jy=Vy("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:Eb.black},r("inputValidationWarningBackground","Input validation background color for warning severity.")),e_=Vy("inputValidation.warningForeground",{dark:null,light:null,hc:null},r("inputValidationWarningForeground","Input validation foreground color for warning severity.")),t_=Vy("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:Hy},r("inputValidationWarningBorder","Input validation border color for warning severity.")),n_=Vy("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:Eb.black},r("inputValidationErrorBackground","Input validation background color for error severity.")),i_=Vy("inputValidation.errorForeground",{dark:null,light:null,hc:null},r("inputValidationErrorForeground","Input validation foreground color for error severity.")),r_=Vy("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:Hy},r("inputValidationErrorBorder","Input validation border color for error severity.")),o_=Vy("dropdown.background",{dark:"#3C3C3C",light:Eb.white,hc:Eb.black},r("dropdownBackground","Dropdown background.")),a_=Vy("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:Eb.white},r("dropdownForeground","Dropdown foreground.")),s_=Vy("button.foreground",{dark:Eb.white,light:Eb.white,hc:Eb.white},r("buttonForeground","Button foreground color.")),l_=Vy("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},r("buttonBackground","Button background color.")),c_=Vy("button.hoverBackground",{dark:Sw(l_,.2),light:Cw(l_,.2),hc:null},r("buttonHoverBackground","Button background color when hovering.")),u_=Vy("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:Eb.black},r("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),d_=Vy("badge.foreground",{dark:Eb.white,light:"#333",hc:Eb.white},r("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),h_=Vy("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},r("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),f_=Vy("scrollbarSlider.background",{dark:Eb.fromHex("#797979").transparent(.4),light:Eb.fromHex("#646464").transparent(.4),hc:kw(Hy,.6)},r("scrollbarSliderBackground","Scrollbar slider background color.")),p_=Vy("scrollbarSlider.hoverBackground",{dark:Eb.fromHex("#646464").transparent(.7),light:Eb.fromHex("#646464").transparent(.7),hc:kw(Hy,.8)},r("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),g_=Vy("scrollbarSlider.activeBackground",{dark:Eb.fromHex("#BFBFBF").transparent(.4),light:Eb.fromHex("#000000").transparent(.6),hc:Hy},r("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),m_=Vy("progressBar.background",{dark:Eb.fromHex("#0E70C0"),light:Eb.fromHex("#0E70C0"),hc:Hy},r("progressBarBackground","Background color of the progress bar that can show for long running operations.")),v_=Vy("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},r("editorError.foreground","Foreground color of error squigglies in the editor.")),b_=Vy("editorError.border",{dark:null,light:null,hc:Eb.fromHex("#E47777").transparent(.8)},r("errorBorder","Border color of error boxes in the editor.")),y_=Vy("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},r("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),__=Vy("editorWarning.border",{dark:null,light:null,hc:Eb.fromHex("#FFCC00").transparent(.8)},r("warningBorder","Border color of warning boxes in the editor.")),w_=Vy("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},r("editorInfo.foreground","Foreground color of info squigglies in the editor.")),x_=Vy("editorInfo.border",{dark:null,light:null,hc:Eb.fromHex("#75BEFF").transparent(.8)},r("infoBorder","Border color of info boxes in the editor.")),C_=Vy("editorHint.foreground",{dark:Eb.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},r("editorHint.foreground","Foreground color of hint squigglies in the editor.")),S_=Vy("editorHint.border",{dark:null,light:null,hc:Eb.fromHex("#eeeeee").transparent(.8)},r("hintBorder","Border color of hint boxes in the editor.")),k_=Vy("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:Eb.black},r("editorBackground","Editor background color.")),O_=Vy("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:Eb.white},r("editorForeground","Editor default foreground color.")),M_=Vy("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},r("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),D_=Vy("editorWidget.foreground",{dark:$y,light:$y,hc:$y},r("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),E_=Vy("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:Hy},r("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),T_=(Vy("editorWidget.resizeBorder",{light:null,dark:null,hc:null},r("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Vy("quickInput.background",{dark:M_,light:M_,hc:M_},r("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette."))),L_=Vy("quickInput.foreground",{dark:D_,light:D_,hc:D_},r("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),I_=Vy("quickInputTitle.background",{dark:new Eb(new Ob(255,255,255,.105)),light:new Eb(new Ob(0,0,0,.06)),hc:"#000000"},r("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),A_=Vy("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:Eb.white},r("pickerGroupForeground","Quick picker color for grouping labels.")),N_=Vy("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:Eb.white},r("pickerGroupBorder","Quick picker color for grouping borders.")),P_=Vy("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},r("editorSelectionBackground","Color of the editor selection.")),R_=Vy("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},r("editorSelectionForeground","Color of the selected text for high contrast.")),F_=Vy("editor.inactiveSelectionBackground",{light:kw(P_,.5),dark:kw(P_,.5),hc:kw(P_,.5)},r("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),j_=Vy("editor.selectionHighlightBackground",{light:Ow(P_,k_,.3,.6),dark:Ow(P_,k_,.3,.6),hc:null},r("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),B_=(Vy("editor.selectionHighlightBorder",{light:null,dark:null,hc:Uy},r("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Vy("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},r("editorFindMatch","Color of the current search match.")),Vy("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},r("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0)),z_=(Vy("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},r("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("editor.findMatchBorder",{light:null,dark:null,hc:Uy},r("editorFindMatchBorder","Border color of the current search match.")),Vy("editor.findMatchHighlightBorder",{light:null,dark:null,hc:Uy},r("findMatchHighlightBorder","Border color of the other search matches.")),Vy("editor.findRangeHighlightBorder",{dark:null,light:null,hc:kw(Uy,.4)},r("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},r("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("editorHoverWidget.background",{light:M_,dark:M_,hc:M_},r("hoverBackground","Background color of the editor hover."))),V_=(Vy("editorHoverWidget.foreground",{light:D_,dark:D_,hc:D_},r("hoverForeground","Foreground color of the editor hover.")),Vy("editorHoverWidget.border",{light:E_,dark:E_,hc:E_},r("hoverBorder","Border color of the editor hover.")),Vy("editorHoverWidget.statusBarBackground",{dark:Sw(z_,.2),light:Cw(z_,.05),hc:M_},r("statusBarBackground","Background color of the editor hover status bar.")),Vy("editorLink.activeForeground",{dark:"#4E94CE",light:Eb.blue,hc:Eb.cyan},r("activeLinkForeground","Color of active links.")),Vy("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},r("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Vy("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},r("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),new Eb(new Ob(155,185,85,.2))),$_=new Eb(new Ob(255,0,0,.2)),W_=Vy("diffEditor.insertedTextBackground",{dark:V_,light:V_,hc:null},r("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),H_=Vy("diffEditor.removedTextBackground",{dark:$_,light:$_,hc:null},r("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),U_=Vy("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},r("diffEditorInsertedOutline","Outline color for the text that got inserted.")),q_=Vy("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},r("diffEditorRemovedOutline","Outline color for text that got removed.")),G_=Vy("diffEditor.border",{dark:null,light:null,hc:Hy},r("diffEditorBorder","Border color between the two text editors.")),K_=Vy("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},r("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Y_=Vy("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},r("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),X_=Vy("list.focusForeground",{dark:null,light:null,hc:null},r("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Z_=Vy("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},r("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Q_=Vy("list.activeSelectionForeground",{dark:Eb.white,light:Eb.white,hc:null},r("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),J_=Vy("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},r("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ew=Vy("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},r("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),tw=Vy("list.inactiveFocusBackground",{dark:null,light:null,hc:null},r("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),nw=Vy("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},r("listHoverBackground","List/Tree background when hovering over items using the mouse.")),iw=Vy("list.hoverForeground",{dark:null,light:null,hc:null},r("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),rw=Vy("list.dropBackground",{dark:Y_,light:Y_,hc:null},r("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),ow=(Vy("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:Wy},r("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Vy("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:Eb.black},r("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),aw=Vy("listFilterWidget.outline",{dark:Eb.transparent,light:Eb.transparent,hc:"#f38518"},r("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),sw=Vy("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:Hy},r("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),lw=Vy("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},r("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),cw=Vy("menu.border",{dark:null,light:null,hc:Hy},r("menuBorder","Border color of menus.")),uw=Vy("menu.foreground",{dark:a_,light:$y,hc:a_},r("menuForeground","Foreground color of menu items.")),dw=Vy("menu.background",{dark:o_,light:o_,hc:o_},r("menuBackground","Background color of menu items.")),hw=Vy("menu.selectionForeground",{dark:Q_,light:Q_,hc:Q_},r("menuSelectionForeground","Foreground color of the selected menu item in menus.")),fw=Vy("menu.selectionBackground",{dark:Z_,light:Z_,hc:Z_},r("menuSelectionBackground","Background color of the selected menu item in menus.")),pw=Vy("menu.selectionBorder",{dark:null,light:null,hc:Uy},r("menuSelectionBorder","Border color of the selected menu item in menus.")),gw=Vy("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:Hy},r("menuSeparatorBackground","Color of a separator menu item in menus.")),mw=(Vy("editor.snippetTabstopHighlightBackground",{dark:new Eb(new Ob(124,124,124,.3)),light:new Eb(new Ob(10,50,100,.2)),hc:new Eb(new Ob(124,124,124,.3))},r("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Vy("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},r("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Vy("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},r("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Vy("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Eb(new Ob(10,50,100,.5)),hc:"#525252"},r("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Vy("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},r("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},r("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},r("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Vy("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},r("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0)),vw=Vy("minimap.errorHighlight",{dark:new Eb(new Ob(255,18,18,.7)),light:new Eb(new Ob(255,18,18,.7)),hc:new Eb(new Ob(255,50,50,1))},r("minimapError","Minimap marker color for errors.")),bw=Vy("minimap.warningHighlight",{dark:y_,light:y_,hc:__},r("overviewRuleWarning","Minimap marker color for warnings.")),yw=Vy("minimap.background",{dark:null,light:null,hc:null},r("minimapBackground","Minimap background color.")),_w=Vy("minimapSlider.background",{light:kw(f_,.5),dark:kw(f_,.5),hc:kw(f_,.5)},r("minimapSliderBackground","Minimap slider background color.")),ww=Vy("minimapSlider.hoverBackground",{light:kw(p_,.5),dark:kw(p_,.5),hc:kw(p_,.5)},r("minimapSliderHoverBackground","Minimap slider background color when hovering.")),xw=Vy("minimapSlider.activeBackground",{light:kw(g_,.5),dark:kw(g_,.5),hc:kw(g_,.5)},r("minimapSliderActiveBackground","Minimap slider background color when clicked on."));function Cw(e,t){return n=>{let i=Mw(e,n);if(i)return i.darken(t)}}function Sw(e,t){return n=>{let i=Mw(e,n);if(i)return i.lighten(t)}}function kw(e,t){return n=>{let i=Mw(e,n);if(i)return i.transparent(t)}}function Ow(e,t,n,i){return r=>{let o=Mw(e,r);if(o){let e=Mw(t,r);return e?o.isDarkerThan(e)?Eb.getLighterColor(o,e,n).transparent(i):Eb.getDarkerColor(o,e,n).transparent(i):o.transparent(n*i)}}}function Mw(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?Eb.fromHex(e):t.getColor(e):e instanceof Eb?e:"function"===typeof e?e(t):void 0}Vy("problemsErrorIcon.foreground",{dark:v_,light:v_,hc:v_},r("problemsErrorIconForeground","The color used for the problems error icon.")),Vy("problemsWarningIcon.foreground",{dark:y_,light:y_,hc:y_},r("problemsWarningIconForeground","The color used for the problems warning icon.")),Vy("problemsInfoIcon.foreground",{dark:w_,light:w_,hc:w_},r("problemsInfoIconForeground","The color used for the problems info icon."));const Dw="vscode://schemas/workbench-colors";let Ew=gh.as(mh.JSONContribution);Ew.registerSchema(Dw,zy.getColorSchema());const Tw=new Ti(()=>Ew.notifySchemaChanged(Dw),200);zy.onDidChangeSchema(()=>{Tw.isScheduled()||Tw.schedule()});const Lw=Vy("editor.lineHighlightBackground",{dark:null,light:null,hc:null},r("lineHighlight","Background color for the highlight of line at the cursor position.")),Iw=Vy("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},r("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),Aw=Vy("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},r("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),Nw=Vy("editor.rangeHighlightBorder",{dark:null,light:null,hc:Uy},r("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),Pw=Vy("editor.symbolHighlightBackground",{dark:B_,light:B_,hc:null},r("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),Rw=Vy("editor.symbolHighlightBorder",{dark:null,light:null,hc:Uy},r("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),Fw=Vy("editorCursor.foreground",{dark:"#AEAFAD",light:Eb.black,hc:Eb.white},r("caret","Color of the editor cursor.")),jw=Vy("editorCursor.background",null,r("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),Bw=Vy("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},r("editorWhitespaces","Color of whitespace characters in the editor.")),zw=Vy("editorIndentGuide.background",{dark:Bw,light:Bw,hc:Bw},r("editorIndentGuides","Color of the editor indentation guides.")),Vw=Vy("editorIndentGuide.activeBackground",{dark:Bw,light:Bw,hc:Bw},r("editorActiveIndentGuide","Color of the active editor indentation guides.")),$w=Vy("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:Eb.white},r("editorLineNumbers","Color of editor line numbers.")),Ww=Vy("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:Uy},r("editorActiveLineNumber","Color of editor active line number"),!1,r("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),Hw=Vy("editorLineNumber.activeForeground",{dark:Ww,light:Ww,hc:Ww},r("editorActiveLineNumber","Color of editor active line number")),Uw=Vy("editorRuler.foreground",{dark:"#5A5A5A",light:Eb.lightgrey,hc:Eb.white},r("editorRuler","Color of the editor rulers.")),qw=(Vy("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},r("editorCodeLensForeground","Foreground color of editor CodeLens")),Vy("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},r("editorBracketMatchBackground","Background color behind matching brackets")),Vy("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:Hy},r("editorBracketMatchBorder","Color for matching brackets boxes")),Vy("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},r("editorOverviewRulerBorder","Color of the overview ruler border."))),Gw=Vy("editorOverviewRuler.background",null,r("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),Kw=Vy("editorGutter.background",{dark:k_,light:k_,hc:k_},r("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),Yw=Vy("editorUnnecessaryCode.border",{dark:null,light:null,hc:Eb.fromHex("#fff").transparent(.8)},r("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),Xw=Vy("editorUnnecessaryCode.opacity",{dark:Eb.fromHex("#000a"),light:Eb.fromHex("#0007"),hc:null},r("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),Zw=new Eb(new Ob(0,122,204,.6)),Qw=(Vy("editorOverviewRuler.rangeHighlightForeground",{dark:Zw,light:Zw,hc:Zw},r("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Vy("editorOverviewRuler.errorForeground",{dark:new Eb(new Ob(255,18,18,.7)),light:new Eb(new Ob(255,18,18,.7)),hc:new Eb(new Ob(255,50,50,1))},r("overviewRuleError","Overview ruler marker color for errors."))),Jw=Vy("editorOverviewRuler.warningForeground",{dark:y_,light:y_,hc:__},r("overviewRuleWarning","Overview ruler marker color for warnings.")),ex=Vy("editorOverviewRuler.infoForeground",{dark:w_,light:w_,hc:x_},r("overviewRuleInfo","Overview ruler marker color for infos."));cm((e,t)=>{const n=e.getColor(k_);n&&t.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${n}; }`);const i=e.getColor(O_);i&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const r=e.getColor(Kw);r&&t.addRule(`.monaco-editor .margin { background-color: ${r}; }`);const o=e.getColor(Aw);o&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${o}; }`);const a=e.getColor(Nw);a&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${a}; }`);const s=e.getColor(Pw);s&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${s}; }`);const l=e.getColor(Rw);l&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${l}; }`);const c=e.getColor(Bw);c&&(t.addRule(`.monaco-editor .mtkw { color: ${c} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${c} !important; }`))});class tx extends Fy{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new Qt(1,1),this._renderResult=null,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(51);const t=e.get(52);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(76);const n=e.get(117);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e,1));if(1!==t.column)return"";const n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===e?'<span class="relative-current-line-number">'+n+"</span>":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=o["d"]?this._lineHeight%2===0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r='<div class="'+tx.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">',a=this._context.model.getLineCount(),s=[];for(let o=n;o<=i;o++){const e=o-n;if(!this._renderFinalNewline&&o===a&&0===this._context.model.getLineLength(o)){s[e]="";continue}const t=this._getLineRenderLineNumber(o);s[e]=t?r+t+"</div>":""}this._renderResult=s}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}tx.CLASS_NAME="line-numbers",cm((e,t)=>{const n=e.getColor($w);n&&t.addRule(`.monaco-editor .line-numbers { color: ${n}; }`);const i=e.getColor(Hw);i&&t.addRule(`.monaco-editor .current-line ~ .line-numbers { color: ${i}; }`)});class nx extends Hg{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._canUseLayerHinting=!t.get(23),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._domNode=Og(document.createElement("div")),this._domNode.setClassName(nx.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Og(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(nx.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._canUseLayerHinting=!t.get(23),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)}}nx.CLASS_NAME="glyph-margin",nx.OUTER_CLASS_NAME="margin",n("53d7");const ix="monaco-mouse-cursor-text";class rx{constructor(e,t,n){this.top=e,this.left=t,this.width=n}setWidth(e){return new rx(this.top,this.left,e)}}const ox=Jn||ei;class ax extends Hg{constructor(e,t,n){super(e),this._primaryCursorPosition=new Qt(1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=n,this._scrollLeft=0,this._scrollTop=0;const i=this._context.configuration.options,a=i.get(117);this._setAccessibilityOptions(i),this._contentLeft=a.contentLeft,this._contentWidth=a.contentWidth,this._contentHeight=a.height,this._fontInfo=i.get(36),this._lineHeight=i.get(51),this._emptySelectionClipboard=i.get(26),this._copyWithSyntaxHighlighting=i.get(16),this._visibleTextArea=null,this._selections=[new en(1,1,1,1)],this._modelSelections=[new en(1,1,1,1)],this._lastRenderPosition=null,this.textArea=Og(document.createElement("textarea")),Ug.write(this.textArea,6),this.textArea.setClassName("inputarea "+ix),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),this.textArea.setAttribute("tabindex",String(i.get(102))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",r("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),o["h"]&&i.get(72)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Og(document.createElement("div")),this.textAreaCover.setPosition("absolute");const s={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)},l={getDataToCopy:e=>{const t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,o["i"]),n=this._context.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,a=Array.isArray(t)?t.join(n):t;let s=void 0,l=null;if(e&&(Iy.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&a.length<65536)){const e=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,l=e.mode)}return{isFromEmptySelection:i,multicursorText:r,text:a,html:s,mode:l}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(o["f"]){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let n=this._getWordBeforePosition(t);if(0===n.length&&(n=this._getCharacterBeforePosition(t)),n.length>0)return new Ty(n,n.length,n.length,t,t)}}return Ty.EMPTY}return Ly.fromEditorSelection(e,s,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,n)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)};this._textAreaInput=this._register(new Ny(l,this.textArea)),this._register(this._textAreaInput.onKeyDown(e=>{this._viewController.emitKeyDown(e)})),this._register(this._textAreaInput.onKeyUp(e=>{this._viewController.emitKeyUp(e)})),this._register(this._textAreaInput.onPaste(e=>{let t=!1,n=null,i=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),this._viewController.paste(e.text,t,n,i)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(e=>{e.replaceCharCnt?this._viewController.replacePreviousChar(e.text,e.replaceCharCnt):this._viewController.type(e.text)})),this._register(this._textAreaInput.onSelectionChangeRequest(e=>{this._viewController.setSelection(e)})),this._register(this._textAreaInput.onCompositionStart(e=>{const t=this._selections[0].startLineNumber,n=this._selections[0].startColumn-(e.moveOneCharacterLeft?1:0);this._context.model.revealRange("keyboard",!0,new Jt(t,n,t,n),0,1);const i=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,n);i&&(this._visibleTextArea=new rx(this._context.viewLayout.getVerticalOffsetForLineNumber(t),i.left,ox?0:1),this._render()),this.textArea.setClassName(`inputarea ${ix} ime-input`),this._viewController.compositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(e=>{this._visibleTextArea=Jn?this._visibleTextArea.setWidth(0):this._visibleTextArea.setWidth(sx(e.data,this._fontInfo)),this._render()})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+ix),this._viewController.compositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getWordBeforePosition(e){const t=this._context.model.getLineContent(e.lineNumber),n=Iv(this._context.configuration.options.get(105));let i=e.column,r=0;while(i>1){const o=t.charCodeAt(i-2),a=n.get(o);if(0!==a||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.model.getLineContent(e.lineNumber),n=t.charAt(e.column-2);if(!xo["D"](n.charCodeAt(0)))return n}return""}_getAriaLabel(e){const t=e.get(2);return 1===t?r("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",o["d"]?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===he.accessibilityPageSize.defaultValue?this._accessibilityPageSize=100:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(36),this._lineHeight=t.get(51),this._emptySelectionClipboard=t.get(26),this._copyWithSyntaxHighlighting=t.get(16),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(102))),o["h"]&&e.hasChanged(72)&&(t.get(72)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(e){e.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",e.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new Qt(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():o["f"]?this._renderInsideEditor(this._primaryCursorPosition,t,e,ox?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,ox?0:1,ox?0:1)}_renderInsideEditor(e,t,n,i,r){this._lastRenderPosition=e;const o=this.textArea,a=this.textAreaCover;Ep.applyFontInfo(o,this._fontInfo),o.setTop(t),o.setLeft(n),o.setWidth(i),o.setHeight(r),a.setTop(0),a.setLeft(0),a.setWidth(0),a.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const e=this.textArea,t=this.textAreaCover;if(Ep.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ox)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1);const n=this._context.configuration.options;n.get(42)?t.setClassName("monaco-editor-background textAreaCover "+nx.OUTER_CLASS_NAME):0!==n.get(52).renderType?t.setClassName("monaco-editor-background textAreaCover "+tx.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")}}function sx(e,t){const n=document.createElement("canvas"),i=n.getContext("2d");i.font=lx(t);const r=i.measureText(e);return ei?r.width+2:r.width}function lx(e){return cx("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function cx(e,t,n,i,r){return`${e} normal ${t} ${n}px / ${i}px ${r}`}class ux{static columnSelect(e,t,n,i,r,o){let a=Math.abs(r-n)+1,s=n>r,l=i>o,c=i<o,u=[];for(let d=0;d<a;d++){let r=n+(s?-d:d),a=ly.columnFromVisibleColumn2(e,t,r,i),h=ly.columnFromVisibleColumn2(e,t,r,o),f=ly.visibleColumnFromColumn2(e,t,new Qt(r,a)),p=ly.visibleColumnFromColumn2(e,t,new Qt(r,h));if(c){if(f>o)continue;if(p<i)continue}if(l){if(p>i)continue;if(f<o)continue}u.push(new ny(new Jt(r,a,r,a),0,new Qt(r,h),0))}if(0===u.length)for(let d=0;d<a;d++){const e=n+(s?-d:d),i=t.getLineMaxColumn(e);u.push(new ny(new Jt(e,i,e,i),0,new Qt(e,i),0))}return{viewStates:u,reversed:s,fromLineNumber:n,fromVisualColumn:i,toLineNumber:r,toVisualColumn:o}}static columnSelectLeft(e,t,n){let i=n.toViewVisualColumn;return i>1&&i--,ux.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,i)}static columnSelectRight(e,t,n){let i=0;const r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber);for(let s=r;s<=o;s++){const n=t.getLineMaxColumn(s),r=ly.visibleColumnFromColumn2(e,t,new Qt(s,n));i=Math.max(i,r)}let a=n.toViewVisualColumn;return a<i&&a++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,a)}static columnSelectUp(e,t,n,i){const r=i?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}static columnSelectDown(e,t,n,i){const r=i?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}}class dx{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range;return new en(i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)}}class hx{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range;return new en(i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)}}class fx{constructor(e,t,n,i,r=!1){this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=r}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range;return new en(i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)}}class px{constructor(e,t,n,i=!1){this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class gx{constructor(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}}class mx{static leftPosition(e,t,n){return n>e.getLineMinColumn(t)?n-=xo["K"](e.getLineContent(t),n-1):t>1&&(t-=1,n=e.getLineMaxColumn(t)),new Qt(t,n)}static left(e,t,n,i){const r=mx.leftPosition(t,n,i);return new gx(r.lineNumber,r.column,0)}static moveLeft(e,t,n,i,r){let o,a;if(n.hasSelection()&&!i)o=n.selection.startLineNumber,a=n.selection.startColumn;else{let i=mx.left(e,t,n.position.lineNumber,n.position.column-(r-1));o=i.lineNumber,a=i.column}return n.move(i,o,a,0)}static rightPosition(e,t,n){return n<e.getLineMaxColumn(t)?n+=xo["J"](e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new Qt(t,n)}static right(e,t,n,i){const r=mx.rightPosition(t,n,i);return new gx(r.lineNumber,r.column,0)}static moveRight(e,t,n,i,r){let o,a;if(n.hasSelection()&&!i)o=n.selection.endLineNumber,a=n.selection.endColumn;else{let i=mx.right(e,t,n.position.lineNumber,n.position.column+(r-1));o=i.lineNumber,a=i.column}return n.move(i,o,a,0)}static down(e,t,n,i,r,o,a){const s=ly.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+r,l=t.getLineCount(),c=n===l&&i===t.getLineMaxColumn(n);return n+=o,n>l?(n=l,i=a?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),i)):i=ly.columnFromVisibleColumn2(e,t,n,s),r=c?0:s-ly.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new gx(n,i,r)}static moveDown(e,t,n,i,r){let o,a;n.hasSelection()&&!i?(o=n.selection.endLineNumber,a=n.selection.endColumn):(o=n.position.lineNumber,a=n.position.column);let s=mx.down(e,t,o,a,n.leftoverVisibleColumns,r,!0);return n.move(i,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateDown(e,t,n){let i=n.selection,r=mx.down(e,t,i.selectionStartLineNumber,i.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),o=mx.down(e,t,i.positionLineNumber,i.positionColumn,n.leftoverVisibleColumns,1,!1);return new ny(new Jt(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new Qt(o.lineNumber,o.column),o.leftoverVisibleColumns)}static up(e,t,n,i,r,o,a){const s=ly.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+r,l=1===n&&1===i;return n-=o,n<1?(n=1,i=a?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),i)):i=ly.columnFromVisibleColumn2(e,t,n,s),r=l?0:s-ly.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new gx(n,i,r)}static moveUp(e,t,n,i,r){let o,a;n.hasSelection()&&!i?(o=n.selection.startLineNumber,a=n.selection.startColumn):(o=n.position.lineNumber,a=n.position.column);let s=mx.up(e,t,o,a,n.leftoverVisibleColumns,r,!0);return n.move(i,s.lineNumber,s.column,s.leftoverVisibleColumns)}static translateUp(e,t,n){let i=n.selection,r=mx.up(e,t,i.selectionStartLineNumber,i.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),o=mx.up(e,t,i.positionLineNumber,i.positionColumn,n.leftoverVisibleColumns,1,!1);return new ny(new Jt(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new Qt(o.lineNumber,o.column),o.leftoverVisibleColumns)}static moveToBeginningOfLine(e,t,n,i){let r,o=n.position.lineNumber,a=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||a,l=n.position.column;return r=l===s?a:s,n.move(i,o,r,0)}static moveToEndOfLine(e,t,n,i,r){let o=n.position.lineNumber,a=t.getLineMaxColumn(o);return n.move(i,o,a,r?1073741824-a:0)}static moveToBeginningOfBuffer(e,t,n,i){return n.move(i,1,1,0)}static moveToEndOfBuffer(e,t,n,i){let r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)}}class vx{static deleteRight(e,t,n,i){let r=[],o=3!==e;for(let a=0,s=i.length;a<s;a++){const e=i[a];let s=e;if(s.isEmpty()){let i=e.getPosition(),r=mx.right(t,n,i.lineNumber,i.column);s=new Jt(r.lineNumber,r.column,i.lineNumber,i.column)}s.isEmpty()?r[a]=null:(s.startLineNumber!==s.endLineNumber&&(o=!0),r[a]=new dx(s,""))}return[o,r]}static _isAutoClosingPairDelete(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(let i=0,r=n.length;i<r;i++){const r=n[i],o=r.getPosition();if(!r.isEmpty())return!1;const a=t.getLineContent(o.lineNumber),s=a[o.column-2],l=e.autoClosingPairsOpen2.get(s);if(!l)return!1;if(cy(s)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;const c=a[o.column-1];let u=!1;for(const e of l)e.open===s&&e.close===c&&(u=!0);if(!u)return!1}return!0}static _runAutoClosingPairDelete(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++){const e=n[r].getPosition(),t=new Jt(e.lineNumber,e.column-1,e.lineNumber,e.column+1);i[r]=new dx(t,"")}return[!0,i]}static deleteLeft(e,t,n,i){if(this._isAutoClosingPairDelete(t,n,i))return this._runAutoClosingPairDelete(t,n,i);let r=[],o=2!==e;for(let a=0,s=i.length;a<s;a++){const e=i[a];let s=e;if(s.isEmpty()){let i=e.getPosition();if(t.useTabStops&&i.column>1){let e=n.getLineContent(i.lineNumber),r=xo["u"](e),o=-1===r?e.length+1:r+1;if(i.column<=o){let e=ly.visibleColumnFromColumn2(t,n,i),r=ly.prevIndentTabStop(e,t.indentSize),o=ly.columnFromVisibleColumn2(t,n,i.lineNumber,r);s=new Jt(i.lineNumber,o,i.lineNumber,i.column)}else s=new Jt(i.lineNumber,i.column-1,i.lineNumber,i.column)}else{let e=mx.left(t,n,i.lineNumber,i.column);s=new Jt(e.lineNumber,e.column,i.lineNumber,i.column)}}s.isEmpty()?r[a]=null:(s.startLineNumber!==s.endLineNumber&&(o=!0),r[a]=new dx(s,""))}return[o,r]}static cut(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++){const o=n[r];if(o.isEmpty())if(e.emptySelectionClipboard){let e,n,a,s,l=o.getPosition();l.lineNumber<t.getLineCount()?(e=l.lineNumber,n=1,a=l.lineNumber+1,s=1):l.lineNumber>1?(e=l.lineNumber-1,n=t.getLineMaxColumn(l.lineNumber-1),a=l.lineNumber,s=t.getLineMaxColumn(l.lineNumber)):(e=l.lineNumber,n=1,a=l.lineNumber,s=t.getLineMaxColumn(l.lineNumber));let c=new Jt(e,n,a,s);c.isEmpty()?i[r]=null:i[r]=new dx(c,"")}else i[r]=null;else i[r]=new dx(o,"")}return new sy(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}class bx{static _createWord(e,t,n,i,r){return{start:i,end:r,wordType:t,nextCharClass:n}}static _findPreviousWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)}static _doFindPreviousWordOnLine(e,t,n){let i=0;for(let r=n.column-2;r>=0;r--){let n=e.charCodeAt(r),o=t.get(n);if(0===o){if(2===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===o){if(1===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===o&&0!==i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null}static _findEndOfWord(e,t,n,i){let r=e.length;for(let o=i;o<r;o++){let i=e.charCodeAt(o),r=t.get(i);if(1===r)return o;if(1===n&&2===r)return o;if(2===n&&0===r)return o}return r}static _findNextWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)}static _doFindNextWordOnLine(e,t,n){let i=0,r=e.length;for(let o=n.column-1;o<r;o++){let n=e.charCodeAt(o),r=t.get(n);if(0===r){if(2===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=1}else if(2===r){if(1===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=2}else if(1===r&&0!==i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,r-1),r):null}static _findStartOfWord(e,t,n,i){for(let r=i;r>=0;r--){let i=e.charCodeAt(r),o=t.get(i);if(1===o)return r+1;if(1===n&&2===o)return r+1;if(2===n&&0===o)return r+1}return 0}static moveWordLeft(e,t,n,i){let r=n.lineNumber,o=n.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let a=bx._findPreviousWordOnLine(e,t,new Qt(r,o));if(0===i)return new Qt(r,a?a.start+1:1);if(1===i)return a&&2===a.wordType&&a.end-a.start===1&&0===a.nextCharClass&&(a=bx._findPreviousWordOnLine(e,t,new Qt(r,a.start+1))),new Qt(r,a?a.start+1:1);if(3===i){while(a&&2===a.wordType)a=bx._findPreviousWordOnLine(e,t,new Qt(r,a.start+1));return new Qt(r,a?a.start+1:1)}return a&&o<=a.end+1&&(a=bx._findPreviousWordOnLine(e,t,new Qt(r,a.start+1))),new Qt(r,a?a.end+1:1)}static _moveWordPartLeft(e,t){const n=t.lineNumber,i=e.getLineMaxColumn(n);if(1===t.column)return n>1?new Qt(n-1,e.getLineMaxColumn(n-1)):t;const r=e.getLineContent(n);for(let o=t.column-1;o>1;o--){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95===e&&95!==t)return new Qt(n,o);if(xo["F"](e)&&xo["G"](t))return new Qt(n,o);if(xo["G"](e)&&xo["G"](t)&&o+1<i){const e=r.charCodeAt(o);if(xo["F"](e))return new Qt(n,o)}}return new Qt(n,1)}static moveWordRight(e,t,n,i){let r=n.lineNumber,o=n.column,a=!1;o===t.getLineMaxColumn(r)&&r<t.getLineCount()&&(a=!0,r+=1,o=1);let s=bx._findNextWordOnLine(e,t,new Qt(r,o));if(2===i)s&&2===s.wordType&&s.end-s.start===1&&0===s.nextCharClass&&(s=bx._findNextWordOnLine(e,t,new Qt(r,s.end+1))),o=s?s.end+1:t.getLineMaxColumn(r);else if(3===i){a&&(o=0);while(s&&(2===s.wordType||s.start+1<=o))s=bx._findNextWordOnLine(e,t,new Qt(r,s.end+1));o=s?s.start+1:t.getLineMaxColumn(r)}else s&&!a&&o>=s.start+1&&(s=bx._findNextWordOnLine(e,t,new Qt(r,s.end+1))),o=s?s.start+1:t.getLineMaxColumn(r);return new Qt(r,o)}static _moveWordPartRight(e,t){const n=t.lineNumber,i=e.getLineMaxColumn(n);if(t.column===i)return n<e.getLineCount()?new Qt(n+1,1):t;const r=e.getLineContent(n);for(let o=t.column+1;o<i;o++){const e=r.charCodeAt(o-2),t=r.charCodeAt(o-1);if(95!==e&&95===t)return new Qt(n,o);if(xo["F"](e)&&xo["G"](t))return new Qt(n,o);if(xo["G"](e)&&xo["G"](t)&&o+1<i){const e=r.charCodeAt(o);if(xo["F"](e))return new Qt(n,o)}}return new Qt(n,i)}static _deleteWordLeftWhitespace(e,t){const n=e.getLineContent(t.lineNumber),i=t.column-2,r=xo["H"](n,i);return r+1<i?new Jt(t.lineNumber,r+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t,n,i,r){if(!n.isEmpty())return n;const o=new Qt(n.positionLineNumber,n.positionColumn);let a=o.lineNumber,s=o.column;if(1===a&&1===s)return null;if(i){let e=this._deleteWordLeftWhitespace(t,o);if(e)return e}let l=bx._findPreviousWordOnLine(e,t,o);return 0===r?l?s=l.start+1:s>1?s=1:(a--,s=t.getLineMaxColumn(a)):(l&&s<=l.end+1&&(l=bx._findPreviousWordOnLine(e,t,new Qt(a,l.start+1))),l?s=l.end+1:s>1?s=1:(a--,s=t.getLineMaxColumn(a))),new Jt(a,s,o.lineNumber,o.column)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=bx._moveWordPartLeft(e,n);return new Jt(n.lineNumber,n.column,i.lineNumber,i.column)}static _findFirstNonWhitespaceChar(e,t){let n=e.length;for(let i=t;i<n;i++){let t=e.charAt(i);if(" "!==t&&"\t"!==t)return i}return n}static _deleteWordRightWhitespace(e,t){const n=e.getLineContent(t.lineNumber),i=t.column-1,r=this._findFirstNonWhitespaceChar(n,i);return i+1<r?new Jt(t.lineNumber,t.column,t.lineNumber,r+1):null}static deleteWordRight(e,t,n,i,r){if(!n.isEmpty())return n;const o=new Qt(n.positionLineNumber,n.positionColumn);let a=o.lineNumber,s=o.column;const l=t.getLineCount(),c=t.getLineMaxColumn(a);if(a===l&&s===c)return null;if(i){let e=this._deleteWordRightWhitespace(t,o);if(e)return e}let u=bx._findNextWordOnLine(e,t,o);return 2===r?u?s=u.end+1:s<c||a===l?s=c:(a++,u=bx._findNextWordOnLine(e,t,new Qt(a,1)),s=u?u.start+1:t.getLineMaxColumn(a)):(u&&s>=u.start+1&&(u=bx._findNextWordOnLine(e,t,new Qt(a,u.end+1))),u?s=u.start+1:s<c||a===l?s=c:(a++,u=bx._findNextWordOnLine(e,t,new Qt(a,1)),s=u?u.start+1:t.getLineMaxColumn(a))),new Jt(a,s,o.lineNumber,o.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=bx._moveWordPartRight(e,n);return new Jt(n.lineNumber,n.column,i.lineNumber,i.column)}static _createWordAtPosition(e,t,n){const i=new Jt(t,n.start+1,t,n.end+1);return{word:e.getValueInRange(i),startColumn:i.startColumn,endColumn:i.endColumn}}static getWordAtPosition(e,t,n){const i=Iv(t),r=bx._findPreviousWordOnLine(i,e,n);if(r&&1===r.wordType&&r.start<=n.column-1&&n.column-1<=r.end)return bx._createWordAtPosition(e,n.lineNumber,r);const o=bx._findNextWordOnLine(i,e,n);return o&&1===o.wordType&&o.start<=n.column-1&&n.column-1<=o.end?bx._createWordAtPosition(e,n.lineNumber,o):null}static word(e,t,n,i,r){const o=Iv(e.wordSeparators);let a,s,l=bx._findPreviousWordOnLine(o,t,r),c=bx._findNextWordOnLine(o,t,r);if(!i){let e,n;return l&&1===l.wordType&&l.start<=r.column-1&&r.column-1<=l.end?(e=l.start+1,n=l.end+1):c&&1===c.wordType&&c.start<=r.column-1&&r.column-1<=c.end?(e=c.start+1,n=c.end+1):(e=l?l.end+1:1,n=c?c.start+1:t.getLineMaxColumn(r.lineNumber)),new ny(new Jt(r.lineNumber,e,r.lineNumber,n),0,new Qt(r.lineNumber,n),0)}l&&1===l.wordType&&l.start<r.column-1&&r.column-1<l.end?(a=l.start+1,s=l.end+1):c&&1===c.wordType&&c.start<r.column-1&&r.column-1<c.end?(a=c.start+1,s=c.end+1):(a=r.column,s=r.column);let u,d=r.lineNumber;if(n.selectionStart.containsPosition(r))u=n.selectionStart.endColumn;else if(r.isBeforeOrEqual(n.selectionStart.getStartPosition())){u=a;let e=new Qt(d,u);n.selectionStart.containsPosition(e)&&(u=n.selectionStart.endColumn)}else{u=s;let e=new Qt(d,u);n.selectionStart.containsPosition(e)&&(u=n.selectionStart.startColumn)}return n.move(!0,d,u,0)}}class yx{static addCursorDown(e,t,n){let i=[],r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];i[r++]=new ay(a.modelState,a.viewState),i[r++]=n?ay.fromModelState(mx.translateDown(e.cursorConfig,e.model,a.modelState)):ay.fromViewState(mx.translateDown(e.cursorConfig,e,a.viewState))}return i}static addCursorUp(e,t,n){let i=[],r=0;for(let o=0,a=t.length;o<a;o++){const a=t[o];i[r++]=new ay(a.modelState,a.viewState),i[r++]=n?ay.fromModelState(mx.translateUp(e.cursorConfig,e.model,a.modelState)):ay.fromViewState(mx.translateUp(e.cursorConfig,e,a.viewState))}return i}static moveToBeginningOfLine(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];i[r]=this._moveToLineStart(e,o,n)}return i}static _moveToLineStart(e,t,n){const i=t.viewState.position.column,r=t.modelState.position.column,o=i===r,a=t.viewState.position.lineNumber,s=e.getLineFirstNonWhitespaceColumn(a),l=i===s;return o||l?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)}static _moveToLineStartByView(e,t,n){return ay.fromViewState(mx.moveToBeginningOfLine(e.cursorConfig,e,t.viewState,n))}static _moveToLineStartByModel(e,t,n){return ay.fromModelState(mx.moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,n))}static moveToEndOfLine(e,t,n,i){let r=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];r[o]=this._moveToLineEnd(e,a,n,i)}return r}static _moveToLineEnd(e,t,n,i){const r=t.viewState.position,o=e.getLineMaxColumn(r.lineNumber),a=r.column===o,s=t.modelState.position,l=e.model.getLineMaxColumn(s.lineNumber),c=o-r.column===l-s.column;return a||c?this._moveToLineEndByModel(e,t,n,i):this._moveToLineEndByView(e,t,n,i)}static _moveToLineEndByView(e,t,n,i){return ay.fromViewState(mx.moveToEndOfLine(e.cursorConfig,e,t.viewState,n,i))}static _moveToLineEndByModel(e,t,n,i){return ay.fromModelState(mx.moveToEndOfLine(e.cursorConfig,e.model,t.modelState,n,i))}static expandLineSelection(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],o=r.modelState.selection.startLineNumber,a=e.model.getLineCount();let s,l=r.modelState.selection.endLineNumber;l===a?s=e.model.getLineMaxColumn(a):(l++,s=1),n[i]=ay.fromModelState(new ny(new Jt(o,1,o,1),0,new Qt(l,s),0))}return n}static moveToBeginningOfBuffer(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];i[r]=ay.fromModelState(mx.moveToBeginningOfBuffer(e.cursorConfig,e.model,o.modelState,n))}return i}static moveToEndOfBuffer(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];i[r]=ay.fromModelState(mx.moveToEndOfBuffer(e.cursorConfig,e.model,o.modelState,n))}return i}static selectAll(e,t){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return ay.fromModelState(new ny(new Jt(1,1,1,1),0,new Qt(n,i),0))}static line(e,t,n,i,r){const o=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new Qt(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);if(!n||!t.modelState.hasSelection()){const t=e.model.getLineCount();let n=o.lineNumber+1,i=1;return n>t&&(n=t,i=e.model.getLineMaxColumn(n)),ay.fromModelState(new ny(new Jt(o.lineNumber,1,n,i),0,new Qt(n,i),0))}const s=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<s)return ay.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(o.lineNumber>s){const n=e.getLineCount();let i=a.lineNumber+1,r=1;return i>n&&(i=n,r=e.getLineMaxColumn(i)),ay.fromViewState(t.viewState.move(t.modelState.hasSelection(),i,r,0))}{const e=t.modelState.selectionStart.getEndPosition();return ay.fromModelState(t.modelState.move(t.modelState.hasSelection(),e.lineNumber,e.column,0))}}static word(e,t,n,i){const r=e.model.validatePosition(i);return ay.fromModelState(bx.word(e.cursorConfig,e.model,t.modelState,n,r))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new ay(t.modelState,t.viewState);const n=t.viewState.position.lineNumber,i=t.viewState.position.column;return ay.fromViewState(new ny(new Jt(n,i,n,i),0,new Qt(n,i),0))}static moveTo(e,t,n,i,r){const o=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new Qt(r.lineNumber,r.column),o):e.coordinatesConverter.convertModelPositionToViewPosition(o);return ay.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))}static simpleMove(e,t,n,i,r,o){switch(n){case 0:return 4===o?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return 4===o?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return 2===o?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return 2===o?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);default:return null}}static viewportMove(e,t,n,i,r){const o=e.getCompletelyVisibleViewRange(),a=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(n){case 9:{const n=this._firstLineNumberInRange(e.model,a,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 11:{const n=this._lastLineNumberInRange(e.model,a,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 10:{const n=Math.round((a.startLineNumber+a.endLineNumber)/2),r=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,r)]}case 12:{let n=[];for(let r=0,a=t.length;r<a;r++){const a=t[r];n[r]=this.findPositionInViewportIfOutside(e,a,o,i)}return n}default:return null}}static findPositionInViewportIfOutside(e,t,n,i){let r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new ay(t.modelState,t.viewState);{r>n.endLineNumber-1&&(r=n.endLineNumber-1),r<n.startLineNumber&&(r=n.startLineNumber);const o=e.getLineFirstNonWhitespaceColumn(r);return this._moveToViewPosition(e,t,i,r,o)}}static _firstLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)}static _lastLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)}static _moveLeft(e,t,n,i){const r=t.length>1;let o=[];for(let a=0,s=t.length;a<s;a++){const s=t[a],l=r||!s.viewState.hasSelection();let c=mx.moveLeft(e.cursorConfig,e,s.viewState,n,i);if(l&&1===i&&c.position.lineNumber!==s.viewState.position.lineNumber){const t=e.coordinatesConverter.convertViewPositionToModelPosition(c.position);t.lineNumber===s.modelState.position.lineNumber&&(c=mx.moveLeft(e.cursorConfig,e,c,n,1))}o[a]=ay.fromViewState(c)}return o}static _moveHalfLineLeft(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=Math.round(e.getLineContent(a).length/2);i[r]=ay.fromViewState(mx.moveLeft(e.cursorConfig,e,o.viewState,n,s))}return i}static _moveRight(e,t,n,i){const r=t.length>1;let o=[];for(let a=0,s=t.length;a<s;a++){const s=t[a],l=r||!s.viewState.hasSelection();let c=mx.moveRight(e.cursorConfig,e,s.viewState,n,i);if(l&&1===i&&c.position.lineNumber!==s.viewState.position.lineNumber){const t=e.coordinatesConverter.convertViewPositionToModelPosition(c.position);t.lineNumber===s.modelState.position.lineNumber&&(c=mx.moveRight(e.cursorConfig,e,c,n,1))}o[a]=ay.fromViewState(c)}return o}static _moveHalfLineRight(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=Math.round(e.getLineContent(a).length/2);i[r]=ay.fromViewState(mx.moveRight(e.cursorConfig,e,o.viewState,n,s))}return i}static _moveDownByViewLines(e,t,n,i){let r=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];r[o]=ay.fromViewState(mx.moveDown(e.cursorConfig,e,a.viewState,n,i))}return r}static _moveDownByModelLines(e,t,n,i){let r=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];r[o]=ay.fromModelState(mx.moveDown(e.cursorConfig,e.model,a.modelState,n,i))}return r}static _moveUpByViewLines(e,t,n,i){let r=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];r[o]=ay.fromViewState(mx.moveUp(e.cursorConfig,e,a.viewState,n,i))}return r}static _moveUpByModelLines(e,t,n,i){let r=[];for(let o=0,a=t.length;o<a;o++){const a=t[o];r[o]=ay.fromModelState(mx.moveUp(e.cursorConfig,e.model,a.modelState,n,i))}return r}static _moveToViewPosition(e,t,n,i,r){return ay.fromViewState(t.viewState.move(n,i,r,0))}static _moveToModelPosition(e,t,n,i,r){return ay.fromModelState(t.modelState.move(n,i,r,0))}static _moveToViewMinColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=e.getLineMinColumn(a);i[r]=this._moveToViewPosition(e,o,n,a,s)}return i}static _moveToViewFirstNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=e.getLineFirstNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,o,n,a,s)}return i}static _moveToViewCenterColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=Math.round((e.getLineMaxColumn(a)+e.getLineMinColumn(a))/2);i[r]=this._moveToViewPosition(e,o,n,a,s)}return i}static _moveToViewMaxColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=e.getLineMaxColumn(a);i[r]=this._moveToViewPosition(e,o,n,a,s)}return i}static _moveToViewLastNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],a=o.viewState.position.lineNumber,s=e.getLineLastNonWhitespaceColumn(a);i[r]=this._moveToViewPosition(e,o,n,a,s)}return i}}var _x;(function(e){const t=function(e){if(!No(e))return!1;let t=e;return!!Ao(t.to)&&!(!Fo(t.select)&&!Ro(t.select))&&!(!Fo(t.by)&&!Ao(t.by))&&!(!Fo(t.value)&&!Po(t.value))};function n(t){if(!t.to)return null;let n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}let i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;break}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=n})(_x||(_x={}));const wx=Object.create(null);function xx(e,t){wx[e]||(wx[e]=["",e]);const n=wx[e];for(let i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}class Cx{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,n,i,r){const o=ly.visibleColumnFromColumn(e,t,n);if(r){const e=xx(" ",i),t=ly.prevIndentTabStop(o,i),n=t/i;return xx(e,n)}{const e="\t",t=ly.prevRenderTabStop(o,n),i=t/n;return xx(e,i)}}static shiftIndent(e,t,n,i,r){const o=ly.visibleColumnFromColumn(e,t,n);if(r){const e=xx(" ",i),t=ly.nextIndentTabStop(o,i),n=t/i;return xx(e,n)}{const e="\t",t=ly.nextRenderTabStop(o,n),i=t/n;return xx(e,i)}}_addEditOperation(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)}getEditOperations(e,t){const n=this._selection.startLineNumber;let i=this._selection.endLineNumber;1===this._selection.endColumn&&n!==i&&(i-=1);const{tabSize:r,indentSize:o,insertSpaces:a}=this._opts,s=n===i;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0);let l=0,c=0;for(let u=n;u<=i;u++,l=c){c=0;let i,d=e.getLineContent(u),h=xo["u"](d);if((!this._opts.isUnshift||0!==d.length&&0!==h)&&(s||this._opts.isUnshift||0!==d.length)){if(-1===h&&(h=d.length),u>1){let t=ly.visibleColumnFromColumn(d,h+1,r);if(t%o!==0&&e.isCheapToTokenize(u-1)){let t=Uc.getEnterAction(this._opts.autoIndent,e,new Jt(u-1,e.getLineMaxColumn(u-1),u-1,e.getLineMaxColumn(u-1)));if(t){if(c=l,t.appendText)for(let e=0,n=t.appendText.length;e<n&&c<o;e++){if(32!==t.appendText.charCodeAt(e))break;c++}t.removeText&&(c=Math.max(0,c-t.removeText));for(let e=0;e<c;e++){if(0===h||32!==d.charCodeAt(h-1))break;h--}}}}this._opts.isUnshift&&0===h||(i=this._opts.isUnshift?Cx.unshiftIndent(d,h+1,r,o,a):Cx.shiftIndent(d,h+1,r,o,a),this._addEditOperation(t,new Jt(u,1,u,h+1),i),u!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=h+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(n)&&(this._useLastEditRangeForCursorEndPosition=!0);const r=a?xx(" ",o):"\t";for(let a=n;a<=i;a++){const i=e.getLineContent(a);let l=xo["u"](i);if((!this._opts.isUnshift||0!==i.length&&0!==l)&&(s||this._opts.isUnshift||0!==i.length)&&(-1===l&&(l=i.length),!this._opts.isUnshift||0!==l))if(this._opts.isUnshift){l=Math.min(l,o);for(let e=0;e<l;e++){const t=i.charCodeAt(e);if(9===t){l=e+1;break}}this._addEditOperation(t,new Jt(a,1,a,l+1),"")}else this._addEditOperation(t,new Jt(a,1,a,1),r),a!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){let e=t.getInverseEditOperations()[0];return new en(e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const n=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){let e=this._selection.startColumn,t=n.startColumn;return t<=e?n:0===n.getDirection()?new en(n.startLineNumber,e,n.endLineNumber,n.endColumn):new en(n.endLineNumber,n.endColumn,n.startLineNumber,e)}return n}}class Sx{constructor(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}getEditOperations(e,t){t.addTrackedEditOperation(new Jt(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new Jt(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new en(i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}class kx{static indent(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new Cx(n[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static outdent(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new Cx(n[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static shiftIndent(e,t,n){return n=n||1,Cx.shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,n){return n=n||1,Cx.unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,n,i){let r=[];for(let o=0,a=n.length;o<a;o++)r[o]=new dx(n[o],i[o]);return new sy(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,n,i,r){let o=[];for(let a=0,s=n.length;a<s;a++){const e=n[a];let t=e.getPosition();if(r&&!e.isEmpty()&&(r=!1),r&&i.indexOf("\n")!==i.length-1&&(r=!1),r){let n=new Jt(t.lineNumber,1,t.lineNumber,1);o[a]=new px(n,i,e,!0)}else o[a]=new dx(e,i)}return new sy(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,n,i,r){if(i)return null;if(1===t.length)return null;if(r&&r.length===t.length)return r;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));let e=n.split(/\r\n|\r|\n/);if(e.length===t.length)return e}return null}static paste(e,t,n,i,r,o){const a=this._distributePasteToCursors(e,n,i,r,o);return a?(n=n.sort(Jt.compareRangesUsingStarts),this._distributedPaste(e,t,n,a)):this._simplePaste(e,t,n,i,r)}static _goodIndentForLine(e,t,n){let i=null,r="";const o=Uc.getInheritIndentForLine(e.autoIndent,t,n,!1);if(o)i=o.action,r=o.indentation;else if(n>1){let i;for(i=n-1;i>=1;i--){const e=t.getLineContent(i),n=xo["H"](e);if(n>=0)break}if(i<1)return null;const o=t.getLineMaxColumn(i),a=Uc.getEnterAction(e.autoIndent,t,new Jt(i,o,i,o));a&&(r=a.indentation+a.appendText)}return i&&(i===uc.Indent&&(r=kx.shiftIndent(e,r)),i===uc.Outdent&&(r=kx.unshiftIndent(e,r)),r=e.normalizeIndentation(r)),r||null}static _replaceJumpToNextIndent(e,t,n,i){let r="",o=n.getStartPosition();if(e.insertSpaces){let n=ly.visibleColumnFromColumn2(e,t,o),i=e.indentSize,a=i-n%i;for(let e=0;e<a;e++)r+=" "}else r="\t";return new dx(n,r,i)}static tab(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++){const o=n[r];if(o.isEmpty()){let n=t.getLineContent(o.startLineNumber);if(/^\s*$/.test(n)&&t.isCheapToTokenize(o.startLineNumber)){let a=this._goodIndentForLine(e,t,o.startLineNumber);a=a||"\t";let s=e.normalizeIndentation(a);if(!xo["P"](n,s)){i[r]=new dx(new Jt(o.startLineNumber,1,o.startLineNumber,n.length+1),s,!0);continue}}i[r]=this._replaceJumpToNextIndent(e,t,o,!0)}else{if(o.startLineNumber===o.endLineNumber){let n=t.getLineMaxColumn(o.startLineNumber);if(1!==o.startColumn||o.endColumn!==n){i[r]=this._replaceJumpToNextIndent(e,t,o,!1);continue}}i[r]=new Cx(o,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i}static replacePreviousChar(e,t,n,i,r,o){let a=[];for(let s=0,l=i.length;s<l;s++){const e=i[s];if(!e.isEmpty()){a[s]=null;continue}const t=e.getPosition(),l=Math.max(1,t.column-o),c=new Jt(t.lineNumber,l,t.lineNumber,t.column),u=n.getValueInRange(c);a[s]=u!==r?new dx(c,r):null}return new sy(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static _typeCommand(e,t,n){return n?new hx(e,t,!0):new dx(e,t,!0)}static _enter(e,t,n,i){if(0===e.autoIndent)return kx._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){let r=t.getLineContent(i.startLineNumber),o=xo["x"](r).substring(0,i.startColumn-1);return kx._typeCommand(i,"\n"+e.normalizeIndentation(o),n)}const r=Uc.getEnterAction(e.autoIndent,t,i);if(r){if(r.indentAction===uc.None)return kx._typeCommand(i,"\n"+e.normalizeIndentation(r.indentation+r.appendText),n);if(r.indentAction===uc.Indent)return kx._typeCommand(i,"\n"+e.normalizeIndentation(r.indentation+r.appendText),n);if(r.indentAction===uc.IndentOutdent){const t=e.normalizeIndentation(r.indentation),o=e.normalizeIndentation(r.indentation+r.appendText),a="\n"+o+"\n"+t;return n?new hx(i,a,!0):new fx(i,a,-1,o.length-t.length,!0)}if(r.indentAction===uc.Outdent){const t=kx.unshiftIndent(e,r.indentation);return kx._typeCommand(i,"\n"+e.normalizeIndentation(t+r.appendText),n)}}const o=t.getLineContent(i.startLineNumber),a=xo["x"](o).substring(0,i.startColumn-1);if(e.autoIndent>=4){const r=Uc.getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:t=>kx.unshiftIndent(e,t),shiftIndent:t=>kx.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(r){let s=ly.visibleColumnFromColumn2(e,t,i.getEndPosition());const l=i.endColumn;let c="\n";a!==e.normalizeIndentation(r.beforeEnter)&&(c=e.normalizeIndentation(r.beforeEnter)+o.substring(a.length,i.startColumn-1)+"\n",i=new Jt(i.startLineNumber,1,i.endLineNumber,i.endColumn));const u=t.getLineContent(i.endLineNumber),d=xo["u"](u);if(i=d>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,d+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new hx(i,c+e.normalizeIndentation(r.afterEnter),!0);{let t=0;return l<=d+1&&(e.insertSpaces||(s=Math.ceil(s/e.indentSize)),t=Math.min(s+1-e.normalizeIndentation(r.afterEnter).length-1,0)),new fx(i,c+e.normalizeIndentation(r.afterEnter),0,t,!0)}}}return kx._typeCommand(i,"\n"+e.normalizeIndentation(a),n)}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let i=0,r=n.length;i<r;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,n,i){const r=Uc.getIndentationAtPosition(t,n.startLineNumber,n.startColumn),o=Uc.getIndentActionForType(e.autoIndent,t,n,i,{shiftIndent:t=>kx.shiftIndent(e,t),unshiftIndent:t=>kx.unshiftIndent(e,t)});if(null===o)return null;if(o!==e.normalizeIndentation(r)){const r=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return 0===r?kx._typeCommand(new Jt(n.startLineNumber,0,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+i,!1):kx._typeCommand(new Jt(n.startLineNumber,0,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+t.getLineContent(n.startLineNumber).substring(r-1,n.startColumn-1)+i,!1)}return null}static _isAutoClosingOvertype(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairsClose2.has(r))return!1;for(let o=0,a=n.length;o<a;o++){const a=n[o];if(!a.isEmpty())return!1;const s=a.getPosition(),l=t.getLineContent(s.lineNumber),c=l.charAt(s.column-1);if(c!==r)return!1;const u=cy(r),d=s.column>2?l.charCodeAt(s.column-2):0;if(92===d&&u)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,n=i.length;t<n;t++){const n=i[t];if(s.lineNumber===n.startLineNumber&&s.column===n.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,n,i,r){let o=[];for(let a=0,s=i.length;a<s;a++){const e=i[a],t=e.getPosition(),n=new Jt(t.lineNumber,t.column,t.lineNumber,t.column+1);o[a]=new dx(n,r)}return new sy(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static _autoClosingPairIsSymmetric(e){const{open:t,close:n}=e;return t.indexOf(n)>=0||n.indexOf(t)>=0}static _isBeforeClosingBrace(e,t,n){const i=e.autoClosingPairsClose2.get(n);if(!i)return!1;const r=kx._autoClosingPairIsSymmetric(t);for(const o of i){const e=kx._autoClosingPairIsSymmetric(o);if(r||!e)return!0}return!1}static _findAutoClosingPairOpen(e,t,n,i){const r=e.autoClosingPairsOpen2.get(i);if(!r)return null;let o=null;for(const a of r)if(null===o||a.open.length>o.open.length){let e=!0;for(const r of n){const n=t.getValueInRange(new Jt(r.lineNumber,r.column-a.open.length+1,r.lineNumber,r.column));if(n+i!==a.open){e=!1;break}}e&&(o=a)}return o}static _isAutoClosingOpenCharType(e,t,n,i,r){const o=cy(i),a=o?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const s=this._findAutoClosingPairOpen(e,t,n.map(e=>e.getPosition()),i);if(!s)return null;const l=o?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let u=0,d=n.length;u<d;u++){const i=n[u];if(!i.isEmpty())return null;const d=i.getPosition(),h=t.getLineContent(d.lineNumber);if(h.length>d.column-1){const t=h.charAt(d.column-1),n=kx._isBeforeClosingBrace(e,s,t);if(!n&&!l(t))return null}if(!t.isCheapToTokenize(d.lineNumber))return null;if(1===s.open.length&&o&&"always"!==a){const t=Iv(e.wordSeparators);if(r&&d.column>1&&0===t.get(h.charCodeAt(d.column-2)))return null;if(!r&&d.column>2&&0===t.get(h.charCodeAt(d.column-3)))return null}t.forceTokenization(d.lineNumber);const f=t.getLineTokens(d.lineNumber);let p=!1;try{p=Uc.shouldAutoClosePair(s,f,r?d.column:d.column-1)}catch(c){ge(c)}if(!p)return null}return s}static _runAutoClosingOpenCharType(e,t,n,i,r,o,a){let s=[];for(let l=0,c=i.length;l<c;l++){const e=i[l];s[l]=new Ox(e,r,o,a.close)}return new sy(1,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return cy(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,n,i){if(!kx._shouldSurroundChar(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;const r=cy(i);for(let o=0,a=n.length;o<a;o++){const e=n[o];if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){const r=t.getLineContent(n),o=n===e.startLineNumber?e.startColumn-1:0,a=n===e.endLineNumber?e.endColumn-1:r.length,s=r.substring(o,a);if(/[^ \t]/.test(s)){i=!1;break}}if(i)return!1;if(r&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){const n=t.getValueInRange(e);if(cy(n))return!1}}return!0}static _runSurroundSelectionType(e,t,n,i,r){let o=[];for(let a=0,s=i.length;a<s;a++){const e=i[a],n=t.surroundingPairs[r];o[a]=new Sx(e,r,n)}return new sy(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,n,i,r){if(!t.electricChars.hasOwnProperty(r)||!i.isEmpty())return null;let o=i.getPosition();n.forceTokenization(o.lineNumber);let a,s=n.getLineTokens(o.lineNumber);try{a=Uc.onElectricCharacter(r,s,o.column)}catch(l){return ge(l),null}if(!a)return null;if(a.matchOpenBracket){let e=(s.getLineContent()+r).lastIndexOf(a.matchOpenBracket)+1,i=n.findMatchingBracketUp(a.matchOpenBracket,{lineNumber:o.lineNumber,column:e});if(i){if(i.startLineNumber===o.lineNumber)return null;let e=n.getLineContent(i.startLineNumber),a=xo["x"](e),s=t.normalizeIndentation(a),l=n.getLineContent(o.lineNumber),c=n.getLineFirstNonWhitespaceColumn(o.lineNumber)||o.column,u=l.substring(c-1,o.column-1),d=s+u+r,h=new Jt(o.lineNumber,1,o.lineNumber,o.column);const f=new dx(h,d);return new sy(1,[f],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,n,i,r,o){if(!i||en.selectionsArrEqual(i,r))return null;let a=null;for(const l of r){if(!l.isEmpty())return null;const e=l.getPosition(),t=n.getValueInRange(new Jt(e.lineNumber,e.column-1,e.lineNumber,e.column));if(null===a)a=t;else if(a!==t)return null}if(!a)return null;if(this._isAutoClosingOvertype(t,n,r,o,a)){const e=r.map(e=>new dx(new Jt(e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new sy(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const s=this._isAutoClosingOpenCharType(t,n,r,a,!1);return s?this._runAutoClosingOpenCharType(e,t,n,r,a,!1,s):null}static typeWithInterceptors(e,t,n,i,r,o,a){if(!e&&"\n"===a){let e=[];for(let t=0,o=r.length;t<o;t++)e[t]=kx._enter(n,i,!1,r[t]);return new sy(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(n,i,r)){let e=[],t=!1;for(let o=0,s=r.length;o<s;o++)if(e[o]=this._runAutoIndentType(n,i,r[o],a),!e[o]){t=!0;break}if(!t)return new sy(1,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoClosingOvertype(n,i,r,o,a))return this._runAutoClosingOvertype(t,n,i,r,a);if(!e){const e=this._isAutoClosingOpenCharType(n,i,r,a,!0);if(e)return this._runAutoClosingOpenCharType(t,n,i,r,a,!0,e)}if(this._isSurroundSelectionType(n,i,r,a))return this._runSurroundSelectionType(t,n,i,r,a);if(!e&&this._isTypeInterceptorElectricChar(n,i,r)){const e=this._typeInterceptorElectricChar(t,n,i,r[0],a);if(e)return e}let s=[];for(let c=0,u=r.length;c<u;c++)s[c]=new dx(r[c],a);let l=1!==t;return" "===a&&(l=!0),new sy(1,s,{shouldPushStackElementBefore:l,shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,n,i,r){let o=[];for(let a=0,s=i.length;a<s;a++)o[a]=new dx(i[a],r);return new sy(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++){let o=n[r].positionLineNumber;if(1===o)i[r]=new hx(new Jt(1,1,1,1),"\n");else{o--;let n=t.getLineMaxColumn(o);i[r]=this._enter(e,t,!1,new Jt(o,n,o,n))}}return i}static lineInsertAfter(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++){const o=n[r].positionLineNumber;let a=t.getLineMaxColumn(o);i[r]=this._enter(e,t,!1,new Jt(o,a,o,a))}return i}static lineBreakInsert(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i}}class Ox extends fx{constructor(e,t,n,i){super(e,(n?t:"")+i,0,-i.length),this._openCharacter=t,this._closeCharacter=i,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range;return this.closeCharacterRange=new Jt(i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new Jt(i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}var Mx;(function(e){e.editorSimpleInput=new Zp("editorSimpleInput",!1),e.editorTextFocus=new Zp("editorTextFocus",!1),e.focus=new Zp("editorFocus",!1),e.textInputFocus=new Zp("textInputFocus",!1),e.readOnly=new Zp("editorReadonly",!1),e.columnSelection=new Zp("editorColumnSelection",!1),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new Zp("editorHasSelection",!1),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new Zp("editorHasMultipleSelections",!1),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new Zp("editorTabMovesFocus",!1),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new Zp("isInEmbeddedEditor",!1),e.canUndo=new Zp("canUndo",!1),e.canRedo=new Zp("canRedo",!1),e.hoverVisible=new Zp("editorHoverVisible",!1),e.inCompositeEditor=new Zp("inCompositeEditor",void 0),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new Zp("editorLangId",""),e.hasCompletionItemProvider=new Zp("editorHasCompletionItemProvider",!1),e.hasCodeActionsProvider=new Zp("editorHasCodeActionsProvider",!1),e.hasCodeLensProvider=new Zp("editorHasCodeLensProvider",!1),e.hasDefinitionProvider=new Zp("editorHasDefinitionProvider",!1),e.hasDeclarationProvider=new Zp("editorHasDeclarationProvider",!1),e.hasImplementationProvider=new Zp("editorHasImplementationProvider",!1),e.hasTypeDefinitionProvider=new Zp("editorHasTypeDefinitionProvider",!1),e.hasHoverProvider=new Zp("editorHasHoverProvider",!1),e.hasDocumentHighlightProvider=new Zp("editorHasDocumentHighlightProvider",!1),e.hasDocumentSymbolProvider=new Zp("editorHasDocumentSymbolProvider",!1),e.hasReferenceProvider=new Zp("editorHasReferenceProvider",!1),e.hasRenameProvider=new Zp("editorHasRenameProvider",!1),e.hasSignatureHelpProvider=new Zp("editorHasSignatureHelpProvider",!1),e.hasDocumentFormattingProvider=new Zp("editorHasDocumentFormattingProvider",!1),e.hasDocumentSelectionFormattingProvider=new Zp("editorHasDocumentSelectionFormattingProvider",!1),e.hasMultipleDocumentFormattingProvider=new Zp("editorHasMultipleDocumentFormattingProvider",!1),e.hasMultipleDocumentSelectionFormattingProvider=new Zp("editorHasMultipleDocumentSelectionFormattingProvider",!1)})(Mx||(Mx={}));const Dx=0;class Ex extends fg{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n||{})}}var Tx,Lx,Ix;(function(e){const t=function(e){if(!No(e))return!1;const t=e;return!!Ao(t.to)&&!(!Fo(t.by)&&!Ao(t.by))&&!(!Fo(t.value)&&!Po(t.value))&&!(!Fo(t.revealCursor)&&!Ro(t.revealCursor))};function n(t){let n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2}const r=Math.floor(t.value||1),o=!!t.revealCursor;return{direction:n,unit:i,value:r,revealCursor:o,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=n})(Tx||(Tx={})),function(e){const t=function(e){if(!No(e))return!1;const t=e;return!!Po(t.lineNumber)&&!(!Fo(t.at)&&!Ao(t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:"number"},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(Lx||(Lx={}));class Ax{constructor(e){e.addImplementation(1e4,(e,t)=>{const n=e.get(Un).getFocusedCodeEditor();return!(!n||!n.hasTextFocus())&&(this.runEditorCommand(e,n,t),!0)}),e.addImplementation(1e3,(e,t)=>{const n=document.activeElement;return!!(n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),e.addImplementation(0,(e,t)=>{const n=e.get(Un).getActiveCodeEditor();return!!n&&(n.focus(),this.runEditorCommand(e,n,t),!0)})}}(function(e){class t extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[yx.moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}e.MoveTo=gg(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=gg(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class n extends Ex{runCoreEditorCommand(e,t){e.model.pushStackElement();const n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map(e=>ay.fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=gg(new class extends n{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,n,i){const r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new Qt(i.viewPosition.lineNumber,i.viewPosition.column),r);let a=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,s=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return ux.columnSelect(e.cursorConfig,e,a,s,o.lineNumber,i.mouseColumn-1)}}),e.CursorColumnSelectLeft=gg(new class extends n{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return ux.columnSelectLeft(e.cursorConfig,e,n)}}),e.CursorColumnSelectRight=gg(new class extends n{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return ux.columnSelectRight(e.cursorConfig,e,n)}});class i extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return ux.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectUp=gg(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=gg(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3595,linux:{primary:0}}}));class o extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return ux.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectDown=gg(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=gg(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3596,linux:{primary:0}}}));class a extends Ex{constructor(){super({id:"cursorMove",precondition:void 0,description:_x.description})}runCoreEditorCommand(e,t){const n=_x.parse(t);n&&this._runCursorMove(e,t.source,n)}_runCursorMove(e,t,n){e.model.pushStackElement(),e.setCursorStates(t,3,a._move(e,e.getCursorStates(),n)),e.revealPrimaryCursor(t,!0)}static _move(e,t,n){const i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:return yx.simpleMove(e,t,n.direction,i,r,n.unit);case 9:case 11:case 10:case 12:return yx.viewportMove(e,t,n.direction,i,r);default:return null}}}e.CursorMoveImpl=a,e.CursorMove=gg(new a);class s extends Ex{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=gg(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=gg(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1039}})),e.CursorRight=gg(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=gg(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1041}})),e.CursorUp=gg(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=gg(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=gg(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:11}})),e.CursorPageUpSelect=gg(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1035}})),e.CursorDown=gg(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=gg(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=gg(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:12}})),e.CursorPageDownSelect=gg(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1036}})),e.CreateCursor=gg(new class extends Ex{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let n;n=t.wholeLine?yx.line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):yx.moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const i=e.getCursorStates();if(i.length>1){const r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null;for(let n=0,a=i.length;n<a;n++){const a=i[n];if((!r||a.modelState.selection.containsPosition(r))&&(!o||a.viewState.selection.containsPosition(o)))return i.splice(n,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,i)}}i.push(n),e.model.pushStackElement(),e.setCursorStates(t.source,3,i)}}),e.LastCursorMoveToSelect=gg(new class extends Ex{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=yx.moveTo(e,i[n],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class l extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorHome=gg(new l({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=gg(new l({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class c extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],r=i.modelState.position.lineNumber;t[n]=ay.fromModelState(i.modelState.move(this._inSelectionMode,r,1,0))}return t}}e.CursorLineStart=gg(new c({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=gg(new c({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:0,mac:{primary:1311}}}));class u extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}e.CursorEnd=gg(new u({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:Dx,kbExpr:Mx.textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:r("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=gg(new u({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:Dx,kbExpr:Mx.textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:r("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class d extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],o=r.modelState.position.lineNumber,a=e.model.getLineMaxColumn(o);n[i]=ay.fromModelState(r.modelState.move(this._inSelectionMode,o,a,0))}return n}}e.CursorLineEnd=gg(new d({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=gg(new d({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:0,mac:{primary:1315}}}));class h extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorTop=gg(new h({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=gg(new h({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3086,mac:{primary:3088}}}));class f extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorBottom=gg(new f({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=gg(new f({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:3085,mac:{primary:3090}}}));class p extends Ex{constructor(){super({id:"editorScroll",precondition:void 0,description:Tx.description})}runCoreEditorCommand(e,t){const n=Tx.parse(t);n&&this._runEditorScroll(e,t.source,n)}_runEditorScroll(e,t,n){const i=this._computeDesiredScrollTop(e,n);if(n.revealCursor){const r=e.getCompletelyVisibleViewRangeAtScrollTop(i);e.setCursorStates(t,3,[yx.findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),r,n.select)])}e.setScrollTop(i,0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const n=e.getCompletelyVisibleViewRange(),i=e.coordinatesConverter.convertViewRangeToModelRange(n);let r;r=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new Qt(r,1));return e.getVerticalOffsetForLineNumber(o.lineNumber)}let n;n=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const i=(1===t.direction?-1:1)*n;return e.getScrollTop()+i*e.cursorConfig.lineHeight}}e.EditorScrollImpl=p,e.EditorScroll=gg(new p),e.ScrollLineUp=gg(new class extends Ex{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageUp=gg(new class extends Ex{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollLineDown=gg(new class extends Ex{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageDown=gg(new class extends Ex{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class g extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[yx.word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}e.WordSelect=gg(new g({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=gg(new g({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=gg(new class extends Ex{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0),o=i[n];r[n]=yx.word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class m extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[yx.line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}e.LineSelect=gg(new m({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=gg(new m({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class v extends Ex{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=yx.line(e,i[n],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}e.LastCursorLineSelect=gg(new v({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=gg(new v({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=gg(new class extends Ex{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:2090}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,yx.expandLineSelection(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}}),e.CancelSelection=gg(new class extends Ex{constructor(){super({id:"cancelSelection",precondition:Mx.hasNonEmptySelection,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[yx.cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),e.RemoveSecondaryCursors=gg(new class extends Ex{constructor(){super({id:"removeSecondaryCursors",precondition:Mx.hasMultipleSelections,kbOpts:{weight:Dx+1,kbExpr:Mx.textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0)}}),e.RevealLine=gg(new class extends Ex{constructor(){super({id:"revealLine",precondition:void 0,description:Lx.description})}runCoreEditorCommand(e,t){const n=t;let i=(n.lineNumber||0)+1;i<1&&(i=1);const r=e.model.getLineCount();i>r&&(i=r);const o=new Jt(i,1,i,e.model.getLineMaxColumn(i));let a=0;if(n.at)switch(n.at){case Lx.RawAtArgument.Top:a=3;break;case Lx.RawAtArgument.Center:a=1;break;case Lx.RawAtArgument.Bottom:a=4;break;default:break}const s=e.coordinatesConverter.convertModelRangeToViewRange(o);e.revealRange(t.source,!1,s,a,0)}}),e.SelectAll=new class extends Ax{constructor(){super(Sg)}runDOMCommand(){document.execCommand("selectAll")}runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[yx.selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=gg(new class extends Ex{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[ay.fromModelSelection(t.selection)])}})})(Ix||(Ix={}));const Nx=Fp.and(Mx.textInputFocus,Mx.columnSelection);function Px(e,t){_f.registerKeybindingRule({id:e,primary:t,when:Nx,weight:Dx+1})}function Rx(e){return e.register(),e}var Fx;Px(Ix.CursorColumnSelectLeft.id,1039),Px(Ix.CursorColumnSelectRight.id,1041),Px(Ix.CursorColumnSelectUp.id,1040),Px(Ix.CursorColumnSelectPageUp.id,1035),Px(Ix.CursorColumnSelectDown.id,1042),Px(Ix.CursorColumnSelectPageDown.id,1036),function(e){class t extends fg{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=gg(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:Mx.writable,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,kx.lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=gg(new class extends t{constructor(){super({id:"outdent",precondition:Mx.writable,kbOpts:{weight:Dx,kbExpr:Fp.and(Mx.editorTextFocus,Mx.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,kx.outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=gg(new class extends t{constructor(){super({id:"tab",precondition:Mx.writable,kbOpts:{weight:Dx,kbExpr:Fp.and(Mx.editorTextFocus,Mx.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,kx.tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=gg(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,n){const[i,r]=vx.deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)}}),e.DeleteRight=gg(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:Dx,kbExpr:Mx.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,n){const[i,r]=vx.deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)}}),e.Undo=new class extends Ax{constructor(){super(xg)}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,n){t.hasModel()&&!0!==t.getOption(72)&&t.getModel().undo()}},e.Redo=new class extends Ax{constructor(){super(Cg)}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,n){t.hasModel()&&!0!==t.getOption(72)&&t.getModel().redo()}}}(Fx||(Fx={}));class jx extends ug{constructor(e,t,n){super({id:e,precondition:void 0,description:n}),this._handlerId=t}runCommand(e,t){const n=e.get(Un).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}function Bx(e,t){Rx(new jx("default:"+e,e)),Rx(new jx(e,e,t))}Bx("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Bx("replacePreviousChar"),Bx("compositionStart"),Bx("compositionEnd"),Bx("paste"),Bx("cut");class zx{constructor(e,t,n,i){this.configuration=e,this.viewModel=t,this.userInputEvents=n,this.commandDelegate=i}paste(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}type(e){this.commandDelegate.type(e)}replacePreviousChar(e,t){this.commandDelegate.replacePreviousChar(e,t)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ix.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new Qt(e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(61)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(61)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,n=o["d"]&&t.get(88),i=t.get(13);e.middleButton&&!n?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ix.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ix.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,n){e=this._validateViewColumn(e),Ix.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}_createCursor(e,t){e=this._validateViewColumn(e),Ix.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ix.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ix.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ix.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ix.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ix.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ix.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ix.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ix.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ix.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class Vx{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return Vx.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new $x(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class $x{constructor(e,t,n,i,r,o){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=r,this.detail=o}toString(){return dy.toString(this)}}class Wx{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){const n=t-e+1;return this._rendLineNumberStart-=n,null}if(e>i)return null;let r=0,o=0;for(let s=n;s<=i;s++){const n=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===o?(r=n,o=1):o++)}if(e<n){let i=0;i=t<n?t-e+1:n-e,this._rendLineNumberStart-=i}const a=this._lines.splice(r,o);return a}onLinesChanged(e,t){if(0===this.getCount())return!1;const n=this.getStartLineNumber(),i=this.getEndLineNumber();let r=!1;for(let o=e;o<=t;o++)o>=n&&o<=i&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r){const t=this._lines.splice(e-this._rendLineNumberStart,r-e+1);return t}const o=[];for(let u=0;u<n;u++)o[u]=this._createLine();const a=e-this._rendLineNumberStart,s=this._lines.slice(0,a),l=this._lines.slice(a,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=s.concat(o).concat(l),c}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),n=this.getEndLineNumber();let i=!1;for(let r=0,o=e.length;r<o;r++){const o=e[r];if(o.toLineNumber<t||o.fromLineNumber>n)continue;const a=Math.max(t,o.fromLineNumber),s=Math.min(n,o.toLineNumber);for(let e=a;e<=s;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),i=!0}}return i}}class Hx{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Wx(()=>this._host.createVisibleLine())}_createDomNode(){const e=Og(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(117)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,i=t.length;n<i;n++){const e=t[n].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,i=t.length;n<i;n++){const e=t[n].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),n=new Ux(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)}}class Ux{constructor(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}render(e,t,n,i){const r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||n<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=n-t+1,r.lines=[];for(let e=t;e<=n;e++)r.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){const e=t,o=Math.min(n,r.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart<t){const e=Math.min(r.linesLength,t-r.rendLineNumberStart);e>0&&(this._removeLinesBefore(r,e),r.linesLength-=e)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<n){const e=r.rendLineNumberStart+r.linesLength,o=n;e<=o&&(this._insertLinesAfter(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){const e=Math.max(0,n-r.rendLineNumberStart+1),t=r.linesLength-1,i=t-e+1;i>0&&(this._removeLinesAfter(r,i),r.linesLength-=i)}return this._finishRendering(r,!1,i),r}_renderUntouchedLines(e,t,n,i,r){const o=e.rendLineNumberStart,a=e.lines;for(let s=t;s<=n;s++){const e=o+s;a[s].layoutLine(e,i[e-r])}}_insertLinesBefore(e,t,n,i,r){const o=[];let a=0;for(let s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let n=0;n<t;n++){const t=e.lines[n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,n,i,r){const o=[];let a=0;for(let s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const n=e.linesLength-t;for(let i=0;i<t;i++){const t=e.lines[n+i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(n,t)}_finishRenderingNewLines(e,t,n,i){const r=this.domNode.lastChild;t||!r?this.domNode.innerHTML=n:r.insertAdjacentHTML("afterend",n);let o=this.domNode.lastChild;for(let a=e.linesLength-1;a>=0;a--){const t=e.lines[a];i[a]&&(t.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,n){const i=document.createElement("div");i.innerHTML=t;for(let r=0;r<e.linesLength;r++){const t=e.lines[r];if(n[r]){const e=i.firstChild,n=t.getDomNode();n.parentNode.replaceChild(e,n),t.setDomNode(e)}}}_finishRendering(e,t,n){const i=Ux._sb,r=e.linesLength,o=e.lines,a=e.rendLineNumberStart,s=[];{i.reset();let l=!1;for(let e=0;e<r;e++){const t=o[e];s[e]=!1;const r=t.getDomNode();if(r)continue;const c=t.renderLine(e+a,n[e],this.viewportData,i);c&&(s[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,i.build(),s)}{i.reset();let t=!1;const l=[];for(let e=0;e<r;e++){const r=o[e];if(l[e]=!1,s[e])continue;const c=r.renderLine(e+a,n[e],this.viewportData,i);c&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,i.build(),l)}}}Ux._sb=yc(1e5);class qx extends Hg{constructor(e){super(e),this._visibleLines=new Hx(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){const t=this._dynamicOverlays[e];if(t.shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){const t=this._dynamicOverlays[e];t.dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new Gx(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){const t=this._visibleLines.getVisibleLine(i);t.onConfigurationChanged(e)}return!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter(e=>e.shouldRender());for(let n=0,i=t.length;n<i;n++){const i=t[n];i.prepareRender(e),i.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class Gx{constructor(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(51),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=Og(e)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(e){this._lineHeight=this._configuration.options.get(51)}renderLine(e,t,n,i){let r="";for(let o=0,a=this._dynamicOverlays.length;o<a;o++){const t=this._dynamicOverlays[o];r+=t.render(n.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(r),i.appendASCIIString("</div>"),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class Kx extends qx{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._contentWidth=n.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._contentWidth=n.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class Yx extends qx{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._contentLeft=n.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),Ep.applyFontInfo(this.domNode,t.get(36))}onConfigurationChanged(e){const t=this._context.configuration.options;Ep.applyFontInfo(this.domNode,t.get(36));const n=t.get(117);return this._contentLeft=n.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class Xx{constructor(e,t){this.top=e,this.left=t}}class Zx extends Hg{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Og(document.createElement("div")),Ug.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Og(document.createElement("div")),Ug.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new Qx(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,n){const i=this._widgets[e.getId()];i.setPosition(t,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const n=e.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].render(e)}}class Qx{constructor(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Og(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const i=this._context.configuration.options,r=i.get(117);this._fixedOverflowWidgets=i.get(30),this._contentWidth=r.contentWidth,this._contentLeft=r.contentLeft,this._lineHeight=i.get(51),this._range=null,this._viewRange=null,this._preference=[],this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1,this._maxWidth=this._getMaxWidth(),this._isVisible=!1,this._renderData=null,this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute"),this.domNode.setVisibility("hidden"),this.domNode.setAttribute("widgetId",this.id),this.domNode.setMaxWidth(this._maxWidth)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(51),e.hasChanged(117)){const e=t.get(117);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,n,i,r){const o=e.top,a=o,s=t.top+this._lineHeight,l=r.viewportHeight-s,c=o-i,u=a>=i,d=s,h=l>=i;let f=e.left,p=t.left;return f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),p+n>r.scrollLeft+r.viewportWidth&&(p=r.scrollLeft+r.viewportWidth-n),f<r.scrollLeft&&(f=r.scrollLeft),p<r.scrollLeft&&(p=r.scrollLeft),{fitsAbove:u,aboveTop:c,aboveLeft:f,fitsBelow:h,belowTop:d,belowLeft:p}}_layoutHorizontalSegmentInPage(e,t,n,i){const r=Math.max(0,t.left-i),o=Math.min(t.left+t.width+i,e.width);let a=t.left+n-Lr.scrollX;if(a+i>o){const e=a-(o-i);a-=e,n-=e}if(a<r){const e=a-r;a-=e,n-=e}return[n,a]}_layoutBoxInPage(e,t,n,i,r){const o=e.top-i,a=t.top+this._lineHeight,s=Tr(this._viewDomNode.domNode),l=s.top+o-Lr.scrollY,c=s.top+a-Lr.scrollY,u=Or(document.body),[d,h]=this._layoutHorizontalSegmentInPage(u,s,e.left-r.scrollLeft+this._contentLeft,n),[f,p]=this._layoutHorizontalSegmentInPage(u,s,t.left-r.scrollLeft+this._contentLeft,n),g=22,m=22,v=l>=g,b=c+i<=u.height-m;return this._fixedOverflowWidgets?{fitsAbove:v,aboveTop:Math.max(l,g),aboveLeft:h,fitsBelow:b,belowTop:c,belowLeft:p}:{fitsAbove:v,aboveTop:o,aboveLeft:d,fitsBelow:b,belowTop:a,belowLeft:f}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new Xx(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let n=t[0],i=t[0];for(const u of t)u.lineNumber<n.lineNumber&&(n=u),u.lineNumber>i.lineNumber&&(i=u);let r=1073741824;for(const u of n.ranges)u.left<r&&(r=u.left);let o=1073741824;for(const u of i.ranges)u.left<o&&(o=u.left);const a=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,s=new Xx(a,r),l=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop,c=new Xx(l,o);return[s,c]}_prepareRenderWidget(e){const[t,n]=this._getTopAndBottomLeft(e);if(!t||!n)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){const e=this.domNode.domNode;this._cachedDomNodeClientWidth=e.clientWidth,this._cachedDomNodeClientHeight=e.clientHeight}let i;if(i=this.allowEditorOverflow?this._layoutBoxInPage(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!i)return null;if(2===r||i.fitsAbove)return new Xx(i.aboveTop,i.aboveLeft)}else{if(2!==e)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(t):t;if(!i)return null;if(2===r||i.fitsBelow)return new Xx(i.belowTop,i.belowLeft)}return null}onBeforeRender(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))}}n("a2e5");let Jx=!0;class eC extends Fy{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._renderLineHighlight=t.get(77),this._renderLineHightlightOnlyWhenFocus=t.get(78),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[],this._selections=[],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=Jx?this._selections.slice(0,1):this._selections,n=t.map(e=>e.positionLineNumber);n.sort((e,t)=>e-t),Ni(this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);const i=t.every(e=>e.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._renderLineHighlight=t.get(77),this._renderLineHightlightOnlyWhenFocus=t.get(78),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHightlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=this._cursorLineNumbers.length;let o=0;const a=[];for(let s=n;s<=i;s++){const e=s-n;while(o<r&&this._cursorLineNumbers[o]<s)o++;o<r&&this._cursorLineNumbers[o]===s?a[e]=t:a[e]=""}this._renderData=a}render(e,t){if(!this._renderData)return"";const n=t-e;return n>=this._renderData.length?"":this._renderData[n]}}class tC extends eC{_renderOne(e){const t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return`<div class="${t}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}class nC extends eC{_renderOne(e){const t="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return`<div class="${t}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHightlightOnlyWhenFocus||this._focused)}}cm((e,t)=>{Jx=!1;const n=e.getColor(Lw);if(n&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${n}; border: none; }`)),!n||n.isTransparent()||e.defines(Iw)){const n=e.getColor(Iw);n&&(Jx=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${n}; }`),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}}),n("cc1a");class iC extends Fy{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let s=0,l=t.length;s<l;s++){const e=t[s];e.options.className&&(n[i++]=e)}n=n.sort((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:Jt.compareRangesUsingStarts(e.range,t.range)});const r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,a=[];for(let s=r;s<=o;s++){const e=s-r;a[e]=""}this._renderWholeLineDecorations(e,n,a),this._renderNormalDecorations(e,n,a),this._renderResult=a}_renderWholeLineDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let a=0,s=t.length;a<s;a++){const e=t[a];if(!e.options.isWholeLine)continue;const s='<div class="cdr '+e.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',l=Math.max(e.range.startLineNumber,r),c=Math.min(e.range.endLineNumber,o);for(let t=l;t<=c;t++){const e=t-r;n[e]+=s}}}_renderNormalDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber;let o=null,a=!1,s=null;for(let l=0,c=t.length;l<c;l++){const c=t[l];if(c.options.isWholeLine)continue;const u=c.options.className,d=Boolean(c.options.showIfCollapsed);let h=c.range;d&&1===h.endColumn&&h.endLineNumber!==h.startLineNumber&&(h=new Jt(h.startLineNumber,h.startColumn,h.endLineNumber-1,this._context.model.getLineMaxColumn(h.endLineNumber-1))),o===u&&a===d&&Jt.areIntersectingOrTouching(s,h)?s=Jt.plusRange(s,h):(null!==o&&this._renderNormalDecoration(e,s,o,a,i,r,n),o=u,a=d,s=h)}null!==o&&this._renderNormalDecoration(e,s,o,a,i,r,n)}_renderNormalDecoration(e,t,n,i,r,o,a){const s=e.linesVisibleRangesForRange(t,"findMatch"===n);if(s)for(let l=0,c=s.length;l<c;l++){const e=s[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-o;if(i&&1===e.ranges.length){const t=e.ranges[0];0===t.width&&(e.ranges[0]=new Yg(t.left,this._typicalHalfwidthCharacterWidth))}for(let i=0,o=e.ranges.length;i<o;i++){const o=e.ranges[i],s='<div class="cdr '+n+'" style="left:'+String(o.left)+"px;width:"+String(o.width)+"px;height:"+r+'px;"></div>';a[t]+=s}}}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}n("7043");class rC extends Ae{onclick(e,t){this._register(ur(e,Xr.CLICK,e=>t(new wi(e))))}onmousedown(e,t){this._register(ur(e,Xr.MOUSE_DOWN,e=>t(new wi(e))))}onmouseover(e,t){this._register(ur(e,Xr.MOUSE_OVER,e=>t(new wi(e))))}onnonbubblingmouseout(e,t){this._register(pr(e,e=>t(new wi(e))))}onkeydown(e,t){this._register(ur(e,Xr.KEY_DOWN,e=>t(new gi(e))))}onkeyup(e,t){this._register(ur(e,Xr.KEY_UP,e=>t(new gi(e))))}oninput(e,t){this._register(ur(e,Xr.INPUT,t))}onblur(e,t){this._register(ur(e,Xr.BLUR,t))}onfocus(e,t){this._register(ur(e,Xr.FOCUS,t))}ignoreGesture(e){Ig.ignoreTarget(e)}}const oC=11;class aC extends rC{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,or(this.domNode,e.icon.classNames),this.domNode.style.position="absolute",this.domNode.style.width=oC+"px",this.domNode.style.height=oC+"px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new Ng),this.onmousedown(this.bgDomNode,e=>this._arrowMouseDown(e)),this.onmousedown(this.domNode,e=>this._arrowMouseDown(e)),this._mousedownRepeatTimer=this._register(new Ei),this._mousedownScheduleRepeatTimer=this._register(new Di)}_arrowMouseDown(e){let t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,Ag,e=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}class sC extends Ae{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new Di)}applyVisibilitySetting(e){return 2!==this._visibility&&(3===this._visibility||e)}setShouldBeVisible(e){let t=this.applyVisibilitySetting(e);this._shouldBeVisible!==t&&(this._shouldBeVisible=t,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}const lC=140;class cC extends rC{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new sC(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new Ng),this._shouldRender=!0,this.domNode=Og(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,e=>this._domNodeMouseDown(e))}_createArrow(e){let t=this._register(new aC(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,i){this.slider=Og(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){let t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let t,n;if(e.target===this.domNode.domNode&&"number"===typeof e.browserEvent.offsetX&&"number"===typeof e.browserEvent.offsetY)t=e.browserEvent.offsetX,n=e.browserEvent.offsetY;else{const i=Tr(this.domNode.domNode);t=e.posx-i.left,n=e.posy-i.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n))),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const n=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,Ag,e=>{const t=this._sliderOrthogonalMousePosition(e),a=Math.abs(t-i);if(o["i"]&&a>lC)return void this._setDesiredScrollPositionNow(r.getScrollPosition());const s=this._sliderMousePosition(e),l=s-n;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(l))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){let t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}}const uC=20;class dC{constructor(e,t,n,i,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new dC(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){let t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){let t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){let t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=e}static _computeValues(e,t,n,i,r){const o=Math.max(0,n-e),a=Math.max(0,o-2*t),s=i>0&&i>n;if(!s)return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(uC,Math.floor(n*a/i))),c=(a-l)/(i-n),u=r*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=dC._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=e.computedAvailableSize,this._computedIsNeeded=e.computedIsNeeded,this._computedSliderSize=e.computedSliderSize,this._computedSliderRatio=e.computedSliderRatio,this._computedSliderPosition=e.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;let t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;let t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}const hC=ul("scrollbar-button-left",dl.triangleLeft),fC=ul("scrollbar-button-right",dl.triangleRight);class pC extends cC{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new dC(t.horizontalHasArrows?t.arrowSize:0,2===t.horizontal?0:t.horizontalScrollbarSize,2===t.vertical?0:t.verticalScrollbarSize,i.width,i.scrollWidth,r.scrollLeft),visibility:t.horizontal,extraScrollbarClassName:"horizontal",scrollable:e}),t.horizontalHasArrows){let e=(t.arrowSize-oC)/2,n=(t.horizontalScrollbarSize-oC)/2;this._createArrow({className:"scra",icon:hC,top:n,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new xi(null,1,0))}),this._createArrow({className:"scra",icon:fC,top:n,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new xi(null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}}const gC=ul("scrollbar-button-up",dl.triangleUp),mC=ul("scrollbar-button-down",dl.triangleDown);class vC extends cC{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new dC(t.verticalHasArrows?t.arrowSize:0,2===t.vertical?0:t.verticalScrollbarSize,0,i.height,i.scrollHeight,r.scrollTop),visibility:t.vertical,extraScrollbarClassName:"vertical",scrollable:e}),t.verticalHasArrows){let e=(t.arrowSize-oC)/2,n=(t.verticalScrollbarSize-oC)/2;this._createArrow({className:"scra",icon:gC,top:e,left:n,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new xi(null,0,1))}),this._createArrow({className:"scra",icon:mC,top:void 0,left:n,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new xi(null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}}class bC{constructor(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r|=0,o|=0,this.rawScrollLeft=n,this.rawScrollTop=o,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),o+i>r&&(o=r-i),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new bC("undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new bC(this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e){const t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,i=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:i,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:a}}}class yC extends Ae{constructor(e,t){super(),this._onScroll=this._register(new ze),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new bC(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const n=this._state.withScrollDimensions(e,t);this._setState(n),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)}setScrollPositionSmooth(e){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const t=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===t.scrollLeft&&this._smoothScrolling.to.scrollTop===t.scrollTop)return;const n=this._smoothScrolling.combine(this._state,t,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=CC.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(e){const t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))}}class _C{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}function wC(e,t){const n=t-e;return function(t){return e+n*kC(t)}}function xC(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}class CC{constructor(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)}_initAnimation(e,t,n){const i=Math.abs(e-t);if(i>2.5*n){let i,r;return e<t?(i=e+.75*n,r=t-.75*n):(i=e-.75*n,r=t+.75*n),xC(wC(e,i),wC(r,t),.33)}return wC(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this._startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),n=this.scrollTop(t);return new _C(e,n,!1)}return new _C(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,n){return CC.start(e,t,n)}static start(e,t,n){n+=10;const i=Date.now()-10;return new CC(e,t,i,n)}}function SC(e){return Math.pow(e,3)}function kC(e){return 1-SC(1-e)}const OC=500,MC=50,DC=!0;class EC{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}}class TC{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,n=1,i=this._rear;do{const r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5}accept(e,t,n){const i=new EC(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;return-1===this._front&&-1===this._rear||this._memory[this._rear],this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){const t=Math.abs(Math.round(e)-e);return t<.01}}TC.INSTANCE=new TC;class LC extends rC{constructor(e,t,n){super(),this._onScroll=this._register(new ze),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new ze),e.style.overflow="hidden",this._options=PC(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));let i={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new vC(this._scrollable,this._options,i)),this._horizontalScrollbar=this._register(new pC(this._scrollable,this._options,i)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Og(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Og(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Og(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onnonbubblingmouseout(this._listenOnDomNode,e=>this._onMouseOut(e)),this._hideTimeout=this._register(new Di),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Ee(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,o["f"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontalScrollbarSize&&this._horizontalScrollbar.updateScrollbarSize(e.horizontalScrollbarSize),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){let t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=Ee(this._mouseWheelToDispose),e)){let e=e=>{this._onMouseWheel(new xi(e))};this._mouseWheelToDispose.push(ur(this._listenOnDomNode,Xr.MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=TC.INSTANCE;if(DC){const n=window.devicePixelRatio/Xn();o["i"]||o["d"]?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY)}if(e.deltaY||e.deltaX){let n=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(n)>=Math.abs(i)?i=0:n=0),this._options.flipAxes&&([n,i]=[i,n]);const r=!o["f"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!r||i||(i=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);const a=this._scrollable.getFutureScrollPosition();let s={};if(n){const e=a.scrollTop-MC*n;this._verticalScrollbar.writeScrollPosition(s,e)}if(i){const e=a.scrollLeft-MC*i;this._horizontalScrollbar.writeScrollPosition(s,e)}if(s=this._scrollable.validateScrollPosition(s),a.scrollLeft!==s.scrollLeft||a.scrollTop!==s.scrollTop){const e=DC&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel();e?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition();let t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),OC)}}class IC extends LC{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const n=new yC(0,e=>vr(e));super(e,t,n),this._register(n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class AC extends LC{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class NC extends IC{constructor(e,t){super(e,t),this._element=e,this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}),this.scanDomNode()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function PC(e){let t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,o["f"]&&(t.className+=" mac"),t}class RC extends Hg{constructor(e,t,n,i){super(e);const r=this._context.configuration.options,o=r.get(84),a=r.get(58),s=r.get(28),l=r.get(87),c={listenOnDomNode:n.domNode,className:"editor-scrollable "+om(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:a,fastScrollSensitivity:s,scrollPredominantAxis:l};this.scrollbar=this._register(new AC(t.domNode,c,this._context.viewLayout.getScrollable())),Ug.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Og(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const u=(e,t,n)=>{const i={};if(t){const t=e.scrollTop;t&&(i.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(n){const t=e.scrollLeft;t&&(i.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.model.setScrollPosition(i,1)};this._register(ur(n.domNode,"scroll",e=>u(n.domNode,!0,!0))),this._register(ur(t.domNode,"scroll",e=>u(t.domNode,!0,!1))),this._register(ur(i.domNode,"scroll",e=>u(i.domNode,!0,!1))),this._register(ur(this.scrollbarDomNode.domNode,"scroll",e=>u(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(117);this.scrollbarDomNode.setLeft(t.contentLeft);const n=e.get(56),i=n.side;"right"===i?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(84)||e.hasChanged(58)||e.hasChanged(28)){const e=this._context.configuration.options,t=e.get(84),n=e.get(58),i=e.get(28),r=e.get(87),o={handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:i,scrollPredominantAxis:r};this.scrollbar.updateOptions(o)}return e.hasChanged(117)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+om(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}n("df70");class FC{constructor(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}class jC extends Fy{_render(e,t,n){const i=[];for(let a=e;a<=t;a++){const t=a-e;i[t]=[]}if(0===n.length)return i;n.sort((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1);let r=null,o=0;for(let a=0,s=n.length;a<s;a++){const s=n[a],l=s.className;let c=Math.max(s.startLineNumber,e)-e;const u=Math.min(s.endLineNumber,t)-e;r===l?(c=Math.max(o+1,c),o=Math.max(o,u)):(r=l,o=u);for(let e=c;e<=o;e++)i[e].push(r)}return i}}class BC extends jC{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._glyphMargin=t.get(42),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._glyphMargin=t.get(42),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.glyphMarginClassName;o&&(n[i++]=new FC(e.range.startLineNumber,e.range.endLineNumber,o))}return n}prepareRender(e){if(!this._glyphMargin)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._lineHeight.toString(),o=this._glyphMarginLeft.toString(),a=this._glyphMarginWidth.toString(),s='" style="left:'+o+"px;width:"+a+"px;height:"+r+'px;"></div>',l=[];for(let c=t;c<=n;c++){const e=c-t,n=i[e];0===n.length?l[e]="":l[e]='<div class="cgmr codicon '+n.join(" ")+s}this._renderResult=l}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}n("9c85");class zC extends Fy{constructor(e){super(),this._context=e,this._primaryLineNumber=0;const t=this._context.configuration.options,n=t.get(118),i=t.get(36);this._lineHeight=t.get(51),this._spaceWidth=i.spaceWidth,this._enabled=t.get(75),this._activeIndentEnabled=t.get(45),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(118),i=t.get(36);return this._lineHeight=t.get(51),this._spaceWidth=i.spaceWidth,this._enabled=t.get(75),this._activeIndentEnabled=t.get(45),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){const t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._enabled)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,{indentSize:i}=this._context.model.getTextModelOptions(),r=i*this._spaceWidth,o=e.scrollWidth,a=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n);let l=0,c=0,u=0;if(this._activeIndentEnabled&&this._primaryLineNumber){const e=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);l=e.startLineNumber,c=e.endLineNumber,u=e.indent}const d=[];for(let h=t;h<=n;h++){const n=l<=h&&h<=c,i=h-t,f=s[i];let p="";if(f>=1){const t=e.visibleRangeForPosition(new Qt(h,1));let i=t?t.left:0;for(let e=1;e<=f;e++){const t=n&&e===u?"cigra":"cigr";if(p+=`<div class="${t}" style="left:${i}px;height:${a}px;width:${r}px"></div>`,i+=r,i>o||this._maxIndentLeft>0&&i>this._maxIndentLeft)break}}d[i]=p}this._renderResult=d}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}cm((e,t)=>{const n=e.getColor(zw);n&&t.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${n} inset; }`);const i=e.getColor(Vw)||n;i&&t.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${i} inset; }`)}),n("11cb");class VC{constructor(){this._currentVisibleRange=new Jt(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class $C{constructor(e,t,n,i,r,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class WC{constructor(e,t,n,i){this.selections=e,this.startScrollTop=t,this.stopScrollTop=n,this.scrollType=i,this.type="selections";let r=e[0].startLineNumber,o=e[0].endLineNumber;for(let a=1,s=e.length;a<s;a++){const t=e[a];r=Math.min(r,t.startLineNumber),o=Math.max(o,t.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class HC extends Hg{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new Hx(this),this.domNode=this._visibleLines.domNode;const n=this._context.configuration,i=this._context.configuration.options,r=i.get(36),o=i.get(118);this._lineHeight=i.get(51),this._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=i.get(81),this._cursorSurroundingLines=i.get(20),this._cursorSurroundingLinesStyle=i.get(21),this._canUseLayerHinting=!i.get(23),this._viewLineOptions=new gm(n,this._context.theme.type),Ug.write(this.domNode,7),this.domNode.setClassName("view-lines "+ix),Ep.applyFontInfo(this.domNode,r),this._maxLineWidth=0,this._asyncUpdateLineWidths=new Ti(()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new Ti(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new VC,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new mm(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(118)&&(this._maxLineWidth=0);const t=this._context.configuration.options,n=t.get(36),i=t.get(118);return this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(81),this._cursorSurroundingLines=t.get(20),this._cursorSurroundingLinesStyle=t.get(21),this._canUseLayerHinting=!t.get(23),Ep.applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(117)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new gm(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let t=e;t<=n;t++){const e=this._visibleLines.getVisibleLine(t);e.onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=!1;for(let r=t;r<=n;r++)i=this._visibleLines.getVisibleLine(r).onSelectionChanged()||i;return i}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new $C(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new WC(e.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop),r=i<=this._lineHeight?1:e.scrollType;return this._context.model.setScrollPosition(n,r),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const n=this._getViewLineDomNode(e);if(null===n)return null;const i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new Qt(i,1);const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<r||i>o)return null;let a=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t);const s=this._context.model.getLineMinColumn(i);return a<s&&(a=s),new Qt(i,a)}_getViewLineDomNode(e){while(e&&1===e.nodeType){if(e.className===mm.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){const t=this._visibleLines.getVisibleLine(i);if(e===t.getDomNode())return i}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const n=e.endLineNumber,i=Jt.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;let r=[],o=0;const a=new pm(this.domNode.domNode,this._textRangeRestingSpot);let s=0;t&&(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(i.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let u=i.startLineNumber;u<=i.endLineNumber;u++){if(u<l||u>c)continue;const e=u===i.startLineNumber?i.startColumn:1,d=u===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(u),h=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(e,d,a);if(h){if(t&&u<n){const e=s;s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new Qt(u+1,1)).lineNumber,e!==s&&(h.ranges[h.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}r[o++]=new Kg(h.outsideRenderedLine,u,h.ranges)}}return 0===o?null:r}_visibleRangesForLineRange(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new pm(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new Xg(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=1,r=!0;for(let o=t;o<=n;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?i=Math.max(i,t.getWidth()):r=!1}return r&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let r=n;r<=i;r++){const n=this._visibleLines.getVisibleLine(r);if(n.needsMonospaceFontCheck()){const i=n.getWidth();i>t&&(t=i,e=r)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let r=n;r<=i;r++){const e=this._visibleLines.getVisibleLine(r);e.onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),o["d"]&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++){const e=this._visibleLines.getVisibleLine(n);if(e.needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,n,i,r){const o=e.top,a=e.height,s=o+a;let l,c,u;if(i&&i.length>0){let e=i[0].startLineNumber,t=i[0].endLineNumber;for(let n=1,r=i.length;n<r;n++){const r=i[n];e=Math.min(e,r.startLineNumber),t=Math.max(t,r.endLineNumber)}l=!1,c=this._context.viewLayout.getVerticalOffsetForLineNumber(e),u=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;l=!0,c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),u=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}const d="mouse"===t&&"default"===this._cursorSurroundingLinesStyle;if(!d){const e=Math.min(a/this._lineHeight/2,this._cursorSurroundingLines);c-=e*this._lineHeight,u+=Math.max(0,e-1)*this._lineHeight}let h;if(0!==r&&4!==r||(u+=this._lineHeight),u-c>a){if(!l)return-1;h=c}else if(5===r||6===r)if(6===r&&o<=c&&u<=s)h=o;else{const e=Math.max(5*this._lineHeight,.2*a),t=c-e,n=u-a;h=Math.max(n,t)}else if(1===r||2===r)if(2===r&&o<=c&&u<=s)h=o;else{const e=(c+u)/2;h=Math.max(0,e-a/2)}else h=this._computeMinimumScrolling(o,s,c,u,3===r,4===r);return h}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),n=t.left,i=n+t.width;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,e.left),o=Math.max(o,e.left+e.width)}else for(const s of e.selections){if(s.startLineNumber!==s.endLineNumber)return null;const e=this._visibleRangesForLineRange(s.startLineNumber,s.startColumn,s.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,t.left),o=Math.max(o,t.left+t.width)}if(r=Math.max(0,r-HC.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding,"selections"===e.type&&o-r>t.width)return null;const a=this._computeMinimumScrolling(n,i,r,o);return{scrollLeft:a,maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r=!!r,o=!!o;const a=t-e,s=i-n;return s<a?r?n:o?Math.max(0,i-a):n<e?n:i>t?Math.max(0,i-a):e:n}}HC.HORIZONTAL_EXTRA_PX=30,n("b042");class UC extends jC{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(117);this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.linesDecorationsClassName;o&&(n[i++]=new FC(e.range.startLineNumber,e.range.endLineNumber,o));const a=e.options.firstLineDecorationClassName;a&&(n[i++]=new FC(e.range.startLineNumber,e.range.startLineNumber,a))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._decorationsLeft.toString(),o=this._decorationsWidth.toString(),a='" style="left:'+r+"px;width:"+o+'px;"></div>',s=[];for(let l=t;l<=n;l++){const e=l-t,n=i[e];let r="";for(let t=0,i=n.length;t<i;t++)r+='<div class="cldr '+n[t]+a;s[e]=r}this._renderResult=s}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n("a23c");class qC extends jC{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.marginClassName;o&&(n[i++]=new FC(e.range.startLineNumber,e.range.endLineNumber,o))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[];for(let o=t;o<=n;o++){const e=o-t,n=i[e];let a="";for(let t=0,i=n.length;t<i;t++)a+='<div class="cmdr '+n[t]+'" style=""></div>';r[e]=a}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n("36df");class GC{constructor(e,t,n,i){this.r=GC._clamp(e),this.g=GC._clamp(t),this.b=GC._clamp(n),this.a=GC._clamp(i)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}GC.Empty=new GC(0,0,0,0);class KC{constructor(){this._onDidChange=new ze,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Ul.onDidChange(e=>{e.changedColorMap&&this._updateColorMap()})}static getInstance(){return this._INSTANCE||(this._INSTANCE=new KC),this._INSTANCE}_updateColorMap(){const e=Ul.getColorMap();if(!e)return this._colors=[GC.Empty],void(this._backgroundIsLight=!0);this._colors=[GC.Empty];for(let n=1;n<e.length;n++){const t=e[n].rgba;this._colors[n]=new GC(t.r,t.g,t.b,Math.round(255*t.a))}let t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}KC._INSTANCE=null;const YC=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),XC=(e,t)=>(e-=32,e<0||e>96?t<=2?(e+96)%96:95:e);class ZC{constructor(e,t){this.scale=t,this.charDataNormal=ZC.soften(e,.8),this.charDataLight=ZC.soften(e,50/60)}static soften(e,t){let n=new Uint8ClampedArray(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=vu(e[i]*t);return n}renderChar(e,t,n,i,r,o,a,s,l){const c=1*this.scale,u=2*this.scale,d=l?1:u;if(t+c>e.width||n+d>e.height)return void console.warn("bad render request outside image data");const h=s?this.charDataLight:this.charDataNormal,f=XC(i,a),p=4*e.width,g=o.r,m=o.g,v=o.b,b=r.r-g,y=r.g-m,_=r.b-v,w=e.data;let x=f*c*u,C=n*p+4*t;for(let S=0;S<d;S++){let e=C;for(let t=0;t<c;t++){const t=h[x++]/255;w[e++]=g+b*t,w[e++]=m+y*t,w[e++]=v+_*t,e++}C+=p}}blockRenderChar(e,t,n,i,r,o,a){const s=1*this.scale,l=2*this.scale,c=a?1:l;if(t+s>e.width||n+c>e.height)return void console.warn("bad render request outside image data");const u=4*e.width,d=.5,h=r.r,f=r.g,p=r.b,g=i.r-h,m=i.g-f,v=i.b-p,b=h+g*d,y=f+m*d,_=p+v*d,w=e.data;let x=n*u+4*t;for(let C=0;C<c;C++){let e=x;for(let t=0;t<s;t++)w[e++]=b,w[e++]=y,w[e++]=_,e++;x+=u}}}function QC(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}const JC={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15},eS=e=>{const t=new Uint8ClampedArray(e.length/2);for(let n=0;n<e.length;n+=2)t[n>>1]=JC[e[n]]<<4|15&JC[e[n+1]];return t},tS={1:QC(()=>eS("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:QC(()=>eS("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class nS{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let n;return n=tS[e]?new ZC(tS[e](),e):nS.createFromSampleData(nS.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n,n}static createSampleData(e){const t=document.createElement("canvas"),n=t.getContext("2d");t.style.height="16px",t.height=16,t.width=960,t.style.width="960px",n.fillStyle="#ffffff",n.font="bold 16px "+e,n.textBaseline="middle";let i=0;for(const r of YC)n.fillText(String.fromCharCode(r),i,8),i+=10;return n.getImageData(0,0,960,16)}static createFromSampleData(e,t){const n=61440;if(e.length!==n)throw new Error("Unexpected source in MinimapCharRenderer");let i=nS._downsample(e,t);return new ZC(i,t)}static _downsampleChar(e,t,n,i,r){const o=1*r,a=2*r;let s=i,l=0;for(let c=0;c<a;c++){const i=c/a*16,r=(c+1)/a*16;for(let a=0;a<o;a++){const c=a/o*10,u=(a+1)/o*10;let d=0,h=0;for(let n=i;n<r;n++){const i=t+3840*Math.floor(n),r=1-(n-Math.floor(n));for(let t=c;t<u;t++){const n=1-(t-Math.floor(t)),o=i+4*Math.floor(t),a=n*r;h+=a,d+=e[o]*e[o+3]/255*a}}const f=d/h;l=Math.max(l,f),n[s++]=vu(f)}}return l}static _downsample(e,t){const n=2*t*1*t,i=96*n,r=new Uint8ClampedArray(i);let o=0,a=0,s=0;for(let l=0;l<96;l++)s=Math.max(s,this._downsampleChar(e,a,r,o,t)),o+=n,a+=40;if(s>0){const e=255/s;for(let t=0;t<i;t++)r[t]*=e}return r}}const iS=140,rS=2;class oS{constructor(e,t,n){const i=e.options,r=i.get(115),o=i.get(117),a=o.minimap,s=i.get(36),l=i.get(56);this.renderMinimap=a.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=a.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=i.get(86),this.showSlider=l.showSlider,this.pixelRatio=r,this.typicalHalfwidthCharacterWidth=s.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(51),this.minimapLeft=a.minimapLeft,this.minimapWidth=a.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=a.minimapCanvasInnerWidth,this.canvasInnerHeight=a.minimapCanvasInnerHeight,this.canvasOuterWidth=a.minimapCanvasOuterWidth,this.canvasOuterHeight=a.minimapCanvasOuterHeight,this.isSampling=a.minimapIsSampling,this.editorHeight=o.height,this.fontScale=a.minimapScale,this.minimapLineHeight=a.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=QC(()=>nS.create(this.fontScale,s.fontFamily)),this.backgroundColor=oS._getMinimapBackground(t,n)}static _getMinimapBackground(e,t){const n=e.getColor(yw);return n?new GC(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a):t.getColor(2)}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&this.minimapLeft===e.minimapLeft&&this.minimapWidth===e.minimapWidth&&this.minimapHeight===e.minimapHeight&&this.canvasInnerWidth===e.canvasInnerWidth&&this.canvasInnerHeight===e.canvasInnerHeight&&this.canvasOuterWidth===e.canvasOuterWidth&&this.canvasOuterHeight===e.canvasOuterHeight&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)}}class aS{constructor(e,t,n,i,r,o,a,s){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=n,this._computedSliderRatio=i,this.sliderTop=r,this.sliderHeight=o,this.startLineNumber=a,this.endLineNumber=s}getDesiredScrollTopFromDelta(e){const t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,n,i,r,o,a,s,l,c){const u=e.pixelRatio,d=e.minimapLineHeight,h=Math.floor(e.canvasInnerHeight/d),f=e.lineHeight;if(e.minimapHeightIsEditorHeight){const t=a*e.lineHeight+(e.scrollBeyondLastLine?i-e.lineHeight:0),n=Math.max(1,Math.floor(i*i/t)),r=Math.max(0,e.minimapHeight-n),c=r/(l-i),u=s*c,d=r>0,h=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new aS(s,l,d,c,u,n,1,Math.min(o,h))}let p,g;if(r&&n!==o){const e=n-t+1;p=Math.floor(e*d/u)}else{const e=i/f;p=Math.floor(e*d/u)}g=e.scrollBeyondLastLine?(o-1)*d/u:Math.max(0,o*d/u-p),g=Math.min(e.minimapHeight-p,g);const m=g/(l-i),v=s*m;let b=0;if(e.scrollBeyondLastLine){const e=i/f;b=e-1}if(h>=o+b){const e=1,t=o,n=g>0;return new aS(s,l,n,m,v,p,e,t)}{let e=Math.max(1,Math.floor(t-v*u/d));c&&c.scrollHeight===l&&(c.scrollTop>s&&(e=Math.min(e,c.startLineNumber)),c.scrollTop<s&&(e=Math.max(e,c.startLineNumber)));const n=Math.min(o,e+h-1);return new aS(s,l,!0,m,v,p,e,n)}}}class sS{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}sS.INVALID=new sS(-1);class lS{constructor(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Wx(()=>sS.INVALID),this._renderedLines._set(e.startLineNumber,n)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get(),n=t.lines;for(let i=0,r=n.length;i<r;i++)if(-1===n[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class cS{constructor(e,t,n,i){this._backgroundFillData=cS._createBackgroundFillData(t,n,i),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,n){const i=n.r,r=n.g,o=n.b,a=new Uint8ClampedArray(e*t*4);let s=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)a[s]=i,a[s+1]=r,a[s+2]=o,a[s+3]=255,s+=4;return a}}class uS{constructor(e,t){this.samplingRatio=e,this.minimapLines=t}static compute(e,t,n){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const i=e.pixelRatio,r=e.lineHeight,o=e.scrollBeyondLastLine,{minimapLineCount:a}=V.computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:o,height:e.editorHeight,lineHeight:r,pixelRatio:i}),s=t/a,l=s/2;if(!n||0===n.minimapLines.length){let e=[];if(e[0]=1,a>1){for(let t=0,n=a-1;t<n;t++)e[t]=Math.round(t*s+l);e[a-1]=t}return[new uS(s,e),[]]}const c=n.minimapLines,u=c.length;let d=[],h=0,f=0,p=1;const g=10;let m=[],v=null;for(let b=0;b<a;b++){const e=Math.max(p,Math.round(b*s)),n=Math.max(e,Math.round((b+1)*s));while(h<u&&c[h]<e){if(m.length<g){const e=h+1+f;v&&"deleted"===v.type&&v._oldIndex===h-1?v.deleteToLineNumber++:(v={type:"deleted",_oldIndex:h,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(v)),f--}h++}let i;if(h<u&&c[h]<=n)i=c[h],h++;else if(i=0===b?1:b+1===a?t:Math.round(b*s+l),m.length<g){const e=h+1+f;v&&"inserted"===v.type&&v._i===b-1?v.insertToLineNumber++:(v={type:"inserted",_i:b,insertFromLineNumber:e,insertToLineNumber:e},m.push(v)),f++}d[b]=i,p=i}if(m.length<g)while(h<u){const e=h+1+f;v&&"deleted"===v.type&&v._oldIndex===h-1?v.deleteToLineNumber++:(v={type:"deleted",_oldIndex:h,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(v)),f--,h++}else m=[{type:"flush"}];return[new uS(s,d),m]}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e)-1;while(n>0&&this.minimapLines[n-1]>=e)n--;let i=this.modelLineToMinimapLine(t)-1;while(i+1<this.minimapLines.length&&this.minimapLines[i+1]<=t)i++;if(n===i){const i=this.minimapLines[n];if(i<e||i>t)return null}return[n+1,i+1]}decorationLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e),i=this.modelLineToMinimapLine(t);return e!==t&&i===n&&(i===this.minimapLines.length?n>1&&n--:i++),[n,i]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let n=this.minimapLines.length,i=0;for(let r=this.minimapLines.length-1;r>=0;r--){if(this.minimapLines[r]<e.fromLineNumber)break;this.minimapLines[r]<=e.toLineNumber?(this.minimapLines[r]=Math.max(1,e.fromLineNumber-1),n=Math.min(n,r),i=Math.max(i,r)):this.minimapLines[r]-=t}return[n,i]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let n=this.minimapLines.length-1;n>=0;n--){if(this.minimapLines[n]<e.fromLineNumber)break;this.minimapLines[n]+=t}}}class dS extends Hg{constructor(e){super(e),this.tokensColorTracker=KC.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new oS(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=uS.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new hS(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new oS(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.toLineNumber);return!!t&&this._actual.onLinesChanged(t[0],t[1])}return this._actual.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){if(this._samplingState){const[t,n]=this._samplingState.onLinesDeleted(e);return t<=n&&this._actual.onLinesChanged(t+1,n+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){let t=[];for(const n of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(n.fromLineNumber,n.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),n=this._samplingState.modelLineToMinimapLine(n));const i={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:n,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(i)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,n]=uS.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const i of n)switch(i.type){case"deleted":this._actual.onLinesDeleted(i.deleteFromLineNumber,i.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(i.insertFromLineNumber,i.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getMinimapLinesRenderingData(e,t,n){if(this._samplingState){let i=[];for(let r=0,o=t-e+1;r<o;r++)n[r]?i[r]=this._context.model.getViewLineData(this._samplingState.minimapLines[e+r-1]):i[r]=null;return i}return this._context.model.getMinimapLinesRenderingData(e,t,n).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,n]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new en(t,e.startColumn,n,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let n;if(this._samplingState){const i=this._samplingState.minimapLines[e-1],r=this._samplingState.minimapLines[t-1];n=new Jt(i,1,r,this._context.model.getLineMaxColumn(r))}else n=new Jt(e,1,t,this._context.model.getLineMaxColumn(t));const i=this._context.model.getDecorationsInViewport(n);if(this._samplingState){let e=[];for(const t of i){if(!t.options.minimap)continue;const n=t.range,i=this._samplingState.modelLineToMinimapLine(n.startLineNumber),r=this._samplingState.modelLineToMinimapLine(n.endLineNumber);e.push(new Ld(new Jt(i,n.startColumn,r,n.endColumn),t.options))}return e}return i}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.model.revealRange("mouse",!1,new Jt(e,1,e,1),1,0)}setScrollTop(e){this._context.model.setScrollPosition({scrollTop:e},1)}}class hS extends Ae{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(mw),this._domNode=Og(document.createElement("div")),Ug.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Og(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Og(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Og(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Og(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Og(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=fr(this._domNode.domNode,"mousedown",e=>{e.preventDefault();const t=this._model.options.renderMinimap;if(0===t)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(e.leftButton&&this._lastRenderData){const t=Tr(this._slider.domNode),n=t.top+t.height/2;this._startSliderDragging(e.buttons,e.posx,n,e.posy,this._lastRenderData.renderedLayout)}return}const n=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY,r=Math.floor(i/n);let o=r+this._lastRenderData.renderedLayout.startLineNumber;o=Math.min(o,this._model.getLineCount()),this._model.revealLineNumber(o)}),this._sliderMouseMoveMonitor=new Ng,this._sliderMouseDownListener=fr(this._slider.domNode,"mousedown",e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=Ig.addTarget(this._domNode.domNode),this._sliderTouchStartListener=ur(this._domNode.domNode,Tg.Start,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))},{passive:!1}),this._sliderTouchMoveListener=ur(this._domNode.domNode,Tg.Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=fr(this._domNode.domNode,Tg.End,e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,n,i,r){this._slider.toggleClassName("active",!0);const a=(e,i)=>{const a=Math.abs(i-t);if(o["i"]&&a>iS)return void this._model.setScrollTop(r.scrollTop);const s=e-n;this._model.setScrollTop(r.getDesiredScrollTopFromDelta(s))};i!==n&&a(i,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,Ag,e=>a(e.posy,e.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(n)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new cS(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(mw),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){const t=this._model.options.renderMinimap;if(0===t)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const n=aS.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(n.sliderNeeded?"block":"none"),this._slider.setTop(n.sliderTop),this._slider.setHeight(n.sliderHeight);const i=e.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,r=Math.min(this._model.options.minimapWidth,Math.round(i*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(n.sliderHeight),this.renderDecorations(n),this._lastRenderData=this.renderLines(n)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections(),n=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber),{canvasInnerWidth:i,canvasInnerHeight:r}=this._model.options,o=this._model.options.minimapLineHeight,a=this._model.options.minimapCharWidth,s=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,i,r);const c=new Map;for(let u=0;u<t.length;u++){const n=t[u];for(let t=n.startLineNumber;t<=n.endLineNumber;t++)this.renderDecorationOnLine(l,c,n,this._selectionColor,e,t,o,o,s,a)}for(let u=0;u<n.length;u++){const t=n[u];if(!t.options.minimap)continue;const i=t.options.minimap.getColor(this._theme);for(let n=t.range.startLineNumber;n<=t.range.endLineNumber;n++)switch(t.options.minimap.position){case xa.Inline:this.renderDecorationOnLine(l,c,t.range,i,e,n,o,o,s,a);continue;case xa.Gutter:const r=(n-e.startLineNumber)*o,u=2;this.renderDecoration(l,i,u,r,rS,o);continue}}}}renderDecorationOnLine(e,t,n,i,r,o,a,s,l,c){const u=(o-r.startLineNumber)*s;if(u+a<0||u>this._model.options.canvasInnerHeight)return;let d=t.get(o);const h=!d;if(!d){const e=this._model.getLineContent(o);d=[f];for(let t=1;t<e.length+1;t++){const n=e.charCodeAt(t-1),i=9===n?l*c:xo["C"](n)?2*c:c;d[t]=d[t-1]+i}t.set(o,d)}const{startColumn:p,endColumn:g,startLineNumber:m,endLineNumber:v}=n,b=m===o?d[p-1]:f,y=v>o?d.length-1:g-1;if(y>0){const t=d[y]-b||2;this.renderDecoration(e,i,b,u,t,a)}h&&this.renderLineHighlight(e,i,u,a)}renderLineHighlight(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect(f,n,e.canvas.width,i)}renderDecoration(e,t,n,i,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,r,o)}renderLines(e){const t=e.startLineNumber,n=e.endLineNumber,i=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new lS(e,t.imageData,t.lines)}const r=this._getBuffer();if(!r)return null;let[o,a,s]=hS._renderUntouchedLines(r,t,n,i,this._lastRenderData);const l=this._model.getMinimapLinesRenderingData(t,n,s),c=this._model.getOptions().tabSize,u=this._model.options.backgroundColor,d=this._model.tokensColorTracker,h=d.backgroundIsLight(),f=this._model.options.renderMinimap,p=this._model.options.charRenderer(),g=this._model.options.fontScale,m=this._model.options.minimapCharWidth,v=1===f?2:3,b=v*g,y=i>b?Math.floor((i-b)/2):0;let _=0;const w=[];for(let O=0,M=n-t+1;O<M;O++)s[O]&&hS._renderLine(r,u,h,f,m,d,p,_,y,c,l[O],g,i),w[O]=new sS(_),_+=i;const x=-1===o?0:o,C=-1===a?r.height:a,S=C-x,k=this._canvas.domNode.getContext("2d");return k.putImageData(r,0,0,0,x,r.width,S),new lS(e,r,w)}static _renderUntouchedLines(e,t,n,i,r){const o=[];if(!r){for(let e=0,i=n-t+1;e<i;e++)o[e]=!0;return[-1,-1,o]}const a=r._get(),s=a.imageData.data,l=a.rendLineNumberStart,c=a.lines,u=c.length,d=e.width,h=e.data,f=(n-t+1)*i*d*4;let p=-1,g=-1,m=-1,v=-1,b=-1,y=-1,_=0;for(let C=t;C<=n;C++){const e=C-t,n=C-l,r=n>=0&&n<u?c[n].dy:-1;if(-1===r){o[e]=!0,_+=i;continue}const a=r*d*4,w=(r+i)*d*4,x=_*d*4,S=(_+i)*d*4;v===a&&y===x?(v=w,y=S):(-1!==m&&(h.set(s.subarray(m,v),b),-1===p&&0===m&&m===b&&(p=v),-1===g&&v===f&&m===b&&(g=m)),m=a,v=w,b=x,y=S),o[e]=!1,_+=i}-1!==m&&(h.set(s.subarray(m,v),b),-1===p&&0===m&&m===b&&(p=v),-1===g&&v===f&&m===b&&(g=m));const w=-1===p?-1:p/(4*d),x=-1===g?-1:g/(4*d);return[w,x,o]}static _renderLine(e,t,n,i,r,o,a,s,l,c,u,d,h){const p=u.content,g=u.tokens,m=e.width-r,v=1===h;let b=f,y=0,_=0;for(let f=0,w=g.getCount();f<w;f++){const u=g.getEndOffset(f),h=g.getForeground(f),w=o.getColor(h);for(;y<u;y++){if(b>m)return;const o=p.charCodeAt(y);if(9===o){const e=c-(y+_)%c;_+=e-1,b+=e*r}else if(32===o)b+=r;else{const c=xo["C"](o)?2:1;for(let u=0;u<c;u++)if(2===i?a.blockRenderChar(e,b,s+l,w,t,n,v):a.renderChar(e,b,s+l,o,w,t,d,n,v),b+=r,b>m)return}}}}}cm((e,t)=>{const n=e.getColor(yw);n&&t.addRule(`.monaco-editor .minimap > canvas { opacity: ${n.rgba.a}; will-change: opacity; }`);const i=e.getColor(_w);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);const r=e.getColor(ww);r&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${r}; }`);const o=e.getColor(xw);o&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o}; }`);const a=e.getColor(h_);a&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${a} -6px 0 6px -6px inset; }`)}),n("70a8");class fS extends Hg{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._widgets={},this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,this._domNode=Og(document.createElement("div")),Ug.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,!0}addWidget(e){const t=Og(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()}setWidgetPosition(e,t){const n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t],n=e.domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._renderWidget(this._widgets[e])}}}class pS{constructor(e,t){const n=e.options;this.lineHeight=n.get(51),this.pixelRatio=n.get(115),this.overviewRulerLanes=n.get(65),this.renderBorder=n.get(64);const i=t.getColor(qw);this.borderColor=i?i.toString():null,this.hideCursor=n.get(44);const r=t.getColor(Fw);this.cursorColor=r?r.transparent(.7).toString():null,this.themeType=t.type;const o=n.get(56),a=o.enabled,s=o.side,l=a?t.getColor(Gw)||Ul.getDefaultBackground():null;this.backgroundColor=null===l||"left"===s?null:Eb.Format.CSS.formatHex(l);const c=n.get(117),u=c.overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[d,h]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=d,this.w=h}_initLanes(e,t,n){const i=t-e;if(n>=3){const t=Math.floor(i/3),n=Math.floor(i/3),r=i-t-n,o=e,a=o+t,s=o+t+r;return[[0,o,a,o,s,o,a,o],[0,t,r,t+r,n,t+r+n,r+n,t+r+n]]}if(2===n){const t=Math.floor(i/2),n=i-t,r=e,o=r+t;return[[0,r,r,r,o,r,r,r],[0,t,t,t,n,t+n,t+n,t+n]]}{const t=e,n=i;return[[0,t,t,t,t,t,t,t],[0,n,n,n,n,n,n,n]]}}equals(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight}}class gS extends Hg{constructor(e){super(e),this._domNode=Og(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Ul.onDidChange(e=>{e.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new pS(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(Qt.compare),!0}onDecorationsChanged(e){return!!e.affectsOverviewRuler}onFlushed(e){return!0}onScrollChanged(e){return e.scrollHeightChanged}onZonesChanged(e){return!0}onThemeChanged(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render()}_render(){if(0===this._settings.overviewRulerLanes)return void this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");const e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,r=this._context.viewLayout.getScrollHeight(),o=t/r,a=this._context.model.getAllOverviewRulerDecorations(this._context.theme),s=6*this._settings.pixelRatio|0,l=s/2|0,c=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?c.clearRect(0,0,e,t):(c.fillStyle=this._settings.backgroundColor,c.fillRect(0,0,e,t));const u=this._settings.x,d=this._settings.w,h=Object.keys(a);h.sort();for(let f=0,p=h.length;f<p;f++){const e=h[f],r=a[e];c.fillStyle=e;let p=0,g=0,m=0;for(let a=0,h=r.length;a<h;a++){const e=r[3*a],h=r[3*a+1],f=r[3*a+2];let v=i.getVerticalOffsetForLineNumber(h)*o|0,b=(i.getVerticalOffsetForLineNumber(f)+n)*o|0;const y=b-v;if(y<s){let e=(v+b)/2|0;e<l?e=l:e+l>t&&(e=t-l),v=e-l,b=e+l}v>m+1||e!==p?(0!==a&&c.fillRect(u[p],g,d[p],m-g),p=e,g=v,m=b):b>m&&(m=b)}c.fillRect(u[p],g,d[p],m-g)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,n=e/2|0,r=this._settings.x[7],a=this._settings.w[7];c.fillStyle=this._settings.cursorColor;let s=-100,l=-100;for(let u=0,d=this._cursorPositions.length;u<d;u++){const d=this._cursorPositions[u];let h=i.getVerticalOffsetForLineNumber(d.lineNumber)*o|0;h<n?h=n:h+n>t&&(h=t-n);const f=h-n,p=f+e;f>l+1?(0!==u&&c.fillRect(r,s,a,l-s),s=f,l=p):p>l&&(l=p)}c.fillRect(r,s,a,l-s)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,t),c.stroke(),c.moveTo(0,0),c.lineTo(e,0),c.stroke())}}class mS{constructor(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class vS{constructor(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}static compare(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class bS{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(vS.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=Math.floor(this._outerHeight),r=n/i,o=Math.floor(4*this._pixelRatio/2);let a=[];for(let s=0,l=this._zones.length;s<l;s++){const i=this._zones[s];if(!e){const e=i.getColorZones();if(e){a.push(e);continue}}const l=Math.floor(r*this._getVerticalOffsetForLine(i.startLineNumber)),c=Math.floor(r*(this._getVerticalOffsetForLine(i.endLineNumber)+t));let u=Math.floor((l+c)/2),d=c-u;d<o&&(d=o),u-d<0&&(u=d),u+d>n&&(u=n-d);const h=i.color;let f=this._color2Id[h];f||(f=++this._lastAssignedId,this._color2Id[h]=f,this._id2Color[f]=h);const p=new mS(u-d,u+d,f);i.setColorZone(p),a.push(p)}return this._colorZonesInvalid=!1,a.sort(mS.compare),a}}class yS extends Wg{constructor(e,t){super(),this._context=e;const n=this._context.configuration.options;this._domNode=Og(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new bS(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(n.get(51)),this._zoneManager.setPixelRatio(n.get(115)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(51)&&(this._zoneManager.setLineHeight(t.get(51)),this._render()),e.hasChanged(115)&&(this._zoneManager.setPixelRatio(t.get(115)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}_renderOneLane(e,t,n,i){let r=0,o=0,a=0;for(const s of t){const t=s.colorId,l=s.from,c=s.to;t!==r?(e.fillRect(0,o,i,a-o),r=t,e.fillStyle=n[r],o=l,a=c):a>=l?a=Math.max(a,c):(e.fillRect(0,o,i,a-o),o=l,a=c)}e.fillRect(0,o,i,a-o)}}n("df93");class _S extends Hg{constructor(e){super(e),this.domNode=Og(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(83),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(83),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:n}=this._context.model.getTextModelOptions(),i=n;let r=t-e;while(r>0){const e=Og(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(i),this.domNode.appendChild(e),this._renderedRulers.push(e),r--}return}let n=e-t;while(n>0){const e=this._renderedRulers.pop();this.domNode.removeChild(e),n--}}render(e){this._ensureRulersCount();for(let t=0,n=this._rulers.length;t<n;t++){const n=this._renderedRulers[t],i=this._rulers[t];n.setBoxShadow(i.color?`1px 0 0 0 ${i.color} inset`:""),n.setHeight(Math.min(e.scrollHeight,1e6)),n.setLeft(i.column*this._typicalHalfwidthCharacterWidth)}}}cm((e,t)=>{const n=e.getColor(Uw);n&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${n} inset; }`)}),n("9368");class wS extends Hg{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options,n=t.get(84);this._useShadows=n.useShadows,this._domNode=Og(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options,t=e.get(117);0===t.minimap.renderMinimap||t.minimap.minimapWidth>0&&0===t.minimap.minimapLeft?this._width=t.width:this._width=t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(84);return this._useShadows=n.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}cm((e,t)=>{const n=e.getColor(h_);n&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${n} 0 6px 6px -6px inset; }`)}),n("adf0");class xS{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class CS{constructor(e,t){this.lineNumber=e,this.ranges=t}}function SS(e){return new xS(e)}function kS(e){return new CS(e.lineNumber,e.ranges.map(SS))}const OS=Jn;class MS extends Fy{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(51),this._roundedSelection=t.get(82),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(51),this._roundedSelection=t.get(82),this._typicalHalfwidthCharacterWidth=t.get(36).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n.ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,n){const i=this._typicalHalfwidthCharacterWidth/4;let r=null,o=null;if(n&&n.length>0&&t.length>0){const i=t[0].lineNumber;if(i===e.startLineNumber)for(let e=0;!r&&e<n.length;e++)n[e].lineNumber===i&&(r=n[e].ranges[0]);const a=t[t.length-1].lineNumber;if(a===e.endLineNumber)for(let e=n.length-1;!o&&e>=0;e--)n[e].lineNumber===a&&(o=n[e].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}for(let a=0,s=t.length;a<s;a++){const e=t[a].ranges[0],n=e.left,l=e.left+e.width,c={top:0,bottom:0},u={top:0,bottom:0};if(a>0){const e=t[a-1].ranges[0].left,r=t[a-1].ranges[0].left+t[a-1].ranges[0].width;DS(n-e)<i?c.top=2:n>e&&(c.top=1),DS(l-r)<i?u.top=2:e<l&&l<r&&(u.top=1)}else r&&(c.top=r.startStyle.top,u.top=r.endStyle.top);if(a+1<s){const e=t[a+1].ranges[0].left,r=t[a+1].ranges[0].left+t[a+1].ranges[0].width;DS(n-e)<i?c.bottom=2:e<n&&n<r&&(c.bottom=1),DS(l-r)<i?u.bottom=2:l<r&&(u.bottom=1)}else o&&(c.bottom=o.startStyle.bottom,u.bottom=o.endStyle.bottom);e.startStyle=c,e.endStyle=u}}_getVisibleRangesWithStyle(e,t,n){const i=t.linesVisibleRangesForRange(e,!0)||[],r=i.map(kS),o=this._visibleRangesHaveGaps(r);return OS||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,r,n),r}_createSelectionPiece(e,t,n,i,r){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+r.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,n,i){if(0===i.length)return;const r=!!i[0].ranges[0].startStyle,o=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),s=i[0].lineNumber,l=i[i.length-1].lineNumber;for(let c=0,u=i.length;c<u;c++){const u=i[c],d=u.lineNumber,h=d-t,f=!n||d!==l&&d!==s?o:a,p=n&&d===s?1:0;let g="",m="";for(let e=0,t=u.ranges.length;e<t;e++){const t=u.ranges[e];if(r){const e=t.startStyle,n=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(p,f,MS.SELECTION_CLASS_NAME,t.left-MS.ROUNDED_PIECE_WIDTH,MS.ROUNDED_PIECE_WIDTH);let n=MS.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(n+=" "+MS.SELECTION_TOP_RIGHT),1===e.bottom&&(n+=" "+MS.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(p,f,n,t.left-MS.ROUNDED_PIECE_WIDTH,MS.ROUNDED_PIECE_WIDTH)}if(1===n.top||1===n.bottom){g+=this._createSelectionPiece(p,f,MS.SELECTION_CLASS_NAME,t.left+t.width,MS.ROUNDED_PIECE_WIDTH);let e=MS.EDITOR_BACKGROUND_CLASS_NAME;1===n.top&&(e+=" "+MS.SELECTION_TOP_LEFT),1===n.bottom&&(e+=" "+MS.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(p,f,e,t.left+t.width,MS.ROUNDED_PIECE_WIDTH)}}let n=MS.SELECTION_CLASS_NAME;if(r){const e=t.startStyle,i=t.endStyle;0===e.top&&(n+=" "+MS.SELECTION_TOP_LEFT),0===e.bottom&&(n+=" "+MS.SELECTION_BOTTOM_LEFT),0===i.top&&(n+=" "+MS.SELECTION_TOP_RIGHT),0===i.bottom&&(n+=" "+MS.SELECTION_BOTTOM_RIGHT)}m+=this._createSelectionPiece(p,f,n,t.left,t.width)}e[h][0]+=g,e[h][1]+=m}}prepareRender(e){const t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;for(let o=n;o<=i;o++){const e=o-n;t[e]=["",""]}const r=[];for(let o=0,a=this._selections.length;o<a;o++){const i=this._selections[o];if(i.isEmpty()){r[o]=null;continue}const a=this._getVisibleRangesWithStyle(i,e,this._previousFrameVisibleRangesWithStyle[o]);r[o]=a,this._actualRenderOneSelection(t,n,this._selections.length>1,a)}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}function DS(e){return e<0?-e:e}MS.SELECTION_CLASS_NAME="selected-text",MS.SELECTION_TOP_LEFT="top-left-radius",MS.SELECTION_BOTTOM_LEFT="bottom-left-radius",MS.SELECTION_TOP_RIGHT="top-right-radius",MS.SELECTION_BOTTOM_RIGHT="bottom-right-radius",MS.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",MS.ROUNDED_PIECE_WIDTH=10,cm((e,t)=>{const n=e.getColor(P_);n&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${n}; }`);const i=e.getColor(F_);i&&t.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const r=e.getColor(R_);r&&!r.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r}; }`)}),n("b856");class ES{constructor(e,t,n,i,r,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=r,this.textContentClassName=o}}class TS{constructor(e){this._context=e;const t=this._context.configuration.options,n=t.get(36);this._cursorStyle=t.get(19),this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(22),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Og(document.createElement("div")),this._domNode.setClassName("cursor "+ix),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Ep.applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new Qt(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(36);return this._cursorStyle=t.get(19),this._lineHeight=t.get(51),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(22),this._typicalHalfwidthCharacterWidth),Ep.applyFontInfo(this._domNode,n),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===T.Line||this._cursorStyle===T.LineThin){const n=e.visibleRangeForPosition(this._position);if(!n||n.outsideRenderedLine)return null;let i;if(this._cursorStyle===T.Line){if(i=po(this._lineCursorWidth>0?this._lineCursorWidth:2),i>2){const e=this._context.model.getLineContent(this._position.lineNumber),n=xo["J"](e,this._position.column-1);t=e.substr(this._position.column-1,n)}}else i=po(1);let r=n.left;i>=2&&r>=1&&(r-=1);const o=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new ES(o,r,i,this._lineHeight,t,"")}const n=this._context.model.getLineContent(this._position.lineNumber),i=xo["J"](n,this._position.column-1),r=e.linesVisibleRangesForRange(new Jt(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+i),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const a=o.ranges[0],s=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let l="";if(this._cursorStyle===T.Block){const e=this._context.model.getViewLineData(this._position.lineNumber);t=n.substr(this._position.column-1,i);const r=e.tokens.findTokenIndexAtOffset(this._position.column-1);l=e.tokens.getClassName(r)}let c=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,u=this._lineHeight;return this._cursorStyle!==T.Underline&&this._cursorStyle!==T.UnderlineThin||(c+=this._lineHeight-2,u=2),new ES(c,a.left,s,u,t,l)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${ix} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class LS extends Hg{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(72),this._cursorBlinking=t.get(17),this._cursorStyle=t.get(19),this._cursorSmoothCaretAnimation=t.get(18),this._selectionIsEmpty=!0,this._isVisible=!1,this._primaryCursor=new TS(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Og(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new Di,this._cursorFlatBlinkInterval=new Ei,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(72),this._cursorBlinking=t.get(17),this._cursorStyle=t.get(19),this._cursorSmoothCaretAnimation=t.get(18),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new TS(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n])}onCursorStateChanged(e){const t=[];for(let i=0,r=e.selections.length;i<r;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));const n=e.selections[0].isEmpty();return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const n of this._secondaryCursors)if(t(n.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,n=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||n||(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},LS.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},LS.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case T.Line:e+=" cursor-line-style";break;case T.Block:e+=" cursor-block-style";break;case T.Underline:e+=" cursor-underline-style";break;case T.LineThin:e+=" cursor-line-thin-style";break;case T.BlockOutline:e+=" cursor-block-outline-style";break;case T.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],n=0;const i=this._primaryCursor.render(e);i&&(t[n++]=i);for(let r=0,o=this._secondaryCursors.length;r<o;r++){const i=this._secondaryCursors[r].render(e);i&&(t[n++]=i)}this._renderData=t}getLastRenderData(){return this._renderData}}LS.BLINK_INTERVAL=500,cm((e,t)=>{const n=e.getColor(Fw);if(n){let i=e.getColor(jw);i||(i=n.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${n}; border-color: ${n}; color: ${i}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const IS=()=>{throw new Error("Invalid change accessor")};class AS extends Hg{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(117);this._lineHeight=t.get(51),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this.domNode=Og(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Og(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let n=!1;return this._context.model.changeWhitespace(e=>{const i=Object.keys(this._zones);for(let r=0,o=i.length;r<o;r++){const o=i[r],a=this._zones[o],s=this._computeWhitespaceProps(a.delegate),l=t.get(o);!l||l.afterLineNumber===s.afterViewLineNumber&&l.height===s.heightInPx||(e.changeOneWhitespace(o,s.afterViewLineNumber,s.heightInPx),this._safeCallOnComputedHeight(a.delegate,s.heightInPx),n=!0)}}),n}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(117);return this._lineHeight=t.get(51),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(51)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,n;if("undefined"!==typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const n=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new Qt(n,this._context.model.getModelLineMaxColumn(n))}n=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});const i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t),r=this._context.model.coordinatesConverter.modelPositionIsVisible(n);return{afterViewLineNumber:i.lineNumber,heightInPx:r?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}}changeViewZones(e){let t=!1;return this._context.model.changeWhitespace(n=>{const i={addZone:e=>(t=!0,this._addZone(n,e)),removeZone:e=>{e&&(t=this._removeZone(n,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(n,e)||t)}};NS(e,i),i.addZone=IS,i.removeZone=IS,i.layoutZone=IS}),t}_addZone(e,t){const n=this._computeWhitespaceProps(t),i=e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),r={whitespaceId:i,delegate:t,isVisible:!1,domNode:Og(t.domNode),marginDomNode:t.marginDomNode?Og(t.marginDomNode):null};return this._safeCallOnComputedHeight(r.delegate,n.heightInPx),r.domNode.setPosition("absolute"),r.domNode.domNode.style.width="100%",r.domNode.setDisplay("none"),r.domNode.setAttribute("monaco-view-zone",r.whitespaceId),this.domNode.appendChild(r.domNode),r.marginDomNode&&(r.marginDomNode.setPosition("absolute"),r.marginDomNode.domNode.style.width="100%",r.marginDomNode.setDisplay("none"),r.marginDomNode.setAttribute("monaco-view-zone",r.whitespaceId),this.marginDomNode.appendChild(r.marginDomNode)),this._zones[r.whitespaceId]=r,this.setShouldRender(),r.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t];return delete this._zones[t],e.removeWhitespace(n.whitespaceId),n.domNode.removeAttribute("monaco-visible-view-zone"),n.domNode.removeAttribute("monaco-view-zone"),n.domNode.domNode.parentNode.removeChild(n.domNode.domNode),n.marginDomNode&&(n.marginDomNode.removeAttribute("monaco-visible-view-zone"),n.marginDomNode.removeAttribute("monaco-view-zone"),n.marginDomNode.domNode.parentNode.removeChild(n.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){ge(n)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){ge(n)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,n={};let i=!1;for(let o=0,a=t.length;o<a;o++)n[t[o].id]=t[o],i=!0;const r=Object.keys(this._zones);for(let o=0,a=r.length;o<a;o++){const t=r[o],i=this._zones[t];let a=0,s=0,l="none";n.hasOwnProperty(t)?(a=n[t].verticalOffset-e.bigNumbersDelta,s=n[t].height,l="block",i.isVisible||(i.domNode.setAttribute("monaco-visible-view-zone","true"),i.isVisible=!0),this._safeCallOnDomNodeTop(i.delegate,e.getScrolledTopFromAbsoluteTop(n[t].verticalOffset))):(i.isVisible&&(i.domNode.removeAttribute("monaco-visible-view-zone"),i.isVisible=!1),this._safeCallOnDomNodeTop(i.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),i.domNode.setTop(a),i.domNode.setHeight(s),i.domNode.setDisplay(l),i.marginDomNode&&(i.marginDomNode.setTop(a),i.marginDomNode.setHeight(s),i.marginDomNode.setDisplay(l))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}function NS(e,t){try{return e(t)}catch(n){ge(n)}}class PS{constructor(e){this._theme=e}get type(){return this._theme.type}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class RS{constructor(e,t,n){this.configuration=e,this.theme=new PS(t),this.model=n,this.viewLayout=n.viewLayout}addEventHandler(e){this.model.addViewEventHandler(e)}removeEventHandler(e){this.model.removeViewEventHandler(e)}}class FS{constructor(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new Jt(t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class jS extends Wg{constructor(e,t,n,i,r,o){super(),this._selections=[new en(1,1,1,1)],this._renderAnimationFrame=null;const a=new zx(t,i,r,e);this._context=new RS(t,n.getColorTheme(),i),this._context.addEventHandler(this),this._register(n.onDidColorThemeChange(e=>{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new ax(this._context,a,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Og(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Og(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Og(document.createElement("div")),Ug.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new RC(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new HC(this._context,this._linesContent),this._viewZones=new AS(this._context),this._viewParts.push(this._viewZones);const s=new gS(this._context);this._viewParts.push(s);const l=new wS(this._context);this._viewParts.push(l);const c=new Kx(this._context);this._viewParts.push(c),c.addDynamicOverlay(new tC(this._context)),c.addDynamicOverlay(new MS(this._context)),c.addDynamicOverlay(new zC(this._context)),c.addDynamicOverlay(new iC(this._context));const u=new Yx(this._context);this._viewParts.push(u),u.addDynamicOverlay(new nC(this._context)),u.addDynamicOverlay(new BC(this._context)),u.addDynamicOverlay(new qC(this._context)),u.addDynamicOverlay(new UC(this._context)),u.addDynamicOverlay(new tx(this._context));const d=new nx(this._context);d.getDomNode().appendChild(this._viewZones.marginDomNode),d.getDomNode().appendChild(u.getDomNode()),this._viewParts.push(d),this._contentWidgets=new Zx(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new LS(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new fS(this._context),this._viewParts.push(this._overlayWidgets);const h=new _S(this._context);this._viewParts.push(h);const f=new dS(this._context);if(this._viewParts.push(f),s){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(s.getDomNode(),e.insertBefore)}this._linesContent.appendChild(c.getDomNode()),this._linesContent.appendChild(h.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(d.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(f.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),o?o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new Ey(this._context,a,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new uy(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Qt(e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new Qt(e,t)))}}_applyLayout(){const e=this._context.configuration.options,t=e.get(117);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(114)+" "+om(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(let e=0,t=this._viewParts.length;e<t;e++)this._viewParts[e].dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=mr(this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){BS(()=>this._actualRender())}_getViewPartsToRender(){let e=[],t=0;for(let n=0,i=this._viewParts.length;n<i;n++){const i=this._viewParts[n];i.shouldRender()&&(e[t++]=i)}return e}_actualRender(){if(!tr(this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const n=new FS(this._selections,t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(n),this._viewLines.shouldRender()&&(this._viewLines.renderText(n),this._viewLines.onDidRender(),e=this._getViewPartsToRender());const i=new Gg(this._context.viewLayout,n,this._viewLines);for(let r=0,o=e.length;r<o;r++){const t=e[r];t.prepareRender(i)}for(let r=0,o=e.length;r<o;r++){const t=e[r];t.render(i),t.onDidRender()}}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();const r=this._viewLines.visibleRangeForPosition(new Qt(i.lineNumber,i.column));return r?r.left:-1}getTargetAtClientPoint(e,t){const n=this._pointerHandler.getTargetAtClientPoint(e,t);return n?Vx.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new yS(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(let e=0,t=this._viewParts.length;e<t;e++){const t=this._viewParts[e];t.forceShouldRender()}}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(null===t){const n=e.position?e.position.position:null;null!==n&&(t=new Jt(n.lineNumber,n.column,n.lineNumber,n.column))}const n=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,n),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null,n=this._overlayWidgets.setWidgetPosition(e.widget,t);n&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function BS(e){try{return e()}catch(t){ge(t)}}class zS{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ny(new Jt(1,1,1,1),0,new Qt(1,1),0),new ny(new Jt(1,1,1,1),0,new Qt(1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new ay(this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new en(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new en(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,n){this._setState(e,t,n)}_setState(e,t,n){if(t){const n=e.model.validateRange(t.selectionStart),i=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),o=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new ny(n,i,r,o)}else{if(!n)return;const i=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(n.selectionStart)),r=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(n.position));t=new ny(i,n.selectionStartLeftoverVisibleColumns,r,n.leftoverVisibleColumns)}if(n){const i=e.coordinatesConverter.validateViewRange(n.selectionStart,t.selectionStart),r=e.coordinatesConverter.validateViewPosition(n.position,t.position);n=new ny(i,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}else{const i=e.coordinatesConverter.convertModelPositionToViewPosition(new Qt(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),r=e.coordinatesConverter.convertModelPositionToViewPosition(new Qt(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new Jt(i.lineNumber,i.column,r.lineNumber,r.column),a=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);n=new ny(o,t.selectionStartLeftoverVisibleColumns,a,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)}}class VS{constructor(e){this.context=e,this.primaryCursor=new zS(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)}readSelectionFromMarkers(){let e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e}getAll(){let e=[];e[0]=this.primaryCursor.asCursorState();for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e}getViewPositions(){let e=[];e[0]=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e}getTopMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;n.isBefore(e)&&(e=n)}return e}getBottomMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;e.isBeforeOrEqual(n)&&(e=n)}return e}getSelections(){let e=[];e[0]=this.primaryCursor.modelState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e}getViewSelections(){let e=[];e[0]=this.primaryCursor.viewState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e}setSelections(e){this.setStates(ay.fromModelSelections(e))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.secondaryCursors.length,n=e.length;if(t<n){let e=n-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>n){let e=t-n;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let i=0;i<n;i++)this.secondaryCursors[i].setState(this.context,e[i].modelState,e[i].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new zS(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){let e=[];e[0]=this.primaryCursor;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e}normalize(){if(0===this.secondaryCursors.length)return;let e=this._getAll(),t=[];for(let n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((e,t)=>e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber);for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1],o=i.selection,a=r.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let s;if(s=a.isEmpty()||o.isEmpty()?a.getStartPosition().isBeforeOrEqual(o.getEndPosition()):a.getStartPosition().isBefore(o.getEndPosition()),s){const o=i.index<r.index?n:n+1,a=i.index<r.index?n+1:n,s=t[a].index,l=t[o].index,c=t[a].selection,u=t[o].selection;if(!c.equalsSelection(u)){const n=c.plusRange(u),i=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,r=u.selectionStartLineNumber===u.startLineNumber&&u.selectionStartColumn===u.startColumn;let a,d;s===this.lastAddedCursorIndex?(a=i,this.lastAddedCursorIndex=l):a=r,d=a?new en(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new en(n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn),t[o].selection=d;const h=ay.fromModelSelection(d);e[l].setState(this.context,h.modelState,h.viewState)}for(const e of t)e.index>s&&e.index--;e.splice(s,1),t.splice(a,1),this._removeSecondaryCursor(s-1),n--}}}}class $S{constructor(e){this.type=0,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class WS{constructor(e,t){this.type=1,this.selections=e,this.modelSelections=t}}class HS{constructor(e){this.type=2,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class US{constructor(){this.type=3}}class qS{constructor(e){this.type=4,this.isFocused=e}}class GS{constructor(){this.type=5}}class KS{constructor(){this.type=6}}class YS{constructor(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t}}class XS{constructor(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t}}class ZS{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class QS{constructor(e,t,n,i,r,o){this.type=10,this.source=e,this.range=t,this.selections=n,this.verticalType=i,this.revealHorizontal=r,this.scrollType=o}}class JS{constructor(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged}}class ek{constructor(){this.type=12}}class tk{constructor(e){this.type=13,this.ranges=e}}class nk{constructor(){this.type=14}}class ik{constructor(){this.type=15}}class rk extends Ae{constructor(){super(),this._onEvent=this._register(new ze),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOugoingEvents()}_addOutgoingEvent(e){for(let t=0,n=this._outgoingEvents.length;t<n;t++)if(this._outgoingEvents[t].kind===e.kind)return void(this._outgoingEvents[t]=this._outgoingEvents[t].merge(e));this._outgoingEvents.push(e)}_emitOugoingEvents(){while(this._outgoingEvents.length>0){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new ok),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const n of e)this._addOutgoingEvent(n);t.length>0&&this._emitMany(t)}this._emitOugoingEvents()}emitSingleViewEvent(e){try{const t=this.beginEmitViewEvents();t.emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){while(this._viewEventQueue){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const n of t)n.handleEvents(e)}}}class ok{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class ak{constructor(e,t,n,i){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=n,this.contentHeight=i,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new ak(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class sk{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new sk(this.oldHasFocus,e.hasFocus)}}class lk{constructor(e,t,n,i,r,o,a,s){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=n,this._oldScrollTop=i,this.scrollWidth=r,this.scrollLeft=o,this.scrollHeight=a,this.scrollTop=s,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}merge(e){return 2!==e.kind?this:new lk(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class ck{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class uk{constructor(e,t,n,i,r,o,a){this.kind=5,this.oldSelections=e,this.selections=t,this.oldModelVersionId=n,this.modelVersionId=i,this.source=r,this.reason=o,this.reachedMaxCursorCount=a}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const n=e.length,i=t.length;if(n!==i)return!1;for(let r=0;r<n;r++)if(!e[r].equalsSelection(t[r]))return!1;return!0}isNoOp(){return uk._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(e){return 5!==e.kind?this:new uk(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class dk{constructor(){this.kind=4}isNoOp(){return!1}merge(e){return this}}class hk{constructor(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getCursorStates()}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class fk{constructor(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}static getAllAutoClosedCharacters(e){let t=[];for(const n of e)t=t.concat(n.getAutoClosedCharactersRanges());return t}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e}isValid(e){let t=[];for(let n=0;n<this._autoClosedEnclosingDecorations.length;n++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(Jt.compareRangesUsingStarts),e.sort(Jt.compareRangesUsingStarts);for(let n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0}}class pk extends Ae{constructor(e,t,n,i){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=n,this.context=new iy(this._model,this._coordinatesConverter,i),this._cursors=new VS(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Ee(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new iy(this._model,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,n,i){let r=!1;null!==i&&i.length>pk.MAX_CURSOR_COUNT&&(i=i.slice(0,pk.MAX_CURSOR_COUNT),r=!0);const o=new hk(this._model,this);return this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,n,o,r)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,n,i){const r=this._cursors.getViewPositions();if(r.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,n,i);else{const o=r[0],a=new Jt(o.lineNumber,o.column,o.lineNumber,o.column);this._emitCursorRevealRange(e,t,a,null,0,n,i)}}_revealPrimaryCursor(e,t,n,i,r){const o=this._cursors.getViewPositions();if(o.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),n,i,r);else{const a=o[0],s=new Jt(a.lineNumber,a.column,a.lineNumber,a.column);this._emitCursorRevealRange(e,t,s,null,n,i,r)}}_emitCursorRevealRange(e,t,n,i,r,o,a){e.emitViewEvent(new QS(t,n,i,r,o,a))}saveState(){let e=[];const t=this._cursors.getSelections();for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e}restoreState(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){const e=t[i];let r=1,o=1;e.position&&e.position.lineNumber&&(r=e.position.lineNumber),e.position&&e.position.column&&(o=e.position.column);let a=r,s=o;e.selectionStart&&e.selectionStart.lineNumber&&(a=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(s=e.selectionStart.column),n.push({selectionStartLineNumber:a,selectionStartColumn:s,positionLineNumber:r,positionColumn:o})}this.setStates(e,"restoreState",0,ay.fromModelSelections(n)),this.revealPrimary(e,"restoreState",!0,1)}onModelContentChanged(e,t){if(this._knownModelVersionId=t.versionId,this._isHandling)return;const n=t.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new VS(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&t.resultingSelection&&t.resultingSelection.length>0){const n=ay.fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,n)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,ay.fromModelSelections(t))}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:ly.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:ly.visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,n)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,n){this.setStates(e,t,0,ay.fromModelSelections(n))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let n=[],i=[];for(let a=0,s=e.length;a<s;a++)n.push({range:e[a],options:{inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[a],options:{stickiness:1}});const r=this._model.deltaDecorations([],n),o=this._model.deltaDecorations([],i);this._autoClosedActions.push(new fk(this._model,r,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=gk.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);let n=[],i=[];for(let t=0;t<e.commands.length;t++){const r=e.commands[t];r instanceof Ox&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,n,i,r){const o=new hk(this._model,this);if(o.equals(i))return!1;const a=this._cursors.getSelections(),s=this._cursors.getViewSelections();if(e.emitViewEvent(new WS(s,a)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((e,t)=>!e.modelState.equals(i.cursorState[t].modelState))){const s=i?i.cursorState.map(e=>e.modelState.selection):null,l=i?i.modelVersionId:0;e.emitOutgoingEvent(new uk(s,a,l,o.modelVersionId,t||"keyboard",n,r))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.text||i.text.indexOf("\n")>=0)return null;const r=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const o=r[1],a=this.context.cursorConfig.autoClosingPairsClose2.get(o);if(!a||1!==a.length)return null;const s=a[0].open,l=i.text.length-r[2].length-1,c=i.text.lastIndexOf(s,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,n,i){let r=null;"snippet"===t&&(r=this._findAutoClosingPairs(n)),r&&(n[0]._isTracked=!0);let o=[],a=[];const s=this._model.pushEditOperations(this.getSelections(),n,e=>{if(r)for(let n=0,i=r.length;n<i;n++){const[t,i]=r[n],s=e[n],l=s.range.startLineNumber,c=s.range.startColumn-1+t,u=s.range.startColumn-1+i;o.push(new Jt(l,u+1,l,u+2)),a.push(new Jt(l,c+1,l,u+2))}const t=i(e);return t&&(this._isHandling=!0),t});s&&(this._isHandling=!1,this.setSelections(e,t,s)),o.length>0&&this._pushAutoClosedAction(o,a)}_executeEdit(e,t,n,i=0){if(this.context.cursorConfig.readOnly)return;const r=new hk(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){ge(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this._revealPrimaryCursor(t,n,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{if("keyboard"===t){const e=fk.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(kx.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),e)),this._selectionsWhenCompositionStarted=null}},e,t)}type(e,t,n){this._executeEdit(()=>{if("keyboard"===n){const e=t.length;let n=0;while(n<e){const e=xo["J"](t,n),i=t.substr(n,e),r=fk.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(kx.typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),r,i)),n+=e}}else this._executeEditOperation(kx.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,n)}replacePreviousChar(e,t,n,i){this._executeEdit(()=>{this._executeEditOperation(kx.replacePreviousChar(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,n))},e,i)}paste(e,t,n,i,r){this._executeEdit(()=>{this._executeEditOperation(kx.paste(this.context.cursorConfig,this._model,this.getSelections(),t,n,i||[]))},e,r,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(vx.cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,n){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new sy(0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}executeCommands(e,t,n){this._executeEdit(()=>{this._executeEditOperation(new sy(0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}}pk.MAX_CURSOR_COUNT=1e4;class gk{static executeCommands(e,t,n){const i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n);for(let o=0,a=i.trackedRanges.length;o<a;o++)i.model._setTrackedRange(i.trackedRanges[o],null,0);return r}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const n=this._getEditOperations(e,t);if(0===n.operations.length)return null;const i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let o=[];for(let l=0,c=i.length;l<c;l++)r.hasOwnProperty(i[l].identifier.major.toString())||o.push(i[l]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let a=e.model.pushEditOperations(e.selectionsBefore,o,n=>{let i=[];for(let t=0;t<e.selectionsBefore.length;t++)i[t]=[];for(const e of n)e.identifier&&i[e.identifier.major].push(e);const r=(e,t)=>e.identifier.minor-t.identifier.minor;let o=[];for(let a=0;a<e.selectionsBefore.length;a++)i[a].length>0?(i[a].sort(r),o[a]=t[a].computeCursorState(e.model,{getInverseEditOperations:()=>i[a],getTrackedSelection:t=>{const n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new en(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new en(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):o[a]=e.selectionsBefore[a];return o});a||(a=e.selectionsBefore);let s=[];for(let l in r)r.hasOwnProperty(l)&&s.push(parseInt(l,10));s.sort((e,t)=>t-e);for(const l of s)a.splice(l,1);return a}static _arrayIsEmpty(e){for(let t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let n=[],i=!1;for(let r=0,o=t.length;r<o;r++){const o=t[r];if(o){const t=this._getEditOperationsFromCommand(e,r,o);n=n.concat(t.operations),i=i||t.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}}static _getEditOperationsFromCommand(e,t,n){let i=[],r=0;const o=(e,o,a=!1)=>{Jt.isEmpty(e)&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:a,isAutoWhitespaceEdit:n.insertsAutoWhitespace})};let a=!1;const s=(e,t,n)=>{a=!0,o(e,t,n)},l=(t,n)=>{const i=en.liftSelection(t);let r;if(i.isEmpty())if("boolean"===typeof n)r=n?2:3;else{const t=e.model.getLineMaxColumn(i.startLineNumber);r=i.startColumn===t?2:3}else r=1;const o=e.trackedRanges.length,a=e.model._setTrackedRange(null,i,r);return e.trackedRanges[o]=a,e.trackedRangesDirection[o]=i.getDirection(),o.toString()},c={addEditOperation:o,addTrackedEditOperation:s,trackSelection:l};try{n.getEditOperations(e.model,c)}catch(u){return ge(u),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:a}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((e,t)=>-Jt.compareRangesUsingEnds(e.range,t.range));let t={};for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(Jt.getStartPosition(i.range).isBefore(Jt.getEndPosition(r.range))){let o;o=i.identifier.major>r.identifier.major?i.identifier.major:r.identifier.major,t[o.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<n&&n--,t--);n>0&&n--}}return t}}class mk{constructor(e,t,n,i,r,o){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}function vk(e,t,n,i,r,o,a){let s="<div>",l=i,c=0;for(let u=0,d=t.getCount();u<d;u++){const d=t.getEndOffset(u);if(d<=i)continue;let h="";for(;l<d&&l<r;l++){const t=e.charCodeAt(l);switch(t){case 9:let e=o-(l+c)%o;c+=e-1;while(e>0)h+=a?"&#160;":" ",e--;break;case 60:h+="&lt;";break;case 62:h+="&gt;";break;case 38:h+="&amp;";break;case 0:h+="&#00;";break;case 65279:case 8232:case 8233:case 133:h+="�";break;case 13:h+="&#8203";break;case 32:h+=a?"&#160;":" ";break;default:h+=String.fromCharCode(t)}}if(s+=`<span style="${t.getInlineStyle(u,n)}">${h}</span>`,d>r||l>=r)break}return s+="</div>",s}class bk{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}}class yk{constructor(e,t,n,i,r){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=r,this.prefixSum=0}}class _k{constructor(e,t,n,i){this._instanceId=xo["O"](++_k.INSTANCE_COUNT),this._pendingChanges=new bk,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=n,this._paddingBottom=i}static findInsertionIndex(e,t,n){let i=0,r=e.length;while(i<r){const o=i+r>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?r=o:i=o+1:t<e[o].afterLineNumber?r=o:i=o+1}return i}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{const n={insertWhitespace:(e,n,i,r)=>{t=!0,e|=0,n|=0,i|=0,r|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new yk(o,e,n,i,r)),o},changeOneWhitespace:(e,n,i)=>{t=!0,n|=0,i|=0,this._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}};e(n)}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of n){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const i=new Set;for(const s of n)i.add(s.id);const r=new Map;for(const s of t)r.set(s.id,s);const o=e=>{let t=[];for(const n of e)if(!i.has(n.id)){if(r.has(n.id)){const e=r.get(n.id);n.afterLineNumber=e.newAfterLineNumber,n.height=e.newHeight}t.push(n)}return t},a=o(this._arr).concat(o(e));a.sort((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber),this._arr=a,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=_k.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1}_changeOneWhitespace(e,t,n){const i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){const e=this._arr[i];this._removeWhitespace(i),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:i>t&&(this._arr[n].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&(this._arr[n].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let n=t;n<=e;n++)this._arr[n].prefixSum=this._arr[n-1].prefixSum+this._arr[n].height;return this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e),this._arr[e].prefixSum}getLinesTotalHeight(){this._checkPendingChanges();const e=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return e+t+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let n=0,i=t.length-1;while(n<=i){const r=i-n|0,o=r/2|0,a=n+o|0;if(t[a].afterLineNumber<e){if(a+1>=t.length||t[a+1].afterLineNumber>=e)return a;n=a+1|0}else i=a-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e),n=t+1;return n<this._arr.length?n:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e){let t;this._checkPendingChanges(),e|=0,t=e>1?this._lineHeight*(e-1):0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();const t=this.getLinesTotalHeight();return e>t}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e|=0,e<0)return 1;const t=0|this._lineCount,n=this._lineHeight;let i=1,r=t;while(i<r){const t=(i+r)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+n)i=t+1;else{if(e>=o)return t;r=t}}return i>t?t:i}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this._lineHeight,i=0|this.getLineNumberAtOrAfterVerticalOffset(e),r=0|this.getVerticalOffsetForLineNumber(i);let o=0|this._lineCount,a=0|this.getFirstWhitespaceIndexAfterLineNumber(i);const s=0|this.getWhitespacesCount();let l,c;-1===a?(a=s,c=o+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(a),l=0|this.getHeightForWhitespaceIndex(a));let u=r,d=u;const h=5e5;let f=0;r>=h&&(f=Math.floor(r/h)*h,f=Math.floor(f/n)*n,d-=f);const p=[],g=e+(t-e)/2;let m=-1;for(let _=i;_<=o;_++){if(-1===m){const e=u,t=u+n;(e<=g&&g<t||e>g)&&(m=_)}u+=n,p[_-i]=d,d+=n;while(c===_)d+=l,u+=l,a++,a>=s?c=o+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(a),l=0|this.getHeightForWhitespaceIndex(a));if(u>=t){o=_;break}}-1===m&&(m=o);const v=0|this.getVerticalOffsetForLineNumber(o);let b=i,y=o;return b<y&&r<e&&b++,b<y&&v+n>t&&y--,{bigNumbersDelta:f,startLineNumber:i,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:m,completelyVisibleStartLineNumber:b,completelyVisibleEndLineNumber:y}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let n,i;return n=t>=1?this._lineHeight*t:0,i=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,n+i+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;const i=this.getVerticalOffsetForWhitespaceIndex(n),r=this.getHeightForWhitespaceIndex(n);if(e>=i+r)return-1;while(t<n){const i=Math.floor((t+n)/2),r=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(e>=r+o)t=i+1;else{if(e>=r)return i;n=i}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;const i=this.getHeightForWhitespaceIndex(t),r=this.getIdForWhitespaceIndex(t),o=this.getAfterLineNumberForWhitespaceIndex(t);return{id:r,afterLineNumber:o,verticalOffset:n,height:i}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];let r=[];for(let o=n;o<=i;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),n=this.getHeightForWhitespaceIndex(o);if(e>=t)break;r.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:n})}return r}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}_k.INSTANCE_COUNT=0;const wk=125;class xk{constructor(e,t,n,i){e|=0,t|=0,n|=0,i|=0,e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),i<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class Ck extends Ae{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new ze),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new xk(0,0,0,0),this._scrollable=this._register(new yC(e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new ak(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class Sk extends Ae{constructor(e,t,n){super(),this._configuration=e;const i=this._configuration.options,r=i.get(117),o=i.get(66);this._linesLayout=new _k(t,i.get(51),o.top,o.bottom),this._scrollable=this._register(new Ck(0,n)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new xk(r.contentWidth,0,r.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(94)?wk:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(51)&&this._linesLayout.setLineHeight(t.get(51)),e.hasChanged(66)){const e=t.get(66);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(117)){const e=t.get(117),n=e.contentWidth,i=e.height,r=this._scrollable.getScrollDimensions(),o=r.contentWidth;this._scrollable.setScrollDimensions(new xk(n,r.contentWidth,i,this._getContentHeight(n,i,o)))}else this._updateHeight();e.hasChanged(94)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options,i=n.get(84);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,n){const i=this._configuration.options;let r=this._linesLayout.getLinesTotalHeight();return i.get(86)?r+=t-i.get(51):r+=this._getHorizontalScrollbarHeight(e,n),r}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new xk(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Od(t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Od(t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,n=t.get(118),i=t.get(36);if(n.isViewportWrapping){const n=t.get(117),r=t.get(56);return e>n.contentWidth+i.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+n.verticalScrollbarWidth:e}{const n=t.get(85)*i.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new xk(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const t=this._scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){const e=this._scrollable.getScrollDimensions();return e.contentWidth}getScrollWidth(){const e=this._scrollable.getScrollDimensions();return e.scrollWidth}getContentHeight(){const e=this._scrollable.getScrollDimensions();return e.contentHeight}getScrollHeight(){const e=this._scrollable.getScrollDimensions();return e.scrollHeight}getCurrentScrollLeft(){const e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft}getCurrentScrollTop(){const e=this._scrollable.getCurrentScrollPosition();return e.scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}class kk{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}}class Ok{constructor(e,t,n){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n}static getInputOffsetOfOutputPosition(e,t,n){return 0===t?n:e[t-1]+n}static getOutputPositionOfInputOffset(e,t){let n=0,i=e.length-1,r=0,o=0;while(n<=i){r=n+(i-n)/2|0;const a=e[r];if(o=r>0?e[r-1]:0,t<o)i=r-1;else{if(!(t>=a))break;n=r+1}}return new kk(r,t-o)}}class Mk{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)}convertModelRangeToViewRange(e){return this._lines.convertModelRangeToViewRange(e)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}}class Dk{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._counts.length;e<t;e++){const t=this._counts[e],n=e>0?this._modelToView[e-1]:0;this._modelToView[e]=n+t;for(let i=0;i<t;i++)this._viewToModel[n+i]=e}this._modelToView.length=this._counts.length,this._viewToModel.length=this._modelToView[this._modelToView.length-1],this._isValid=!0,this._validEndIndex=this._counts.length-1}}changeValue(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))}removeValues(e,t){this._counts.splice(e,t),this._invalidate(e)}insertValues(e,t){this._counts=Ki(this._counts,e,t),this._invalidate(e)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(e){return this._ensureValid(),this._modelToView[e]}getIndexOf(e){this._ensureValid();const t=this._viewToModel[e],n=t>0?this._modelToView[t-1]:0;return new yu(t,e-n)}}class Ek{constructor(e,t,n,i,r,o,a,s){this.model=e,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=n,this.fontInfo=i,this.tabSize=r,this.wrappingStrategy=o,this.wrappingColumn=a,this.wrappingIndent=s,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new Mk(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);let n=this.model.getLinesContent();const i=n.length,r=this.createLineBreaksComputer();for(let h=0;h<i;h++)r.addRequest(n[h],t?t[h]:null);const o=r.finalize();let a=[],s=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(Jt.compareRangesUsingStarts),l=1,c=0,u=-1,d=u+1<s.length?c+1:i+2;for(let h=0;h<i;h++){let e=h+1;e===d&&(u++,l=s[u].startLineNumber,c=s[u].endLineNumber,d=u+1<s.length?c+1:i+2);let t=e>=l&&e<=c,n=Rk(o[h],!t);a[h]=n.getViewLineCount(),this.lines[h]=n}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Dk(a)}getHiddenAreas(){return this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e))}_reduceRanges(e){if(0===e.length)return[];let t=e.map(e=>this.model.validateRange(e)).sort(Jt.compareRangesUsingStarts),n=[],i=t[0].startLineNumber,r=t[0].endLineNumber;for(let o=1,a=t.length;o<a;o++){let e=t[o];e.startLineNumber>r+1?(n.push(new Jt(i,1,r,1)),i=e.startLineNumber,r=e.endLineNumber):e.endLineNumber>r&&(r=e.endLineNumber)}return n.push(new Jt(i,1,r,1)),n}setHiddenAreas(e){let t=this._reduceRanges(e),n=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(Jt.compareRangesUsingStarts);if(t.length===n.length){let e=!1;for(let i=0;i<t.length;i++)if(!t[i].equalsRange(n[i])){e=!0;break}if(!e)return!1}let i=[];for(const u of t)i.push({range:u,options:qb.EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,i);let r=t,o=1,a=0,s=-1,l=s+1<r.length?a+1:this.lines.length+2,c=!1;for(let u=0;u<this.lines.length;u++){let e=u+1;e===l&&(s++,o=r[s].startLineNumber,a=r[s].endLineNumber,l=s+1<r.length?a+1:this.lines.length+2);let t=!1;if(e>=o&&e<=a?this.lines[u].isVisible()&&(this.lines[u]=this.lines[u].setVisible(!1),t=!0):(c=!0,this.lines[u].isVisible()||(this.lines[u]=this.lines[u].setVisible(!0),t=!0)),t){let e=this.lines[u].getViewLineCount();this.prefixSumComputer.changeValue(u,e)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,n,i){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,a=this.wrappingColumn===n,s=this.wrappingIndent===i;if(r&&o&&a&&s)return!1;const l=r&&o&&!a&&s;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;let c=null;if(l){c=[];for(let e=0,t=this.lines.length;e<t;e++)c[e]=this.lines[e].getLineBreakData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){const e="advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return e.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,n){if(e<=this._validModelVersionId)return null;let i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new XS(i,r)}onModelLinesInserted(e,t,n,i){if(e<=this._validModelVersionId)return null;let r=this.getHiddenAreas(),o=!1,a=new Qt(t,1);for(const d of r)if(d.containsPosition(a)){o=!0;break}let s=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,l=0,c=[],u=[];for(let d=0,h=i.length;d<h;d++){let e=Rk(i[d],!o);c.push(e);let t=e.getViewLineCount();l+=t,u[d]=t}return this.lines=this.lines.slice(0,t-1).concat(c).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,u),new ZS(s,s+l-1)}onModelLineChanged(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];let i=t-1,r=this.lines[i].getViewLineCount(),o=this.lines[i].isVisible(),a=Rk(n,o);this.lines[i]=a;let s=this.lines[i].getViewLineCount(),l=!1,c=0,u=-1,d=0,h=-1,f=0,p=-1;r>s?(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+s-1,f=u+1,p=f+(r-s)-1,l=!0):r<s?(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+r-1,d=u+1,h=d+(s-r)-1,l=!0):(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+s-1),this.prefixSumComputer.changeValue(i,s);const g=c<=u?new YS(c,u):null,m=d<=h?new ZS(d,h):null,v=f<=p?new XS(f,p):null;return[l,g,m,v]}acceptVersionId(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),a=this.model.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),s=this.convertModelPositionToViewPosition(a.startLineNumber,1),l=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:s.lineNumber,endLineNumber:l.lineNumber,indent:a.indent}}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let r=[],o=[],a=[];const s=n.lineNumber-1,l=i.lineNumber-1;let c=null;for(let f=s;f<=l;f++){const e=this.lines[f];if(e.isVisible()){let t=e.getViewLineNumberOfModelPosition(0,f===s?n.column:1),i=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),r=i-t+1,l=0;r>1&&1===e.getViewLineMinColumn(this.model,f+1,i)&&(l=0===t?1:2),o.push(r),a.push(l),null===c&&(c=new Qt(f+1,0))}else null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,f)),c=null)}null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);const u=t-e+1;let d=new Array(u),h=0;for(let f=0,p=r.length;f<p;f++){let e,t=r[f],n=Math.min(u-h,o[f]),i=a[f];e=2===i?0:1===i?1:n;for(let r=0;r<n;r++)r===e&&(t=0),d[h++]=t}return d}getViewLineContent(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)}getViewLineLength(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)}getViewLineMinColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)}getViewLineMaxColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)}getViewLineData(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)}getViewLinesData(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);let i=this.prefixSumComputer.getIndexOf(e-1),r=e,o=i.index,a=i.remainder,s=[];for(let l=o,c=this.model.getLineCount();l<c;l++){let i=this.lines[l];if(!i.isVisible())continue;let c=l===o?a:0,u=i.getViewLineCount()-c,d=!1;r+u>t&&(d=!0,u=t-r+1);let h=c+u;if(i.getViewLinesData(this.model,l+1,c,h,r-e,n,s),r+=u,d)break}return s}validateViewPosition(e,t,n){e=this._toValidViewLineNumber(e);let i=this.prefixSumComputer.getIndexOf(e-1),r=i.index,o=i.remainder,a=this.lines[r],s=a.getViewLineMinColumn(this.model,r+1,o),l=a.getViewLineMaxColumn(this.model,r+1,o);t<s&&(t=s),t>l&&(t=l);let c=a.getModelColumnOfViewPosition(o,t),u=this.model.validatePosition(new Qt(r+1,c));return u.equals(n)?new Qt(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}validateViewRange(e,t){const n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Jt(n.lineNumber,n.column,i.lineNumber,i.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);let n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,r=n.remainder,o=this.lines[i].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new Qt(i+1,o))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Jt(t.lineNumber,t.column,n.lineNumber,n.column)}convertModelPositionToViewPosition(e,t){const n=this.model.validatePosition(new Qt(e,t)),i=n.lineNumber,r=n.column;let o=i-1,a=!1;while(o>0&&!this.lines[o].isVisible())o--,a=!0;if(0===o&&!this.lines[o].isVisible())return new Qt(1,1);const s=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));let l;return l=a?this.lines[o].getViewPositionOfModelPosition(s,this.model.getLineMaxColumn(o+1)):this.lines[i-1].getViewPositionOfModelPosition(s,r),l}convertModelRangeToViewRange(e){let t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return e.startLineNumber===e.endLineNumber&&t.lineNumber!==n.lineNumber&&n.column===this.getViewLineMinColumn(n.lineNumber)?new Jt(t.lineNumber,t.column,n.lineNumber-1,this.getViewLineMaxColumn(n.lineNumber-1)):new Jt(t.lineNumber,t.column,n.lineNumber,n.column)}_getViewLineNumberForModelPosition(e,t){let n=e-1;if(this.lines[n].isVisible()){const e=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(e,t)}while(n>0&&!this.lines[n].isVisible())n--;if(0===n&&!this.lines[n].isVisible())return 1;const i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new Bk;for(const o of i){const e=o.options.overviewRuler,t=e?e.position:0;if(0===t)continue;const i=e.getColor(n),a=this._getViewLineNumberForModelPosition(o.range.startLineNumber,o.range.startColumn),s=this._getViewLineNumberForModelPosition(o.range.endLineNumber,o.range.endColumn);r.accept(i,a,s,t)}return r.result}getDecorationsInRange(e,t,n){const i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new Jt(i.lineNumber,1,r.lineNumber,r.column),t,n);let o=[];const a=i.lineNumber-1,s=r.lineNumber-1;let l=null;for(let h=a;h<=s;h++){const e=this.lines[h];if(e.isVisible())null===l&&(l=new Qt(h+1,h===a?i.column:1));else if(null!==l){const e=this.model.getLineMaxColumn(h);o=o.concat(this.model.getDecorationsInRange(new Jt(l.lineNumber,l.column,h,e),t,n)),l=null}}null!==l&&(o=o.concat(this.model.getDecorationsInRange(new Jt(l.lineNumber,l.column,r.lineNumber,r.column),t,n)),l=null),o.sort((e,t)=>{const n=Jt.compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n});let c=[],u=0,d=null;for(const h of o){const e=h.id;d!==e&&(d=e,c[u++]=h)}return c}}class Tk{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Lk.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,n){return e.getLineContent(t)}getViewLineLength(e,t,n){return e.getLineLength(t)}getViewLineMinColumn(e,t,n){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,n){return e.getLineMaxColumn(t)}getViewLineData(e,t,n){let i=e.getLineTokens(t),r=i.getLineContent();return new Dd(r,!1,1,r.length+1,0,i.inflate())}getViewLinesData(e,t,n,i,r,o,a){o[r]?a[r]=this.getViewLineData(e,t,0):a[r]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new Qt(e,t)}getViewLineNumberOfModelPosition(e,t){return e}}Tk.INSTANCE=new Tk;class Lk{constructor(){}isVisible(){return!1}setVisible(e){return e?Tk.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,n){throw new Error("Not supported")}getViewLineLength(e,t,n){throw new Error("Not supported")}getViewLineMinColumn(e,t,n){throw new Error("Not supported")}getViewLineMaxColumn(e,t,n){throw new Error("Not supported")}getViewLineData(e,t,n){throw new Error("Not supported")}getViewLinesData(e,t,n,i,r,o,a){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}}Lk.INSTANCE=new Lk;class Ik{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return Ok.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,0)}getInputEndOffsetOfOutputLineIndex(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:Ok.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,n+1,0)}getViewLineContent(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});return n>0&&(o=Nk(this._lineBreakData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=r-i;return n>0&&(o=this._lineBreakData.wrappedTextIndentLength+o),o}getViewLineMinColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1}getViewLineData(e,t,n){if(!this._isVisible)throw new Error("Not supported");let i=this.getInputStartOffsetOfOutputLineIndex(n),r=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});n>0&&(o=Nk(this._lineBreakData.wrappedTextIndentLength)+o);let a=n>0?this._lineBreakData.wrappedTextIndentLength+1:1,s=o.length+1,l=n+1<this.getViewLineCount(),c=0;n>0&&(c=this._lineBreakData.wrappedTextIndentLength);let u=e.getLineTokens(t);const d=0===n?0:this._lineBreakData.breakOffsetsVisibleColumn[n-1];return new Dd(o,l,a,s,d,u.sliceAndInflate(i,r,c))}getViewLinesData(e,t,n,i,r,o,a){if(!this._isVisible)throw new Error("Not supported");for(let s=n;s<i;s++){let i=r+s-n;o[i]?a[i]=this.getViewLineData(e,t,s):a[i]=null}}getModelColumnOfViewPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let n=t-1;return e>0&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),Ok.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,e,n)+1}getViewPositionOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let n=Ok.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1),i=n.outputLineIndex,r=n.outputOffset+1;return i>0&&(r+=this._lineBreakData.wrappedTextIndentLength),new Qt(e+i,r)}getViewLineNumberOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");const n=Ok.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return e+n.outputLineIndex}}let Ak=[""];function Nk(e){if(e>=Ak.length)for(let t=1;t<=e;t++)Ak[t]=Pk(t);return Ak[e]}function Pk(e){return new Array(e+1).join(" ")}function Rk(e,t){return null===e?t?Tk.INSTANCE:Lk.INSTANCE:new Ik(e,t)}class Fk{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}}class jk{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Fk(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,n,i){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,n)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,n){return new XS(t,n)}onModelLinesInserted(e,t,n,i){return new ZS(t,n)}onModelLineChanged(e,t,n){return[!1,new YS(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesIndentGuides(e,t){const n=t-e+1;let i=new Array(n);for(let r=0;r<n;r++)i[r]=0;return i}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){let t=this.model.getLineTokens(e),n=t.getLineContent();return new Dd(n,!1,1,n.length+1,0,t.inflate())}getViewLinesData(e,t,n){const i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);let r=[];for(let o=e;o<=t;o++){let t=o-e;n[t]||(r[t]=null),r[t]=this.getViewLineData(o)}return r}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new Bk;for(const o of i){const e=o.options.overviewRuler,t=e?e.position:0;if(0===t)continue;const i=e.getColor(n),a=o.range.startLineNumber,s=o.range.endLineNumber;r.accept(i,a,s,t)}return r.result}getDecorationsInRange(e,t,n){return this.model.getDecorationsInRange(e,t,n)}}class Bk{constructor(){this.result=Object.create(null)}accept(e,t,n,i){let r=this.result[e];if(r){const e=r[r.length-3],o=r[r.length-1];if(e===i&&o+1>=t)return void(n>o&&(r[r.length-1]=n));r.push(i,t,n)}else this.result[e]=[i,t,n]}}class zk{constructor(e,t,n,i,r){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let n=this._decorationsCache[t];if(!n){const i=e.range,r=e.options;let o;if(r.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.startLineNumber,1)),t=this._coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));o=new Jt(e.lineNumber,e.column,t.lineNumber,t.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new Ld(o,r),this._decorationsCache[t]=n}return n}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,Z(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber;let r=[],o=0,a=[];for(let s=n;s<=i;s++)a[s-n]=[];for(let s=0,l=t.length;s<l;s++){let e=t[s],l=e.options,c=this._getOrCreateViewModelDecoration(e),u=c.range;if(r[o++]=c,l.inlineClassName){let e=new Td(u,l.inlineClassName,l.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(n,u.startLineNumber),r=Math.min(i,u.endLineNumber);for(let i=t;i<=r;i++)a[i-n].push(e)}if(l.beforeContentClassName&&n<=u.startLineNumber&&u.startLineNumber<=i){let e=new Td(new Jt(u.startLineNumber,u.startColumn,u.startLineNumber,u.startColumn),l.beforeContentClassName,1);a[u.startLineNumber-n].push(e)}if(l.afterContentClassName&&n<=u.endLineNumber&&u.endLineNumber<=i){let e=new Td(new Jt(u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn),l.afterContentClassName,2);a[u.endLineNumber-n].push(e)}}return{decorations:r,inlineDecorations:a}}}const Vk=!0;class $k extends Ae{constructor(e,t,n,i,r,o){if(super(),this._editorId=e,this._configuration=t,this.model=n,this._eventDispatcher=new rk,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new ty(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new Ti(()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new Ti(()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,Vk&&this.model.isTooLargeForTokenization())this._lines=new jk(this.model);else{const e=this._configuration.options,t=e.get(36),n=e.get(112),o=e.get(118),a=e.get(111);this._lines=new Ek(this.model,i,r,t,this.model.getOptions().tabSize,n,o.wrappingColumn,a)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new pk(n,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new Sk(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll(e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new JS(e)),this._eventDispatcher.emitOutgoingEvent(new lk(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(e=>{this._eventDispatcher.emitOutgoingEvent(e)})),this._decorations=new zk(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(KC.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new nk)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new qS(e)),this._eventDispatcher.emitOutgoingEvent(new sk(!e,e))}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new ek)}_onConfigurationChanged(e,t){let n=null;if(-1!==this._viewportStartLine){let e=new Qt(this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let i=!1;const r=this._configuration.options,o=r.get(36),a=r.get(112),s=r.get(118),l=r.get(111);if(this._lines.setWrappingSettings(o,a,s.wrappingColumn,l)&&(e.emitViewEvent(new US),e.emitViewEvent(new KS),e.emitViewEvent(new HS(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(72)&&(this._decorations.reset(),e.emitViewEvent(new HS(null))),e.emitViewEvent(new $S(t)),this.viewLayout.onConfigurationChanged(t),i&&n){const e=this.coordinatesConverter.convertModelPositionToViewPosition(n),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStartLineDelta},1)}ty.shouldRecreate(t)&&(this.cursorConfig=new ty(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeRawContentFast(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let n=!1,i=!1;const r=e.changes,o=e.versionId,a=this._lines.createLineBreaksComputer();for(const e of r)switch(e.changeType){case 4:for(const t of e.detail)a.addRequest(t,null);break;case 2:a.addRequest(e.detail,null);break}const s=a.finalize();let l=0;for(const e of r)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new US),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break;case 3:{const i=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==i&&(t.emitViewEvent(i),this.viewLayout.onLinesDeleted(i.fromLineNumber,i.toLineNumber)),n=!0;break}case 4:{const i=s.slice(l,l+e.detail.length);l+=e.detail.length;const r=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,i);null!==r&&(t.emitViewEvent(r),this.viewLayout.onLinesInserted(r.fromLineNumber,r.toLineNumber)),n=!0;break}case 2:{const n=s[l];l++;const[r,a,c,u]=this._lines.onModelLineChanged(o,e.lineNumber,n);i=r,a&&t.emitViewEvent(a),c&&(t.emitViewEvent(c),this.viewLayout.onLinesInserted(c.fromLineNumber,c.toLineNumber)),u&&(t.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber));break}case 5:break}this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!n&&i&&(t.emitViewEvent(new KS),t.emitViewEvent(new HS(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const e=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(e=>{let t=[];for(let n=0,i=e.ranges.length;n<i;n++){const i=e.ranges[n],r=this.coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new Qt(i.toLineNumber,this.model.getLineMaxColumn(i.toLineNumber))).lineNumber;t[n]={fromLineNumber:r,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new tk(t)),e.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(e=>{this._eventDispatcher.emitSingleViewEvent(new GS),this.cursorConfig=new ty(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new ty(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new US),e.emitViewEvent(new KS),e.emitViewEvent(new HS(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new ty(this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new HS(e))}))}setHiddenAreas(e){try{const t=this._eventDispatcher.beginEmitViewEvents();let n=this._lines.setHiddenAreas(e);n&&(t.emitViewEvent(new US),t.emitViewEvent(new KS),t.emitViewEvent(new HS(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(117),t=this._configuration.options.get(51),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),r=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new Jt(r,this.getLineMinColumn(r),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(0===n.length)return[t];let i=[],r=0,o=t.startLineNumber,a=t.startColumn,s=t.endLineNumber,l=t.endColumn;for(let c=0,u=n.length;c<u;c++){const e=n[c].startLineNumber,t=n[c].endLineNumber;t<o||e>s||(o<e&&(i[r++]=new Jt(o,a,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,a=1)}return(o<s||o===s&&a<l)&&(i[r++]=new Jt(o,a,s,l)),i}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new Jt(t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new Jt(n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,n){this._viewportStartLine=e;let i=this.coordinatesConverter.convertViewPositionToModelPosition(new Qt(e,this.getLineMinColumn(e)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new Jt(i.lineNumber,i.column,i.lineNumber,i.column),1);const r=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=o-r}getActiveIndentGuide(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=xo["u"](this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=xo["H"](this.getLineContent(e));return-1===t?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getViewLineRenderingData(e,t){let n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this._lines.getViewLineData(t),a=this._decorations.getDecorationsViewportData(e).inlineDecorations,s=a[t-e.startLineNumber];return new Ed(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,s,r,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,n){let i=this._lines.getViewLinesData(e,t,n);return new Md(this.getTabSize(),i)}getAllOverviewRulerDecorations(e){return this._lines.getAllOverviewRulerDecorations(this._editorId,Z(this._configuration.options),e)}invalidateOverviewRulerColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){const e=this.model.getAllDecorations();for(const t of e){const e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,n){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);const r=this.model.getOffsetAt(i),o=r+t;return this.model.getPositionAt(o)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,n){const i=n?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(Jt.compareRangesUsingStarts);let r=!1,o=!1;for(const s of e)s.isEmpty()?r=!0:o=!0;if(!o){if(!t)return"";const n=e.map(e=>e.startLineNumber);let r="";for(let e=0;e<n.length;e++)e>0&&n[e-1]===n[e]||(r+=this.model.getLineContent(n[e])+i);return r}if(r&&t){let t=[],i=0;for(const r of e){const e=r.startLineNumber;r.isEmpty()?e!==i&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(r,n?2:0)),i=e}return 1===t.length?t[0]:t}let a=[];for(const s of e)s.isEmpty()||a.push(this.model.getValueInRange(s,n?2:0));return 1===a.length?a[0]:a}getRichTextToCopy(e,t){const n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;let i=e[0];if(i.isEmpty()){if(!t)return null;const e=i.startLineNumber;i=new Jt(e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const r=this._configuration.options.get(36),o=this._getColorMap(),a=r.fontFamily===le.fontFamily?r.fontFamily:`'${r.fontFamily}', ${le.fontFamily}`;return{mode:n.language,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${a};font-weight: ${r.fontWeight};font-size: ${r.fontSize}px;line-height: ${r.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(i,o)+"</div>"}}_getHTMLToCopy(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,a=e.endColumn,s=this.getTabSize();let l="";for(let c=n;c<=r;c++){const e=this.model.getLineTokens(c),u=e.getLineContent(),d=c===n?i-1:0,h=c===r?a-1:u.length;l+=""===u?"<br>":vk(u,e.inflate(),t,d,h,s,o["i"])}return l}_getColorMap(){let e=Ul.getColorMap(),t=["#000000"];if(e)for(let n=1,i=e.length;n<i;n++)t[n]=Eb.Format.CSS.formatHex(e[n]);return t}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,n){this._withViewEventsCollector(i=>this._cursor.setStates(i,e,t,n))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t){this._withViewEventsCollector(n=>this._cursor.setSelections(n,e,t))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new dk):this._withViewEventsCollector(e)}executeEdits(e,t,n){this._executeCursorEdit(i=>this._cursor.executeEdits(i,e,t,n))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(n=>this._cursor.type(n,e,t))}replacePreviousChar(e,t,n){this._executeCursorEdit(i=>this._cursor.replacePreviousChar(i,e,t,n))}paste(e,t,n,i){this._executeCursorEdit(r=>this._cursor.paste(r,e,t,n,i))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(n=>this._cursor.executeCommand(n,e,t))}executeCommands(e,t){this._executeCursorEdit(n=>this._cursor.executeCommands(n,e,t))}revealPrimaryCursor(e,t){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),n=new Jt(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new QS(e,n,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),n=new Jt(t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new QS(e,n,null,0,!0,0)))}revealRange(e,t,n,i,r){this._withViewEventsCollector(o=>o.emitViewEvent(new QS(e,n,null,i,t,r)))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){const t=this.viewLayout.changeWhitespace(e);t&&(this._eventDispatcher.emitSingleViewEvent(new ik),this._eventDispatcher.emitOutgoingEvent(new ck))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}}class Wk{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){const n=this._entries.get(e);return this._entries.set(e,t),n}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}const Hk=Wn("accessibilityService"),Uk=new Zp("accessibilityModeEnabled",!1);class qk extends xu{constructor(e,t){super(0);for(let n=0;n<e.length;n++)this.set(e.charCodeAt(n),1);for(let n=0;n<t.length;n++)this.set(t.charCodeAt(n),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let Gk=[],Kk=[];class Yk{constructor(e,t){this.classifier=new qk(e,t)}static create(e){return new Yk(e.get(108),e.get(107))}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;let r=[],o=[];return{addRequest:(e,t)=>{r.push(e),o.push(t)},finalize:()=>{const a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth;let s=[];for(let e=0,l=r.length;e<l;e++){const l=o[e];s[e]=l?Xk(this.classifier,l,r[e],t,n,a,i):Zk(this.classifier,r[e],t,n,a,i)}return Gk.length=0,Kk.length=0,s}}}}function Xk(e,t,n,i,r,o,a){if(-1===r)return null;const s=n.length;if(s<=1)return null;const l=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=tO(n,i,r,o,a),d=r-u;let h=Gk,f=Kk,p=0,g=0,m=0,v=r;const b=l.length;let y=0;if(y>=0){let e=Math.abs(c[y]-v);while(y+1<b){const t=Math.abs(c[y+1]-v);if(t>=e)break;e=t,y++}}while(y<b){let t=y<0?0:l[y],r=y<0?0:c[y];g>t&&(t=g,r=m);let a=0,u=0,_=0,w=0;if(r<=v){let m=r,b=0===t?0:n.charCodeAt(t-1),y=0===t?0:e.get(b),x=!0;for(let r=t;r<s;r++){const t=r,s=n.charCodeAt(r);let l,c;if(xo["D"](s)?(r++,l=0,c=2):(l=e.get(s),c=Qk(s,m,i,o)),t>g&&eO(b,y,s,l)&&(a=t,u=m),m+=c,m>v){t>g?(_=t,w=m-c):(_=r+1,w=m),m-u>d&&(a=0),x=!1;break}b=s,y=l}if(x){p>0&&(h[p]=l[l.length-1],f[p]=c[l.length-1],p++);break}}if(0===a){let s=r,l=n.charCodeAt(t),c=e.get(l),h=!1;for(let i=t-1;i>=g;i--){const t=i+1,r=n.charCodeAt(i);if(9===r){h=!0;break}let f,p;if(xo["E"](r)?(i--,f=0,p=2):(f=e.get(r),p=xo["C"](r)?o:1),s<=v){if(0===_&&(_=t,w=s),s<=v-d)break;if(eO(r,f,l,c)){a=t,u=s;break}}s-=p,l=r,c=f}if(0!==a){const e=d-(w-u);if(e<=i){const t=n.charCodeAt(_);let r;r=xo["D"](t)?2:Qk(t,w,i,o),e-r<0&&(a=0)}}if(h){y--;continue}}0===a&&(a=_,u=w),g=a,h[p]=a,m=u,f[p]=u,p++,v=u+d;while(y<0||y<b&&c[y]<u)y++;let x=Math.abs(c[y]-v);while(y+1<b){const e=Math.abs(c[y+1]-v);if(e>=x)break;x=e,y++}}return 0===p?null:(h.length=p,f.length=p,Gk=t.breakOffsets,Kk=t.breakOffsetsVisibleColumn,t.breakOffsets=h,t.breakOffsetsVisibleColumn=f,t.wrappedTextIndentLength=u,t)}function Zk(e,t,n,i,r,o){if(-1===i)return null;const a=t.length;if(a<=1)return null;const s=tO(t,n,i,r,o),l=i-s;let c=[],u=[],d=0,h=0,f=0,p=i,g=t.charCodeAt(0),m=e.get(g),v=Qk(g,0,n,r),b=1;xo["D"](g)&&(v+=1,g=t.charCodeAt(1),m=e.get(g),b++);for(let y=b;y<a;y++){const i=y,o=t.charCodeAt(y);let a,s;xo["D"](o)?(y++,a=0,s=2):(a=e.get(o),s=Qk(o,v,n,r)),eO(g,m,o,a)&&(h=i,f=v),v+=s,v>p&&((0===h||v-f>l)&&(h=i,f=v-s),c[d]=h,u[d]=f,d++,p=f+l,h=0),g=o,m=a}return 0===d?null:(c[d]=a,u[d]=v,new Ok(c,u,s))}function Qk(e,t,n,i){return 9===e?n-t%n:xo["C"](e)?i:1}function Jk(e,t){return t-e%t}function eO(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function tO(e,t,n,i,r){let o=0;if(0!==r){const a=xo["u"](e);if(-1!==a){for(let n=0;n<a;n++){const i=9===e.charCodeAt(n)?Jk(o,t):1;o+=i}const s=3===r?2:2===r?1:0;for(let e=0;e<s;e++){const e=Jk(o,t);o+=e}o+i>n&&(o=0)}}return o}class nO{static create(){return new nO}constructor(){}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;let r=[];return{addRequest:(e,t)=>{r.push(e)},finalize:()=>iO(r,e,t,n,i)}}}function iO(e,t,n,i,r){if(-1===i){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=null;return t}const o=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==r&&3!==r||(r=1);const a=document.createElement("div");Ep.applyFontInfoSlow(a,t);const s=yc(1e4),l=[],c=[],u=[],d=[],h=[];for(let m=0;m<e.length;m++){const i=e[m];let a=0,f=0,p=o;if(0!==r)if(a=xo["u"](i),-1===a)a=0;else{for(let t=0;t<a;t++){const e=9===i.charCodeAt(t)?n-f%n:1;f+=e}const e=Math.ceil(t.spaceWidth*f);e+t.typicalFullwidthCharacterWidth>o?(a=0,f=0):p=o-e}const g=i.substr(a),v=rO(g,f,n,p,s);l[m]=a,c[m]=f,u[m]=g,d[m]=v[0],h[m]=v[1]}a.innerHTML=s.build(),a.style.position="absolute",a.style.top="10000",a.style.wordWrap="break-word",document.body.appendChild(a);let f=document.createRange();const p=Array.prototype.slice.call(a.children,0);let g=[];for(let m=0;m<e.length;m++){const e=p[m],t=oO(f,e,u[m],d[m]);if(null===t){g[m]=null;continue}const n=l[m],i=c[m],r=h[m],o=[];for(let a=0,s=t.length;a<s;a++)o[a]=r[t[a]];if(0!==n)for(let a=0,s=t.length;a<s;a++)t[a]+=n;g[m]=new Ok(t,o,i)}return document.body.removeChild(a),g}function rO(e,t,n,i,r){r.appendASCIIString('<div style="width:'),r.appendASCIIString(String(i)),r.appendASCIIString('px;">');const o=e.length;let a=t,s=0,l=[],c=[],u=0<o?e.charCodeAt(0):0;r.appendASCIIString("<span>");for(let d=0;d<o;d++){0!==d&&d%16384===0&&r.appendASCIIString("</span><span>"),l[d]=s,c[d]=a;const t=u;u=d+1<o?e.charCodeAt(d+1):0;let i=1,h=1;switch(t){case 9:i=n-a%n,h=i;for(let e=1;e<=i;e++)e<i?r.write1(160):r.appendASCII(32);break;case 32:32===u?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("&lt;");break;case 62:r.appendASCIIString("&gt;");break;case 38:r.appendASCIIString("&amp;");break;case 0:r.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:r.write1(65533);break;default:xo["C"](t)&&h++,r.write1(t)}s+=i,a+=h}return r.appendASCIIString("</span>"),l[e.length]=s,c[e.length]=a,r.appendASCIIString("</div>"),[l,c]}function oO(e,t,n,i){if(n.length<=1)return null;const r=Array.prototype.slice.call(t.children,0),o=[];try{aO(e,r,i,0,null,n.length-1,null,o)}catch(a){return console.log(a),null}return 0===o.length?null:(o.push(n.length),o)}function aO(e,t,n,i,r,o,a,s){if(i===o)return;if(r=r||sO(e,t,n[i],n[i+1]),a=a||sO(e,t,n[o],n[o+1]),Math.abs(r[0].top-a[0].top)<=.1)return;if(i+1===o)return void s.push(o);const l=i+(o-i)/2|0,c=sO(e,t,n[l],n[l+1]);aO(e,t,n,i,r,l,c,s),aO(e,t,n,l,c,o,a,s)}function sO(e,t,n,i){return e.setStart(t[n/16384|0].firstChild,n%16384),e.setEnd(t[i/16384|0].firstChild,i%16384),e.getClientRects()}var lO=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},cO=function(e,t){return function(n,i){t(n,i,e)}};let uO=0;class dO{constructor(e,t,n,i,r){this.model=e,this.viewModel=t,this.view=n,this.hasRealView=i,this.listenersToRemove=r}dispose(){Ee(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let hO=class e extends Ae{constructor(e,t,n,i,r,o,a,s,l,c){let u;super(),this._onDidDispose=this._register(new ze),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new ze),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new ze),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new ze),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new ze),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new ze),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new ze),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new ze),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new ze),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new ze),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new ze),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new ze),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new fO),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new fO),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new ze),this.onWillType=this._onWillType.event,this._onDidType=this._register(new ze),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new ze),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new ze),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new ze),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new ze),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new ze),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new ze),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new ze),this.onMouseDrop=this._onMouseDrop.event,this._onContextMenu=this._register(new ze),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new ze),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new ze),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new ze),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new ze),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new ze),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new ze),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new ze),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new ze),this.onDidChangeViewZones=this._onDidChangeViewZones.event,t=t||{},this._domElement=e,this._overflowWidgetsDomNode=t.overflowWidgetsDomNode,this._id=++uO,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=n.isSimpleWidget||!1,this._telemetryData=n.telemetryData,this._configuration=this._register(this._createConfiguration(t,c)),this._register(this._configuration.onDidChange(e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(117)){const e=t.get(117);this._onDidLayoutChange.fire(e)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=l,this._codeEditorService=r,this._commandService=o,this._themeService=s,this._register(new pO(this,this._contextKeyService)),this._register(new gO(this,this._contextKeyService)),this._instantiationService=i.createChild(new Wk([Qp,this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new mO(e),this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())}),this._contentWidgets={},this._overlayWidgets={},u=Array.isArray(n.contributions)?n.contributions:bg.getEditorContributions();for(const h of u)try{const e=this._instantiationService.createInstance(h.ctor,this);this._contributions[h.id]=e}catch(d){ge(d)}bg.getEditorActions().forEach(e=>{const t=new mk(e.id,e.label,e.alias,Uo(e.precondition),()=>this._instantiationService.invokeFunction(t=>Promise.resolve(e.runEditorCommand(t,this,null))),this._contextKeyService);this._actions[t.id]=t}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new Ep(this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return _a.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,n=e.length;t<n;t++){const n=e[t];this._contributions[n].dispose()}this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e)}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?bx.getWordAtPosition(this._modelData.model,this._configuration.options.get(105),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let n=0;return e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2),this._modelData.model.getValue(n,t)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();const r={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(i)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(let n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(e,t,n){const i=e.model.validatePosition({lineNumber:t,column:n}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}getTopForLineNumber(t){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1):-1}getTopForPosition(t,n){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,n):-1}setHiddenAreas(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(e=>Jt.lift(e)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return ly.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!Qt.isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,n,i){if(!this._modelData)return;if(!Jt.isIRange(e))throw new Error("Invalid arguments");const r=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r);this._modelData.viewModel.revealRange("api",n,o,t,i)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e,1,e,1),t,!1,n)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,n,i){if(!Qt.isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){const t=en.isISelection(e),n=Jt.isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){const t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(t)}}_setSelectionImpl(e){if(!this._modelData)return;const t=new en(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections("api",[t])}revealLines(e,t,n=0){this._revealLines(e,t,0,n)}revealLinesInCenter(e,t,n=0){this._revealLines(e,t,1,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._revealLines(e,t,2,n)}revealLinesNearTop(e,t,n=0){this._revealLines(e,t,5,n)}_revealLines(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new Jt(e,1,t,1),n,!1,i)}revealRange(e,t=0,n=!1,i=!0){this._revealRange(e,n?1:0,i,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,n,i){if(!Jt.isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(Jt.lift(e),t,n,i)}setSelections(e,t="api"){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,n=e.length;t<n;t++)if(!en.isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.setScrollPosition(e,t)}saveViewState(){if(!this._modelData)return null;const e={},t=Object.keys(this._contributions);for(const r of t){const t=this._contributions[r];"function"===typeof t.saveViewState&&(e[r]=t.saveViewState())}const n=this._modelData.viewModel.saveCursorState(),i=this._modelData.viewModel.saveState();return{cursorState:n,viewState:i,contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]);const n=t.contributionsState||{},i=Object.keys(this._contributions);for(let t=0,o=i.length;t<o;t++){const e=i[t],r=this._contributions[e];"function"===typeof r.restoreViewState&&r.restoreViewState(n[e])}const r=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(r)}}getContribution(e){return this._contributions[e]||null}getActions(){const e=[],t=Object.keys(this._actions);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._actions[i])}return e}getSupportedActions(){let e=this.getActions();return e=e.filter(e=>e.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,n){switch(n=n||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=n;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=n;return void this._replacePreviousChar(e,t.text||"",t.replaceCharCnt||0)}case"paste":{const t=n;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,ge):this._modelData&&this._triggerEditorCommand(e,t,n)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_replacePreviousChar(e,t,n){this._modelData&&this._modelData.viewModel.replacePreviousChar(t,n,e)}_paste(e,t,n,i,r){if(!this._modelData||0===t.length)return;const o=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,n,i,e);const a=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new Jt(o.lineNumber,o.column,a.lineNumber,a.column),mode:r})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,n){const i=bg.getEditorCommand(t);return!!i&&(n=n||{},n.source=e,this._instantiationService.invokeFunction(e=>{Promise.resolve(i.runEditorCommand(e,this,n)).then(void 0,ge)}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&!this._configuration.options.get(72)&&(this._modelData.model.pushStackElement(),!0)}executeEdits(e,t,n){if(!this._modelData)return!1;if(this._configuration.options.get(72))return!1;let i;return i=n?Array.isArray(n)?()=>n:n:()=>null,this._modelData.viewModel.executeEdits(e,t,i),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Z(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){const e=this._configuration.options,t=e.get(117);return t}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const n=this._modelData.model.validatePosition(t),i=this._configuration.options,r=i.get(117),o=e._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),a=this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft();return{top:o,left:a,height:i.get(51)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){Ep.applyFontInfoSlow(e,this._configuration.options.get(36))}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();const n=new $k(this._id,this._configuration,e,nO.create(),Yk.create(this._configuration.options),e=>vr(e));t.push(e.onDidChangeDecorations(e=>this._onDidChangeModelDecorations.fire(e))),t.push(e.onDidChangeLanguage(t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(t)})),t.push(e.onDidChangeLanguageConfiguration(e=>this._onDidChangeModelLanguageConfiguration.fire(e))),t.push(e.onDidChangeContent(e=>this._onDidChangeModelContent.fire(e))),t.push(e.onDidChangeOptions(e=>this._onDidChangeModelOptions.fire(e))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(n.onEvent(e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{e.reachedMaxCursorCount&&this._notificationService.warn(r("cursors.maximum","The number of cursors has been limited to {0}.",pk.MAX_CURSOR_COUNT));const t=[];for(let r=0,o=e.selections.length;r<o;r++)t[r]=e.selections[r].getPosition();const n={position:t[0],secondaryPositions:t.slice(1),reason:e.reason,source:e.source};this._onDidChangeCursorPosition.fire(n);const i={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};this._onDidChangeCursorSelection.fire(i);break}}}));const[i,o]=this._createView(n);if(o){this._domElement.appendChild(i.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];i.addContentWidget(this._contentWidgets[n])}t=Object.keys(this._overlayWidgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];i.addOverlayWidget(this._overlayWidgets[n])}i.render(!1,!0),i.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new dO(e,n,i,o,t)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,n,i)=>{this._paste("keyboard",e,t,n,i)},type:e=>{this._type("keyboard",e)},replacePreviousChar:(e,t)=>{this._replacePreviousChar("keyboard",e,t)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,n,i)=>{const r={text:e,pasteOnNewLine:t,multicursorText:n,mode:i};this._commandService.executeCommand("paste",r)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},replacePreviousChar:(e,t)=>{const n={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",n)},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const n=new Vx(e.coordinatesConverter);n.onKeyDown=e=>this._onKeyDown.fire(e),n.onKeyUp=e=>this._onKeyUp.fire(e),n.onContextMenu=e=>this._onContextMenu.fire(e),n.onMouseMove=e=>this._onMouseMove.fire(e),n.onMouseLeave=e=>this._onMouseLeave.fire(e),n.onMouseDown=e=>this._onMouseDown.fire(e),n.onMouseUp=e=>this._onMouseUp.fire(e),n.onMouseDrag=e=>this._onMouseDrag.fire(e),n.onMouseDrop=e=>this._onMouseDrop.fire(e),n.onMouseWheel=e=>this._onMouseWheel.fire(e);const i=new jS(t,this._configuration,this._themeService,e,n,this._overflowWidgetsDomNode);return[i,!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const e=this._modelData.model,t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),t&&this._domElement.contains(t)&&this._domElement.removeChild(t),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};hO=lO([cO(3,Vn),cO(4,Un),cO(5,qo),cO(6,Qp),cO(7,em),cO(8,Lf),cO(9,Hk)],hO);class fO extends Ae{constructor(){super(),this._onDidChangeToTrue=this._register(new ze),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new ze),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class pO extends Ae{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=Mx.editorSimpleInput.bindTo(t),this._editorFocus=Mx.focus.bindTo(t),this._textInputFocus=Mx.textInputFocus.bindTo(t),this._editorTextFocus=Mx.editorTextFocus.bindTo(t),this._editorTabMovesFocus=Mx.tabMovesFocus.bindTo(t),this._editorReadonly=Mx.readOnly.bindTo(t),this._editorColumnSelection=Mx.columnSelection.bindTo(t),this._hasMultipleSelections=Mx.hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=Mx.hasNonEmptySelection.bindTo(t),this._canUndo=Mx.canUndo.bindTo(t),this._canRedo=Mx.canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(116)),this._editorReadonly.set(e.get(72)),this._editorColumnSelection.set(e.get(13))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(e=>!e.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class gO extends Ae{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=Mx.languageId.bindTo(t),this._hasCompletionItemProvider=Mx.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=Mx.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=Mx.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=Mx.hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=Mx.hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=Mx.hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=Mx.hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=Mx.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=Mx.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=Mx.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=Mx.hasReferenceProvider.bindTo(t),this._hasRenameProvider=Mx.hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=Mx.hasSignatureHelpProvider.bindTo(t),this._hasDocumentFormattingProvider=Mx.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=Mx.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=Mx.hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=Mx.hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=Mx.isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(Sl.onDidChange(n)),this._register(Pl.onDidChange(n)),this._register(Nl.onDidChange(n)),this._register(Tl.onDidChange(n)),this._register(Ll.onDidChange(n)),this._register(Il.onDidChange(n)),this._register(Al.onDidChange(n)),this._register(Ol.onDidChange(n)),this._register(Dl.onDidChange(n)),this._register(Ml.onDidChange(n)),this._register(xl.onDidChange(n)),this._register(Cl.onDidChange(n)),this._register(Rl.onDidChange(n)),this._register(Fl.onDidChange(n)),this._register(kl.onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(Sl.has(e)),this._hasCodeActionsProvider.set(Pl.has(e)),this._hasCodeLensProvider.set(Nl.has(e)),this._hasDefinitionProvider.set(Tl.has(e)),this._hasDeclarationProvider.set(Ll.has(e)),this._hasImplementationProvider.set(Il.has(e)),this._hasTypeDefinitionProvider.set(Al.has(e)),this._hasHoverProvider.set(Ol.has(e)),this._hasDocumentHighlightProvider.set(Dl.has(e)),this._hasDocumentSymbolProvider.set(Ml.has(e)),this._hasReferenceProvider.set(xl.has(e)),this._hasRenameProvider.set(Cl.has(e)),this._hasSignatureHelpProvider.set(kl.has(e)),this._hasDocumentFormattingProvider.set(Rl.has(e)||Fl.has(e)),this._hasDocumentSelectionFormattingProvider.set(Fl.has(e)),this._hasMultipleDocumentFormattingProvider.set(Rl.all(e).length+Fl.all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(Fl.all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===Yi.walkThroughSnippet)}):this.reset()}}class mO extends Ae{constructor(e){super(),this._onChange=this._register(new ze),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(to(e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const vO=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),bO=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function yO(e){return vO+encodeURIComponent(e.toString())+bO}const _O=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),wO=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function xO(e){return _O+encodeURIComponent(e.toString())+wO}cm((e,t)=>{const n=e.getColor(b_);n&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${n}; }`);const i=e.getColor(v_);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${yO(i)}") repeat-x bottom left; }`);const r=e.getColor(__);r&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${r}; }`);const o=e.getColor(y_);o&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${yO(o)}") repeat-x bottom left; }`);const a=e.getColor(x_);a&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${a}; }`);const s=e.getColor(w_);s&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${yO(s)}") repeat-x bottom left; }`);const l=e.getColor(S_);l&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${l}; }`);const c=e.getColor(C_);c&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${xO(c)}") no-repeat bottom left; }`);const u=e.getColor(Xw);u&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${u.rgba.a}; }`);const d=e.getColor(Yw);d&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${d}; }`);const h=e.getColor(O_)||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${h}}`)}),n("7115"),n("c901");const CO=!1;let SO=4;const kO=new ze;class OO extends Ae{constructor(e,t,n){super(),this._state=3,this._onDidEnablementChange=this._register(new ze),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new ze),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new ze),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new ze),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new Ie),this.orthogonalEndSashDisposables=this._register(new Ie),this.el=no(e,so(".monaco-sash")),o["f"]&&rr(this.el,"mac"),this._register(si(this.el,"mousedown")(this.onMouseDown,this)),this._register(si(this.el,"dblclick")(this.onMouseDoubleClick,this)),this._register(Ig.addTarget(this.el)),this._register(si(this.el,Tg.Start)(this.onTouchStart,this)),"number"===typeof n.size?(this.size=n.size,0===n.orientation?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=SO,this._register(kO.event(e=>{this.size=e,this.layout()}))),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=n.orthogonalStartSash,this.orthogonalEndSash=n.orthogonalEndSash,this.orientation=n.orientation||0,1===this.orientation?(rr(this.el,"horizontal"),ar(this.el,"vertical")):(ar(this.el,"horizontal"),rr(this.el,"vertical")),lr(this.el,"debug",CO),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(lr(this.el,"disabled",0===e),lr(this.el,"minimum",1===e),lr(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e}onMouseDown(e){Zr.stop(e,!1);let t=!1;if(!e.__orthogonalSashEvent){const n=this.getOrthogonalSash(e);n&&(t=!0,e.__orthogonalSashEvent=!0,n.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),!this.state)return;const n=[...fo("iframe"),...fo("webview")];for(const o of n)o.style.pointerEvents="none";const i=new wi(e),r=i.posx,a=i.posy,s=i.altKey,l={startX:r,currentX:r,startY:a,currentY:a,altKey:s};rr(this.el,"active"),this._onDidStart.fire(l);const c=Wr(this.el),u=()=>{let e="";e=t?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":o["f"]?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":o["f"]?"col-resize":"ew-resize",c.innerHTML=`* { cursor: ${e} !important; }`},d=new Ie;u(),t||this.onDidEnablementChange(u,null,d);const h=e=>{Zr.stop(e,!1);const t=new wi(e),n={startX:r,currentX:t.posx,startY:a,currentY:t.posy,altKey:s};this._onDidChange.fire(n)},f=e=>{Zr.stop(e,!1),this.el.removeChild(c),ar(this.el,"active"),this._onDidEnd.fire(),d.dispose();for(const t of n)t.style.pointerEvents="auto"};si(window,"mousemove")(h,null,d),si(window,"mouseup")(f,null,d)}onMouseDoubleClick(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}onTouchStart(e){Zr.stop(e);const t=[],n=e.pageX,i=e.pageY,r=e.altKey;this._onDidStart.fire({startX:n,currentX:n,startY:i,currentY:i,altKey:r}),t.push(ur(this.el,Tg.Change,e=>{Po(e.pageX)&&Po(e.pageY)&&this._onDidChange.fire({startX:n,currentX:e.pageX,startY:i,currentY:e.pageY,altKey:r})})),t.push(ur(this.el,Tg.End,e=>{this._onDidEnd.fire(),Ee(t)}))}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}onOrthogonalStartSashEnablementChange(e){lr(this.el,"orthogonal-start",0!==e)}onOrthogonalEndSashEnablementChange(e){lr(this.el,"orthogonal-end",0!==e)}getOrthogonalSash(e){if(0===this.orientation){if(e.offsetY<=this.size)return this.orthogonalStartSash;if(e.offsetY>=this.el.clientHeight-this.size)return this.orthogonalEndSash}else{if(e.offsetX<=this.size)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-this.size)return this.orthogonalEndSash}}dispose(){super.dispose(),this.el.remove()}}class MO{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}const DO=[];function EO(e,t,n){DO.push([e,new MO(t,[],n)])}function TO(){return DO}const LO=Wn("IEditorCancelService"),IO=new Zp("cancellableOperation",!1);EO(LO,class{constructor(){this._tokens=new WeakMap}add(e,t){let n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext(e=>{const t=IO.bindTo(e.get(Qp)),n=new Re;return{key:t,tokens:n}}),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),()=>{n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0),gg(new class extends fg{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:IO})}runEditorCommand(e,t){e.get(LO).cancel(t)}});class AO{constructor(e,t,n){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=n}static capture(e){let t=null,n=0;if(0!==e.getScrollTop()){const i=e.getVisibleRanges();if(i.length>0){t=i[0].getStartPosition();const r=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-r}}return new AO(t,n,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}n("c6b4"),n("154c");const NO={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:"text/plain"};class PO{constructor(e){this.data=e}update(){}getData(){return this.data}}const RO={CurrentDragAndDropData:void 0};class FO extends Ae{constructor(e,t,n={}){super(),this.options=n,this._context=e||this,this._action=t,t instanceof Lp&&this._register(t.onDidChange(e=>{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new Ip)),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(Ig.addTarget(e));const n=this.options&&this.options.draggable;n&&(e.draggable=!0,ei&&this._register(ur(e,Xr.DRAG_START,e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(NO.TEXT,this._action.label)}))),this._register(ur(t,Tg.Tap,e=>this.onClick(e))),this._register(ur(t,Xr.MOUSE_DOWN,e=>{n||Zr.stop(e,!0),this._action.enabled&&0===e.button&&rr(t,"active")})),o["f"]&&this._register(ur(t,Xr.CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register(ur(t,Xr.CLICK,e=>{Zr.stop(e,!0),this.options&&this.options.isMenu||o["j"](()=>this.onClick(e))})),this._register(ur(t,Xr.DBLCLICK,e=>{Zr.stop(e,!0)})),[Xr.MOUSE_UP,Xr.MOUSE_OUT].forEach(e=>{this._register(ur(t,e,e=>{Zr.stop(e),ar(t,"active")}))})}onClick(e){var t;Zr.stop(e,!0);const n=jo(this._context)?(null===(t=this.options)||void 0===t?void 0:t.useEventAsContext)?e:void 0:this._context;this.actionRunner.run(this._action,n)}focus(){this.element&&(this.element.focus(),rr(this.element,"focused"))}blur(){this.element&&(this.element.blur(),ar(this.element,"focused"))}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(er(this.element),this.element=void 0),super.dispose()}}class jO extends FO{constructor(e,t,n={}){super(e,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=no(this.element,so("a.action-label"))),this.label&&(this._action.id===Ap.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(no(this.element,so("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){super.focus(),this.label&&this.label.focus()}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&sr(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(rr(this.label,"codicon"),this.cssClass&&or(this.label,this.cssClass)),this.updateEnabled()):this.label&&ar(this.label,"codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),ar(this.label,"disabled"),this.label.tabIndex=0),this.element&&ar(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),rr(this.label,"disabled"),ho(this.label)),this.element&&rr(this.element,"disabled"))}updateChecked(){this.label&&(this.getAction().checked?rr(this.label,"checked"):ar(this.label,"checked"))}}class BO extends Ae{constructor(e,t={}){var n,i,r;let o,a;switch(super(),this._onDidBlur=this._register(new ze),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new ze),this.onDidCancel=this._onDidCancel.event,this._onDidRun=this._register(new ze),this.onDidRun=this._onDidRun.event,this._onDidBeforeRun=this._register(new ze),this.onDidBeforeRun=this._onDidBeforeRun.event,this.options=t,this._context=null!==(n=t.context)&&void 0!==n?n:null,this._orientation=null!==(i=this.options.orientation)&&void 0!==i?i:0,this._triggerKeys=null!==(r=this.options.triggerKeys)&&void 0!==r?r:{keys:[3,10],keyDown:!1},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new Ip,this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onDidBeforeRun(e=>this._onDidBeforeRun.fire(e))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&rr(this.domNode,"animated"),this._orientation){case 0:o=15,a=17;break;case 1:o=17,a=15,this.domNode.className+=" reverse";break;case 2:o=16,a=18,this.domNode.className+=" vertical";break;case 3:o=18,a=16,this.domNode.className+=" vertical reverse";break}this._register(ur(this.domNode,Xr.KEY_DOWN,e=>{const t=new gi(e);let n=!0;t.equals(o)?n=this.focusPrevious():t.equals(a)?n=this.focusNext():t.equals(9)?this._onDidCancel.fire():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown&&this.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())})),this._register(ur(this.domNode,Xr.KEY_UP,e=>{const t=new gi(e);this.isTriggerKeyEvent(t)?(this._triggerKeys.keyDown||this.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(to(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{$r()!==this.domNode&&Rr($r(),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(n=>{t=t||e.equals(n)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(Rr($r(),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const n=Array.isArray(e)?e:[e];let i=Po(t.index)?t.index:null;n.forEach(e=>{const n=document.createElement("li");let r;n.className="action-item",n.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(ur(n,Xr.CONTEXT_MENU,e=>{Zr.stop(e,!0)})),this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e)),r||(r=new jO(this.context,e,t)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(n),null===i||i<0||i>=this.actionsList.children.length?(this.actionsList.appendChild(n),this.viewItems.push(r)):(this.actionsList.insertBefore(n,this.actionsList.children[i]),this.viewItems.splice(i,0,r),i++)}),this.focusedItem&&this.focus(this.focusedItem)}clear(){Ee(this.viewItems),this.viewItems=[],Ji(this.actionsList)}focus(e){let t=!1,n=void 0;void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem?(this.focusedItem=-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())}focusNext(){"undefined"===typeof this.focusedItem&&(this.focusedItem=this.viewItems.length-1);const e=this.focusedItem;let t;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(),!0}focusPrevious(){"undefined"===typeof this.focusedItem&&(this.focusedItem=0);const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());return this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0),!0}updateFocus(e,t){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let n=0;n<this.viewItems.length;n++){const i=this.viewItems[n],r=i;n===this.focusedItem?Bo(r.isEnabled)&&(r.isEnabled()&&Bo(r.focus)?r.focus(e):this.actionsList.focus({preventScroll:t})):Bo(r.blur)&&r.blur()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof FO){const n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}run(e,t){return this._actionRunner.run(e,t)}dispose(){Ee(this.viewItems),this.viewItems=[],er(this.getContainer()),super.dispose()}}const zO=3;class VO{constructor(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class $O{constructor(e){this.entries=e}}const WO=ul("diff-review-insert",dl.add),HO=ul("diff-review-remove",dl.remove),UO=ul("diff-review-close",dl.close);class qO extends Ae{constructor(e){super(),this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Og(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Og(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new BO(this.actionBarContainer.domNode)),this._actionBar.push(new Lp("diffreview.close",r("label.close","Close"),"close-diff-review "+UO.classNames,!0,()=>(this.hide(),Promise.resolve(null))),{label:!1,icon:!0}),this.domNode=Og(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Og(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new NC(this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(fr(this.domNode.domNode,"click",e=>{e.preventDefault();let t=Fr(e.target,"diff-review-row");t&&this._goToRow(t)})),this._register(fr(this.domNode.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new Qt(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new Qt(t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let e=-1,t=this._getCurrentFocusedRow();if(t){let n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new Qt(e,1)),this._diffEditor.revealPosition(new Qt(e,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){let e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()}_getNextRow(){let e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){let e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null}_goToRow(e){let t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(e,t,n){this._width=t,this.shadow.setTop(e-6),this.shadow.setWidth(t),this.shadow.setHeight(this._isVisible?6:0),this.domNode.setTop(e),this.domNode.setWidth(t),this.domNode.setHeight(n),this._content.setHeight(n),this._content.setWidth(t),this._isVisible?(this.actionBarContainer.setAttribute("aria-hidden","false"),this.actionBarContainer.setDisplay("block")):(this.actionBarContainer.setAttribute("aria-hidden","true"),this.actionBarContainer.setDisplay("none"))}_compute(){const e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];const t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?qO._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]}static _mergeAdjacent(e,t,n){if(!e||0===e.length)return[];let i=[],r=0;for(let l=0,c=e.length;l<c;l++){const o=e[l],a=o.originalStartLineNumber,s=o.originalEndLineNumber,u=o.modifiedStartLineNumber,d=o.modifiedEndLineNumber;let h=[],f=0;{const t=0===s?a:a-1,n=0===d?u:u-1;let i=1,r=1;if(l>0){const t=e[l-1];i=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,r=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let o=t-zO+1,c=n-zO+1;if(o<i){const e=i-o;o+=e,c+=e}if(c<r){const e=r-c;o+=e,c+=e}h[f++]=new VO(o,t,c,n)}0!==s&&(h[f++]=new VO(a,s,0,0)),0!==d&&(h[f++]=new VO(0,0,u,d));{const i=0===s?a+1:s+1,r=0===d?u+1:d+1;let o=t,p=n;if(l+1<c){const t=e[l+1];o=0===t.originalEndLineNumber?t.originalStartLineNumber:t.originalStartLineNumber-1,p=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1}let g=i+zO-1,m=r+zO-1;if(g>o){const e=o-g;g+=e,m+=e}if(m>p){const e=p-m;g+=e,m+=e}h[f++]=new VO(i,g,r,m)}i[r++]=new $O(h)}let o=i[0].entries,a=[],s=0;for(let l=1,c=i.length;l<c;l++){const e=i[l].entries,t=o[o.length-1],n=e[0];0===t.getType()&&0===n.getType()&&n.originalLineStart<=t.originalLineEnd?(o[o.length-1]=new VO(t.originalLineStart,n.originalLineEnd,t.modifiedLineStart,n.modifiedLineEnd),o=o.concat(e.slice(1))):(a[s++]=new $O(o),o=e)}return a[s++]=new $O(o),a}_findDiffIndex(e){const t=e.lineNumber;for(let n=0,i=this._diffs.length;n<i;n++){const e=this._diffs[n].entries,i=e[e.length-1].modifiedLineEnd;if(t<=i)return n}return 0}_render(){const e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel(),o=n.getOptions(),a=i.getOptions();if(!this._isVisible||!n||!i)return Ji(this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});const s=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[s]===this._currentDiff)return;this._currentDiff=this._diffs[s];const l=this._diffs[s].entries;let c=document.createElement("div");c.className="diff-review-table",c.setAttribute("role","list"),c.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),Ep.applyFontInfoSlow(c,t.get(36));let u=0,d=0,h=0,f=0;for(let r=0,C=l.length;r<C;r++){const e=l[r],t=e.originalLineStart,n=e.originalLineEnd,i=e.modifiedLineStart,o=e.modifiedLineEnd;0!==t&&(0===u||t<u)&&(u=t),0!==n&&(0===d||n>d)&&(d=n),0!==i&&(0===h||i<h)&&(h=i),0!==o&&(0===f||o>f)&&(f=o)}let p=document.createElement("div");p.className="diff-review-row";let g=document.createElement("div");g.className="diff-review-cell diff-review-summary";const m=d-u+1,v=f-h+1;g.appendChild(document.createTextNode(`${s+1}/${this._diffs.length}: @@ -${u},${m} +${h},${v} @@`)),p.setAttribute("data-line",String(h));const b=e=>0===e?r("no_lines_changed","no lines changed"):1===e?r("one_line_changed","1 line changed"):r("more_lines_changed","{0} lines changed",e),y=b(m),_=b(v);p.setAttribute("aria-label",r({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",s+1,this._diffs.length,u,y,h,_)),p.appendChild(g),p.setAttribute("role","listitem"),c.appendChild(p);const w=t.get(51);let x=h;for(let r=0,C=l.length;r<C;r++){const s=l[r];qO._renderSection(c,s,x,w,this._width,e,n,o,t,i,a),0!==s.modifiedLineStart&&(x=s.modifiedLineEnd)}Ji(this._content.domNode),this._content.domNode.appendChild(c),this.scrollbar.scanDomNode()}static _renderSection(e,t,n,i,o,a,s,l,c,u,d){const h=t.getType();let f="diff-review-row",p="";const g="diff-review-spacer";let m=null;switch(h){case 1:f="diff-review-row line-insert",p=" char-insert",m=WO;break;case 2:f="diff-review-row line-delete",p=" char-delete",m=HO;break}const v=t.originalLineStart,b=t.originalLineEnd,y=t.modifiedLineStart,_=t.modifiedLineEnd,w=Math.max(_-y,b-v),x=a.get(117),C=x.glyphMarginWidth+x.lineNumbersWidth,S=c.get(117),k=10+S.glyphMarginWidth+S.lineNumbersWidth;for(let O=0;O<=w;O++){const t=0===v?0:v+O,b=0===y?0:y+O,_=document.createElement("div");_.style.minWidth=o+"px",_.className=f,_.setAttribute("role","listitem"),0!==b&&(n=b),_.setAttribute("data-line",String(n));let w=document.createElement("div");w.className="diff-review-cell",w.style.height=i+"px",_.appendChild(w);const x=document.createElement("span");x.style.width=C+"px",x.style.minWidth=C+"px",x.className="diff-review-line-number"+p,0!==t?x.appendChild(document.createTextNode(String(t))):x.innerText=" ",w.appendChild(x);const S=document.createElement("span");S.style.width=k+"px",S.style.minWidth=k+"px",S.style.paddingRight="10px",S.className="diff-review-line-number"+p,0!==b?S.appendChild(document.createTextNode(String(b))):S.innerText=" ",w.appendChild(S);const M=document.createElement("span");if(M.className=g,m){const e=document.createElement("span");e.className=m.classNames,e.innerText="  ",M.appendChild(e)}else M.innerText="  ";let D;w.appendChild(M),0!==b?(w.insertAdjacentHTML("beforeend",this._renderLine(u,c,d.tabSize,b)),D=u.getLineContent(b)):(w.insertAdjacentHTML("beforeend",this._renderLine(s,a,l.tabSize,t)),D=s.getLineContent(t)),0===D.length&&(D=r("blankLine","blank"));let E="";switch(h){case 0:E=t===b?r({key:"unchangedLine",comment:["The placholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",D,t):r("equalLine","{0} original line {1} modified line {2}",D,t,b);break;case 1:E=r("insertLine","+ {0} modified line {1}",D,b);break;case 2:E=r("deleteLine","- {0} original line {1}",D,t);break}_.setAttribute("aria-label",E),e.appendChild(_)}}static _renderLine(e,t,n,i){const r=e.getLineContent(i),o=t.get(36),a=16793600,s=new Uint32Array(2);s[0]=r.length,s[1]=a;const l=new od(s,r),c=Ed.isBasicASCII(r,e.mightContainNonBasicASCII()),u=Ed.containsRTL(r,c,e.mightContainRTL()),d=bd(new fd(o.isMonospace&&!t.get(24),o.canUseHalfwidthRightwardsArrow,r,!1,c,u,0,l,[],n,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(95),t.get(80),t.get(74),t.get(37)!==P.OFF,null));return d.html}}cm((e,t)=>{const n=e.getColor($w);n&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${n}; }`);const i=e.getColor(h_);i&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class GO extends pg{constructor(){super({id:"editor.action.diffReview.next",label:r("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Fp.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const n=YO(e);n&&n.diffReviewNext()}}class KO extends pg{constructor(){super({id:"editor.action.diffReview.prev",label:r("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Fp.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const n=YO(e);n&&n.diffReviewPrev()}}function YO(e){const t=e.get(Un),n=t.listDiffEditors(),i=t.getActiveCodeEditor();if(!i)return null;for(let r=0,o=n.length;r<o;r++){const e=n[r];if(e.getModifiedEditor().getId()===i.getId()||e.getOriginalEditor().getId()===i.getId())return e}return null}mg(GO),mg(KO);const XO=Wn("contextViewService"),ZO=Wn("contextMenuService");var QO=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class JO extends Ae{constructor(e,t,n,i,o,a){super(),this._viewZoneId=e,this._marginDomNode=t,this.editor=n,this.diff=i,this._contextMenuService=o,this._clipboardService=a,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=dl.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const s=n.getOption(51),l=n.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=s+"px",this._diffActions.style.lineHeight=s+"px",this._marginDomNode.appendChild(this._diffActions);const c=[];c.push(new Lp("diff.clipboard.copyDeletedContent",i.originalEndLineNumber>i.modifiedStartLineNumber?r("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):r("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>QO(this,void 0,void 0,(function*(){yield this._clipboardService.writeText(i.originalContent.join(l)+l)}))));let u=0,d=void 0;i.originalEndLineNumber>i.modifiedStartLineNumber&&(d=new Lp("diff.clipboard.copyDeletedLineContent",r("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,()=>QO(this,void 0,void 0,(function*(){yield this._clipboardService.writeText(i.originalContent[u])}))),c.push(d));const h=n.getOption(72);h||c.push(new Lp("diff.inline.revertChange",r("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>QO(this,void 0,void 0,(function*(){if(0===i.modifiedEndLineNumber){const e=n.getModel().getLineMaxColumn(i.modifiedStartLineNumber);n.executeEdits("diffEditor",[{range:new Jt(i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:l+i.originalContent.join(l)}])}else{const e=n.getModel().getLineMaxColumn(i.modifiedEndLineNumber);n.executeEdits("diffEditor",[{range:new Jt(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:i.originalContent.join(l)}])}}))));const f=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(d&&(d.label=r("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+u)),c),autoSelectFirstItem:!0})};this._register(fr(this._diffActions,"mousedown",e=>{const{top:t,height:n}=Tr(this._diffActions);let i=Math.floor(s/3);e.preventDefault(),f(e.posx,t+n+i)})),this._register(n.onMouseMove(e=>{if(8===e.target.type||5===e.target.type){const t=e.target.detail.viewZoneId;t===this._viewZoneId?(this.visibility=!0,u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,s)):this.visibility=!1}else this.visibility=!1})),this._register(n.onMouseDown(e=>{if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){const t=e.target.detail.viewZoneId;t===this._viewZoneId&&(e.event.preventDefault(),u=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,s),f(e.event.posx,e.event.posy+s))}}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,n){const{top:i}=Tr(e),r=t-i,o=Math.floor(r/n),a=o*n;return this._diffActions.style.top=a+"px",o}}const eM=Wn("clipboardService");class tM{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}tM.None=Object.freeze({report(){}});const nM=Wn("editorProgressService");var iM=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},rM=function(e,t){return function(n,i){t(n,i,e)}};class oM{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(e=>!this._zonesMap[String(e.id)])}clean(e){this._zones.length>0&&e.changeViewZones(e=>{for(let t=0,n=this._zones.length;t<n;t++)e.removeZone(this._zones[t])}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,n,i){const r=i?AO.capture(e):null;e.changeViewZones(t=>{for(let e=0,n=this._zones.length;e<n;e++)t.removeZone(this._zones[e]);for(let e=0,n=this.inlineDiffMargins.length;e<n;e++)this.inlineDiffMargins[e].dispose();this._zones=[],this._zonesMap={},this.inlineDiffMargins=[];for(let i=0,r=n.zones.length;i<r;i++){const r=n.zones[i];r.suppressMouseDown=!0;let o=t.addZone(r);this._zones.push(o),this._zonesMap[String(o)]=!0,n.zones[i].diff&&r.marginDomNode&&(r.suppressMouseDown=!1,this.inlineDiffMargins.push(new JO(o,r.marginDomNode,e,n.zones[i].diff,this._contextMenuService,this._clipboardService)))}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)}}let aM=0;const sM=ul("diff-insert",dl.add),lM=ul("diff-remove",dl.remove);let cM=class e extends Ae{constructor(t,n,i,r,o,a,s,l,c,u,d){super(),this._editorProgressService=d,this._onDidDispose=this._register(new ze),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new ze),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new ze),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=r,this._codeEditorService=s,this._contextKeyService=this._register(o.createScoped(t)),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=l,this._notificationService=c,this.id=++aM,this._state=0,this._updatingDiffProgress=null,this._domElement=t,n=n||{},this._renderSideBySide=!0,"undefined"!==typeof n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide),this._maxComputationTime=5e3,"undefined"!==typeof n.maxComputationTime&&(this._maxComputationTime=n.maxComputationTime),this._ignoreTrimWhitespace=!0,"undefined"!==typeof n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace),this._renderIndicators=!0,"undefined"!==typeof n.renderIndicators&&(this._renderIndicators=n.renderIndicators),this._originalIsEditable=!1,"undefined"!==typeof n.originalEditable&&(this._originalIsEditable=Boolean(n.originalEditable)),this._originalCodeLens=!1,"undefined"!==typeof n.originalCodeLens&&(this._originalCodeLens=Boolean(n.originalCodeLens)),this._modifiedCodeLens=!1,"undefined"!==typeof n.modifiedCodeLens&&(this._modifiedCodeLens=Boolean(n.modifiedCodeLens)),this._updateDecorationsRunner=this._register(new Ti(()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Og(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(fr(this._overviewDomElement,"mousedown",e=>{this.modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new oM(u,i),this._modifiedEditorState=new oM(u,i),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new kp(this._containerDomElement,void 0,()=>this._onDidContainerSizeChanged())),n.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null;const h=this._contextKeyService.createScoped(),f=new Wk;f.set(Qp,h);const p=a.createChild(f),g=this._contextKeyService.createScoped(),m=new Wk;m.set(Qp,g);const v=a.createChild(m);this.originalEditor=this._createLeftHandSideEditor(n,p,h),this.modifiedEditor=this._createRightHandSideEditor(n,v,g),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new qO(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,"undefined"!==typeof n.enableSplitViewResizing&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new gM(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vM(this._createDataSource(),this._enableSplitViewResizing)),this._register(l.onDidColorThemeChange(t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));const b=bg.getDiffEditorContributions();for(const e of b)try{this._register(a.createInstance(e.ctor,this))}catch(y){ge(y)}this._codeEditorService.addDiffEditor(this)}_setState(e){this._state!==e&&(this._state=e,this._updatingDiffProgress&&(this._updatingDiffProgress.done(),this._updatingDiffProgress=null),1===this._state&&(this._updatingDiffProgress=this._editorProgressService.show(!0,1e3)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=om(e.type),n}_recreateOverviewRulers(){this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this.originalEditor.hasModel()&&(this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler"),this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode())),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this.modifiedEditor.hasModel()&&(this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler"),this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode())),this._layoutOverviewRulers()}_createLeftHandSideEditor(t,n,i){const r=this._createInnerEditor(n,this._originalDomNode,this._adjustOptionsForLeftHandSide(t,this._originalIsEditable,this._originalCodeLens));this._register(r.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(r.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(r.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const o=i.createKey("isInDiffLeftEditor",void 0);return this._register(r.onDidFocusEditorWidget(()=>o.set(!0))),this._register(r.onDidBlurEditorWidget(()=>o.set(!1))),this._register(r.onDidContentSizeChange(t=>{const n=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),r}_createRightHandSideEditor(t,n,i){const r=this._createInnerEditor(n,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t,this._modifiedCodeLens));this._register(r.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(r.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(r.onDidChangeConfiguration(e=>{e.hasChanged(36)&&r.getModel()&&this._onViewZonesChanged()})),this._register(r.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(r.onDidChangeModelOptions(e=>{e.tabSize&&this._updateDecorationsRunner.schedule()}));const o=i.createKey("isInDiffRightEditor",void 0);return this._register(r.onDidFocusEditorWidget(()=>o.set(!0))),this._register(r.onDidBlurEditorWidget(()=>o.set(!1))),this._register(r.onDidContentSizeChange(t=>{const n=this.originalEditor.getContentWidth()+this.modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this.modifiedEditor.getContentHeight(),this.originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),r}_createInnerEditor(e,t,n){return e.createInstance(hO,t,n,{})}dispose(){this._codeEditorService.removeDiffEditor(this),-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._cleanViewZonesAndDecorations(),this._originalOverviewRuler&&(this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode()),this._originalOverviewRuler.dispose()),this._modifiedOverviewRuler&&(this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode()),this._modifiedOverviewRuler.dispose()),this._overviewDomElement.removeChild(this._overviewViewportDomElement.domNode),this._containerDomElement.removeChild(this._overviewDomElement),this._containerDomElement.removeChild(this._originalDomNode),this.originalEditor.dispose(),this._containerDomElement.removeChild(this._modifiedDomNode),this.modifiedEditor.dispose(),this._strategy.dispose(),this._containerDomElement.removeChild(this._reviewPane.domNode.domNode),this._containerDomElement.removeChild(this._reviewPane.shadow.domNode),this._containerDomElement.removeChild(this._reviewPane.actionBarContainer.domNode),this._reviewPane.dispose(),this._domElement.removeChild(this._containerDomElement),this._onDidDispose.fire(),super.dispose()}getId(){return this.getEditorType()+":"+this.id}getEditorType(){return _a.IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this.originalEditor}getModifiedEditor(){return this.modifiedEditor}updateOptions(t){let n=!1;"undefined"!==typeof t.renderSideBySide&&this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,n=!0),"undefined"!==typeof t.maxComputationTime&&(this._maxComputationTime=t.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let i=!1;"undefined"!==typeof t.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,i=!0),"undefined"!==typeof t.renderIndicators&&this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),"undefined"!==typeof t.originalEditable&&(this._originalIsEditable=Boolean(t.originalEditable)),"undefined"!==typeof t.originalCodeLens&&(this._originalCodeLens=Boolean(t.originalCodeLens)),"undefined"!==typeof t.modifiedCodeLens&&(this._modifiedCodeLens=Boolean(t.modifiedCodeLens)),this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t,this._modifiedCodeLens)),this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t,this._originalIsEditable,this._originalCodeLens)),"undefined"!==typeof t.enableSplitViewResizing&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new gM(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new vM(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide))}getModel(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}}setModel(e){if(e&&(!e.original||!e.modified))throw new Error(e.original?"DiffEditorWidget.setModel: Modified model is null":"DiffEditorWidget.setModel: Original model is null");this._cleanViewZonesAndDecorations(),this.originalEditor.setModel(e?e.original:null),this.modifiedEditor.setModel(e?e.modified:null),this._updateDecorationsRunner.cancel(),e&&(this.originalEditor.setScrollTop(0),this.modifiedEditor.setScrollTop(0)),this._diffComputationResult=null,this._diffComputationToken++,this._setState(0),e&&(this._recreateOverviewRulers(),this._beginUpdateDecorations()),this._layoutOverviewViewport()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this.modifiedEditor.getPosition()}setPosition(e){this.modifiedEditor.setPosition(e)}revealLine(e,t=0){this.modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this.modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this.modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this.modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this.modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this.modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this.modifiedEditor.getSelection()}getSelections(){return this.modifiedEditor.getSelections()}setSelection(e){this.modifiedEditor.setSelection(e)}setSelections(e){this.modifiedEditor.setSelections(e)}revealLines(e,t,n=0){this.modifiedEditor.revealLines(e,t,n)}revealLinesInCenter(e,t,n=0){this.modifiedEditor.revealLinesInCenter(e,t,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}revealLinesNearTop(e,t,n=0){this.modifiedEditor.revealLinesNearTop(e,t,n)}revealRange(e,t=0,n=!1,i=!0){this.modifiedEditor.revealRange(e,t,n,i)}revealRangeInCenter(e,t=0){this.modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this.modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this.modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this.modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this.modifiedEditor.getSupportedActions()}saveViewState(){let e=this.originalEditor.saveViewState(),t=this.modifiedEditor.saveViewState();return{original:e,modified:t}}restoreViewState(e){if(e.original&&e.modified){let t=e;this.originalEditor.restoreViewState(t.original),this.modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this.modifiedEditor.focus()}hasTextFocus(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()}trigger(e,t,n){this.modifiedEditor.trigger(e,t,n)}changeDecorations(e){return this.modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight();let i=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH,r=this.modifiedEditor.getLayoutInfo();r&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:i+e.ONE_OVERVIEW_WIDTH,height:t-n}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-n}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this.originalEditor.getModel(),n=this.modifiedEditor.getModel();if(!t||!n)return;this._diffComputationToken++;let i=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(e=>{i===this._diffComputationToken&&t===this.originalEditor.getModel()&&n===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},e=>{i===this._diffComputationToken&&t===this.originalEditor.getModel()&&n===this.modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(r("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this.originalEditor),this._modifiedEditorState.clean(this.modifiedEditor)}_updateDecorations(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel()||!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const e=this._diffComputationResult?this._diffComputationResult.changes:[];let t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){let t=oa(e||{});return t.inDiffEditor=!0,t.wordWrap="off",t.wordWrapMinified=!1,t.automaticLayout=!1,t.scrollbar=t.scrollbar||{},t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=!1,t.fixedOverflowWidgets=!0,t.overflowWidgetsDomNode=e.overflowWidgetsDomNode,t.minimap||(t.minimap={}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e,t,n){let i=this._adjustOptionsForSubEditor(e);return n&&(i.codeLens=!0),i.readOnly=!t,i.extraEditorClassName="original-in-monaco-diff-editor",i}_adjustOptionsForRightHandSide(t,n){let i=this._adjustOptionsForSubEditor(t);return n&&(i.codeLens=!0),i.revealHorizontalRightPadding=he.revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,i.scrollbar.verticalHasArrows=!1,i.extraEditorClassName="modified-in-monaco-diff-editor",i}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),n=this._elementSizeObserver.getHeight(),i=this._getReviewHeight();let r=this._strategy.layout();this._originalDomNode.style.width=r+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-r+"px",this._modifiedDomNode.style.left=r+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=n-i+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this.originalEditor.layout({width:r,height:n-i}),this.modifiedEditor.layout({width:t-r-e.ENTIRE_DIFF_OVERVIEW_WIDTH,height:n-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(n-i,t,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){let e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){let e=this.modifiedEditor.getLayoutInfo();if(!e)return null;let t=this.modifiedEditor.getScrollTop(),n=this.modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),r=Math.max(0,i-0),o=n>0?r/n:0,a=Math.max(0,Math.floor(e.height*o)),s=Math.floor(t*o);return{height:a,top:s}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this.originalEditor,getModifiedEditor:()=>this.modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;let i=0,r=n.length-1;while(i<r){let o=Math.floor((i+r)/2),a=t(n[o]),s=o+1<=r?t(n[o+1]):1073741824;e<a?r=o-1:e>=s?i=o+1:(i=o,r=o)}return n[i]}_getEquivalentLineForOriginalLineNumber(e){let t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.originalStartLineNumber);if(!t)return e;let n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-n;return a<=r?i+Math.min(a,o):i+o-r+a}_getEquivalentLineForModifiedLineNumber(e){let t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.modifiedStartLineNumber);if(!t)return e;let n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,a=e-i;return a<=o?n+Math.min(a,r):n+r-o+a}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};cM.ONE_OVERVIEW_WIDTH=15,cM.ENTIRE_DIFF_OVERVIEW_WIDTH=30,cM.UPDATE_DIFF_DECORATIONS_DELAY=200,cM=iM([rM(2,eM),rM(3,Jl),rM(4,Qp),rM(5,Vn),rM(6,Un),rM(7,em),rM(8,Lf),rM(9,ZO),rM(10,nM)],cM);class uM extends Ae{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){let t=(e.getColor(W_)||V_).transparent(2),n=(e.getColor(H_)||$_).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i}getEditorsDiffDecorations(e,t,n,i,r,o,a){r=r.sort((e,t)=>e.afterLineNumber-t.afterLineNumber),i=i.sort((e,t)=>e.afterLineNumber-t.afterLineNumber);let s=this._getViewZones(e,i,r,o,a,n),l=this._getOriginalEditorDecorations(e,t,n,o,a),c=this._getModifiedEditorDecorations(e,t,n,o,a);return{original:{decorations:l.decorations,overviewZones:l.overviewZones,zones:s.original},modified:{decorations:c.decorations,overviewZones:c.overviewZones,zones:s.modified}}}}class dM{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class hM{constructor(e,t,n,i,r){this.lineChanges=e,this.originalForeignVZ=t,this.originalLineHeight=n,this.modifiedForeignVZ=i,this.modifiedLineHeight=r}getViewZones(){let e={original:[],modified:[]},t=0,n=0,i=0,r=0,o=0,a=0,s=(e,t)=>e.afterLineNumber-t.afterLineNumber,l=(e,t)=>{if(null===t.domNode&&e.length>0){let n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},c=new dM(this.modifiedForeignVZ),u=new dM(this.originalForeignVZ);for(let d=0,h=this.lineChanges.length;d<=h;d++){let f=d<h?this.lineChanges[d]:null;null!==f?(i=f.originalStartLineNumber+(f.originalEndLineNumber>0?-1:0),r=f.modifiedStartLineNumber+(f.modifiedEndLineNumber>0?-1:0),n=f.originalEndLineNumber>0?f.originalEndLineNumber-f.originalStartLineNumber+1:0,t=f.modifiedEndLineNumber>0?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0,o=Math.max(f.originalStartLineNumber,f.originalEndLineNumber),a=Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)):(i+=1e7+n,r+=1e7+t,o=i,a=r);let p=[],g=[];while(c.current&&c.current.afterLineNumber<=a){let e;e=c.current.afterLineNumber<=r?i-r+c.current.afterLineNumber:o;let t=null;f&&f.modifiedStartLineNumber<=c.current.afterLineNumber&&c.current.afterLineNumber<=f.modifiedEndLineNumber&&(t=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),p.push({afterLineNumber:e,heightInLines:c.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:t}),c.advance()}while(u.current&&u.current.afterLineNumber<=o){let e;e=u.current.afterLineNumber<=i?r-i+u.current.afterLineNumber:a,g.push({afterLineNumber:e,heightInLines:u.current.height/this.originalLineHeight,domNode:null}),u.advance()}if(null!==f&&yM(f)){let e=this._produceOriginalFromDiff(f,n,t);e&&p.push(e)}if(null!==f&&_M(f)){let e=this._produceModifiedFromDiff(f,n,t);e&&g.push(e)}let m=0,v=0;p=p.sort(s),g=g.sort(s);while(m<p.length&&v<g.length){let t=p[m],n=g[v],o=t.afterLineNumber-i,a=n.afterLineNumber-r;o<a?(l(e.original,t),m++):a<o?(l(e.modified,n),v++):t.shouldNotShrink?(l(e.original,t),m++):n.shouldNotShrink?(l(e.modified,n),v++):t.heightInLines>=n.heightInLines?(t.heightInLines-=n.heightInLines,v++):(n.heightInLines-=t.heightInLines,m++)}while(m<p.length)l(e.original,p[m]),m++;while(v<g.length)l(e.modified,g[v]),v++}return{original:hM._ensureDomNodes(e.original),modified:hM._ensureDomNodes(e.modified)}}static _ensureDomNodes(e){return e.map(e=>(e.domNode||(e.domNode=wM()),e))}}function fM(e,t,n,i,r){return{range:new Jt(e,t,n,i),options:r}}const pM={charDelete:qb.register({className:"char-delete"}),charDeleteWholeLine:qb.register({className:"char-delete",isWholeLine:!0}),charInsert:qb.register({className:"char-insert"}),charInsertWholeLine:qb.register({className:"char-insert",isWholeLine:!0}),lineInsert:qb.register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:qb.register({className:"line-insert",linesDecorationsClassName:"insert-sign "+sM.classNames,marginClassName:"line-insert",isWholeLine:!0}),lineDelete:qb.register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:qb.register({className:"line-delete",linesDecorationsClassName:"delete-sign "+lM.classNames,marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:qb.register({marginClassName:"line-delete"})};class gM extends uM{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new OO(this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this.onSashDragStart()),this._sash.onDidChange(e=>this.onSashDrag(e)),this._sash.onDidEnd(()=>this.onSashDragEnd()),this._sash.onDidReset(()=>this.onSashReset())}setEnableSplitViewResizing(e){let t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){let t=this._dataSource.getWidth(),n=t-cM.ENTIRE_DIFF_OVERVIEW_WIDTH,i=Math.floor((e||.5)*n),r=Math.floor(.5*n);return i=this._disableSash?r:i||r,n>2*gM.MINIMUM_EDITOR_WIDTH?(i<gM.MINIMUM_EDITOR_WIDTH&&(i=gM.MINIMUM_EDITOR_WIDTH),i>n-gM.MINIMUM_EDITOR_WIDTH&&(i=n-gM.MINIMUM_EDITOR_WIDTH)):i=r,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition}onSashDragStart(){this._startSashPosition=this._sashPosition}onSashDrag(e){let t=this._dataSource.getWidth(),n=t-cM.ENTIRE_DIFF_OVERVIEW_WIDTH,i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,this._dataSource.relayoutEditors()}onSashDragEnd(){this._sash.layout()}onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,n,i,r){let o=new mM(e,t,i.getOption(51),n,r.getOption(51));return o.getViewZones()}_getOriginalEditorDecorations(e,t,n,i,r){const o=String(this._removeColor);let a={decorations:[],overviewZones:[]},s=i.getModel();for(let l=0,c=e.length;l<c;l++){let i=e[l];if(_M(i)&&(a.decorations.push({range:new Jt(i.originalStartLineNumber,1,i.originalEndLineNumber,1073741824),options:n?pM.lineDeleteWithSign:pM.lineDelete}),yM(i)&&i.charChanges||a.decorations.push(fM(i.originalStartLineNumber,1,i.originalEndLineNumber,1073741824,pM.charDeleteWholeLine)),a.overviewZones.push(new vS(i.originalStartLineNumber,i.originalEndLineNumber,o)),i.charChanges))for(let e=0,n=i.charChanges.length;e<n;e++){let n=i.charChanges[e];if(_M(n))if(t)for(let e=n.originalStartLineNumber;e<=n.originalEndLineNumber;e++){let t,i;t=e===n.originalStartLineNumber?n.originalStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.originalEndLineNumber?n.originalEndColumn:s.getLineLastNonWhitespaceColumn(e),a.decorations.push(fM(e,t,e,i,pM.charDelete))}else a.decorations.push(fM(n.originalStartLineNumber,n.originalStartColumn,n.originalEndLineNumber,n.originalEndColumn,pM.charDelete))}}return a}_getModifiedEditorDecorations(e,t,n,i,r){const o=String(this._insertColor);let a={decorations:[],overviewZones:[]},s=r.getModel();for(let l=0,c=e.length;l<c;l++){let i=e[l];if(yM(i)&&(a.decorations.push({range:new Jt(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,1073741824),options:n?pM.lineInsertWithSign:pM.lineInsert}),_M(i)&&i.charChanges||a.decorations.push(fM(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,1073741824,pM.charInsertWholeLine)),a.overviewZones.push(new vS(i.modifiedStartLineNumber,i.modifiedEndLineNumber,o)),i.charChanges))for(let e=0,n=i.charChanges.length;e<n;e++){let n=i.charChanges[e];if(yM(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(e),a.decorations.push(fM(e,t,e,i,pM.charInsert))}else a.decorations.push(fM(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,pM.charInsert))}}return a}}gM.MINIMUM_EDITOR_WIDTH=100;class mM extends hM{constructor(e,t,n,i,r){super(e,t,n,i,r)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null}_produceModifiedFromDiff(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null}}class vM extends uM{constructor(e,t){super(e),this.decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(t=>{this.decorationsLeft!==t.decorationsLeft&&(this.decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,n,i,r,o){let a=new bM(e,t,n,i,r,o);return a.getViewZones()}_getOriginalEditorDecorations(e,t,n,i,r){const o=String(this._removeColor);let a={decorations:[],overviewZones:[]};for(let s=0,l=e.length;s<l;s++){let t=e[s];_M(t)&&(a.decorations.push({range:new Jt(t.originalStartLineNumber,1,t.originalEndLineNumber,1073741824),options:pM.lineDeleteMargin}),a.overviewZones.push(new vS(t.originalStartLineNumber,t.originalEndLineNumber,o)))}return a}_getModifiedEditorDecorations(e,t,n,i,r){const o=String(this._insertColor);let a={decorations:[],overviewZones:[]},s=r.getModel();for(let l=0,c=e.length;l<c;l++){let i=e[l];if(yM(i))if(a.decorations.push({range:new Jt(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,1073741824),options:n?pM.lineInsertWithSign:pM.lineInsert}),a.overviewZones.push(new vS(i.modifiedStartLineNumber,i.modifiedEndLineNumber,o)),i.charChanges)for(let e=0,n=i.charChanges.length;e<n;e++){let n=i.charChanges[e];if(yM(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(e),a.decorations.push(fM(e,t,e,i,pM.charInsert))}else a.decorations.push(fM(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,pM.charInsert))}else a.decorations.push(fM(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,1073741824,pM.charInsertWholeLine))}return a}layout(){return Math.max(5,this.decorationsLeft)}}class bM extends hM{constructor(e,t,n,i,r,o){super(e,t,i.getOption(51),n,r.getOption(51)),this.originalModel=i.getModel(),this.modifiedEditorOptions=r.getOptions(),this.modifiedEditorTabSize=r.getModel().getOptions().tabSize,this.renderIndicators=o}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){let e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,n){let i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}}_produceModifiedFromDiff(e,t,n){let i=[];if(e.charChanges)for(let g=0,m=e.charChanges.length;g<m;g++){let t=e.charChanges[g];_M(t)&&i.push(new Td(new Jt(t.originalStartLineNumber,t.originalStartColumn,t.originalEndLineNumber,t.originalEndColumn),"char-delete",0))}let r=yc(1e4),o=[];const a=this.modifiedEditorOptions.get(117),s=this.modifiedEditorOptions.get(36),l=a.decorationsWidth;let c=this.modifiedEditorOptions.get(51);const u=s.typicalHalfwidthCharacterWidth;let d=0;const h=[];for(let g=e.originalStartLineNumber;g<=e.originalEndLineNumber;g++)if(d=Math.max(d,this._renderOriginalLine(g-e.originalStartLineNumber,this.originalModel,this.modifiedEditorOptions,this.modifiedEditorTabSize,g,i,r)),h.push(this.originalModel.getLineContent(g)),this.renderIndicators){let t=g-e.originalStartLineNumber;o=o.concat([`<div class="delete-sign ${lM.classNames}" style="position:absolute;top:${t*c}px;width:${l}px;height:${c}px;right:0;"></div>`])}d+=this.modifiedEditorOptions.get(85);let f=document.createElement("div");f.className="view-lines line-delete "+ix,f.innerHTML=r.build(),Ep.applyFontInfoSlow(f,s);let p=document.createElement("div");return p.className="inline-deleted-margin-view-zone",p.innerHTML=o.join(""),Ep.applyFontInfoSlow(p,s),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:d*u,domNode:f,marginDomNode:p,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:h}}}_renderOriginalLine(e,t,n,i,r,o,a){const s=t.getLineTokens(r),l=s.getLineContent(),c=n.get(36),u=sd.filter(o,r,1,l.length+1);a.appendASCIIString('<div class="view-line'),0===o.length&&a.appendASCIIString(" char-delete"),a.appendASCIIString('" style="top:'),a.appendASCIIString(String(e*n.get(51))),a.appendASCIIString('px;width:1000000px;">');const d=Ed.isBasicASCII(l,t.mightContainNonBasicASCII()),h=Ed.containsRTL(l,d,t.mightContainRTL()),f=md(new fd(c.isMonospace&&!n.get(24),c.canUseHalfwidthRightwardsArrow,l,!1,d,h,0,s,u,i,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,n.get(95),n.get(80),n.get(74),n.get(37)!==P.OFF,null),a);a.appendASCIIString("</div>");const p=f.characterMapping.getAbsoluteOffsets();return p.length>0?p[p.length-1]:0}}function yM(e){return e.modifiedEndLineNumber>0}function _M(e){return e.originalEndLineNumber>0}function wM(){let e=document.createElement("div");return e.className="diagonal-fill",e}cm((e,t)=>{const n=e.getColor(W_);n&&(t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ${n}; }`),t.addRule(`.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ${n}; }`),t.addRule(`.monaco-editor .inline-added-margin-view-zone { background-color: ${n}; }`));const i=e.getColor(H_);i&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${i}; }`));const r=e.getColor(U_);r&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${r}; }`);const o=e.getColor(q_);o&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${o}; }`);const a=e.getColor(h_);a&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${a}; }`);const s=e.getColor(G_);s&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${s}; }`);const l=e.getColor(f_);l&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${l};\n\t\t\t}\n\t\t`);const c=e.getColor(p_);c&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${c};\n\t\t\t}\n\t\t`);const u=e.getColor(g_);u&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${u};\n\t\t\t}\n\t\t`);const d=e.getColor(K_);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${d} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${d} 50%, ${d} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)});const xM=Wn("themeService"),CM=Wn("keybindingService");var SM=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},kM=function(e,t){return function(n,i){t(n,i,e)}};let OM=0,MM=!1;function DM(){MM||(MM=!0,yp(document.body))}let EM=class extends hO{constructor(e,t,n,i,r,o,a,s,l,c){t=t||{},t.ariaLabel=t.ariaLabel||$f.editorViewAccessibleLabel,t.ariaLabel=t.ariaLabel+";"+$f.accessibilityHelpMessage,super(e,t,{},n,i,r,o,s,l,c),this._standaloneKeybindingService=a instanceof np?a:null,DM()}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let i="DYNAMIC_"+ ++OM,r=Fp.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Ae.None;const t=e.id,n=e.label,i=Fp.and(Fp.equals("editorId",this.getId()),Fp.deserialize(e.precondition)),r=e.keybindings,o=Fp.and(i,Fp.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,s=e.contextMenuOrder||0,l=(t,...n)=>Promise.resolve(e.run(this,...n)),c=new Ie,u=this.getId()+":"+t;if(c.add(Go.registerCommand(u,l)),a){let e={command:{id:u,title:n},when:i,group:a,order:s};c.add(og.appendMenuItem(ig.EditorContext,e))}if(Array.isArray(r))for(const h of r)c.add(this._standaloneKeybindingService.addDynamicKeybinding(u,h,l,o));let d=new mk(u,n,n,i,l,this._contextKeyService);return this._actions[t]=d,c.add(Le(()=>{delete this._actions[t]})),c}};EM=SM([kM(2,Vn),kM(3,Un),kM(4,qo),kM(5,Qp),kM(6,CM),kM(7,em),kM(8,Lf),kM(9,Hk)],EM);let TM=class extends EM{constructor(e,t,n,i,r,o,a,s,l,c,u,d,h){cp(d,t,!1);const f=c.registerEditorContainer(e);t=t||{},"string"===typeof t.theme&&c.setTheme(t.theme);let p,g=t.model;if(delete t.model,super(e,t,i,r,o,a,s,c,u,h),this._contextViewService=l,this._configurationService=d,this._standaloneThemeService=c,this._register(n),this._register(f),"undefined"===typeof g?(p=self.monaco.editor.createModel(t.value||"",t.language||"text/plain"),this._ownsModel=!0):(p=g,this._ownsModel=!1),this._attachModel(p),p){let e={oldModelUrl:null,newModelUrl:p.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){cp(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),super.updateOptions(e)}_attachModel(e){super._attachModel(e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};TM=SM([kM(3,Vn),kM(4,Un),kM(5,qo),kM(6,Qp),kM(7,CM),kM(8,XO),kM(9,xM),kM(10,Lf),kM(11,nf),kM(12,Hk)],TM);let LM=class extends cM{constructor(e,t,n,i,r,o,a,s,l,c,u,d,h,f,p){cp(d,t,!0);const g=c.registerEditorContainer(e);t=t||{},"string"===typeof t.theme&&(t.theme=c.setTheme(t.theme)),super(e,t,p,s,r,i,l,c,u,h,f),this._contextViewService=a,this._configurationService=d,this._standaloneThemeService=c,this._register(n),this._register(g),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(e){cp(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(EM,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};LM=SM([kM(3,Vn),kM(4,Qp),kM(5,CM),kM(6,XO),kM(7,Jl),kM(8,Un),kM(9,xM),kM(10,Lf),kM(11,nf),kM(12,ZO),kM(13,nM),kM(14,eM)],LM);const IM=Wn("modeService");class AM{constructor(e){this._languageIdentifier=e}getId(){return this._languageIdentifier.language}}const NM="text/plain",PM="application/unknown";let RM=[],FM=[],jM=[];function BM(e,t=!1){const n=zM(e);RM.push(n),n.userConfigured?jM.push(n):FM.push(n),t&&!n.userConfigured&&RM.forEach(e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})}function zM(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(St.sep)>=0}}function VM(e,t){let n;if(e)switch(e.scheme){case Yi.file:n=e.fsPath;break;case Yi.data:const t=Io.parseMetaData(e);n=t.get(Io.META_DATA_LABEL);break;default:n=e.path}if(!n)return[PM];n=n.toLowerCase();const i=Et(n),r=$M(n,i,jM);if(r)return[r,NM];const o=$M(n,i,FM);if(o)return[o,NM];if(t){const e=WM(t);if(e)return[e,NM]}return[PM]}function $M(e,t,n){let i=null,r=null,o=null;for(let a=n.length-1;a>=0;a--){const s=n[a];if(t===s.filenameLowercase){i=s;break}if(s.filepattern&&(!r||s.filepattern.length>r.filepattern.length)){const n=s.filepatternOnPath?e:t;es(s.filepatternLowercase,n)&&(r=s)}s.extension&&(!o||s.extension.length>o.extension.length)&&t.endsWith(s.extensionLowercase)&&(o=s)}return i?i.mime:r?r.mime:o?o.mime:null}function WM(e){if(Object(xo["R"])(e)&&(e=e.substr(1)),e.length>0)for(let t=RM.length-1;t>=0;t--){const n=RM[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n.mime}return null}const HM={ModesRegistry:"editor.modesRegistry"};class UM{constructor(){this._onDidChangeLanguages=new ze,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}}const qM=new UM;gh.add(HM.ModesRegistry,qM);const GM="plaintext",KM=new ml(GM,1);qM.registerLanguage({id:GM,extensions:[".txt"],aliases:[r("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Uc.register(KM,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}});const YM=Object.prototype.hasOwnProperty;class XM extends Ae{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=t,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(qM.onDidChangeLanguages(e=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};const e=qM.getLanguages();this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier})}),gh.as(_h.Configuration).registerOverrideIdentifiers(qM.getLanguages().map(e=>e.id)),this._onDidChange.fire()}_getLanguageId(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];const t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t}_registerLanguage(e){const t=e.id;let n;if(YM.call(this._languages,t))n=this._languages[t];else{const e=this._getLanguageId(t);n={identifier:new ml(t,e),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[t]=n}this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i="text/x-"+n,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let e of t.extensions)BM({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let a of t.filenames)BM({id:n,mime:i,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(let a of t.filenamePatterns)BM({id:n,mime:i,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);xo["M"](t)||BM({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(a){ge(a)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const a of r)a&&0!==a.length&&e.aliases.push(a);let o=null!==r&&r.length>0;if(o&&null===r[0]);else{let t=(o?r[0]:null)||n;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration)}isRegisteredMode(e){return!!YM.call(this._mimeTypesMap,e)||YM.call(this._languages,e)}getModeIdForLanguageNameLowercase(e){return YM.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null}extractModeIds(e){return e?e.split(",").map(e=>e.trim()).map(e=>YM.call(this._mimeTypesMap,e)?this._mimeTypesMap[e].language:e).filter(e=>YM.call(this._languages,e)):[]}getLanguageIdentifier(e){if(e===Kl||0===e)return Yl;let t;if("string"===typeof e)t=e;else if(t=this._languageIdToLanguage[e],!t)return null;return YM.call(this._languages,t)?this._languages[t].identifier:null}getModeIdsFromFilepathOrFirstLine(e,t){if(!e&&!t)return[];let n=VM(e,t);return this.extractModeIds(n.join(","))}}class ZM extends Ae{constructor(e,t){super(),this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._selector=t,this.languageIdentifier=this._selector(),this._register(e(()=>this._evaluate()))}_evaluate(){let e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))}}class QM{constructor(e=!1){this._onDidCreateMode=new ze,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new ze,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new XM(!0,e),this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire())}isRegisteredMode(e){return this._registry.isRegisteredMode(e)}getModeIdForLanguageName(e){return this._registry.getModeIdForLanguageNameLowercase(e)}getModeIdByFilepathOrFirstLine(e,t){const n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return qi(n,null)}getModeId(e){const t=this._registry.extractModeIds(e);return qi(t,null)}getLanguageIdentifier(e){return this._registry.getLanguageIdentifier(e)}create(e){return new ZM(this.onLanguagesMaybeChanged,()=>{const t=this.getModeId(e);return this._createModeAndGetLanguageIdentifier(t)})}createByFilepathOrFirstLine(e,t){return new ZM(this.onLanguagesMaybeChanged,()=>{const n=this.getModeIdByFilepathOrFirstLine(e,t);return this._createModeAndGetLanguageIdentifier(n)})}_createModeAndGetLanguageIdentifier(e){const t=this.getLanguageIdentifier(e||"plaintext")||Yl;return this._getOrCreateMode(t.language),t}triggerMode(e){const t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")}_getOrCreateMode(e){if(!this._instantiatedModes.hasOwnProperty(e)){let t=this.getLanguageIdentifier(e)||Yl;this._instantiatedModes[e]=new AM(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]}}const JM=Wn("undoRedoService");class eD{constructor(e,t){this.resource=e,this.elements=t}}class tD{constructor(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new rD}getMetadata(e,t,n){const i=this._hashTable.get(e,t,n.id);let r;if(i)r=i.metadata,this._logService.getLevel()===ju.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${vl.getForeground(r)}, fontStyle ${vl.getFontStyle(r).toString(2)}`);else{let i=this._legend.tokenTypes[e];const o=[];if(i){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&o.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===ju.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),o.push("not-in-legend"));const a=this._themeService.getColorTheme().getTokenStyleMetadata(i,o,n.language);if("undefined"===typeof a)r=2147483647;else{if(r=0,"undefined"!==typeof a.italic){const e=(a.italic?1:0)<<11;r|=1|e}if("undefined"!==typeof a.bold){const e=(a.bold?2:0)<<11;r|=2|e}if("undefined"!==typeof a.underline){const e=(a.underline?4:0)<<11;r|=4|e}if(a.foreground){const e=a.foreground<<14;r|=8|e}0===r&&(r=2147483647)}}else this._logService.getLevel()===ju.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),r=2147483647,i="not-in-legend";this._hashTable.add(e,t,n.id,r),this._logService.getLevel()===ju.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${i}) / ${t} (${o.join(" ")}): foreground ${vl.getForeground(r)}, fontStyle ${vl.getFontStyle(r).toString(2)}`)}return r}}function nD(e,t,n){const i=e.data,r=e.data.length/5|0,o=Math.max(Math.ceil(r/1024),400),a=[];let s=0,l=1,c=0;while(s<r){const e=s;let u=Math.min(e+o,r);if(u<r){let t=u;while(t-1>e&&0===i[5*t])t--;if(t-1===e){let e=u;while(e+1<r&&0===i[5*e])e++;u=e}else u=t}let d=new Uint32Array(4*(u-e)),h=0,f=0;while(s<u){const e=5*s,r=i[e],o=i[e+1],a=l+r,u=0===r?c+o:o,p=i[e+2],g=i[e+3],m=i[e+4],v=t.getMetadata(g,m,n);2147483647!==v&&(0===f&&(f=a),d[h]=a-f,d[h+1]=u,d[h+2]=u+p,d[h+3]=v,h+=4),l=a,c=u,s++}h!==d.length&&(d=d.subarray(0,h));const p=new ab(f,new rb(d));a.push(p)}return a}class iD{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class rD{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=rD._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<rD._SIZES.length?2/3*this._currentLength:0),this._elements=[],rD._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];while(r){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=rD._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<rD._SIZES.length?2/3*this._currentLength:0),this._elements=[],rD._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;while(e){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new iD(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}rD._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143];var oD=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},aD=function(e,t){return function(n,i){t(n,i,e)}};function sD(e){return e.toString()}function lD(e){const t=new Jc,n=e.createSnapshot();let i;while(i=n.read())t.update(i);return t.digest()}class cD{constructor(e,t,n){this._modelEventListeners=new Ie,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>n(e,t)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageIdentifier)),this.model.setMode(e.languageIdentifier)}}const uD=o["d"]||o["f"]?1:2;let dD=class e extends Ae{constructor(e,t,n,i,r){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=n,this._logService=i,this._undoRedoService=r,this._onModelAdded=this._register(new ze),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new ze),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new ze),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new gD(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new pD(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(e,t){let n=ce.tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i=n;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let r=ce.insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let o=uD;const a=e.eol;"\r\n"===a?o=2:"\n"===a&&(o=1);let s=ce.trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(s="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let l=ce.detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let c=ce.largeFileOptimizations;return e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:l,defaultEOL:o,trimAutoWhitespace:s,largeFileOptimizations:c}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"auto"!==n?n:3===o["a"]||2===o["a"]?"\n":"\r\n"}getCreationOptions(t,n,i){let r=this._modelCreationOptionsByLanguageAndResource[t+n];if(!r){const o=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:n}),a=this._getEOL(n,t);r=e._readModelOptions({editor:o,eol:a},i),this._modelCreationOptionsByLanguageAndResource[t+n]=r}return r}_updateModelOptions(){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],o=this._models[r],a=o.model.getLanguageIdentifier().language,s=o.model.uri,l=t[a+s],c=this.getCreationOptions(a,s,o.model.isForSimpleWidget);e._setModelOptionsForModel(o.model,c,l)}}static _setModelOptionsForModel(e,t,n){n&&n.defaultEOL!==t.defaultEOL&&1===e.getLineCount()&&e.setEOL(1===t.defaultEOL?0:1),n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.indentSize===t.indentSize&&n.trimAutoWhitespace===t.trimAutoWhitespace||(t.detectIndentation?(e.detectIndentation(t.insertSpaces,t.tabSize),e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})):e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,indentSize:t.indentSize,trimAutoWhitespace:t.trimAutoWhitespace}))}_removeDisposedModel(e){const t=this._disposedModels.get(sD(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(sD(e)),t}_createModelData(e,t,n,i){const r=this.getCreationOptions(t.language,n,i),o=new zb(e,r,t,n,this._undoRedoService);if(n&&this._disposedModels.has(sD(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=lD(o)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)Lm(e)&&e.matchesResource(n)&&e.setModel(o);for(const e of t.future)Lm(e)&&e.matchesResource(n)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(n,!0,e=>Lm(e)&&e.matchesResource(n)),i&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const a=sD(o.uri);if(this._models[a])throw new Error("ModelService: Cannot add model because it already exists!");const s=new cD(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[a]=s,s}createModel(e,t,n,i=!1){let r;return t?(r=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(r.model,t)):r=this._createModelData(e,KM,n,i),this._onModelAdded.fire(r.model),r.model}setMode(e,t){if(!t)return;const n=this._models[sD(e.uri)];n&&n.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=sD(e),n=this._models[t];return n?n.model:null}getSemanticTokensProviderStyling(e){return this._semanticStyling.get(e)}_onWillDispose(e){const t=sD(e.uri),n=this._models[t];delete this._models[t],n.dispose(),delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri],this._onModelRemoved.fire(e)}_onDidChangeLanguage(t,n){const i=n.oldLanguage,r=t.getLanguageIdentifier().language,o=this.getCreationOptions(i,t.uri,t.isForSimpleWidget),a=this.getCreationOptions(r,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,a,o),this._onModelModeChanged.fire({model:t,oldModeId:i})}};dD=oD([aD(0,nf),aD(1,Ru),aD(2,em),aD(3,Fu),aD(4,JM)],dD);const hD="editor.semanticHighlighting";function fD(e,t,n){var i;const r=null===(i=n.getValue(hD,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri}))||void 0===i?void 0:i.enabled;return"boolean"===typeof r?r:t.getColorTheme().semanticHighlighting}class pD extends Ae{constructor(e,t,n,i){super(),this._watchers=Object.create(null),this._semanticStyling=i;const r=e=>{this._watchers[e.uri.toString()]=new vD(e,t,this._semanticStyling)},o=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},a=()=>{for(let i of e.getModels()){const e=this._watchers[i.uri.toString()];fD(i,t,n)?e||r(i):e&&o(i,e)}};this._register(e.onModelAdded(e=>{fD(e,t,n)&&r(e)})),this._register(e.onModelRemoved(e=>{const t=this._watchers[e.uri.toString()];t&&o(e,t)})),this._register(n.onDidChangeConfiguration(e=>{e.affectsConfiguration(hD)&&a()})),this._register(t.onDidColorThemeChange(a))}}class gD extends Ae{constructor(e,t){super(),this._themeService=e,this._logService=t,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new tD(e.getLegend(),this._themeService,this._logService)),this._caches.get(e)}}class mD{constructor(e,t,n){this._provider=e,this.resultId=t,this.data=n}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class vD extends Ae{constructor(e,t,n){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=n,this._fetchDocumentSemanticTokens=this._register(new Ti(()=>this._fetchDocumentSemanticTokensNow(),300)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}));const i=()=>{Ee(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of Wl.all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};i(),this._register(Wl.onDidChange(()=>{i(),this._fetchDocumentSemanticTokens.schedule()})),this._register(t.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;const e=this._getSemanticColoringProvider();if(!e)return;this._currentDocumentRequestCancellationTokenSource=new Ge;const t=[],n=this._model.onDidChangeContent(e=>{t.push(e)}),i=this._semanticStyling.get(e),r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,o=Promise.resolve(e.provideDocumentSemanticTokens(this._model,r,this._currentDocumentRequestCancellationTokenSource.token));o.then(r=>{this._currentDocumentRequestCancellationTokenSource=null,n.dispose(),this._setDocumentSemanticTokens(e,r||null,i,t)},e=>{e&&"string"===typeof e.message&&-1!==e.message.indexOf("busy")||ge(e),this._currentDocumentRequestCancellationTokenSource=null,n.dispose(),t.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _isSemanticTokens(e){return e&&!!e.data}static _isSemanticTokensEdits(e){return e&&Array.isArray(e.edits)}static _copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}_setDocumentSemanticTokens(e,t,n,i){const r=this._currentDocumentResponse;if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&n)if(t){if(vD._isSemanticTokensEdits(t)){if(!r)return void this._model.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const r of t.edits)e+=(r.data?r.data.length:0)-r.deleteCount;const n=r.data,i=new Uint32Array(n.length+e);let o=n.length,a=i.length;for(let r=t.edits.length-1;r>=0;r--){const e=t.edits[r],s=o-(e.start+e.deleteCount);s>0&&(vD._copy(n,o-s,i,a-s,s),a-=s),e.data&&(vD._copy(e.data,0,i,a-e.data.length,e.data.length),a-=e.data.length),o=e.start}o>0&&vD._copy(n,0,i,0,o),t={resultId:t.resultId,data:i}}}if(vD._isSemanticTokens(t)){this._currentDocumentResponse=new mD(e,t.resultId,t.data);const r=nD(t,n,this._model.getLanguageIdentifier());if(i.length>0){for(const e of i)for(const t of r)for(const n of e.changes)t.applyEdit(n.range,n.text);this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()}this._model.setSemanticTokens(r,!0)}else this._model.setSemanticTokens(null,!0)}else this._model.setSemanticTokens(null,!0);else this._model.setSemanticTokens(null,!1)}_getSemanticColoringProvider(){const e=Wl.ordered(this._model);return e.length>0?e[0]:null}}class bD extends Ae{constructor(){super(),this._onCodeEditorAdd=this._register(new ze),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new ze),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new ze),this._onDiffEditorRemove=this._register(new ze),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const n of t){if(n.hasTextFocus())return n;n.hasWidgetFocus()&&(e=n)}return e}setModelProperty(e,t,n){const i=e.toString();let r;this._modelProperties.has(i)?r=this._modelProperties.get(i):(r=new Map,this._modelProperties.set(i,r)),r.set(t,n)}getModelProperty(e,t){const n=e.toString();if(this._modelProperties.has(n)){const e=this._modelProperties.get(n);return e.get(t)}}}var yD=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},_D=function(e,t){return function(n,i){t(n,i,e)}};class wD{constructor(e,t,n){this._parent=e,this._editorId=t,this._styleSheet=n,this._refCount=0}ref(){this._refCount++}unref(){var e;this._refCount--,0===this._refCount&&(null===(e=this._styleSheet.parentNode)||void 0===e||e.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(e,t){const n=this._styleSheet.sheet;n.insertRule(e,t)}removeRulesContainingSelector(e){Kr(e,this._styleSheet)}}class xD{constructor(e){this._styleSheet=e}ref(){}unref(){}insertRule(e,t){const n=this._styleSheet.sheet;n.insertRule(e,t)}removeRulesContainingSelector(e){Kr(e,this._styleSheet)}}let CD=class extends bD{constructor(e,t=null){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=t||null,this._themeService=e}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new xD(Wr())),this._globalStyleSheet}_getOrCreateStyleSheet(e){if(!e)return this._getOrCreateGlobalStyleSheet();const t=e.getContainerDomNode();if(!zr(t))return this._getOrCreateGlobalStyleSheet();const n=e.getId();if(!this._editorStyleSheets.has(n)){const e=new wD(this,n,Wr(t));this._editorStyleSheets.set(n,e)}return this._editorStyleSheets.get(n)}_removeEditorStyleSheets(e){this._editorStyleSheets.delete(e)}registerDecorationType(e,t,n,i){let r=this._decorationOptionProviders.get(e);if(!r){const o=this._getOrCreateStyleSheet(i),a={styleSheet:o,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new SD(this._themeService,o,a):new kD(this._themeService,o,a),this._decorationOptionProviders.set(e,r)}r.refCount++}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorations(e))))}resolveDecorationOptions(e,t){const n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)}};CD=yD([_D(0,em)],CD);class SD{constructor(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new MD(3,n,e),this._afterContentRules=new MD(4,n,e)}getOptions(e,t){const n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class kD{constructor(e,t,n){this._disposables=new Ie,this._styleSheet=t,this._styleSheet.ref(),this.refCount=0;const i=t=>{const i=new MD(t,n,e);if(this._disposables.add(i),i.hasContent)return i.className},r=t=>{const i=new MD(t,n,e);return this._disposables.add(i),i.hasContent?{className:i.className,hasLetterSpacing:i.hasLetterSpacing}:null};this.className=i(0);const o=r(1);o&&(this.inlineClassName=o.className,this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing),this.beforeContentClassName=i(3),this.afterContentClassName=i(4),this.glyphMarginClassName=i(2);const a=n.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;const s=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,l=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;"undefined"===typeof s&&"undefined"===typeof l||(this.overviewRuler={color:s||l,darkColor:l||s,position:a.overviewRulerLane||wa.Center})}getOptions(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const OD={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"};class MD{constructor(e,t,n){this._theme=n.getColorTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let i=DD.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+DD.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=DD.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onDidColorThemeChange(e=>{this._theme=n.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){const e=this._providerArgs.options;let t,n,i;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),n=this.getCSSTextForModelDecorationClassName(e.light),i=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),n=this.getCSSTextForModelDecorationInlineClassName(e.light),i=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}const r=this._providerArgs.styleSheet;let o=!1;t.length>0&&(r.insertRule(`${this._unThemedSelector} {${t}}`,0),o=!0),n.length>0&&(r.insertRule(`.vs${this._unThemedSelector} {${n}}`,0),o=!0),i.length>0&&(r.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${i}}`,0),o=!0),this._hasContent=o}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")}getCSSTextForModelDecorationInlineClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")}getCSSTextForModelDecorationContentClassName(e){if(!e)return"";const t=[];if("undefined"!==typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!==typeof e.contentIconPath&&t.push(xo["v"](OD.contentIconPath,bo(Vt.revive(e.contentIconPath)))),"string"===typeof e.contentText){const n=e.contentText.match(/^.*$/m)[0],i=n.replace(/['\\]/g,"\\$&");t.push(xo["v"](OD.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")}getCSSTextForModelDecorationGlyphMarginClassName(e){if(!e)return"";const t=[];return"undefined"!==typeof e.gutterIconPath&&(t.push(xo["v"](OD.gutterIconPath,bo(Vt.revive(e.gutterIconPath)))),"undefined"!==typeof e.gutterIconSize&&t.push(xo["v"](OD.gutterIconSize,e.gutterIconSize))),t.join("")}collectBorderSettingsCSSText(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(xo["v"]("box-sizing: border-box;")),!0)}collectCSSText(e,t,n){const i=n.length;for(let r of t){const t=this.resolveValue(e[r]);"string"===typeof t&&n.push(xo["v"](OD[r],t))}return n.length!==i}resolveValue(e){if(ya(e)){this._usesThemeColors=!0;const t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e}}class DD{static getClassName(e,t){return"ced-"+e+"-"+t}static getSelector(e,t,n){let i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i}}class ED extends CD{getActiveCodeEditor(){return null}openCodeEditor(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){const n=this.findModel(e,t.resource);if(!n){if(t.resource){const n=t.resource.scheme;if(n===Yi.http||n===Yi.https)return go(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n}}class TD{constructor(e,t,n,i,r){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=r}}function LD(e){if(!e||!Array.isArray(e))return[];let t=[],n=0;for(let i=0,r=e.length;i<r;i++){let r=e[i],o=-1;if("string"===typeof r.fontStyle){o=0;let e=r.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++){let n=e[t];switch(n){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break}}}let a=null;"string"===typeof r.foreground&&(a=r.foreground);let s=null;"string"===typeof r.background&&(s=r.background),t[n++]=new TD(r.token||"",i,o,a,s)}return t}function ID(e,t){e.sort((e,t)=>{let n=jD(e.token,t.token);return 0!==n?n:e.index-t.index});let n=0,i="000000",r="ffffff";while(e.length>=1&&""===e[0].token){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let o=new ND;for(let u of t)o.getId(u);let a=o.getId(i),s=o.getId(r),l=new BD(n,a,s),c=new zD(l);for(let u=0,d=e.length;u<d;u++){let t=e[u];c.insert(t.token,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new PD(o,c)}const AD=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class ND{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(AD);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Eb.fromHex("#"+e),n)}getColorMap(){return this._id2color.slice(0)}}class PD{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(LD(e),t)}static createFromParsedTokenTheme(e,t){return ID(e,t)}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let n=this._cache.get(t);if("undefined"===typeof n){let e=this._match(t),i=FD(t);n=(e.metadata|i<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0}}const RD=/\b(comment|string|regex|regexp)\b/;function FD(e){let t=e.match(RD);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function jD(e,t){return e<t?-1:e>t?1:0}class BD{constructor(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new BD(this._fontStyle,this._foreground,this._background)}acceptOverwrite(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}}class zD{constructor(e){this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;let t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));let r=this._children.get(t);return"undefined"!==typeof r?r.match(n):this._mainRule}insert(e,t,n,i){if(""===e)return void this._mainRule.acceptOverwrite(t,n,i);let r,o,a=e.indexOf(".");-1===a?(r=e,o=""):(r=e.substring(0,a),o=e.substring(a+1));let s=this._children.get(r);"undefined"===typeof s&&(s=new zD(this._mainRule.clone()),this._children.set(r,s)),s.insert(o,t,n,i)}}function VD(e){let t=[];for(let n=1,i=e.length;n<i;n++){let i=e[n];t[n]=`.mtk${n} { color: ${i}; }`}return t.push(".mtki { font-style: italic; }"),t.push(".mtkb { font-weight: bold; }"),t.push(".mtku { text-decoration: underline; text-underline-position: under; }"),t.join("\n")}const $D={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[k_]:"#FFFFFE",[O_]:"#000000",[F_]:"#E5EBF1",[zw]:"#D3D3D3",[Vw]:"#939393",[j_]:"#ADD6FF4D"}},WD={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[k_]:"#1E1E1E",[O_]:"#D4D4D4",[F_]:"#3A3D41",[zw]:"#404040",[Vw]:"#707070",[j_]:"#ADD6FF26"}},HD={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:{[k_]:"#000000",[O_]:"#FFFFFF",[zw]:"#FFFFFF",[Vw]:"#FFFFFF"}};n("c3b4"),n("8ece"),n("1613");const UD=new class{constructor(){this.onDidChange=cl.onDidRegister}getCSS(){const e=[];for(let t of cl.all)e.push(qD(t));return e.join("\n")}};function qD(e){let t=e.definition;while(t instanceof dl)t=t.definition;return`.codicon-${e.id}:before { content: '${t.character}'; }`}const GD="vs",KD="vs-dark",YD="hc-black",XD=gh.as(jy.ColorContribution),ZD=gh.as(am.ThemingContribution);class QD{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,Eb.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=eE(this.themeData.base);for(let n in t.colors)e.has(n)||e.set(n,Eb.fromHex(t.colors[n]))}this.colors=e}return this.colors}getColor(e,t){const n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=XD.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case GD:return"light";case YD:return"hc";default:return"dark"}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let n=eE(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=PD.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,n){const i=this.tokenTheme._match([e].concat(t).join(".")),r=i.metadata,o=vl.getForeground(r),a=vl.getFontStyle(r);return{foreground:o,italic:Boolean(1&a),bold:Boolean(2&a),underline:Boolean(4&a)}}}function JD(e){return e===GD||e===KD||e===YD}function eE(e){switch(e){case GD:return $D;case KD:return WD;case YD:return HD}}function tE(e){let t=eE(e);return new QD(e,t)}class nE extends Ae{constructor(){super(),this._onColorThemeChange=this._register(new ze),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._knownThemes=new Map,this._knownThemes.set(GD,tE(GD)),this._knownThemes.set(KD,tE(KD)),this._knownThemes.set(YD,tE(YD)),this._codiconCSS=UD.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this.setTheme(GD),UD.onDidChange(()=>{this._codiconCSS=UD.getCSS(),this._updateCSS()})}registerEditorContainer(e){return zr(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=Wr(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._allCSS,this._styleElements.push(this._globalStyleElement)),Ae.None}_registerShadowDomContainer(e){const t=Wr(e);return t.className="monaco-colors",t.innerHTML=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!JD(t.base)&&!JD(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new QD(e,t)),JD(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme&&this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setTheme(e){let t;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(GD),this._theme===t)return t.id;this._theme=t;let n=[],i={},r={addRule:e=>{i[e]||(n.push(e),i[e]=!0)}};ZD.getThemingParticipants().forEach(e=>e(t,r,this._environment));let o=t.tokenTheme,a=o.getColorMap();return r.addRule(VD(a)),this._themeCSS=n.join("\n"),this._updateCSS(),Ul.setColorMap(a),this._onColorThemeChange.fire(t),t.id}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach(e=>e.innerHTML=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var iE=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},rE=function(e,t){return function(n,i){t(n,i,e)}};const oE="data-keybinding-context";class aE{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class sE extends aE{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}sE.INSTANCE=new sE;class lE extends aE{constructor(e,t,n){super(e,null),this._configurationService=t,this._values=new Map,this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(6===e.source){const e=Array.from(this._values.keys());this._values.clear(),n.fire(new dE(e))}else{const t=[];for(const n of e.affectedKeys){const e="config."+n;this._values.has(e)&&(this._values.delete(e),t.push(e))}n.fire(new dE(t))}})}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(lE._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(lE._keyPrefix.length),n=this._configurationService.getValue(t);let i=void 0;switch(typeof n){case"number":case"boolean":case"string":i=n;break;default:Array.isArray(n)&&(i=JSON.stringify(n))}return this._values.set(e,i),i}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}lE._keyPrefix="config.";class cE{constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class uE{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class dE{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class hE{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class fE{constructor(e){this._onDidChangeContext=new Ve({merge:e=>new hE(e)}),this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new cE(this,e,t)}get onDidChangeContext(){return this._onDidChangeContext.event}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new gE(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId),n=mf.contextMatchesRules(t,e);return n}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new uE(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new uE(e))}getContext(e){return this._isDisposed?sE.INSTANCE:this.getContextValuesContainer(mE(e))}}let pE=class extends fE{constructor(e){super(0),this._contexts=new Map,this._toDispose=new Ie,this._lastContextId=0;const t=new lE(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?sE.INSTANCE:this._contexts.get(e)||sE.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new aE(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};pE=iE([rE(0,nf)],pE);class gE extends fE{constructor(e,t){super(e.createChildContext()),this._parent=e,t&&(this._domNode=t,this._domNode.setAttribute(oE,String(this._myContextId)))}dispose(){this._isDisposed=!0,this._parent.disposeContext(this._myContextId),this._domNode&&(this._domNode.removeAttribute(oE),this._domNode=void 0)}get onDidChangeContext(){return Fe.any(this._parent.onDidChangeContext,this._onDidChangeContext.event)}getContextValuesContainer(e){return this._isDisposed?sE.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function mE(e){while(e){if(e.hasAttribute(oE)){const t=e.getAttribute(oE);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}var vE;function bE(e,t,n){const i=n.offset+n.size;return 0===n.position?t<=e-i?i:t<=n.offset?n.offset-t:Math.max(e-t,0):t<=n.offset?n.offset-t:t<=e-i?i:0}Go.registerCommand(Jp,(function(e,t,n){e.get(Qp).createKey(String(t),n)})),n("1a7b"),n("f743"),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}function i(e,i){return!n(t(e,i))}function r(e,t){const i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}e.intersect=t,e.isEmpty=n,e.intersects=i,e.relativeComplement=r}(vE||(vE={}));class yE extends Ae{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=Ae.None,this.toDisposeOnSetContainer=Ae.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=so(".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,co(this.view),this.setContainer(e,t),this._register(Le(()=>this.setContainer(null,1)))}setContainer(e,t){if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,er(this.shadowRootHostElement),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM?(this.shadowRootHostElement=so(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=`\n\t\t\t\t\t<style>\n\t\t\t\t\t\t${_E}\n\t\t\t\t\t</style>\n\t\t\t\t`,this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(so("slot"))):this.container.appendChild(this.view);const n=new Ie;yE.BUBBLE_UP_EVENTS.forEach(e=>{n.add(fr(this.container,e,e=>{this.onDOMEvent(e,!1)}))}),yE.BUBBLE_DOWN_EVENTS.forEach(e=>{n.add(fr(this.container,e,e=>{this.onDOMEvent(e,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),Ji(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",lo(this.view),this.toDisposeOnClean=e.render(this.view)||Ae.None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||o["c"]&&Qi.pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let e,t=this.delegate.getAnchor();if(Yr(t)){let n=Tr(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||1,height:t.height||2};const n=Ir(this.view),i=Pr(this.view),r=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,a={offset:e.top-window.pageYOffset,size:e.height,position:0===r?0:1};let s;s=0===o?{offset:e.left,size:0,position:0}:{offset:e.left+e.width,size:0,position:1};const l=bE(window.innerHeight,i,a)+window.pageYOffset;vE.intersects({start:l,end:l+i},{start:a.offset,end:a.offset+a.size})&&(s.size=e.width,1===o&&(s.offset=e.left));const c=bE(window.innerWidth,n,s);sr(this.view,"top","bottom","left","right"),rr(this.view,0===r?"bottom":"top"),rr(this.view,0===o?"left":"right"),lr(this.view,"fixed",this.useFixedPosition);const u=Tr(this.container);this.view.style.top=l-(this.useFixedPosition?Tr(this.view).top:u.top)+"px",this.view.style.left=c-(this.useFixedPosition?Tr(this.view).left:u.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),co(this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!Rr(e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}yE.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],yE.BUBBLE_DOWN_EVENTS=["click"];let _E='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';const wE=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,xE=/(&amp;)?(&amp;)([^\s&])/g,CE=ul("menu-selection",dl.check),SE=ul("menu-submenu",dl.chevronRight);var kE;(function(e){e[e["Right"]=0]="Right",e[e["Left"]=1]="Left"})(kE||(kE={}));class OE extends BO{constructor(e,t,n={}){rr(e,"monaco-menu-container"),e.setAttribute("role","presentation");const i=document.createElement("div");rr(i,"monaco-menu"),i.setAttribute("role","presentation"),super(i,{orientation:2,actionViewItemProvider:e=>this.doGetActionViewItem(e,n,r),context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,triggerKeys:{keys:[3,...o["f"]||o["d"]?[10]:[]],keyDown:!0}}),this.menuElement=i,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new Ie),this.initializeStyleSheet(e),ur(i,Xr.KEY_DOWN,e=>{const t=new gi(e);t.equals(2)&&e.preventDefault()}),n.enableMnemonics&&this.menuDisposables.add(ur(i,Xr.KEY_DOWN,e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){Zr.stop(e,!0);const n=this.mnemonics.get(t);if(1===n.length&&(n[0]instanceof DE&&n[0].container&&this.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){const e=n.shift();e&&e.container&&(this.focusItemByElement(e.container),n.push(e)),this.mnemonics.set(t,n)}}})),o["d"]&&this._register(ur(i,Xr.KEY_DOWN,e=>{const t=new gi(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),Zr.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),Zr.stop(e,!0))})),this._register(ur(this.domNode,Xr.MOUSE_OUT,e=>{let t=e.relatedTarget;Rr(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register(ur(this.actionsList,Xr.MOUSE_OVER,e=>{let t=e.target;if(t&&Rr(t,this.actionsList)&&t!==this.actionsList){while(t.parentElement!==this.actionsList&&null!==t.parentElement)t=t.parentElement;if(ir(t,"action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new NC(i,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const a=this.scrollableElement.getDomNode();a.style.position="",this._register(ur(a,Xr.MOUSE_UP,e=>{e.preventDefault()})),i.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)+"px",t=t.filter(e=>{var t;return!(null===(t=n.submenuIds)||void 0===t?void 0:t.has(e.id))||(console.warn("Found submenu cycle: "+e.id),!1)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof EE)).forEach((e,t,n)=>{e.updatePositionInSet(t+1,n.length)})}initializeStyleSheet(e){zr(e)?(this.styleSheet=Wr(e),this.styleSheet.innerHTML=LE):(OE.globalStyleSheet||(OE.globalStyleSheet=Wr(),OE.globalStyleSheet.innerHTML=LE),this.styleSheet=OE.globalStyleSheet)}style(e){const t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",r=e.borderColor?"1px solid "+e.borderColor:"",o=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=r,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof ME||t instanceof EE)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){let n=this.actionsList.children[t];if(e===n){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,n){if(e instanceof Ap)return new EE(t.context,e,{icon:!0});if(e instanceof Np){const i=new DE(e,e.actions,n,Object.assign(Object.assign({},t),{submenuIds:new Set([...t.submenuIds||[],e.id])}));if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}{const n={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const i=t.getKeyBinding(e);if(i){const e=i.getLabel();e&&(n.keybinding=e)}}const i=new ME(t.context,e,n);if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}}}class ME extends FO{constructor(e,t,n={}){if(n.isMenu=!0,super(t,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass="",this.options.label&&n.enableMnemonics){let e=this.getAction().label;if(e){let t=wE.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new Ti(()=>{this.element&&(this._register(ur(this.element,Xr.MOUSE_UP,e=>{if(Zr.stop(e,!0),ei){const t=new wi(e);if(t.rightButton)return;this.onClick(e)}setTimeout(()=>{this.onClick(e)},0)})),this._register(ur(this.element,Xr.CONTEXT_MENU,e=>{Zr.stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=no(this.element,so("a.action-menu-item")),this._action.id===Ap.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=no(this.item,so("span.menu-item-check"+CE.cssSelector)),this.check.setAttribute("role","none"),this.label=no(this.item,so("span.action-label")),this.options.label&&this.options.keybinding&&(no(this.item,so("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))}updateLabel(){if(this.label&&this.options.label){Ji(this.label);let e=gl(this.getAction().label);if(e){const t=TE(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const n=wE.exec(e);if(n){e=xo["s"](e),xE.lastIndex=0;let t=xE.exec(e);while(t&&t[1])t=xE.exec(e);const i=e=>e.replace(/&amp;&amp;/g,"&amp;");t?this.label.append(xo["I"](i(e.substr(0,t.index))," "),so("u",{"aria-hidden":"true"},t[3]),xo["N"](i(e.substr(t.index+t[0].length))," ")):this.label.innerText=i(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&sr(this.item,this.cssClass),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",rr(this.label,"icon"),this.cssClass&&or(this.label,this.cssClass),this.updateEnabled()):this.label&&ar(this.label,"icon")}updateEnabled(){this.getAction().enabled?(this.element&&ar(this.element,"disabled"),this.item&&(ar(this.item,"disabled"),this.item.tabIndex=0)):(this.element&&rr(this.element,"disabled"),this.item&&(rr(this.item,"disabled"),ho(this.item)))}updateChecked(){this.item&&(this.getAction().checked?(rr(this.item,"checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(ar(this.item,"checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&ir(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=e&&this.menuStyle.selectionBorderColor?"thin solid "+this.menuStyle.selectionBorderColor:"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=n?n.toString():""),this.check&&(this.check.style.color=t?t.toString():""),this.container&&(this.container.style.border=i)}style(e){this.menuStyle=e,this.applyStyle()}}class DE extends ME{constructor(e,t,n,i){super(e,e,i),this.submenuActions=t,this.parentData=n,this.submenuOptions=i,this.mysubmenu=null,this.submenuDisposables=this._register(new Ie),this.mouseOver=!1,this.expandDirection=i&&void 0!==i.expandDirection?i.expandDirection:kE.Right,this.showScheduler=new Ti(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Ti(()=>{this.element&&!Rr($r(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(rr(this.item,"monaco-submenu-item"),this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=no(this.item,so("span.submenu-indicator"+SE.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(ur(this.element,Xr.KEY_UP,e=>{let t=new gi(e);(t.equals(17)||t.equals(3))&&(Zr.stop(e,!0),this.createSubmenu(!0))})),this._register(ur(this.element,Xr.KEY_DOWN,e=>{let t=new gi(e);$r()===this.item&&(t.equals(17)||t.equals(3))&&Zr.stop(e,!0)})),this._register(ur(this.element,Xr.MOUSE_OVER,e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(ur(this.element,Xr.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register(ur(this.element,Xr.FOCUS_OUT,e=>{this.element&&!Rr($r(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}onClick(e){Zr.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,n,i){const r={top:0,left:0};return r.left=bE(e.width,t.width,{position:i===kE.Right?0:1,offset:n.left,size:n.width}),r.left>=n.left&&r.left<n.left+n.width&&(n.left+10+t.width<=e.width&&(r.left=n.left+10),n.top+=10,n.height=0),r.top=bE(e.height,t.height,{position:0,offset:n.top,size:0}),r.top+t.height===n.top&&r.top+n.height+t.height<=e.height&&(r.top+=n.height),r}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=no(this.element,so("div.monaco-submenu")),or(this.submenuContainer,"menubar-menu-items-holder","context-view");const t=getComputedStyle(this.parentData.parent.domNode),n=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new OE(this.submenuContainer,this.submenuActions,this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);const i=this.element.getBoundingClientRect(),r={top:i.top-n,left:i.left,height:i.height+2*n,width:i.width},o=this.submenuContainer.getBoundingClientRect(),{top:a,left:s}=this.calculateSubmenuMenuLayout({height:window.innerHeight,width:window.innerWidth},o,r,this.expandDirection);this.submenuContainer.style.left=s+"px",this.submenuContainer.style.top=a+"px",this.submenuDisposables.add(ur(this.submenuContainer,Xr.KEY_UP,e=>{let t=new gi(e);t.equals(15)&&(Zr.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(ur(this.submenuContainer,Xr.KEY_DOWN,e=>{let t=new gi(e);t.equals(15)&&Zr.stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const e=this.element&&ir(this.element,"focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?""+t:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class EE extends jO{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")}}function TE(e){const t=wE,n=t.exec(e);if(!n)return e;const i=!n[1];return e.replace(t,i?"$2$3":"").trim()}let LE=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${qD(CE)}\n${qD(SE)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;function IE(e,t){const n=Object.create(null);for(let i in t){const r=t[i];r&&(n[i]=Mw(r,e))}return n}function AE(e,t,n){function i(i){const r=IE(e.getColorTheme(),t);"function"===typeof n?n(r):n.style(r)}return i(e.getColorTheme()),e.onDidColorThemeChange(i)}function NE(e,t,n){return AE(t,Object.assign(Object.assign({},PE),n||{}),e)}const PE={listFocusBackground:Y_,listFocusForeground:X_,listActiveSelectionBackground:Cw(Z_,.1),listActiveSelectionForeground:Q_,listFocusAndSelectionBackground:Z_,listFocusAndSelectionForeground:Q_,listInactiveSelectionBackground:J_,listInactiveSelectionForeground:ew,listInactiveFocusBackground:tw,listHoverBackground:nw,listHoverForeground:iw,listDropBackground:rw,listFocusOutline:Uy,listSelectionOutline:Uy,listHoverOutline:Uy,listFilterWidgetBackground:ow,listFilterWidgetOutline:aw,listFilterWidgetNoMatchesOutline:sw,listMatchesShadow:qy,treeIndentGuidesStroke:lw},RE={shadowColor:qy,borderColor:cw,foregroundColor:uw,backgroundColor:dw,selectionForegroundColor:hw,selectionBackgroundColor:fw,selectionBorderColor:pw,separatorColor:gw};function FE(e,t,n){return AE(t,Object.assign(Object.assign({},RE),n),e)}class jE{constructor(e,t,n,i,r){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=r,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let n;this.focusToReturn=document.activeElement;let i=Yr(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,render:i=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(i.className+=" "+r),this.options.blockMouse&&(this.block=i.appendChild(so(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",si(this.block,Xr.MOUSE_DOWN)(e=>e.stopPropagation()));const o=new Ie,a=e.actionRunner||new Ip;return a.onDidBeforeRun(this.onActionRun,this,o),a.onDidRun(this.onDidActionRun,this,o),n=new OE(i,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:a,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)}),o.add(FE(n,this.themeService)),n.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,o),n.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,o),si(window,Xr.BLUR)(()=>{this.contextViewService.hideContextView(!0)},null,o),si(window,Xr.MOUSE_DOWN)(e=>{if(e.defaultPrevented)return;let t=new wi(e),n=t.target;if(!t.rightButton){while(n){if(n===i)return;n=n.parentElement}this.contextViewService.hideContextView(!0)}},null,o),Te(o,n)},focus:()=>{n&&n.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide&&e.onHide(!!t),this.block&&(er(this.block),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},i,!!i)}onActionRun(e){this.telemetryService&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&this.notificationService&&this.notificationService.error(e.error)}}var BE=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},zE=function(e,t){return function(n,i){t(n,i,e)}};let VE=class extends Ae{constructor(e,t,n,i,r){super(),this._onDidContextMenu=this._register(new ze),this.onDidContextMenu=this._onDidContextMenu.event,this.contextMenuHandler=new jE(n,e,t,i,r)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()}};VE=BE([zE(0,cg),zE(1,Lf),zE(2,XO),zE(3,CM),zE(4,em)],VE);const $E=Wn("layoutService");var WE=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},HE=function(e,t){return function(n,i){t(n,i,e)}};let UE=class extends Ae{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=Ae.None,this.container=e.container,this.contextView=this._register(new yE(this.container,1)),this.layout(),this._register(e.onLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,n){t?t!==this.container&&(this.container=t,this.setContainer(t,n?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const i=Le(()=>{this.currentViewDisposable===i&&this.hideContextView()});return this.currentViewDisposable=i,i}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};UE=WE([HE(0,$E)],UE);const qE=Wn("dialogService");class GE{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class KE{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing.set(this._hashFn(t),i),i.incoming.set(this._hashFn(e),n)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let n of this._nodes.values())n.outgoing.delete(t),n.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes.get(t);return n||(n=new GE(e),this._nodes.set(t,n)),n}isEmpty(){return 0===this._nodes.size}toString(){let e=[];for(let[t,n]of this._nodes)e.push(`${t}, (incoming)[${[...n.incoming.keys()].join(", ")}], (outgoing)[${[...n.outgoing.keys()].join(",")}]`);return e.join("\n")}}const YE=!1;class XE extends Error{constructor(e){super("cyclic dependency between services"),this.message=e.toString()}}class ZE{constructor(e=new Wk,t=!1,n){this._services=e,this._strict=t,this._parent=n,this._services.set(Vn,this)}createChild(e){return new ZE(e,this._strict,this)}invokeFunction(e,...t){let n=QE.traceInvocation(e),i=!1;try{const r={get:(e,t)=>{if(i)throw we("service accessor is only valid during the invocation of its target method");const r=this._getOrCreateServiceInstance(e,n);if(!r&&t!==Hn)throw new Error(`[invokeFunction] unknown service '${e}'`);return r}};return e(r,...t)}finally{i=!0,n.stop()}}createInstance(e,...t){let n,i;return e instanceof MO?(n=QE.traceCreation(e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=QE.traceCreation(e),i=this._createInstance(e,t,n)),n.stop(),i}_createInstance(e,t=[],n){let i=jn.getServiceDependencies(e).sort((e,t)=>e.index-t.index),r=[];for(const a of i){let t=this._getOrCreateServiceInstance(a.id,n);if(!t&&this._strict&&!a.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${a.id}.`);r.push(t)}let o=i.length>0?i[0].index:t.length;if(t.length!==o){console.warn(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);let n=o-t.length;t=n>0?t.concat(new Array(n)):t.slice(0,o)}return new e(...[...t,...r])}_setServiceInstance(e,t){if(this._services.get(e)instanceof MO)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let n=this._getServiceInstanceOrDescriptor(e);return n instanceof MO?this._createAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_createAndCacheServiceInstance(e,t,n){const i=new KE(e=>e.id.toString());let r=0;const o=[{id:e,desc:t,_trace:n}];while(o.length){const t=o.pop();if(i.lookupOrInsertNode(t),r++>1e3)throw new XE(i);for(let n of jn.getServiceDependencies(t.desc.ctor)){let r=this._getServiceInstanceOrDescriptor(n.id);if(r||n.optional||console.warn(`[createInstance] ${e} depends on ${n.id} which is NOT registered.`),r instanceof MO){const e={id:n.id,desc:r,_trace:t._trace.branch(n.id,!0)};i.insertEdge(t,e),o.push(e)}}}while(1){const e=i.roots();if(0===e.length){if(!i.isEmpty())throw new XE(i);break}for(const{data:t}of e){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e),i.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],i,r){if(this._services.get(e)instanceof MO)return this._createServiceInstance(t,n,i,r);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,r);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)}_createServiceInstance(e,t=[],n,i){if(n){const n=new Li(()=>this._createInstance(e,t,i));return new Proxy(Object.create(null),{get(e,t){if(t in e)return e[t];let i=n.value,r=i[t];return"function"!==typeof r||(r=r.bind(i),e[t]=r),r},set(e,t,i){return n.value[t]=i,!0}})}return this._createInstance(e,t,i)}}class QE{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return YE?new QE(1,e.name||e.toString().substring(0,42).replace(/\n/g,"")):QE._None}static traceCreation(e){return YE?new QE(0,e.name):QE._None}branch(e,t){let n=new QE(2,e.toString());return this._dep.push([e,t,n]),n}stop(){let e=Date.now()-this._start;QE._totals+=e;let t=!1;function n(e,i){let r=[],o=new Array(e+1).join("\t");for(const[a,s,l]of i._dep)if(s&&l){t=!0,r.push(`${o}CREATES -> ${a}`);let i=n(e+1,l);i&&r.push(i)}else r.push(`${o}uses -> ${a}`);return r.join("\n")}let i=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,""+n(1,this),`DONE, took ${e.toFixed(2)}ms (grand total ${QE._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(i.join("\n"))}}QE._None=new class extends QE{constructor(){super(-1,null)}stop(){}branch(){return this}},QE._totals=0;const JE=Wn("labelService");n("dff0");class eT extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}function tT(e,t){const n=[];for(let i of t){if(e.start>=i.range.end)continue;if(e.end<i.range.start)break;const t=vE.intersect(e,i.range);vE.isEmpty(t)||n.push({range:t,size:i.size})}return n}function nT({start:e,end:t},n){return{start:e+n,end:t+n}}function iT(e){const t=[];let n=null;for(let i of e){const e=i.range.start,r=i.range.end,o=i.size;n&&o===n.size?n.range.end=r:(n={range:{start:e,end:r},size:o},t.push(n))}return t}function rT(...e){return iT(e.reduce((e,t)=>e.concat(t),[]))}class oT{constructor(){this.groups=[],this._size=0}splice(e,t,n=[]){const i=n.length-t,r=tT({start:0,end:e},this.groups),o=tT({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(e=>({range:nT(e.range,i),size:e.size})),a=n.map((t,n)=>({range:{start:e+n,end:e+n+1},size:t.size}));this.groups=rT(r,a,o),this._size=this.groups.reduce((e,t)=>e+t.size*(t.range.end-t.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r*i.size;if(e<o)return t+Math.floor((e-n)/i.size);t+=r,n=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r;if(e<o)return t+(e-n)*i.size;t+=r*i.size,n=o}return-1}}function aT(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(t){}}class sT{constructor(e){this.renderers=e,this.cache=new Map}alloc(e){let t=this.getTemplateCache(e).pop();if(!t){const n=so(".monaco-list-row"),i=this.getRenderer(e),r=i.renderTemplate(n);t={domNode:n,templateId:e,templateData:r}}return t}release(e){e&&this.releaseRow(e)}releaseRow(e){const{domNode:t,templateId:n}=e;t&&(ar(t,"scrolling"),aT(t));const i=this.getTemplateCache(n);i.push(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach((e,t)=>{for(const n of e){const e=this.getRenderer(t);e.disposeTemplate(n.templateData),n.domNode=null,n.templateData=null}}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t}}var lT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const cT={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0};class uT{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class dT{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class hT{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const n=e.files.item(t);n&&(n.size||n.type)&&this.files.push(n)}}}getData(){return{types:this.types,files:this.files}}}function fT(e,t){return Array.isArray(e)&&Array.isArray(t)?Ni(e,t):e===t}class pT{constructor(e){(null===e||void 0===e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,n)=>n,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class gT{constructor(e,t,n,i=cT){if(this.virtualDelegate=t,this.domId="list_id_"+ ++gT.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new ki(50),this.splicing=!1,this.dragOverAnimationStopDisposable=Ae.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=Ae.None,this.onDragLeaveTimeout=Ae.None,this.disposables=new Ie,this._onDidChangeContentHeight=new ze,this._horizontalScrolling=!1,i.horizontalScrolling&&i.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new oT;for(const o of n)this.renderers.set(o.templateId,o);this.cache=this.disposables.add(new sT(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",rr(this.domNode,this.domId),this.domNode.tabIndex=0,lr(this.domNode,"mouse-support","boolean"!==typeof i.mouseSupport||i.mouseSupport),this._horizontalScrolling=da(i,e=>e.horizontalScrolling,cT.horizontalScrolling),lr(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight="undefined"===typeof i.additionalScrollHeight?0:i.additionalScrollHeight,this.accessibilityProvider=new pT(i.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";const r=da(i,e=>e.transformOptimization,cT.transformOptimization);r&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(Ig.addTarget(this.rowsContainer)),this.scrollable=new yC(da(i,e=>e.smoothScrolling,!1)?125:0,e=>vr(e)),this.scrollableElement=this.disposables.add(new AC(this.rowsContainer,{alwaysConsumeMouseWheel:!0,horizontal:1,vertical:da(i,e=>e.verticalScrollMode,cT.verticalScrollMode),useShadows:da(i,e=>e.useShadows,cT.useShadows)},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),si(this.rowsContainer,Tg.Change)(this.onTouchChange,this,this.disposables),si(this.scrollableElement.getDomNode(),"scroll")(e=>e.target.scrollTop=0,null,this.disposables),Fe.map(si(this.domNode,"dragover"),e=>this.toDragEvent(e))(this.onDragOver,this,this.disposables),Fe.map(si(this.domNode,"drop"),e=>this.toDragEvent(e))(this.onDrop,this,this.disposables),si(this.domNode,"dragleave")(this.onDragLeave,this,this.disposables),si(window,"dragend")(this.onDragEnd,this,this.disposables),this.setRowLineHeight=da(i,e=>e.setRowLineHeight,cT.setRowLineHeight),this.setRowHeight=da(i,e=>e.setRowHeight,cT.setRowHeight),this.supportDynamicHeights=da(i,e=>e.supportDynamicHeights,cT.supportDynamicHeights),this.dnd=da(i,e=>e.dnd,cT.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,lr(this.domNode,"horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:Ar(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling)}splice(e,t,n=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(e,t,n)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(e,t,n=[]){const i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),r={start:e,end:e+t},o=vE.intersect(i,r);for(let _=o.start;_<o.end;_++)this.removeItemFromDOM(_);const a={start:e+t,end:this.items.length},s=vE.intersect(a,i),l=vE.relativeComplement(a,i),c=n.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:Ae.None}));let u;0===e&&t>=this.items.length?(this.rangeMap=new oT,this.rangeMap.splice(0,0,c),this.items=c,u=[]):(this.rangeMap.splice(e,t,c),u=this.items.splice(e,t,...c));const d=n.length-t,h=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),f=nT(s,d),p=vE.intersect(h,f);for(let _=p.start;_<p.end;_++)this.updateItemInDOM(this.items[_],_);const g=vE.relativeComplement(f,h);for(const _ of g)for(let e=_.start;e<_.end;e++)this.removeItemFromDOM(e);const m=l.map(e=>nT(e,d)),v={start:e,end:e+n.length},b=[v,...m].map(e=>vE.intersect(h,e)),y=this.getNextToLastElement(b);for(const _ of b)for(let e=_.start;e<_.end;e++)this.insertItemInDOM(e,y);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),u.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=vr(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){const e=this.scrollableElement.getScrollDimensions();return e.height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let n={height:"number"===typeof e?e:Nr(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:Ar(this.domNode)}))}render(e,t,n,i,r,o=!1){const a=this.getRenderRange(t,n),s=vE.relativeComplement(a,e),l=vE.relativeComplement(e,a),c=this.getNextToLastElement(s);if(o){const t=vE.intersect(e,a);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}for(const u of s)for(let e=u.start;e<u.end;e++)this.insertItemInDOM(e,c);for(const u of l)for(let e=u.start;e<u.end;e++)this.removeItemFromDOM(e);void 0!==i&&(this.rowsContainer.style.left=`-${i}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==r&&(this.rowsContainer.style.width=Math.max(r,this.renderWidth)+"px"),this.lastRenderTop=t,this.lastRenderHeight=n}insertItemInDOM(e,t){const n=this.items[e];if(!n.row){n.row=this.cache.alloc(n.templateId);const e=this.accessibilityProvider.getRole(n.element)||"listitem";n.row.domNode.setAttribute("role",e);const t=this.accessibilityProvider.isChecked(n.element);"undefined"!==typeof t&&n.row.domNode.setAttribute("aria-checked",String(!!t))}n.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(n.row.domNode,t):this.rowsContainer.appendChild(n.row.domNode)),this.updateItemInDOM(n,e);const i=this.renderers.get(n.templateId);if(!i)throw new Error("No renderer found for template id "+n.templateId);i&&i.renderElement(n.element,e,n.row.templateData,n.size);const r=this.dnd.getDragURI(n.element);if(n.dragStartDisposable.dispose(),n.row.domNode.draggable=!!r,r){const e=si(n.row.domNode,"dragstart");n.dragStartDisposable=e(e=>this.onDragStart(n.element,r,e))}this.horizontalScrolling&&(this.measureItemWidth(n),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=ei?"-moz-fit-content":"fit-content",e.width=Ar(e.row.domNode);const t=window.getComputedStyle(e.row.domNode);t.paddingLeft&&(e.width+=parseFloat(t.paddingLeft)),t.paddingRight&&(e.width+=parseFloat(t.paddingRight)),e.row.domNode.style.width=""}updateItemInDOM(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",this.setRowHeight&&(e.row.domNode.style.height=e.size+"px"),this.setRowLineHeight&&(e.row.domNode.style.lineHeight=e.size+"px"),e.row.domNode.setAttribute("data-index",""+t),e.row.domNode.setAttribute("data-last-element",t===this.length-1?"true":"false"),e.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),lr(e.row.domNode,"drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];t.dragStartDisposable.dispose();const n=this.renderers.get(t.templateId);t.row&&n&&n.disposeElement&&n.disposeElement(t.element,e,t.row.templateData,t.size),this.cache.release(t.row),t.row=null,this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){const e=this.scrollableElement.getScrollPosition();return e.scrollTop}setScrollTop(e){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return Fe.map(si(this.domNode,"click"),e=>this.toMouseEvent(e))}get onMouseDblClick(){return Fe.map(si(this.domNode,"dblclick"),e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return Fe.filter(Fe.map(si(this.domNode,"auxclick"),e=>this.toMouseEvent(e)),e=>1===e.browserEvent.button)}get onMouseDown(){return Fe.map(si(this.domNode,"mousedown"),e=>this.toMouseEvent(e))}get onContextMenu(){return Fe.map(si(this.domNode,"contextmenu"),e=>this.toMouseEvent(e))}get onTouchStart(){return Fe.map(si(this.domNode,"touchstart"),e=>this.toTouchEvent(e))}get onTap(){return Fe.map(si(this.rowsContainer,Tg.Tap),e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,n){if(!n.dataTransfer)return;const i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(NO.RESOURCES,JSON.stringify([t])),n.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(i,n)),"undefined"===typeof e&&(e=String(i.length));const t=so(".monaco-drag-image");t.textContent=e,document.body.appendChild(t),n.dataTransfer.setDragImage(t,-10,-10),setTimeout(()=>document.body.removeChild(t),0)}this.currentDragData=new uT(i),RO.CurrentDragAndDropData=new dT(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),RO.CurrentDragAndDropData&&"vscode-ui"===RO.CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(RO.CurrentDragAndDropData)this.currentDragData=RO.CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new hT}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let n;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?"copy":"move",n="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],n=$i(n).filter(e=>e>=-1&&e<this.length).sort((e,t)=>e-t),n=-1===n[0]?[-1]:n,fT(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])rr(this.domNode,"drop-target"),rr(this.rowsContainer,"drop-target"),this.currentDragFeedbackDisposable=Le(()=>{ar(this.domNode,"drop-target"),ar(this.rowsContainer,"drop-target")});else{for(const e of n){const t=this.items[e];t.dropTarget=!0,t.row&&t.row.domNode&&rr(t.row.domNode,"drop-target")}this.currentDragFeedbackDisposable=Le(()=>{for(const e of n){const t=this.items[e];t.dropTarget=!1,t.row&&t.row.domNode&&ar(t.row.domNode,"drop-target")}})}return!0}onDragLeave(){this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Mi(()=>this.clearDragOverFeedback(),100)}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,RO.CurrentDragAndDropData=void 0,t&&e.browserEvent.dataTransfer&&(e.browserEvent.preventDefault(),t.update(e.browserEvent.dataTransfer),this.dnd.drop(t,e.element,e.index,e.browserEvent))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,RO.CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=Ae.None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=Er(this.domNode).top;this.dragOverAnimationDisposable=mo(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Mi(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let n=e;while(n instanceof HTMLElement&&n!==this.rowsContainer&&t.contains(n)){const e=n.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}n=n.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t){const n=this.getRenderRange(e,t);let i,r;e===this.elementTop(n.start)?(i=n.start,r=0):n.end-n.start>1&&(i=n.start+1,r=this.elementTop(i)-e);let o=0;while(1){const a=this.getRenderRange(e,t);let s=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),o+=t,s=s||0!==t}if(!s){0!==o&&this.eventuallyUpdateScrollDimensions();const e=vE.relativeComplement(n,a);for(const n of e)for(let e=n.start;e<n.end;e++)this.items[e].row&&this.removeItemFromDOM(e);const t=vE.relativeComplement(a,n);for(const n of t)for(let e=n.start;e<n.end;e++){const t=e+1,n=t<this.items.length?this.items[t].row:null,i=n?n.domNode:null;this.insertItemInDOM(e,i)}for(let n=a.start;n<a.end;n++)this.items[n].row&&this.updateItemInDOM(this.items[n],n);return"number"===typeof i&&(this.scrollTop=this.elementTop(i)-r),void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const n=t.size;if(!this.setRowHeight&&t.row&&t.row.domNode){let e=t.row.domNode.offsetHeight;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-n}const i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);const r=this.renderers.get(t.templateId);return r&&(r.renderElement(t.element,e,i.templateData,void 0),r.disposeElement&&r.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n}getNextToLastElement(e){const t=e[e.length-1];if(!t)return null;const n=this.items[t.end];return n&&n.row?n.row.domNode:null}getElementDomId(e){return`${this.domId}_${e}`}dispose(){if(this.items){for(const e of this.items)if(e.row){const t=this.renderers.get(e.row.templateId);t&&t.disposeTemplate(e.row.templateData)}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Ee(this.disposables)}}gT.InstanceCount=0,lT([Eg],gT.prototype,"onMouseClick",null),lT([Eg],gT.prototype,"onMouseDblClick",null),lT([Eg],gT.prototype,"onMouseMiddleClick",null),lT([Eg],gT.prototype,"onMouseDown",null),lT([Eg],gT.prototype,"onContextMenu",null),lT([Eg],gT.prototype,"onTouchStart",null),lT([Eg],gT.prototype,"onTap",null);class mT{constructor(e){this.spliceables=e}splice(e,t,n){this.spliceables.forEach(i=>i.splice(e,t,n))}}function vT(e,t,n){return Math.min(Math.max(e,t),n)}var bT,yT=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class _T{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(e){return e}renderElement(e,t,n){const i=Hi(this.renderedElements,e=>e.templateData===n);if(i>=0){const e=this.renderedElements[i];this.trait.unrender(n),e.index=t}else{const e={index:t,templateData:n};this.renderedElements.push(e)}this.trait.renderIndex(t,n)}splice(e,t,n){const i=[];for(const r of this.renderedElements)r.index<e?i.push(r):r.index>=e+t&&i.push({index:r.index+n-t,templateData:r.templateData});this.renderedElements=i}renderIndexes(e){for(const{index:t,templateData:n}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,n)}disposeTemplate(e){const t=Hi(this.renderedElements,t=>t.templateData===e);t<0||this.renderedElements.splice(t,1)}}class wT{constructor(e){this._trait=e,this.indexes=[],this.sortedIndexes=[],this._onChange=new ze,this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new _T(this)}splice(e,t,n){const i=n.length-t,r=e+t,o=[...this.sortedIndexes.filter(t=>t<e),...n.map((t,n)=>t?n+e:-1).filter(e=>-1!==e),...this.sortedIndexes.filter(e=>e>=r).map(e=>e+i)];this.renderer.splice(e,t,n.length),this._set(o,o)}renderIndex(e,t){lr(t,this._trait,this.contains(e))}unrender(e){ar(e,this._trait)}set(e,t){return this._set(e,[...e].sort(VT),t)}_set(e,t,n){const i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=BT(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i}get(){return this.indexes}contains(e){return Pi(this.sortedIndexes,e,VT)>=0}dispose(){Ee(this._onChange)}}yT([Eg],wT.prototype,"renderer",null);class xT extends wT{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class CT{constructor(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}splice(e,t,n){if(!this.identityProvider)return this.trait.splice(e,t,n.map(()=>!1));const i=this.trait.get().map(e=>this.identityProvider.getId(this.view.element(e)).toString()),r=n.map(e=>i.indexOf(this.identityProvider.getId(e).toString())>-1);this.trait.splice(e,t,r)}}function ST(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function kT(e){return!!ir(e,"monaco-editor")||!ir(e,"monaco-list")&&!!e.parentElement&&kT(e.parentElement)}class OT{constructor(e,t,n){this.list=e,this.view=t,this.disposables=new Ie;const i=!1!==n.multipleSelectionSupport,r=Fe.chain(si(t.domNode,"keydown")).filter(e=>!ST(e.target)).map(e=>new gi(e));r.filter(e=>3===e.keyCode).on(this.onEnter,this,this.disposables),r.filter(e=>16===e.keyCode).on(this.onUpArrow,this,this.disposables),r.filter(e=>18===e.keyCode).on(this.onDownArrow,this,this.disposables),r.filter(e=>11===e.keyCode).on(this.onPageUpArrow,this,this.disposables),r.filter(e=>12===e.keyCode).on(this.onPageDownArrow,this,this.disposables),r.filter(e=>9===e.keyCode).on(this.onEscape,this,this.disposables),i&&r.filter(e=>(o["f"]?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.disposables)}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Gi(this.list.length),e.browserEvent),this.view.domNode.focus()}onEscape(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()}dispose(){this.disposables.dispose()}}(function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"})(bT||(bT={}));const MT=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}};class DT{constructor(e,t,n,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=i,this.enabled=!1,this.state=bT.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new Ie,this.disposables=new Ie,this.updateOptions(e.options)}updateOptions(e){const t="undefined"===typeof e.enableKeyboardNavigation||!!e.enableKeyboardNavigation;t?this.enable():this.disable(),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=Fe.chain(si(this.view.domNode,"keydown")).filter(e=>!ST(e.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(e=>new gi(e)).filter(e=>this.delegate.mightProducePrintableCharacter(e)).forEach(e=>{e.stopPropagation(),e.preventDefault()}).map(e=>e.browserEvent.key).event,t=Fe.debounce(e,()=>null,800),n=Fe.reduce(Fe.any(e,t),(e,t)=>null===t?null:(e||"")+t);n(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const n=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));n&&_p(n)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=bT.Idle,void(this.triggered=!1);const t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===bT.Idle?1:0;this.state=bT.Typing;for(let r=0;r<this.list.length;r++){const t=(n+r+i)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),a=o&&o.toString();if("undefined"===typeof a||fs(e,a))return this.previouslyFocused=n,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class ET{constructor(e,t){this.list=e,this.view=t,this.disposables=new Ie;const n=Fe.chain(si(t.domNode,"keydown")).filter(e=>!ST(e.target)).map(e=>new gi(e));n.filter(e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const n=this.view.domElement(t[0]);if(!n)return;const i=n.querySelector("[tabIndex]");if(!i||!(i instanceof HTMLElement)||-1===i.tabIndex)return;const r=window.getComputedStyle(i);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}dispose(){this.disposables.dispose()}}function TT(e){return o["f"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function LT(e){return e.browserEvent.shiftKey}function IT(e){return e instanceof MouseEvent&&2===e.button}const AT={isSelectionSingleChangeEvent:TT,isSelectionRangeChangeEvent:LT};class NT{constructor(e){this.list=e,this.disposables=new Ie,this._onPointer=new ze,this.onPointer=this._onPointer.event,this.multipleSelectionSupport=!(!1===e.options.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=e.options.multipleSelectionController||AT),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(Ig.addTarget(e.getHTMLElement()))),Fe.any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}isSelectionSingleChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):o["f"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}isSelectionRangeChangeEvent(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){kT(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(kT(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(ST(e.browserEvent.target)||kT(e.browserEvent.target))return;let t=this.list.getFocus()[0];const n=this.list.getSelection();t=void 0===t?n[0]:t;const i=e.index;return"undefined"===typeof i?(this.list.setFocus([],e.browserEvent),void this.list.setSelection([],e.browserEvent)):this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e)||this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)?this.changeSelection(e,t):(this.list.setFocus([i],e.browserEvent),IT(e.browserEvent)||this.list.setSelection([i],e.browserEvent),void this._onPointer.fire(e))}onDoubleClick(e){if(ST(e.browserEvent.target)||kT(e.browserEvent.target))return;if(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e,t){const n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){const i=Math.min(t,n),r=Math.max(t,n),o=Gi(i,r+1),a=this.list.getSelection(),s=jT(BT(a,[t]),t);if(0===s.length)return;const l=BT(o,zT(a,s));this.list.setSelection(l,e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const t=this.list.getSelection(),i=t.filter(e=>e!==n);this.list.setFocus([n]),t.length===i.length?this.list.setSelection([...i,n],e.browserEvent):this.list.setSelection(i,e.browserEvent)}}dispose(){this.disposables.dispose()}}class PT{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):o["f"]||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listFocusAndSelectionBackground&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { background-color: ${e.listFocusAndSelectionBackground}; }\n\t\t\t`),e.listFocusAndSelectionForeground&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.selected.focused { color: ${e.listFocusAndSelectionForeground}; }\n\t\t\t`),e.listInactiveFocusBackground&&(n.push(`.monaco-list${t} .monaco-list-row.focused { background-color: ${e.listInactiveFocusBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.focused:hover { background-color: ${e.listInactiveFocusBackground}; }`)),e.listInactiveSelectionBackground&&(n.push(`.monaco-list${t} .monaco-list-row.selected { background-color: ${e.listInactiveSelectionBackground}; }`),n.push(`.monaco-list${t} .monaco-list-row.selected:hover { background-color: ${e.listInactiveSelectionBackground}; }`)),e.listInactiveSelectionForeground&&n.push(`.monaco-list${t} .monaco-list-row.selected { color: ${e.listInactiveSelectionForeground}; }`),e.listHoverBackground&&n.push(`.monaco-list${t}:not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${e.listHoverBackground}; }`),e.listHoverForeground&&n.push(`.monaco-list${t} .monaco-list-row:hover:not(.selected):not(.focused) { color: ${e.listHoverForeground}; }`),e.listSelectionOutline&&n.push(`.monaco-list${t} .monaco-list-row.selected { outline: 1px dotted ${e.listSelectionOutline}; outline-offset: -1px; }`),e.listFocusOutline&&n.push(`\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list${t}:focus .monaco-list-row.focused { outline: 1px solid ${e.listFocusOutline}; outline-offset: -1px; }\n\t\t\t`),e.listInactiveFocusOutline&&n.push(`.monaco-list${t} .monaco-list-row.focused { outline: 1px dotted ${e.listInactiveFocusOutline}; outline-offset: -1px; }`),e.listHoverOutline&&n.push(`.monaco-list${t} .monaco-list-row:hover { outline: 1px dashed ${e.listHoverOutline}; outline-offset: -1px; }`),e.listDropBackground&&n.push(`\n\t\t\t\t.monaco-list${t}.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-rows.drop-target,\n\t\t\t\t.monaco-list${t} .monaco-list-row.drop-target { background-color: ${e.listDropBackground} !important; color: inherit !important; }\n\t\t\t`),e.listFilterWidgetBackground&&n.push(`.monaco-list-type-filter { background-color: ${e.listFilterWidgetBackground} }`),e.listFilterWidgetOutline&&n.push(`.monaco-list-type-filter { border: 1px solid ${e.listFilterWidgetOutline}; }`),e.listFilterWidgetNoMatchesOutline&&n.push(`.monaco-list-type-filter.no-matches { border: 1px solid ${e.listFilterWidgetNoMatchesOutline}; }`),e.listMatchesShadow&&n.push(`.monaco-list-type-filter { box-shadow: 1px 1px 1px ${e.listMatchesShadow}; }`);const i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)}}const RT={listFocusBackground:Eb.fromHex("#7FB0D0"),listActiveSelectionBackground:Eb.fromHex("#0E639C"),listActiveSelectionForeground:Eb.fromHex("#FFFFFF"),listFocusAndSelectionBackground:Eb.fromHex("#094771"),listFocusAndSelectionForeground:Eb.fromHex("#FFFFFF"),listInactiveSelectionBackground:Eb.fromHex("#3F3F46"),listHoverBackground:Eb.fromHex("#2A2D2E"),listDropBackground:Eb.fromHex("#383B3D"),treeIndentGuidesStroke:Eb.fromHex("#a9a9a9")},FT={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function jT(e,t){const n=e.indexOf(t);if(-1===n)return[];const i=[];let r=n-1;while(r>=0&&e[r]===t-(n-r))i.push(e[r--]);i.reverse(),r=n;while(r<e.length&&e[r]===t+(r-n))i.push(e[r++]);return i}function BT(e,t){const n=[];let i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}e[i]<t[r]?n.push(e[i++]):n.push(t[r++])}return n}function zT(e,t){const n=[];let i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){i++,r++;continue}e[i]<t[r]?n.push(e[i++]):r++}return n}const VT=(e,t)=>e-t;class $T{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,n,i){let r=0;for(const o of this.renderers)o.renderElement(e,t,n[r++],i)}disposeElement(e,t,n,i){let r=0;for(const o of this.renderers)o.disposeElement&&o.disposeElement(e,t,n[r],i),r+=1}disposeTemplate(e){let t=0;for(const n of this.renderers)n.disposeTemplate(e[t++])}}class WT{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,n){const i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?n.setAttribute("aria-level",""+r):n.removeAttribute("aria-level")}disposeTemplate(e){}}class HT{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements(),n=t.indexOf(e)>-1?t:[e];return n}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,n,i){this.dnd.drop(e,t,n,i)}}class UT{constructor(e,t,n,i,r=FT){var o;this.user=e,this._options=r,this.eventBufferer=new $e,this._ariaLabel="",this.disposables=new Ie,this.didJustPressContextMenuKey=!1,this._onDidDispose=new ze,this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(o=this._options.accessibilityProvider)||void 0===o?void 0:o.getWidgetRole():"list";this.selection=new xT("listbox"!==a),this.focus=new wT("focused"),la(r,RT,!1);const s=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=r.accessibilityProvider,this.accessibilityProvider&&(s.push(new WT(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),i=i.map(e=>new $T(e.templateId,[...s,e]));const l=Object.assign(Object.assign({},r),{dnd:r.dnd&&new HT(this,r.dnd)});if(this.view=new gT(t,n,i,l),this.view.domNode.setAttribute("role",a),r.styleController)this.styleController=r.styleController(this.view.domId);else{const e=Wr(this.view.domNode);this.styleController=new PT(e,this.view.domId)}if(this.spliceable=new mT([new CT(this.focus,this.view,r.identityProvider),new CT(this.selection,this.view,r.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=Fe.map(si(this.view.domNode,"focus",!0),()=>null),this.onDidBlur=Fe.map(si(this.view.domNode,"blur",!0),()=>null),this.disposables.add(new ET(this,this.view)),"boolean"!==typeof r.keyboardSupport||r.keyboardSupport){const e=new OT(this,this.view,r);this.disposables.add(e)}if(r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||MT;this.typeLabelController=new DT(this,this.view,r.keyboardNavigationLabelProvider,e),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(r),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),r.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return Fe.map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return Fe.map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){const e=Fe.chain(si(this.view.domNode,"keydown")).map(e=>new gi(e)).filter(e=>this.didJustPressContextMenuKey=58===e.keyCode||e.shiftKey&&68===e.keyCode).filter(e=>(e.preventDefault(),e.stopPropagation(),!1)).event,t=Fe.chain(si(this.view.domNode,"keyup")).filter(()=>{const e=this.didJustPressContextMenuKey;return this.didJustPressContextMenuKey=!1,e}).filter(()=>this.getFocus().length>0&&!!this.view.domElement(this.getFocus()[0])).map(e=>{const t=this.getFocus()[0],n=this.view.element(t),i=this.view.domElement(t);return{index:t,element:n,anchor:i,browserEvent:e}}).event,n=Fe.chain(this.view.onContextMenu).filter(()=>!this.didJustPressContextMenuKey).map(({element:e,index:t,browserEvent:n})=>({element:e,index:t,anchor:{x:n.clientX+1,y:n.clientY},browserEvent:n})).event;return Fe.any(e,t,n)}get onKeyDown(){return si(this.view.domNode,"keydown")}createMouseController(e){return new NT(this)}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,n=[]){if(e<0||e>this.view.length)throw new eT(this.user,"Invalid start index: "+e);if(t<0)throw new eT(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,n))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus()}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const n of e)if(n<0||n>=this.length)throw new eT(this.user,"Invalid index "+n);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setFocus(e,t){for(const n of e)if(n<0||n>=this.length)throw new eT(this.user,"Invalid index "+n);this.focus.set(e,t)}focusNext(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}focusPrevious(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}focusNextPage(e,t){let n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;const i=this.view.element(n),r=this.getFocusedElements()[0];if(r!==i){const i=this.findPreviousIndex(n,!1,t);i>-1&&r!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const i=this.view.getScrollTop();this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==i&&setTimeout(()=>this.focusNextPage(e,t),0)}}focusPreviousPage(e,t){let n;const i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);const r=this.view.element(n),o=this.getFocusedElements()[0];if(o!==r){const i=this.findNextIndex(n,!1,t);i>-1&&o!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const n=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==n&&setTimeout(()=>this.focusPreviousPage(e,t),0)}}focusLast(e,t){if(0===this.length)return;const n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,n){if(0===this.length)return;const i=this.findNextIndex(e,!1,n);i>-1&&this.setFocus([i],t)}findNextIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new eT(this.user,"Invalid index "+e);const n=this.view.getScrollTop(),i=this.view.elementTop(e),r=this.view.elementHeight(e);if(Po(t)){const e=r-this.view.renderHeight;this.view.setScrollTop(e*vT(t,0,1)+i)}else{const e=i+r,t=n+this.view.renderHeight;i<n&&e>=t||(i<n?this.view.setScrollTop(i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new eT(this.user,"Invalid index "+e);const t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;const r=i-this.view.renderHeight;return Math.abs((t-n)/r)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(e=>this.view.element(e)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();lr(this.view.domNode,"element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let n;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();lr(this.view.domNode,"selection-none",0===e.length),lr(this.view.domNode,"selection-single",1===e.length),lr(this.view.domNode,"selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}yT([Eg],UT.prototype,"onDidChangeFocus",null),yT([Eg],UT.prototype,"onDidChangeSelection",null),yT([Eg],UT.prototype,"onContextMenu",null);class qT{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{data:t,disposable:Ae.None}}renderElement(e,t,n,i){if(n.disposable&&n.disposable.dispose(),!n.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,n.data,i);const o=new Ge,a=r.resolve(e,o.token);n.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,n.data),a.then(t=>this.renderer.renderElement(t,e,n.data,i))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class GT{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function KT(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new GT(e,t.accessibilityProvider)})}class YT{constructor(e,t,n,i,r={}){const o=()=>this.model,a=i.map(e=>new qT(e,o));this.list=new UT(e,t,n,a,KT(o,r))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return Fe.map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onPointer(){return Fe.map(this.list.onPointer,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onDidChangeFocus(){return Fe.map(this.list.onDidChangeFocus,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:n}))}get onDidChangeSelection(){return Fe.map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:n}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Gi(e.length))}getFocus(){return this.list.getFocus()}setSelection(e,t){this.list.setSelection(e,t)}getSelection(){return this.list.getSelection()}style(e){this.list.style(e)}dispose(){this.list.dispose()}}const XT="inputFocus";var ZT;n("72b1"),function(e){e[e["Unknown"]=0]="Unknown",e[e["Twistie"]=1]="Twistie",e[e["Element"]=2]="Element"}(ZT||(ZT={}));class QT extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class JT{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}function eL(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function tL(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function nL(e){return"boolean"===typeof e.collapsible}class iL{constructor(e,t,n,i={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new $e,this._onDidChangeCollapseState=new ze,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new ze,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new ze,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault="undefined"!==typeof i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren="undefined"!==typeof i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,n=xe.empty(),i,r){if(0===e.length)throw new QT(this.user,"Invalid tree location");const{parentNode:o,listIndex:a,revealed:s,visible:l}=this.getParentNodeWithListIndex(e),c=[],u=xe.map(n,e=>this.createTreeNode(e,o,o.visible?1:0,s,c,i)),d=e[e.length-1];let h=0;for(let y=d;y>=0&&y<o.children.length;y--){const e=o.children[y];if(e.visible){h=e.visibleChildIndex;break}}const f=[];let p=0,g=0;for(const y of u)f.push(y),g+=y.renderNodeCount,y.visible&&(y.visibleChildIndex=h+p++);const m=o.children.splice(d,t,...f);let v=0;for(const y of m)y.visible&&v++;if(0!==v)for(let y=d+f.length;y<o.children.length;y++){const e=o.children[y];e.visible&&(e.visibleChildIndex-=v)}if(o.visibleChildrenCount+=p-v,s&&l){const e=m.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(o,g-e),this.list.splice(a,e,c)}if(m.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};m.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:m});let b=o;while(b){if(2===b.visibility){this.refilter();break}b=b.parent}}rerender(e){if(0===e.length)throw new QT(this.user,"Invalid tree location");const{node:t,listIndex:n,revealed:i}=this.getTreeNodeWithListIndex(e);t.visible&&i&&this.list.splice(n,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:n,revealed:i}=this.getTreeNodeWithListIndex(e);return n&&i?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsible);const i={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,i))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,n){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsed);const r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,r))}_setCollapseState(e,t){const{node:n,listIndex:i,revealed:r}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(n,i,r,t);if(n!==this.root&&this.autoExpandSingleChildren&&o&&!nL(t)&&n.collapsible&&!n.collapsed&&!t.recursive){let i=-1;for(let e=0;e<n.children.length;e++){const t=n.children[e];if(t.visible){if(i>-1){i=-1;break}i=e}}i>-1&&this._setCollapseState([...e,i],t)}return o}_setListNodeCollapseState(e,t,n,i){const r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;const o=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),s=o-(-1===t?0:1);return this.list.splice(t+1,s,a.slice(1)),r}_setNodeCollapseState(e,t,n){let i;if(e===this.root?i=!1:(nL(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!nL(t)&&t.recursive)for(const r of e.children)i=this._setNodeCollapseState(r,t,!0)||i;return i}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);while(t.parent)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)}createTreeNode(e,t,n,i,r,o){const a={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},s=this._filterNode(a,n);a.visibility=s,i&&r.push(a);const l=e.children||xe.empty(),c=i&&0!==s&&!a.collapsed,u=xe.map(l,e=>this.createTreeNode(e,a,s,c,r,o));let d=0,h=1;for(const f of u)a.children.push(f),h+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=d++);return a.collapsible=a.collapsible||a.children.length>0,a.visibleChildrenCount=d,a.visible=2===s?d>0:1===s,a.visible?a.collapsed||(a.renderNodeCount=h):(a.renderNodeCount=0,i&&r.pop()),o&&o(a),a}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const n of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(n,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterFilterChange(e,t,n,i=!0){let r;if(e!==this.root){if(r=this._filterNode(e,t),0===r)return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}const o=n.length;e.renderNodeCount=e===this.root?0:1;let a=!1;if(e.collapsed&&0===r)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)a=this._updateNodeAfterFilterChange(o,r,n,i&&!e.collapsed)||a,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===r?a:1===r),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):eL(n)?(e.filterData=n.data,tL(n.visibility)):(e.filterData=void 0,tL(n))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[n,...i]=e;return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[n,...i]=e;if(n<0||n>t.children.length)throw new QT(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:n,revealed:i,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new QT(this.user,"Invalid tree location");const a=t.children[o];return{node:a,listIndex:n,revealed:i,visible:r&&a.visible}}getParentNodeWithListIndex(e,t=this.root,n=0,i=!0,r=!0){const[o,...a]=e;if(o<0||o>t.children.length)throw new QT(this.user,"Invalid tree location");for(let s=0;s<o;s++)n+=t.children[s].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,0===a.length?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(a,t.children[o],n+1,i,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let n=e;while(n.parent)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:Ai(e)[0]}}const rL=ul("tree-item-expanded",dl.chevronDown),oL=ul("tree-filter-on-type-on",dl.listFilter),aL=ul("tree-filter-on-type-off",dl.listSelection),sL=ul("tree-filter-clear",dl.close),lL=ul("tree-item-loading",dl.loading);class cL extends uT{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function uL(e){return e instanceof uT?new cL(e):e}class dL{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=Ae.None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(uL(e),t)}onDragOver(e,t,n,i,r=!0){const o=this.dnd.onDragOver(uL(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return o;if(a&&"boolean"!==typeof o&&o.autoExpand&&(this.autoExpandDisposable=Mi(()=>{const e=this.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),this.autoExpandNode=void 0},500)),"boolean"===typeof o||!o.accept||"undefined"===typeof o.bubble||o.feedback){if(!r){const e="boolean"===typeof o?o:o.accept,t="boolean"===typeof o?void 0:o.effect;return{accept:e,effect:t,feedback:[n]}}return o}if(1===o.bubble){const n=this.modelProvider(),r=n.getNodeLocation(t),o=n.getParentNodeLocation(r),a=n.getNode(o),s=o&&n.getListIndex(o);return this.onDragOver(e,a,s,i,!1)}const s=this.modelProvider(),l=s.getNodeLocation(t),c=s.getListIndex(l),u=s.getListRenderCount(l);return Object.assign(Object.assign({},o),{feedback:Gi(c,c+u)})}drop(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(uL(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function hL(e,t){return t&&Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new dL(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&Object.assign(Object.assign({},t.accessibilityProvider),{getSetSize(t){const n=e(),i=n.getNodeLocation(t),r=n.getParentNodeLocation(i),o=n.getNode(r);return o.visibleChildrenCount},getPosInSet(e){return e.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?e=>t.accessibilityProvider.isChecked(e.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?e=>t.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel(e){return t.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel(e){return e.depth},getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(e=>t.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:t.simpleKeyboardNavigation})}class fL{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var pL;(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(pL||(pL={}));class gL{constructor(e,t=[]){this._elements=t,this.onDidChange=Fe.forEach(e,e=>this._elements=e)}get elements(){return this._elements}}class mL{constructor(e,t,n,i,r={}){this.renderer=e,this.modelProvider=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=mL.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new jh,this.activeIndentNodes=new Set,this.indentGuidesDisposable=Ae.None,this.disposables=new Ie,this.templateId=e.templateId,this.updateOptions(r),Fe.map(n,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent&&(this.indent=vT(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==pL.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const e=new Ie;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=no(e,so(".monaco-tl-row")),n=no(t,so(".monaco-tl-indent")),i=no(t,so(".monaco-tl-twistie")),r=no(t,so(".monaco-tl-contents")),o=this.renderer.renderTemplate(r);return{container:e,indent:n,twistie:i,indentGuidesDisposable:Ae.None,templateData:o}}renderElement(e,t,n,i){"number"===typeof i&&(this.renderedNodes.set(e,{templateData:n,height:i}),this.renderedElements.set(e.element,e));const r=mL.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=r+"px",n.indent.style.width=r+this.indent-16+"px",this.renderTwistie(e,n),"number"===typeof i&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,i)}disposeElement(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e.element,t.twistie),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(or(t.twistie,rL.classNames,"collapsible"),lr(t.twistie,"collapsed",e.collapsed)):sr(t.twistie,rL.classNames,"collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Ji(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const n=new Ie,i=this.modelProvider();let r=e;while(1){const e=i.getNodeLocation(r),o=i.getParentNodeLocation(e);if(!o)break;const a=i.getNode(o),s=so(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(a)&&rr(s,"active"),0===t.indent.childElementCount?t.indent.appendChild(s):t.indent.insertBefore(s,t.indent.firstElementChild),this.renderedIndentGuides.add(a,s),n.add(Le(()=>this.renderedIndentGuides.delete(a,s))),r=a}t.indentGuidesDisposable=n}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,n=this.modelProvider();e.forEach(e=>{const i=n.getNodeLocation(e);try{const r=n.getParentNodeLocation(i);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):r&&t.add(n.getNode(r))}catch(r){}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>ar(e,"active"))}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>rr(e,"active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Ee(this.disposables)}}mL.DefaultIndent=8;class vL{constructor(e,t,n){this.tree=e,this.keyboardNavigationLabelProvider=t,this._filter=n,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new Ie,e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;let i;if(i="boolean"===typeof n?n?1:0:eL(n)?tL(n.visibility):n,0===i)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:Ks.Default,visibility:!0};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),i=n&&n.toString();if("undefined"===typeof i)return{data:Ks.Default,visibility:!0};const r=Ys(this._pattern,this._lowercasePattern,0,i,i.toLowerCase(),0,!0);return r?(this._matchCount++,{data:r,visibility:!0}):this.tree.options.filterOnType?2:{data:Ks.Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Ee(this.disposables)}}class bL{constructor(e,t,n,i,o){this.tree=e,this.view=n,this.filter=i,this.keyboardNavigationDelegate=o,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new ze,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new ze,this.enabledDisposables=new Ie,this.disposables=new Ie,this.domNode=so(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,si(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=no(n.getHTMLElement(),so(".monaco-list-type-filter-message")),this.labelDomNode=no(this.domNode,so("span.label"));const a=no(this.domNode,so(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=no(a,so("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),si(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=no(a,so("button.clear"+sL.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=r("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),"undefined"!==typeof e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=Fe.chain(si(this.view.getHTMLElement(),"keydown")).filter(e=>!ST(e.target)||e.target===this.filterOnTypeDomNode).filter(e=>"Dead"!==e.key&&!/^Media/.test(e.key)).map(e=>new gi(e)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(this.pattern.length>0||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(o["f"]?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey).forEach(e=>{e.stopPropagation(),e.preventDefault()}).event,t=si(this.clearDomNode,"click");Fe.chain(Fe.any(e,t)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"===typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(o["f"]?e.altKey:e.ctrlKey)?this.onInput(""):1===e.keyCode?this.onInput(0===this.pattern.length?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+e.browserEvent.key)}onInput(e){const t=this.view.getHTMLElement();e&&!this.domNode.parentElement?t.append(this.domNode):!e&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=e,this._onDidChangePattern.fire(e),this.filter.pattern=e,this.tree.refilter(),e&&this.tree.focusNext(0,!0,void 0,e=>!Ks.isDefault(e.filterData));const n=this.tree.getFocus();if(n.length>0){const e=n[0];null===this.tree.getRelativeTop(e)&&this.tree.reveal(e,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=Tr(e),n=e.clientWidth,i=n/2,r=this.domNode.clientWidth,o=new Ie;let a=this.positionClassName;const s=()=>{switch(a){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=n-r-6+"px";break}},l=e=>{e.preventDefault();const n=e.screenX-t;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),a=n<i?"nw":"ne",s()},c=()=>{this.positionClassName=a,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Ee(o)};s(),ar(this.domNode,a),rr(this.domNode,"dragging"),o.add(Le(()=>ar(this.domNode,"dragging"))),si(document,"dragover")(l,null,o),si(this.domNode,"dragend")(c,null,o),RO.CurrentDragAndDropData=new PO("vscode-ui"),o.add(Le(()=>RO.CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(sr(this.filterOnTypeDomNode,aL.classNames),or(this.filterOnTypeDomNode,oL.classNames),this.filterOnTypeDomNode.title=r("disable filter on type","Disable Filter on Type")):(sr(this.filterOnTypeDomNode,oL.classNames),or(this.filterOnTypeDomNode,aL.classNames),this.filterOnTypeDomNode.title=r("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=r("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),lr(this.domNode,"no-matches",e),this.domNode.title=r("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||this.filter.totalCount>0&&this.filter.matchCount<=1||!Ks.isDefault(e.filterData)}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Ee(this.disposables)}}function yL(e){let t=ZT.Unknown;return jr(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=ZT.Twistie:jr(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=ZT.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function _L(e,t){t(e),e.children.forEach(e=>_L(e,t))}class wL{constructor(e){this.identityProvider=e,this.nodes=[],this._onDidChange=new ze,this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){Ni(this.nodes,e)||this._set(e,!1,t)}_set(e,t,n){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:n})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),n=t=>e.delete(t);return t.forEach(e=>_L(e,n)),void this.set([...e.values()])}const n=new Set,i=e=>n.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>_L(e,i));const r=new Map,o=e=>r.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>_L(e,o));const a=[];for(const s of this.nodes){const e=this.identityProvider.getId(s.element).toString(),t=n.has(e);if(t){const t=r.get(e);t&&a.push(t)}else a.push(s)}this._set(a,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class xL extends NT{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(ST(e.browserEvent.target)||kT(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const n=e.browserEvent.target,i=ir(n,"monaco-tl-twistie")||ir(n,"monaco-icon-label")&&ir(n,"folder-icon")&&e.browserEvent.offsetX<16;let r=!1;if(r="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick,r&&!i)return super.onViewPointer(e);if(this.tree.expandOnlyOnDoubleClick&&2!==e.browserEvent.detail&&!i)return super.onViewPointer(e);if(t.collapsible){const n=this.tree.model,o=n.getNodeLocation(t),a=e.browserEvent.altKey;if(n.setCollapsed(o,void 0,a),r&&i)return}super.onViewPointer(e)}onDoubleClick(e){const t=ir(e.browserEvent.target,"monaco-tl-twistie");t||super.onDoubleClick(e)}}class CL extends UT{constructor(e,t,n,i,r,o,a){super(e,t,n,i,a),this.focusTrait=r,this.selectionTrait=o}createMouseController(e){return new xL(this,e.tree)}splice(e,t,n=[]){if(super.splice(e,t,n),0===n.length)return;const i=[],r=[];n.forEach((t,n)=>{this.focusTrait.has(t)&&i.push(e+n),this.selectionTrait.has(t)&&r.push(e+n)}),i.length>0&&super.setFocus(Wi([...super.getFocus(),...i])),r.length>0&&super.setSelection(Wi([...super.getSelection(),...r]))}setFocus(e,t,n=!1){super.setFocus(e,t),n||this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,n=!1){super.setSelection(e,t),n||this.selectionTrait.set(e.map(e=>this.element(e)),t)}}class SL{constructor(e,t,n,i,r={}){this._options=r,this.eventBufferer=new $e,this.disposables=new Ie,this._onWillRefilter=new ze,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new ze;const o=new fL(n),a=new We,s=new We,l=new gL(s.event);this.renderers=i.map(e=>new mL(e,()=>this.model,a.event,l,r));for(let d of this.renderers)this.disposables.add(d);let c;r.keyboardNavigationLabelProvider&&(c=new vL(this,r.keyboardNavigationLabelProvider,r.filter),r=Object.assign(Object.assign({},r),{filter:c}),this.disposables.add(c)),this.focus=new wL(r.identityProvider),this.selection=new wL(r.identityProvider),this.view=new CL(e,t,o,this.renderers,this.focus,this.selection,Object.assign(Object.assign({},hL(()=>this.model,r)),{tree:this})),this.model=this.createModel(e,this.view,r),a.input=this.model.onDidChangeCollapseState;const u=Fe.forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})});if(u(()=>null,null,this.disposables),s.input=Fe.chain(Fe.any(u,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==r.keyboardSupport){const e=Fe.chain(this.view.onKeyDown).filter(e=>!ST(e.target)).map(e=>new gi(e));e.filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),e.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),e.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)}if(r.keyboardNavigationLabelProvider){const e=r.keyboardNavigationDelegate||MT;this.typeFilterController=new bL(this,this.model,this.view,c,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=Wr(this.view.getHTMLElement()),lr(this.getHTMLElement(),"always",this._options.renderIndentGuides===pL.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return Fe.map(this.view.onMouseDblClick,yL)}get onPointer(){return Fe.map(this.view.onPointer,yL)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnlyOnDoubleClick(){var e;return null!==(e=this._options.expandOnlyOnDoubleClick)&&void 0!==e&&e}get expandOnlyOnTwistieClick(){return"undefined"!==typeof this._options.expandOnlyOnTwistieClick&&this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions({enableKeyboardNavigation:this._options.simpleKeyboardNavigation,automaticKeyboardNavigation:this._options.automaticKeyboardNavigation,smoothScrolling:this._options.smoothScrolling,horizontalScrolling:this._options.horizontalScrolling}),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),lr(this.getHTMLElement(),"always",this._options.renderIndentGuides===pL.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const t="."+this.view.domId,n=[];e.treeIndentGuidesStroke&&(n.push(`.monaco-list${t}:hover .monaco-tl-indent > .indent-guide, .monaco-list${t}.always .monaco-tl-indent > .indent-guide { border-color: ${e.treeIndentGuidesStroke.transparent(.4)}; }`),n.push(`.monaco-list${t} .monaco-tl-indent > .indent-guide.active { border-color: ${e.treeIndentGuidesStroke}; }`));const i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i),this.view.style(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const n=e.map(e=>this.model.getNode(e));this.selection.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(i,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const n=e.map(e=>this.model.getNode(e));this.focus.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(i,t,!0)}focusNext(e=1,t=!1,n,i=this.focusNavigationFilter){this.view.focusNext(e,t,n,i)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!0);if(!r){const e=this.model.getParentNodeLocation(i);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!1);if(!r){if(!n.children.some(e=>e.visible))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,r)}dispose(){Ee(this.disposables),this.view.dispose()}}class kL{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new iL(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}setChildren(e,t=xe.empty(),n,i){const r=this.getElementLocation(e);this._setChildren(r,this.preserveCollapseState(t),n,i)}_setChildren(e,t=xe.empty(),n,i){const r=new Set,o=new Set,a=e=>{if(null===e.element)return;const t=e;if(r.add(t.element),this.nodes.set(t.element,t),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();o.add(e),this.nodesByIdentity.set(e,t)}n&&n(t)},s=e=>{if(null===e.element)return;const t=e;if(r.has(t.element)||this.nodes.delete(t.element),this.identityProvider){const e=this.identityProvider.getId(t.element).toString();o.has(e)||this.nodesByIdentity.delete(e)}i&&i(t)};this.model.splice([...e,0],Number.MAX_VALUE,t,a,s)}preserveCollapseState(e=xe.empty()){return this.sorter&&(e=Ri([...e],this.sorter.compare.bind(this.sorter))),xe.map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const n=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(n)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});const n="boolean"===typeof e.collapsible?e.collapsible:t.collapsible,i="undefined"!==typeof e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:n,collapsed:i,children:this.preserveCollapseState(e.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getElementLocation(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new QT(this.user,"Tree element not found: "+e);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new QT(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new QT(this.user,"Tree element not found: "+e);const n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n),r=this.model.getNode(i);return r.element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new QT(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)}}function OL(e){const t=[e.element],n=e.incompressible||!1;return{element:{elements:t,incompressible:n},children:xe.map(xe.from(e.children),OL),collapsible:e.collapsible,collapsed:e.collapsed}}function ML(e){const t=[e.element],n=e.incompressible||!1;let i,r;while(1){if([r,i]=xe.consume(xe.from(e.children),2),1!==r.length)break;if(e=r[0],e.incompressible)break;t.push(e.element)}return{element:{elements:t,incompressible:n},children:xe.map(xe.concat(r,i),ML),collapsible:e.collapsible,collapsed:e.collapsed}}function DL(e,t=0){let n;return n=t<e.element.elements.length-1?[DL(e,t+1)]:xe.map(xe.from(e.children),e=>DL(e,0)),0===t&&e.element.incompressible?{element:e.element.elements[t],children:n,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:n,collapsible:e.collapsible,collapsed:e.collapsed}}function EL(e){return DL(e,0)}function TL(e,t,n){return e.element===t?Object.assign(Object.assign({},e),{children:n}):Object.assign(Object.assign({},e),{children:xe.map(xe.from(e.children),e=>TL(e,t,n))})}class LL{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new kL(e,t,n),this.enabled="undefined"===typeof n.compressionEnabled||n.compressionEnabled}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=xe.empty()){if(null===e){const e=xe.map(t,this.enabled?ML:OL);return void this._setChildren(null,e)}const n=this.nodes.get(e);if(!n)throw new Error("Unknown compressed tree node");const i=this.model.getNode(n),r=this.model.getParentNodeLocation(n),o=this.model.getNode(r),a=EL(i),s=TL(a,e,t),l=(this.enabled?ML:OL)(s),c=o.children.map(e=>e===i?l:e);this._setChildren(o.element,c)}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode(),n=t.children,i=xe.map(n,EL),r=xe.map(i,e?ML:OL);this._setChildren(null,r)}_setChildren(e,t){const n=new Set,i=e=>{for(const t of e.element.elements)n.add(t),this.nodes.set(t,e.element)},r=e=>{for(const t of e.element.elements)n.has(t)||this.nodes.delete(t)};this.model.setChildren(e,t,i,r)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new QT(this.user,"Tree element not found: "+e);return t}}const IL=e=>e[e.length-1];class AL{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new AL(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function NL(e,t){return{splice(n,i,r){t.splice(n,i,r.map(t=>e.map(t)))},updateElementHeight(e,n){t.updateElementHeight(e,n)}}}function PL(e,t){return Object.assign(Object.assign({},t),{sorter:t.sorter&&{compare(e,n){return t.sorter.compare(e.elements[0],n.elements[0])}},identityProvider:t.identityProvider&&{getId(n){return t.identityProvider.getId(e(n))}},filter:t.filter&&{filter(n,i){return t.filter.filter(e(n),i)}}})}class RL{constructor(e,t,n={}){this.rootRef=null,this.elementMapper=n.elementMapper||IL;const i=e=>this.elementMapper(e.elements);this.nodeMapper=new JT(e=>new AL(i,e)),this.model=new LL(e,NL(this.nodeMapper,t),PL(i,n))}get onDidSplice(){return Fe.map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return Fe.map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return Fe.map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=xe.empty()){this.model.setChildren(e,t)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,n){return this.model.setCollapsed(e,t,n)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var FL=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class jL extends SL{constructor(e,t,n,i,r={}){super(e,t,n,i,r)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=xe.empty()){this.model.setChildren(e,t)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,n){return new kL(e,t,n)}}class BL{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,n,i){const r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===r.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))}disposeElement(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}function zL(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(n){let i;try{i=e().getCompressedTreeNode(n)}catch(r){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}FL([Eg],BL.prototype,"compressedTreeNodeProvider",null);class VL extends jL{constructor(e,t,n,i,r={}){const o=()=>this,a=i.map(e=>new BL(o,e));super(e,t,n,a,zL(o,r))}setChildren(e,t=xe.empty()){this.model.setChildren(e,t)}createModel(e,t,n){return new RL(e,t,n)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var $L=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};function WL(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function HL(e,t){return!!t.parent&&(t.parent===e||HL(e,t.parent))}function UL(e,t){return e===t||HL(e,t)||HL(t,e)}class qL{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new qL(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class GL{constructor(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?or(t,lL.classNames):sr(t,lL.classNames),!1}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function KL(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function YL(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class XL extends uT{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function ZL(e){return e instanceof uT?new XL(e):e}class QL{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(ZL(e),t)}onDragOver(e,t,n,i,r=!0){return this.dnd.onDragOver(ZL(e),t&&t.element,n,i)}drop(e,t,n,i){this.dnd.drop(ZL(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function JL(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new QL(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var n;return!!(null===(n=e.accessibilityProvider)||void 0===n?void 0:n.isChecked(t.element))}:void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function eI(e,t){t(e),e.children.forEach(e=>eI(e,t))}class tI{constructor(e,t,n,i,r,o={}){this.user=e,this.dataSource=r,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new ze,this._onDidChangeNodeSlowState=new ze,this.nodeMapper=new JT(e=>new qL(e)),this.disposables=new Ie,this.identityProvider=o.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof o.autoExpandSingleChildren&&o.autoExpandSingleChildren,this.sorter=o.sorter,this.collapseByDefault=o.collapseByDefault,this.tree=this.createTree(e,t,n,i,o),this.root=WL({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return Fe.map(this.tree.onDidChangeFocus,KL)}get onDidChangeSelection(){return Fe.map(this.tree.onDidChangeSelection,KL)}get onMouseDblClick(){return Fe.map(this.tree.onMouseDblClick,YL)}get onPointer(){return Fe.map(this.tree.onPointer,YL)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,n,i,r){const o=new fL(n),a=i.map(e=>new GL(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),s=JL(r)||{};return new jL(e,t,o,a,s)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return $L(this,void 0,void 0,(function*(){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),this.root.element=e;const n=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,n),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,n=!1,i){return $L(this,void 0,void 0,(function*(){if("undefined"===typeof this.root.element)throw new QT(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield Fe.toPromise(this._onDidRender.event));const r=this.getDataNode(e);if(yield this.refreshAndRenderNode(r,t,i),n)try{this.tree.rerender(r)}catch(o){}}))}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}collapse(e,t=!1){const n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)}expand(e,t=!1){return $L(this,void 0,void 0,(function*(){if("undefined"===typeof this.root.element)throw new QT(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield Fe.toPromise(this._onDidRender.event));const n=this.getDataNode(e);if(this.tree.hasElement(n)&&!this.tree.isCollapsible(n))return!1;if(n.refreshPromise&&(yield this.root.refreshPromise,yield Fe.toPromise(this._onDidRender.event)),n!==this.root&&!n.refreshPromise&&!this.tree.isCollapsed(n))return!1;const i=this.tree.expand(n===this.root?null:n,t);return n.refreshPromise&&(yield this.root.refreshPromise,yield Fe.toPromise(this._onDidRender.event)),i}))}setSelection(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setSelection(n,t)}getSelection(){const e=this.tree.getSelection();return e.map(e=>e.element)}setFocus(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setFocus(n,t)}getFocus(){const e=this.tree.getFocus();return e.map(e=>e.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new QT(this.user,"Data tree node not found: "+e);return t}refreshAndRenderNode(e,t,n){return $L(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,n),this.render(e,n)}))}refreshNode(e,t,n){return $L(this,void 0,void 0,(function*(){let i;return this.subTreeRefreshPromises.forEach((r,o)=>{!i&&UL(o,e)&&(i=r.then(()=>this.refreshNode(e,t,n)))}),i||this.doRefreshSubTree(e,t,n)}))}doRefreshSubTree(e,t,n){return $L(this,void 0,void 0,(function*(){let i;e.refreshPromise=new Promise(e=>i=e),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const r=yield this.doRefreshNode(e,t,n);e.stale=!1,yield Promise.all(r.map(e=>this.doRefreshSubTree(e,t,n)))}finally{i()}}))}doRefreshNode(e,t,n){return $L(this,void 0,void 0,(function*(){let i;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=Oi(800);t.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},e=>null),i=this.doGetChildren(e).finally(()=>t.cancel())}else i=Promise.resolve(xe.empty());try{const r=yield i;return this.setChildren(e,r,t,n)}catch(r){if(e!==this.root&&this.tree.collapse(e===this.root?null:e),be(r))return[];throw r}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){let t=this.refreshPromises.get(e);return t||(t=Si(()=>$L(this,void 0,void 0,(function*(){const t=yield this.dataSource.getChildren(e.element);return this.processChildren(t)}))),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(ge))}setChildren(e,t,n,i){const r=[...t];if(0===e.children.length&&0===r.length)return[];const o=new Map,a=new Map;for(const c of e.children)if(o.set(c.element,c),this.identityProvider){const e=this.tree.isCollapsed(c);a.set(c.id,{node:c,collapsed:e})}const s=[],l=r.map(t=>{const r=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const n=WL({element:t,parent:e,hasChildren:r});return r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(n.collapsedByDefault=!1,s.push(n)),n}const l=this.identityProvider.getId(t).toString(),c=a.get(l);if(c){const e=c.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=r,n?c.collapsed?(e.children.forEach(e=>eI(e,e=>this.nodes.delete(e.element))),e.children.splice(0,e.children.length),e.stale=!0):s.push(e):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,s.push(e)),e}const u=WL({element:t,parent:e,id:l,hasChildren:r});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(u),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(u),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?s.push(u):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(u.collapsedByDefault=!1,s.push(u)),u});for(const c of o.values())eI(c,e=>this.nodes.delete(e.element));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===s.length&&(l[0].collapsedByDefault=!1,s.push(l[0])),s}render(e,t){const n=e.children.map(e=>this.asTreeElement(e,t));this.tree.setChildren(e===this.root?null:e,n),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let n;return n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?xe.map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:n}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class nI{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new nI(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class iI{constructor(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderCompressedElements(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?or(t,lL.classNames):sr(t,lL.classNames),!1}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeCompressedElements(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Ee(this.disposables)}}function rI(e){const t=e&&JL(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(e=>e.element))}})})}class oI extends tI{constructor(e,t,n,i,r,o,a={}){super(e,t,n,r,o,a),this.compressionDelegate=i,this.compressibleNodeMapper=new JT(e=>new nI(e)),this.filter=a.filter}createTree(e,t,n,i,r){const o=new fL(n),a=i.map(e=>new iI(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),s=rI(r)||{};return new VL(e,t,o,a,s)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),i=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},r=i(this.tree.getSelection()),o=i(this.tree.getFocus());super.render(e,t);const a=this.getSelection();let s=!1;const l=this.getFocus();let c=!1;const u=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=n(t.elements[i].element),u=t.elements[t.elements.length-1].element;r.has(e)&&-1===a.indexOf(u)&&(a.push(u),s=!0),o.has(e)&&-1===l.indexOf(u)&&(l.push(u),c=!0)}e.children.forEach(u)};u(this.tree.getCompressedTreeNode(e===this.root?null:e)),s&&this.setSelection(a),c&&this.setFocus(l)}processChildren(e){return this.filter&&(e=xe.filter(e,e=>{const t=this.filter.filter(e,1),n=aI(t);if(2===n)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===n})),super.processChildren(e)}}function aI(e){return"boolean"===typeof e?e?1:0:eL(e)?tL(e.visibility):tL(e)}class sI extends SL{constructor(e,t,n,i,r,o={}){super(e,t,n,i,o),this.user=e,this.dataSource=r,this.identityProvider=o.identityProvider}createModel(e,t,n){return new kL(e,t,n)}}var lI=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},cI=function(e,t){return function(n,i){t(n,i,e)}};const uI=Wn("listService");let dI=class{constructor(e){this._themeService=e,this.disposables=new Ie,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new PT(Wr(),"");this.disposables.add(NE(e,this._themeService))}if(this.lists.some(t=>t.widget===e))throw new Error("Cannot register the same widget multiple times");const n={widget:e,extraContextKeys:t};return this.lists.push(n),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Te(e.onDidFocus(()=>this._lastFocusedWidget=e),Le(()=>this.lists.splice(this.lists.indexOf(n),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==n),this._lastFocusedWidget===e&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};dI=lI([cI(0,em)],dI);const hI=new Zp("listFocus",!0),fI=new Zp("listSupportsMultiselect",!0),pI=(Fp.and(hI,Fp.not(XT)),new Zp("listHasSelectionOrFocus",!1)),gI=new Zp("listDoubleSelection",!1),mI=new Zp("listMultiSelection",!1),vI=new Zp("listSupportsKeyboardNavigation",!0),bI="listAutomaticKeyboardNavigation",yI=new Zp(bI,!0);let _I=!1;function wI(e,t){const n=e.createScoped(t.getHTMLElement());return hI.bindTo(n),n}const xI="workbench.list.multiSelectModifier",CI="workbench.list.openMode",SI="workbench.list.horizontalScrolling",kI="workbench.list.keyboardNavigation",OI="workbench.list.automaticKeyboardNavigation",MI="workbench.tree.indent",DI="workbench.tree.renderIndentGuides",EI="workbench.list.smoothScrolling";function TI(e){return"alt"===e.getValue(xI)}class LI extends Ae{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=TI(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(xI)&&(this.useAltAsMultipleSelectionModifier=TI(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:TT(e)}isSelectionRangeChangeEvent(e){return LT(e)}}function II(e,t,n){const i=new Ie,r=Object.assign({},e);if(!1!==e.multipleSelectionSupport&&!e.multipleSelectionController){const e=new LI(t);r.multipleSelectionController=e,i.add(e)}return r.keyboardNavigationDelegate={mightProducePrintableCharacter(e){return n.mightProducePrintableCharacter(e)}},r.smoothScrolling=t.getValue(EI),[r,i]}let AI=class extends UT{constructor(e,t,n,i,r,o,a,s,l,c){const u="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:l.getValue(SI),[d,h]=II(r,l,c);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},IE(s.getColorTheme(),PE)),d),{horizontalScrolling:u})),this.disposables.add(h),this.contextKeyService=wI(o,this),this.themeService=s;const f=fI.bindTo(this.contextKeyService);f.set(!(!1===r.multipleSelectionSupport)),this.listHasSelectionOrFocus=pI.bindTo(this.contextKeyService),this.listDoubleSelection=gI.bindTo(this.contextKeyService),this.listMultiSelection=mI.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=TI(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(xI)&&(this._useAltAsMultipleSelectionModifier=TI(l));let t={};if(e.affectsConfiguration(SI)&&void 0===this.horizontalScrolling){const e=l.getValue(SI);t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(EI)){const e=l.getValue(EI);t=Object.assign(Object.assign({},t),{smoothScrolling:e})}Object.keys(t).length>0&&this.updateOptions(t)}))}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles)}dispose(){super.dispose(),this._styler&&this._styler.dispose()}updateStyles(e){this._styler&&this._styler.dispose(),this._styler=NE(this,this.themeService,e)}};AI=lI([cI(5,Qp),cI(6,uI),cI(7,em),cI(8,nf),cI(9,CM)],AI);let NI=class extends YT{constructor(e,t,n,i,r,o,a,s,l,c){const u="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:l.getValue(SI),[d,h]=II(r,l,c);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},IE(s.getColorTheme(),PE)),d),{horizontalScrolling:u})),this.disposables=new Ie,this.disposables.add(h),this.contextKeyService=wI(o,this),this.horizontalScrolling=r.horizontalScrolling;const f=fI.bindTo(this.contextKeyService);f.set(!(!1===r.multipleSelectionSupport)),this._useAltAsMultipleSelectionModifier=TI(l),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),r.overrideStyles&&this.disposables.add(NE(this,s,r.overrideStyles)),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(xI)&&(this._useAltAsMultipleSelectionModifier=TI(l));let t={};if(e.affectsConfiguration(SI)&&void 0===this.horizontalScrolling){const e=l.getValue(SI);t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(EI)){const e=l.getValue(EI);t=Object.assign(Object.assign({},t),{smoothScrolling:e})}Object.keys(t).length>0&&this.updateOptions(t)}))}dispose(){super.dispose(),this.disposables.dispose()}};NI=lI([cI(5,Qp),cI(6,uI),cI(7,em),cI(8,nf),cI(9,CM)],NI);class PI extends Ae{constructor(e,t){var n,i;super(),this.widget=e,this._onDidOpen=new ze,this.onDidOpen=this._onDidOpen.event,this.openOnFocus=null!==(n=null===t||void 0===t?void 0:t.openOnFocus)&&void 0!==n&&n,this._register(Fe.filter(this.widget.onDidChangeSelection,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.browserEvent))),this.openOnFocus&&this._register(Fe.filter(this.widget.onDidChangeFocus,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onFocusFromKeyboard(e))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(CI)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(CI))}))):this.openOnSingleClick=null===(i=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===i||i}onFocusFromKeyboard(e){const t=this.widget.getFocus();this.widget.setSelection(t,e.browserEvent);const n="boolean"!==typeof e.browserEvent.preserveFocus||e.browserEvent.preserveFocus,i=!1,r=!1;this._open(n,i,r,e.browserEvent)}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t="boolean"!==typeof e.browserEvent.preserveFocus||e.browserEvent.preserveFocus,n=!1,i=!1;this._open(t,n,i,e.browserEvent)}onPointer(e){if(!this.openOnSingleClick)return;const t=2===e.detail;if(t)return;const n=1===e.button,i=!0,r=n,o=e.ctrlKey||e.metaKey||e.altKey;this._open(i,r,o,e)}onMouseDblClick(e){if(!e)return;const t=!1,n=!0,i=e.ctrlKey||e.metaKey||e.altKey;this._open(t,n,i,e)}_open(e,t,n,i){this._onDidOpen.fire({editorOptions:{preserveFocus:e,pinned:t,revealIfVisible:!0},sideBySide:n,element:this.widget.getSelection()[0],browserEvent:i})}}class RI extends PI{constructor(e,t){super(e,t)}}function FI(e,t){let n=!1;return i=>{if(n)return n=!1,!1;const r=t.softDispatch(i,e);return r&&r.enterChord?(n=!0,!1):(n=!1,!0)}}let jI=class extends jL{constructor(e,t,n,i,r,o,a,s,l,c,u){const{options:d,getAutomaticKeyboardNavigation:h,disposable:f}=WI(t,r,o,l,c,u);super(e,t,n,i,d),this.disposables.add(f),this.internals=new HI(this,r,h,r.overrideStyles,o,a,s,l,u),this.disposables.add(this.internals)}};jI=lI([cI(5,Qp),cI(6,uI),cI(7,em),cI(8,nf),cI(9,CM),cI(10,Hk)],jI);let BI=class extends VL{constructor(e,t,n,i,r,o,a,s,l,c,u){const{options:d,getAutomaticKeyboardNavigation:h,disposable:f}=WI(t,r,o,l,c,u);super(e,t,n,i,d),this.disposables.add(f),this.internals=new HI(this,r,h,r.overrideStyles,o,a,s,l,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};BI=lI([cI(5,Qp),cI(6,uI),cI(7,em),cI(8,nf),cI(9,CM),cI(10,Hk)],BI);let zI=class extends sI{constructor(e,t,n,i,r,o,a,s,l,c,u,d){const{options:h,getAutomaticKeyboardNavigation:f,disposable:p}=WI(t,o,a,c,u,d);super(e,t,n,i,r,h),this.disposables.add(p),this.internals=new HI(this,o,f,o.overrideStyles,a,s,l,c,d),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};zI=lI([cI(6,Qp),cI(7,uI),cI(8,em),cI(9,nf),cI(10,CM),cI(11,Hk)],zI);let VI=class extends tI{constructor(e,t,n,i,r,o,a,s,l,c,u,d){const{options:h,getAutomaticKeyboardNavigation:f,disposable:p}=WI(t,o,a,c,u,d);super(e,t,n,i,r,h),this.disposables.add(p),this.internals=new HI(this,o,f,o.overrideStyles,a,s,l,c,d),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles)}};VI=lI([cI(6,Qp),cI(7,uI),cI(8,em),cI(9,nf),cI(10,CM),cI(11,Hk)],VI);let $I=class extends oI{constructor(e,t,n,i,r,o,a,s,l,c,u,d,h){const{options:f,getAutomaticKeyboardNavigation:p,disposable:g}=WI(t,a,s,u,d,h);super(e,t,n,i,r,o,f),this.disposables.add(g),this.internals=new HI(this,a,p,a.overrideStyles,s,l,c,u,h),this.disposables.add(this.internals)}};function WI(e,t,n,i,r,o){vI.bindTo(n),_I||(yI.bindTo(n),_I=!0);const a=()=>{let e=n.getContextKeyValue(bI);return e&&(e=i.getValue(OI)),e},s=o.isScreenReaderOptimized(),l=s?"simple":i.getValue(kI),c=void 0!==t.horizontalScrolling?t.horizontalScrolling:i.getValue(SI),[u,d]=II(t,i,r),h=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},u),{indent:i.getValue(MI),renderIndentGuides:i.getValue(DI),smoothScrolling:i.getValue(EI),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:"simple"===l,filterOnType:"filter"===l,horizontalScrolling:c,keyboardNavigationEventFilter:FI(e,r),additionalScrollHeight:h,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnDoubleClick:"doubleClick"===i.getValue(CI)})}}$I=lI([cI(7,Qp),cI(8,uI),cI(9,em),cI(10,nf),cI(11,CM),cI(12,Hk)],$I);let HI=class{constructor(e,t,n,i,r,o,a,s,l){this.tree=e,this.themeService=a,this.disposables=[],this.contextKeyService=wI(r,e);const c=fI.bindTo(this.contextKeyService);c.set(!(!1===t.multipleSelectionSupport)),this.hasSelectionOrFocus=pI.bindTo(this.contextKeyService),this.hasDoubleSelection=gI.bindTo(this.contextKeyService),this.hasMultiSelection=mI.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=TI(s);const u=new Set;u.add(bI);const d=()=>{const t=l.isScreenReaderOptimized(),n=t?"simple":s.getValue(kI);e.updateOptions({simpleKeyboardNavigation:"simple"===n,filterOnType:"filter"===n})};this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection(()=>{const t=e.getSelection(),n=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(t.length>0||n.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)})}),e.onDidChangeFocus(()=>{const t=e.getSelection(),n=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||n.length>0)}),s.onDidChangeConfiguration(i=>{let r={};if(i.affectsConfiguration(xI)&&(this._useAltAsMultipleSelectionModifier=TI(s)),i.affectsConfiguration(MI)){const e=s.getValue(MI);r=Object.assign(Object.assign({},r),{indent:e})}if(i.affectsConfiguration(DI)){const e=s.getValue(DI);r=Object.assign(Object.assign({},r),{renderIndentGuides:e})}if(i.affectsConfiguration(EI)){const e=s.getValue(EI);r=Object.assign(Object.assign({},r),{smoothScrolling:e})}if(i.affectsConfiguration(kI)&&d(),i.affectsConfiguration(OI)&&(r=Object.assign(Object.assign({},r),{automaticKeyboardNavigation:n()})),i.affectsConfiguration(SI)&&void 0===t.horizontalScrolling){const e=s.getValue(SI);r=Object.assign(Object.assign({},r),{horizontalScrolling:e})}i.affectsConfiguration(CI)&&(r=Object.assign(Object.assign({},r),{expandOnlyOnDoubleClick:"doubleClick"===s.getValue(CI)})),Object.keys(r).length>0&&e.updateOptions(r)}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(u)&&e.updateOptions({automaticKeyboardNavigation:n()})}),l.onDidChangeScreenReaderOptimized(()=>d())),this.navigator=new RI(e,Object.assign({configurationService:s},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateStyleOverrides(e){Ee(this.styler),this.styler=e?NE(this.tree,this.themeService,e):Ae.None}dispose(){this.disposables=Ee(this.disposables),Ee(this.styler),this.styler=void 0}};HI=lI([cI(4,Qp),cI(5,uI),cI(6,em),cI(7,nf),cI(8,Hk)],HI);const UI=gh.as(_h.Configuration);var qI,GI;UI.registerConfiguration({id:"workbench",order:7,title:r("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[xI]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[r("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),r("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:r({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[CI]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:r({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},[SI]:{type:"boolean",default:!1,description:r("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[MI]:{type:"number",default:8,minimum:0,maximum:40,description:r("tree indent setting","Controls tree indentation in pixels.")},[DI]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:r("render tree indent guides","Controls whether the tree should render indent guides.")},[EI]:{type:"boolean",default:!1,description:r("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[kI]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[r("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),r("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),r("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:r("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[OI]:{type:"boolean",default:!0,markdownDescription:r("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")}}}),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(qI||(qI={})),function(e){function t(e,t){return t-e}e.compare=t;const n=Object.create(null);function i(e){return n[e]||""}function o(t){switch(t){case ah.Error:return e.Error;case ah.Warning:return e.Warning;case ah.Info:return e.Info;case ah.Ignore:return e.Hint}}function a(t){switch(t){case e.Error:return ah.Error;case e.Warning:return ah.Warning;case e.Info:return ah.Info;case e.Hint:return ah.Ignore}}n[e.Error]=r("sev.error","Error"),n[e.Warning]=r("sev.warning","Warning"),n[e.Info]=r("sev.info","Info"),e.toString=i,e.fromSeverity=o,e.toSeverity=a}(qI||(qI={})),function(e){const t="";function n(e){return i(e,!0)}function i(e,n){let i=[t];return e.source?i.push(e.source.replace("¦","\\¦")):i.push(t),e.code?"string"===typeof e.code?i.push(e.code.replace("¦","\\¦")):i.push(e.code.value.replace("¦","\\¦")):i.push(t),void 0!==e.severity&&null!==e.severity?i.push(qI.toString(e.severity)):i.push(t),e.message&&n?i.push(e.message.replace("¦","\\¦")):i.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(t),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(t),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(t),i.push(t),i.join("¦")}e.makeKey=n,e.makeKeyOptionalMessage=i}(GI||(GI={}));const KI=Wn("markerService");class YI{constructor(){this._byResource=new Ma,this._byOwner=new Map}set(e,t,n){let i=this._byResource.get(e);i||(i=new Map,this._byResource.set(e,i)),i.set(t,n);let r=this._byOwner.get(t);r||(r=new Ma,this._byOwner.set(t,r)),r.set(e,n)}get(e,t){let n=this._byResource.get(e);return null===n||void 0===n?void 0:n.get(t)}delete(e,t){let n=!1,i=!1,r=this._byResource.get(e);r&&(n=r.delete(t));let o=this._byOwner.get(t);if(o&&(i=o.delete(e)),n!==i)throw new Error("illegal state");return n&&i}values(e){var t,n,i,r;return"string"===typeof e?null!==(n=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==n?n:xe.empty():Vt.isUri(e)?null!==(r=null===(i=this._byResource.get(e))||void 0===i?void 0:i.values())&&void 0!==r?r:xe.empty():xe.map(xe.concat(...this._byOwner.values()),e=>e[1])}}class XI{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Ma,this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===Yi.inMemory||e.scheme===Yi.walkThrough||e.scheme===Yi.walkThroughSnippet)return t;for(const{severity:n}of this._service.read({resource:e}))n===qI.Error?t.errors+=1:n===qI.Warning?t.warnings+=1:n===qI.Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class ZI{constructor(){this._onMarkerChanged=new ze,this.onMarkerChanged=Fe.debounce(this._onMarkerChanged.event,ZI._debouncer,0),this._data=new YI,this._stats=new XI(this)}dispose(){this._stats.dispose()}remove(e,t){for(const n of t||[])this.changeOne(e,n,[])}changeOne(e,t,n){if(zi(n)){const n=this._data.delete(t,e);n&&this._onMarkerChanged.fire([t])}else{const i=[];for(const r of n){const n=ZI._toMarker(e,t,r);n&&i.push(n)}this._data.set(t,e,i),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,n){let{code:i,severity:r,message:o,source:a,startLineNumber:s,startColumn:l,endLineNumber:c,endColumn:u,relatedInformation:d,tags:h}=n;if(o)return s=s>0?s:1,l=l>0?l:1,c=c>=s?c:s,u=u>0?u:l,{resource:t,owner:e,code:i,severity:r,message:o,source:a,startLineNumber:s,startColumn:l,endLineNumber:c,endColumn:u,relatedInformation:d,tags:h}}read(e=Object.create(null)){let{owner:t,resource:n,severities:i,take:r}=e;if((!r||r<0)&&(r=-1),t&&n){const e=this._data.get(n,t);if(e){const t=[];for(const n of e)if(ZI._accept(n,i)){const e=t.push(n);if(r>0&&e===r)break}return t}return[]}if(t||n){const e=this._data.values(null!==n&&void 0!==n?n:t),o=[];for(const t of e)for(const e of t)if(ZI._accept(e,i)){const t=o.push(e);if(r>0&&t===r)return o}return o}{const e=[];for(let t of this._data.values())for(let n of t)if(ZI._accept(n,i)){const t=e.push(n);if(r>0&&t===r)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _debouncer(e,t){e||(ZI._dedupeMap=new Ma,e=[]);for(const n of t)ZI._dedupeMap.has(n)||(ZI._dedupeMap.set(n,!0),e.push(n));return e}}const QI=Wn("storageService");var JI;(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(JI||(JI={}));class eA extends Ae{constructor(){super(...arguments),this._onDidChangeStorage=this._register(new ze),this._onWillSaveState=this._register(new ze),this.onWillSaveState=this._onWillSaveState.event,this.globalCache=new Map,this.workspaceCache=new Map}getCache(e){return 0===e?this.globalCache:this.workspaceCache}get(e,t,n){const i=this.getCache(t).get(e);return jo(i)?n:i}getBoolean(e,t,n){const i=this.getCache(t).get(e);return jo(i)?n:"true"===i}getNumber(e,t,n){const i=this.getCache(t).get(e);return jo(i)?n:parseInt(i,10)}store(e,t,n){if(jo(t))return this.remove(e,n);const i=String(t),r=this.getCache(n).get(e);return r===i||(this.getCache(n).set(e,i),this._onDidChangeStorage.fire({scope:n,key:e})),Promise.resolve()}remove(e,t){const n=this.getCache(t).delete(e);return n?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()}}var tA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},nA=function(e,t){return function(n,i){t(n,i,e)}};let iA=class{constructor(e){this._commandService=e}createMenu(e,t){return new rA(e,this._commandService,t,this)}};iA=tA([nA(0,qo)],iA);let rA=class e{constructor(e,t,n,i){this._id=e,this._commandService=t,this._contextKeyService=n,this._menuService=i,this._onDidChange=new ze,this._dispoables=new Ie,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(Fe.debounce(Fe.filter(og.onDidChangeMenu,e=>e.has(this._id)),()=>{},50)(this._build,this)),this._dispoables.add(Fe.debounce(this._contextKeyService.onDidChangeContext,(e,t)=>e||t.affectsSome(this._contextKeys),50)(e=>e&&this._onDidChange.fire(void 0),this))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const t=og.getMenuItems(this._id);let n;t.sort(e._compareMenuItems);for(let i of t){const t=i.group||"";if(n&&n[0]===t||(n=[t,[]],this._menuGroups.push(n)),n[1].push(i),e._fillInKbExprKeys(i.when,this._contextKeys),ng(i)&&i.command.precondition&&e._fillInKbExprKeys(i.command.precondition,this._contextKeys),ng(i)&&i.command.toggled){const t=i.command.toggled.condition||i.command.toggled;e._fillInKbExprKeys(t,this._contextKeys)}}this._onDidChange.fire(this)}get onDidChange(){return this._onDidChange.event}getActions(e){const t=[];for(let n of this._menuGroups){const[i,r]=n,o=[];for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const n=ng(t)?new lg(t.command,t.alt,e,this._contextKeyService,this._commandService):new sg(t,this._menuService,this._contextKeyService,e);o.push(n)}o.length>0&&t.push([i,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(let n of e.keys())t.add(n)}static _compareMenuItems(t,n){let i=t.group,r=n.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;let e=i.localeCompare(r);if(0!==e)return e}let o=t.order||0,a=n.order||0;return o<a?-1:o>a?1:e._compareTitles(ng(t)?t.command.title:t.title,ng(n)?n.command.title:n.title)}static _compareTitles(e,t){const n="string"===typeof e?e:e.value,i="string"===typeof t?t:t.value;return n.localeCompare(i)}};rA=tA([nA(1,qo),nA(2,Qp),nA(3,rg)],rA);const oA=Wn("markerDecorationsService");var aA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},sA=function(e,t){return function(n,i){t(n,i,e)}};function lA(e){return e.toString()}class cA extends Ae{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Le(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const n=[...this._markersData.keys()];this._markersData.clear();const i=this.model.deltaDecorations(n,t);for(let r=0;r<i.length;r++)this._markersData.set(i[r],e[r]);return 0!==n.length||0!==i.length}getMarker(e){return this._markersData.get(e.id)}}let uA=class extends Ae{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new ze),this._markerDecorations=new Map,e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(lA(e.uri));return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach(e=>{const t=this._markerDecorations.get(lA(e));t&&this._updateDecorations(t)})}_onModelAdded(e){const t=new cA(e);this._markerDecorations.set(lA(e.uri),t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(lA(e.uri));t&&(t.dispose(),this._markerDecorations.delete(lA(e.uri))),e.uri.scheme!==Yi.inMemory&&e.uri.scheme!==Yi.internal&&e.uri.scheme!==Yi.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});let n=t.map(t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)}));e.update(t,n)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let n=Jt.lift(t);if(t.severity!==qI.Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){let t=e.getWordAtPosition(n.getStartPosition());if(t)n=new Jt(n.startLineNumber,t.startColumn,n.endLineNumber,t.endColumn);else{let t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===t||(n=n.endColumn>=t?new Jt(n.startLineNumber,t-1,n.endLineNumber,t):new Jt(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){let i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new Jt(n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r=void 0,o=void 0;switch(e.severity){case qI.Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case qI.Warning:t="squiggly-warning",r=tm(Jw),n=20,i={color:tm(bw),position:xa.Inline};break;case qI.Info:t="squiggly-info",r=tm(ex),n=10;break;case qI.Error:default:t="squiggly-error",r=tm(Qw),n=30,i={color:tm(vw),position:xa.Inline};break}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:wa.Right},minimap:i,zIndex:n,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}};uA=aA([sA(0,ss),sA(1,KI)],uA);var dA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},hA=function(e,t){return function(n,i){t(n,i,e)}};let fA=class extends Ae{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new ze,this._accessibilityModeEnabledContext=Uk.bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire())})),n(),this.onDidChangeScreenReaderOptimized(()=>n())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};fA=dA([hA(0,Qp),hA(1,nf)],fA);var pA=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};class gA{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(e,t){return pA(this,void 0,void 0,(function*(){if(t)return void this.mapTextToType.set(t,e);try{return yield navigator.clipboard.writeText(e)}catch(r){console.error(r)}const n=document.activeElement,i=document.body.appendChild(so("textarea",{"aria-hidden":!0}));i.style.height="1px",i.style.width="1px",i.style.position="absolute",i.value=e,i.focus(),i.select(),document.execCommand("copy"),n instanceof HTMLElement&&n.focus(),document.body.removeChild(i)}))}readText(e){return pA(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}}))}readFindText(){return pA(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return pA(this,void 0,void 0,(function*(){this.findText=e}))}}var mA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},vA=function(e,t){return function(n,i){t(n,i,e)}},bA=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const yA=!1;function _A(e){return e.scheme===Yi.file?e.fsPath:e.path}let wA=0;class xA{constructor(e,t,n){this.id=++wA,this.type=0,this.actual=e,this.label=e.label,this.resourceLabel=t,this.strResource=n,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[${this.id}] [${this.isValid?"VALID":"INVALID"}] ${this.actual}`}}class CA{constructor(e,t){this.resourceLabel=e,this.reason=t}}class SA{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements){const n=0===i.reason?e:t;n.push(i.resourceLabel)}let n=[];return e.length>0&&n.push(r({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&n.push(r({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),n.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class kA{constructor(e,t,n){this.id=++wA,this.type=1,this.actual=e,this.label=e.label,this.resourceLabels=t,this.strResources=n,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,n){this.removedResources||(this.removedResources=new SA),this.removedResources.has(t)||this.removedResources.set(t,new CA(e,n))}setValid(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new SA),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new CA(e,0)))}toString(){return`[${this.id}] [${this.invalidatedResources?"INVALID":"VALID"}] ${this.actual}`}}class OA{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(" * [UNDO] "+this._past[t]);for(let t=this._future.length-1;t>=0;t--)e.push(" * [REDO] "+this._future[t]);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const n of this._past)t(n.actual)&&this._setElementValidFlag(n,e);for(const n of this._future)t(n.actual)&&this._setElementValidFlag(n,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);if(this._future=[],this._past.length>0){const e=this._past[this._past.length-1];0!==e.type||e.isValid||(this._past=[])}this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let n=0,i=this._past.length;n<i;n++)t.push(this._past[n].id);for(let n=this._future.length-1;n>=0;n--)t.push(this._future[n].id);return new eD(e,t)}restoreSnapshot(e){const t=e.elements.length;let n=!0,i=0,r=-1;for(let a=0,s=this._past.length;a<s;a++,i++){const o=this._past[a];n&&(i>=t||o.id!==e.elements[i])&&(n=!1,r=0),n||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let a=this._future.length-1;a>=0;a--,i++){const r=this._future[a];n&&(i>=t||r.id!==e.elements[i])&&(n=!1,o=a),n||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}-1!==r&&(this._past=this._past.slice(0,r)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const n of this._past)e.push(n.actual);for(const n of this._future)t.push(n.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class MA{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,n=this.editStacks.length;t<n;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const DA=new OA("","");DA.locked=!0;let EA=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(const n of this._editStacks)t.push(n[1].toString());console.log(t.join("\n"))}pushElement(e){if(0===e.type){const t=_A(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new xA(e,t,n))}else{const t=new Set,n=[],i=[];for(const r of e.resources){const e=_A(r),o=this.getUriComparisonKey(r);t.has(o)||(t.add(o),n.push(e),i.push(o))}1===n.length?this._pushElement(new xA(e,n[0],i[0])):this._pushElement(new kA(e,n,i))}yA&&this._print("pushElement")}_pushElement(e){for(let t=0,n=e.strResources.length;t<n;t++){const n=e.resourceLabels[t],i=e.strResources[t];let r;this._editStacks.has(i)?r=this._editStacks.get(i):(r=new OA(n,i),this._editStacks.set(i,r)),r.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const n=e.getClosestPastElement();return n?n.actual:null}return null}_splitPastWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const r of n){const e=_A(r.resource),t=this.getUriComparisonKey(r.resource),n=new xA(r,e,t);i.set(n.strResource,n)}for(const r of e.strResources){if(t&&t.has(r))continue;const n=this._editStacks.get(r);n.splitPastWorkspaceElement(e,i)}}_splitFutureWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const r of n){const e=_A(r.resource),t=this.getUriComparisonKey(r.resource),n=new xA(r,e,t);i.set(n.strResource,n)}for(const r of e.strResources){if(t&&t.has(r))continue;const n=this._editStacks.get(r);n.splitFutureWorkspaceElement(e,i)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);e.dispose(),this._editStacks.delete(t)}yA&&this._print("removeElements")}setElementsValidFlag(e,t,n){const i=this.getUriComparisonKey(e);if(this._editStacks.has(i)){const e=this._editStacks.get(i);e.setElementsValidFlag(t,n)}yA&&this._print("setElementsValidFlag")}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const n=this._editStacks.get(t);return n.createSnapshot(e)}return new eD(e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const n=this._editStacks.get(t);n.restoreSnapshot(e),n.hasPastElements()||n.hasFutureElements()||(n.dispose(),this._editStacks.delete(t))}yA&&this._print("restoreSnapshot")}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.getElements()}return{past:[],future:[]}}canUndo(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.hasPastElements()}return!1}_onError(e,t){ge(e);for(const n of t.strResources)this.removeElements(n);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,n,i=Ae.None){const r=this._acquireLocks(n);let o;try{o=t()}catch(a){return r(),i.dispose(),this._onError(a,e)}if(o)return o.then(()=>{r(),i.dispose()},t=>(r(),i.dispose(),this._onError(t,e)));r(),i.dispose()}_invokeWorkspacePrepare(e){return bA(this,void 0,void 0,(function*(){if("undefined"===typeof e.actual.prepareUndoRedo)return Ae.None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?Ae.None:t}))}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return void t(Ae.None);const n=e.actual.prepareUndoRedo();if(n){if(!De(n))return n.then(e=>{t(e)});t(n)}else t(Ae.None)}_getAffectedEditStacks(e){const t=[];for(const n of e.strResources)t.push(this._editStacks.get(n)||DA);return new MA(t)}_tryToSplitAndUndo(e,t,n,i){if(t.canSplit())return this._splitPastWorkspaceElement(t,n),this._notificationService.info(i),new TA(this.undo(e));for(const r of t.strResources)this.removeElements(r);return this._notificationService.info(i),new TA}_checkWorkspaceUndo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,r({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,r({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const r of n.editStacks)r.getClosestPastElement()!==t&&o.push(r.resourceLabel);if(o.length>0)return this._tryToSplitAndUndo(e,t,null,r({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const a=[];for(const r of n.editStacks)r.locked&&a.push(r.resourceLabel);return a.length>0?this._tryToSplitAndUndo(e,t,null,r({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,a.join(", "))):n.isValid()?null:this._tryToSplitAndUndo(e,t,null,r({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t){const n=this._getAffectedEditStacks(t),i=this._checkWorkspaceUndo(e,t,n,!1);return i?i.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,n)}_confirmAndExecuteWorkspaceUndo(e,t,n){return bA(this,void 0,void 0,(function*(){if(t.canSplit()){const i=yield this._dialogService.show(ah.Info,r("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[r({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",n.editStacks.length),r("nok","Undo this File"),r("cancel","Cancel")],{cancelId:2});if(2===i.choice)return;if(1===i.choice)return this._splitPastWorkspaceElement(t,null),this.undo(e);const o=this._checkWorkspaceUndo(e,t,n,!1);if(o)return o.returnValue}let i;try{i=yield this._invokeWorkspacePrepare(t)}catch(a){return this._onError(a,t)}const o=this._checkWorkspaceUndo(e,t,n,!0);if(o)return i.dispose(),o.returnValue;for(const e of n.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),n,i)}))}_resourceUndo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new MA([e]),n)));{const e=r({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.info(e)}}else e.flushAllElements()}undo(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(!this._editStacks.has(t))return;const n=this._editStacks.get(t),i=n.getClosestPastElement();if(i)try{return 1===i.type?this._workspaceUndo(t,i):this._resourceUndo(n,i)}finally{yA&&this._print("undo")}}canRedo(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,n,i){if(t.canSplit())return this._splitFutureWorkspaceElement(t,n),this._notificationService.info(i),new TA(this.redo(e));for(const r of t.strResources)this.removeElements(r);return this._notificationService.info(i),new TA}_checkWorkspaceRedo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,r({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,r({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const o=[];for(const r of n.editStacks)r.getClosestFutureElement()!==t&&o.push(r.resourceLabel);if(o.length>0)return this._tryToSplitAndRedo(e,t,null,r({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,o.join(", ")));const a=[];for(const r of n.editStacks)r.locked&&a.push(r.resourceLabel);return a.length>0?this._tryToSplitAndRedo(e,t,null,r({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,a.join(", "))):n.isValid()?null:this._tryToSplitAndRedo(e,t,null,r({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const n=this._getAffectedEditStacks(t),i=this._checkWorkspaceRedo(e,t,n,!1);return i?i.returnValue:this._executeWorkspaceRedo(e,t,n)}_executeWorkspaceRedo(e,t,n){return bA(this,void 0,void 0,(function*(){let i;try{i=yield this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceRedo(e,t,n,!0);if(r)return i.dispose(),r.returnValue;for(const e of n.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),n,i)}))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new MA([e]),n)));{const e=r({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.info(e)}}else e.flushAllElements()}redo(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(!this._editStacks.has(t))return;const n=this._editStacks.get(t),i=n.getClosestFutureElement();if(i)try{return 1===i.type?this._workspaceRedo(t,i):this._resourceRedo(n,i)}finally{yA&&this._print("redo")}}};EA=mA([vA(0,qE),vA(1,Lf)],EA);class TA{constructor(e){this.returnValue=e}}EO(JM,EA),n("88cb"),n("358f");const LA={ctrlCmd:!1,alt:!1};var IA;(function(e){e[e["NONE"]=0]="NONE",e[e["FIRST"]=1]="FIRST",e[e["SECOND"]=2]="SECOND",e[e["LAST"]=3]="LAST"})(IA||(IA={}));const AA=new Li(()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});function NA(e,t,n=!1){const i=e||"",r=t||"",o=AA.value.collator.compare(i,r);return AA.value.collatorIsNumeric&&0===o&&i!==r?i<r?-1:1:o}function PA(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=RA(e,t,n);if(o)return o;const a=i.endsWith(n),s=r.endsWith(n);if(a!==s)return a?-1:1;const l=NA(i,r);return 0!==l?l:i.localeCompare(r)}function RA(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=i.startsWith(n),a=r.startsWith(n);if(o!==a)return o?-1:1;if(o&&a){if(i.length<r.length)return-1;if(i.length>r.length)return 1}return 0}n("8c32");class FA{constructor(e,t){this.supportCodicons=t,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t=[],n="",i){e||(e=""),i&&(e=FA.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&ua(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.title=n,this.highlights=t,this.render())}render(){let e="",t=0;for(const n of this.highlights){if(n.end===n.start)continue;if(t<n.start){e+="<span>";const i=this.text.substring(t,n.start);e+=this.supportCodicons?fl(Object(xo["s"])(i)):Object(xo["s"])(i),e+="</span>",t=n.end}n.extraClasses?e+=`<span class="highlight ${n.extraClasses}">`:e+='<span class="highlight">';const i=this.text.substring(n.start,n.end);e+=this.supportCodicons?fl(Object(xo["s"])(i)):Object(xo["s"])(i),e+="</span>",t=n.end}if(t<this.text.length){e+="<span>";const n=this.text.substring(t);e+=this.supportCodicons?fl(Object(xo["s"])(n)):Object(xo["s"])(n),e+="</span>"}this.domNode.innerHTML=e,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let n=0,i=0;return e.replace(/\r\n|\r|\n/g,(e,r)=>{i="\r\n"===e?-1:0,r+=n;for(const n of t)n.end<=r||(n.start>=r&&(n.start+=i),n.end>=r&&(n.end+=i));return n+=i,"⏎"})}}class jA{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set title(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class BA extends Ae{constructor(e,t){super(),this.domNode=this._register(new jA(no(e,so(".monaco-icon-label"))));const n=no(this.domNode.element,so(".monaco-icon-label-container")),i=no(n,so("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new jA(no(n,so("span.monaco-icon-description-container")))),(null===t||void 0===t?void 0:t.supportHighlights)?this.nameNode=new $A(i,!!t.supportCodicons):this.nameNode=new zA(i),(null===t||void 0===t?void 0:t.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new FA(no(this.descriptionContainer.element,so("span.label-description")),!!t.supportCodicons):this.descriptionNodeFactory=()=>this._register(new jA(no(this.descriptionContainer.element,so("span.label-description"))))}setLabel(e,t,n){const i=["monaco-icon-label"];n&&(n.extraClasses&&i.push(...n.extraClasses),n.italic&&i.push("italic"),n.strikethrough&&i.push("strikethrough")),this.domNode.className=i.join(" "),this.domNode.title=(null===n||void 0===n?void 0:n.title)||"",this.nameNode.setLabel(e,n),(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof FA?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),(null===n||void 0===n?void 0:n.descriptionTitle)?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=(null===n||void 0===n?void 0:n.descriptionTitle)||"",this.descriptionNode.empty=!t))}}class zA{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!ua(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",ar(this.container,"multiple"),this.singleLabel=no(this.container,so("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",rr(this.container,"multiple"),this.singleLabel=void 0;for(let n=0;n<e.length;n++){const i=e[n],r=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${n}`;no(this.container,so("a.label-name",{id:r,"data-icon-label-count":e.length,"data-icon-label-index":n,role:"treeitem"},i)),n<e.length-1&&no(this.container,so("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}function VA(e,t,n){if(!n)return;let i=0;return e.map(e=>{const r={start:i,end:i+e.length},o=n.map(e=>vE.intersect(r,e)).filter(e=>!vE.isEmpty(e)).map(({start:e,end:t})=>({start:e-i,end:t-i}));return i=r.end+t.length,o})}class $A{constructor(e,t){this.container=e,this.supportCodicons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!ua(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",ar(this.container,"multiple"),this.singleLabel=new FA(no(this.container,so("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),this.supportCodicons)),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",rr(this.container,"multiple"),this.singleLabel=void 0;const n=(null===t||void 0===t?void 0:t.separator)||"/",i=VA(e,n,null===t||void 0===t?void 0:t.matches);for(let r=0;r<e.length;r++){const o=e[r],a=i?i[r]:void 0,s=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${r}`,l=so("a.label-name",{id:s,"data-icon-label-count":e.length,"data-icon-label-index":r,role:"treeitem"}),c=new FA(no(this.container,l),this.supportCodicons);c.set(o,a,null===t||void 0===t?void 0:t.title,null===t||void 0===t?void 0:t.labelEscapeNewLines),r<e.length-1&&no(l,so("span.label-separator",void 0,n))}}}}class WA{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}new WA("id#");const HA={},UA=new WA("quick-input-button-icon-");function qA(e){if(!e)return;let t;const n=e.dark.toString();return HA[n]?t=HA[n]:(t=UA.nextId(),Gr("."+t,"background-image: "+bo(e.light||e.dark)),Gr(`.vs-dark .${t}, .hc-black .${t}`,"background-image: "+bo(e.dark)),HA[n]=t),t}n("d557");const GA=so;class KA{constructor(e,t,n){this.os=t,this.options=n,this.domNode=no(e,GA(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}set(e,t){this.didEverRender&&this.keybinding===e&&KA.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(Ji(this.domNode),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(no(this.domNode,GA("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.didEverRender=!0}renderPart(e,t,n){const i=Of.modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null===n||void 0===n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null===n||void 0===n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null===n||void 0===n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null===n||void 0===n?void 0:n.metaKey),i.separator);const r=t.keyLabel;r&&this.renderKey(e,r,Boolean(null===n||void 0===n?void 0:n.keyCode),"")}renderKey(e,t,n,i){no(e,GA("span.monaco-keybinding-key"+(n?".highlight":""),void 0,t)),i&&no(e,GA("span.monaco-keybinding-key-separator",void 0,i))}renderUnbound(e){no(e,GA("span.monaco-keybinding-key",void 0,r("unbound","Unbound")))}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&ua(e.firstPart,t.firstPart)&&ua(e.chordPart,t.chordPart)}}var YA=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const XA=so;class ZA{constructor(e){this.hidden=!1,this._onChecked=new ze,this.onChecked=this._onChecked.event,ca(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class QA{get templateId(){return QA.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=no(e,XA(".quick-input-list-entry"));const n=no(t.entry,XA("label.quick-input-list-label"));t.toDisposeTemplate.push(fr(n,Xr.CLICK,e=>{t.checkbox.offsetParent||e.preventDefault()})),t.checkbox=no(n,XA("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(fr(t.checkbox,Xr.CHANGE,e=>{t.element.checked=t.checkbox.checked}));const i=no(n,XA(".quick-input-list-rows")),r=no(i,XA(".quick-input-list-row")),a=no(i,XA(".quick-input-list-row"));t.label=new BA(r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportCodicons:!0});const s=no(r,XA(".quick-input-list-entry-keybinding"));t.keybinding=new KA(s,o["a"]);const l=no(a,XA(".quick-input-list-label-meta"));return t.detail=new FA(l,!0),t.separator=no(t.entry,XA(".quick-input-list-separator")),t.actionBar=new BO(t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,n){n.toDisposeElement=Ee(n.toDisposeElement),n.element=e,n.checkbox.checked=e.checked,n.toDisposeElement.push(e.onChecked(e=>n.checkbox.checked=e));const{labelHighlights:i,descriptionHighlights:r,detailHighlights:o}=e,a=Object.create(null);a.matches=i||[],a.descriptionTitle=e.saneDescription,a.descriptionMatches=r||[],a.extraClasses=e.item.iconClasses,a.italic=e.item.italic,a.strikethrough=e.item.strikethrough,n.label.setLabel(e.saneLabel,e.saneDescription,a),n.keybinding.set(e.item.keybinding),n.detail.set(e.saneDetail,o),e.separator&&e.separator.label?(n.separator.textContent=e.separator.label,n.separator.style.display=""):n.separator.style.display="none",e.separator?rr(n.entry,"quick-input-list-separator-border"):ar(n.entry,"quick-input-list-separator-border"),n.actionBar.clear();const s=e.item.buttons;s&&s.length?(n.actionBar.push(s.map((t,n)=>{let i=t.iconClass||(t.iconPath?qA(t.iconPath):void 0);t.alwaysVisible&&(i=i?i+" always-visible":"always-visible");const r=new Lp("id-"+n,"",i,!0,()=>(e.fireButtonTriggered({button:t,item:e.item}),Promise.resolve()));return r.tooltip=t.tooltip||"",r}),{icon:!0,label:!1}),rr(n.entry,"has-actions")):ar(n.entry,"has-actions")}disposeElement(e,t,n){n.toDisposeElement=Ee(n.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Ee(e.toDisposeElement),e.toDisposeTemplate=Ee(e.toDisposeTemplate)}}QA.ID="listelement";class JA{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return QA.ID}}var eN;(function(e){e[e["First"]=1]="First",e[e["Second"]=2]="Second",e[e["Last"]=3]="Last",e[e["Next"]=4]="Next",e[e["Previous"]=5]="Previous",e[e["NextPage"]=6]="NextPage",e[e["PreviousPage"]=7]="PreviousPage"})(eN||(eN={}));class tN{constructor(e,t,n){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new ze,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new ze,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new ze,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new ze,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new ze,this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new ze,this.onKeyDown=this._onKeyDown.event,this._onLeave=new ze,this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=no(this.parent,XA(".quick-input-list"));const i=new JA,r=new iN;this.list=n.createList("QuickInput",this.container,i,[new QA],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:r}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{const t=new gi(e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(o["f"]?e.metaKey:e.ctrlKey)&&this.list.setFocus(Gi(this.list.length));break;case 16:const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break;case 18:const n=this.list.getFocus();1===n.length&&n[0]===this.list.length-1&&this._onLeave.fire();break}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(ur(this.container,Xr.CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"===typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return Fe.map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return Fe.map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.hidden){if(!i.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].checked&&e++;return e}getVisibleCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].hidden||e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Ee(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((n,i,r)=>{var o,a,s;if("separator"!==i.type){const l=r&&e[r-1],c=i.label&&i.label.replace(/\r?\n/g," "),u=i.description&&i.description.replace(/\r?\n/g," "),d=i.detail&&i.detail.replace(/\r?\n/g," "),h=i.ariaLabel||[c,u,d].map(e=>e&&rl(e).text).filter(e=>!!e).join(", ");n.push(new ZA({index:r,item:i,saneLabel:c,saneAriaLabel:h,saneDescription:u,saneDetail:d,labelHighlights:null===(o=i.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(a=i.highlights)||void 0===a?void 0:a.description,detailHighlights:null===(s=i.highlights)||void 0===s?void 0:s.detail,checked:!1,separator:l&&"separator"===l.type?l:void 0,fireButtonTriggered:t}))}return n},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){const e=this.list.getFocus()[0];"number"===typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const n of e)t.add(n);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===eN.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=eN.First),e===eN.Previous&&0===this.list.getFocus()[0]&&(e=eN.Last),e===eN.Second&&this.list.length<2&&(e=eN.First),e){case eN.First:this.list.focusFirst();break;case eN.Second:this.list.focusNth(1);break;case eN.Last:this.list.focusLast();break;case eN.Next:this.list.focusNext();break;case eN.Previous:this.list.focusPrevious();break;case eN.NextPage:this.list.focusNextPage();break;case eN.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];"number"===typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;e=e.trim(),e&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)?this.elements.forEach(t=>{const n=this.matchOnLabel?Uo(al(e,rl(t.saneLabel))):void 0,i=this.matchOnDescription?Uo(al(e,rl(t.saneDescription||""))):void 0,r=this.matchOnDetail?Uo(al(e,rl(t.saneDetail||""))):void 0;n||i||r?(t.labelHighlights=n,t.descriptionHighlights=i,t.detailHighlights=r,t.hidden=!1):(t.labelHighlights=void 0,t.descriptionHighlights=void 0,t.detailHighlights=void 0,t.hidden=!t.item.alwaysShow),t.separator=void 0}):this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});const t=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();t.sort((e,t)=>nN(e,t,n))}return this.elementsToIndexes=t.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const n of e)n.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Ee(this.elementDisposables),this.disposables=Ee(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}function nN(e,t,n){const i=e.labelHighlights||[],r=t.labelHighlights||[];return i.length&&!r.length?-1:!i.length&&r.length?1:0===i.length&&0===r.length?0:PA(e.saneLabel,t.saneLabel,n)}YA([Eg],tN.prototype,"onDidChangeFocus",null),YA([Eg],tN.prototype,"onDidChangeSelection",null);class iN{getWidgetAriaLabel(){return r("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}function rN(e,t={}){const n=aN(t);return n.textContent=e,n}function oN(e,t={}){const n=aN(t);return lN(n,cN(e),t.actionHandler),n}function aN(e){const t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}n("eba9");class sN{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function lN(e,t,n){let i;if(2===t.type)i=document.createTextNode(t.content||"");else if(3===t.type)i=document.createElement("b");else if(4===t.type)i=document.createElement("i");else if(5===t.type&&n){const e=document.createElement("a");e.href="#",n.disposeables.add(fr(e,"click",e=>{n.callback(String(t.index),e)})),i=e}else 7===t.type?i=document.createElement("br"):1===t.type&&(i=e);i&&e!==i&&e.appendChild(i),i&&Array.isArray(t.children)&&t.children.forEach(e=>{lN(i,e,n)})}function cN(e){const t={type:1,children:[]};let n=0,i=t;const r=[],o=new sN(e);while(!o.eos()){let e=o.next();const t="\\"===e&&0!==dN(o.peek());if(t&&(e=o.next()),!t&&uN(e)&&e===o.peek()){o.advance(),2===i.type&&(i=r.pop());const t=dN(e);if(i.type===t||5===i.type&&6===t)i=r.pop();else{const e={type:t,children:[]};5===t&&(e.index=n,n++),i.children.push(e),r.push(i),i=e}}else if("\n"===e)2===i.type&&(i=r.pop()),i.children.push({type:7});else if(2!==i.type){const t={type:2,content:e};i.children.push(t),r.push(i),i=t}else i.content+=e}return 2===i.type&&(i=r.pop()),r.length,t}function uN(e){return 0!==dN(e)}function dN(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}const hN=so,fN={inputBackground:Eb.fromHex("#3C3C3C"),inputForeground:Eb.fromHex("#CCCCCC"),inputValidationInfoBorder:Eb.fromHex("#55AAFF"),inputValidationInfoBackground:Eb.fromHex("#063B49"),inputValidationWarningBorder:Eb.fromHex("#B89500"),inputValidationWarningBackground:Eb.fromHex("#352A05"),inputValidationErrorBorder:Eb.fromHex("#BE1100"),inputValidationErrorBackground:Eb.fromHex("#5A1D1D")};class pN extends rC{constructor(e,t,n){super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new ze),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new ze),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=n||Object.create(null),la(this.options,fN,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=no(e,hN(".monaco-inputbox.idle"));let i=this.options.flexibleHeight?"textarea":"input",r=no(this.element,hN(".wrapper"));if(this.input=no(r,hN(i+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=no(r,hN("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new IC(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),no(e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));const t=Fe.filter(si(document,"selectionchange"),()=>{const e=document.getSelection();return(null===e||void 0===e?void 0:e.anchorNode)===r});this._register(t(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&this.setPlaceHolder(this.placeholder),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new BO(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage()}onFocus(){this._showMessage()}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e),this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:Pr(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return Ir(this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const e=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=e+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width=`calc(100% - ${e}px)`:this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e}stylesForType(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,n=()=>e.style.width=Ir(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=no(t,hN(".monaco-inputbox-container")),n();const i={inline:!0,className:"monaco-inputbox-message"},r=this.message.formatContent?oN(this.message.content,i):rN(this.message.content,i);r.classList.add(this.classForType(this.message.type));const o=this.stylesForType(this.message.type);return r.style.backgroundColor=o.background?o.background.toString():"",r.style.color=o.foreground?o.foreground.toString():"",r.style.border=o.border?"1px solid "+o.border:"",no(e,r),null},onHide:()=>{this.state="closed"},layout:n}),t=3===this.message.type?r("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?r("alertWarningMessage","Warning: {0}",this.message.content):r("alertInfoMessage","Info: {0}",this.message.content),_p(t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=e.charCodeAt(e.length-1),n=10===t?" ":"",i=e+n;i?this.mirror.textContent=e+n:this.mirror.innerText=" ",this.layout()}style(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()}applyStyles(){const e=this.inputBackground?this.inputBackground.toString():"",t=this.inputForeground?this.inputForeground.toString():"",n=this.inputBorder?this.inputBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor="inherit",this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=Pr(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(e){const t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;null!==n&&null!==i&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}const gN=so;class mN extends Ae{constructor(e){super(),this.parent=e,this.onKeyDown=e=>ur(this.inputBox.inputElement,Xr.KEY_DOWN,t=>{e(new gi(t))}),this.onMouseDown=e=>ur(this.inputBox.inputElement,Xr.MOUSE_DOWN,t=>{e(new wi(t))}),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=no(this.parent,gN(".quick-input-box")),this.inputBox=this._register(new pN(this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===ah.Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===ah.Info?1:e===ah.Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===ah.Info?1:e===ah.Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}n("f5ab");const vN={badgeBackground:Eb.fromHex("#4D4D4D"),badgeForeground:Eb.fromHex("#FFFFFF")};class bN{constructor(e,t){this.count=0,this.options=t||Object.create(null),la(this.options,vN,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=no(e,so(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Object(xo["v"])(this.countFormat,this.count),this.element.title=Object(xo["v"])(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const e=this.badgeBackground?this.badgeBackground.toString():"",t=this.badgeForeground?this.badgeForeground.toString():"",n=this.badgeBorder?this.badgeBorder.toString():"";this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}}}n("2adc");const yN="done",_N="active",wN="infinite",xN="discrete",CN="monaco-progress-container",SN="progress-bit",kN={progressBarBackground:Eb.fromHex("#0E70C0")};class ON extends Ae{constructor(e,t){super(),this.options=t||Object.create(null),la(this.options,kN,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new Ti(()=>lo(this.element),0)),this.create(e)}create(e){this.element=document.createElement("div"),rr(this.element,CN),e.appendChild(this.element),this.bit=document.createElement("div"),rr(this.bit,SN),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",sr(this.element,_N,wN,xN),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(e){return rr(this.element,yN),ir(this.element,wN)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",sr(this.element,xN,yN),or(this.element,_N,wN),this}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}function MN(e){const t=new Array;let n,i=0,r=0;while(null!==(n=hl.exec(e))){r=n.index||0,t.push(e.substring(i,r)),i=(n.index||0)+n[0].length;const[,o,a,s,l]=n;t.push(o?`$(${a})`:so(`span.codicon.codicon-${s}${l?".codicon-animation-"+l:""}`))}return i<e.length&&t.push(e.substring(i)),t}n("e635");const DN={buttonBackground:Eb.fromHex("#0E639C"),buttonHoverBackground:Eb.fromHex("#006BB3"),buttonForeground:Eb.white};class EN extends Ae{constructor(e,t){super(),this._onDidClick=this._register(new ze),this.options=t||Object.create(null),la(this.options,DN,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),rr(this._element,"monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(Ig.addTarget(this._element)),[Xr.CLICK,Tg.Tap].forEach(e=>{this._register(ur(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):Zr.stop(e)}))}),this._register(ur(this._element,Xr.KEY_DOWN,e=>{const t=new gi(e);let n=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),n=!0):t.equals(9)&&(this._element.blur(),n=!0),n&&Zr.stop(t,!0)})),this._register(ur(this._element,Xr.MOUSE_OVER,e=>{ir(this._element,"disabled")||this.setHoverBackground()})),this._register(ur(this._element,Xr.MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register(to(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const n=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":"",this._element.style.borderStyle=n?"solid":"",this._element.style.borderColor=n}}get element(){return this._element}set label(e){ir(this._element,"monaco-text-button")||rr(this._element,"monaco-text-button"),this.options.supportCodicons?ro(this._element,...MN(e)):this._element.textContent=e,"string"===typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(ar(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(rr(this._element,"disabled"),this._element.setAttribute("aria-disabled",String(!0)),ho(this._element))}get enabled(){return!ir(this._element,"disabled")}}var TN=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{l(i.next(e))}catch(t){o(t)}}function s(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(a,s)}l((i=i.apply(e,t||[])).next())}))};const LN=so,IN=ul("quick-input-back",dl.arrowLeft),AN={iconClass:IN.classNames,tooltip:r("quickInput.back","Back"),handle:-1};class NN extends Ae{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new ze),this.onDidHideEmitter=this._register(new ze),this.onDisposeEmitter=this._register(new ze),this.visibleDisposables=this._register(new Ie),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){this._ignoreFocusOut=e,this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire()}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||"&nbsp;"===this.ui.title.innerHTML||(this.ui.title.innerText=" ;");const t=this.getDescription();if(this.ui.description.textContent!==t&&(this.ui.description.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new Di,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter(e=>e===AN);this.ui.leftActionBar.push(e.map((e,t)=>{const n=new Lp("id-"+t,"",e.iconClass||qA(e.iconPath),!0,()=>TN(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter(e=>e!==AN);this.ui.rightActionBar.push(t.map((e,t)=>{const n=new Lp("id-"+t,"",e.iconClass||qA(e.iconPath),!0,()=>TN(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey)}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?r("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e===ah.Error){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?""+t.foreground:"",this.ui.message.style.backgroundColor=t.background?""+t.background:"",this.ui.message.style.border=t.border?"1px solid "+t.border:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}class PN extends NN{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new ze),this.onDidAcceptEmitter=this._register(new ze),this.onDidCustomEmitter=this._register(new ze),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?IA.NONE:IA.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new ze),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new ze),this.onDidTriggerItemButtonEmitter=this._register(new ze),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value=e||"",this.update()}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?LA:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(eN.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e;const t=this.ui.list.filter(this.filterValue(this.ui.inputBox.value));t&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(eN.Next),this.canSelectMany&&this.ui.list.domFocus(),Zr.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(eN.Previous):this.ui.list.focus(eN.Last),this.canSelectMany&&this.ui.list.domFocus(),Zr.stop(e,!0);break;case 12:this.ui.list.focus(eN.NextPage),this.canSelectMany&&this.ui.list.domFocus(),Zr.stop(e,!0);break;case 11:this.ui.list.focus(eN.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),Zr.stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!0}));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(eN.First),Zr.stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(eN.Last),Zr.stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.onDidAcceptEmitter.fire({inBackground:!1})})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Ni(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Ni(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.onDidAcceptEmitter.fire({inBackground:t instanceof MouseEvent&&1===t.button}))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Ni(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}registerQuickNavigation(){return ur(this.ui.container,Xr.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new gi(e),n=t.keyCode,i=this._quickNavigate.keybindings,r=i.some(e=>{const[i,r]=e.getParts();return!r&&(i.shiftKey&&4===n?!(t.ctrlKey||t.altKey||t.metaKey):!(!i.altKey||6!==n)||!(!i.ctrlKey||5!==n)||!(!i.metaKey||57!==n))});r&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.onDidAcceptEmitter.fire({inBackground:!1})),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=!1,t=!1;this._hideInput&&this._items.length>0&&(this.ui.isScreenReaderOptimized()?t=!0:e=!0),lr(this.ui.container,"hidden-input",e);const n={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany,inputBox:!e,progressBar:!e,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};if(this.ui.setVisibilities(n),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),t)this.ui.inputBox.ariaLabel="";else{const e=this.ariaLabel||this.placeholder||PN.DEFAULT_ARIA_LABEL;this.ui.inputBox.ariaLabel!==e&&(this.ui.inputBox.ariaLabel=e)}if(this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case IA.NONE:this._itemActivation=IA.FIRST;break;case IA.SECOND:this.ui.list.focus(eN.Second),this._itemActivation=IA.FIRST;break;case IA.LAST:this.ui.list.focus(eN.Last),this._itemActivation=IA.FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.validationMessage?(this.ui.message.textContent=this.validationMessage,this.showMessageDecoration(ah.Error)):(this.ui.message.textContent=null,this.showMessageDecoration(ah.Ignore)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),n.inputBox||this.ui.list.domFocus()}}PN.DEFAULT_ARIA_LABEL=r("quickInputBox.ariaLabel","Type to narrow down results.");class RN extends Ae{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new ze),this.onDidCustomEmitter=this._register(new ze),this.onDidTriggerButtonEmitter=this._register(new ze),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new ze),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new ze),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(ur(window,Xr.KEY_DOWN,e,!0)),this._register(ur(window,Xr.KEY_UP,e,!0)),this._register(ur(window,Xr.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=no(this.parentElement,LN(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=Wr(e),n=no(e,LN(".quick-input-titlebar")),i=this._register(new BO(n));i.domNode.classList.add("quick-input-left-action-bar");const o=no(n,LN(".quick-input-title")),a=this._register(new BO(n));a.domNode.classList.add("quick-input-right-action-bar");const s=no(e,LN(".quick-input-description")),l=no(e,LN(".quick-input-header")),c=no(l,LN("input.quick-input-check-all"));c.type="checkbox",this._register(fr(c,Xr.CHANGE,e=>{const t=c.checked;C.setAllVisibleChecked(t)})),this._register(ur(c,Xr.CLICK,e=>{(e.x||e.y)&&h.setFocus()}));const u=no(l,LN(".quick-input-and-message")),d=no(u,LN(".quick-input-filter")),h=this._register(new mN(d));h.setAttribute("aria-describedby",this.idPrefix+"message");const f=no(d,LN(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const p=new bN(f,{countFormat:r({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),g=no(d,LN(".quick-input-count"));g.setAttribute("aria-live","polite");const m=new bN(g,{countFormat:r({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),v=no(l,LN(".quick-input-action")),b=new EN(v);b.label=r("ok","OK"),this._register(b.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));const y=no(l,LN(".quick-input-action")),_=new EN(y);_.label=r("custom","Custom"),this._register(_.onDidClick(e=>{this.onDidCustomEmitter.fire()}));const w=no(u,LN(`#${this.idPrefix}message.quick-input-message`)),x=new ON(e);rr(x.getContainer(),"quick-input-progress");const C=this._register(new tN(e,this.idPrefix+"list",this.options));this._register(C.onChangedAllVisibleChecked(e=>{c.checked=e})),this._register(C.onChangedVisibleCount(e=>{p.setCount(e)})),this._register(C.onChangedCheckedCount(e=>{m.setCount(e)})),this._register(C.onLeave(()=>{setTimeout(()=>{h.setFocus(),this.controller instanceof PN&&this.controller.canSelectMany&&C.clearFocus()},0)})),this._register(C.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const S=to(e);return this._register(S),this._register(ur(e,Xr.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(S.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(),this.previousFocusElement=void 0})),this._register(ur(e,Xr.FOCUS,e=>{h.setFocus()})),this._register(ur(e,Xr.KEY_DOWN,t=>{const n=new gi(t);switch(n.keyCode){case 3:Zr.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:Zr.stop(t,!0),this.hide();break;case 2:if(!n.altKey&&!n.ctrlKey&&!n.metaKey){const i=[".action-label.codicon"];e.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list");const r=e.querySelectorAll(i.join(", "));n.shiftKey&&n.target===r[0]?(Zr.stop(t,!0),r[r.length-1].focus()):n.shiftKey||n.target!==r[r.length-1]||(Zr.stop(t,!0),r[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:i,titleBar:n,title:o,description:s,rightActionBar:a,checkAll:c,filterContainer:d,inputBox:h,visibleCountContainer:f,visibleCount:p,countContainer:g,count:m,okContainer:v,ok:b,message:w,customButtonContainer:y,customButton:_,progressBar:x,list:C,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},n=Ue.None){return new Promise((i,r)=>{let o=e=>{o=i,t.onKeyMods&&t.onKeyMods(a.keyMods),i(e)};if(n.isCancellationRequested)return void o(void 0);const a=this.createQuickPick();let s;const l=[a,a.onDidAccept(()=>{if(a.canSelectMany)o(a.selectedItems.slice()),a.hide();else{const e=a.activeItems[0];e&&(o(e),a.hide())}}),a.onDidChangeActive(e=>{const n=e[0];n&&t.onDidFocus&&t.onDidFocus(n)}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){const t=e[0];t&&(o(t),a.hide())}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=a.items.indexOf(e.item);if(-1!==t){const e=a.items.slice();e.splice(t,1),a.items=e}}}))),a.onDidChangeValue(e=>{!s||e||1===a.activeItems.length&&a.activeItems[0]===s||(a.activeItems=[s])}),n.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{Ee(l),o(void 0)})];a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{s=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),s&&(a.activeItems=[s])}),a.show(),Promise.resolve(e).then(void 0,e=>{r(e),a.hide()})})}createQuickPick(){const e=this.getUI();return new PN(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const n=this.controller;this.controller=e,n&&n.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(ah.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),t.message.textContent="",t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const i=this.options.backKeybindingLabel();AN.tooltip=i?r("quickInput.backWithKeybinding","Back ({0})",i):r("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description.style.display=e.description?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkAll?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(){var e;const t=this.controller;if(t){const n=!(null===(e=this.ui)||void 0===e?void 0:e.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",n||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),t.didHide()}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,RN.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:n,contrastBorder:i,widgetShadow:r}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=n?n.toString():"",this.ui.container.style.border=i?"1px solid "+i:"",this.ui.container.style.boxShadow=r?"0 5px 8px "+r:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const o=[];this.styles.list.listInactiveFocusForeground&&(o.push(`.monaco-list .monaco-list-row.focused { color: ${this.styles.list.listInactiveFocusForeground}; }`),o.push(`.monaco-list .monaco-list-row.focused:hover { color: ${this.styles.list.listInactiveFocusForeground}; }`)),this.styles.list.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);const a=o.join("\n");a!==this.ui.styleSheet.innerHTML&&(this.ui.styleSheet.innerHTML=a)}}}RN.MAX_WIDTH=600;const FN=Wn("quickInputService");var jN;(function(e){e[e["PRESERVE"]=0]="PRESERVE",e[e["LAST"]=1]="LAST"})(jN||(jN={}));const BN={Quickaccess:"workbench.contributions.quickaccess"};class zN{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),Le(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Bi([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){const t=e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0;return t||this.defaultProvider}}gh.add(BN.Quickaccess,new zN);var VN=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$N=function(e,t){return function(n,i){t(n,i,e)}};let WN=class extends Ae{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=gh.as(BN.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){var n;const[i,r]=this.getOrInstantiateProvider(e),o=this.visibleQuickAccess,a=null===o||void 0===o?void 0:o.descriptor;if(o&&r&&a===r)return e===r.prefix||(null===t||void 0===t?void 0:t.preserveValue)||(o.picker.value=e),void this.adjustValueSelection(o.picker,r,t);if(r&&!(null===t||void 0===t?void 0:t.preserveValue)){let t=void 0;if(o&&a&&a!==r){const e=o.value.substr(a.prefix.length);e&&(t=`${r.prefix}${e}`)}if(!t){const e=null===i||void 0===i?void 0:i.defaultFilterValue;e===jN.LAST?t=this.lastAcceptedPickerValues.get(r):"string"===typeof e&&(t=`${r.prefix}${e}`)}"string"===typeof t&&(e=t)}const s=new Ie,l=s.add(this.quickInputService.createQuickPick());l.value=e,this.adjustValueSelection(l,r,t),l.placeholder=null===r||void 0===r?void 0:r.placeholder,l.quickNavigate=null===t||void 0===t?void 0:t.quickNavigateConfiguration,l.hideInput=!!l.quickNavigate&&!o,("number"===typeof(null===t||void 0===t?void 0:t.itemActivation)||(null===t||void 0===t?void 0:t.quickNavigateConfiguration))&&(l.itemActivation=null!==(n=null===t||void 0===t?void 0:t.itemActivation)&&void 0!==n?n:IA.SECOND),l.contextKey=null===r||void 0===r?void 0:r.contextKey,l.filterValue=e=>e.substring(r?r.prefix.length:0),(null===r||void 0===r?void 0:r.placeholder)&&(l.ariaLabel=null===r||void 0===r?void 0:r.placeholder);const c=this.registerPickerListeners(l,i,r,e,s);i&&s.add(i.provide(l,c)),l.show()}adjustValueSelection(e,t,n){var i;let r;r=(null===n||void 0===n?void 0:n.preserveValue)?[e.value.length,e.value.length]:[null!==(i=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==i?i:0,e.value.length],e.valueSelection=r}registerPickerListeners(e,t,n,i,r){const o=this.visibleQuickAccess={picker:e,descriptor:n,value:i};r.add(Le(()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),r.add(e.onDidChangeValue(e=>{const[n]=this.getOrInstantiateProvider(e);n!==t?this.show(e,{preserveValue:!0}):o.value=e})),n&&r.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(n,e.value)}));const a=r.add(new Ge);return QC(e.onDidHide)(()=>{0===e.selectedItems.length&&a.cancel(),r.dispose()}),a.token}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let n=this.mapProviderToDescriptor.get(t);return n||(n=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,n)),[n,t]}};WN=VN([$N(0,FN),$N(1,Vn)],WN);var HN=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},UN=function(e,t){return function(n,i){t(n,i,e)}};let qN=class extends um{constructor(e,t,n,i,r){super(n),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=i,this.layoutService=r,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(WN))),this._quickAccess}createController(e=this.layoutService,t){var n,i;const r={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),returnFocus:()=>e.focus(),createList:(e,t,n,i,r)=>this.instantiationService.createInstance(AI,e,t,n,i,r),styles:this.computeStyles()},o=this._register(new RN(Object.assign(Object.assign({},r),t)));return o.layout(e.dimension,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0),this._register(e.onLayout(t=>{var n,i;return o.layout(t,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0)})),this._register(o.onShow(()=>this.resetContextKeys())),this._register(o.onHide(()=>this.resetContextKeys())),o}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new Zp(e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},n=Ue.None){return this.controller.pick(e,t,n)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},IE(this.theme,{quickInputBackground:T_,quickInputForeground:L_,quickInputTitleBackground:I_,contrastBorder:Hy,widgetShadow:qy})),inputBox:IE(this.theme,{inputForeground:Ky,inputBackground:Gy,inputBorder:Yy,inputValidationInfoBackground:Xy,inputValidationInfoForeground:Zy,inputValidationInfoBorder:Qy,inputValidationWarningBackground:Jy,inputValidationWarningForeground:e_,inputValidationWarningBorder:t_,inputValidationErrorBackground:n_,inputValidationErrorForeground:i_,inputValidationErrorBorder:r_}),countBadge:IE(this.theme,{badgeBackground:u_,badgeForeground:d_,badgeBorder:Hy}),button:IE(this.theme,{buttonForeground:s_,buttonBackground:l_,buttonHoverBackground:c_,buttonBorder:Hy}),progressBar:IE(this.theme,{progressBarBackground:m_}),list:IE(this.theme,{listBackground:T_,listInactiveFocusForeground:X_,listInactiveFocusBackground:Y_,listFocusOutline:Uy,listInactiveFocusOutline:Uy,pickerGroupBorder:N_,pickerGroupForeground:A_})}}};qN=HN([UN(0,Vn),UN(1,Qp),UN(2,em),UN(3,Hk),UN(4,$E)],qN);var GN=function(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},KN=function(e,t){return function(n,i){t(n,i,e)}};let YN=class extends qN{constructor(e,t,n,i,r,o){super(t,n,i,r,o),this.host=void 0;const a=ZN.get(e);this.host={_serviceBrand:void 0,get container(){return a.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};YN=GN([KN(1,Vn),KN(2,Qp),KN(3,em),KN(4,Hk),KN(5,$E)],YN);let XN=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const n=t=this.instantiationService.createInstance(YN,e);this.mapEditorToService.set(e,t),QC(e.onDidDispose)(()=>{n.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},n=Ue.None){return this.activeService.pick(e,t,n)}createQuickPick(){return this.activeService.createQuickPick()}};XN=GN([KN(0,Vn),KN(1,Un)],XN);class ZN{constructor(e){this.editor=e,this.widget=new QN(this.editor)}static get(e){return e.getContribution(ZN.ID)}dispose(){this.widget.dispose()}}ZN.ID="editor.controller.quickInput";class QN{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return QN.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}QN.ID="editor.contrib.quickInputWidget",vg(ZN.ID,ZN);const JN=Wn("IStorageKeysSyncRegistryService");class eP extends Ae{constructor(){super(),this._storageKeys=new Map,this._onDidChangeStorageKeys=this._register(new ze),this._register(Le(()=>this._storageKeys.clear()))}get storageKeys(){return[...this._storageKeys.values()]}registerStorageKey(e){this._storageKeys.has(e.key)||(this._storageKeys.set(e.key,e),this._onDidChangeStorageKeys.fire(this.storageKeys))}}var tP;(function(e){const t=new Wk;class n{constructor(e,t){this._serviceId=e,this._factory=t,this._value=null}get id(){return this._serviceId}get(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value}}e.LazyStaticService=n;let i=[];function r(e,t){let r=new n(e,t);return i.push(r),r}function o(e){let t=new Wk;for(const[i,r]of TO())t.set(i,r);for(let i in e)e.hasOwnProperty(i)&&t.set(Wn(i),e[i]);i.forEach(n=>t.set(n.id,n.get(e)));let n=new ZE(t,!0);return t.set(Vn,n),[t,n]}e.init=o,e.instantiationService=r(Vn,()=>new ZE(t,!0));const a=new rp;e.configurationService=r(nf,()=>a),e.resourceConfigurationService=r(Pu,()=>new op(a)),e.resourcePropertiesService=r(Ru,()=>new ap(a)),e.contextService=r(Af,()=>new lp),e.labelService=r(JE,()=>new dp),e.telemetryService=r(cg,()=>new sp),e.dialogService=r(qE,()=>new Jf),e.notificationService=r(Lf,()=>new ep),e.markerService=r(KI,()=>new ZI),e.modeService=r(IM,e=>new QM),e.standaloneThemeService=r(xM,()=>new nE),e.logService=r(Fu,()=>new Vu),e.undoRedoService=r(JM,t=>new EA(e.dialogService.get(t),e.notificationService.get(t))),e.modelService=r(ss,t=>new dD(e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t),e.undoRedoService.get(t))),e.markerDecorationsService=r(oA,t=>new uA(e.modelService.get(t),e.markerService.get(t))),e.codeEditorService=r(Un,t=>new ED(e.standaloneThemeService.get(t))),e.editorProgressService=r(nM,()=>new Qf),e.storageService=r(QI,()=>new eA),e.storageSyncService=r(JN,()=>new eP),e.editorWorkerService=r(Jl,t=>new Xu(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t)))})(tP||(tP={}));class nP extends Ae{constructor(e,t){super();const[n,i]=tP.init(t);this._serviceCollection=n,this._instantiationService=i;const r=this.get(nf),o=this.get(Lf),a=this.get(cg),s=this.get(em),l=this.get(Fu);let c=(e,n)=>{let i=null;return t&&(i=t[e.toString()]),i||(i=n()),this._serviceCollection.set(e,i),i},u=c(Qp,()=>this._register(new pE(r)));c(Hk,()=>new fA(u,r)),c(uI,()=>new dI(s));let d=c(qo,()=>new tp(this._instantiationService)),h=c(CM,()=>this._register(new np(u,d,a,o,l,e))),f=c($E,()=>new hp(tP.codeEditorService.get(Un),e));c(FN,()=>new XN(i,tP.codeEditorService.get(Un)));let p=c(XO,()=>this._register(new UE(f)));c(eM,()=>new gA),c(ZO,()=>{const e=new VE(a,o,p,h,s);return e.configure({blockMouse:!1}),this._register(e)}),c(rg,()=>new iA(d)),c(lh,()=>new up(tP.modelService.get(ss)))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}function iP(e,t,n){let i=new nP(e,t),r=null;i.has(ec)||(r=new Zf(tP.modelService.get()),i.set(ec,r)),i.has(Yo)||i.set(Yo,new ia(i.get(Un),i.get(qo)));let o=n(i);return r&&r.setEditor(o),o}function rP(e,t,n){return iP(e,n||{},n=>new TM(e,t,n,n.get(Vn),n.get(Un),n.get(qo),n.get(Qp),n.get(CM),n.get(XO),n.get(xM),n.get(Lf),n.get(nf),n.get(Hk)))}function oP(e){return tP.codeEditorService.get().onCodeEditorAdd(t=>{e(t)})}function aP(e,t,n){return iP(e,n||{},n=>new LM(e,t,n,n.get(Vn),n.get(Qp),n.get(CM),n.get(XO),n.get(Jl),n.get(Un),n.get(xM),n.get(Lf),n.get(nf),n.get(ZO),n.get(nM),n.get(eM)))}function sP(e,t){return new fa(e,t)}function lP(e,t,n){return tP.modelService.get().createModel(e,t,n)}function cP(e,t,n){if(e=e||"",!t){let t=e.indexOf("\n"),i=e;return-1!==t&&(i=e.substring(0,t)),lP(e,tP.modeService.get().createByFilepathOrFirstLine(n||null,i),n)}return lP(e,tP.modeService.get().create(t),n)}function uP(e,t){tP.modelService.get().setMode(e,tP.modeService.get().create(t))}function dP(e,t,n){e&&tP.markerService.get().changeOne(t,e.uri,n)}function hP(e){return tP.markerService.get().read(e)}function fP(e){return tP.modelService.get().getModel(e)}function pP(){return tP.modelService.get().getModels()}function gP(e){return tP.modelService.get().onModelAdded(e)}function mP(e){return tP.modelService.get().onModelRemoved(e)}function vP(e){return tP.modelService.get().onModelModeChanged(t=>{e({model:t.model,oldLanguage:t.oldModeId})})}function bP(e){return id(tP.modelService.get(),e)}function yP(e,t){const n=tP.standaloneThemeService.get();return n.registerEditorContainer(e),th.colorizeElement(n,tP.modeService.get(),e,t)}function _P(e,t,n){const i=tP.standaloneThemeService.get();return i.registerEditorContainer(document.body),th.colorize(tP.modeService.get(),e,t,n)}function wP(e,t,n=4){const i=tP.standaloneThemeService.get();return i.registerEditorContainer(document.body),th.colorizeModelLine(e,t,n)}function xP(e){let t=Ul.get(e);return t||{getInitialState:()=>Gl,tokenize:(t,n,i)=>Xl(e,t,n,i)}}function CP(e,t){let n=tP.modeService.get();n.triggerMode(t);let i=xP(t),r=e.split(/\r\n|\r|\n/),o=[],a=i.getInitialState();for(let s=0,l=r.length;s<l;s++){let e=r[s],t=i.tokenize(e,a,0);o[s]=t.tokens,a=t.endState}return o}function SP(e,t){tP.standaloneThemeService.get().defineTheme(e,t)}function kP(e){tP.standaloneThemeService.get().setTheme(e)}function OP(){Mp()}function MP(){return{create:rP,onDidCreateEditor:oP,createDiffEditor:aP,createDiffNavigator:sP,createModel:cP,setModelLanguage:uP,setModelMarkers:dP,getModelMarkers:hP,getModels:pP,getModel:fP,onDidCreateModel:gP,onWillDisposeModel:mP,onDidChangeModelLanguage:vP,createWebWorker:bP,colorizeElement:yP,colorize:_P,colorizeModelLine:wP,tokenize:CP,defineTheme:SP,setTheme:kP,remeasureFonts:OP,AccessibilitySupport:on,ContentWidgetPositionPreference:un,CursorChangeReason:dn,DefaultEndOfLine:hn,EditorAutoIndentStrategy:pn,EditorOption:gn,EndOfLinePreference:mn,EndOfLineSequence:vn,MinimapPosition:xn,MouseTargetType:Cn,OverlayWidgetPositionPreference:Sn,OverviewRulerLane:kn,RenderLineNumbersType:On,RenderMinimap:Mn,ScrollbarVisibility:En,ScrollType:Dn,TextEditorCursorBlinkingStyle:Nn,TextEditorCursorStyle:Pn,TrackedRangeStickiness:Rn,WrappingIndent:Fn,ConfigurationChangedEvent:p,BareFontInfo:va,FontInfo:ba,TextModelResolvedOptions:Ca,FindMatch:Sa,EditorType:_a,EditorOptions:he}}function DP(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const n of t)if(!e(n))return!1;return!0}function EP(e,t){return"boolean"===typeof e?e:t}function TP(e,t){return"string"===typeof e?e:t}function LP(e){const t={};for(const n of e)t[n]=!0;return t}function IP(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const n=LP(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function AP(e,t){let n=0;while(t.indexOf("@")>=0&&n<5)n++,t=t.replace(/@(\w+)/g,(function(n,i){let r="";if("string"===typeof e[i])r=e[i];else{if(!(e[i]&&e[i]instanceof RegExp))throw void 0===e[i]?zd(e,"language definition does not contain attribute '"+i+"', used at: "+t):zd(e,"attribute reference '"+i+"' must be a string, used at: "+t);r=e[i].source}return Rd(r)?"":"(?:"+r+")"}));let i=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,i)}function NP(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;let e=n.split(".");if(e.unshift(n),i<e.length)return e[i]}return null}function PP(e,t,n,i){let r=-1,o=n,a=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);a&&(a[3]&&(r=parseInt(a[3]),a[2]&&(r+=100)),o=a[4]);let s,l="~",c=o;if(o&&0!==o.length?/^\w*$/.test(c)?l="==":(a=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),a&&(l=a[1],c=a[2])):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){let n=e[c];if(!n)throw zd(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!DP((function(e){return"string"===typeof e}),n))throw zd(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);let i=IP(n,e.ignoreCase);s=function(e){return"@"===l?i(e):!i(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){let t=AP(e,"^"+c+"$");s=function(e){return"~"===l?t.test(e):!t.test(e)}}else s=function(t,n,i,r){let o=AP(e,"^"+Vd(e,c,n,i,r)+"$");return o.test(t)};else if(c.indexOf("$")<0){let t=Fd(e,c);s=function(e){return"=="===l?e===t:e!==t}}else{let t=Fd(e,c);s=function(n,i,r,o,a){let s=Vd(e,t,i,r,o);return"=="===l?n===s:n!==s}}else{let t=IP(c.split("|"),e.ignoreCase);s=function(e){return"~"===l?t(e):!t(e)}}return-1===r?{name:n,value:i,test:function(e,t,n,i){return s(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){let o=NP(e,t,n,r);return s(o||"",e,t,n,i)}}}function RP(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw zd(e,"a 'token' attribute must be of type string, in rule: "+t);{let i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw zd(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw zd(e,"the next state must be a string value in rule: "+t);{let r=n.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!Wd(e,Vd(e,r,"",[],""))))throw zd(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=r}}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}}if(Array.isArray(n)){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=RP(e,t,n[r]);return{group:i}}if(n.cases){let i=[];for(let o in n.cases)if(n.cases.hasOwnProperty(o)){const r=RP(e,t,n.cases[o]);"@default"===o||"@"===o||""===o?i.push({test:void 0,value:r,name:o}):"@eos"===o?i.push({test:function(e,t,n,i){return i},value:r,name:o}):i.push(PP(e,t,o,r))}const r=e.defaultToken;return{test:function(e,t,n,o){for(const r of i){const i=!r.test||r.test(e,t,n,o);if(i)return r.value}return r}}}throw zd(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class FP{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw zd(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=AP(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}setAction(e,t){this.action=RP(e,this.name,t)}}function jP(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");let n={};n.languageId=e,n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=EP(t.ignoreCase,!1),n.unicode=EP(t.unicode,!1),n.tokenPostfix=TP(t.tokenPostfix,"."+n.languageId),n.defaultToken=TP(t.defaultToken,"source"),n.usesEmbedded=!1;let i=t;function r(e,o,a){for(const s of a){let a=s.include;if(a){if("string"!==typeof a)throw zd(n,"an 'include' attribute must be a string at: "+e);if("@"===a[0]&&(a=a.substr(1)),!t.tokenizer[a])throw zd(n,"include target '"+a+"' is not defined at: "+e);r(e+"."+a,o,t.tokenizer[a])}else{const t=new FP(e);if(Array.isArray(s)&&s.length>=1&&s.length<=3)if(t.setRegex(i,s[0]),s.length>=3)if("string"===typeof s[1])t.setAction(i,{token:s[1],next:s[2]});else{if("object"!==typeof s[1])throw zd(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);{const e=s[1];e.next=s[2],t.setAction(i,e)}}else t.setAction(i,s[1]);else{if(!s.regex)throw zd(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);s.name&&"string"===typeof s.name&&(t.name=s.name),s.matchOnlyAtStart&&(t.matchOnlyAtLineStart=EP(s.matchOnlyAtLineStart,!1)),t.setRegex(i,s.regex),t.setAction(i,s.action)}o.push(t)}}}if(i.languageId=e,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw zd(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(let a in t.tokenizer)if(t.tokenizer.hasOwnProperty(a)){n.start||(n.start=a);const e=t.tokenizer[a];n.tokenizer[a]=new Array,r("tokenizer."+a,n.tokenizer[a],e)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw zd(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];let o=[];for(let a of t.brackets){let e=a;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw zd(n,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw zd(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:e.token+n.tokenPostfix,open:Fd(n,e.open),close:Fd(n,e.close)})}return n.brackets=o,n.noThrow=!0,n}function BP(e){qM.registerLanguage(e)}function zP(){let e=[];return e=e.concat(qM.getLanguages()),e}function VP(e){let t=tP.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function $P(e,t){let n=tP.modeService.get().onDidCreateMode(i=>{i.getId()===e&&(n.dispose(),t())});return n}function WP(e,t){let n=tP.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return Uc.register(n,t)}class HP{constructor(e){this._actual=e}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n){throw new Error("Not supported!")}tokenize2(e,t){let n=this._actual.tokenizeEncoded(e,t);return new rn(n.tokens,n.endState)}}class UP{constructor(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}getInitialState(){return this._actual.getInitialState()}_toClassicTokens(e,t,n){let i=[],r=0;for(let o=0,a=e.length;o<a;o++){const a=e[o];let s=a.startIndex;0===o?s=0:s<r&&(s=r),i[o]=new tn(s+n,a.scopes,t),r=s}return i}tokenize(e,t,n){let i,r=this._actual.tokenize(e,t),o=this._toClassicTokens(r.tokens,this._languageIdentifier.language,n);return i=r.endState.equals(t)?t:r.endState,new nn(o,i)}_toBinaryTokens(e,t){const n=this._languageIdentifier.id,i=this._standaloneThemeService.getColorTheme().tokenTheme;let r=[],o=0,a=0;for(let l=0,c=e.length;l<c;l++){const s=e[l],c=i.match(n,s.scopes);if(o>0&&r[o-1]===c)continue;let u=s.startIndex;0===l?u=0:u<a&&(u=a),r[o++]=u+t,r[o++]=c,a=u}let s=new Uint32Array(o);for(let l=0;l<o;l++)s[l]=r[l];return s}tokenize2(e,t,n){let i,r=this._actual.tokenize(e,t),o=this._toBinaryTokens(r.tokens,n);return i=r.endState.equals(t)?t:r.endState,new rn(o,i)}}function qP(e){return"tokenizeEncoded"in e}function GP(e){return e&&"function"===typeof e.then}function KP(e,t){let n=tP.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);const i=e=>qP(e)?new HP(e):new UP(tP.standaloneThemeService.get(),n,e);return GP(t)?Ul.registerPromise(e,t.then(e=>i(e))):Ul.register(e,i(t))}function YP(e,t){const n=t=>eh(tP.modeService.get(),tP.standaloneThemeService.get(),e,jP(e,t));return GP(t)?Ul.registerPromise(e,t.then(e=>n(e))):Ul.register(e,n(t))}function XP(e,t){return xl.register(e,t)}function ZP(e,t){return Cl.register(e,t)}function QP(e,t){return kl.register(e,t)}function JP(e,t){return Ol.register(e,{provideHover:(e,n,i)=>{let r=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then(e=>{if(e)return!e.range&&r&&(e.range=new Jt(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),e.range||(e.range=new Jt(n.lineNumber,n.column,n.lineNumber,n.column)),e})}})}function eR(e,t){return Ml.register(e,t)}function tR(e,t){return Dl.register(e,t)}function nR(e,t){return El.register(e,t)}function iR(e,t){return Tl.register(e,t)}function rR(e,t){return Il.register(e,t)}function oR(e,t){return Al.register(e,t)}function aR(e,t){return Nl.register(e,t)}function sR(e,t){return Pl.register(e,{provideCodeActions:(e,n,i,r)=>{let o=tP.markerService.get().read({resource:e.uri}).filter(e=>Jt.areIntersectingOrTouching(e,n));return t.provideCodeActions(e,n,{markers:o,only:i.only},r)}})}function lR(e,t){return Rl.register(e,t)}function cR(e,t){return Fl.register(e,t)}function uR(e,t){return jl.register(e,t)}function dR(e,t){return Bl.register(e,t)}function hR(e,t){return Sl.register(e,t)}function fR(e,t){return zl.register(e,t)}function pR(e,t){return $l.register(e,t)}function gR(e,t){return Ll.register(e,t)}function mR(e,t){return Vl.register(e,t)}function vR(e,t){return Wl.register(e,t)}function bR(e,t){return Hl.register(e,t)}function yR(){return{register:BP,getLanguages:zP,onLanguage:$P,getEncodedLanguageId:VP,setLanguageConfiguration:WP,setTokensProvider:KP,setMonarchTokensProvider:YP,registerReferenceProvider:XP,registerRenameProvider:ZP,registerCompletionItemProvider:hR,registerSignatureHelpProvider:QP,registerHoverProvider:JP,registerDocumentSymbolProvider:eR,registerDocumentHighlightProvider:tR,registerOnTypeRenameProvider:nR,registerDefinitionProvider:iR,registerImplementationProvider:rR,registerTypeDefinitionProvider:oR,registerCodeLensProvider:aR,registerCodeActionProvider:sR,registerDocumentFormattingEditProvider:lR,registerDocumentRangeFormattingEditProvider:cR,registerOnTypeFormattingEditProvider:uR,registerLinkProvider:dR,registerColorProvider:fR,registerFoldingRangeProvider:pR,registerDeclarationProvider:gR,registerSelectionRangeProvider:mR,registerDocumentSemanticTokensProvider:vR,registerDocumentRangeSemanticTokensProvider:bR,DocumentHighlightKind:fn,CompletionItemKind:sn,CompletionItemTag:ln,CompletionItemInsertTextRule:an,SymbolKind:In,SymbolTag:An,IndentAction:bn,CompletionTriggerKind:cn,SignatureHelpTriggerKind:Ln,FoldingRangeKind:wl}}const _R=self;he.wrappingIndent.defaultValue=0,he.glyphMargin.defaultValue=!1,he.autoIndent.defaultValue=3,he.overviewRulerLanes.defaultValue=2;const wR=zn();wR.editor=MP(),wR.languages=yR();const xR=wR.CancellationTokenSource,CR=wR.Emitter,SR=wR.KeyCode,kR=wR.KeyMod,OR=wR.Position,MR=wR.Range,DR=wR.Selection,ER=wR.SelectionDirection,TR=wR.MarkerSeverity,LR=wR.MarkerTag,IR=wR.Uri,AR=wR.Token,NR=wR.editor,PR=wR.languages;_R.monaco=wR,"undefined"!==typeof _R.require&&"function"===typeof _R.require.config&&_R.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},"7f17":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"7f36":function(e,t,n){"use strict";var i=n("7eca");n.d(t,"a",(function(){return i["languages"]}))},"7f82":function(e,t,n){var i=n("eee7");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"80db":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},8120:function(e,t,n){"use strict";var i=n("83ec"),r=n("3395").trim,o=n("c55c");i({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"826e":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n("eb46"),n("2c50"),n("9bf1"),n("d927"),n("ef61"),n("fa89"),n("2eb0"),n("f05e"),n("b485"),n("a8de"),n("7352"),n("8120"),n("f96e"),n("b13d");var i,r,o,a=n("5491"),s=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/,c={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"'":"\\'","\\":"\\\\"};function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.space||2,i=0!=t.dropQuotesOnKeys,r=t.dropQuotesOnNumbers||!1,o=t.inlineShortArrays||!1,a=t.inlineShortArraysDepth||1,s=t.quoteType||"single",l=t.minify||!1;r&&d(e);var c=p(e,null,l?void 0:n,i,s);if(o&&!l){var u=f(c);if(a>1)for(var h=1;h<a;h++)if(c=u,u=f(c),u==c)break;c=u}return c}function d(e){if(h(e)){var t=Object.keys(e);t&&t.forEach((function(t){var n=e[t];if("string"==typeof n){var i=n-0;e[t]=isNaN(i)?n:i}else(h(n)||Array.isArray(n))&&d(n)}))}}function h(e){return e&&"object"==Object(a["a"])(e)}function f(e,t){if(t||(t=80),"number"!=typeof t||t<20)throw"Invalid width '"+t+"'. Expecting number equal or larger than 20.";var n=e.split("\n"),i=0,r=null,o=[];while(i<n.length){var a=!!n[i].match(/\[/),s=!!n[i].match(/\],?/);if(a&&!s)o=[n[i]],r=i;else if(s&&!a&&r){o.push((n[i]||"").trim());var l=o.join(" ");l.length<t&&(n.splice(r,i-r+1,l),i=r),r=null,o=[]}else r&&o.push((n[i]||"").trim());i+=1}return n.join("\n")}function p(e,t,n,s,l){var c;if(i="",r="","number"===typeof n)for(c=0;c<n;c+=1)r+=" ";else"string"===typeof n&&(r=n);if(o=t,t&&"function"!==typeof t&&("object"!==Object(a["a"])(t)||"number"!==typeof t.length))throw new Error("JSON.stringify");return g("",{"":e},s,l)}function g(e,t,n,s){var l,c,u,d,h,f=i,p=t[e];switch(p&&"object"===Object(a["a"])(p)&&"function"===typeof p.toJSON&&(p=p.toJSON(e)),"function"===typeof o&&(p=o.call(t,e,p)),Object(a["a"])(p)){case"function":return p;case"string":return m(p,s);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=r,h=[],"[object Array]"===Object.prototype.toString.apply(p)){for(d=p.length,l=0;l<d;l+=1)h[l]=g(l,p,n,s)||"null";return u=0===h.length?"[]":i?"[\n"+i+h.join(",\n"+i)+"\n"+f+"]":"["+h.join(",")+"]",i=f,u}if(o&&"object"===Object(a["a"])(o))for(d=o.length,l=0;l<d;l+=1)"string"===typeof o[l]&&(c=o[l],u=g(c,p,n,s),u&&h.push((n?v(c,s):m(c,s))+(i?": ":":")+u));else for(c in p)Object.prototype.hasOwnProperty.call(p,c)&&(u=g(c,p,n,s),u&&h.push((n?v(c,s):m(c,s))+(i?": ":":")+u));return u=0===h.length?"{}":i?"{\n"+i+h.join(",\n"+i)+"\n"+f+"}":"{"+h.join(",")+"}",i=f,u}}function m(e,t){s.lastIndex=0;var n='"';return"single"===t&&(n="'"),s.test(e)?n+e.replace(s,(function(e){var t=c[e];return"string"===typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+n:n+e+n}function v(e,t){return l.test(e)?e:m(e,t)}},"83ec":function(e,t,n){var i=n("e244"),r=n("42b1").f,o=n("69f1"),a=n("7d86"),s=n("72c7"),l=n("8c42"),c=n("a056");e.exports=function(e,t){var n,u,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=r(u,d),h=p&&p.value):h=u[d],n=c(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f===typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(u,d,f,e)}}},"84f7":function(e,t,n){var i=n("55ab"),r=n("b896").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},"863c":function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"a",(function(){return o})),n("c225"),n("37fd"),n("eb46"),n("7e50"),n("2c69"),n("ef61"),n("f96e")},"88cb":function(e,t,n){var i=n("1ffd");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("58a21d71",i,!0,{sourceMap:!1,shadowMode:!1})},"8a56":function(e,t,n){var i=n("c0db");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("c96a2cea",i,!0,{sourceMap:!1,shadowMode:!1})},"8aa3":function(e,t,n){var i=n("d6ed"),r=n("b4fd"),o=n("c673"),a=n("ce47"),s=n("f152"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(f,p,g,m){for(var v,b,y=o(f),_=r(y),w=i(p,g,3),x=a(_.length),C=0,S=m||s,k=t?S(f,x):n?S(f,0):void 0;x>C;C++)if((h||C in _)&&(v=_[C],b=w(v,C,y),e))if(t)k[C]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return C;case 2:l.call(k,v)}else if(u)return!1;return d?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},"8c32":function(e,t,n){var i=n("e09a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("bbcfab50",i,!0,{sourceMap:!1,shadowMode:!1})},"8c42":function(e,t,n){var i=n("fe32"),r=n("c1ca"),o=n("42b1"),a=n("b896");e.exports=function(e,t){for(var n=r(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||s(e,u,l(t,u))}}},"8d60":function(e,t,n){"use strict";var i=n("83ec"),r=n("8aa3").map,o=n("72d4"),a=n("9f1e"),s=o("map"),l=a("map");i({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"8dab":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{-moz-user-select:none;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;-ms-touch-action:none;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-multiple,.monaco-list.selection-single{outline:0!important}.monaco-list:focus .monaco-list-row.selected .codicon{color:inherit}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute}.monaco-list-type-filter{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;border-radius:2px;padding:0 3px;max-width:calc(100% - 10px);text-overflow:ellipsis;overflow:hidden;text-align:right;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:all-scroll;font-size:13px;line-height:18px;height:20px;z-index:1;top:4px}.monaco-list-type-filter.dragging{-webkit-transition:top .2s,left .2s;transition:top .2s,left .2s}.monaco-list-type-filter.ne{right:4px}.monaco-list-type-filter.nw{left:4px}.monaco-list-type-filter>.controls{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .2s;transition:width .2s;width:0}.monaco-list-type-filter.dragging>.controls,.monaco-list-type-filter:hover>.controls{width:36px}.monaco-list-type-filter>.controls>*{border:none;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;background:none;width:16px;height:16px;-ms-flex-negative:0;flex-shrink:0;margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}.monaco-list-type-filter>.controls>.filter{margin-left:4px}.monaco-list-type-filter-message{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-list-type-filter{cursor:-webkit-grab;cursor:grab}.monaco-list-type-filter.dragging{cursor:-webkit-grabbing;cursor:grabbing}",""]),e.exports=t},"8ece":function(e,t,n){var i=n("5a37");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("32d786fc",i,!0,{sourceMap:!1,shadowMode:!1})},"8fed":function(e,t,n){var i=n("ac97");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},9368:function(e,t,n){var i=n("3c82");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("3e21d075",i,!0,{sourceMap:!1,shadowMode:!1})},9550:function(e,t,n){var i=n("2f6c"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"95d1":function(e,t,n){var i=n("e244"),r=n("a909"),o=n("e2da"),a=n("69f1"),s=n("1810"),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(g){f[l]=u}if(f[c]||a(f,c,d),r[d])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(g){f[p]=o[p]}}}},"986e":function(e,t,n){var i=n("f0db"),r=n("2f6c");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"99ab":function(e,t,n){var i=n("83ec"),r=n("d362");i({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},"9b09":function(e,t,n){var i=n("0952");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("668d59b8",i,!0,{sourceMap:!1,shadowMode:!1})},"9bf1":function(e,t,n){"use strict";var i=n("83ec"),r=n("eee7"),o=n("5a43"),a=n("3352"),s=n("ce47"),l=n("45ad"),c=n("acd4"),u=n("1810"),d=n("72d4"),h=n("9f1e"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,u,d=l(this),h=s(d.length),f=a(e,h),p=a(void 0===t?h:t,h);if(o(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(d,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),u=0;f<p;f++,u++)f in d&&c(i,u,d[f]);return i.length=u,i}})},"9c85":function(e,t,n){var i=n("eca0");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("46bf518f",i,!0,{sourceMap:!1,shadowMode:!1})},"9d6f":function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-moz-user-select:none;user-select:none;-webkit-user-select:none;-ms-user-select:none}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkz{display:inline-block}",""]),e.exports=t},"9f1e":function(e,t,n){var i=n("55ab"),r=n("ac97"),o=n("fe32"),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!r((function(){if(c&&!i)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},a056:function(e,t,n){var i=n("ac97"),r=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},a078:function(e,t,n){"use strict";var i=n("4eaf").charAt,r=n("35d6"),o=n("325d"),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},a0c9:function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},a23c:function(e,t,n){var i=n("e263");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("f22d8072",i,!0,{sourceMap:!1,shadowMode:!1})},a2e5:function(e,t,n){var i=n("3f13");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("b6bc25aa",i,!0,{sourceMap:!1,shadowMode:!1})},a52d:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}",""]),e.exports=t},a53d:function(e,t,n){var i=n("1810"),r=n("d85b"),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},a55b:function(e,t,n){var i=n("fbcf"),r=n("7f17"),o=n("1810"),a=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},a5f6:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-config-container"},[n("el-form",{attrs:{"label-position":"left","label-suffix":":","label-width":"130px",size:"small"}},[n("el-form-item",{attrs:{label:"标签对齐方式"}},[n("el-select",{attrs:{placeholder:"标签对齐方式"},model:{value:e.data.labelPosition,callback:function(t){e.$set(e.data,"labelPosition",t)},expression:"data.labelPosition"}},[n("el-option",{attrs:{label:"左对齐",value:"left"}}),n("el-option",{attrs:{label:"右对齐",value:"right"}}),n("el-option",{attrs:{label:"顶部对齐",value:"top"}})],1)],1),n("el-form-item",{attrs:{label:"标签宽度"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:80,max:200,step:10,"controls-position":"right",placeholder:"标签宽度"},model:{value:e.data.labelWidth,callback:function(t){e.$set(e.data,"labelWidth",t)},expression:"data.labelWidth"}})],1),n("el-form-item",{attrs:{label:"标签后缀"}},[n("el-input",{attrs:{placeholder:"标签后缀"},model:{value:e.data.labelSuffix,callback:function(t){e.$set(e.data,"labelSuffix",t)},expression:"data.labelSuffix"}})],1),n("el-form-item",{attrs:{label:"项之间的间隔"}},[n("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:60,step:5,"controls-position":"right",placeholder:"项之间的间隔"},model:{value:e.data.gutter,callback:function(t){e.$set(e.data,"gutter",t)},expression:"data.gutter"}})],1),n("el-form-item",{attrs:{label:"多分组转标签"}},[n("el-switch",{attrs:{"active-color":"#409EFF"},model:{value:e.data.tabs,callback:function(t){e.$set(e.data,"tabs",t)},expression:"data.tabs"}})],1),n("el-form-item",{attrs:{label:"详情模式"}},[n("el-switch",{model:{value:e.data.detail,callback:function(t){e.$set(e.data,"detail",t)},expression:"data.detail"}})],1),n("el-form-item",{attrs:{label:"显示按钮"}},[n("el-switch",{attrs:{"active-color":"#409EFF"},model:{value:e.data.menuBtn,callback:function(t){e.$set(e.data,"menuBtn",t)},expression:"data.menuBtn"}})],1),e.data.menuBtn?n("el-form-item",{attrs:{label:"显示提交按钮"}},[n("el-switch",{attrs:{"active-color":"#409EFF"},model:{value:e.data.submitBtn,callback:function(t){e.$set(e.data,"submitBtn",t)},expression:"data.submitBtn"}})],1):e._e(),e.data.menuBtn&&e.data.submitBtn?n("el-form-item",{attrs:{label:"提交按钮的文字"}},[n("el-input",{attrs:{placeholder:"提交按钮的文字"},model:{value:e.data.submitText,callback:function(t){e.$set(e.data,"submitText",t)},expression:"data.submitText"}})],1):e._e(),e.data.menuBtn?n("el-form-item",{attrs:{label:"显示清空按钮"}},[n("el-switch",{attrs:{"active-color":"#409EFF"},model:{value:e.data.emptyBtn,callback:function(t){e.$set(e.data,"emptyBtn",t)},expression:"data.emptyBtn"}})],1):e._e(),e.data.menuBtn&&e.data.emptyBtn?n("el-form-item",{attrs:{label:"清空按钮的文字"}},[n("el-input",{attrs:{placeholder:"提交按钮的文字"},model:{value:e.data.emptyText,callback:function(t){e.$set(e.data,"emptyText",t)},expression:"data.emptyText"}})],1):e._e(),n("el-form-item",{attrs:{label:"全局只读"}},[n("el-switch",{model:{value:e.data.readonly,callback:function(t){e.$set(e.data,"readonly",t)},expression:"data.readonly"}})],1),n("el-form-item",{attrs:{label:"全局禁用"}},[n("el-switch",{model:{value:e.data.disabled,callback:function(t){e.$set(e.data,"disabled",t)},expression:"data.disabled"}})],1)],1)],1)},r=[],o={name:"form-config",props:["data"]},a=o,s=n("e3d4"),l=Object(s["a"])(a,i,r,!1,null,null,null);t["a"]=l.exports},a73f:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".custom-tree-node[data-v-77c43025]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}",""]),e.exports=t},a780:function(e,t,n){var i=n("6043");e.exports=i("document","documentElement")},a7f7:function(e,t,n){var i=n("fe32"),r=n("c673"),o=n("5350"),a=n("4467"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},a8de:function(e,t,n){"use strict";var i=n("e820"),r=n("fbcf"),o=n("c673"),a=n("ce47"),s=n("80db"),l=n("0874"),c=n("61c0"),u=n("ec23"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=i.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,i){var r=l(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!v&&b||"string"===typeof i&&-1===i.indexOf(y)){var o=n(t,e,this,i);if(o.done)return o.value}var l=r(e),f=String(this),p="function"===typeof i;p||(i=String(i));var g=l.global;if(g){var w=l.unicode;l.lastIndex=0}var x=[];while(1){var C=u(l,f);if(null===C)break;if(x.push(C),!g)break;var S=String(C[0]);""===S&&(l.lastIndex=c(f,a(l.lastIndex),w))}for(var k="",O=0,M=0;M<x.length;M++){C=x[M];for(var D=String(C[0]),E=d(h(s(C.index),f.length),0),T=[],L=1;L<C.length;L++)T.push(m(C[L]));var I=C.groups;if(p){var A=[D].concat(T,E,f);void 0!==I&&A.push(I);var N=String(i.apply(void 0,A))}else N=_(D,f,E,T,I,i);E>=O&&(k+=f.slice(O,E)+N,O=E+D.length)}return k+f.slice(O)}];function _(e,n,i,r,a,s){var l=i+e.length,c=r.length,u=g;return void 0!==a&&(a=o(a),u=p),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):t}s=r[u-1]}return void 0===s?"":s}))}}))},a909:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ac97:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},aca4:function(e,t,n){var i=n("1810");t.f=i},acd4:function(e,t,n){"use strict";var i=n("7f82"),r=n("b896"),o=n("4d82");e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},ad2f:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}",""]),e.exports=t},adf0:function(e,t,n){var i=n("a52d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("44843bab",i,!0,{sourceMap:!1,shadowMode:!1})},b012:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{-webkit-transition:all 80ms;transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{-webkit-box-sizing:border-box;box-sizing:border-box;background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important;-webkit-box-sizing:border-box;box-sizing:border-box}@-webkit-keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@-webkit-keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@-webkit-keyframes monaco-cursor-expand{0%,20%{-webkit-transform:scaleY(1);transform:scaleY(1)}80%,to{-webkit-transform:scaleY(0);transform:scaleY(0)}}@keyframes monaco-cursor-expand{0%,20%{-webkit-transform:scaleY(1);transform:scaleY(1)}80%,to{-webkit-transform:scaleY(0);transform:scaleY(0)}}.cursor-smooth{-webkit-animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate;animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{-webkit-animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate;animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{-webkit-animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate;animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}",""]),e.exports=t},b042:function(e,t,n){var i=n("e4f5");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("7223b90e",i,!0,{sourceMap:!1,shadowMode:!1})},b105:function(e,t,n){"use strict";var i=n("83ec"),r=n("8aa3").findIndex,o=n("6e10"),a=n("9f1e"),s="findIndex",l=!0,c=a(s);s in[]&&Array(1)[s]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!c},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},b13d:function(e,t,n){"use strict";var i=n("83ec");i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},b1b6:function(e,t,n){"use strict";var i=n("8a56"),r=n.n(i);r.a},b485:function(e,t,n){"use strict";var i=n("e820"),r=n("fbcf"),o=n("ce47"),a=n("0874"),s=n("61c0"),l=n("ec23");i("match",1,(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=r(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(a,c))){var p=String(d[0]);h[f]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),u)),f++}return 0===f?null:h}]}))},b4fd:function(e,t,n){var i=n("ac97"),r=n("c401"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},b856:function(e,t,n){var i=n("b012");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("6a89fb2a",i,!0,{sourceMap:!1,shadowMode:!1})},b896:function(e,t,n){var i=n("55ab"),r=n("bf6f"),o=n("fbcf"),a=n("7f82"),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bd77:function(e,t,n){var i=n("8fed");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},bf1d:function(e,t,n){var i=n("45ad"),r=n("f0f1").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},bf6f:function(e,t,n){var i=n("55ab"),r=n("ac97"),o=n("f146");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},c09a:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:hsla(0,0%,100%,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar{background:transparent}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67.1%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-diff-editor .delete-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-editor .insert-sign{font-size:11px!important;opacity:.7!important;display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.monaco-diff-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign{opacity:1}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .inline-deleted-margin-view-zone{text-align:right}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}",""]),e.exports=t},c0db:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".el-tag[data-v-ccc30782]{vertical-align:top}.el-tag+.el-tag[data-v-ccc30782],.input-new-tag[data-v-ccc30782]{margin-left:5px}.input-new-tag[data-v-ccc30782]{width:90px;vertical-align:bottom}.color-picker[data-v-ccc30782]{left:10px;vertical-align:top}",""]),e.exports=t},c1ca:function(e,t,n){var i=n("6043"),r=n("f0f1"),o=n("0ef1"),a=n("fbcf");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},c223:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"g",(function(){return f}));var i=n("3fa4");const r="undefined"!==typeof e,o="undefined"!==typeof TextDecoder;let a;class s{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return r?this.buffer.toString():o?(a||(a=new TextDecoder),a.decode(this.buffer)):i["p"](this.buffer)}}function l(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function c(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function u(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function d(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function h(e,t){return e[t]}function f(e,t,n){e[n]=t}}).call(this,n("f20c").Buffer)},c225:function(e,t,n){"use strict";var i=n("83ec"),r=n("e244"),o=n("6043"),a=n("f0db"),s=n("55ab"),l=n("8fed"),c=n("bd77"),u=n("ac97"),d=n("fe32"),h=n("5a43"),f=n("eee7"),p=n("fbcf"),g=n("c673"),m=n("45ad"),v=n("7f82"),b=n("4d82"),y=n("ca2b"),_=n("3e1a"),w=n("f0f1"),x=n("bf1d"),C=n("0ef1"),S=n("42b1"),k=n("b896"),O=n("11b0"),M=n("69f1"),D=n("7d86"),E=n("986e"),T=n("5350"),L=n("fd3f"),I=n("76b2"),A=n("1810"),N=n("aca4"),P=n("6baf"),R=n("63ef"),F=n("35d6"),j=n("8aa3").forEach,B=T("hidden"),z="Symbol",V="prototype",$=A("toPrimitive"),W=F.set,H=F.getterFor(z),U=Object[V],q=r.Symbol,G=o("JSON","stringify"),K=S.f,Y=k.f,X=x.f,Z=O.f,Q=E("symbols"),J=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),ne=E("wks"),ie=r.QObject,re=!ie||!ie[V]||!ie[V].findChild,oe=s&&u((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=K(U,t);i&&delete U[t],Y(e,t,n),i&&e!==U&&Y(U,t,i)}:Y,ae=function(e,t){var n=Q[e]=y(q[V]);return W(n,{type:z,tag:e,description:t}),s||(n.description=t),n},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===U&&le(J,t,n),p(e);var i=v(t,!0);return p(n),d(Q,i)?(n.enumerable?(d(e,B)&&e[B][i]&&(e[B][i]=!1),n=y(n,{enumerable:b(0,!1)})):(d(e,B)||Y(e,B,b(1,{})),e[B][i]=!0),oe(e,i,n)):Y(e,i,n)},ce=function(e,t){p(e);var n=m(t),i=_(n).concat(pe(n));return j(i,(function(t){s&&!de.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?y(e):ce(y(e),t)},de=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Q,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,B)&&this[B][t])||n)},he=function(e,t){var n=m(e),i=v(t,!0);if(n!==U||!d(Q,i)||d(J,i)){var r=K(n,i);return!r||!d(Q,i)||d(n,B)&&n[B][i]||(r.enumerable=!0),r}},fe=function(e){var t=X(m(e)),n=[];return j(t,(function(e){d(Q,e)||d(L,e)||n.push(e)})),n},pe=function(e){var t=e===U,n=X(t?J:m(e)),i=[];return j(n,(function(e){!d(Q,e)||t&&!d(U,e)||i.push(Q[e])})),i};if(l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(J,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),oe(this,t,b(1,e))};return s&&re&&oe(U,t,{configurable:!0,set:n}),ae(t,e)},D(q[V],"toString",(function(){return H(this).tag})),D(q,"withoutSetter",(function(e){return ae(I(e),e)})),O.f=de,k.f=le,S.f=he,w.f=x.f=fe,C.f=pe,N.f=function(e){return ae(A(e),e)},s&&(Y(q[V],"description",{configurable:!0,get:function(){return H(this).description}}),a||D(U,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),j(_(ne),(function(e){P(e)})),i({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:u((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(g(e))}}),G){var ge=!l||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var i,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(i=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!se(t))return t}),r[1]=t,G.apply(null,r)}})}q[V][$]||M(q[V],$,q[V].valueOf),R(q,z),L[B]=!0},c293:function(module,__webpack_exports__,__webpack_require__){"use strict";var _utils_monaco_editor__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("d895");__webpack_exports__["a"]={name:"config-custom",components:{MonacoEditor:_utils_monaco_editor__WEBPACK_IMPORTED_MODULE_0__["a"]},props:["data"],data:function(){return{params:this.data.params||{},event:this.data.event||{},options:{minimap:{enabled:!1}}}},methods:{},watch:{"data.params":function(e){this.params=e||{}},"data.event":function(e){this.event=e||{}},params:function params(val){try{this.data.params=eval("("+val+")")}catch(e){}},event:function event(val){try{this.data.event=eval("("+val+")")}catch(e){}}}}},c3b4:function(e,t,n){var i=n("10b1");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("77038fc2",i,!0,{sourceMap:!1,shadowMode:!1})},c401:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c55c:function(e,t,n){var i=n("ac97"),r=n("d554"),o="​…᠎";e.exports=function(e){return i((function(){return!!r[e]()||o[e]()!=o||r[e].name!==e}))}},c673:function(e,t,n){var i=n("0874");e.exports=function(e){return Object(i(e))}},c6b4:function(e,t,n){var i=n("6aad");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("1a9cb28d",i,!0,{sourceMap:!1,shadowMode:!1})},c732:function(e,t,n){var i=n("55ab"),r=n("b896"),o=n("fbcf"),a=n("3e1a");e.exports=i?Object.defineProperties:function(e,t){o(e);var n,i=a(t),s=i.length,l=0;while(s>l)r.f(e,n=i[l++],t[n]);return e}},c8ed:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c901:function(e,t,n){var i=n("f39a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("635cd606",i,!0,{sourceMap:!1,shadowMode:!1})},c91b:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-text-button{-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:4px;text-align:center;cursor:pointer;outline-offset:2px!important;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled{opacity:.4;cursor:default}.monaco-button>.codicon{margin:0 .2em;color:inherit!important}",""]),e.exports=t},ca23:function(e,t,n){var i=n("eee7"),r=n("13a8");e.exports=function(e,t,n){var o,a;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(e,a),e}},ca2b:function(e,t,n){var i,r=n("fbcf"),o=n("c732"),a=n("e629"),s=n("fd3f"),l=n("a780"),c=n("f146"),u=n("5350"),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=i?b(i):y();var e=a.length;while(e--)delete _[f][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=_(),void 0===t?n:o(n,t)}},cc1a:function(e,t,n){var i=n("11e2");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("52b97b55",i,!0,{sourceMap:!1,shadowMode:!1})},ce47:function(e,t,n){var i=n("80db"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},d30c:function(e,t,n){"use strict";var i=n("6043"),r=n("b896"),o=n("1810"),a=n("55ab"),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},d31d:function(e,t,n){"use strict";var i,r,o,a,s=n("83ec"),l=n("f0db"),c=n("e244"),u=n("6043"),d=n("fc9a"),h=n("7d86"),f=n("6161"),p=n("63ef"),g=n("d30c"),m=n("eee7"),v=n("7f17"),b=n("d6e4"),y=n("9550"),_=n("d75f"),w=n("59cf"),x=n("a55b"),C=n("59e5").set,S=n("f652"),k=n("3073"),O=n("4fe1"),M=n("fc01"),D=n("53ff"),E=n("35d6"),T=n("a056"),L=n("1810"),I=n("f79e"),A=n("2c21"),N=L("species"),P="Promise",R=E.get,F=E.set,j=E.getterFor(P),B=d,z=c.TypeError,V=c.document,$=c.process,W=u("fetch"),H=M.f,U=H,q=!!(V&&V.createEvent&&c.dispatchEvent),G="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Y="rejectionhandled",X=0,Z=1,Q=2,J=1,ee=2,te=T(P,(function(){var e=y(B)!==String(B);if(!e){if(66===A)return!0;if(!I&&!G)return!0}if(l&&!B.prototype["finally"])return!0;if(A>=51&&/native code/.test(B))return!1;var t=B.resolve(1),n=function(e){e((function(){}),(function(){}))},i=t.constructor={};return i[N]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){B.all(e)["catch"]((function(){}))})),ie=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},re=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;S((function(){var i=e.value,r=e.state==Z,o=0;while(n.length>o){var a,s,l,c=n[o++],u=r?c.ok:c.fail,d=c.resolve,h=c.reject,f=c.domain;try{u?(r||(e.rejection===ee&&le(e),e.rejection=J),!0===u?a=i:(f&&f.enter(),a=u(i),f&&(f.exit(),l=!0)),a===c.promise?h(z("Promise-chain cycle")):(s=ie(a))?s.call(a,d,h):d(a)):h(i)}catch(p){f&&!l&&f.exit(),h(p)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ae(e)}))}},oe=function(e,t,n){var i,r;q?(i=V.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),c.dispatchEvent(i)):i={promise:t,reason:n},!G&&(r=c["on"+e])?r(i):e===K&&O("Unhandled promise rejection",n)},ae=function(e){C.call(c,(function(){var t,n=e.facade,i=e.value,r=se(e);if(r&&(t=D((function(){I?$.emit("unhandledRejection",i,n):oe(K,n,i)})),e.rejection=I||se(e)?ee:J,t.error))throw t.value}))},se=function(e){return e.rejection!==J&&!e.parent},le=function(e){C.call(c,(function(){var t=e.facade;I?$.emit("rejectionHandled",t):oe(Y,t,e.value)}))},ce=function(e,t,n){return function(i){e(t,i,n)}},ue=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Q,re(e,!0))},de=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z("Promise can't be resolved itself");var i=ie(t);i?S((function(){var n={done:!1};try{i.call(t,ce(de,n,e),ce(ue,n,e))}catch(r){ue(n,r,e)}})):(e.value=t,e.state=Z,re(e,!1))}catch(r){ue({done:!1},r,e)}}};te&&(B=function(e){b(this,B,P),v(e),i.call(this);var t=R(this);try{e(ce(de,t),ce(ue,t))}catch(n){ue(t,n)}},i=function(e){F(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},i.prototype=f(B.prototype,{then:function(e,t){var n=j(this),i=H(x(this,B));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=I?$.domain:void 0,n.parent=!0,n.reactions.push(i),n.state!=X&&re(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new i,t=R(e);this.promise=e,this.resolve=ce(de,t),this.reject=ce(ue,t)},M.f=H=function(e){return e===B||e===o?new r(e):U(e)},l||"function"!=typeof d||(a=d.prototype.then,h(d.prototype,"then",(function(e,t){var n=this;return new B((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return k(B,W.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:te},{Promise:B}),p(B,P,!1,!0),g(P),o=u(P),s({target:P,stat:!0,forced:te},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:l||te},{resolve:function(e){return k(l&&this===o?B:this,e)}}),s({target:P,stat:!0,forced:ne},{all:function(e){var t=this,n=H(t),i=n.resolve,r=n.reject,o=D((function(){var n=v(t.resolve),o=[],a=0,s=1;_(e,(function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then((function(e){c||(c=!0,o[l]=e,--s||i(o))}),r)})),--s||i(o)}));return o.error&&r(o.value),n.promise},race:function(e){var t=this,n=H(t),i=n.reject,r=D((function(){var r=v(t.resolve);_(e,(function(e){r.call(t,e).then(n.resolve,i)}))}));return r.error&&i(r.value),n.promise}})},d362:function(e,t,n){"use strict";var i=n("55ab"),r=n("ac97"),o=n("3e1a"),a=n("0ef1"),s=n("11b0"),l=n("c673"),c=n("b4fd"),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=r}))?function(e,t){var n=l(e),r=arguments.length,u=1,d=a.f,h=s.f;while(r>u){var f,p=c(arguments[u++]),g=d?o(p).concat(d(p)):o(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:u},d53b:function(e,t,n){var i=n("6965"),r=n("c401"),o=n("1810"),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},d543:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return r})),n("fa89"),n("d31d")},d554:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},d557:function(e,t,n){var i=n("312a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("7bb72351",i,!0,{sourceMap:!1,shadowMode:!1})},d6e4:function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},d6ed:function(e,t,n){var i=n("7f17");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},d75f:function(e,t,n){var i=n("fbcf"),r=n("a53d"),o=n("ce47"),a=n("d6ed"),s=n("6023"),l=n("dc8c"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,h,f,p,g,m,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(t,v,1+b+_),x=function(e){return u&&l(u),new c(!0,e)},C=function(e){return b?(i(e),_?w(e[0],e[1],x):w(e[0],e[1])):_?w(e,x):w(e)};if(y)u=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(r(d)){for(h=0,f=o(e.length);f>h;h++)if(p=C(e[h]),p&&p instanceof c)return p;return new c(!1)}u=d.call(e)}g=u.next;while(!(m=g.call(u)).done){try{p=C(m.value)}catch(S){throw l(u),S}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},d80d:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"widget-config"},[this.data&&Object.keys(this.data).length>0?n("el-form",{attrs:{"label-suffix":":",size:"small"}},[n("el-collapse",{model:{value:e.collapse,callback:function(t){e.collapse=t},expression:"collapse"}},[n("el-collapse-item",{attrs:{name:"1",title:"基本属性"}},[e.data.type&&!e.data.component?n("el-form-item",{attrs:{label:"类型"}},[n("el-select",{attrs:{placeholder:"请选择类型"},on:{change:e.handleChangeType},model:{value:e.data.type,callback:function(t){e.$set(e.data,"type",t)},expression:"data.type"}},e._l(e.fields,(function(t){return n("el-option-group",{key:t.title,attrs:{label:t.title}},e._l(t.list,(function(e){return n("el-option",{key:e.type,attrs:{label:e.label,value:e.type}})})),1)})),1)],1):e._e(),n("el-form-item",{attrs:{label:"属性值"}},[n("el-input",{attrs:{clearable:"",placeholder:"属性值"},model:{value:e.data.prop,callback:function(t){e.$set(e.data,"prop",t)},expression:"data.prop"}})],1),n("el-form-item",{attrs:{label:"标题"}},[n("el-input",{attrs:{clearable:"",placeholder:"标题"},model:{value:e.data.label,callback:function(t){e.$set(e.data,"label",t)},expression:"data.label"}})],1),e.data.subfield?n("el-form-item",{attrs:{label:"宽度"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"宽度",min:100},model:{value:e.data.width,callback:function(t){e.$set(e.data,"width",t)},expression:"data.width"}})],1):e._e(),e.data.subfield||["group"].includes(e.data.type)?e._e():n("el-form-item",{attrs:{label:"表单栅格"}},[n("el-input-number",{attrs:{"controls-position":"right",placeholder:"表单栅格",min:8,max:24},model:{value:e.data.span,callback:function(t){e.$set(e.data,"span",t)},expression:"data.span"}})],1),["cascader","checkbox","radio","select","tree","upload","img","array"].includes(e.data.type)?n("el-form-item",{attrs:{label:"数据类型"}},[n("el-select",{attrs:{placeholder:"数据类型",clearable:""},model:{value:e.data.dataType,callback:function(t){e.$set(e.data,"dataType",t)},expression:"data.dataType"}},[n("el-option",{attrs:{label:"String",value:"string"}}),n("el-option",{attrs:{label:"Number",value:"number"}}),n("el-option",{attrs:{label:"Array",value:"array"}})],1),e._v(" "),n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/doc/dataType",target:"_blank"}},[e._v("详情")]),n("br")],1):e._e(),e.data.type&&!e.data.component?n("el-form-item",{attrs:{label:"深结构"}},[n("a",{staticStyle:{color:"#409EFF"},attrs:{href:"https://avuejs.com/doc/form/form-bind",target:"_blank"}},[e._v("详情")]),n("br"),n("el-input",{attrs:{placeholder:"深结构"},model:{value:e.data.bind,callback:function(t){e.$set(e.data,"bind",t)},expression:"data.bind"}})],1):e._e(),n(e.getComponent,{tag:"component",attrs:{data:e.data}})],1),["group","dynamic"].includes(e.data.type)?e._e():n("el-collapse-item",{attrs:{name:"2",title:"事件属性"}},[n("el-form-item",{attrs:{label:"change"}},[n("avue-input",{attrs:{type:"textarea",placeholder:"改变事件",rows:"5",clearable:""},model:{value:e.data.change,callback:function(t){e.$set(e.data,"change",t)},expression:"data.change"}})],1),n("el-form-item",{attrs:{label:"click"}},[n("el-input",{attrs:{type:"textarea",placeholder:"点击事件",rows:"5"},model:{value:e.data.click,callback:function(t){e.$set(e.data,"click",t)},expression:"data.click"}})],1),n("el-form-item",{attrs:{label:"focus"}},[n("el-input",{attrs:{type:"textarea",placeholder:"获取焦点事件",rows:"5"},model:{value:e.data.focus,callback:function(t){e.$set(e.data,"focus",t)},expression:"data.focus"}})],1),n("el-form-item",{attrs:{label:"blur"}},[n("el-input",{attrs:{type:"textarea",placeholder:"失去焦点事件",rows:"5"},model:{value:e.data.blur,callback:function(t){e.$set(e.data,"blur",t)},expression:"data.blur"}})],1)],1)],1)],1):n("avue-empty",{staticStyle:{"margin-top":"100%"},attrs:{desc:"拖拽字段进行配置"}})],1)},r=[],o=(n("eb46"),n("2f62"),n("fa89"),n("d31d"),n("f96e"),n("fc08"),n("d543")),a=n("1e33"),s=["year","month","week","date","datetime","time","daterange","timerange","datetimerange","dates"],l={name:"widget-config",props:["data"],computed:{getComponent:function(){var e="config-",t=this.data,n=t.type,i=t.component;if(!n||i)return e+"custom";var r="input";return r=[void 0,"input","password","url"].includes(n)?"input":s.includes(n)?"date":["array","img"].includes(n)?"array":n,e+r}},data:function(){return{fields:a["a"],collapse:"1"}},methods:{handleChangeType:function(e){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var i,r,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e){n.next=6;break}return n.next=3,t.getConfigByType(e);case 3:for(r in i=n.sent,i.prop=t.data.prop,i)i&&Object.prototype.hasOwnProperty.call(i,r)&&!["icon","label","span"].includes(r)&&(o=i[r],t.$set(t.data,r,o));case 6:case"end":return n.stop()}}),n)})))()},getConfigByType:function(e){return new Promise((function(t,n){a["a"].forEach((function(n){n.list.forEach((function(n){n.type==e&&t(n)}))})),n()}))}}},c=l,u=n("e3d4"),d=Object(u["a"])(c,i,r,!1,null,null,null);t["a"]=d.exports},d85b:function(e,t){e.exports={}},d895:function(e,t,n){"use strict";n("085b"),n("99ab");var i=n("863c"),r=n("5491"),o=n("7eca"),a=n("7f36"),s={},l={},c=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}return e.getOrCreate=function(t){return l[t]||(l[t]=new e(t)),l[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,s[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function u(e){var t=e.id;s[t]=e,a["a"].register(e);var n=c.getOrCreate(t);a["a"].setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),a["a"].onLanguage(t,(function(){n.load().then((function(e){a["a"].setLanguageConfiguration(t,e.conf)}))}))}u({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e(1).then(n.bind(null,"f8f9"))}});var d=n("826e");function h(){}t["a"]={name:"MonacoEditor",props:{diffEditor:{type:Boolean,default:!1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:"100%"},original:String,value:[String,Object],language:{type:String,default:"javascript"},theme:{type:String,default:"vs"},readOnly:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},editorMounted:{type:Function,default:h},editorBeforeMount:{type:Function,default:h},keyIndex:{type:String}},watch:{options:{deep:!0,handler:function(e){this.editor&&this.editor.updateOptions(e)}},keyIndex:function(){var e=this.value;"object"==Object(r["a"])(e)&&(e=Object(d["a"])(e),this.editor&&e!==this._getValue()&&this._setValue(e))},language:function(){if(this.editor)if(this.diffEditor){var e=this.editor.getModel(),t=e.original,n=e.modified;o["editor"].setModelLanguage(t,this.language),o["editor"].setModelLanguage(n,this.language)}else o["editor"].setModelLanguage(this.editor.getModel(),this.language)},theme:function(){this.editor&&o["editor"].setTheme(this.theme)},style:function(){var e=this;this.editor&&this.$nextTick((function(){e.editor.layout()}))}},computed:{style:function(){return{width:/^\d+$/.test(this.width)?"".concat(this.width,"px"):this.width,height:/^\d+$/.test(this.height)?"".concat(this.height,"px"):this.height}}},mounted:function(){this.initMonaco()},beforeDestroy:function(){this.editor&&this.editor.dispose()},render:function(){var e=arguments[0];return e("div",{class:"monaco_editor_container",style:this.style})},methods:{initMonaco:function(){var e=this.value,t=this.language,n=this.theme,r=this.readOnly,a=this.options;Object.assign(a,this._editorBeforeMount()),this.editor=o["editor"][this.diffEditor?"createDiffEditor":"create"](this.$el,Object(i["a"])({value:"string"==typeof e?e:Object(d["a"])(e),language:t,theme:n,readOnly:r},a)),this.diffEditor&&this._setModel(this.value,this.original),this._editorMounted(this.editor)},_getEditor:function(){return this.editor?this.diffEditor?this.editor.modifiedEditor:this.editor:null},_setModel:function(e,t){var n=this.language,i=o["editor"].createModel(t,n),r=o["editor"].createModel(e,n);this.editor.setModel({original:i,modified:r})},_setValue:function(e){var t=this._getEditor();if(t)return t.setValue(e)},_getValue:function(){var e=this._getEditor();return e?e.getValue():""},_editorBeforeMount:function(){var e=this.editorBeforeMount(o);return e||{}},_editorMounted:function(e){var t=this;this.editorMounted(e,o),this.diffEditor?e.onDidUpdateDiff((function(e){var n=t._getValue();t._emitChange(n,e)})):e.onDidChangeModelContent((function(e){var n=t._getValue();t._emitChange(n,e)}))},_emitChange:function(e,t){this.$emit("change",e,t),this.$emit("input",e)}}}},d927:function(e,t,n){"use strict";var i=n("83ec"),r=n("3352"),o=n("80db"),a=n("ce47"),s=n("c673"),l=n("f152"),c=n("acd4"),u=n("72d4"),d=n("9f1e"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var n,i,u,d,h,f,b=s(this),y=a(b.length),_=r(e,y),w=arguments.length;if(0===w?n=i=0:1===w?(n=0,i=y-_):(n=w-2,i=g(p(o(t),0),y-_)),y+n-i>m)throw TypeError(v);for(u=l(b,i),d=0;d<i;d++)h=_+d,h in b&&c(u,d,b[h]);if(u.length=i,n<i){for(d=_;d<y-i;d++)h=d+i,f=d+n,h in b?b[f]=b[h]:delete b[f];for(d=y;d>y-i+n;d--)delete b[d-1]}else if(n>i)for(d=y-i;d>_;d--)h=d+i-1,f=d+n-1,h in b?b[f]=b[h]:delete b[f];for(d=0;d<n;d++)b[d+_]=arguments[d+2];return b.length=y-i+n,u}})},d958:function(e,t,n){(function(t,i){e.exports=i(n("76d1"))})("undefined"!==typeof self&&self,(function(e){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,b,y,_){l(n,t,v);var w,x,C,S=function(e){if(!h&&e in D)return D[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",O=b==g,M=!1,D=e.prototype,E=D[d]||D[f]||b&&D[b],T=E||S(b),L=b?O?S("entries"):T:void 0,I="Array"==t&&D.entries||E;if(I&&(C=u(I.call(new e)),C!==Object.prototype&&C.next&&(c(C,k,!0),i||"function"==typeof C[d]||a(C,d,m))),O&&E&&E.name!==g&&(M=!0,T=function(){return E.call(this)}),i&&!_||!h&&!M&&D[d]||a(D,d,T),s[t]=T,s[k]=m,b)if(w={values:O?T:S(g),keys:y?T:S(p),entries:L},_)for(x in w)x in D||o(D,x,w[x]);else r(r.P+r.F*(h||M),t,w);return w}},"02f4":function(e,t,n){var i=n("4588"),r=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"0390":function(e,t,n){"use strict";var i=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var i=n("cb7c");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,l=0;while(s>l)i.f(e,n=a[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var i=n("2aba"),r=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],m=n(a,h,""[e],(function(e,t,n,i,r){return t.exec===l?f&&!r?{done:!0,value:g.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),v=m[0],b=m[1];i(String.prototype,e,v),r(RegExp.prototype,h,2==t?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}}},"230e":function(e,t,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||r(n,a,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),c=e.F;while(i--)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},"2b4c":function(e,t,n){var i=n("5537")("wks"),r=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))};s.store=i},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(e){return!!~r(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var i=n("86cc"),r=n("4630");e.exports=n("9e1e")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(r){}}return!0}},"520a":function(e,t,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(e){var t,n,a,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(t=d[s]),a=r.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,h,f,p=e&c.F,g=e&c.G,m=e&c.S,v=e&c.P,b=e&c.B,y=g?i:m?i[t]||(i[t]={}):(i[t]||{})[l],_=g?r:r[t]||(r[t]={}),w=_[l]||(_[l]={});for(u in g&&(n=t),n)d=!p&&y&&void 0!==y[u],h=(d?y:n)[u],f=b&&d?s(h,i):v&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,e&c.U),_[u]!=h&&o(_,u,f),v&&w[u]!=h&&(w[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"613b":function(e,t,n){var i=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return i[e]||(i[e]=r(e))}},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var i=n("626a"),r=n("be13");e.exports=function(e){return i(r(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var i=n("0d58"),r=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=i}))?function(e,t){var n=a(e),l=arguments.length,c=1,u=r.f,d=o.f;while(l>c){var h,f=s(arguments[c++]),p=u?i(f).concat(u(f)):i(f),g=p.length,m=0;while(g>m)d.call(f,h=p[m++])&&(n[h]=f[h])}return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var i=n("4588"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7f20":function(e,t,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),e.exports=function(e){r[i][e]=!0}},"9def":function(e,t,n){var i=n("4588"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,r){var o=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(e,t){var r=g(n,e,this,t);if(r.done)return r.value;var d=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var _=l(d,h);if(null===_)break;if(y.push(_),!v)break;var w=String(_[0]);""===w&&(d.lastIndex=s(h,o(d.lastIndex),b))}for(var x="",C=0,S=0;S<y.length;S++){_=y[S];for(var k=String(_[0]),O=c(u(a(_.index),h.length),0),M=[],D=1;D<_.length;D++)M.push(p(_[D]));var E=_.groups;if(f){var T=[k].concat(M,O,h);void 0!==E&&T.push(E);var L=String(t.apply(void 0,T))}else L=m(k,h,O,M,E,t);O>=C&&(x+=h.slice(C,O)+L,C=O+k.length)}return x+h.slice(C)}];function m(e,t,i,o,a,s){var l=i+e.length,c=o.length,u=f;return void 0!==a&&(a=r(a),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?r.charAt(1):o[h-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},ac6a:function(e,t,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),g=0;g<p.length;g++){var m,v=p[g],b=f[v],y=a[v],_=y&&y.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,v),l[v]=h,b))for(m in i)_[m]||o(_,m,i[m],!0)}},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var i=n("6821"),r=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){function i(){return"undefined"!==typeof window?window.console:e.console}n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return l})),n("a481");var r=i();function o(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var a=/-(\w)/g,s=o((function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))}));function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var i=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,i)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var i=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return s?s.call(t,i,n):t.slice(n,n+i.length)===i}})},f6fd:function(e,t){(function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(i){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(i.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})})(document)},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fb15:function(e,t,n){"use strict";var i;function r(e){if(Array.isArray(e))return e}function o(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function s(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){return r(e)||o(e,t)||s(e,t)||l()}function u(e){if(Array.isArray(e))return a(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(e){return u(e)||d(e)||s(e)||h()}n.r(t),"undefined"!==typeof window&&(n("f6fd"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var p=n("a352"),g=n.n(p),m=n("c649");function v(e,t,n){return void 0===n||(e=e||{},e[t]=n),e}function b(e,t){return e.map((function(e){return e.elm})).indexOf(t)}function y(e,t,n,i){if(!e)return[];var r=e.map((function(e){return e.elm})),o=t.length-i,a=f(t).map((function(e,t){return t>=o?r.length:r.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}function _(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function w(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),_.call(t,e,n)}}function x(e){return["transition-group","TransitionGroup"].includes(e)}function C(e){if(!e||1!==e.length)return!1;var t=c(e,1),n=t[0].componentOptions;return!!n&&x(n.tag)}function S(e,t,n){return e[n]||(t[n]?t[n]():void 0)}function k(e,t,n){var i=0,r=0,o=S(t,n,"header");o&&(i=o.length,e=e?[].concat(f(o),f(e)):f(o));var a=S(t,n,"footer");return a&&(r=a.length,e=e?[].concat(f(e),f(a)):f(a)),{children:e,headerOffset:i,footerOffset:r}}function O(e,t){var n=null,i=function(e,t){n=v(n,e,t)},r=Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{});if(i("attrs",r),!t)return n;var o=t.on,a=t.props,s=t.attrs;return i("on",o),i("props",a),Object.assign(n.attrs,s),n}var M=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],E=["Move"].concat(M,D).map((function(e){return"on"+e})),T=null,L={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},I={name:"draggable",inheritAttrs:!1,props:L,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=C(t);var n=k(t,this.$slots,this.$scopedSlots),i=n.children,r=n.headerOffset,o=n.footerOffset;this.headerOffset=r,this.footerOffset=o;var a=O(this.$attrs,this.componentData);return e(this.getTag(),a,i)},created:function(){null!==this.list&&null!==this.value&&m["b"].error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&m["b"].warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&m["b"].warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};M.forEach((function(n){t["on"+n]=w.call(e,n)})),D.forEach((function(n){t["on"+n]=_.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(m["a"])(n)]=e.$attrs[n],t}),{}),i=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in i)&&(i.draggable=">*"),this._sortable=new g.a(this.rootContainer,i),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(m["a"])(t);-1===E.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=y(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=b(this.getChildrenNodes()||[],e);if(-1===t)return null;var n=this.realList[t];return{index:t,element:n}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&x(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,i=this.getUnderlyingPotencialDraggableComponent(t);if(!i)return{component:i};var r=i.realList,o={list:r,component:i};if(t!==n&&r&&i.getUnderlyingVm){var a=i.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){var t=this.getChildrenNodes();t[e].data=null;var n=this.getComponent();n.children=[],n.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),T=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(m["d"])(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var i={element:t,newIndex:n};this.emitChanges({added:i})}},onDragRemove:function(e){if(Object(m["c"])(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(m["d"])(e.clone)},onDragUpdate:function(e){Object(m["d"])(e.item),Object(m["c"])(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var i={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:i})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style["display"]})),i=n.indexOf(t.related),r=e.component.getVmIndex(i),o=-1!==n.indexOf(T);return o||!t.willInsertAfter?r:r+1},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var i=this.getRelatedContextFromMoveEvent(e),r=this.context,o=this.computeFutureIndex(i,e);Object.assign(r,{futureIndex:o});var a=Object.assign({},e,{relatedContext:i,draggedContext:r});return n(a,t)},onDragEnd:function(){this.computeIndexes(),T=null}}};"undefined"!==typeof window&&"Vue"in window&&window.Vue.component("draggable",I);var A=I;t["default"]=A}})["default"]}))},db65:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".dic[data-v-727980f3]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:5px}",""]),e.exports=t},dc8c:function(e,t,n){var i=n("fbcf");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},df3c:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".context-view{position:absolute;z-index:2500}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;z-index:2500;color:inherit}",""]),e.exports=t},df70:function(e,t,n){var i=n("139d");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("a4992a28",i,!0,{sourceMap:!1,shadowMode:!1})},df93:function(e,t,n){var i=n("e577");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("0e249fd5",i,!0,{sourceMap:!1,shadowMode:!1})},dff0:function(e,t,n){var i=n("8dab");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("24132abe",i,!0,{sourceMap:!1,shadowMode:!1})},e09a:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-icon-label{display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;-ms-flex-negative:0;flex-shrink:0}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;-webkit-box-flex:1;-ms-flex:1;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-description-container>.label-description,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-description-container>.label-description,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;padding:0 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}",""]),e.exports=t},e0e0:function(e,t,n){"use strict";var i=n("15b2").IteratorPrototype,r=n("ca2b"),o=n("4d82"),a=n("63ef"),s=n("d85b"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},e244:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ed"))},e248:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".context-view .monaco-menu{min-width:130px}",""]),e.exports=t},e263:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}",""]),e.exports=t},e2da:function(e,t,n){"use strict";var i=n("45ad"),r=n("6e10"),o=n("d85b"),a=n("35d6"),s=n("325d"),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e3d4:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},e3f4:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),a=Math.min(r.length,o.length),s=a,l=0;l<a;l++)if(r[l]!==o[l]){s=l;break}var c=[];for(l=s;l<r.length;l++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===i&&(r=!1,i=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=a+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("2552"))},e4f5:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}",""]),e.exports=t},e577:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .view-ruler{position:absolute;top:0}",""]),e.exports=t},e5d9:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:transparent;-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{-webkit-transition:opacity .8s linear;transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;-webkit-box-shadow:#ddd 0 6px 6px -6px inset;box-shadow:inset 0 6px 6px -6px #ddd}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;-webkit-box-shadow:#ddd 6px 0 6px -6px inset;box-shadow:inset 6px 0 6px -6px #ddd}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{-webkit-box-shadow:#ddd 6px 6px 6px -6px inset;box-shadow:inset 6px 6px 6px -6px #ddd}.vs .monaco-scrollable-element>.scrollbar>.slider{background:hsla(0,0%,39.2%,.4)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:hsla(0,0%,47.5%,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider{background:rgba(111,195,223,.6)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:hsla(0,0%,39.2%,.7)}.hc-black .monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(111,195,223,.8)}.monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(0,0,0,.6)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:hsla(0,0%,74.9%,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider.active{background:#6fc3df}.vs-dark .monaco-scrollable-element .shadow.top{-webkit-box-shadow:none;box-shadow:none}.vs-dark .monaco-scrollable-element .shadow.left{-webkit-box-shadow:#000 6px 0 6px -6px inset;box-shadow:inset 6px 0 6px -6px #000}.vs-dark .monaco-scrollable-element .shadow.top.left{-webkit-box-shadow:#000 6px 6px 6px -6px inset;box-shadow:inset 6px 6px 6px -6px #000}.hc-black .monaco-scrollable-element .shadow.left,.hc-black .monaco-scrollable-element .shadow.top,.hc-black .monaco-scrollable-element .shadow.top.left{-webkit-box-shadow:none;box-shadow:none}",""]),e.exports=t},e629:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},e635:function(e,t,n){var i=n("c91b");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("0091cd35",i,!0,{sourceMap:!1,shadowMode:!1})},e669:function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b105"),core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_find_index__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("eb46"),core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_for_each__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2f62"),core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_includes__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("d927"),core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_splice__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("085b"),core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es_number_constructor__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("fa89"),core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("d31d"),core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("f96e"),core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_collections_for_each__WEBPACK_IMPORTED_MODULE_7__),_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("5491"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("fc08"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_9__),_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("d543"),_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("863c"),_fieldsConfig_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("1e33"),_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("826e"),_utils_monaco_editor__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("d895"),_assets_widget_empty_png__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("3a5d"),_assets_widget_empty_png__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_assets_widget_empty_png__WEBPACK_IMPORTED_MODULE_15__),_mixins_history__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("2790"),vuedraggable__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("d958"),vuedraggable__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_17__),_WidgetForm__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("17b9"),_FormConfig__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("a5f6"),_WidgetConfig__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("d80d");__webpack_exports__["a"]={name:"FormDesign",components:{Draggable:vuedraggable__WEBPACK_IMPORTED_MODULE_17___default.a,MonacoEditor:_utils_monaco_editor__WEBPACK_IMPORTED_MODULE_14__["a"],WidgetForm:_WidgetForm__WEBPACK_IMPORTED_MODULE_18__["a"],FormConfig:_FormConfig__WEBPACK_IMPORTED_MODULE_19__["a"],WidgetConfig:_WidgetConfig__WEBPACK_IMPORTED_MODULE_20__["a"]},mixins:[_mixins_history__WEBPACK_IMPORTED_MODULE_16__["a"]],props:{options:{type:[Object,String],default:function(){return{column:[]}}},storage:{type:Boolean,default:!1},asideLeftWidth:{type:[String,Number],default:"270px"},asideRightWidth:{type:[String,Number],default:"380px"},showGithubStar:{type:Boolean,default:!0},toolbar:{type:Array,default:function(){return["import","generate","preview","clear"]}},undoRedo:{type:Boolean,default:!0},includeFields:{type:Array,default:function(){var e=[];return _fieldsConfig_js__WEBPACK_IMPORTED_MODULE_12__["a"].forEach((function(t){t.list.forEach((function(t){e.push(t.type)}))})),e}},customFields:{type:Array}},watch:{options:{handler:function handler(val){var _this=this,options=val;if("string"==typeof options)try{options=eval("("+options+")")}catch(e){console.error("非法配置"),options={column:[]}}this.transAvueOptionsToFormDesigner(options).then((function(e){_this.widgetForm=Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])(Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])({},_this.widgetForm),e)}))},deep:!0}},computed:{leftWidth:function(){return"string"==typeof this.asideLeftWidth?this.asideLeftWidth:"".concat(this.asideLeftWidth,"px")},rightWidth:function(){return"string"==typeof this.asideRightWidth?this.asideRightWidth:"".concat(this.asideRightWidth,"px")}},data:function(){return{widgetEmpty:_assets_widget_empty_png__WEBPACK_IMPORTED_MODULE_15___default.a,fields:_fieldsConfig_js__WEBPACK_IMPORTED_MODULE_12__["a"],widgetForm:{column:[],labelPosition:"left",labelSuffix:":",labelWidth:120,gutter:0,menuBtn:!0,submitBtn:!0,submitText:"提交",emptyBtn:!0,emptyText:"清空",menuPosition:"center"},widgetFormPreview:{},configTab:"widget",widgetFormSelect:{},previewVisible:!1,generateJsonVisible:!1,importJsonVisible:!1,importJson:{},widgetModels:{},configOption:{generateType:"json",space:2,quoteType:"single",dropQuotesOnKeys:!0},history:{index:0,maxStep:20,steps:[]}}},mounted:function(){this.handleLoadStorage(),this.handleLoadCss()},methods:{handleLoadStorage:function handleLoadStorage(){var _this2=this;return Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__["a"])(regeneratorRuntime.mark((function _callee(){var options;return regeneratorRuntime.wrap((function _callee$(_context){while(1)switch(_context.prev=_context.next){case 0:if(options=_this2.options,"string"==typeof options)try{options=eval("("+options+")")}catch(e){console.error("非法配置"),options={column:[]}}return options.column||(options.column=[]),_context.t0=_this2,_context.next=6,_this2.transAvueOptionsToFormDesigner(Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])(Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])({},_this2.widgetForm),options));case 6:_context.t1=_context.sent,_context.t2=[_context.t1],_context.t3=_this2.storage,_context.t4={index:0,maxStep:20,steps:_context.t2,storage:_context.t3},_this2.widgetForm=_context.t0.initHistory.call(_context.t0,_context.t4),_this2.undoRedo&&window.addEventListener("keydown",(function(e){(e.metaKey&&!e.shiftKey&&90==e.keyCode||e.ctrlKey&&!e.shiftKey&&90==e.keyCode)&&(_this2.widgetForm=_this2.handleUndo()),(e.metaKey&&e.shiftKey&&90==e.keyCode||e.ctrlKey&&e.shiftKey&&90==e.keyCode||e.ctrlKey&&89==e.keyCode)&&(_this2.widgetForm=_this2.handleRedo())}),!1);case 12:case"end":return _context.stop()}}),_callee)})))()},handleLoadCss:function(){var e=document.getElementsByTagName("head")[0],t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href="https://at.alicdn.com/t/font_1254447_zc9iezc230c.css",e.appendChild(t)},handleAvueDoc:function(){window.open("https://avuejs.com/doc/form/form-doc","_blank")},handleFieldClick:function(e){var t=this,n=this.widgetForm.column.findIndex((function(e){return e.prop==t.widgetFormSelect.prop}))+1,i=0;-1==n?(this.widgetForm.column.push(e),i=this.widgetForm.column.length-1):(this.widgetForm.column.splice(n,0,e),i=n),this.$refs.widgetForm.handleWidgetAdd({newIndex:i})},handlePreview:function(){var e=this;this.widgetForm.column&&0!=this.widgetForm.column.length?this.transformToAvueOptions(this.widgetForm).then((function(t){e.widgetFormPreview=t,e.previewVisible=!0})):this.$message.error("没有需要展示的内容")},handleImportJsonSubmit:function(){var e=this;try{this.transAvueOptionsToFormDesigner(this.importJson).then((function(t){e.widgetForm=t,e.importJsonVisible=!1,e.handleHistoryChange(e.widgetForm)}))}catch(t){this.$message.error(t.message)}},handleGenerateJson:function(){var e=this;this.transformToAvueOptions(this.widgetForm).then((function(t){e.widgetFormPreview=t,e.generateJsonVisible=!0}))},handleGenerate:function(){var e=this;this.transformToAvueOptions(this.widgetForm).then((function(t){e.configOption.generateType&&"string"==e.configOption.generateType?e.$emit("submit",Object(_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_13__["a"])(t,Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])({minify:!0},e.configOption))):e.$emit("submit",t)}))},handleCopy:function(){var e=this;this.transformToAvueOptions(this.widgetForm).then((function(t){e.$Clipboard({text:Object(_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_13__["a"])(t,Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_11__["a"])({minify:!0},e.configOption))}).then((function(){e.$message.success("复制成功")})).catch((function(){e.$message.error("复制失败")}))}))},handlePreviewSubmit:function(e,t){var n=this;t?this.$alert(this.widgetModels).then((function(){t()})).catch((function(){t()})):this.$refs.form.validate((function(e,t){e&&n.$alert(n.widgetModels).then((function(){t()})).catch((function(){t()}))}))},handleBeforeClose:function(){this.$refs.form.resetForm(),this.widgetModels={},this.previewVisible=!1},handleClear:function(){var e=this;this.widgetForm&&this.widgetForm.column&&this.widgetForm.column.length>0?this.$confirm("确定要清空吗?","警告",{type:"warning"}).then((function(){e.$set(e.widgetForm,"column",[]),e.$set(e,"widgetModels",{}),e.$set(e,"widgetFormSelect",{}),e.handleHistoryChange(e.widgetForm)})).catch((function(){})):this.$message.error("没有需要清空的内容")},transformToAvueOptions:function transformToAvueOptions(obj){var _this11=this;return new Promise((function(resolve,reject){try{(function(){for(var data=_this11.deepClone(obj),_loop=function _loop(_i){var col=data.column[_i];if("dynamic"==col.type&&col.children&&col.children.column&&col.children.column.length>0){var c=col.children.column;c.forEach((function(e){delete e.subfield})),_this11.transformToAvueOptions(col.children).then((function(e){col.children=e}))}else if("group"==col.type){data.group||(data.group=[]);var group={label:col.label,icon:col.icon,prop:col.prop,arrow:col.arrow,collapse:col.collapse,display:col.display};_this11.transformToAvueOptions(col.children).then((function(e){group.column=e.column,data.group.push(group)})),data.column.splice(_i,1),_i--}else if(["checkbox","radio","tree","cascader","select"].includes(col.type)){if("static"==col.dicOption)delete col.dicUrl,delete col.dicMethod,delete col.dicQuery,delete col.dicQueryConfig;else if("remote"==col.dicOption)if(delete col.dicData,col.dicQueryConfig&&col.dicQueryConfig.length>0){var query={};col.dicQueryConfig.forEach((function(e){e.key&&e.value&&(query[e.key]=e.value)})),col.dicQuery=query,delete col.dicQueryConfig}else delete col.dicQueryConfig;delete col.dicOption}else if(["upload"].includes(col.type)){if(col.headersConfig&&col.headersConfig.length>0){var headers={};col.headersConfig.forEach((function(e){e.key&&e.value&&(headers[e.key]=e.value)})),col.headers=headers}else delete col.headers;if(delete col.headersConfig,col.dataConfig&&col.dataConfig.length>0){var _data={};col.dataConfig.forEach((function(e){e.key&&e.value&&(_data[e.key]=e.value)})),col.data=_data}else delete col.data;delete col.dataConfig}col.change?col.change=eval(col.change):delete col.change,col.click?col.click=eval(col.click):delete col.click,col.focus?col.focus=eval(col.focus):delete col.focus,col.blur?col.blur=eval(col.blur):delete col.blur,i=_i},i=0;i<data.column.length;i++)_loop(i);resolve(data)})()}catch(e){reject(e)}}))},transAvueOptionsToFormDesigner:function transAvueOptionsToFormDesigner(obj){var _this12=this;"string"==typeof obj&&(obj=eval("("+obj+")"));var data=this.deepClone(obj);return new Promise((function(e,t){try{if(data.column&&data.column.length>0&&data.column.forEach((function(e){if("dynamic"==e.type&&e.children&&e.children.column&&e.children.column.length>0){var t=e.children.column;t.forEach((function(e){e.subfield=!0})),_this12.transAvueOptionsToFormDesigner(e.children).then((function(t){e.children=t}))}else if(["checkbox","radio","tree","cascader","select"].includes(e.type)){if(!e.dicData&&e.dicQuery&&"object"==Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(e.dicQuery)){var n=[];for(var i in e.dicQuery)n.push({key:i,value:e.dicQuery[i],$cellEdit:!0});e.dicQueryConfig=n}e.dicUrl?e.dicOption="remote":e.dicOption="static",e.dicData||(e.dicData=[])}else if(["upload"].includes(e.type)){if(e.headers&&"object"==Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(e.headers)){var r=[];for(var o in e.headers)r.push({key:o,value:e.headers[o],$cellEdit:!0});e.headersConfig=r}else e.headersConfig=[];if(e.data&&"object"==Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_typeof__WEBPACK_IMPORTED_MODULE_8__["a"])(e.data)){var a=[];for(var s in e.data)a.push({key:s,value:e.data[s],$cellEdit:!0});e.dataConfig=a}else e.dataConfig=[]}})),data.group&&data.group.length>0){for(var n=function(e){data.column||(data.column=[]);var t=data.group[e],n={type:"group",label:t.label,icon:t.icon,prop:t.prop,arrow:t.arrow,collapse:t.collapse,display:t.display};_this12.transAvueOptionsToFormDesigner(t).then((function(e){n.children=e,data.column.push(n)}))},i=0;i<data.group.length;i++)n(i);delete data.group}e(data)}catch(r){t(r)}}))},getData:function(){var e=arguments,t=this;return Object(_Users_ssc_Documents_myProjects_avue_form_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_10__["a"])(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:"json","string"!=i){n.next=10;break}return n.t0=_utils_json_beautifier__WEBPACK_IMPORTED_MODULE_13__["a"],n.next=5,t.transformToAvueOptions(t.widgetForm);case 5:return n.t1=n.sent,n.t2={minify:!0},n.abrupt("return",(0,n.t0)(n.t1,n.t2));case 10:return n.next=12,t.transformToAvueOptions(t.widgetForm);case 12:return n.abrupt("return",n.sent);case 13:case"end":return n.stop()}}),n)})))()}}}},e820:function(e,t,n){"use strict";n("2eb0");var i=n("7d86"),r=n("ac97"),o=n("1810"),a=n("6e1d"),s=n("69f1"),l=o("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=o("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=o(e),g=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!m||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var v=/./[p],b=n(p,""[e],(function(e,t,n,i,r){return t.exec===a?g&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],_=b[1];i(String.prototype,e,y),i(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},eb46:function(e,t,n){"use strict";var i=n("83ec"),r=n("370b");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},eba9:function(e,t,n){var i=n("58a5");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("fb80cdb8",i,!0,{sourceMap:!1,shadowMode:!1})},ec23:function(e,t,n){var i=n("c401"),r=n("6e1d");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},eca0:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-editor .lines-content .cigr,.monaco-editor .lines-content .cigra{position:absolute}",""]),e.exports=t},eee7:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},ef61:function(e,t,n){var i=n("83ec"),r=n("c673"),o=n("3e1a"),a=n("ac97"),s=a((function(){o(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return o(r(e))}})},f05e:function(e,t,n){"use strict";var i=n("7d86"),r=n("fbcf"),o=n("ac97"),a=n("ff5c"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},f0db:function(e,t){e.exports=!1},f0f1:function(e,t,n){var i=n("396d"),r=n("e629"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},f146:function(e,t,n){var i=n("e244"),r=n("eee7"),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},f152:function(e,t,n){var i=n("eee7"),r=n("5a43"),o=n("1810"),a=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},f20c:function(e,t,n){"use strict";(function(e){
  59. /*!
  60. * The buffer module from node.js, for the browser.
  61. *
  62. * @author Feross Aboukhadijeh <http://feross.org>
  63. * @license MIT
  64. */
  65. var i=n("3ef6"),r=n("17d4"),o=n("52a2");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|b(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|_(t,n);e=l(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function g(e,t){var n=t.length<0?0:0|b(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|b(t.length);return e=l(e,n),0===e.length||t.copy(e,0,0,n),e}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return X(e).length;t=(""+t).toLowerCase(),i=!0}}function w(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function x(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function C(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,i,r);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function k(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function O(e,t,n,i){return ee(X(t,e.length-n),e,n,i)}function M(e,t,n,i){return ee(Z(t),e,n,i)}function D(e,t,n,i){return M(e,t,n,i)}function E(e,t,n,i){return ee(J(t),e,n,i)}function T(e,t,n,i){return ee(Q(t,e.length-n),e,n,i)}function L(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var o,a,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:o=e[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[r+1],a=e[r+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return N(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,a=n-t,s=Math.min(o,a),l=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return D(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function N(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=A));return n}function P(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function R(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function F(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=Y(e[o]);return r}function j(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function V(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function $(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function W(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,i,o){return o||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=t,r=1,o=this[e+--i];while(i>0&&(r*=256))o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;z(this,e,t,n,r,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;z(this,e,t,n,r,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);z(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);z(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:X(new c(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=K(e).replace(q,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function X(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,i,r,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i)}return o}function J(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ed"))},f226:function(e,t,n){var i=n("45ad"),r=n("ce47"),o=n("3352"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},f39a:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-sash{position:absolute;z-index:35;-ms-touch-action:none;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled).orthogonal-end:after,.monaco-sash.debug:not(.disabled).orthogonal-start:before{background:red}",""]),e.exports=t},f3d6:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,'.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font:"SF Mono",Monaco,Menlo,Consolas,"Ubuntu Mono","Liberation Mono","DejaVu Sans Mono","Courier New",monospace}.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-editor.hc-black{-ms-high-contrast-adjust:none}@media screen and (-ms-high-contrast:active){.monaco-editor.vs-dark .view-overlays .current-line,.monaco-editor.vs .view-overlays .current-line{border-color:windowtext!important;border-left:0;border-right:0}.monaco-editor.vs-dark .cursor,.monaco-editor.vs .cursor{background-color:windowtext!important}.monaco-editor.vs-dark .dnd-target,.monaco-editor.vs .dnd-target{border-color:windowtext!important}.monaco-editor.vs-dark .selected-text,.monaco-editor.vs .selected-text{background-color:highlight!important}.monaco-editor.vs-dark .view-line,.monaco-editor.vs .view-line{-ms-high-contrast-adjust:none}.monaco-editor.vs-dark .view-line span,.monaco-editor.vs .view-line span{color:windowtext!important}.monaco-editor.vs-dark .view-line span.inline-selected-text,.monaco-editor.vs .view-line span.inline-selected-text{color:highlighttext!important}.monaco-editor.vs-dark .view-overlays,.monaco-editor.vs .view-overlays{-ms-high-contrast-adjust:none}.monaco-editor.vs-dark .reference-decoration,.monaco-editor.vs-dark .selectionHighlight,.monaco-editor.vs-dark .wordHighlight,.monaco-editor.vs-dark .wordHighlightStrong,.monaco-editor.vs .reference-decoration,.monaco-editor.vs .selectionHighlight,.monaco-editor.vs .wordHighlight,.monaco-editor.vs .wordHighlightStrong{border:2px dotted highlight!important;background:transparent!important;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .rangeHighlight,.monaco-editor.vs .rangeHighlight{background:transparent!important;border:1px dotted activeborder!important;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .bracket-match,.monaco-editor.vs .bracket-match{border-color:windowtext!important;background:transparent!important}.monaco-editor.vs-dark .currentFindMatch,.monaco-editor.vs-dark .findMatch,.monaco-editor.vs .currentFindMatch,.monaco-editor.vs .findMatch{border:2px dotted activeborder!important;background:transparent!important;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .find-widget,.monaco-editor.vs .find-widget{border:1px solid windowtext}.monaco-editor.vs-dark .monaco-list .monaco-list-row,.monaco-editor.vs .monaco-list .monaco-list-row{-ms-high-contrast-adjust:none;color:windowtext!important}.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused,.monaco-editor.vs .monaco-list .monaco-list-row.focused{color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover,.monaco-editor.vs .monaco-list .monaco-list-row:hover{background:transparent!important;border:1px solid highlight;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar,.monaco-editor.vs .monaco-scrollable-element>.scrollbar{-ms-high-contrast-adjust:none;background:background!important;border:1px solid windowtext;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider{background:windowtext!important}.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs-dark .monaco-scrollable-element>.scrollbar>.slider:hover,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider.active,.monaco-editor.vs .monaco-scrollable-element>.scrollbar>.slider:hover{background:highlight!important}.monaco-editor.vs-dark .decorationsOverviewRuler,.monaco-editor.vs .decorationsOverviewRuler{opacity:0}.monaco-editor.vs-dark .minimap,.monaco-editor.vs .minimap{display:none}.monaco-editor.vs-dark .squiggly-d-error,.monaco-editor.vs .squiggly-d-error{background:transparent!important;border-bottom:4px double #e47777}.monaco-editor.vs-dark .squiggly-b-info,.monaco-editor.vs-dark .squiggly-c-warning,.monaco-editor.vs .squiggly-b-info,.monaco-editor.vs .squiggly-c-warning{border-bottom:4px double #71b771}.monaco-editor.vs-dark .squiggly-a-hint,.monaco-editor.vs .squiggly-a-hint{border-bottom:4px double #6c6c6c}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{-ms-high-contrast-adjust:none;color:highlighttext!important;background-color:highlight!important}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label{-ms-high-contrast-adjust:none;background:transparent!important;border:1px solid highlight;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-diff-editor.vs-dark .diffOverviewRuler,.monaco-diff-editor.vs .diffOverviewRuler{display:none}.monaco-editor.vs-dark .line-delete,.monaco-editor.vs-dark .line-insert,.monaco-editor.vs .line-delete,.monaco-editor.vs .line-insert{background:transparent!important;border:1px solid highlight!important;-webkit-box-sizing:border-box;box-sizing:border-box}.monaco-editor.vs-dark .char-delete,.monaco-editor.vs-dark .char-insert,.monaco-editor.vs .char-delete,.monaco-editor.vs .char-insert{background:transparent!important}}',""]),e.exports=t},f54f:function(e,t,n){var i=n("55ab"),r=n("e244"),o=n("a056"),a=n("ca23"),s=n("b896").f,l=n("f0f1").f,c=n("7439"),u=n("ff5c"),d=n("030e"),h=n("7d86"),f=n("ac97"),p=n("35d6").set,g=n("d30c"),m=n("1810"),v=m("match"),b=r.RegExp,y=b.prototype,_=/a/g,w=/a/g,x=new b(_)!==_,C=d.UNSUPPORTED_Y,S=i&&o("RegExp",!x||C||f((function(){return w[v]=!1,b(_)!=_||b(w)==w||"/a/i"!=b(_,"i")})));if(S){var k=function(e,t){var n,i=this instanceof k,r=c(e),o=void 0===t;if(!i&&r&&e.constructor===k&&o)return e;x?r&&!o&&(e=e.source):e instanceof k&&(o&&(t=u.call(e)),e=e.source),C&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(x?new b(e,t):b(e,t),i?this:y,k);return C&&n&&p(s,{sticky:n}),s},O=function(e){e in k||s(k,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},M=l(b),D=0;while(M.length>D)O(M[D++]);y.constructor=k,k.prototype=y,h(r,"RegExp",k)}g("RegExp")},f5ab:function(e,t,n){var i=n("ad2f");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("7ca26817",i,!0,{sourceMap:!1,shadowMode:!1})},f652:function(e,t,n){var i,r,o,a,s,l,c,u,d=n("e244"),h=n("42b1").f,f=n("59e5").set,p=n("4ad5"),g=n("f79e"),m=d.MutationObserver||d.WebKitMutationObserver,v=d.document,b=d.process,y=d.Promise,_=h(d,"queueMicrotask"),w=_&&_.value;w||(i=function(){var e,t;g&&(e=b.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():o=void 0,n}}o=void 0,e&&e.enter()},!p&&!g&&m&&v?(s=!0,l=v.createTextNode(""),new m(i).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,a=function(){u.call(c,i)}):a=g?function(){b.nextTick(i)}:function(){f.call(d,i)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,a()),o=t}},f68d:function(e,t,n){var i=n("53c2");t=i(!1),t.push([e.i,".monaco-mouse-cursor-text{cursor:text}.hc-black.mac .monaco-mouse-cursor-text,.hc-black .mac .monaco-mouse-cursor-text,.vs-dark.mac .monaco-mouse-cursor-text,.vs-dark .mac .monaco-mouse-cursor-text{cursor:-webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x,url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8,text}",""]),e.exports=t},f743:function(e,t,n){var i=n("df3c");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var r=n("4974").default;r("448cf43a",i,!0,{sourceMap:!1,shadowMode:!1})},f79e:function(e,t,n){var i=n("c401"),r=n("e244");e.exports="process"==i(r.process)},f940:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s}));var i=n("1cb4");const r="undefined"===typeof e?{cwd(){return"/"},env:Object.create(null),get platform(){return i["i"]?"win32":i["f"]?"darwin":"linux"},nextTick(e){return Object(i["j"])(e)}}:e,o=r.cwd,a=r.env,s=r.platform}).call(this,n("2552"))},f96e:function(e,t,n){var i=n("e244"),r=n("a909"),o=n("370b"),a=n("69f1");for(var s in r){var l=i[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},fa89:function(e,t,n){var i=n("6965"),r=n("7d86"),o=n("0da4");i||r(Object.prototype,"toString",o,{unsafe:!0})},fab5:function(e,t,n){"use strict";var i=n("2444"),r=n.n(i);r.a},fbcf:function(e,t,n){var i=n("eee7");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},fc01:function(e,t,n){"use strict";var i=n("7f17"),r=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new r(e)}},fc08:function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),a=new E(i||[]);return o._invoke=k(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=c;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function b(){}var y={};y[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(T([])));w&&w!==n&&i.call(w,o)&&(y=w);var x=b.prototype=m.prototype=Object.create(y);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,o,a,s){var l=u(e[r],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var r;function o(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}this._invoke=o}function k(e,t,n){var i=d;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return L()}n.method=r,n.arg=o;while(1){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=u(e,t,n);if("normal"===l.type){if(i=n.done?p:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}function O(e,n){var i=e.iterator[n.method];if(i===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=u(i,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function T(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function n(){while(++r<e.length)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:L}}function L(){return{value:t,done:!0}}return v.prototype=x.constructor=b,b.constructor=v,v.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new S(c(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),l(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(D),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:T(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=i}catch(r){Function("r","regeneratorRuntime = r")(i)}},fc9a:function(e,t,n){var i=n("e244");e.exports=i.Promise},fd3f:function(e,t){e.exports={}},fe32:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},ff5c:function(e,t,n){"use strict";var i=n("fbcf");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}}})["default"]})),(("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]=("undefined"!==typeof self?self:this)["webpackJsonpAvueFormDesign"]||[]).push([[1],{f8f9:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",(function(){return a})),n.d(t,"language",(function(){return s}));var i=n("7f36"),r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:i["a"].IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:i["a"].IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:i["a"].IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:i["a"].IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","package","private","protected","public","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}},a=r,s={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:o.operators,symbols:o.symbols,escapes:o.escapes,digits:o.digits,octaldigits:o.octaldigits,binarydigits:o.binarydigits,hexdigits:o.hexdigits,regexpctl:o.regexpctl,regexpesc:o.regexpesc,tokenizer:o.tokenizer}}}])},"373f":function(e,t,n){"use strict";var i=n("5ca1"),r=n("6821"),o=[].join;i(i.P+i.F*(n("626a")!=Object||!n("2f21")(o)),"Array",{join:function(e){return o.call(r(this),void 0===e?",":e)}})},"37a7":function(e,t,n){var i=n("f400"),r=n("5ca1"),o=n("5537")("metadata"),a=o.store||(o.store=new(n("10ad"))),s=function(e,t,n){var r=a.get(e);if(!r){if(!n)return;a.set(e,r=new i)}var o=r.get(t);if(!o){if(!n)return;r.set(t,o=new i)}return o},l=function(e,t,n){var i=s(t,n,!1);return void 0!==i&&i.has(e)},c=function(e,t,n){var i=s(t,n,!1);return void 0===i?void 0:i.get(e)},u=function(e,t,n,i){s(n,i,!0).set(e,t)},d=function(e,t){var n=s(e,t,!1),i=[];return n&&n.forEach((function(e,t){i.push(t)})),i},h=function(e){return void 0===e||"symbol"==typeof e?e:String(e)},f=function(e){r(r.S,"Reflect",e)};e.exports={store:a,map:s,has:l,get:c,set:u,keys:d,key:h,exp:f}},"37b5":function(e,t,n){"use strict";var i=n("5ca1"),r=n("7726"),o=n("8378"),a=n("8079")(),s=n("2b4c")("observable"),l=n("d8e8"),c=n("cb7c"),u=n("f605"),d=n("dcbc"),h=n("32e9"),f=n("4a59"),p=f.RETURN,g=function(e){return null==e?void 0:l(e)},m=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},b=function(e){v(e)||(e._o=void 0,m(e))},y=function(e,t){c(e),this._c=void 0,this._o=e,e=new _(this);try{var n=t(e),i=n;null!=n&&("function"===typeof n.unsubscribe?n=function(){i.unsubscribe()}:l(n),this._c=n)}catch(r){return void e.error(r)}v(this)&&m(this)};y.prototype=d({},{unsubscribe:function(){b(this)}});var _=function(e){this._s=e};_.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var i=g(n.next);if(i)return i.call(n,e)}catch(r){try{b(t)}finally{throw r}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var i=g(n.error);if(!i)throw e;e=i.call(n,e)}catch(r){try{m(t)}finally{throw r}}return m(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var i=g(n.complete);e=i?i.call(n,e):void 0}catch(r){try{m(t)}finally{throw r}}return m(t),e}}});var w=function(e){u(this,w,"Observable","_f")._f=l(e)};d(w.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||r.Promise)((function(n,i){l(e);var r=t.subscribe({next:function(t){try{return e(t)}catch(n){i(n),r.unsubscribe()}},error:i,complete:n})}))}}),d(w,{from:function(e){var t="function"===typeof this?this:w,n=g(c(e)[s]);if(n){var i=c(n.call(e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(f(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(i){if(n)throw i;return void t.error(i)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"===typeof this?this:w)((function(e){var t=!1;return a((function(){if(!t){for(var i=0;i<n.length;++i)if(e.next(n[i]),t)return;e.complete()}})),function(){t=!0}}))}}),h(w.prototype,s,(function(){return this})),i(i.G,{Observable:w}),n("7a56")("Observable")},"37c8":function(e,t,n){t.f=n("2b4c")},3819:function(e,t,n){var i=n("18eb"),r=i((function(e,t,n){for(var i=e.length-1;i>=0;i--)if(t.call(n,e[i],i,e))return i;return-1}));e.exports=r},3843:function(e,t){function n(e,t){try{delete e[t]}catch(n){e[t]=void 0}}e.exports=n},3846:function(e,t,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},"386b":function(e,t,n){var i=n("5ca1"),r=n("79e5"),o=n("be13"),a=/"/g,s=function(e,t,n,i){var r=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,"&quot;")+'"'),s+">"+r+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},"386d":function(e,t,n){"use strict";var i=n("cb7c"),r=n("83a1"),o=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=i(e),l=String(this),c=s.lastIndex;r(c,0)||(s.lastIndex=0);var u=o(s,l);return r(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"38b3":function(e,t,n){var i=n("1b14"),r=n("eb26"),o=n("4248");function a(e,t,n){return e?(i(e)?r:o)(e,t,n):e}e.exports=a},"38ba":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("2b79"))})(0,(function(e){e.lib.Cipher||function(t){var n=e,i=n.lib,r=i.Base,o=i.WordArray,a=i.BufferedBlockAlgorithm,s=n.enc,l=(s.Utf8,s.Base64),c=n.algo,u=c.EvpKDF,d=i.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?C:_}return function(t){return{encrypt:function(n,i,r){return e(i).encrypt(t,n,i,r)},decrypt:function(n,i,r){return e(i).decrypt(t,n,i,r)}}}}()}),h=(i.StreamCipher=d.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),n.mode={}),f=i.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=h.CBC=function(){var e=f.extend();function n(e,n,i){var r=this._iv;if(r){var o=r;this._iv=t}else o=this._prevBlock;for(var a=0;a<i;a++)e[n+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize;n.call(this,e,t,r),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),e.Decryptor=e.extend({processBlock:function(e,t){var i=this._cipher,r=i.blockSize,o=e.slice(t,t+r);i.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=o}}),e}(),g=n.pad={},m=g.Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);e.concat(l)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:m}),reset:function(){d.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=n.createEncryptor;else{i=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(n,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),i.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=n.format={},y=b.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var i=o.create([1398893684,1701076831]).concat(n).concat(t);else i=t;return i.toString(l)},parse:function(e){var t=l.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var i=o.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:i})}},_=i.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=e.createEncryptor(n,i),o=r.finalize(t),a=r.cfg;return v.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=e.createDecryptor(n,i).finalize(t.ciphertext);return r},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},x=w.OpenSSL={execute:function(e,t,n,i){i||(i=o.random(8));var r=u.create({keySize:t+n}).compute(e,i),a=o.create(r.words.slice(t),4*n);return r.sigBytes=4*t,v.create({key:r,iv:a,salt:i})}},C=i.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var r=i.kdf.execute(n,e.keySize,e.ivSize);i.iv=r.iv;var o=_.encrypt.call(this,e,t,r.key,i);return o.mixIn(r),o},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var r=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);i.iv=r.iv;var o=_.decrypt.call(this,e,t,r.key,i);return o}})}()}))},"38fd":function(e,t,n){var i=n("69a8"),r=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;var i={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};t.radarConfig=i},"3a24":function(e,t,n){var i=n("6d87"),r=typeof location===i?0:location;e.exports=r},"3a38":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"3a72":function(e,t,n){var i=n("7726"),r=n("8378"),o=n("2d00"),a=n("37c8"),s=n("86cc").f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"3a9c":function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=n("d8e8"),a=i.key,s=i.set;i.exp({metadata:function(e,t){return function(n,i){s(e,t,(void 0!==i?r:o)(n),a(i))}}})},"3b1c":function(e,t){var n=encodeURIComponent;e.exports=n},"3b2b":function(e,t,n){var i=n("7726"),r=n("5dbc"),o=n("86cc").f,a=n("9093").f,s=n("aae3"),l=n("0bfb"),c=i.RegExp,u=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n("9e1e")&&(!p||n("79e5")((function(){return f[n("2b4c")("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")})))){c=function(e,t){var n=this instanceof c,i=s(e),o=void 0===t;return!n&&i&&e.constructor===c&&o?e:r(p?new u(i&&!o?e.source:e,t):u((i=e instanceof c)?e.source:e,i&&o?l.call(e):t),n?this:d,c)};for(var g=function(e){e in c||o(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},m=a(u),v=0;m.length>v;)g(m[v++]);d.constructor=c,c.prototype=d,n("2aba")(i,"RegExp",c)}n("7a56")("RegExp")},"3c0e":function(e,t,n){},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3ca5":function(e,t,n){var i=n("7726").parseInt,r=n("aa77").trim,o=n("fdef"),a=/^[-+]?0[xX]/;e.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(e,t){var n=r(String(e),3);return i(n,t>>>0||(a.test(n)?16:10))}:i},"3cbd":function(e,t,n){var i=n("3843"),r=n("97b9"),o=n("a20e"),a=n("1b14"),s=n("1877"),l=n("fcd1"),c=n("87bb");function u(e,t,n){if(e){var u,d=arguments.length>1&&(s(t)||!o(t)),h=d?n:t;if(r(e))c(e,d?function(n,i){e[i]=t}:function(t,n){i(e,n)}),h&&l(e,h);else if(a(e)){if(d){u=e.length;while(u>0)u--,e[u]=t}else e.length=0;h&&e.push.apply(e,h)}}return e}e.exports=u},"3d5a":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=[],a=[],s=[],l=r.RabbitLegacy=i.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=l>>>16|4294901760&u,h=u<<16|65535&l;i[0]^=l,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=l,i[5]^=d,i[6]^=u,i[7]^=h;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),o[0]=n[0]^n[5]>>>16^n[3]<<16,o[1]=n[2]^n[7]>>>16^n[5]<<16,o[2]=n[4]^n[1]>>>16^n[7]<<16,o[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),e[t+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)a[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,o=i>>>16,l=((r*r>>>17)+r*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);s[n]=l^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=i._createHelper(l)}(),e.RabbitLegacy}))},"3e20":function(e,t,n){var i=n("8c84"),r=i("Arguments");e.exports=r},"3e8a":function(e,t,n){},"3f5c":function(e,t,n){},"3f6b":function(e,t,n){e.exports={default:n("51b6"),__esModule:!0}},"3f90":function(e,t,n){var i=n("9398"),r=n("8965"),o=n("13ed"),a=n("4e80"),s=n("2c63"),l=n("44c5"),c=[{rules:[["yyyy",4]]},{rules:[["MM",2],["M",1]],offset:-1},{rules:[["dd",2],["d",1]]},{rules:[["HH",2],["H",1]]},{rules:[["mm",2],["m",1]]},{rules:[["ss",2],["s",1]]},{rules:[["SSS",3],["S",1]]},{rules:[["ZZ",5],["Z",6],["Z",5],["Z",1]]}];function u(e,t){var n,i,o,a,s,l,u,d,h,f=[0,0,1,0,0,0,0];for(o=0,a=c.length;o<a;o++)for(s=c[o],u=0,l=s.rules,d=l.length;u<d;u++){if(n=l[u],i=t.indexOf(n[0]),i>-1&&(h=e.substring(i,i+n[1]),h&&h.length===n[1])){s.offset&&(h=r(h)+s.offset),f[o]=h;break}if(u===d-1)return f}return f}function d(e,t){var n,c;if(e)if(c=l(e),c||!t&&/^[0-9]{11,15}$/.test(e))n=new Date(c?a(e):r(e));else if(s(e)){var d,h=u(e,t||i.formatDate),f=h[7];h[0]&&(f?"z"===f[0]||"Z"===f[0]?n=new Date(o(h)):(d=f.match(/([-+]{1})(\d{2}):?(\d{2})/),d&&(n=new Date(o(h)-("-"===d[1]?-1:1)*r(d[2])*36e5+6e4*r(d[3])))):n=new Date(h[0],h[1],h[2],h[3],h[4],h[5],h[6]))}return n||new Date("")}e.exports=d},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var i=n("6dd8"),r=a(i),o=n("9619");function a(e){return e&&e.__esModule?e:{default:e}}var s="undefined"===typeof window,l=function(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if(i=t.next(),i.done)break;r=i.value}var o=r,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){s||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new r.default((0,o.debounce)(16,l)),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"40ab":function(e,t,n){var i=n("5a88");function r(e,t,n,r){var o=[];return e&&t&&i(e,(function(e,n,i,a,s,l){t.call(r,e,n,i,a,s,l)&&o.push(e)}),n),o}e.exports=r},4100:function(e,t,n){var i=n("3a24"),r=n("b977"),o=n("4b14");function a(e){return r(e.split("?")[1]||"")}function s(e){var t,n,r,s,l=""+e;return 0===l.indexOf("//")?l=(i?i.protocol:"")+l:0===l.indexOf("/")&&(l=o()+l),r=l.replace(/#.*/,"").match(/(\?.*)/),s={href:l,hash:"",host:"",hostname:"",protocol:"",port:"",search:r&&r[1]&&r[1].length>1?r[1]:""},s.path=l.replace(/^([a-z0-9.+-]*:)\/\//,(function(e,t){return s.protocol=t,""})).replace(/^([a-z0-9.+-]*)(:\d+)?\/?/,(function(e,t,i){return n=i||"",s.port=n.replace(":",""),s.hostname=t,s.host=t+n,"/"})).replace(/(#.*)/,(function(e,t){return s.hash=t.length>1?t:"",""})),t=s.hash.match(/#((.*)\?|(.*))/),s.pathname=s.path.replace(/(\?|#.*).*/,""),s.origin=s.protocol+"//"+s.host,s.hashKey=t&&(t[2]||t[1])||"",s.hashQuery=a(s.hash),s.searchQuery=a(s.search),s}e.exports=s},4127:function(e,t,n){"use strict";var i=n("d233"),r=n("b313"),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,l=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,u={delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,n,r,o,s,c,d,h,f,p,g,m){var v=t;if("function"===typeof d?v=d(n,v):v instanceof Date&&(v=p(v)),null===v){if(o)return c&&!m?c(n,u.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||i.isBuffer(v)){if(c){var b=m?n:c(n,u.encoder);return[g(b)+"="+g(c(v,u.encoder))]}return[g(n)+"="+g(String(v))]}var y,_=[];if("undefined"===typeof v)return _;if(a(d))y=d;else{var w=Object.keys(v);y=h?w.sort(h):w}for(var x=0;x<y.length;++x){var C=y[x];s&&null===v[C]||(a(v)?l(_,e(v[C],r(n,C),r,o,s,c,d,h,f,p,g,m)):l(_,e(v[C],n+(f?"."+C:"["+C+"]"),r,o,s,c,d,h,f,p,g,m)))}return _};e.exports=function(e,t){var n=e,s=t?i.assign({},t):{};if(null!==s.encoder&&"undefined"!==typeof s.encoder&&"function"!==typeof s.encoder)throw new TypeError("Encoder has to be a function.");var c="undefined"===typeof s.delimiter?u.delimiter:s.delimiter,h="boolean"===typeof s.strictNullHandling?s.strictNullHandling:u.strictNullHandling,f="boolean"===typeof s.skipNulls?s.skipNulls:u.skipNulls,p="boolean"===typeof s.encode?s.encode:u.encode,g="function"===typeof s.encoder?s.encoder:u.encoder,m="function"===typeof s.sort?s.sort:null,v="undefined"!==typeof s.allowDots&&s.allowDots,b="function"===typeof s.serializeDate?s.serializeDate:u.serializeDate,y="boolean"===typeof s.encodeValuesOnly?s.encodeValuesOnly:u.encodeValuesOnly;if("undefined"===typeof s.format)s.format=r["default"];else if(!Object.prototype.hasOwnProperty.call(r.formatters,s.format))throw new TypeError("Unknown format option provided.");var _,w,x=r.formatters[s.format];"function"===typeof s.filter?(w=s.filter,n=w("",n)):a(s.filter)&&(w=s.filter,_=w);var C,S=[];if("object"!==typeof n||null===n)return"";C=s.arrayFormat in o?s.arrayFormat:"indices"in s?s.indices?"indices":"repeat":"indices";var k=o[C];_||(_=Object.keys(n)),m&&_.sort(m);for(var O=0;O<_.length;++O){var M=_[O];f&&null===n[M]||l(S,d(n[M],M,k,h,f,p?g:null,w,m,v,b,x,y))}var D=S.join(c),E=!0===s.addQueryPrefix?"?":"";return D.length>0?E+D:""}},"416c":function(e,t,n){n("28e4")("Map")},"417f":function(e,t,n){"use strict";t.__esModule=!0;var i=n("2b0e"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],l="@@clickoutsideContext",c=void 0,u=0;function d(e,t,n){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&i.target&&r.target)||e.contains(i.target)||e.contains(r.target)||e===i.target||n.context.popperElm&&(n.context.popperElm.contains(i.target)||n.context.popperElm.contains(r.target))||(t.expression&&e[l].methodName&&n.context[e[l].methodName]?n.context[e[l].methodName]():e[l].bindingFn&&e[l].bindingFn())}}!r.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return c=e})),!r.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[l].documentHandler(e,c)}))})),t.default={bind:function(e,t,n){s.push(e);var i=u++;e[l]={id:i,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[l].documentHandler=d(e,t,n),e[l].methodName=t.expression,e[l].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][l].id===e[l].id){s.splice(n,1);break}delete e[l]}}},"41a0":function(e,t,n){"use strict";var i=n("2aeb"),r=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var i=n("3f6b"),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},"41ef":function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return v})),n.d(t,"lift",(function(){return _})),n.d(t,"toHex",(function(){return w})),n.d(t,"fastLerp",(function(){return x})),n.d(t,"fastMapToColor",(function(){return C})),n.d(t,"lerp",(function(){return S})),n.d(t,"mapToColor",(function(){return k})),n.d(t,"modifyHSL",(function(){return O})),n.d(t,"modifyAlpha",(function(){return M})),n.d(t,"stringify",(function(){return D})),n.d(t,"lum",(function(){return E})),n.d(t,"random",(function(){return T}));var i=n("d51b"),r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100):s(parseFloat(t))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function h(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new i["a"](20),g=null;function m(e,t){g&&f(g,t),g=p.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=p.get(e);if(n)return f(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in r)return f(t,r[i]),m(e,t),t;var o=i.length;if("#"!==i.charAt(0)){var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var u=i.substr(0,a),d=i.substr(a+1,s-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==d.length)return 3===d.length?h(t,+d[0],+d[1],+d[2],1):h(t,0,0,0,1);g=c(d.pop());case"rgb":return d.length>=3?(h(t,l(d[0]),l(d[1]),l(d[2]),3===d.length?g:c(d[3])),m(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==d.length?void h(t,0,0,0,1):(d[3]=c(d[3]),b(d,t),m(e,t),t);case"hsl":return 3!==d.length?void h(t,0,0,0,1):(b(d,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===o||5===o){var v=parseInt(i.slice(1,4),16);return v>=0&&v<=4095?(h(t,(3840&v)>>4|(3840&v)>>8,240&v|(240&v)>>4,15&v|(15&v)<<4,5===o?parseInt(i.slice(4),16)/15:1),m(e,t),t):void h(t,0,0,0,1)}if(7===o||9===o){v=parseInt(i.slice(1,7),16);return v>=0&&v<=16777215?(h(t,(16711680&v)>>16,(65280&v)>>8,255&v,9===o?parseInt(i.slice(7),16)/255:1),m(e,t),t):void h(t,0,0,0,1)}}}}function b(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=c(e[1]),r=c(e[2]),a=r<=.5?r*(i+1):r+i-r*i,s=2*r-a;return t=t||[],h(t,o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,c=(s+a)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(s+a):l/(2-s-a);var u=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l,h=((s-o)/6+l/2)/l;i===s?t=h-d:r===s?t=1/3+u-h:o===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,c];return null!=e[3]&&f.push(e[3]),f}}function _(e,t){var n=v(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return D(n,4===n.length?"rgba":"rgb")}}function w(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=t[r],c=t[a],u=i-r;return n[0]=o(d(l[0],c[0],u)),n[1]=o(d(l[1],c[1],u)),n[2]=o(d(l[2],c[2],u)),n[3]=s(d(l[3],c[3],u)),n}}var C=x;function S(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),a=Math.ceil(i),l=v(t[r]),c=v(t[a]),u=i-r,h=D([o(d(l[0],c[0],u)),o(d(l[1],c[1],u)),o(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return n?{color:h,leftIndex:r,rightIndex:a,value:i}:h}}var k=S;function O(e,t,n,i){var r=v(e);if(e)return r=y(r),null!=t&&(r[0]=a(t)),null!=n&&(r[1]=c(n)),null!=i&&(r[2]=c(i)),D(b(r),"rgba")}function M(e,t){var n=v(e);if(n&&null!=t)return n[3]=s(t),D(n,"rgba")}function D(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function E(e,t){var n=v(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function T(){return D([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"41f6":function(e,t,n){},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isVNode=o;var r=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))&&(0,r.hasOwn)(e,"componentOptions")}},"41fa":function(e,t,n){var i=n("abaf"),r=i("entries",2);e.exports=r},4248:function(e,t,n){var i=n("eb26"),r=n("e440");function o(e,t,n){i(r(e),(function(i){t.call(n,e[i],i,e)}))}e.exports=o},4276:function(e,t,n){var i=n("5ca1"),r=n("2d95");i(i.S,"Error",{isError:function(e){return"Error"===r(e)}})},"42ce":function(e,t,n){var i=n("4c7b");function r(e){return i(e)&&isFinite(e)}e.exports=r},4323:function(e,t,n){var i=n("9a44"),r=n("e440");function o(e){var t=new RegExp("(?:"+r(e).join("|")+")","g");return function(n){return i(n).replace(t,(function(t){return e[t]}))}}e.exports=o},4328:function(e,t,n){"use strict";var i=n("4127"),r=n("9e6a"),o=n("b313");e.exports={formats:o,parse:r,stringify:i}},4379:function(e,t,n){var i=n("4a59");e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},"448a":function(e,t,n){var i=n("2236"),r=n("11b0"),o=n("6613"),a=n("0676");function s(e){return i(e)||r(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44b8":function(e,t,n){var i=n("23c6"),r=n("4379");e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");return r(this)}}},"44c5":function(e,t,n){var i=n("8c84"),r=i("Date");e.exports=r},4504:function(e,t,n){"use strict";var i=n("5ca1"),r=n("4bf8"),o=n("d8e8"),a=n("86cc");n("9e1e")&&i(i.P+n("c5b4"),"Object",{__defineGetter__:function(e,t){a.f(r(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},"456d":function(e,t,n){var i=n("4bf8"),r=n("0d58");n("5eda")("keys",(function(){return function(e){return r(i(e))}}))},4588:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"45f2":function(e,t,n){var i=n("d9f6").f,r=n("07e3"),o=n("5168")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4656:function(e,t,n){},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},"46bb":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=h;var r=i(n("278c")),o=i(n("9523")),a=n("18ad"),s=n("5557"),l=n("9d85"),c=n("becb");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.grid;n=(0,c.deepMerge)((0,s.deepClone)(l.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:e,series:[n],key:"grid",getGraphConfig:f})}function f(e,t){var n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=p(e,t),a=m(e);return t.chart.gridArea=d({},o),[{name:"rect",index:r,animationCurve:n,animationFrame:i,shape:o,style:a}]}function p(e,t){var n=(0,r["default"])(t.chart.render.area,2),i=n[0],o=n[1],a=g(e.left,i),s=g(e.right,i),l=g(e.top,o),c=g(e.bottom,o),u=i-a-s,d=o-l-c;return{x:a,y:l,w:u,h:d}}function g(e,t){return"number"===typeof e?e:"string"!==typeof e?0:t*parseInt(e)/100}function m(e){var t=e.style;return t}},"46f4":function(e,t,n){var i=n("4910"),r=n("44c5"),o=n("1b14"),a=n("36d5"),s=n("bbd3"),l=n("1877");function c(e){return l(e)?"null":i(e)?"symbol":r(e)?"date":o(e)?"array":a(e)?"regexp":s(e)?"error":typeof e}e.exports=c},4704:function(e,t,n){var i=n("5ca1");i(i.P+i.R,"Map",{toJSON:n("44b8")("Map")})},"470c":function(e,t,n){},4726:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},15:function(e,t){e.exports=n("14e9")},18:function(e,t){e.exports=n("dcdc")},21:function(e,t){e.exports=n("d397")},26:function(e,t){e.exports=n("92fa")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},41:function(e,t){e.exports=n("e452")},52:function(e,t){e.exports=n("f494")},6:function(e,t){e.exports=n("6b7c")},61:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},r=[];i._withStripped=!0;var o,a,s=n(26),l=n.n(s),c=n(15),u=n.n(c),d=n(18),h=n.n(d),f=n(52),p=n.n(f),g=n(3),m=function(e){return e.stopPropagation()},v={inject:["panel"],components:{ElCheckbox:h.a,ElRadio:p.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,a=r.checkStrictly;!a&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=m),e("el-checkbox",l()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(g["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:m}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,c=this.nodeId,u=s.expandTrigger,d=s.checkStrictly,h=s.multiple,f=!d&&a,p={on:{}};return"click"===u?p.on.click=this.handleExpand:(p.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},p.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||d||h||(p.on.click=this.handleCheckChange),e("li",l()([{attrs:{role:"menuitem",id:c,"aria-expanded":n,tabindex:f?null:-1},class:{"el-cascader-node":!0,"is-selectable":d,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":f}},p]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},b=v,y=n(0),_=Object(y["a"])(b,o,a,!1,null,null,null);_.options.__file="packages/cascader-panel/src/cascader-node.vue";var w,x,C=_.exports,S=n(6),k=n.n(S),O={name:"ElCascaderMenu",mixins:[k.a],inject:["panel"],components:{ElScrollbar:u.a,CascaderNode:C},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(g["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,d=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+u+" L"+l+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+d+" L"+l+" "+c+" V"+d+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",l()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",l()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},M=O,D=Object(y["a"])(M,w,x,!1,null,null,null);D.options.__file="packages/cascader-panel/src/cascader-menu.vue";var E=D.exports,T=n(21),L=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var A=0,N=function(){function e(t,n,i){I(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=A++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(g["isEqual"])(e,t)})):Object(g["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(g["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(g["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},L(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(T["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),P=N;function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var F=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},j=function(){function e(t,n){R(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(g["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new P(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new P(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(g["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:F(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(g["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),B=j,z=n(9),V=n.n(z),$=n(41),W=n.n($),H=n(31),U=n.n(H),q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},G=W.a.keys,K={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:g["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Y=function(e){return!e.getAttribute("aria-owns")},X=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},Z=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Q=function(e){e&&(e.focus(),!Y(e)&&e.click())},J=function(e){if(e){var t=e.querySelector("input");t?t.click():Y(e)&&e.click()}},ee={name:"ElCascaderPanel",components:{CascaderMenu:E},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return V()(q({},K),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(g["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(g["isEmpty"])(t)?this.lazyLoad():(this.store=new B(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(g["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(g["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(g["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(g["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case G.up:var i=X(t,-1);Q(i);break;case G.down:var r=X(t,1);Q(r);break;case G.left:var o=this.$refs.menu[Z(t)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Q(a)}break;case G.right:var s=this.$refs.menu[Z(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');Q(l)}break;case G.enter:J(t);break;case G.esc:case G.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var a=r.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(g["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new B([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[a]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");U()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},te=ee,ne=Object(y["a"])(te,i,r,!1,null,null,null);ne.options.__file="packages/cascader-panel/src/cascader-panel.vue";var ie=ne.exports;ie.install=function(e){e.component(ie.name,ie)};t["default"]=ie},9:function(e,t){e.exports=n("7f4d")}})},4795:function(e,t,n){var i=n("7726"),r=n("5ca1"),o=n("a25f"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var i=arguments.length>2,r=!!i&&a.call(arguments,2);return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};r(r.G+r.B+r.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},"47ea":function(e,t,n){var i=n("d074");function r(e,t,n){var r=[];if(e&&t){if(e.filter)return e.filter(t,n);i(e,(function(i,o){t.call(n,i,o,e)&&r.push(i)}))}return r}e.exports=r},"47ee":function(e,t,n){var i=n("c3a1"),r=n("9aa9"),o=n("355d");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},"47fc":function(e,t,n){var i=n("ea7d"),r=i(parseFloat);e.exports=r},"481b":function(e,t){e.exports={}},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var i=n("f0d9"),r=d(i),o=n("2b0e"),a=d(o),s=n("9afc"),l=d(s),c=n("9d7e"),u=d(c);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,u.default)(a.default),f=r.default,p=!1,g=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return p||(p=!0,a.default.locale(a.default.config.lang,(0,l.default)(f,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=f,o=0,a=i.length;o<a;o++){var s=i[o];if(n=r[s],o===a-1)return h(n,t);if(!n)return"";r=n}return""},v=t.use=function(e){f=e||f},b=t.i18n=function(e){g=e||g};t.default={use:v,t:m,i18n:b}},"48c0":function(e,t,n){"use strict";n("386b")("bold",(function(e){return function(){return e(this,"b","","")}}))},"48f8":function(e,t,n){"use strict";var i=n("5ca1"),r=n("7b23");i(i.P+i.F*!n("2f21")([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},4910:function(e,t,n){var i=n("6d87"),r=typeof Symbol!==i;function o(e){return r&&Symbol.isSymbol?Symbol.isSymbol(e):"symbol"===typeof e}e.exports=o},4917:function(e,t,n){"use strict";var i=n("cb7c"),r=n("9def"),o=n("0390"),a=n("5f1b");n("214f")("match",1,(function(e,t,n,s){return[function(n){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=i(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;var d,h=[],f=0;while(null!==(d=a(l,c))){var p=String(d[0]);h[f]=p,""===p&&(l.lastIndex=o(c,r(l.lastIndex),u)),f++}return 0===f?null:h}]}))},"49a1":function(e,t,n){var i=n("2a2f");function r(e,t,n){var r=0,o=[];return function(){var a=arguments;r++,r<=e&&o.push(a[0]),r>=e&&t.apply(n,[o].concat(i(a)))}}e.exports=r},"49bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;var i={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};t.gridConfig=i},"4a59":function(e,t,n){var i=n("9b43"),r=n("1fa8"),o=n("33a4"),a=n("cb7c"),s=n("9def"),l=n("27ee"),c={},u={};t=e.exports=function(e,t,n,d,h){var f,p,g,m,v=h?function(){return e}:l(e),b=i(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(f=s(e.length);f>y;y++)if(m=t?b(a(p=e[y])[0],p[1]):b(e[y]),m===c||m===u)return m}else for(g=v.call(e);!(p=g.next()).done;)if(m=r(g,b,p.value,t),m===c||m===u)return m};t.BREAK=c,t.RETURN=u},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={};return i.forEach(["url","method","params","data"],(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),i.forEach(["headers","auth","proxy"],(function(r){i.isObject(t[r])?n[r]=i.deepMerge(e[r],t[r]):"undefined"!==typeof t[r]?n[r]=t[r]:i.isObject(e[r])?n[r]=i.deepMerge(e[r]):"undefined"!==typeof e[r]&&(n[r]=e[r])})),i.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],(function(i){"undefined"!==typeof t[i]?n[i]=t[i]:"undefined"!==typeof e[i]&&(n[i]=e[i])})),n}},"4b14":function(e,t,n){var i=n("3a24");function r(){return i?i.origin||i.protocol+"//"+i.host:""}e.exports=r},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var i=n("2b0e"),r=a(i),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,l=!1,c=void 0,u=function(){if(!r.default.prototype.$isServer){var e=h.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,i,a){if(!r.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var l=this.modalStack,c=0,d=l.length;c<d;c++){var h=l[c];if(h.id===e)return}var f=u();if((0,o.addClass)(f,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(f,"v-modal-enter"),i){var p=i.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(f,e)}))}setTimeout((function(){(0,o.removeClass)(f,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),t&&(f.style.zIndex=t),f.tabIndex=0,f.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:i})}},closeModal:function(e){var t=this.modalStack,n=u();if(t.length>0){var i=t[t.length-1];if(i.id===e){if(i.modalClass){var r=i.modalClass.trim().split(/\s+/);r.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return l||(c=c||(r.default.prototype.$ELEMENT||{}).zIndex||2e3,l=!0),c},set:function(e){c=e}});var f=function(){if(!r.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};r.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=f();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=h},"4b99":function(e,t,n){var i=n("1b14"),r=n("2c63"),o=n("d074");function a(e){var t=0;return r(e)||i(e)?e.length:(o(e,(function(){t++})),t)}e.exports=a},"4ba9":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._keystream;r&&(o=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<i;a++)e[t+a]^=o[a]}});return t.Decryptor=n,t}(),e.mode.OFB}))},"4bf8":function(e,t,n){var i=n("be13");e.exports=function(e){return Object(i(e))}},"4c7b":function(e,t,n){var i=n("d388"),r=i("number");e.exports=r},"4cb2":function(e,t,n){"use strict";n.r(t);var i=n("41b2"),r=n.n(i),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var a=String(r).replace(s,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[i];i<o;l=t[++i])a+=" "+l;return a}return r}function u(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function d(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!u(t)||"string"!==typeof e||e))}function h(e,t,n){var i=[],r=0,o=e.length;function a(e){i.push.apply(i,e),r++,r===o&&n(i)}e.forEach((function(e){t(e,a)}))}function f(e,t,n){var i=0,r=e.length;function o(a){if(a&&a.length)n(a);else{var s=i;i+=1,s<r?t(e[s],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function g(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,c=[],u=function(e){c.push.apply(c,e),l++,l===s&&i(c)};a.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?f(i,n,u):h(i,n,u)}))}function m(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":a()(i))&&"object"===a()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function b(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!d(t,o||e.type)||i.push(c(r.messages.required,e.fullField))}var y=b;function _(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(c(r.messages.whitespace,e.fullField))}var w=_,x={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},C={integer:function(e){return C.number(e)&&parseInt(e,10)===e},float:function(e){return C.number(e)&&!C.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===("undefined"===typeof e?"undefined":a()(e))&&!C.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(x.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(x.url)},hex:function(e){return"string"===typeof e&&!!e.match(x.hex)}};function S(e,t,n,i,r){if(e.required&&void 0===t)y(e,t,n,i,r);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?C[s](t)||i.push(c(r.messages.types[s],e.fullField,e.type)):s&&("undefined"===typeof t?"undefined":a()(t))!==e.type&&i.push(c(r.messages.types[s],e.fullField,e.type))}}var k=S;function O(e,t,n,i,r){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,d=null,h="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(h?d="number":f?d="string":p&&(d="array"),!d)return!1;p&&(u=t.length),f&&(u=t.replace(l,"_").length),o?u!==e.len&&i.push(c(r.messages[d].len,e.fullField,e.len)):a&&!s&&u<e.min?i.push(c(r.messages[d].min,e.fullField,e.min)):s&&!a&&u>e.max?i.push(c(r.messages[d].max,e.fullField,e.max)):a&&s&&(u<e.min||u>e.max)&&i.push(c(r.messages[d].range,e.fullField,e.min,e.max))}var M=O,D="enum";function E(e,t,n,i,r){e[D]=Array.isArray(e[D])?e[D]:[],-1===e[D].indexOf(t)&&i.push(c(r.messages[D],e.fullField,e[D].join(", ")))}var T=E;function L(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(c(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(c(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var I=L,A={required:y,whitespace:w,type:k,range:M,enum:T,pattern:I};function N(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();A.required(e,t,i,o,r,"string"),d(t,"string")||(A.type(e,t,i,o,r),A.range(e,t,i,o,r),A.pattern(e,t,i,o,r),!0===e.whitespace&&A.whitespace(e,t,i,o,r))}n(o)}var P=N;function R(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var F=R;function j(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var B=j;function z(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var V=z;function $(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),d(t)||A.type(e,t,i,o,r)}n(o)}var W=$;function H(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var U=H;function q(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var G=q;function K(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"array")&&!e.required)return n();A.required(e,t,i,o,r,"array"),d(t,"array")||(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var Y=K;function X(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var Z=X,Q="enum";function J(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();A.required(e,t,i,o,r),t&&A[Q](e,t,i,o,r)}n(o)}var ee=J;function te(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();A.required(e,t,i,o,r),d(t,"string")||A.pattern(e,t,i,o,r)}n(o)}var ne=te;function ie(e,t,n,i,r){var o=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();if(A.required(e,t,i,o,r),!d(t)){var s=void 0;s="number"===typeof t?new Date(t):t,A.type(e,s,i,o,r),s&&A.range(e,s.getTime(),i,o,r)}}n(o)}var re=ie;function oe(e,t,n,i,r){var o=[],s=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":a()(t);A.required(e,t,i,o,r,s),n(o)}var ae=oe;function se(e,t,n,i,r){var o=e.type,a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(d(t,o)&&!e.required)return n();A.required(e,t,i,a,r,o),d(t,o)||A.type(e,t,i,a,r)}n(a)}var le=se,ce={string:P,method:F,number:B,boolean:V,regexp:W,integer:U,float:G,array:Y,object:Z,enum:ee,pattern:ne,date:re,url:le,hex:le,email:le,required:ae};function ue(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var de=ue();function he(e){this.rules=null,this._messages=de,this.define(e)}he.prototype={messages:function(e){return e&&(this._messages=v(ue(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":a()(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=e,s=n,u=i;if("function"===typeof s&&(u=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var d=this.messages();d===de&&(d=ue()),v(d,s.messages),s.messages=d}else s.messages=this.messages();var h=void 0,f=void 0,p={},b=s.keys||Object.keys(this.rules);b.forEach((function(n){h=t.rules[n],f=o[n],h.forEach((function(i){var a=i;"function"===typeof a.transform&&(o===e&&(o=r()({},o)),f=o[n]=a.transform(f)),a="function"===typeof a?{validator:a}:r()({},a),a.validator=t.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=t.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:f,source:o,field:n}))}))}));var y={};g(p,s,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=a;if(Array.isArray(u)||(u=[u]),u.length&&l("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(m(n)),s.first&&u.length)return y[n.field]=1,t(u);if(i){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(m(n)):s.error?[s.error(n,c(s.messages.required,n.field))]:[],t(u);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=r()({},d,e.rule.fields),d)if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(o.bind(null,f))}var g=new he(d);g.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),g.validate(e.value,e.rule.options||s,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,u,e.source,s);d&&d.then&&d.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){_(e)}))}else u&&u();function _(e){var t=void 0,n=void 0,i=[],r={};function o(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;u(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?ce.required:ce[this.getType(e)]||!1}},he.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},he.messages=de;t["default"]=he},"4dda":function(e,t,n){n("ec30")("Float64",8,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"4de0":function(e,t,n){var i=n("9398"),r=n("edb5"),o=n("eecc"),a=n("6229"),s=n("2b81"),l=n("d074"),c=n("b871"),u=n("fcd1");function d(e,t){l(e,(function(e){e.children&&!e.children.length&&c(e,t)}))}function h(e,t){var n,c,h,f,p=u({},i.treeOptions,t),g=p.strict,m=p.key,v=p.parentKey,b=p.children,y=p.sortKey,_=p.reverse,w=p.data,x=[],C={};return y&&(e=o(a(e),y),_&&(e=e.reverse())),n=r(e,(function(e){return e[m]})),l(e,(function(e){c=e[m],w?(h={},h[w]=e):h=e,f=e[v],C[c]=C[c]||[],C[f]=C[f]||[],C[f].push(h),h[m]=c,h[v]=f,h[b]=C[c],(!g||g&&!f)&&(s(n,f)||x.push(h))})),g&&d(e,b),x}e.exports=h},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=62)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},19:function(e,t){e.exports=n("0e15")},21:function(e,t){e.exports=n("d397")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,d=n(0),h=Object(d["a"])(u,i,r,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},38:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},6:function(e,t){e.exports=n("6b7c")},62:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),l=n.n(s),c=n(6),u=n.n(c),d=n(10),h=n.n(d),f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},p=[];f._withStripped=!0;var g=n(5),m=n.n(g),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[m.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},b=v,y=n(0),_=Object(y["a"])(b,f,p,!1,null,null,null);_.options.__file="packages/select/src/select-dropdown.vue";var w=_.exports,x=n(33),C=n(38),S=n.n(C),k=n(15),O=n.n(k),M=n(19),D=n.n(M),E=n(12),T=n.n(E),L=n(16),I=n(31),A=n.n(I),N=n(3),P={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},R=n(21),F={mixins:[a.a,u.a,l()("reference"),P],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(N["isIE"])()&&!Object(N["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:w,ElOption:x["a"],ElTag:S.a,ElScrollbar:O.a},directives:{Clickoutside:T.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(N["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(R["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");A()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(N["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(N["getValueByPath"])(a.value,this.valueKey)===Object(N["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(N["getValueByPath"])(e,i)===Object(N["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(N["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=D()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=D()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(L["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(L["removeResizeListener"])(this.$el,this.handleResize)}},j=F,B=Object(y["a"])(j,i,r,!1,null,null,null);B.options.__file="packages/select/src/select.vue";var z=B.exports;z.install=function(e){e.component(z.name,z)};t["default"]=z}})},"4e80":function(e,t){function n(e){return e.getTime()}e.exports=n},"4e86":function(e,t,n){},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4eb1":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radar=g;var r=i(n("9523")),o=i(n("7037")),a=i(n("278c")),s=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("5557"),d=n("a870"),h=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,h.initNeedSeries)(n,c.radarConfig,"radar");i=m(i,e),i=v(i,e),i=b(i,e),(0,l.doUpdate)({chart:e,series:i,key:"radar",getGraphConfig:y,getStartGraphConfig:_,beforeChange:C}),(0,l.doUpdate)({chart:e,series:i,key:"radarPoint",getGraphConfig:S,getStartGraphConfig:k}),(0,l.doUpdate)({chart:e,series:i,key:"radarLabel",getGraphConfig:D})}function m(e,t){var n=t.radarAxis;if(!n)return[];var i=n.indicator,r=n.axisLineAngles,o=n.radius,a=n.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=i.map((function(n,i){var l=n.max,c=n.min,d=t[i];"number"!==typeof l&&(l=d),"number"!==typeof c&&(c=0),"number"!==typeof d&&(d=c);var h=(d-c)/(l-c)*o;return e.dataRadius[i]=h,u.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([h,r[i]]))}))})),e}function v(e,t){var n=t.radarAxis;if(!n)return[];var i=n.centerPos,r=n.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,n=e.label,o=n.labelGap;e.labelPosition=t.map((function(e,t){return u.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([e+o,r[t]]))}))})),e}function b(e,t){var n=t.radarAxis;if(!n)return[];var i=(0,a["default"])(n.centerPos,2),r=i[0],o=i[1];return e.forEach((function(e){var t=e.labelPosition,n=t.map((function(e){var t=(0,a["default"])(e,2),n=t[0],i=t[1],s=n>r?"left":"right",l=i>o?"top":"bottom";return{textAlign:s,textBaseline:l}}));e.labelAlign=n})),e}function y(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"polyline",index:i,animationCurve:t,animationFrame:n,shape:w(e),style:x(e)}]}function _(e,t){var n=t.chart.radarAxis.centerPos,i=y(e)[0],r=i.shape.points.length,o=new Array(r).fill(0).map((function(e){return(0,s["default"])(n)}));return i.shape.points=o,[i]}function w(e){var t=e.radarPosition;return{points:t,close:!0}}function x(e){var t=e.radarStyle,n=e.color,i=(0,d.getRgbaValue)(n);i[3]=.5;var r={stroke:n,fill:(0,d.getColorFromRgbValue)(i)};return(0,h.deepMerge)(r,t)}function C(e,t){var n=t.shape,i=e.shape.points,r=i.length,o=n.points.length;if(o>r){var a=i.slice(-1)[0],l=new Array(o-r).fill(0).map((function(e){return(0,s["default"])(a)}));i.push.apply(i,(0,s["default"])(l))}else o<r&&i.splice(o)}function S(e){var t=e.radarPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"circle",index:r,animationCurve:n,animationFrame:i,visible:e.point.show,shape:O(e,o),style:M(e,o)}}))}function k(e){var t=S(e);return t.forEach((function(e){return e.shape.r=.01})),t}function O(e,t){var n=e.radarPosition,i=e.point,r=i.radius,o=n[t];return{rx:o[0],ry:o[1],r:r}}function M(e,t){var n=e.point,i=e.color,r=n.style;return(0,h.deepMerge)({stroke:i},r)}function D(e){var t=e.labelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.label.show,animationCurve:n,animationFrame:i,shape:E(e,o),style:L(e,o)}}))}function E(e,t){var n=e.labelPosition,i=e.label,r=e.data,a=i.offset,s=i.formatter,l=T(n[t],a),c=r[t]?r[t].toString():"0",u=(0,o["default"])(s);return"string"===u&&(c=s.replace("{value}",c)),"function"===u&&(c=s(c)),{content:c,position:l}}function T(e,t){var n=(0,a["default"])(e,2),i=n[0],r=n[1],o=(0,a["default"])(t,2),s=o[0],l=o[1];return[i+s,r+l]}function L(e,t){var n=e.label,i=e.color,r=e.labelAlign,o=n.style,a=p({fill:i},r[t]);return(0,h.deepMerge)(a,o)}},"4f14":function(e,t,n){var i=n("6d87"),r=typeof document===i?0:document;e.exports=r},"4f37":function(e,t,n){"use strict";n("aa77")("trim",(function(e){return function(){return e(this,3)}}))},"4f7f":function(e,t,n){"use strict";var i=n("c26b"),r=n("b39a"),o="Set";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(r(this,o),e=0===e?0:e,e)}},i)},"4f8e":function(e,t,n){var i=n("9398"),r=n("d074"),o=n("fcd1");function a(e,t,n){var i=n.children,o=n.data,s=n.clear;return r(t,(function(t){var r=t[i];o&&(t=t[o]),e.push(t),r&&r.length&&a(e,r,n),s&&delete t[i]})),e}function s(e,t){return a([],e,o({},i.treeOptions,t))}e.exports=s},"4fd9":function(e,t,n){var i=n("d074"),r=n("2b81");function o(e){var t=[];return i(e,(function(e){r(t,e)||t.push(e)})),t}e.exports=o},"503a":function(e,t,n){var i=n("e8c0"),r=n("9d13"),o=n("e5e7"),a=n("4e80"),s=n("eb8b"),l=n("3f90"),c=n("a7ca");function u(e,t){return e=l(e),c(e)?Math.floor((a(s(e,t,o))-a(s(e,t,r)))/i)+1:NaN}e.exports=u},"504c":function(e,t,n){var i=n("9e1e"),r=n("0d58"),o=n("6821"),a=n("52a7").f;e.exports=function(e){return function(t){var n,s=o(t),l=r(s),c=l.length,u=0,d=[];while(c>u)n=l[u++],i&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},"50c0":function(e,t,n){var i=n("2a2f");function r(e,t){var n=!1,r=null,o=i(arguments,2);return function(){return n||(r=e.apply(t,i(arguments).concat(o)),n=!0),r}}e.exports=r},"50ed":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var i=n("2b0e"),r=h(i),o=n("7f4d"),a=h(o),s=n("4b26"),l=h(s),c=n("e62d"),u=h(c),d=n("5924");function h(e){return e&&e.__esModule?e:{default:e}}var f=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+f++,l.default.register(this._popupId,this)},beforeDestroy:function(){l.default.deregister(this._popupId),l.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,r.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var i=Number(n.openDelay);i>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),i):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,i=e.zIndex;if(i&&(l.default.zIndex=i),n&&(this._closing&&(l.default.closeModal(this._popupId),this._closing=!1),l.default.openModal(this._popupId,l.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),p=(0,u.default)();var r=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,d.getStyle)(document.body,"overflowY");p>0&&(r||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=l.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){l.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=l.default},5147:function(e,t,n){var i=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(r){}}return!0}},5168:function(e,t,n){var i=n("dbdb")("wks"),r=n("62a0"),o=n("e53d").Symbol,a="function"==typeof o,s=e.exports=function(e){return i[e]||(i[e]=a&&o[e]||(a?o:r)("Symbol."+e))};s.store=i},"519a":function(e,t,n){var i=n("9a44"),r=n("f1d9");function o(e,t){return r(i(e),t)}e.exports=o},"519c":function(e,t){function n(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(t===e[n])return n}e.exports=n},"51b6":function(e,t,n){n("a3c3"),e.exports=n("584a").Object.assign},"520a":function(e,t,n){"use strict";var i=n("0bfb"),r=RegExp.prototype.exec,o=String.prototype.replace,a=r,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return r.call(e,"a"),r.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(e){var t,n,a,u,d=this;return c&&(n=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(t=d[s]),a=r.call(d,e),l&&a&&(d[s]=d.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},5223:function(e,t){function n(e){return e.toUpperCase()}e.exports=n},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),a=n("2444"),s=n("d925"),l=n("e683");function c(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){c(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=r(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return c(e),t.data=r(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=r(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"52f7":function(e,t){function n(e){return function(t,n,i,r){var o=i||{},a=o.children||"children";return e(null,t,n,r,[],[],a,o)}}e.exports=n},"536b":function(e,t,n){var i=n("5ca1"),r=Math.asinh;function o(e){return isFinite(e=+e)&&0!=e?e<0?-o(-e):Math.log(e+Math.sqrt(e*e+1)):e}i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:o})},"53ca":function(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,"a",(function(){return i}))},"53e2":function(e,t,n){var i=n("07e3"),r=n("241e"),o=n("5559")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},5488:function(e,t,n){"use strict";t.__esModule=!0;var i=n("5924");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e)}return e.prototype.beforeEnter=function(e){(0,i.addClass)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},e.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?(e.style.height=e.scrollHeight+"px",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom):(e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom),e.style.overflow="hidden"},e.prototype.afterEnter=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},e.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},e.prototype.leave=function(e){0!==e.scrollHeight&&((0,i.addClass)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},e.prototype.afterLeave=function(e){(0,i.removeClass)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},e}();t.default={name:"ElCollapseTransition",functional:!0,render:function(e,t){var n=t.children,i={on:new o};return e("transition",i,n)}}},"54a2":function(e,t,n){var i=n("1b14"),r=n("604a");function o(e,t){return function(n,o){if(n){if("string"===typeof n||i(n))return n[e]?n[e](o):t(n,o);for(var a in n)if(r(n,a)&&o===n[a])return a}return-1}}e.exports=o},"54a8":function(e,t,n){"use strict";var i=n("5ca1"),r=n("79e5"),o=n("bef9"),a=1..toPrecision;i(i.P+i.F*(r((function(){return"1"!==a.call(1,void 0)}))||!r((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},"551c":function(e,t,n){"use strict";var i,r,o,a,s=n("2d00"),l=n("7726"),c=n("9b43"),u=n("23c6"),d=n("5ca1"),h=n("d3f4"),f=n("d8e8"),p=n("f605"),g=n("4a59"),m=n("ebd6"),v=n("1991").set,b=n("8079")(),y=n("a5b8"),_=n("9c80"),w=n("a25f"),x=n("bcaa"),C="Promise",S=l.TypeError,k=l.process,O=k&&k.versions,M=O&&O.v8||"",D=l[C],E="process"==u(k),T=function(){},L=r=y.f,I=!!function(){try{var e=D.resolve(1),t=(e.constructor={})[n("2b4c")("species")]=function(e){e(T,T)};return(E||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t&&0!==M.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(i){}}(),A=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},N=function(e,t){if(!e._n){e._n=!0;var n=e._c;b((function(){var i=e._v,r=1==e._s,o=0,a=function(t){var n,o,a,s=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(r||(2==e._h&&F(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===t.promise?c(S("Promise-chain cycle")):(o=A(n))?o.call(n,l,c):l(n)):c(i)}catch(d){u&&!a&&u.exit(),c(d)}};while(n.length>o)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&P(e)}))}},P=function(e){v.call(l,(function(){var t,n,i,r=e._v,o=R(e);if(o&&(t=_((function(){E?k.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),e._h=E||R(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){v.call(l,(function(){var t;E?k.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),N(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=A(e))?b((function(){var i={_w:n,_d:!1};try{t.call(e,c(B,i,1),c(j,i,1))}catch(r){j.call(i,r)}})):(n._v=e,n._s=1,N(n,!1))}catch(i){j.call({_w:n,_d:!1},i)}}};I||(D=function(e){p(this,D,C,"_h"),f(e),i.call(this);try{e(c(B,this,1),c(j,this,1))}catch(t){j.call(this,t)}},i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},i.prototype=n("dcbc")(D.prototype,{then:function(e,t){var n=L(m(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=E?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&N(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new i;this.promise=e,this.resolve=c(B,e,1),this.reject=c(j,e,1)},y.f=L=function(e){return e===D||e===a?new o(e):r(e)}),d(d.G+d.W+d.F*!I,{Promise:D}),n("7f20")(D,C),n("7a56")(C),a=n("8378")[C],d(d.S+d.F*!I,C,{reject:function(e){var t=L(this),n=t.reject;return n(e),t.promise}}),d(d.S+d.F*(s||!I),C,{resolve:function(e){return x(s&&this===a?D:this,e)}}),d(d.S+d.F*!(I&&n("5cc5")((function(e){D.all(e)["catch"](T)}))),C,{all:function(e){var t=this,n=L(t),i=n.resolve,r=n.reject,o=_((function(){var n=[],o=0,a=1;g(e,!1,(function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(e){var t=this,n=L(t),i=n.reject,r=_((function(){g(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},5537:function(e,t,n){var i=n("8378"),r=n("7726"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("2d00")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},5557:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=p,t.eliminateBlur=g,t.checkPointIsInCircle=m,t.getTwoPointDistance=v,t.checkPointIsInPolygon=b,t.checkPointIsInSector=y,t.checkPointIsNearPolyline=w,t.checkPointIsInRect=x,t.getRotatePointPos=C,t.getScalePointPos=S,t.getTranslatePointPos=k,t.getDistanceBetweenPointAndLine=O,t.getCircleRadianPoint=M,t.getRegularPolygonPoints=D,t["default"]=void 0;var r=i(n("448a")),o=i(n("278c")),a=i(n("7037")),s=Math.abs,l=Math.sqrt,c=Math.sin,u=Math.cos,d=Math.max,h=Math.min,f=Math.PI;function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,i=JSON.stringify;if(!t)return n(i(e));var r=e instanceof Array?[]:{};if(e&&"object"===(0,a["default"])(e))for(var o in e)e.hasOwnProperty(o)&&(e[o]&&"object"===(0,a["default"])(e[o])?r[o]=p(e[o],!0):r[o]=e[o]);return r}function g(e){return e.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[parseInt(n)+.5,parseInt(i)+.5]}))}function m(e,t,n,i){return v(e,[t,n])<=i}function v(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],a=(0,o["default"])(t,2),c=a[0],u=a[1],d=s(i-c),h=s(r-u);return l(d*d+h*h)}function b(e,t){for(var n=0,i=(0,o["default"])(e,2),r=i[0],a=i[1],s=t.length,l=1,c=t[0];l<=s;l++){var u=t[l%s];if(r>h(c[0],u[0])&&r<=d(c[0],u[0])&&a<=d(c[1],u[1])&&c[0]!==u[0]){var f=(r-c[0])*(u[1]-c[1])/(u[0]-c[0])+c[1];(c[1]===u[1]||a<=f)&&n++}c=u}return n%2===1}function y(e,t,n,i,r,a,s){if(!e)return!1;if(v(e,[t,n])>i)return!1;if(!s){var l=p([a,r]),c=(0,o["default"])(l,2);r=c[0],a=c[1]}var u=r>a;if(u){var d=[a,r];r=d[0],a=d[1]}var h=a-r;if(h>=2*f)return!0;var g=(0,o["default"])(e,2),m=g[0],b=g[1],y=M(t,n,i,r),w=(0,o["default"])(y,2),x=w[0],C=w[1],S=M(t,n,i,a),k=(0,o["default"])(S,2),O=k[0],D=k[1],E=[m-t,b-n],T=[x-t,C-n],L=[O-t,D-n],I=h>f;if(I){var A=p([L,T]),N=(0,o["default"])(A,2);T=N[0],L=N[1]}var P=_(T,E)&&!_(L,E);return I&&(P=!P),u&&(P=!P),P}function _(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return-r*s+i*l>0}function w(e,t,n){var i=n/2,a=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[n,r-i]})),s=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[n,r+i]})),l=[].concat((0,r["default"])(a),(0,r["default"])(s.reverse()));return b(e,l)}function x(e,t,n,i,r){var a=(0,o["default"])(e,2),s=a[0],l=a[1];return!(s<t)&&(!(l<n)&&(!(s>t+i)&&!(l>n+r)))}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360===0)return t;var i=(0,o["default"])(t,2),r=i[0],a=i[1],s=(0,o["default"])(n,2),l=s[0],d=s[1];return e*=f/180,[(r-l)*u(e)-(a-d)*c(e)+l,(r-l)*c(e)+(a-d)*u(e)+d]}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var i=(0,o["default"])(t,2),r=i[0],a=i[1],s=(0,o["default"])(n,2),l=s[0],c=s[1],u=(0,o["default"])(e,2),d=u[0],h=u[1],f=r-l,p=a-c;return[f*d+l,p*h+c]}function k(e,t){if(!e||!t)return!1;var n=(0,o["default"])(t,2),i=n[0],r=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[i+s,r+l]}function O(e,t,n){if(!e||!t||!n)return!1;var i=(0,o["default"])(e,2),r=i[0],a=i[1],c=(0,o["default"])(t,2),u=c[0],d=c[1],h=(0,o["default"])(n,2),f=h[0],p=h[1],g=p-d,m=u-f,v=d*(f-u)-u*(p-d),b=s(g*r+m*a+v),y=l(g*g+m*m);return b/y}function M(e,t,n,i){return[e+u(i)*n,t+c(i)*n]}function D(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/i,a=new Array(i).fill("").map((function(e,t){return t*o+r}));return a.map((function(i){return M(e,t,n,i)}))}var E={deepClone:p,eliminateBlur:g,checkPointIsInCircle:m,checkPointIsInPolygon:b,checkPointIsInSector:y,checkPointIsNearPolyline:w,getTwoPointDistance:v,getRotatePointPos:C,getScalePointPos:S,getTranslatePointPos:k,getCircleRadianPoint:M,getRegularPolygonPoints:D,getDistanceBetweenPointAndLine:O};t["default"]=E},5559:function(e,t,n){var i=n("dbdb")("keys"),r=n("62a0");e.exports=function(e){return i[e]||(i[e]=r(e))}},"55dd":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,l=[1,2,3];i(i.P+i.F*(a((function(){l.sort(void 0)}))||!a((function(){l.sort(null)}))||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),r(e))}})},5695:function(e,t,n){var i=n("5ca1"),r=n("77f1"),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){var t,n=[],i=arguments.length,a=0;while(i>a){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},"57e7":function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n("2f21")(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:r(this,e,arguments[1])}})},"57f0":function(e,t,n){var i=n("d3f4");n("5eda")("isSealed",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},"584a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5858:function(e,t,n){"use strict";(function(e,i){var r,o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
  66. /**
  67. * @license
  68. * Lodash <https://lodash.com/>
  69. * Copyright JS Foundation and other contributors <https://js.foundation/>
  70. * Released under MIT license <https://lodash.com/license>
  71. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  72. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  73. */(function(){var a,s="4.17.10",l=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",d="__lodash_hash_undefined__",h=500,f="__lodash_placeholder__",p=1,g=2,m=4,v=1,b=2,y=1,_=2,w=4,x=8,C=16,S=32,k=64,O=128,M=256,D=512,E=30,T="...",L=800,I=16,A=1,N=2,P=3,R=1/0,F=9007199254740991,j=17976931348623157e292,B=NaN,z=4294967295,V=z-1,$=z>>>1,W=[["ary",O],["bind",y],["bindKey",_],["curry",x],["curryRight",C],["flip",D],["partial",S],["partialRight",k],["rearg",M]],H="[object Arguments]",U="[object Array]",q="[object AsyncFunction]",G="[object Boolean]",K="[object Date]",Y="[object DOMException]",X="[object Error]",Z="[object Function]",Q="[object GeneratorFunction]",J="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",ie="[object Promise]",re="[object Proxy]",oe="[object RegExp]",ae="[object Set]",se="[object String]",le="[object Symbol]",ce="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",he="[object ArrayBuffer]",fe="[object DataView]",pe="[object Float32Array]",ge="[object Float64Array]",me="[object Int8Array]",ve="[object Int16Array]",be="[object Int32Array]",ye="[object Uint8Array]",_e="[object Uint8ClampedArray]",we="[object Uint16Array]",xe="[object Uint32Array]",Ce=/\b__p \+= '';/g,Se=/\b(__p \+=) '' \+/g,ke=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oe=/&(?:amp|lt|gt|quot|#39);/g,Me=/[&<>"']/g,De=RegExp(Oe.source),Ee=RegExp(Me.source),Te=/<%-([\s\S]+?)%>/g,Le=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ne=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Fe=RegExp(Re.source),je=/^\s+|\s+$/g,Be=/^\s+/,ze=/\s+$/,Ve=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,$e=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,He=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,qe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Ke=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,Xe=/^\[object .+?Constructor\]$/,Ze=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",it="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",ot="\\u20d0-\\u20ff",at=it+rt+ot,st="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ft="A-Z\\xc0-\\xd6\\xd8-\\xde",pt="\\ufe0e\\ufe0f",gt=ct+ut+dt+ht,mt="['’]",vt="["+nt+"]",bt="["+gt+"]",yt="["+at+"]",_t="\\d+",wt="["+st+"]",xt="["+lt+"]",Ct="[^"+nt+gt+_t+st+lt+ft+"]",St="\\ud83c[\\udffb-\\udfff]",kt="(?:"+yt+"|"+St+")",Ot="[^"+nt+"]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Dt="[\\ud800-\\udbff][\\udc00-\\udfff]",Et="["+ft+"]",Tt="\\u200d",Lt="(?:"+xt+"|"+Ct+")",It="(?:"+Et+"|"+Ct+")",At="(?:"+mt+"(?:d|ll|m|re|s|t|ve))?",Nt="(?:"+mt+"(?:D|LL|M|RE|S|T|VE))?",Pt=kt+"?",Rt="["+pt+"]?",Ft="(?:"+Tt+"(?:"+[Ot,Mt,Dt].join("|")+")"+Rt+Pt+")*",jt="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bt="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zt=Rt+Pt+Ft,Vt="(?:"+[wt,Mt,Dt].join("|")+")"+zt,$t="(?:"+[Ot+yt+"?",yt,Mt,Dt,vt].join("|")+")",Wt=RegExp(mt,"g"),Ht=RegExp(yt,"g"),Ut=RegExp(St+"(?="+St+")|"+$t+zt,"g"),qt=RegExp([Et+"?"+xt+"+"+At+"(?="+[bt,Et,"$"].join("|")+")",It+"+"+Nt+"(?="+[bt,Et+Lt,"$"].join("|")+")",Et+"?"+Lt+"+"+At,Et+"+"+Nt,Bt,jt,_t,Vt].join("|"),"g"),Gt=RegExp("["+Tt+nt+at+pt+"]"),Kt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xt=-1,Zt={};Zt[pe]=Zt[ge]=Zt[me]=Zt[ve]=Zt[be]=Zt[ye]=Zt[_e]=Zt[we]=Zt[xe]=!0,Zt[H]=Zt[U]=Zt[he]=Zt[G]=Zt[fe]=Zt[K]=Zt[X]=Zt[Z]=Zt[J]=Zt[ee]=Zt[ne]=Zt[oe]=Zt[ae]=Zt[se]=Zt[ue]=!1;var Qt={};Qt[H]=Qt[U]=Qt[he]=Qt[fe]=Qt[G]=Qt[K]=Qt[pe]=Qt[ge]=Qt[me]=Qt[ve]=Qt[be]=Qt[J]=Qt[ee]=Qt[ne]=Qt[oe]=Qt[ae]=Qt[se]=Qt[le]=Qt[ye]=Qt[_e]=Qt[we]=Qt[xe]=!0,Qt[X]=Qt[Z]=Qt[ue]=!1;var Jt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},en={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},tn={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,on=parseInt,an="object"===("undefined"===typeof e?"undefined":o(e))&&e&&e.Object===Object&&e,sn="object"===("undefined"===typeof self?"undefined":o(self))&&self&&self.Object===Object&&self,ln=an||sn||Function("return this")(),cn="object"===o(t)&&t&&!t.nodeType&&t,un=cn&&"object"===o(i)&&i&&!i.nodeType&&i,dn=un&&un.exports===cn,hn=dn&&an.process,fn=function(){try{var e=un&&un.require&&un.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),pn=fn&&fn.isArrayBuffer,gn=fn&&fn.isDate,mn=fn&&fn.isMap,vn=fn&&fn.isRegExp,bn=fn&&fn.isSet,yn=fn&&fn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,i){var r=-1,o=null==e?0:e.length;while(++r<o){var a=e[r];t(i,a,n(a),e)}return i}function xn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!1===t(e[n],n,e))break;return e}function Cn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(!t(e[n],n,e))return!1;return!0}function kn(e,t){var n=-1,i=null==e?0:e.length,r=0,o=[];while(++n<i){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function On(e,t){var n=null==e?0:e.length;return!!n&&jn(e,t,0)>-1}function Mn(e,t,n){var i=-1,r=null==e?0:e.length;while(++i<r)if(n(t,e[i]))return!0;return!1}function Dn(e,t){var n=-1,i=null==e?0:e.length,r=Array(i);while(++n<i)r[n]=t(e[n],n,e);return r}function En(e,t){var n=-1,i=t.length,r=e.length;while(++n<i)e[r+n]=t[n];return e}function Tn(e,t,n,i){var r=-1,o=null==e?0:e.length;i&&o&&(n=e[++r]);while(++r<o)n=t(n,e[r],r,e);return n}function Ln(e,t,n,i){var r=null==e?0:e.length;i&&r&&(n=e[--r]);while(r--)n=t(n,e[r],r,e);return n}function In(e,t){var n=-1,i=null==e?0:e.length;while(++n<i)if(t(e[n],n,e))return!0;return!1}var An=$n("length");function Nn(e){return e.split("")}function Pn(e){return e.match(He)||[]}function Rn(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Fn(e,t,n,i){var r=e.length,o=n+(i?1:-1);while(i?o--:++o<r)if(t(e[o],o,e))return o;return-1}function jn(e,t,n){return t===t?pi(e,t,n):Fn(e,zn,n)}function Bn(e,t,n,i){var r=n-1,o=e.length;while(++r<o)if(i(e[r],t))return r;return-1}function zn(e){return e!==e}function Vn(e,t){var n=null==e?0:e.length;return n?qn(e,t)/n:B}function $n(e){return function(t){return null==t?a:t[e]}}function Wn(e){return function(t){return null==e?a:e[t]}}function Hn(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Un(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function qn(e,t){var n,i=-1,r=e.length;while(++i<r){var o=t(e[i]);o!==a&&(n=n===a?o:n+o)}return n}function Gn(e,t){var n=-1,i=Array(e);while(++n<e)i[n]=t(n);return i}function Kn(e,t){return Dn(t,(function(t){return[t,e[t]]}))}function Yn(e){return function(t){return e(t)}}function Xn(e,t){return Dn(t,(function(t){return e[t]}))}function Zn(e,t){return e.has(t)}function Qn(e,t){var n=-1,i=e.length;while(++n<i&&jn(t,e[n],0)>-1);return n}function Jn(e,t){var n=e.length;while(n--&&jn(t,e[n],0)>-1);return n}function ei(e,t){var n=e.length,i=0;while(n--)e[n]===t&&++i;return i}var ti=Wn(Jt),ni=Wn(en);function ii(e){return"\\"+nn[e]}function ri(e,t){return null==e?a:e[t]}function oi(e){return Gt.test(e)}function ai(e){return Kt.test(e)}function si(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function li(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function ci(e,t){return function(n){return e(t(n))}}function ui(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var a=e[n];a!==t&&a!==f||(e[n]=f,o[r++]=n)}return o}function di(e,t){return"__proto__"==t?a:e[t]}function hi(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function fi(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pi(e,t,n){var i=n-1,r=e.length;while(++i<r)if(e[i]===t)return i;return-1}function gi(e,t,n){var i=n+1;while(i--)if(e[i]===t)return i;return i}function mi(e){return oi(e)?yi(e):An(e)}function vi(e){return oi(e)?_i(e):Nn(e)}var bi=Wn(tn);function yi(e){var t=Ut.lastIndex=0;while(Ut.test(e))++t;return t}function _i(e){return e.match(Ut)||[]}function wi(e){return e.match(qt)||[]}var xi=function e(t){t=null==t?ln:Ci.defaults(ln.Object(),t,Ci.pick(ln,Yt));var n=t.Array,i=t.Date,r=t.Error,He=t.Function,nt=t.Math,it=t.Object,rt=t.RegExp,ot=t.String,at=t.TypeError,st=n.prototype,lt=He.prototype,ct=it.prototype,ut=t["__core-js_shared__"],dt=lt.toString,ht=ct.hasOwnProperty,ft=0,pt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),gt=ct.toString,mt=dt.call(it),vt=ln._,bt=rt("^"+dt.call(ht).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=dn?t.Buffer:a,_t=t.Symbol,wt=t.Uint8Array,xt=yt?yt.allocUnsafe:a,Ct=ci(it.getPrototypeOf,it),St=it.create,kt=ct.propertyIsEnumerable,Ot=st.splice,Mt=_t?_t.isConcatSpreadable:a,Dt=_t?_t.iterator:a,Et=_t?_t.toStringTag:a,Tt=function(){try{var e=Ga(it,"defineProperty");return e({},"",{}),e}catch(t){}}(),Lt=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,It=i&&i.now!==ln.Date.now&&i.now,At=t.setTimeout!==ln.setTimeout&&t.setTimeout,Nt=nt.ceil,Pt=nt.floor,Rt=it.getOwnPropertySymbols,Ft=yt?yt.isBuffer:a,jt=t.isFinite,Bt=st.join,zt=ci(it.keys,it),Vt=nt.max,$t=nt.min,Ut=i.now,qt=t.parseInt,Gt=nt.random,Kt=st.reverse,Jt=Ga(t,"DataView"),en=Ga(t,"Map"),tn=Ga(t,"Promise"),nn=Ga(t,"Set"),an=Ga(t,"WeakMap"),sn=Ga(it,"create"),cn=an&&new an,un={},hn=Ls(Jt),fn=Ls(en),An=Ls(tn),Nn=Ls(nn),Wn=Ls(an),pi=_t?_t.prototype:a,yi=pi?pi.valueOf:a,_i=pi?pi.toString:a;function xi(e){if(Su(e)&&!su(e)&&!(e instanceof Mi)){if(e instanceof Oi)return e;if(ht.call(e,"__wrapped__"))return As(e)}return new Oi(e)}var Si=function(){function e(){}return function(t){if(!Cu(t))return{};if(St)return St(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function ki(){}function Oi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Mi(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=z,this.__views__=[]}function Di(){var e=new Mi(this.__wrapped__);return e.__actions__=ra(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ra(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ra(this.__views__),e}function Ei(){if(this.__filtered__){var e=new Mi(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Ti(){var e=this.__wrapped__.value(),t=this.__dir__,n=su(e),i=t<0,r=n?e.length:0,o=Qa(0,r,this.__views__),a=o.start,s=o.end,l=s-a,c=i?s:a-1,u=this.__iteratees__,d=u.length,h=0,f=$t(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return Bo(e,this.__actions__);var p=[];e:while(l--&&h<f){c+=t;var g=-1,m=e[c];while(++g<d){var v=u[g],b=v.iteratee,y=v.type,_=b(m);if(y==N)m=_;else if(!_){if(y==A)continue e;break e}}p[h++]=m}return p}function Li(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Ii(){this.__data__=sn?sn(null):{},this.size=0}function Ai(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ni(e){var t=this.__data__;if(sn){var n=t[e];return n===d?a:n}return ht.call(t,e)?t[e]:a}function Pi(e){var t=this.__data__;return sn?t[e]!==a:ht.call(t,e)}function Ri(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===a?d:t,this}function Fi(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function ji(){this.__data__=[],this.size=0}function Bi(e){var t=this.__data__,n=ur(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Ot.call(t,n,1),--this.size,!0}function zi(e){var t=this.__data__,n=ur(t,e);return n<0?a:t[n][1]}function Vi(e){return ur(this.__data__,e)>-1}function $i(e,t){var n=this.__data__,i=ur(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Wi(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var i=e[t];this.set(i[0],i[1])}}function Hi(){this.size=0,this.__data__={hash:new Li,map:new(en||Fi),string:new Li}}function Ui(e){var t=Ua(this,e)["delete"](e);return this.size-=t?1:0,t}function qi(e){return Ua(this,e).get(e)}function Gi(e){return Ua(this,e).has(e)}function Ki(e,t){var n=Ua(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Yi(e){var t=-1,n=null==e?0:e.length;this.__data__=new Wi;while(++t<n)this.add(e[t])}function Xi(e){return this.__data__.set(e,d),this}function Zi(e){return this.__data__.has(e)}function Qi(e){var t=this.__data__=new Fi(e);this.size=t.size}function Ji(){this.__data__=new Fi,this.size=0}function er(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function tr(e){return this.__data__.get(e)}function nr(e){return this.__data__.has(e)}function ir(e,t){var n=this.__data__;if(n instanceof Fi){var i=n.__data__;if(!en||i.length<l-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wi(i)}return n.set(e,t),this.size=n.size,this}function rr(e,t){var n=su(e),i=!n&&au(e),r=!n&&!i&&hu(e),o=!n&&!i&&!r&&Bu(e),a=n||i||r||o,s=a?Gn(e.length,ot):[],l=s.length;for(var c in e)!t&&!ht.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||as(c,l))||s.push(c);return s}function or(e){var t=e.length;return t?e[bo(0,t-1)]:a}function ar(e,t){return Ds(ra(e),mr(t,0,e.length))}function sr(e){return Ds(ra(e))}function lr(e,t,n){(n!==a&&!iu(e[t],n)||n===a&&!(t in e))&&pr(e,t,n)}function cr(e,t,n){var i=e[t];ht.call(e,t)&&iu(i,n)&&(n!==a||t in e)||pr(e,t,n)}function ur(e,t){var n=e.length;while(n--)if(iu(e[n][0],t))return n;return-1}function dr(e,t,n,i){return xr(e,(function(e,r,o){t(i,e,n(e),o)})),i}function hr(e,t){return e&&oa(t,wd(t),e)}function fr(e,t){return e&&oa(t,xd(t),e)}function pr(e,t,n){"__proto__"==t&&Tt?Tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gr(e,t){var i=-1,r=t.length,o=n(r),s=null==e;while(++i<r)o[i]=s?a:gd(e,t[i]);return o}function mr(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function vr(e,t,n,i,r,o){var s,l=t&p,c=t&g,u=t&m;if(n&&(s=r?n(e,i,r,o):n(e)),s!==a)return s;if(!Cu(e))return e;var d=su(e);if(d){if(s=ts(e),!l)return ra(e,s)}else{var h=Za(e),f=h==Z||h==Q;if(hu(e))return Ko(e,l);if(h==ne||h==H||f&&!r){if(s=c||f?{}:ns(e),!l)return c?sa(e,fr(s,e)):aa(e,hr(s,e))}else{if(!Qt[h])return r?e:{};s=is(e,h,l)}}o||(o=new Qi);var v=o.get(e);if(v)return v;if(o.set(e,s),Ru(e))return e.forEach((function(i){s.add(vr(i,t,n,i,e,o))})),s;if(ku(e))return e.forEach((function(i,r){s.set(r,vr(i,t,n,r,e,o))})),s;var b=u?c?za:Ba:c?xd:wd,y=d?a:b(e);return xn(y||e,(function(i,r){y&&(r=i,i=e[r]),cr(s,r,vr(i,t,n,r,e,o))})),s}function br(e){var t=wd(e);return function(n){return yr(n,e,t)}}function yr(e,t,n){var i=n.length;if(null==e)return!i;e=it(e);while(i--){var r=n[i],o=t[r],s=e[r];if(s===a&&!(r in e)||!o(s))return!1}return!0}function _r(e,t,n){if("function"!==typeof e)throw new at(u);return Ss((function(){e.apply(a,n)}),t)}function wr(e,t,n,i){var r=-1,o=On,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Dn(t,Yn(n))),i?(o=Mn,a=!1):t.length>=l&&(o=Zn,a=!1,t=new Yi(t));e:while(++r<s){var d=e[r],h=null==n?d:n(d);if(d=i||0!==d?d:0,a&&h===h){var f=u;while(f--)if(t[f]===h)continue e;c.push(d)}else o(t,h,i)||c.push(d)}return c}xi.templateSettings={escape:Te,evaluate:Le,interpolate:Ie,variable:"",imports:{_:xi}},xi.prototype=ki.prototype,xi.prototype.constructor=xi,Oi.prototype=Si(ki.prototype),Oi.prototype.constructor=Oi,Mi.prototype=Si(ki.prototype),Mi.prototype.constructor=Mi,Li.prototype.clear=Ii,Li.prototype["delete"]=Ai,Li.prototype.get=Ni,Li.prototype.has=Pi,Li.prototype.set=Ri,Fi.prototype.clear=ji,Fi.prototype["delete"]=Bi,Fi.prototype.get=zi,Fi.prototype.has=Vi,Fi.prototype.set=$i,Wi.prototype.clear=Hi,Wi.prototype["delete"]=Ui,Wi.prototype.get=qi,Wi.prototype.has=Gi,Wi.prototype.set=Ki,Yi.prototype.add=Yi.prototype.push=Xi,Yi.prototype.has=Zi,Qi.prototype.clear=Ji,Qi.prototype["delete"]=er,Qi.prototype.get=tr,Qi.prototype.has=nr,Qi.prototype.set=ir;var xr=ua(Lr),Cr=ua(Ir,!0);function Sr(e,t){var n=!0;return xr(e,(function(e,i,r){return n=!!t(e,i,r),n})),n}function kr(e,t,n){var i=-1,r=e.length;while(++i<r){var o=e[i],s=t(o);if(null!=s&&(l===a?s===s&&!ju(s):n(s,l)))var l=s,c=o}return c}function Or(e,t,n,i){var r=e.length;n=Gu(n),n<0&&(n=-n>r?0:r+n),i=i===a||i>r?r:Gu(i),i<0&&(i+=r),i=n>i?0:Ku(i);while(n<i)e[n++]=t;return e}function Mr(e,t){var n=[];return xr(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Dr(e,t,n,i,r){var o=-1,a=e.length;n||(n=os),r||(r=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?Dr(s,t-1,n,i,r):En(r,s):i||(r[r.length]=s)}return r}var Er=da(),Tr=da(!0);function Lr(e,t){return e&&Er(e,t,wd)}function Ir(e,t){return e&&Tr(e,t,wd)}function Ar(e,t){return kn(t,(function(t){return _u(e[t])}))}function Nr(e,t){t=Ho(t,e);var n=0,i=t.length;while(null!=e&&n<i)e=e[Ts(t[n++])];return n&&n==i?e:a}function Pr(e,t,n){var i=t(e);return su(e)?i:En(i,n(e))}function Rr(e){return null==e?e===a?ce:te:Et&&Et in it(e)?Ka(e):ys(e)}function Fr(e,t){return e>t}function jr(e,t){return null!=e&&ht.call(e,t)}function Br(e,t){return null!=e&&t in it(e)}function zr(e,t,n){return e>=$t(t,n)&&e<Vt(t,n)}function Vr(e,t,i){var r=i?Mn:On,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Dn(h,Yn(t))),u=$t(h.length,u),c[l]=!i&&(t||o>=120&&h.length>=120)?new Yi(l&&h):a}h=e[0];var f=-1,p=c[0];e:while(++f<o&&d.length<u){var g=h[f],m=t?t(g):g;if(g=i||0!==g?g:0,!(p?Zn(p,m):r(d,m,i))){l=s;while(--l){var v=c[l];if(!(v?Zn(v,m):r(e[l],m,i)))continue e}p&&p.push(m),d.push(g)}}return d}function $r(e,t,n,i){return Lr(e,(function(e,r,o){t(i,n(e),r,o)})),i}function Wr(e,t,n){t=Ho(t,e),e=ws(e,t);var i=null==e?e:e[Ts(rl(t))];return null==i?a:_n(i,e,n)}function Hr(e){return Su(e)&&Rr(e)==H}function Ur(e){return Su(e)&&Rr(e)==he}function qr(e){return Su(e)&&Rr(e)==K}function Gr(e,t,n,i,r){return e===t||(null==e||null==t||!Su(e)&&!Su(t)?e!==e&&t!==t:Kr(e,t,n,i,Gr,r))}function Kr(e,t,n,i,r,o){var a=su(e),s=su(t),l=a?U:Za(e),c=s?U:Za(t);l=l==H?ne:l,c=c==H?ne:c;var u=l==ne,d=c==ne,h=l==c;if(h&&hu(e)){if(!hu(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Qi),a||Bu(e)?Pa(e,t,n,i,r,o):Ra(e,t,l,n,i,r,o);if(!(n&v)){var f=u&&ht.call(e,"__wrapped__"),p=d&&ht.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,m=p?t.value():t;return o||(o=new Qi),r(g,m,n,i,o)}}return!!h&&(o||(o=new Qi),Fa(e,t,n,i,r,o))}function Yr(e){return Su(e)&&Za(e)==J}function Xr(e,t,n,i){var r=n.length,o=r,s=!i;if(null==e)return!o;e=it(e);while(r--){var l=n[r];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++r<o){l=n[r];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===a&&!(c in e))return!1}else{var h=new Qi;if(i)var f=i(u,d,c,e,t,h);if(!(f===a?Gr(d,u,v|b,i,h):f))return!1}}return!0}function Zr(e){if(!Cu(e)||ds(e))return!1;var t=_u(e)?bt:Xe;return t.test(Ls(e))}function Qr(e){return Su(e)&&Rr(e)==oe}function Jr(e){return Su(e)&&Za(e)==ae}function eo(e){return Su(e)&&xu(e.length)&&!!Zt[Rr(e)]}function to(e){return"function"===typeof e?e:null==e?Eh:"object"===("undefined"===typeof e?"undefined":o(e))?su(e)?so(e[0],e[1]):ao(e):$h(e)}function no(e){if(!fs(e))return zt(e);var t=[];for(var n in it(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function io(e){if(!Cu(e))return bs(e);var t=fs(e),n=[];for(var i in e)("constructor"!=i||!t&&ht.call(e,i))&&n.push(i);return n}function ro(e,t){return e<t}function oo(e,t){var i=-1,r=cu(e)?n(e.length):[];return xr(e,(function(e,n,o){r[++i]=t(e,n,o)})),r}function ao(e){var t=qa(e);return 1==t.length&&t[0][2]?gs(t[0][0],t[0][1]):function(n){return n===e||Xr(n,e,t)}}function so(e,t){return ls(e)&&ps(t)?gs(Ts(e),t):function(n){var i=gd(n,e);return i===a&&i===t?vd(n,e):Gr(t,i,v|b)}}function lo(e,t,n,i,r){e!==t&&Er(t,(function(o,s){if(Cu(o))r||(r=new Qi),co(e,t,s,n,lo,i,r);else{var l=i?i(di(e,s),o,s+"",e,t,r):a;l===a&&(l=o),lr(e,s,l)}}),xd)}function co(e,t,n,i,r,o,s){var l=di(e,n),c=di(t,n),u=s.get(c);if(u)lr(e,n,u);else{var d=o?o(l,c,n+"",e,t,s):a,h=d===a;if(h){var f=su(c),p=!f&&hu(c),g=!f&&!p&&Bu(c);d=c,f||p||g?su(l)?d=l:uu(l)?d=ra(l):p?(h=!1,d=Ko(c,!0)):g?(h=!1,d=Jo(c,!0)):d=[]:Au(c)||au(c)?(d=l,au(l)?d=Xu(l):(!Cu(l)||i&&_u(l))&&(d=ns(c))):h=!1}h&&(s.set(c,d),r(d,c,i,o,s),s["delete"](c)),lr(e,n,d)}}function uo(e,t){var n=e.length;if(n)return t+=t<0?n:0,as(t,n)?e[t]:a}function ho(e,t,n){var i=-1;t=Dn(t.length?t:[Eh],Yn(Ha()));var r=oo(e,(function(e,n,r){var o=Dn(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return Un(r,(function(e,t){return ta(e,t,n)}))}function fo(e,t){return po(e,t,(function(t,n){return vd(e,n)}))}function po(e,t,n){var i=-1,r=t.length,o={};while(++i<r){var a=t[i],s=Nr(e,a);n(s,a)&&So(o,Ho(a,e),s)}return o}function go(e){return function(t){return Nr(t,e)}}function mo(e,t,n,i){var r=i?Bn:jn,o=-1,a=t.length,s=e;e===t&&(t=ra(t)),n&&(s=Dn(e,Yn(n)));while(++o<a){var l=0,c=t[o],u=n?n(c):c;while((l=r(s,u,l,i))>-1)s!==e&&Ot.call(s,l,1),Ot.call(e,l,1)}return e}function vo(e,t){var n=e?t.length:0,i=n-1;while(n--){var r=t[n];if(n==i||r!==o){var o=r;as(r)?Ot.call(e,r,1):Ro(e,r)}}return e}function bo(e,t){return e+Pt(Gt()*(t-e+1))}function yo(e,t,i,r){var o=-1,a=Vt(Nt((t-e)/(i||1)),0),s=n(a);while(a--)s[r?a:++o]=e,e+=i;return s}function _o(e,t){var n="";if(!e||t<1||t>F)return n;do{t%2&&(n+=e),t=Pt(t/2),t&&(e+=e)}while(t);return n}function wo(e,t){return ks(_s(e,t,Eh),e+"")}function xo(e){return or(zd(e))}function Co(e,t){var n=zd(e);return Ds(n,mr(t,0,n.length))}function So(e,t,n,i){if(!Cu(e))return e;t=Ho(t,e);var r=-1,o=t.length,s=o-1,l=e;while(null!=l&&++r<o){var c=Ts(t[r]),u=n;if(r!=s){var d=l[c];u=i?i(d,c,l):a,u===a&&(u=Cu(d)?d:as(t[r+1])?[]:{})}cr(l,c,u),l=l[c]}return e}var ko=cn?function(e,t){return cn.set(e,t),e}:Eh,Oo=Tt?function(e,t){return Tt(e,"toString",{configurable:!0,enumerable:!1,value:kh(t),writable:!0})}:Eh;function Mo(e){return Ds(zd(e))}function Do(e,t,i){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),i=i>o?o:i,i<0&&(i+=o),o=t>i?0:i-t>>>0,t>>>=0;var a=n(o);while(++r<o)a[r]=e[r+t];return a}function Eo(e,t){var n;return xr(e,(function(e,i,r){return n=t(e,i,r),!n})),!!n}function To(e,t,n){var i=0,r=null==e?i:e.length;if("number"===typeof t&&t===t&&r<=$){while(i<r){var o=i+r>>>1,a=e[o];null!==a&&!ju(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return Lo(e,t,Eh,n)}function Lo(e,t,n,i){t=n(t);var r=0,o=null==e?0:e.length,s=t!==t,l=null===t,c=ju(t),u=t===a;while(r<o){var d=Pt((r+o)/2),h=n(e[d]),f=h!==a,p=null===h,g=h===h,m=ju(h);if(s)var v=i||g;else v=u?g&&(i||f):l?g&&f&&(i||!p):c?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);v?r=d+1:o=d}return $t(o,V)}function Io(e,t){var n=-1,i=e.length,r=0,o=[];while(++n<i){var a=e[n],s=t?t(a):a;if(!n||!iu(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function Ao(e){return"number"===typeof e?e:ju(e)?B:+e}function No(e){if("string"===typeof e)return e;if(su(e))return Dn(e,No)+"";if(ju(e))return _i?_i.call(e):"";var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Po(e,t,n){var i=-1,r=On,o=e.length,a=!0,s=[],c=s;if(n)a=!1,r=Mn;else if(o>=l){var u=t?null:Ea(e);if(u)return hi(u);a=!1,r=Zn,c=new Yi}else c=t?[]:s;e:while(++i<o){var d=e[i],h=t?t(d):d;if(d=n||0!==d?d:0,a&&h===h){var f=c.length;while(f--)if(c[f]===h)continue e;t&&c.push(h),s.push(d)}else r(c,h,n)||(c!==s&&c.push(h),s.push(d))}return s}function Ro(e,t){return t=Ho(t,e),e=ws(e,t),null==e||delete e[Ts(rl(t))]}function Fo(e,t,n,i){return So(e,t,n(Nr(e,t)),i)}function jo(e,t,n,i){var r=e.length,o=i?r:-1;while((i?o--:++o<r)&&t(e[o],o,e));return n?Do(e,i?0:o,i?o+1:r):Do(e,i?o+1:0,i?r:o)}function Bo(e,t){var n=e;return n instanceof Mi&&(n=n.value()),Tn(t,(function(e,t){return t.func.apply(t.thisArg,En([e],t.args))}),n)}function zo(e,t,i){var r=e.length;if(r<2)return r?Po(e[0]):[];var o=-1,a=n(r);while(++o<r){var s=e[o],l=-1;while(++l<r)l!=o&&(a[o]=wr(a[o]||s,e[l],t,i))}return Po(Dr(a,1),t,i)}function Vo(e,t,n){var i=-1,r=e.length,o=t.length,s={};while(++i<r){var l=i<o?t[i]:a;n(s,e[i],l)}return s}function $o(e){return uu(e)?e:[]}function Wo(e){return"function"===typeof e?e:Eh}function Ho(e,t){return su(e)?e:ls(e,t)?[e]:Es(Qu(e))}var Uo=wo;function qo(e,t,n){var i=e.length;return n=n===a?i:n,!t&&n>=i?e:Do(e,t,n)}var Go=Lt||function(e){return ln.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,i=xt?xt(n):new e.constructor(n);return e.copy(i),i}function Yo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Xo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Zo(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}function Qo(e){return yi?it(yi.call(e)):{}}function Jo(e,t){var n=t?Yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==a,i=null===e,r=e===e,o=ju(e),s=t!==a,l=null===t,c=t===t,u=ju(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||l&&n&&r||!s&&r||!c)return-1}return 0}function ta(e,t,n){var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;while(++i<a){var l=ea(r[i],o[i]);if(l){if(i>=s)return l;var c=n[i];return l*("desc"==c?-1:1)}}return e.index-t.index}function na(e,t,i,r){var o=-1,a=e.length,s=i.length,l=-1,c=t.length,u=Vt(a-s,0),d=n(c+u),h=!r;while(++l<c)d[l]=t[l];while(++o<s)(h||o<a)&&(d[i[o]]=e[o]);while(u--)d[l++]=e[o++];return d}function ia(e,t,i,r){var o=-1,a=e.length,s=-1,l=i.length,c=-1,u=t.length,d=Vt(a-l,0),h=n(d+u),f=!r;while(++o<d)h[o]=e[o];var p=o;while(++c<u)h[p+c]=t[c];while(++s<l)(f||o<a)&&(h[p+i[s]]=e[o++]);return h}function ra(e,t){var i=-1,r=e.length;t||(t=n(r));while(++i<r)t[i]=e[i];return t}function oa(e,t,n,i){var r=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var l=t[o],c=i?i(n[l],e[l],l,n,e):a;c===a&&(c=e[l]),r?pr(n,l,c):cr(n,l,c)}return n}function aa(e,t){return oa(e,Ya(e),t)}function sa(e,t){return oa(e,Xa(e),t)}function la(e,t){return function(n,i){var r=su(n)?wn:dr,o=t?t():{};return r(n,e,Ha(i,2),o)}}function ca(e){return wo((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:a,s=r>2?n[2]:a;o=e.length>3&&"function"===typeof o?(r--,o):a,s&&ss(n[0],n[1],s)&&(o=r<3?a:o,r=1),t=it(t);while(++i<r){var l=n[i];l&&e(t,l,i,o)}return t}))}function ua(e,t){return function(n,i){if(null==n)return n;if(!cu(n))return e(n,i);var r=n.length,o=t?r:-1,a=it(n);while(t?o--:++o<r)if(!1===i(a[o],o,a))break;return n}}function da(e){return function(t,n,i){var r=-1,o=it(t),a=i(t),s=a.length;while(s--){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}function ha(e,t,n){var i=t&y,r=ga(e);function o(){var t=this&&this!==ln&&this instanceof o?r:e;return t.apply(i?n:this,arguments)}return o}function fa(e){return function(t){t=Qu(t);var n=oi(t)?vi(t):a,i=n?n[0]:t.charAt(0),r=n?qo(n,1).join(""):t.slice(1);return i[e]()+r}}function pa(e){return function(t){return Tn(_h(Gd(t).replace(Wt,"")),e,"")}}function ga(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Si(e.prototype),i=e.apply(n,t);return Cu(i)?i:n}}function ma(e,t,i){var r=ga(e);function o(){var s=arguments.length,l=n(s),c=s,u=Wa(o);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:ui(l,u);if(s-=d.length,s<i)return Ma(e,t,ya,o.placeholder,a,l,d,a,a,i-s);var h=this&&this!==ln&&this instanceof o?r:e;return _n(h,this,l)}return o}function va(e){return function(t,n,i){var r=it(t);if(!cu(t)){var o=Ha(n,3);t=wd(t),n=function(e){return o(r[e],e,r)}}var s=e(t,n,i);return s>-1?r[o?t[s]:s]:a}}function ba(e){return ja((function(t){var n=t.length,i=n,r=Oi.prototype.thru;e&&t.reverse();while(i--){var o=t[i];if("function"!==typeof o)throw new at(u);if(r&&!s&&"wrapper"==$a(o))var s=new Oi([],!0)}i=s?i:n;while(++i<n){o=t[i];var l=$a(o),c="wrapper"==l?Va(o):a;s=c&&us(c[0])&&c[1]==(O|x|S|M)&&!c[4].length&&1==c[9]?s[$a(c[0])].apply(s,c[3]):1==o.length&&us(o)?s[l]():s.thru(o)}return function(){var e=arguments,i=e[0];if(s&&1==e.length&&su(i))return s.plant(i).value();var r=0,o=n?t[r].apply(this,e):i;while(++r<n)o=t[r].call(this,o);return o}}))}function ya(e,t,i,r,o,s,l,c,u,d){var h=t&O,f=t&y,p=t&_,g=t&(x|C),m=t&D,v=p?a:ga(e);function b(){var a=arguments.length,y=n(a),_=a;while(_--)y[_]=arguments[_];if(g)var w=Wa(b),x=ei(y,w);if(r&&(y=na(y,r,o,g)),s&&(y=ia(y,s,l,g)),a-=x,g&&a<d){var C=ui(y,w);return Ma(e,t,ya,b.placeholder,i,y,C,c,u,d-a)}var S=f?i:this,k=p?S[e]:e;return a=y.length,c?y=xs(y,c):m&&a>1&&y.reverse(),h&&u<a&&(y.length=u),this&&this!==ln&&this instanceof b&&(k=v||ga(k)),k.apply(S,y)}return b}function _a(e,t){return function(n,i){return $r(n,e,t(i),{})}}function wa(e,t){return function(n,i){var r;if(n===a&&i===a)return t;if(n!==a&&(r=n),i!==a){if(r===a)return i;"string"===typeof n||"string"===typeof i?(n=No(n),i=No(i)):(n=Ao(n),i=Ao(i)),r=e(n,i)}return r}}function xa(e){return ja((function(t){return t=Dn(t,Yn(Ha())),wo((function(n){var i=this;return e(t,(function(e){return _n(e,i,n)}))}))}))}function Ca(e,t){t=t===a?" ":No(t);var n=t.length;if(n<2)return n?_o(t,e):t;var i=_o(t,Nt(e/mi(t)));return oi(t)?qo(vi(i),0,e).join(""):i.slice(0,e)}function Sa(e,t,i,r){var o=t&y,a=ga(e);function s(){var t=-1,l=arguments.length,c=-1,u=r.length,d=n(u+l),h=this&&this!==ln&&this instanceof s?a:e;while(++c<u)d[c]=r[c];while(l--)d[c++]=arguments[++t];return _n(h,o?i:this,d)}return s}function ka(e){return function(t,n,i){return i&&"number"!==typeof i&&ss(t,n,i)&&(n=i=a),t=qu(t),n===a?(n=t,t=0):n=qu(n),i=i===a?t<n?1:-1:qu(i),yo(t,n,i,e)}}function Oa(e){return function(t,n){return"string"===typeof t&&"string"===typeof n||(t=Yu(t),n=Yu(n)),e(t,n)}}function Ma(e,t,n,i,r,o,s,l,c,u){var d=t&x,h=d?s:a,f=d?a:s,p=d?o:a,g=d?a:o;t|=d?S:k,t&=~(d?k:S),t&w||(t&=~(y|_));var m=[e,t,r,p,h,g,f,l,c,u],v=n.apply(a,m);return us(e)&&Cs(v,m),v.placeholder=i,Os(v,e,t)}function Da(e){var t=nt[e];return function(e,n){if(e=Yu(e),n=null==n?0:$t(Gu(n),292),n){var i=(Qu(e)+"e").split("e"),r=t(i[0]+"e"+(+i[1]+n));return i=(Qu(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-n))}return t(e)}}var Ea=nn&&1/hi(new nn([,-0]))[1]==R?function(e){return new nn(e)}:Fh;function Ta(e){return function(t){var n=Za(t);return n==J?li(t):n==ae?fi(t):Kn(t,e(t))}}function La(e,t,n,i,r,o,s,l){var c=t&_;if(!c&&"function"!==typeof e)throw new at(u);var d=i?i.length:0;if(d||(t&=~(S|k),i=r=a),s=s===a?s:Vt(Gu(s),0),l=l===a?l:Gu(l),d-=r?r.length:0,t&k){var h=i,f=r;i=r=a}var p=c?a:Va(e),g=[e,t,n,i,r,h,f,o,s,l];if(p&&vs(g,p),e=g[0],t=g[1],n=g[2],i=g[3],r=g[4],l=g[9]=g[9]===a?c?0:e.length:Vt(g[9]-d,0),!l&&t&(x|C)&&(t&=~(x|C)),t&&t!=y)m=t==x||t==C?ma(e,t,l):t!=S&&t!=(y|S)||r.length?ya.apply(a,g):Sa(e,t,n,i);else var m=ha(e,t,n);var v=p?ko:Cs;return Os(v(m,g),e,t)}function Ia(e,t,n,i){return e===a||iu(e,ct[n])&&!ht.call(i,n)?t:e}function Aa(e,t,n,i,r,o){return Cu(e)&&Cu(t)&&(o.set(t,e),lo(e,t,a,Aa,o),o["delete"](t)),e}function Na(e){return Au(e)?a:e}function Pa(e,t,n,i,r,o){var s=n&v,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var d=-1,h=!0,f=n&b?new Yi:a;o.set(e,t),o.set(t,e);while(++d<l){var p=e[d],g=t[d];if(i)var m=s?i(g,p,d,t,e,o):i(p,g,d,e,t,o);if(m!==a){if(m)continue;h=!1;break}if(f){if(!In(t,(function(e,t){if(!Zn(f,t)&&(p===e||r(p,e,n,i,o)))return f.push(t)}))){h=!1;break}}else if(p!==g&&!r(p,g,n,i,o)){h=!1;break}}return o["delete"](e),o["delete"](t),h}function Ra(e,t,n,i,r,o,a){switch(n){case fe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case G:case K:case ee:return iu(+e,+t);case X:return e.name==t.name&&e.message==t.message;case oe:case se:return e==t+"";case J:var s=li;case ae:var l=i&v;if(s||(s=hi),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=b,a.set(e,t);var u=Pa(s(e),s(t),i,r,o,a);return a["delete"](e),u;case le:if(yi)return yi.call(e)==yi.call(t)}return!1}function Fa(e,t,n,i,r,o){var s=n&v,l=Ba(e),c=l.length,u=Ba(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var f=l[h];if(!(s?f in t:ht.call(t,f)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var g=!0;o.set(e,t),o.set(t,e);var m=s;while(++h<c){f=l[h];var b=e[f],y=t[f];if(i)var _=s?i(y,b,f,t,e,o):i(b,y,f,e,t,o);if(!(_===a?b===y||r(b,y,n,i,o):_)){g=!1;break}m||(m="constructor"==f)}if(g&&!m){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"===typeof w&&w instanceof w&&"function"===typeof x&&x instanceof x||(g=!1)}return o["delete"](e),o["delete"](t),g}function ja(e){return ks(_s(e,a,Gs),e+"")}function Ba(e){return Pr(e,wd,Ya)}function za(e){return Pr(e,xd,Xa)}var Va=cn?function(e){return cn.get(e)}:Fh;function $a(e){var t=e.name+"",n=un[t],i=ht.call(un,t)?n.length:0;while(i--){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Wa(e){var t=ht.call(xi,"placeholder")?xi:e;return t.placeholder}function Ha(){var e=xi.iteratee||Th;return e=e===Th?to:e,arguments.length?e(arguments[0],arguments[1]):e}function Ua(e,t){var n=e.__data__;return cs(t)?n["string"===typeof t?"string":"hash"]:n.map}function qa(e){var t=wd(e),n=t.length;while(n--){var i=t[n],r=e[i];t[n]=[i,r,ps(r)]}return t}function Ga(e,t){var n=ri(e,t);return Zr(n)?n:a}function Ka(e){var t=ht.call(e,Et),n=e[Et];try{e[Et]=a;var i=!0}catch(o){}var r=gt.call(e);return i&&(t?e[Et]=n:delete e[Et]),r}var Ya=Rt?function(e){return null==e?[]:(e=it(e),kn(Rt(e),(function(t){return kt.call(e,t)})))}:qh,Xa=Rt?function(e){var t=[];while(e)En(t,Ya(e)),e=Ct(e);return t}:qh,Za=Rr;function Qa(e,t,n){var i=-1,r=n.length;while(++i<r){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=$t(t,e+a);break;case"takeRight":e=Vt(e,t-a);break}}return{start:e,end:t}}function Ja(e){var t=e.match($e);return t?t[1].split(We):[]}function es(e,t,n){t=Ho(t,e);var i=-1,r=t.length,o=!1;while(++i<r){var a=Ts(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&xu(r)&&as(a,r)&&(su(e)||au(e)))}function ts(e){var t=e.length,n=new e.constructor(t);return t&&"string"===typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ns(e){return"function"!==typeof e.constructor||fs(e)?{}:Si(Ct(e))}function is(e,t,n){var i=e.constructor;switch(t){case he:return Yo(e);case G:case K:return new i(+e);case fe:return Xo(e,n);case pe:case ge:case me:case ve:case be:case ye:case _e:case we:case xe:return Jo(e,n);case J:return new i;case ee:case se:return new i(e);case oe:return Zo(e);case ae:return new i;case le:return Qo(e)}}function rs(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Ve,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return su(e)||au(e)||!!(Mt&&e&&e[Mt])}function as(e,t){var n="undefined"===typeof e?"undefined":o(e);return t=null==t?F:t,!!t&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function ss(e,t,n){if(!Cu(n))return!1;var i="undefined"===typeof t?"undefined":o(t);return!!("number"==i?cu(n)&&as(t,n.length):"string"==i&&t in n)&&iu(n[t],e)}function ls(e,t){if(su(e))return!1;var n="undefined"===typeof e?"undefined":o(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ju(e))||(Ne.test(e)||!Ae.test(e)||null!=t&&e in it(t))}function cs(e){var t="undefined"===typeof e?"undefined":o(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function us(e){var t=$a(e),n=xi[t];if("function"!==typeof n||!(t in Mi.prototype))return!1;if(e===n)return!0;var i=Va(n);return!!i&&e===i[0]}function ds(e){return!!pt&&pt in e}(Jt&&Za(new Jt(new ArrayBuffer(1)))!=fe||en&&Za(new en)!=J||tn&&Za(tn.resolve())!=ie||nn&&Za(new nn)!=ae||an&&Za(new an)!=ue)&&(Za=function(e){var t=Rr(e),n=t==ne?e.constructor:a,i=n?Ls(n):"";if(i)switch(i){case hn:return fe;case fn:return J;case An:return ie;case Nn:return ae;case Wn:return ue}return t});var hs=ut?_u:Gh;function fs(e){var t=e&&e.constructor,n="function"===typeof t&&t.prototype||ct;return e===n}function ps(e){return e===e&&!Cu(e)}function gs(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in it(n)))}}function ms(e){var t=Bc(e,(function(e){return n.size===h&&n.clear(),e})),n=t.cache;return t}function vs(e,t){var n=e[1],i=t[1],r=n|i,o=r<(y|_|O),a=i==O&&n==x||i==O&&n==M&&e[7].length<=t[8]||i==(O|M)&&t[7].length<=t[8]&&n==x;if(!o&&!a)return e;i&y&&(e[2]=t[2],r|=n&y?0:w);var s=t[3];if(s){var l=e[3];e[3]=l?na(l,s,t[4]):s,e[4]=l?ui(e[3],f):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ia(l,s,t[6]):s,e[6]=l?ui(e[5],f):t[6]),s=t[7],s&&(e[7]=s),i&O&&(e[8]=null==e[8]?t[8]:$t(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r,e}function bs(e){var t=[];if(null!=e)for(var n in it(e))t.push(n);return t}function ys(e){return gt.call(e)}function _s(e,t,i){return t=Vt(t===a?e.length-1:t,0),function(){var r=arguments,o=-1,a=Vt(r.length-t,0),s=n(a);while(++o<a)s[o]=r[t+o];o=-1;var l=n(t+1);while(++o<t)l[o]=r[o];return l[t]=i(s),_n(e,this,l)}}function ws(e,t){return t.length<2?e:Nr(e,Do(t,0,-1))}function xs(e,t){var n=e.length,i=$t(t.length,n),r=ra(e);while(i--){var o=t[i];e[i]=as(o,n)?r[o]:a}return e}var Cs=Ms(ko),Ss=At||function(e,t){return ln.setTimeout(e,t)},ks=Ms(Oo);function Os(e,t,n){var i=t+"";return ks(e,rs(i,Is(Ja(i),n)))}function Ms(e){var t=0,n=0;return function(){var i=Ut(),r=I-(i-n);if(n=i,r>0){if(++t>=L)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Ds(e,t){var n=-1,i=e.length,r=i-1;t=t===a?i:t;while(++n<t){var o=bo(n,r),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Es=ms((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Pe,(function(e,n,i,r){t.push(i?r.replace(Ue,"$1"):n||e)})),t}));function Ts(e){if("string"===typeof e||ju(e))return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Ls(e){if(null!=e){try{return dt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Is(e,t){return xn(W,(function(n){var i="_."+n[0];t&n[1]&&!On(e,i)&&e.push(i)})),e.sort()}function As(e){if(e instanceof Mi)return e.clone();var t=new Oi(e.__wrapped__,e.__chain__);return t.__actions__=ra(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ns(e,t,i){t=(i?ss(e,t,i):t===a)?1:Vt(Gu(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];var o=0,s=0,l=n(Nt(r/t));while(o<r)l[s++]=Do(e,o,o+=t);return l}function Ps(e){var t=-1,n=null==e?0:e.length,i=0,r=[];while(++t<n){var o=e[t];o&&(r[i++]=o)}return r}function Rs(){var e=arguments.length;if(!e)return[];var t=n(e-1),i=arguments[0],r=e;while(r--)t[r-1]=arguments[r];return En(su(i)?ra(i):[i],Dr(t,1))}var Fs=wo((function(e,t){return uu(e)?wr(e,Dr(t,1,uu,!0)):[]})),js=wo((function(e,t){var n=rl(t);return uu(n)&&(n=a),uu(e)?wr(e,Dr(t,1,uu,!0),Ha(n,2)):[]})),Bs=wo((function(e,t){var n=rl(t);return uu(n)&&(n=a),uu(e)?wr(e,Dr(t,1,uu,!0),a,n):[]}));function zs(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===a?1:Gu(t),Do(e,t<0?0:t,i)):[]}function Vs(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===a?1:Gu(t),t=i-t,Do(e,0,t<0?0:t)):[]}function $s(e,t){return e&&e.length?jo(e,Ha(t,3),!0,!0):[]}function Ws(e,t){return e&&e.length?jo(e,Ha(t,3),!0):[]}function Hs(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!==typeof n&&ss(e,t,n)&&(n=0,i=r),Or(e,t,n,i)):[]}function Us(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Gu(n);return r<0&&(r=Vt(i+r,0)),Fn(e,Ha(t,3),r)}function qs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return n!==a&&(r=Gu(n),r=n<0?Vt(i+r,0):$t(r,i-1)),Fn(e,Ha(t,3),r,!0)}function Gs(e){var t=null==e?0:e.length;return t?Dr(e,1):[]}function Ks(e){var t=null==e?0:e.length;return t?Dr(e,R):[]}function Ys(e,t){var n=null==e?0:e.length;return n?(t=t===a?1:Gu(t),Dr(e,t)):[]}function Xs(e){var t=-1,n=null==e?0:e.length,i={};while(++t<n){var r=e[t];i[r[0]]=r[1]}return i}function Zs(e){return e&&e.length?e[0]:a}function Qs(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:Gu(n);return r<0&&(r=Vt(i+r,0)),jn(e,t,r)}function Js(e){var t=null==e?0:e.length;return t?Do(e,0,-1):[]}var el=wo((function(e){var t=Dn(e,$o);return t.length&&t[0]===e[0]?Vr(t):[]})),tl=wo((function(e){var t=rl(e),n=Dn(e,$o);return t===rl(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Vr(n,Ha(t,2)):[]})),nl=wo((function(e){var t=rl(e),n=Dn(e,$o);return t="function"===typeof t?t:a,t&&n.pop(),n.length&&n[0]===e[0]?Vr(n,a,t):[]}));function il(e,t){return null==e?"":Bt.call(e,t)}function rl(e){var t=null==e?0:e.length;return t?e[t-1]:a}function ol(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return n!==a&&(r=Gu(n),r=r<0?Vt(i+r,0):$t(r,i-1)),t===t?gi(e,t,r):Fn(e,zn,r,!0)}function al(e,t){return e&&e.length?uo(e,Gu(t)):a}var sl=wo(ll);function ll(e,t){return e&&e.length&&t&&t.length?mo(e,t):e}function cl(e,t,n){return e&&e.length&&t&&t.length?mo(e,t,Ha(n,2)):e}function ul(e,t,n){return e&&e.length&&t&&t.length?mo(e,t,a,n):e}var dl=ja((function(e,t){var n=null==e?0:e.length,i=gr(e,t);return vo(e,Dn(t,(function(e){return as(e,n)?+e:e})).sort(ea)),i}));function hl(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;t=Ha(t,3);while(++i<o){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return vo(e,r),n}function fl(e){return null==e?e:Kt.call(e)}function pl(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!==typeof n&&ss(e,t,n)?(t=0,n=i):(t=null==t?0:Gu(t),n=n===a?i:Gu(n)),Do(e,t,n)):[]}function gl(e,t){return To(e,t)}function ml(e,t,n){return Lo(e,t,Ha(n,2))}function vl(e,t){var n=null==e?0:e.length;if(n){var i=To(e,t);if(i<n&&iu(e[i],t))return i}return-1}function bl(e,t){return To(e,t,!0)}function yl(e,t,n){return Lo(e,t,Ha(n,2),!0)}function _l(e,t){var n=null==e?0:e.length;if(n){var i=To(e,t,!0)-1;if(iu(e[i],t))return i}return-1}function wl(e){return e&&e.length?Io(e):[]}function xl(e,t){return e&&e.length?Io(e,Ha(t,2)):[]}function Cl(e){var t=null==e?0:e.length;return t?Do(e,1,t):[]}function Sl(e,t,n){return e&&e.length?(t=n||t===a?1:Gu(t),Do(e,0,t<0?0:t)):[]}function kl(e,t,n){var i=null==e?0:e.length;return i?(t=n||t===a?1:Gu(t),t=i-t,Do(e,t<0?0:t,i)):[]}function Ol(e,t){return e&&e.length?jo(e,Ha(t,3),!1,!0):[]}function Ml(e,t){return e&&e.length?jo(e,Ha(t,3)):[]}var Dl=wo((function(e){return Po(Dr(e,1,uu,!0))})),El=wo((function(e){var t=rl(e);return uu(t)&&(t=a),Po(Dr(e,1,uu,!0),Ha(t,2))})),Tl=wo((function(e){var t=rl(e);return t="function"===typeof t?t:a,Po(Dr(e,1,uu,!0),a,t)}));function Ll(e){return e&&e.length?Po(e):[]}function Il(e,t){return e&&e.length?Po(e,Ha(t,2)):[]}function Al(e,t){return t="function"===typeof t?t:a,e&&e.length?Po(e,a,t):[]}function Nl(e){if(!e||!e.length)return[];var t=0;return e=kn(e,(function(e){if(uu(e))return t=Vt(e.length,t),!0})),Gn(t,(function(t){return Dn(e,$n(t))}))}function Pl(e,t){if(!e||!e.length)return[];var n=Nl(e);return null==t?n:Dn(n,(function(e){return _n(t,a,e)}))}var Rl=wo((function(e,t){return uu(e)?wr(e,t):[]})),Fl=wo((function(e){return zo(kn(e,uu))})),jl=wo((function(e){var t=rl(e);return uu(t)&&(t=a),zo(kn(e,uu),Ha(t,2))})),Bl=wo((function(e){var t=rl(e);return t="function"===typeof t?t:a,zo(kn(e,uu),a,t)})),zl=wo(Nl);function Vl(e,t){return Vo(e||[],t||[],cr)}function $l(e,t){return Vo(e||[],t||[],So)}var Wl=wo((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"===typeof n?(e.pop(),n):a,Pl(e,n)}));function Hl(e){var t=xi(e);return t.__chain__=!0,t}function Ul(e,t){return t(e),e}function ql(e,t){return t(e)}var Gl=ja((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,r=function(t){return gr(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Mi&&as(n)?(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:ql,args:[r],thisArg:a}),new Oi(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(r)}));function Kl(){return Hl(this)}function Yl(){return new Oi(this.value(),this.__chain__)}function Xl(){this.__values__===a&&(this.__values__=Uu(this.value()));var e=this.__index__>=this.__values__.length,t=e?a:this.__values__[this.__index__++];return{done:e,value:t}}function Zl(){return this}function Ql(e){var t,n=this;while(n instanceof ki){var i=As(n);i.__index__=0,i.__values__=a,t?r.__wrapped__=i:t=i;var r=i;n=n.__wrapped__}return r.__wrapped__=e,t}function Jl(){var e=this.__wrapped__;if(e instanceof Mi){var t=e;return this.__actions__.length&&(t=new Mi(this)),t=t.reverse(),t.__actions__.push({func:ql,args:[fl],thisArg:a}),new Oi(t,this.__chain__)}return this.thru(fl)}function ec(){return Bo(this.__wrapped__,this.__actions__)}var tc=la((function(e,t,n){ht.call(e,n)?++e[n]:pr(e,n,1)}));function nc(e,t,n){var i=su(e)?Sn:Sr;return n&&ss(e,t,n)&&(t=a),i(e,Ha(t,3))}function ic(e,t){var n=su(e)?kn:Mr;return n(e,Ha(t,3))}var rc=va(Us),oc=va(qs);function ac(e,t){return Dr(gc(e,t),1)}function sc(e,t){return Dr(gc(e,t),R)}function lc(e,t,n){return n=n===a?1:Gu(n),Dr(gc(e,t),n)}function cc(e,t){var n=su(e)?xn:xr;return n(e,Ha(t,3))}function uc(e,t){var n=su(e)?Cn:Cr;return n(e,Ha(t,3))}var dc=la((function(e,t,n){ht.call(e,n)?e[n].push(t):pr(e,n,[t])}));function hc(e,t,n,i){e=cu(e)?e:zd(e),n=n&&!i?Gu(n):0;var r=e.length;return n<0&&(n=Vt(r+n,0)),Fu(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&jn(e,t,n)>-1}var fc=wo((function(e,t,i){var r=-1,o="function"===typeof t,a=cu(e)?n(e.length):[];return xr(e,(function(e){a[++r]=o?_n(t,e,i):Wr(e,t,i)})),a})),pc=la((function(e,t,n){pr(e,n,t)}));function gc(e,t){var n=su(e)?Dn:oo;return n(e,Ha(t,3))}function mc(e,t,n,i){return null==e?[]:(su(t)||(t=null==t?[]:[t]),n=i?a:n,su(n)||(n=null==n?[]:[n]),ho(e,t,n))}var vc=la((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function bc(e,t,n){var i=su(e)?Tn:Hn,r=arguments.length<3;return i(e,Ha(t,4),n,r,xr)}function yc(e,t,n){var i=su(e)?Ln:Hn,r=arguments.length<3;return i(e,Ha(t,4),n,r,Cr)}function _c(e,t){var n=su(e)?kn:Mr;return n(e,zc(Ha(t,3)))}function wc(e){var t=su(e)?or:xo;return t(e)}function xc(e,t,n){t=(n?ss(e,t,n):t===a)?1:Gu(t);var i=su(e)?ar:Co;return i(e,t)}function Cc(e){var t=su(e)?sr:Mo;return t(e)}function Sc(e){if(null==e)return 0;if(cu(e))return Fu(e)?mi(e):e.length;var t=Za(e);return t==J||t==ae?e.size:no(e).length}function kc(e,t,n){var i=su(e)?In:Eo;return n&&ss(e,t,n)&&(t=a),i(e,Ha(t,3))}var Oc=wo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ss(e,t[0],t[1])?t=[]:n>2&&ss(t[0],t[1],t[2])&&(t=[t[0]]),ho(e,Dr(t,1),[])})),Mc=It||function(){return ln.Date.now()};function Dc(e,t){if("function"!==typeof t)throw new at(u);return e=Gu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ec(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,La(e,O,a,a,a,a,t)}function Tc(e,t){var n;if("function"!==typeof t)throw new at(u);return e=Gu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Lc=wo((function(e,t,n){var i=y;if(n.length){var r=ui(n,Wa(Lc));i|=S}return La(e,i,t,n,r)})),Ic=wo((function(e,t,n){var i=y|_;if(n.length){var r=ui(n,Wa(Ic));i|=S}return La(t,i,e,n,r)}));function Ac(e,t,n){t=n?a:t;var i=La(e,x,a,a,a,a,a,t);return i.placeholder=Ac.placeholder,i}function Nc(e,t,n){t=n?a:t;var i=La(e,C,a,a,a,a,a,t);return i.placeholder=Nc.placeholder,i}function Pc(e,t,n){var i,r,o,s,l,c,d=0,h=!1,f=!1,p=!0;if("function"!==typeof e)throw new at(u);function g(t){var n=i,o=r;return i=r=a,d=t,s=e.apply(o,n),s}function m(e){return d=e,l=Ss(y,t),h?g(e):s}function v(e){var n=e-c,i=e-d,r=t-n;return f?$t(r,o-i):r}function b(e){var n=e-c,i=e-d;return c===a||n>=t||n<0||f&&i>=o}function y(){var e=Mc();if(b(e))return _(e);l=Ss(y,v(e))}function _(e){return l=a,p&&i?g(e):(i=r=a,s)}function w(){l!==a&&Go(l),d=0,i=c=r=l=a}function x(){return l===a?s:_(Mc())}function C(){var e=Mc(),n=b(e);if(i=arguments,r=this,c=e,n){if(l===a)return m(c);if(f)return l=Ss(y,t),g(c)}return l===a&&(l=Ss(y,t)),s}return t=Yu(t)||0,Cu(n)&&(h=!!n.leading,f="maxWait"in n,o=f?Vt(Yu(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),C.cancel=w,C.flush=x,C}var Rc=wo((function(e,t){return _r(e,1,t)})),Fc=wo((function(e,t,n){return _r(e,Yu(t)||0,n)}));function jc(e){return La(e,D)}function Bc(e,t){if("function"!==typeof e||null!=t&&"function"!==typeof t)throw new at(u);var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(Bc.Cache||Wi),n}function zc(e){if("function"!==typeof e)throw new at(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vc(e){return Tc(2,e)}Bc.Cache=Wi;var $c=Uo((function(e,t){t=1==t.length&&su(t[0])?Dn(t[0],Yn(Ha())):Dn(Dr(t,1),Yn(Ha()));var n=t.length;return wo((function(i){var r=-1,o=$t(i.length,n);while(++r<o)i[r]=t[r].call(this,i[r]);return _n(e,this,i)}))})),Wc=wo((function(e,t){var n=ui(t,Wa(Wc));return La(e,S,a,t,n)})),Hc=wo((function(e,t){var n=ui(t,Wa(Hc));return La(e,k,a,t,n)})),Uc=ja((function(e,t){return La(e,M,a,a,a,t)}));function qc(e,t){if("function"!==typeof e)throw new at(u);return t=t===a?t:Gu(t),wo(e,t)}function Gc(e,t){if("function"!==typeof e)throw new at(u);return t=null==t?0:Vt(Gu(t),0),wo((function(n){var i=n[t],r=qo(n,0,t);return i&&En(r,i),_n(e,this,r)}))}function Kc(e,t,n){var i=!0,r=!0;if("function"!==typeof e)throw new at(u);return Cu(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Pc(e,t,{leading:i,maxWait:t,trailing:r})}function Yc(e){return Ec(e,1)}function Xc(e,t){return Wc(Wo(t),e)}function Zc(){if(!arguments.length)return[];var e=arguments[0];return su(e)?e:[e]}function Qc(e){return vr(e,m)}function Jc(e,t){return t="function"===typeof t?t:a,vr(e,m,t)}function eu(e){return vr(e,p|m)}function tu(e,t){return t="function"===typeof t?t:a,vr(e,p|m,t)}function nu(e,t){return null==t||yr(e,t,wd(t))}function iu(e,t){return e===t||e!==e&&t!==t}var ru=Oa(Fr),ou=Oa((function(e,t){return e>=t})),au=Hr(function(){return arguments}())?Hr:function(e){return Su(e)&&ht.call(e,"callee")&&!kt.call(e,"callee")},su=n.isArray,lu=pn?Yn(pn):Ur;function cu(e){return null!=e&&xu(e.length)&&!_u(e)}function uu(e){return Su(e)&&cu(e)}function du(e){return!0===e||!1===e||Su(e)&&Rr(e)==G}var hu=Ft||Gh,fu=gn?Yn(gn):qr;function pu(e){return Su(e)&&1===e.nodeType&&!Au(e)}function gu(e){if(null==e)return!0;if(cu(e)&&(su(e)||"string"===typeof e||"function"===typeof e.splice||hu(e)||Bu(e)||au(e)))return!e.length;var t=Za(e);if(t==J||t==ae)return!e.size;if(fs(e))return!no(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0}function mu(e,t){return Gr(e,t)}function vu(e,t,n){n="function"===typeof n?n:a;var i=n?n(e,t):a;return i===a?Gr(e,t,a,n):!!i}function bu(e){if(!Su(e))return!1;var t=Rr(e);return t==X||t==Y||"string"===typeof e.message&&"string"===typeof e.name&&!Au(e)}function yu(e){return"number"===typeof e&&jt(e)}function _u(e){if(!Cu(e))return!1;var t=Rr(e);return t==Z||t==Q||t==q||t==re}function wu(e){return"number"===typeof e&&e==Gu(e)}function xu(e){return"number"===typeof e&&e>-1&&e%1==0&&e<=F}function Cu(e){var t="undefined"===typeof e?"undefined":o(e);return null!=e&&("object"==t||"function"==t)}function Su(e){return null!=e&&"object"===("undefined"===typeof e?"undefined":o(e))}var ku=mn?Yn(mn):Yr;function Ou(e,t){return e===t||Xr(e,t,qa(t))}function Mu(e,t,n){return n="function"===typeof n?n:a,Xr(e,t,qa(t),n)}function Du(e){return Iu(e)&&e!=+e}function Eu(e){if(hs(e))throw new r(c);return Zr(e)}function Tu(e){return null===e}function Lu(e){return null==e}function Iu(e){return"number"===typeof e||Su(e)&&Rr(e)==ee}function Au(e){if(!Su(e)||Rr(e)!=ne)return!1;var t=Ct(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"===typeof n&&n instanceof n&&dt.call(n)==mt}var Nu=vn?Yn(vn):Qr;function Pu(e){return wu(e)&&e>=-F&&e<=F}var Ru=bn?Yn(bn):Jr;function Fu(e){return"string"===typeof e||!su(e)&&Su(e)&&Rr(e)==se}function ju(e){return"symbol"===("undefined"===typeof e?"undefined":o(e))||Su(e)&&Rr(e)==le}var Bu=yn?Yn(yn):eo;function zu(e){return e===a}function Vu(e){return Su(e)&&Za(e)==ue}function $u(e){return Su(e)&&Rr(e)==de}var Wu=Oa(ro),Hu=Oa((function(e,t){return e<=t}));function Uu(e){if(!e)return[];if(cu(e))return Fu(e)?vi(e):ra(e);if(Dt&&e[Dt])return si(e[Dt]());var t=Za(e),n=t==J?li:t==ae?hi:zd;return n(e)}function qu(e){if(!e)return 0===e?e:0;if(e=Yu(e),e===R||e===-R){var t=e<0?-1:1;return t*j}return e===e?e:0}function Gu(e){var t=qu(e),n=t%1;return t===t?n?t-n:t:0}function Ku(e){return e?mr(Gu(e),0,z):0}function Yu(e){if("number"===typeof e)return e;if(ju(e))return B;if(Cu(e)){var t="function"===typeof e.valueOf?e.valueOf():e;e=Cu(t)?t+"":t}if("string"!==typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Ye.test(e);return n||Ze.test(e)?on(e.slice(2),n?2:8):Ke.test(e)?B:+e}function Xu(e){return oa(e,xd(e))}function Zu(e){return e?mr(Gu(e),-F,F):0===e?e:0}function Qu(e){return null==e?"":No(e)}var Ju=ca((function(e,t){if(fs(t)||cu(t))oa(t,wd(t),e);else for(var n in t)ht.call(t,n)&&cr(e,n,t[n])})),ed=ca((function(e,t){oa(t,xd(t),e)})),td=ca((function(e,t,n,i){oa(t,xd(t),e,i)})),nd=ca((function(e,t,n,i){oa(t,wd(t),e,i)})),id=ja(gr);function rd(e,t){var n=Si(e);return null==t?n:hr(n,t)}var od=wo((function(e,t){e=it(e);var n=-1,i=t.length,r=i>2?t[2]:a;r&&ss(t[0],t[1],r)&&(i=1);while(++n<i){var o=t[n],s=xd(o),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===a||iu(d,ct[u])&&!ht.call(e,u))&&(e[u]=o[u])}}return e})),ad=wo((function(e){return e.push(a,Aa),_n(Od,a,e)}));function sd(e,t){return Rn(e,Ha(t,3),Lr)}function ld(e,t){return Rn(e,Ha(t,3),Ir)}function cd(e,t){return null==e?e:Er(e,Ha(t,3),xd)}function ud(e,t){return null==e?e:Tr(e,Ha(t,3),xd)}function dd(e,t){return e&&Lr(e,Ha(t,3))}function hd(e,t){return e&&Ir(e,Ha(t,3))}function fd(e){return null==e?[]:Ar(e,wd(e))}function pd(e){return null==e?[]:Ar(e,xd(e))}function gd(e,t,n){var i=null==e?a:Nr(e,t);return i===a?n:i}function md(e,t){return null!=e&&es(e,t,jr)}function vd(e,t){return null!=e&&es(e,t,Br)}var bd=_a((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=gt.call(t)),e[t]=n}),kh(Eh)),yd=_a((function(e,t,n){null!=t&&"function"!==typeof t.toString&&(t=gt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]}),Ha),_d=wo(Wr);function wd(e){return cu(e)?rr(e):no(e)}function xd(e){return cu(e)?rr(e,!0):io(e)}function Cd(e,t){var n={};return t=Ha(t,3),Lr(e,(function(e,i,r){pr(n,t(e,i,r),e)})),n}function Sd(e,t){var n={};return t=Ha(t,3),Lr(e,(function(e,i,r){pr(n,i,t(e,i,r))})),n}var kd=ca((function(e,t,n){lo(e,t,n)})),Od=ca((function(e,t,n,i){lo(e,t,n,i)})),Md=ja((function(e,t){var n={};if(null==e)return n;var i=!1;t=Dn(t,(function(t){return t=Ho(t,e),i||(i=t.length>1),t})),oa(e,za(e),n),i&&(n=vr(n,p|g|m,Na));var r=t.length;while(r--)Ro(n,t[r]);return n}));function Dd(e,t){return Td(e,zc(Ha(t)))}var Ed=ja((function(e,t){return null==e?{}:fo(e,t)}));function Td(e,t){if(null==e)return{};var n=Dn(za(e),(function(e){return[e]}));return t=Ha(t),po(e,n,(function(e,n){return t(e,n[0])}))}function Ld(e,t,n){t=Ho(t,e);var i=-1,r=t.length;r||(r=1,e=a);while(++i<r){var o=null==e?a:e[Ts(t[i])];o===a&&(i=r,o=n),e=_u(o)?o.call(e):o}return e}function Id(e,t,n){return null==e?e:So(e,t,n)}function Ad(e,t,n,i){return i="function"===typeof i?i:a,null==e?e:So(e,t,n,i)}var Nd=Ta(wd),Pd=Ta(xd);function Rd(e,t,n){var i=su(e),r=i||hu(e)||Bu(e);if(t=Ha(t,4),null==n){var o=e&&e.constructor;n=r?i?new o:[]:Cu(e)&&_u(o)?Si(Ct(e)):{}}return(r?xn:Lr)(e,(function(e,i,r){return t(n,e,i,r)})),n}function Fd(e,t){return null==e||Ro(e,t)}function jd(e,t,n){return null==e?e:Fo(e,t,Wo(n))}function Bd(e,t,n,i){return i="function"===typeof i?i:a,null==e?e:Fo(e,t,Wo(n),i)}function zd(e){return null==e?[]:Xn(e,wd(e))}function Vd(e){return null==e?[]:Xn(e,xd(e))}function $d(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=Yu(n),n=n===n?n:0),t!==a&&(t=Yu(t),t=t===t?t:0),mr(Yu(e),t,n)}function Wd(e,t,n){return t=qu(t),n===a?(n=t,t=0):n=qu(n),e=Yu(e),zr(e,t,n)}function Hd(e,t,n){if(n&&"boolean"!==typeof n&&ss(e,t,n)&&(t=n=a),n===a&&("boolean"===typeof t?(n=t,t=a):"boolean"===typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=qu(e),t===a?(t=e,e=0):t=qu(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var r=Gt();return $t(e+r*(t-e+rn("1e-"+((r+"").length-1))),t)}return bo(e,t)}var Ud=pa((function(e,t,n){return t=t.toLowerCase(),e+(n?qd(t):t)}));function qd(e){return yh(Qu(e).toLowerCase())}function Gd(e){return e=Qu(e),e&&e.replace(Je,ti).replace(Ht,"")}function Kd(e,t,n){e=Qu(e),t=No(t);var i=e.length;n=n===a?i:mr(Gu(n),0,i);var r=n;return n-=t.length,n>=0&&e.slice(n,r)==t}function Yd(e){return e=Qu(e),e&&Ee.test(e)?e.replace(Me,ni):e}function Xd(e){return e=Qu(e),e&&Fe.test(e)?e.replace(Re,"\\$&"):e}var Zd=pa((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qd=pa((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Jd=fa("toLowerCase");function eh(e,t,n){e=Qu(e),t=Gu(t);var i=t?mi(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Ca(Pt(r),n)+e+Ca(Nt(r),n)}function th(e,t,n){e=Qu(e),t=Gu(t);var i=t?mi(e):0;return t&&i<t?e+Ca(t-i,n):e}function nh(e,t,n){e=Qu(e),t=Gu(t);var i=t?mi(e):0;return t&&i<t?Ca(t-i,n)+e:e}function ih(e,t,n){return n||null==t?t=0:t&&(t=+t),qt(Qu(e).replace(Be,""),t||0)}function rh(e,t,n){return t=(n?ss(e,t,n):t===a)?1:Gu(t),_o(Qu(e),t)}function oh(){var e=arguments,t=Qu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ah=pa((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));function sh(e,t,n){return n&&"number"!==typeof n&&ss(e,t,n)&&(t=n=a),n=n===a?z:n>>>0,n?(e=Qu(e),e&&("string"===typeof t||null!=t&&!Nu(t))&&(t=No(t),!t&&oi(e))?qo(vi(e),0,n):e.split(t,n)):[]}var lh=pa((function(e,t,n){return e+(n?" ":"")+yh(t)}));function ch(e,t,n){return e=Qu(e),n=null==n?0:mr(Gu(n),0,e.length),t=No(t),e.slice(n,n+t.length)==t}function uh(e,t,n){var i=xi.templateSettings;n&&ss(e,t,n)&&(t=a),e=Qu(e),t=td({},t,i,Ia);var r,o,s=td({},t.imports,i.imports,Ia),l=wd(s),c=Xn(s,l),u=0,d=t.interpolate||et,h="__p += '",f=rt((t.escape||et).source+"|"+d.source+"|"+(d===Ie?qe:et).source+"|"+(t.evaluate||et).source+"|$","g"),p="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Xt+"]")+"\n";e.replace(f,(function(t,n,i,a,s,l){return i||(i=a),h+=e.slice(u,l).replace(tt,ii),n&&(r=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var g=t.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(Ce,""):h).replace(Se,"$1").replace(ke,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=wh((function(){return He(l,p+"return "+h).apply(a,c)}));if(m.source=h,bu(m))throw m;return m}function dh(e){return Qu(e).toLowerCase()}function hh(e){return Qu(e).toUpperCase()}function fh(e,t,n){if(e=Qu(e),e&&(n||t===a))return e.replace(je,"");if(!e||!(t=No(t)))return e;var i=vi(e),r=vi(t),o=Qn(i,r),s=Jn(i,r)+1;return qo(i,o,s).join("")}function ph(e,t,n){if(e=Qu(e),e&&(n||t===a))return e.replace(ze,"");if(!e||!(t=No(t)))return e;var i=vi(e),r=Jn(i,vi(t))+1;return qo(i,0,r).join("")}function gh(e,t,n){if(e=Qu(e),e&&(n||t===a))return e.replace(Be,"");if(!e||!(t=No(t)))return e;var i=vi(e),r=Qn(i,vi(t));return qo(i,r).join("")}function mh(e,t){var n=E,i=T;if(Cu(t)){var r="separator"in t?t.separator:r;n="length"in t?Gu(t.length):n,i="omission"in t?No(t.omission):i}e=Qu(e);var o=e.length;if(oi(e)){var s=vi(e);o=s.length}if(n>=o)return e;var l=n-mi(i);if(l<1)return i;var c=s?qo(s,0,l).join(""):e.slice(0,l);if(r===a)return c+i;if(s&&(l+=c.length-l),Nu(r)){if(e.slice(l).search(r)){var u,d=c;r.global||(r=rt(r.source,Qu(Ge.exec(r))+"g")),r.lastIndex=0;while(u=r.exec(d))var h=u.index;c=c.slice(0,h===a?l:h)}}else if(e.indexOf(No(r),l)!=l){var f=c.lastIndexOf(r);f>-1&&(c=c.slice(0,f))}return c+i}function vh(e){return e=Qu(e),e&&De.test(e)?e.replace(Oe,bi):e}var bh=pa((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),yh=fa("toUpperCase");function _h(e,t,n){return e=Qu(e),t=n?a:t,t===a?ai(e)?wi(e):Pn(e):e.match(t)||[]}var wh=wo((function(e,t){try{return _n(e,a,t)}catch(n){return bu(n)?n:new r(n)}})),xh=ja((function(e,t){return xn(t,(function(t){t=Ts(t),pr(e,t,Lc(e[t],e))})),e}));function Ch(e){var t=null==e?0:e.length,n=Ha();return e=t?Dn(e,(function(e){if("function"!==typeof e[1])throw new at(u);return[n(e[0]),e[1]]})):[],wo((function(n){var i=-1;while(++i<t){var r=e[i];if(_n(r[0],this,n))return _n(r[1],this,n)}}))}function Sh(e){return br(vr(e,p))}function kh(e){return function(){return e}}function Oh(e,t){return null==e||e!==e?t:e}var Mh=ba(),Dh=ba(!0);function Eh(e){return e}function Th(e){return to("function"===typeof e?e:vr(e,p))}function Lh(e){return ao(vr(e,p))}function Ih(e,t){return so(e,vr(t,p))}var Ah=wo((function(e,t){return function(n){return Wr(n,e,t)}})),Nh=wo((function(e,t){return function(n){return Wr(e,n,t)}}));function Ph(e,t,n){var i=wd(t),r=Ar(t,i);null!=n||Cu(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Ar(t,wd(t)));var o=!(Cu(n)&&"chain"in n)||!!n.chain,a=_u(e);return xn(r,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),r=n.__actions__=ra(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,En([this.value()],arguments))})})),e}function Rh(){return ln._===this&&(ln._=vt),this}function Fh(){}function jh(e){return e=Gu(e),wo((function(t){return uo(t,e)}))}var Bh=xa(Dn),zh=xa(Sn),Vh=xa(In);function $h(e){return ls(e)?$n(Ts(e)):go(e)}function Wh(e){return function(t){return null==e?a:Nr(e,t)}}var Hh=ka(),Uh=ka(!0);function qh(){return[]}function Gh(){return!1}function Kh(){return{}}function Yh(){return""}function Xh(){return!0}function Zh(e,t){if(e=Gu(e),e<1||e>F)return[];var n=z,i=$t(e,z);t=Ha(t),e-=z;var r=Gn(i,t);while(++n<e)t(n);return r}function Qh(e){return su(e)?Dn(e,Ts):ju(e)?[e]:ra(Es(Qu(e)))}function Jh(e){var t=++ft;return Qu(e)+t}var ef=wa((function(e,t){return e+t}),0),tf=Da("ceil"),nf=wa((function(e,t){return e/t}),1),rf=Da("floor");function of(e){return e&&e.length?kr(e,Eh,Fr):a}function af(e,t){return e&&e.length?kr(e,Ha(t,2),Fr):a}function sf(e){return Vn(e,Eh)}function lf(e,t){return Vn(e,Ha(t,2))}function cf(e){return e&&e.length?kr(e,Eh,ro):a}function uf(e,t){return e&&e.length?kr(e,Ha(t,2),ro):a}var df=wa((function(e,t){return e*t}),1),hf=Da("round"),ff=wa((function(e,t){return e-t}),0);function pf(e){return e&&e.length?qn(e,Eh):0}function gf(e,t){return e&&e.length?qn(e,Ha(t,2)):0}return xi.after=Dc,xi.ary=Ec,xi.assign=Ju,xi.assignIn=ed,xi.assignInWith=td,xi.assignWith=nd,xi.at=id,xi.before=Tc,xi.bind=Lc,xi.bindAll=xh,xi.bindKey=Ic,xi.castArray=Zc,xi.chain=Hl,xi.chunk=Ns,xi.compact=Ps,xi.concat=Rs,xi.cond=Ch,xi.conforms=Sh,xi.constant=kh,xi.countBy=tc,xi.create=rd,xi.curry=Ac,xi.curryRight=Nc,xi.debounce=Pc,xi.defaults=od,xi.defaultsDeep=ad,xi.defer=Rc,xi.delay=Fc,xi.difference=Fs,xi.differenceBy=js,xi.differenceWith=Bs,xi.drop=zs,xi.dropRight=Vs,xi.dropRightWhile=$s,xi.dropWhile=Ws,xi.fill=Hs,xi.filter=ic,xi.flatMap=ac,xi.flatMapDeep=sc,xi.flatMapDepth=lc,xi.flatten=Gs,xi.flattenDeep=Ks,xi.flattenDepth=Ys,xi.flip=jc,xi.flow=Mh,xi.flowRight=Dh,xi.fromPairs=Xs,xi.functions=fd,xi.functionsIn=pd,xi.groupBy=dc,xi.initial=Js,xi.intersection=el,xi.intersectionBy=tl,xi.intersectionWith=nl,xi.invert=bd,xi.invertBy=yd,xi.invokeMap=fc,xi.iteratee=Th,xi.keyBy=pc,xi.keys=wd,xi.keysIn=xd,xi.map=gc,xi.mapKeys=Cd,xi.mapValues=Sd,xi.matches=Lh,xi.matchesProperty=Ih,xi.memoize=Bc,xi.merge=kd,xi.mergeWith=Od,xi.method=Ah,xi.methodOf=Nh,xi.mixin=Ph,xi.negate=zc,xi.nthArg=jh,xi.omit=Md,xi.omitBy=Dd,xi.once=Vc,xi.orderBy=mc,xi.over=Bh,xi.overArgs=$c,xi.overEvery=zh,xi.overSome=Vh,xi.partial=Wc,xi.partialRight=Hc,xi.partition=vc,xi.pick=Ed,xi.pickBy=Td,xi.property=$h,xi.propertyOf=Wh,xi.pull=sl,xi.pullAll=ll,xi.pullAllBy=cl,xi.pullAllWith=ul,xi.pullAt=dl,xi.range=Hh,xi.rangeRight=Uh,xi.rearg=Uc,xi.reject=_c,xi.remove=hl,xi.rest=qc,xi.reverse=fl,xi.sampleSize=xc,xi.set=Id,xi.setWith=Ad,xi.shuffle=Cc,xi.slice=pl,xi.sortBy=Oc,xi.sortedUniq=wl,xi.sortedUniqBy=xl,xi.split=sh,xi.spread=Gc,xi.tail=Cl,xi.take=Sl,xi.takeRight=kl,xi.takeRightWhile=Ol,xi.takeWhile=Ml,xi.tap=Ul,xi.throttle=Kc,xi.thru=ql,xi.toArray=Uu,xi.toPairs=Nd,xi.toPairsIn=Pd,xi.toPath=Qh,xi.toPlainObject=Xu,xi.transform=Rd,xi.unary=Yc,xi.union=Dl,xi.unionBy=El,xi.unionWith=Tl,xi.uniq=Ll,xi.uniqBy=Il,xi.uniqWith=Al,xi.unset=Fd,xi.unzip=Nl,xi.unzipWith=Pl,xi.update=jd,xi.updateWith=Bd,xi.values=zd,xi.valuesIn=Vd,xi.without=Rl,xi.words=_h,xi.wrap=Xc,xi.xor=Fl,xi.xorBy=jl,xi.xorWith=Bl,xi.zip=zl,xi.zipObject=Vl,xi.zipObjectDeep=$l,xi.zipWith=Wl,xi.entries=Nd,xi.entriesIn=Pd,xi.extend=ed,xi.extendWith=td,Ph(xi,xi),xi.add=ef,xi.attempt=wh,xi.camelCase=Ud,xi.capitalize=qd,xi.ceil=tf,xi.clamp=$d,xi.clone=Qc,xi.cloneDeep=eu,xi.cloneDeepWith=tu,xi.cloneWith=Jc,xi.conformsTo=nu,xi.deburr=Gd,xi.defaultTo=Oh,xi.divide=nf,xi.endsWith=Kd,xi.eq=iu,xi.escape=Yd,xi.escapeRegExp=Xd,xi.every=nc,xi.find=rc,xi.findIndex=Us,xi.findKey=sd,xi.findLast=oc,xi.findLastIndex=qs,xi.findLastKey=ld,xi.floor=rf,xi.forEach=cc,xi.forEachRight=uc,xi.forIn=cd,xi.forInRight=ud,xi.forOwn=dd,xi.forOwnRight=hd,xi.get=gd,xi.gt=ru,xi.gte=ou,xi.has=md,xi.hasIn=vd,xi.head=Zs,xi.identity=Eh,xi.includes=hc,xi.indexOf=Qs,xi.inRange=Wd,xi.invoke=_d,xi.isArguments=au,xi.isArray=su,xi.isArrayBuffer=lu,xi.isArrayLike=cu,xi.isArrayLikeObject=uu,xi.isBoolean=du,xi.isBuffer=hu,xi.isDate=fu,xi.isElement=pu,xi.isEmpty=gu,xi.isEqual=mu,xi.isEqualWith=vu,xi.isError=bu,xi.isFinite=yu,xi.isFunction=_u,xi.isInteger=wu,xi.isLength=xu,xi.isMap=ku,xi.isMatch=Ou,xi.isMatchWith=Mu,xi.isNaN=Du,xi.isNative=Eu,xi.isNil=Lu,xi.isNull=Tu,xi.isNumber=Iu,xi.isObject=Cu,xi.isObjectLike=Su,xi.isPlainObject=Au,xi.isRegExp=Nu,xi.isSafeInteger=Pu,xi.isSet=Ru,xi.isString=Fu,xi.isSymbol=ju,xi.isTypedArray=Bu,xi.isUndefined=zu,xi.isWeakMap=Vu,xi.isWeakSet=$u,xi.join=il,xi.kebabCase=Zd,xi.last=rl,xi.lastIndexOf=ol,xi.lowerCase=Qd,xi.lowerFirst=Jd,xi.lt=Wu,xi.lte=Hu,xi.max=of,xi.maxBy=af,xi.mean=sf,xi.meanBy=lf,xi.min=cf,xi.minBy=uf,xi.stubArray=qh,xi.stubFalse=Gh,xi.stubObject=Kh,xi.stubString=Yh,xi.stubTrue=Xh,xi.multiply=df,xi.nth=al,xi.noConflict=Rh,xi.noop=Fh,xi.now=Mc,xi.pad=eh,xi.padEnd=th,xi.padStart=nh,xi.parseInt=ih,xi.random=Hd,xi.reduce=bc,xi.reduceRight=yc,xi.repeat=rh,xi.replace=oh,xi.result=Ld,xi.round=hf,xi.runInContext=e,xi.sample=wc,xi.size=Sc,xi.snakeCase=ah,xi.some=kc,xi.sortedIndex=gl,xi.sortedIndexBy=ml,xi.sortedIndexOf=vl,xi.sortedLastIndex=bl,xi.sortedLastIndexBy=yl,xi.sortedLastIndexOf=_l,xi.startCase=lh,xi.startsWith=ch,xi.subtract=ff,xi.sum=pf,xi.sumBy=gf,xi.template=uh,xi.times=Zh,xi.toFinite=qu,xi.toInteger=Gu,xi.toLength=Ku,xi.toLower=dh,xi.toNumber=Yu,xi.toSafeInteger=Zu,xi.toString=Qu,xi.toUpper=hh,xi.trim=fh,xi.trimEnd=ph,xi.trimStart=gh,xi.truncate=mh,xi.unescape=vh,xi.uniqueId=Jh,xi.upperCase=bh,xi.upperFirst=yh,xi.each=cc,xi.eachRight=uc,xi.first=Zs,Ph(xi,function(){var e={};return Lr(xi,(function(t,n){ht.call(xi.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),xi.VERSION=s,xn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){xi[e].placeholder=xi})),xn(["drop","take"],(function(e,t){Mi.prototype[e]=function(n){n=n===a?1:Vt(Gu(n),0);var i=this.__filtered__&&!t?new Mi(this):this.clone();return i.__filtered__?i.__takeCount__=$t(n,i.__takeCount__):i.__views__.push({size:$t(n,z),type:e+(i.__dir__<0?"Right":"")}),i},Mi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xn(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=n==A||n==P;Mi.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ha(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xn(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Mi.prototype[e]=function(){return this[n](1).value()[0]}})),xn(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Mi.prototype[e]=function(){return this.__filtered__?new Mi(this):this[n](1)}})),Mi.prototype.compact=function(){return this.filter(Eh)},Mi.prototype.find=function(e){return this.filter(e).head()},Mi.prototype.findLast=function(e){return this.reverse().find(e)},Mi.prototype.invokeMap=wo((function(e,t){return"function"===typeof e?new Mi(this):this.map((function(n){return Wr(n,e,t)}))})),Mi.prototype.reject=function(e){return this.filter(zc(Ha(e)))},Mi.prototype.slice=function(e,t){e=Gu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Mi(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(t=Gu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Mi.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mi.prototype.toArray=function(){return this.take(z)},Lr(Mi.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),r=xi[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);r&&(xi.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Mi,c=s[0],u=l||su(t),d=function(e){var t=r.apply(xi,En([e],s));return i&&h?t[0]:t};u&&n&&"function"===typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=l&&!f;if(!o&&u){t=g?t:new Mi(this);var m=e.apply(t,s);return m.__actions__.push({func:ql,args:[d],thisArg:a}),new Oi(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})})),xn(["pop","push","shift","sort","splice","unshift"],(function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);xi.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(su(r)?r:[],e)}return this[n]((function(n){return t.apply(su(n)?n:[],e)}))}})),Lr(Mi.prototype,(function(e,t){var n=xi[t];if(n){var i=n.name+"",r=un[i]||(un[i]=[]);r.push({name:t,func:n})}})),un[ya(a,_).name]=[{name:"wrapper",func:a}],Mi.prototype.clone=Di,Mi.prototype.reverse=Ei,Mi.prototype.value=Ti,xi.prototype.at=Gl,xi.prototype.chain=Kl,xi.prototype.commit=Yl,xi.prototype.next=Xl,xi.prototype.plant=Ql,xi.prototype.reverse=Jl,xi.prototype.toJSON=xi.prototype.valueOf=xi.prototype.value=ec,xi.prototype.first=xi.prototype.head,Dt&&(xi.prototype[Dt]=Zl),xi},Ci=xi();"object"===o(n("3c35"))&&n("3c35")?(ln._=Ci,r=function(){return Ci}.call(t,n,t,i),r===a||(i.exports=r)):un?((un.exports=Ci)._=Ci,cn._=Ci):ln._=Ci}).call(void 0)}).call(this,n("c8ba"),n("62e4")(e))},"58b2":function(e,t,n){var i=n("5ca1");i(i.S+i.F*!n("9e1e"),"Object",{defineProperties:n("1495")})},5924:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasClass=g,t.addClass=m,t.removeClass=v,t.setStyle=y;var r=n("2b0e"),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,l=/([\:\-\_]+(.))/g,c=/^moz([A-Z])/,u=s?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(l,(function(e,t,n,i){return i?n.toUpperCase():n})).replace(c,"Moz$1")},f=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),p=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var i=function i(){n&&n.apply(this,arguments),p(e,t,i)};f(e,t,i)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){if(e){for(var n=e.className,i=(t||"").split(" "),r=0,o=i.length;r<o;r++){var a=i[r];a&&(e.classList?e.classList.add(a):g(e,a)||(n+=" "+a))}e.classList||e.setAttribute("class",n)}}function v(e,t){if(e&&t){for(var n=t.split(" "),i=" "+e.className+" ",r=0,o=n.length;r<o;r++){var a=n[r];a&&(e.classList?e.classList.remove(a):g(e,a)&&(i=i.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",d(i))}}var b=t.getStyle=u<9?function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(i){return e.style[t]}}};function y(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":i(t)))for(var r in t)t.hasOwnProperty(r)&&y(e,r,t[r]);else t=h(t),"opacity"===t&&u<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var _=t.isScroll=function(e,t){if(!s){var n=null!==t&&void 0!==t,i=b(e,n?t?"overflow-y":"overflow-x":"overflow");return i.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(_(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),i=void 0;return i=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<i.bottom&&n.bottom>i.top&&n.right>i.left&&n.left<i.right}},5964:function(e,t){function n(e,t,n){var i,r,o=n||{},a=!1,s=0,l="boolean"===typeof n,c="leading"in o?o.leading:l,u="trailing"in o?o.trailing:!l,d=function(){a=!0,s=0,e.apply(r,i)},h=function(){!0===c&&(s=0),a||!0!==u||d()},f=function(){var e=0!==s;return clearTimeout(s),s=0,e},p=function(){a=!1,i=arguments,r=this,0===s?!0===c&&d():clearTimeout(s),s=setTimeout(h,t)};return p.cancel=f,p}e.exports=n},"597f":function(e,t){e.exports=function(e,t,n,i){var r,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function c(){o=Number(new Date),n.apply(a,l)}function u(){r=void 0}i&&!r&&c(),r&&clearTimeout(r),void 0===i&&s>e?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-s:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),a}},5980:function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){(function(){var t=e,n=t.lib,i=n.Base,r=t.enc,o=r.Utf8,a=t.algo;a.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),a=this._iKey=t.clone(),s=r.words,l=a.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;r.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);t.reset();var i=t.finalize(this._oKey.clone().concat(n));return i}})})()}))},5986:function(e,t,n){var i=n("d660"),r=i((function(e,t){return e<t}));e.exports=r},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5a88":function(e,t,n){var i=n("52f7"),r=n("d074");function o(e,t,n,i,a,s,l,c){var u,d;r(t,(function(r,h){u=a.concat([""+h]),d=s.concat([r]),n.call(i,r,h,t,u,e,d),r&&l&&(u.push(l),o(r,r[l],n,i,u,d,l,c))}))}var a=i(o);e.exports=a},"5b4e":function(e,t,n){var i=n("36c3"),r=n("b447"),o=n("0fc9");e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"5ba5":function(e,t,n){var i=n("1b14");function r(e,t){var n,r=[],o=t>>0||1;if(i(e))if(o>=0&&e.length>o){n=0;while(n<e.length)r.push(e.slice(n,n+o)),n+=o}else r=e.length?[e]:e;return r}e.exports=r},"5c96":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=46)}([function(e,t){e.exports=n("d940")},function(e,t){e.exports=n("5924")},function(e,t){e.exports=n("8122")},function(e,t){e.exports=n("d010")},function(e,t){e.exports=n("6b7c")},function(e,t){e.exports=n("e974")},function(e,t){e.exports=n("2b0e")},function(e,t){e.exports=n("7f4d")},function(e,t){e.exports=n("f3ad")},function(e,t){e.exports=n("2bb5")},function(e,t){e.exports=n("417f")},function(e,t){e.exports=n("5128")},function(e,t){e.exports=n("4897")},function(e,t){e.exports=n("eedf")},function(e,t){e.exports=n("dcdc")},function(e,t){e.exports=n("4010")},function(e,t){e.exports=n("a742")},function(e,t){e.exports=n("0e15")},function(e,t){e.exports=n("14e9")},function(e,t){e.exports=n("d397")},function(e,t){e.exports=n("d7d1")},function(e,t){e.exports=n("5488")},function(e,t){e.exports=n("41f8")},function(e,t){e.exports=n("12f2")},function(e,t){e.exports=n("92fa")},function(e,t){e.exports=n("597f")},function(e,t){e.exports=n("299c")},function(e,t){e.exports=n("2a5e")},function(e,t){e.exports=n("5858")},function(e,t){e.exports=n("845f")},function(e,t){e.exports=n("8bbc")},function(e,t){e.exports=n("e62d")},function(e,t){e.exports=n("7fc1")},function(e,t){e.exports=n("c56a")},function(e,t){e.exports=n("c284")},function(e,t){e.exports=n("e452")},function(e,t){e.exports=n("9619")},function(e,t){e.exports=n("4e4b")},function(e,t){e.exports=n("e772")},function(e,t){e.exports=n("c098")},function(e,t){e.exports=n("722f")},function(e,t){e.exports=n("4cb2")},function(e,t){e.exports=n("e450")},function(e,t){e.exports=n("4726")},function(e,t){e.exports=n("f494")},function(e,t){e.exports=n("6ac9")},function(e,t,n){e.exports=n(47)},function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},r=[];i._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),i=this.pageCount,r=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=r-o:-1!==t.className.indexOf("quicknext")&&(n=r+o)),isNaN(n)||(n<1&&(n=1),n>i&&(n=i)),n!==r&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),i=Number(this.pageCount),r=!1,o=!1;i>e&&(n>e-t&&(r=!0),n<i-t&&(o=!0));var a=[];if(r&&!o)for(var s=i-(e-2),l=s;l<i;l++)a.push(l);else if(!r&&o)for(var c=2;c<e;c++)a.push(c);else if(r&&o)for(var u=Math.floor(e/2)-1,d=n-u;d<=n+u;d++)a.push(d);else for(var h=2;h<i;h++)a.push(h);return this.showPrevMore=r,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},a=o;function s(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var l=s(a,i,r,!1,null,null,null);l.options.__file="packages/pagination/src/pager.vue";var c=l.exports,u=n(37),d=n.n(u),h=n(38),f=n.n(h),p=n(8),g=n.n(p),m=n(4),v=n.n(m),b=n(2),y={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),i={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},r=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],r.forEach((function(e){"->"!==e?a?o.children.push(i[e]):n.children.push(i[e]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(b["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:d.a,ElOption:f.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:g.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:c},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(y.name,y)}},_=y,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},x=[];w._withStripped=!0;var C=n(11),S=n.n(C),k=n(9),O=n.n(k),M=n(3),D=n.n(M),E={name:"ElDialog",mixins:[S.a,D.a,O.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},T=E,L=s(T,w,x,!1,null,null,null);L.options.__file="packages/dialog/src/component.vue";var I=L.exports;I.install=function(e){e.component(I.name,I)};var A=I,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,i){return n("li",{key:i,class:{highlighted:e.highlightedIndex===i},attrs:{id:e.id+"-item-"+i,role:"option","aria-selected":e.highlightedIndex===i},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n "+e._s(t[e.valueKey])+"\n ")],{item:t})],2)})),0)],1)},P=[];N._withStripped=!0;var R=n(17),F=n.n(R),j=n(10),B=n.n(j),z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},V=[];z._withStripped=!0;var $=n(5),W=n.n($),H=n(18),U=n.n(H),q={components:{ElScrollbar:U.a},mixins:[W.a,D.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},G=q,K=s(G,z,V,!1,null,null,null);K.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var Y=K.exports,X=n(23),Z=n.n(X),Q={name:"ElAutocomplete",mixins:[D.a,Z()("input"),O.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:g.a,ElAutocompleteSuggestions:Y},directives:{Clickoutside:B.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(b["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),i=n[e],r=t.scrollTop,o=i.offsetTop;o+i.scrollHeight>r+t.clientHeight&&(t.scrollTop+=i.scrollHeight),o<r&&(t.scrollTop-=i.scrollHeight),this.highlightedIndex=e;var a=this.getInput();a.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=F()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},J=Q,ee=s(J,N,P,!1,null,null,null);ee.options.__file="packages/autocomplete/src/autocomplete.vue";var te=ee.exports;te.install=function(e){e.component(te.name,te)};var ne,ie,re=te,oe=n(13),ae=n.n(oe),se=n(29),le=n.n(se),ce={name:"ElDropdown",componentName:"ElDropdown",mixins:[D.a,O.a],directives:{Clickoutside:B.a},components:{ElButton:ae.a,ElButtonGroup:le.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(b["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,i=this.menuItemsArray.indexOf(n),r=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==i?i-1:0:i<r?i+1:r,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,i=this.hide,r=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var l=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),l.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",i),l.addEventListener("mouseenter",n),l.addEventListener("mouseleave",i)):"click"===t&&this.triggerElm.addEventListener("click",r)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,i=this.splitButton,r=this.type,o=this.dropdownSize,a=this.disabled,s=function(e){t.$emit("click",e),n()},l=null;if(i)l=e("el-button-group",[e("el-button",{attrs:{type:r,size:o,disabled:a},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:r,size:o,disabled:a},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{l=this.$slots.default;var c=l[0].data||{},u=c.attrs,d=void 0===u?{}:u;a&&!d.disabled&&(d.disabled=!0,c.attrs=d)}var h=a?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[l,h])}},ue=ce,de=s(ue,ne,ie,!1,null,null,null);de.options.__file="packages/dropdown/src/dropdown.vue";var he=de.exports;he.install=function(e){e.component(he.name,he)};var fe=he,pe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},ge=[];pe._withStripped=!0;var me={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[W.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},ve=me,be=s(ve,pe,ge,!1,null,null,null);be.options.__file="packages/dropdown/src/dropdown-menu.vue";var ye=be.exports;ye.install=function(e){e.component(ye.name,ye)};var _e=ye,we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},xe=[];we._withStripped=!0;var Ce={name:"ElDropdownItem",mixins:[D.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},Se=Ce,ke=s(Se,we,xe,!1,null,null,null);ke.options.__file="packages/dropdown/src/dropdown-item.vue";var Oe=ke.exports;Oe.install=function(e){e.component(Oe.name,Oe)};var Me=Oe,De=De||{};De.Utils=De.Utils||{},De.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(De.Utils.attemptFocus(n)||De.Utils.focusFirstDescendant(n))return!0}return!1},De.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(De.Utils.attemptFocus(n)||De.Utils.focusLastDescendant(n))return!0}return!1},De.Utils.attemptFocus=function(e){if(!De.Utils.isFocusable(e))return!1;De.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return De.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},De.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},De.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},De.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27};var Ee=De.Utils,Te=function(e,t){this.domNode=t,this.parent=e,this.subMenuItems=[],this.subIndex=0,this.init()};Te.prototype.init=function(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()},Te.prototype.gotoSubIndex=function(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e},Te.prototype.addListeners=function(){var e=this,t=Ee.keys,n=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,(function(i){i.addEventListener("keydown",(function(i){var r=!1;switch(i.keyCode){case t.down:e.gotoSubIndex(e.subIndex+1),r=!0;break;case t.up:e.gotoSubIndex(e.subIndex-1),r=!0;break;case t.tab:Ee.triggerEvent(n,"mouseleave");break;case t.enter:case t.space:r=!0,i.currentTarget.click();break}return r&&(i.preventDefault(),i.stopPropagation()),!1}))}))};var Le=Te,Ie=function(e){this.domNode=e,this.submenu=null,this.init()};Ie.prototype.init=function(){this.domNode.setAttribute("tabindex","0");var e=this.domNode.querySelector(".el-menu");e&&(this.submenu=new Le(this,e)),this.addListeners()},Ie.prototype.addListeners=function(){var e=this,t=Ee.keys;this.domNode.addEventListener("keydown",(function(n){var i=!1;switch(n.keyCode){case t.down:Ee.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(0),i=!0;break;case t.up:Ee.triggerEvent(n.currentTarget,"mouseenter"),e.submenu&&e.submenu.gotoSubIndex(e.submenu.subMenuItems.length-1),i=!0;break;case t.tab:Ee.triggerEvent(n.currentTarget,"mouseleave");break;case t.enter:case t.space:i=!0,n.currentTarget.click();break}i&&n.preventDefault()}))};var Ae=Ie,Ne=function(e){this.domNode=e,this.init()};Ne.prototype.init=function(){var e=this.domNode.childNodes;[].filter.call(e,(function(e){return 1===e.nodeType})).forEach((function(e){new Ae(e)}))};var Pe,Re,Fe=Ne,je=n(1),Be={name:"ElMenu",render:function(e){var t=e("ul",{attrs:{role:"menubar"},key:+this.collapse,style:{backgroundColor:this.backgroundColor||""},class:{"el-menu--horizontal":"horizontal"===this.mode,"el-menu--collapse":this.collapse,"el-menu":!0}},[this.$slots.default]);return this.collapseTransition?e("el-menu-collapse-transition",[t]):t},componentName:"ElMenu",mixins:[D.a,O.a],provide:function(){return{rootMenu:this}},components:{"el-menu-collapse-transition":{functional:!0,render:function(e,t){var n={props:{mode:"out-in"},on:{beforeEnter:function(e){e.style.opacity=.2},enter:function(e){Object(je["addClass"])(e,"el-opacity-transition"),e.style.opacity=1},afterEnter:function(e){Object(je["removeClass"])(e,"el-opacity-transition"),e.style.opacity=""},beforeLeave:function(e){e.dataset||(e.dataset={}),Object(je["hasClass"])(e,"el-menu--collapse")?(Object(je["removeClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(je["addClass"])(e,"el-menu--collapse")):(Object(je["addClass"])(e,"el-menu--collapse"),e.dataset.oldOverflow=e.style.overflow,e.dataset.scrollWidth=e.clientWidth,Object(je["removeClass"])(e,"el-menu--collapse")),e.style.width=e.scrollWidth+"px",e.style.overflow="hidden"},leave:function(e){Object(je["addClass"])(e,"horizontal-collapse-transition"),e.style.width=e.dataset.scrollWidth+"px"}}};return e("transition",n,t.children)}}},props:{mode:{type:String,default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:Array,uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0}},data:function(){return{activeIndex:this.defaultActive,openedMenus:this.defaultOpeneds&&!this.collapse?this.defaultOpeneds.slice(0):[],items:{},submenus:{}}},computed:{hoverBackground:function(){return this.backgroundColor?this.mixColor(this.backgroundColor,.2):""},isMenuPopup:function(){return"horizontal"===this.mode||"vertical"===this.mode&&this.collapse}},watch:{defaultActive:function(e){this.items[e]||(this.activeIndex=null),this.updateActiveIndex(e)},defaultOpeneds:function(e){this.collapse||(this.openedMenus=e)},collapse:function(e){e&&(this.openedMenus=[]),this.broadcast("ElSubmenu","toggle-collapse",e)}},methods:{updateActiveIndex:function(e){var t=this.items[e]||this.items[this.activeIndex]||this.items[this.defaultActive];t?(this.activeIndex=t.index,this.initOpenedMenu()):this.activeIndex=null},getMigratingConfig:function(){return{props:{theme:"theme is removed."}}},getColorChannels:function(e){if(e=e.replace("#",""),/^[0-9a-fA-F]{3}$/.test(e)){e=e.split("");for(var t=2;t>=0;t--)e.splice(t,0,e[t]);e=e.join("")}return/^[0-9a-fA-F]{6}$/.test(e)?{red:parseInt(e.slice(0,2),16),green:parseInt(e.slice(2,4),16),blue:parseInt(e.slice(4,6),16)}:{red:255,green:255,blue:255}},mixColor:function(e,t){var n=this.getColorChannels(e),i=n.red,r=n.green,o=n.blue;return t>0?(i*=1-t,r*=1-t,o*=1-t):(i+=(255-i)*t,r+=(255-r)*t,o+=(255-o)*t),"rgb("+Math.round(i)+", "+Math.round(r)+", "+Math.round(o)+")"},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},openMenu:function(e,t){var n=this.openedMenus;-1===n.indexOf(e)&&(this.uniqueOpened&&(this.openedMenus=n.filter((function(e){return-1!==t.indexOf(e)}))),this.openedMenus.push(e))},closeMenu:function(e){var t=this.openedMenus.indexOf(e);-1!==t&&this.openedMenus.splice(t,1)},handleSubmenuClick:function(e){var t=e.index,n=e.indexPath,i=-1!==this.openedMenus.indexOf(t);i?(this.closeMenu(t),this.$emit("close",t,n)):(this.openMenu(t,n),this.$emit("open",t,n))},handleItemClick:function(e){var t=this,n=e.index,i=e.indexPath,r=this.activeIndex,o=null!==e.index;o&&(this.activeIndex=e.index),this.$emit("select",n,i,e),("horizontal"===this.mode||this.collapse)&&(this.openedMenus=[]),this.router&&o&&this.routeToItem(e,(function(e){if(t.activeIndex=r,e){if("NavigationDuplicated"===e.name)return;console.error(e)}}))},initOpenedMenu:function(){var e=this,t=this.activeIndex,n=this.items[t];if(n&&"horizontal"!==this.mode&&!this.collapse){var i=n.indexPath;i.forEach((function(t){var n=e.submenus[t];n&&e.openMenu(t,n.indexPath)}))}},routeToItem:function(e,t){var n=e.route||e.index;try{this.$router.push(n,(function(){}),t)}catch(i){console.error(i)}},open:function(e){var t=this,n=this.submenus[e.toString()].indexPath;n.forEach((function(e){return t.openMenu(e,n)}))},close:function(e){this.closeMenu(e)}},mounted:function(){this.initOpenedMenu(),this.$on("item-click",this.handleItemClick),this.$on("submenu-click",this.handleSubmenuClick),"horizontal"===this.mode&&new Fe(this.$el),this.$watch("items",this.updateActiveIndex)}},ze=Be,Ve=s(ze,Pe,Re,!1,null,null,null);Ve.options.__file="packages/menu/src/menu.vue";var $e=Ve.exports;$e.install=function(e){e.component($e.name,$e)};var We,He,Ue=$e,qe=n(21),Ge=n.n(qe),Ke={inject:["rootMenu"],computed:{indexPath:function(){var e=[this.index],t=this.$parent;while("ElMenu"!==t.$options.componentName)t.index&&e.unshift(t.index),t=t.$parent;return e},parentMenu:function(){var e=this.$parent;while(e&&-1===["ElMenu","ElSubmenu"].indexOf(e.$options.componentName))e=e.$parent;return e},paddingStyle:function(){if("vertical"!==this.rootMenu.mode)return{};var e=20,t=this.$parent;if(this.rootMenu.collapse)e=20;else while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return{paddingLeft:e+"px"}}}},Ye={props:{transformOrigin:{type:[Boolean,String],default:!1},offset:W.a.props.offset,boundariesPadding:W.a.props.boundariesPadding,popperOptions:W.a.props.popperOptions},data:W.a.data,methods:W.a.methods,beforeDestroy:W.a.beforeDestroy,deactivated:W.a.deactivated},Xe={name:"ElSubmenu",componentName:"ElSubmenu",mixins:[Ke,D.a,Ye],components:{ElCollapseTransition:Ge.a},props:{index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0}},data:function(){return{popperJS:null,timeout:null,items:{},submenus:{},mouseInChild:!1}},watch:{opened:function(e){var t=this;this.isMenuPopup&&this.$nextTick((function(e){t.updatePopper()}))}},computed:{appendToBody:function(){return void 0===this.popperAppendToBody?this.isFirstLevel:this.popperAppendToBody},menuTransitionName:function(){return this.rootMenu.collapse?"el-zoom-in-left":"el-zoom-in-top"},opened:function(){return this.rootMenu.openedMenus.indexOf(this.index)>-1},active:function(){var e=!1,t=this.submenus,n=this.items;return Object.keys(n).forEach((function(t){n[t].active&&(e=!0)})),Object.keys(t).forEach((function(n){t[n].active&&(e=!0)})),e},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},isMenuPopup:function(){return this.rootMenu.isMenuPopup},titleStyle:function(){return"horizontal"!==this.mode?{color:this.textColor}:{borderBottomColor:this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent",color:this.active?this.activeTextColor:this.textColor}},isFirstLevel:function(){var e=!0,t=this.$parent;while(t&&t!==this.rootMenu){if(["ElSubmenu","ElMenuItemGroup"].indexOf(t.$options.componentName)>-1){e=!1;break}t=t.$parent}return e}},methods:{handleCollapseToggle:function(e){e?this.initPopper():this.doDestroy()},addItem:function(e){this.$set(this.items,e.index,e)},removeItem:function(e){delete this.items[e.index]},addSubmenu:function(e){this.$set(this.submenus,e.index,e)},removeSubmenu:function(e){delete this.submenus[e.index]},handleClick:function(){var e=this.rootMenu,t=this.disabled;"hover"===e.menuTrigger&&"horizontal"===e.mode||e.collapse&&"vertical"===e.mode||t||this.dispatch("ElMenu","submenu-click",this)},handleMouseenter:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.showTimeout;if("ActiveXObject"in window||"focus"!==e.type||e.relatedTarget){var i=this.rootMenu,r=this.disabled;"click"===i.menuTrigger&&"horizontal"===i.mode||!i.collapse&&"vertical"===i.mode||r||(this.dispatch("ElSubmenu","mouse-enter-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.rootMenu.openMenu(t.index,t.indexPath)}),n),this.appendToBody&&this.$parent.$el.dispatchEvent(new MouseEvent("mouseenter")))}},handleMouseleave:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.rootMenu;"click"===n.menuTrigger&&"horizontal"===n.mode||!n.collapse&&"vertical"===n.mode||(this.dispatch("ElSubmenu","mouse-leave-child"),clearTimeout(this.timeout),this.timeout=setTimeout((function(){!e.mouseInChild&&e.rootMenu.closeMenu(e.index)}),this.hideTimeout),this.appendToBody&&t&&"ElSubmenu"===this.$parent.$options.name&&this.$parent.handleMouseleave(!0))},handleTitleMouseenter:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.hoverBackground)}},handleTitleMouseleave:function(){if("horizontal"!==this.mode||this.rootMenu.backgroundColor){var e=this.$refs["submenu-title"];e&&(e.style.backgroundColor=this.rootMenu.backgroundColor||"")}},updatePlacement:function(){this.currentPlacement="horizontal"===this.mode&&this.isFirstLevel?"bottom-start":"right-start"},initPopper:function(){this.referenceElm=this.$el,this.popperElm=this.$refs.menu,this.updatePlacement()}},created:function(){var e=this;this.$on("toggle-collapse",this.handleCollapseToggle),this.$on("mouse-enter-child",(function(){e.mouseInChild=!0,clearTimeout(e.timeout)})),this.$on("mouse-leave-child",(function(){e.mouseInChild=!1,clearTimeout(e.timeout)}))},mounted:function(){this.parentMenu.addSubmenu(this),this.rootMenu.addSubmenu(this),this.initPopper()},beforeDestroy:function(){this.parentMenu.removeSubmenu(this),this.rootMenu.removeSubmenu(this)},render:function(e){var t=this,n=this.active,i=this.opened,r=this.paddingStyle,o=this.titleStyle,a=this.backgroundColor,s=this.rootMenu,l=this.currentPlacement,c=this.menuTransitionName,u=this.mode,d=this.disabled,h=this.popperClass,f=this.$slots,p=this.isFirstLevel,g=e("transition",{attrs:{name:c}},[e("div",{ref:"menu",directives:[{name:"show",value:i}],class:["el-menu--"+u,h],on:{mouseenter:function(e){return t.handleMouseenter(e,100)},mouseleave:function(){return t.handleMouseleave(!0)},focus:function(e){return t.handleMouseenter(e,100)}}},[e("ul",{attrs:{role:"menu"},class:["el-menu el-menu--popup","el-menu--popup-"+l],style:{backgroundColor:s.backgroundColor||""}},[f.default])])]),m=e("el-collapse-transition",[e("ul",{attrs:{role:"menu"},class:"el-menu el-menu--inline",directives:[{name:"show",value:i}],style:{backgroundColor:s.backgroundColor||""}},[f.default])]),v="horizontal"===s.mode&&p||"vertical"===s.mode&&!s.collapse?"el-icon-arrow-down":"el-icon-arrow-right";return e("li",{class:{"el-submenu":!0,"is-active":n,"is-opened":i,"is-disabled":d},attrs:{role:"menuitem","aria-haspopup":"true","aria-expanded":i},on:{mouseenter:this.handleMouseenter,mouseleave:function(){return t.handleMouseleave(!1)},focus:this.handleMouseenter}},[e("div",{class:"el-submenu__title",ref:"submenu-title",on:{click:this.handleClick,mouseenter:this.handleTitleMouseenter,mouseleave:this.handleTitleMouseleave},style:[r,o,{backgroundColor:a}]},[f.title,e("i",{class:["el-submenu__icon-arrow",v]})]),this.isMenuPopup?g:m])}},Ze=Xe,Qe=s(Ze,We,He,!1,null,null,null);Qe.options.__file="packages/menu/src/submenu.vue";var Je=Qe.exports;Je.install=function(e){e.component(Je.name,Je)};var et=Je,tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item",class:{"is-active":e.active,"is-disabled":e.disabled},style:[e.paddingStyle,e.itemStyle,{backgroundColor:e.backgroundColor}],attrs:{role:"menuitem",tabindex:"-1"},on:{click:e.handleClick,mouseenter:e.onMouseEnter,focus:e.onMouseEnter,blur:e.onMouseLeave,mouseleave:e.onMouseLeave}},["ElMenu"===e.parentMenu.$options.componentName&&e.rootMenu.collapse&&e.$slots.title?n("el-tooltip",{attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[e._t("title")],2),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[e._t("default")],2)]):[e._t("default"),e._t("title")]],2)},nt=[];tt._withStripped=!0;var it=n(26),rt=n.n(it),ot={name:"ElMenuItem",componentName:"ElMenuItem",mixins:[Ke,D.a],components:{ElTooltip:rt.a},props:{index:{default:null,validator:function(e){return"string"===typeof e||null===e}},route:[String,Object],disabled:Boolean},computed:{active:function(){return this.index===this.rootMenu.activeIndex},hoverBackground:function(){return this.rootMenu.hoverBackground},backgroundColor:function(){return this.rootMenu.backgroundColor||""},activeTextColor:function(){return this.rootMenu.activeTextColor||""},textColor:function(){return this.rootMenu.textColor||""},mode:function(){return this.rootMenu.mode},itemStyle:function(){var e={color:this.active?this.activeTextColor:this.textColor};return"horizontal"!==this.mode||this.isNested||(e.borderBottomColor=this.active?this.rootMenu.activeTextColor?this.activeTextColor:"":"transparent"),e},isNested:function(){return this.parentMenu!==this.rootMenu}},methods:{onMouseEnter:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.hoverBackground)},onMouseLeave:function(){("horizontal"!==this.mode||this.rootMenu.backgroundColor)&&(this.$el.style.backgroundColor=this.backgroundColor)},handleClick:function(){this.disabled||(this.dispatch("ElMenu","item-click",this),this.$emit("click",this))}},mounted:function(){this.parentMenu.addItem(this),this.rootMenu.addItem(this)},beforeDestroy:function(){this.parentMenu.removeItem(this),this.rootMenu.removeItem(this)}},at=ot,st=s(at,tt,nt,!1,null,null,null);st.options.__file="packages/menu/src/menu-item.vue";var lt=st.exports;lt.install=function(e){e.component(lt.name,lt)};var ct=lt,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-menu-item-group"},[n("div",{staticClass:"el-menu-item-group__title",style:{paddingLeft:e.levelPadding+"px"}},[e.$slots.title?e._t("title"):[e._v(e._s(e.title))]],2),n("ul",[e._t("default")],2)])},dt=[];ut._withStripped=!0;var ht={name:"ElMenuItemGroup",componentName:"ElMenuItemGroup",inject:["rootMenu"],props:{title:{type:String}},data:function(){return{paddingLeft:20}},computed:{levelPadding:function(){var e=20,t=this.$parent;if(this.rootMenu.collapse)return 20;while(t&&"ElMenu"!==t.$options.componentName)"ElSubmenu"===t.$options.componentName&&(e+=20),t=t.$parent;return e}}},ft=ht,pt=s(ft,ut,dt,!1,null,null,null);pt.options.__file="packages/menu/src/menu-item-group.vue";var gt=pt.exports;gt.install=function(e){e.component(gt.name,gt)};var mt=gt,vt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},bt=[];vt._withStripped=!0;var yt=void 0,_t="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",wt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function xt(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=wt.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function Ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;yt||(yt=document.createElement("textarea"),document.body.appendChild(yt));var i=xt(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;yt.setAttribute("style",s+";"+_t),yt.value=e.value||e.placeholder||"";var l=yt.scrollHeight,c={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),yt.value="";var u=yt.scrollHeight-r;if(null!==t){var d=u*t;"border-box"===a&&(d=d+r+o),l=Math.max(d,l),c.minHeight=d+"px"}if(null!==n){var h=u*n;"border-box"===a&&(h=h+r+o),l=Math.min(h,l)}return c.height=l+"px",yt.parentNode&&yt.parentNode.removeChild(yt),yt=null,c}var St=n(7),kt=n.n(St),Ot=n(19),Mt={name:"ElInput",componentName:"ElInput",mixins:[D.a,O.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return kt()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=Ct(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:Ct(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(Ot["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},Dt=Mt,Et=s(Dt,vt,bt,!1,null,null,null);Et.options.__file="packages/input/src/input.vue";var Tt=Et.exports;Tt.install=function(e){e.component(Tt.name,Tt)};var Lt=Tt,It=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},At=[];It._withStripped=!0;var Nt={bind:function(e,t,n){var i=null,r=void 0,o=Object(b["isMac"])()?100:200,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-r<o&&a(),clearInterval(i),i=null};Object(je["on"])(e,"mousedown",(function(e){0===e.button&&(r=Date.now(),Object(je["once"])(document,"mouseup",s),clearInterval(i),i=setInterval(a,o))}))}},Pt={name:"ElInputNumber",mixins:[Z()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:Nt},components:{ElInput:g.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},Rt=Pt,Ft=s(Rt,It,At,!1,null,null,null);Ft.options.__file="packages/input-number/src/input-number.vue";var jt=Ft.exports;jt.install=function(e){e.component(jt.name,jt)};var Bt=jt,zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},Vt=[];zt._withStripped=!0;var $t={name:"ElRadio",mixins:[D.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},Wt=$t,Ht=s(Wt,zt,Vt,!1,null,null,null);Ht.options.__file="packages/radio/src/radio.vue";var Ut=Ht.exports;Ut.install=function(e){e.component(Ut.name,Ut)};var qt=Ut,Gt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{role:"radiogroup"},on:{keydown:e.handleKeydown}},[e._t("default")],2)},Kt=[];Gt._withStripped=!0;var Yt=Object.freeze({LEFT:37,UP:38,RIGHT:39,DOWN:40}),Xt={name:"ElRadioGroup",componentName:"ElRadioGroup",inject:{elFormItem:{default:""}},mixins:[D.a],props:{value:{},size:String,fill:String,textColor:String,disabled:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},_elTag:function(){var e=(this.$vnode.data||{}).tag;return e&&"component"!==e||(e="div"),e},radioGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},created:function(){var e=this;this.$on("handleChange",(function(t){e.$emit("change",t)}))},mounted:function(){var e=this.$el.querySelectorAll("[type=radio]"),t=this.$el.querySelectorAll("[role=radio]")[0];![].some.call(e,(function(e){return e.checked}))&&t&&(t.tabIndex=0)},methods:{handleKeydown:function(e){var t=e.target,n="INPUT"===t.nodeName?"[type=radio]":"[role=radio]",i=this.$el.querySelectorAll(n),r=i.length,o=[].indexOf.call(i,t),a=this.$el.querySelectorAll("[role=radio]");switch(e.keyCode){case Yt.LEFT:case Yt.UP:e.stopPropagation(),e.preventDefault(),0===o?(a[r-1].click(),a[r-1].focus()):(a[o-1].click(),a[o-1].focus());break;case Yt.RIGHT:case Yt.DOWN:o===r-1?(e.stopPropagation(),e.preventDefault(),a[0].click(),a[0].focus()):(a[o+1].click(),a[o+1].focus());break;default:break}}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[this.value])}}},Zt=Xt,Qt=s(Zt,Gt,Kt,!1,null,null,null);Qt.options.__file="packages/radio/src/radio-group.vue";var Jt=Qt.exports;Jt.install=function(e){e.component(Jt.name,Jt)};var en=Jt,tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio-button",class:[e.size?"el-radio-button--"+e.size:"",{"is-active":e.value===e.label},{"is-disabled":e.isDisabled},{"is-focus":e.focus}],attrs:{role:"radio","aria-checked":e.value===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.value=e.isDisabled?e.value:e.label}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"el-radio-button__orig-radio",attrs:{type:"radio",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.value,e.label)},on:{change:[function(t){e.value=e.label},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),n("span",{staticClass:"el-radio-button__inner",style:e.value===e.label?e.activeStyle:null,on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},nn=[];tn._withStripped=!0;var rn={name:"ElRadioButton",mixins:[D.a],inject:{elForm:{default:""},elFormItem:{default:""}},props:{label:{},disabled:Boolean,name:String},data:function(){return{focus:!1}},computed:{value:{get:function(){return this._radioGroup.value},set:function(e){this._radioGroup.$emit("input",e)}},_radioGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return e;e=e.$parent}return!1},activeStyle:function(){return{backgroundColor:this._radioGroup.fill||"",borderColor:this._radioGroup.fill||"",boxShadow:this._radioGroup.fill?"-1px 0 0 0 "+this._radioGroup.fill:"",color:this._radioGroup.textColor||""}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._radioGroup.radioGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isDisabled:function(){return this.disabled||this._radioGroup.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this._radioGroup&&this.value!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.dispatch("ElRadioGroup","handleChange",e.value)}))}}},on=rn,an=s(on,tn,nn,!1,null,null,null);an.options.__file="packages/radio/src/radio-button.vue";var sn=an.exports;sn.install=function(e){e.component(sn.name,sn)};var ln=sn,cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},un=[];cn._withStripped=!0;var dn={name:"ElCheckbox",mixins:[D.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},hn=dn,fn=s(hn,cn,un,!1,null,null,null);fn.options.__file="packages/checkbox/src/checkbox.vue";var pn=fn.exports;pn.install=function(e){e.component(pn.name,pn)};var gn=pn,mn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox-button",class:[e.size?"el-checkbox-button--"+e.size:"",{"is-disabled":e.isDisabled},{"is-checked":e.isChecked},{"is-focus":e.focus}],attrs:{role:"checkbox","aria-checked":e.isChecked,"aria-disabled":e.isDisabled}},[e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox-button__original",attrs:{type:"checkbox",name:e.name,disabled:e.isDisabled},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox-button__inner",style:e.isChecked?e.activeStyle:null},[e._t("default",[e._v(e._s(e.label))])],2):e._e()])},vn=[];mn._withStripped=!0;var bn={name:"ElCheckboxButton",mixins:[D.a],inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},props:{value:{},label:{},disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number]},computed:{model:{get:function(){return this._checkboxGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this._checkboxGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):void 0!==this.value?this.$emit("input",e):this.selfModel=e}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},_checkboxGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return e;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},activeStyle:function(){return{backgroundColor:this._checkboxGroup.fill||"",borderColor:this._checkboxGroup.fill||"",color:this._checkboxGroup.textColor||"","box-shadow":"-1px 0 0 0 "+this._checkboxGroup.fill}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},size:function(){return this._checkboxGroup.checkboxGroupSize||this._elFormItemSize||(this.$ELEMENT||{}).size},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this._checkboxGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled}},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t._checkboxGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()}},yn=bn,_n=s(yn,mn,vn,!1,null,null,null);_n.options.__file="packages/checkbox/src/checkbox-button.vue";var wn=_n.exports;wn.install=function(e){e.component(wn.name,wn)};var xn=wn,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},Sn=[];Cn._withStripped=!0;var kn={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[D.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},On=kn,Mn=s(On,Cn,Sn,!1,null,null,null);Mn.options.__file="packages/checkbox/src/checkbox-group.vue";var Dn=Mn.exports;Dn.install=function(e){e.component(Dn.name,Dn)};var En=Dn,Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-switch",class:{"is-disabled":e.switchDisabled,"is-checked":e.checked},attrs:{role:"switch","aria-checked":e.checked,"aria-disabled":e.switchDisabled},on:{click:function(t){return t.preventDefault(),e.switchValue(t)}}},[n("input",{ref:"input",staticClass:"el-switch__input",attrs:{type:"checkbox",id:e.id,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:e.switchDisabled},on:{change:e.handleChange,keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.switchValue(t)}}}),e.inactiveIconClass||e.inactiveText?n("span",{class:["el-switch__label","el-switch__label--left",e.checked?"":"is-active"]},[e.inactiveIconClass?n("i",{class:[e.inactiveIconClass]}):e._e(),!e.inactiveIconClass&&e.inactiveText?n("span",{attrs:{"aria-hidden":e.checked}},[e._v(e._s(e.inactiveText))]):e._e()]):e._e(),n("span",{ref:"core",staticClass:"el-switch__core",style:{width:e.coreWidth+"px"}}),e.activeIconClass||e.activeText?n("span",{class:["el-switch__label","el-switch__label--right",e.checked?"is-active":""]},[e.activeIconClass?n("i",{class:[e.activeIconClass]}):e._e(),!e.activeIconClass&&e.activeText?n("span",{attrs:{"aria-hidden":!e.checked}},[e._v(e._s(e.activeText))]):e._e()]):e._e()])},Ln=[];Tn._withStripped=!0;var In={name:"ElSwitch",mixins:[Z()("input"),O.a,D.a],inject:{elForm:{default:""}},props:{value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:Number,default:40},activeIconClass:{type:String,default:""},inactiveIconClass:{type:String,default:""},activeText:String,inactiveText:String,activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String},data:function(){return{coreWidth:this.width}},created:function(){~[this.activeValue,this.inactiveValue].indexOf(this.value)||this.$emit("input",this.inactiveValue)},computed:{checked:function(){return this.value===this.activeValue},switchDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{checked:function(){this.$refs.input.checked=this.checked,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[this.value])}},methods:{handleChange:function(e){var t=this,n=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",n),this.$emit("change",n),this.$nextTick((function(){t.$refs.input&&(t.$refs.input.checked=t.checked)}))},setBackgroundColor:function(){var e=this.checked?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=e,this.$refs.core.style.backgroundColor=e},switchValue:function(){!this.switchDisabled&&this.handleChange()},getMigratingConfig:function(){return{props:{"on-color":"on-color is renamed to active-color.","off-color":"off-color is renamed to inactive-color.","on-text":"on-text is renamed to active-text.","off-text":"off-text is renamed to inactive-text.","on-value":"on-value is renamed to active-value.","off-value":"off-value is renamed to inactive-value.","on-icon-class":"on-icon-class is renamed to active-icon-class.","off-icon-class":"off-icon-class is renamed to inactive-icon-class."}}}},mounted:function(){this.coreWidth=this.width||40,(this.activeColor||this.inactiveColor)&&this.setBackgroundColor(),this.$refs.input.checked=this.checked}},An=In,Nn=s(An,Tn,Ln,!1,null,null,null);Nn.options.__file="packages/switch/src/component.vue";var Pn=Nn.exports;Pn.install=function(e){e.component(Pn.name,Pn)};var Rn=Pn,Fn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange,compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.handleNavigate("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n "+e._s(e.emptyText)+"\n ")])]:e._e()],2)],1)],1)},jn=[];Fn._withStripped=!0;var Bn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},zn=[];Bn._withStripped=!0;var Vn={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[W.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},$n=Vn,Wn=s($n,Bn,zn,!1,null,null,null);Wn.options.__file="packages/select/src/select-dropdown.vue";var Hn=Wn.exports,Un=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},qn=[];Un._withStripped=!0;var Gn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kn={mixins:[D.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":Gn(e))&&"object"===("undefined"===typeof t?"undefined":Gn(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(b["getValueByPath"])(e,n)===Object(b["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(b["getValueByPath"])(e,n)===Object(b["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(b["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},Yn=Kn,Xn=s(Yn,Un,qn,!1,null,null,null);Xn.options.__file="packages/select/src/option.vue";var Zn=Xn.exports,Qn=n(30),Jn=n.n(Qn),ei=n(15),ti=n(27),ni=n.n(ti),ii={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},ri={mixins:[D.a,v.a,Z()("reference"),ii],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(b["isIE"])()&&!Object(b["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:g.a,ElSelectMenu:Hn,ElOption:Zn,ElTag:Jn.a,ElScrollbar:U.a},directives:{Clickoutside:B.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(b["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleNavigate:function(e){this.isOnComposition||this.navigateOptions(e)},handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var i=n[n.length-1]||"";this.isOnComposition=!Object(Ot["isKorean"])(i)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");ni()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(b["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),i="[object null]"===Object.prototype.toString.call(e).toLowerCase(),r="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(b["getValueByPath"])(a.value,this.valueKey)===Object(b["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var l=n||i||r?"":String(e),c={value:e,currentLabel:l};return this.multiple&&(c.hitState=!1),c},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.filterable&&!this.visible&&(this.menuVisibleOnFocus=!0),this.visible=!0),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],i=e.$refs.tags,r=i?Math.round(i.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(i?r+(r>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var i=(this.value||[]).slice(),r=this.getValueIndex(i,e.value);r>-1?i.splice(r,1):(this.multipleLimit<=0||i.length<this.multipleLimit)&&i.push(e.value),this.$emit("input",i),this.emitChange(i),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var i=this.valueKey,r=-1;return e.some((function(e,n){return Object(b["getValueByPath"])(e,i)===Object(b["getValueByPath"])(t,i)&&(r=n,!0)})),r}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var i=this.value.slice();i.splice(n,1),this.$emit("input",i),this.emitChange(i),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var i=this.options[n];if(this.query){if(!i.disabled&&!i.groupDisabled&&i.visible){this.hoverIndex=n;break}}else if(i.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(b["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=F()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=F()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(ei["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},i=t.$el.querySelector("input");this.initialInputHeight=i.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(ei["removeResizeListener"])(this.$el,this.handleResize)}},oi=ri,ai=s(oi,Fn,jn,!1,null,null,null);ai.options.__file="packages/select/src/select.vue";var si=ai.exports;si.install=function(e){e.component(si.name,si)};var li=si;Zn.install=function(e){e.component(Zn.name,Zn)};var ci=Zn,ui=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-group__wrap"},[n("li",{staticClass:"el-select-group__title"},[e._v(e._s(e.label))]),n("li",[n("ul",{staticClass:"el-select-group"},[e._t("default")],2)])])},di=[];ui._withStripped=!0;var hi={mixins:[D.a],name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},data:function(){return{visible:!0}},watch:{disabled:function(e){this.broadcast("ElOption","handleGroupDisabled",e)}},methods:{queryChange:function(){this.visible=this.$children&&Array.isArray(this.$children)&&this.$children.some((function(e){return!0===e.visible}))}},created:function(){this.$on("queryChange",this.queryChange)},mounted:function(){this.disabled&&this.broadcast("ElOption","handleGroupDisabled",this.disabled)}},fi=hi,pi=s(fi,ui,di,!1,null,null,null);pi.options.__file="packages/select/src/option-group.vue";var gi=pi.exports;gi.install=function(e){e.component(gi.name,gi)};var mi=gi,vi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},bi=[];vi._withStripped=!0;var yi={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},_i=yi,wi=s(_i,vi,bi,!1,null,null,null);wi.options.__file="packages/button/src/button.vue";var xi=wi.exports;xi.install=function(e){e.component(xi.name,xi)};var Ci=xi,Si=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},ki=[];Si._withStripped=!0;var Oi={name:"ElButtonGroup"},Mi=Oi,Di=s(Mi,Si,ki,!1,null,null,null);Di.options.__file="packages/button/src/button-group.vue";var Ei=Di.exports;Ei.install=function(e){e.component(Ei.name,Ei)};var Ti=Ei,Li=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},Ii=[];Li._withStripped=!0;var Ai=n(14),Ni=n.n(Ai),Pi=n(36),Ri=n(39),Fi=n.n(Ri),ji="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Bi=function(e,t){e&&e.addEventListener&&e.addEventListener(ji?"DOMMouseScroll":"mousewheel",(function(e){var n=Fi()(e);t&&t.apply(this,[e,n])}))},zi={bind:function(e,t){Bi(e,t.value)}},Vi=n(6),$i=n.n(Vi),Wi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},Ui=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":Wi(e))},qi=function(e,t,n,i,r){if(!t&&!i&&(!r||Array.isArray(r)&&!r.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var o=i?null:function(n,i){return r?(Array.isArray(r)||(r=[r]),r.map((function(t){return"string"===typeof t?Object(b["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&Ui(n)&&"$value"in n&&(n=n.$value),[Ui(n)?Object(b["getValueByPath"])(n,t):n])},a=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:o?o(e,t):null}})).sort((function(e,t){var i=a(e,t);return i||(i=e.index-t.index),i*n})).map((function(e){return e.value}))},Gi=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},Ki=function(e,t){for(var n=null,i=0;i<e.columns.length;i++){var r=e.columns[i];if(r.columnKey===t){n=r;break}}return n},Yi=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?Gi(e,n[0]):null},Xi=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),i=e,r=0;r<n.length;r++)i=i[n[r]];return i}if("function"===typeof t)return t.call(null,e)},Zi=function(e,t){var n={};return(e||[]).forEach((function(e,i){n[Xi(e,t)]={row:e,index:i}})),n};function Qi(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ji(e,t){var n={},i=void 0;for(i in e)n[i]=e[i];for(i in t)if(Qi(t,i)){var r=t[i];"undefined"!==typeof r&&(n[i]=r)}return n}function er(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function tr(e){return"undefined"!==typeof e&&(e=er(e),isNaN(e)&&(e=80)),e}function nr(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function ir(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function rr(e,t,n){var i=!1,r=e.indexOf(t),o=-1!==r,a=function(){e.push(t),i=!0},s=function(){e.splice(r,1),i=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),i}function or(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",r=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[i])t(e,null,s+1);else{var a=e[n];r(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[i])t(e,null,0);else{var a=e[n];r(a)||o(e,a,0)}}))}var ar={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.rowKey,r=e.defaultExpandAll,o=e.expandRows;if(r)this.states.expandRows=n.slice();else if(i){var a=Zi(o,i);this.states.expandRows=n.reduce((function(e,t){var n=Xi(t,i),r=a[n];return r&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=rr(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,i=t.rowKey,r=Zi(n,i);this.states.expandRows=e.reduce((function(e,t){var n=r[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,i=void 0===n?[]:n,r=t.rowKey;if(r){var o=Zi(i,r);return!!o[Xi(e,r)]}return-1!==i.indexOf(e)}}},sr={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,i=void 0===n?[]:n,r=t.rowKey,o=null;r&&(o=Object(b["arrayFind"])(i,(function(t){return Xi(t,r)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,i=t.currentRow;if(e&&e!==i)return t.currentRow=e,void n.$emit("current-change",e,i);!e&&i&&(t.currentRow=null,n.$emit("current-change",null,i))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,i=e._currentRowKey,r=e.data||[],o=e.currentRow;if(-1===r.indexOf(o)&&o){if(n){var a=Xi(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else i&&(this.setCurrentRowByKey(i),this.restoreCurrentRowKey())}}},lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cr={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,i=e.lazyColumnIdentifier,r=Object.keys(n),o={};return r.length?(r.forEach((function(e){if(n[e].length){var r={children:[]};n[e].forEach((function(e){var n=Xi(e,t);r.children.push(n),e[i]&&!o[n]&&(o[n]={children:[]})})),o[e]=r}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,i=t.lazyColumnIdentifier,r=t.rowKey,o=t.lazy,a={};return or(e,(function(e,t,n){var i=Xi(e,r);Array.isArray(t)?a[i]={children:t.map((function(e){return Xi(e,r)})),level:n}:o&&(a[i]={children:[],lazy:!0,level:n})}),n,i),a},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),i={};if(n.length){var r=this.states,o=r.treeData,a=r.defaultExpandAll,s=r.expandRowKeys,l=r.lazy,c=[],u=function(e,t){var n=a||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=o[t],r=lr({},e[t]);if(r.expanded=u(n,t),r.lazy){var a=n||{},s=a.loaded,l=void 0!==s&&s,d=a.loading,h=void 0!==d&&d;r.loaded=!!l,r.loading=!!h,c.push(t)}i[t]=r}));var d=Object.keys(t);l&&d.length&&c.length&&d.forEach((function(e){var n=o[e],r=t[e].children;if(-1!==c.indexOf(e)){if(0!==i[e].children.length)throw new Error("[ElTable]children must be an empty array.");i[e].children=r}else{var a=n||{},s=a.loaded,l=void 0!==s&&s,d=a.loading,h=void 0!==d&&d;i[e]={lazy:!0,loaded:!!l,loading:!!h,expanded:u(n,e),children:r,level:""}}}))}this.states.treeData=i,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,i=n.rowKey,r=n.treeData,o=Xi(e,i),a=o&&r[o];if(o&&a&&"expanded"in a){var s=a.expanded;t="undefined"===typeof t?!a.expanded:t,r[o].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,i=t.treeData,r=t.rowKey,o=Xi(e,r),a=i[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(e,o,a):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var i=this,r=this.table.load,o=this.states.treeData;r&&!o[t].loaded&&(o[t].loading=!0,r(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var r=i.states,o=r.lazyTreeNodeMap,a=r.treeData;a[t].loading=!1,a[t].loaded=!0,a[t].expanded=!0,n.length&&i.$set(o,t,n),i.table.$emit("expand-change",e,!0)})))}}},ur=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?qi(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},dr=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},hr=$i.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[ar,sr,cr],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var i=dr(n),r=dr(e.fixedColumns),o=dr(e.rightFixedColumns);e.leafColumnsLength=i.length,e.fixedLeafColumnsLength=r.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(r).concat(i).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,i=e.selection,r=void 0;if(n){r=[];var o=Zi(i,n),a=Zi(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&r.push(o[s].row)}else r=i.filter((function(e){return-1===t.indexOf(e)}));if(r.length){var l=i.filter((function(e){return-1===r.indexOf(e)}));e.selection=l,this.table.$emit("selection-change",l.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=rr(this.states.selection,e,t);if(i){var r=(this.states.selection||[]).slice();n&&this.table.$emit("select",r,e),this.table.$emit("selection-change",r)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,i=e.selection,r=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||i.length);e.isAllSelected=r;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&rr(i,t,r)&&(o=!0):rr(i,t,r)&&(o=!0)})),o&&this.table.$emit("selection-change",i?i.slice():[]),this.table.$emit("select-all",i)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.data,r=Zi(t,n);i.forEach((function(e){var i=Xi(e,n),o=r[i];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,i=e.selectable,r=e.data||[];if(0!==r.length){var o=void 0;n&&(o=Zi(t,n));for(var a=function(e){return o?!!o[Xi(e,n)]:-1!==t.indexOf(e)},s=!0,l=0,c=0,u=r.length;c<u;c++){var d=r[c],h=i&&i.call(null,d,c);if(a(d))l++;else if(!i||h){s=!1;break}}0===l&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,i={};return e.forEach((function(e){n.filters[e.id]=t,i[e.columnKey||e.id]=t})),i},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,i=t.filters,r=n;Object.keys(i).forEach((function(n){var i=t.filters[n];if(i&&0!==i.length){var o=Gi(e.states,n);o&&o.filterMethod&&(r=r.filter((function(e){return i.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=r},execSort:function(){var e=this.states;e.data=ur(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,i=n.tableHeader,r=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};i&&(a=kt()(a,i.filterPanels)),r&&(a=kt()(a,r.filterPanels)),o&&(a=kt()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var l=e.map((function(e){return Ki(t,e)}));s.forEach((function(e){var t=l.find((function(t){return t.id===e}));t&&(a[e].filteredValue=[])})),this.commit("filterChange",{column:l,values:[],silent:!0,multi:!0})}else s.forEach((function(e){a[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});hr.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,i){var r=e._columns;i&&(r=i.children,r||(r=i.children=[])),"undefined"!==typeof n?r.splice(n,0,t):r.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var i=e._columns;n&&(i=n.children,i||(i=n.children=[])),i&&i.splice(i.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,i=t.order,r=t.init;if(n){var o=Object(b["arrayFind"])(e.columns,(function(e){return e.property===n}));o&&(o.order=i,this.updateSort(o,n,i),this.commit("changeSortCondition",{init:r}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,i=e.sortProp,r=e.sortOrder;null===r&&(e.sortingColumn=null,e.sortProp=null);var o={filter:!0};this.execQuery(o),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:i,order:r}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,i=t.values,r=t.silent,o=this.updateFilters(n,i);this.execQuery(),r||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},hr.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t[e].apply(this,[this.states].concat(i))},hr.prototype.updateTableScrollY=function(){$i.a.nextTick(this.table.updateScrollY)};var fr=hr;function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new fr;return n.table=e,n.toggleAllSelection=F()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function gr(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],r=void 0;"string"===typeof i?r=function(){return this.store.states[i]}:"function"===typeof i?r=function(){return i.call(this,this.store.states)}:console.error("invalid value type"),r&&(t[n]=r)})),t}var mr=n(31),vr=n.n(mr);function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yr=function(){function e(t){for(var n in br(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=vr()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),i=this.scrollY,r=n.offsetHeight>this.bodyHeight;return this.scrollY=r,i!==r}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!$i.a.prototype.$isServer){var i=this.table.$el;if(e=nr(e),this.height=e,!i&&(e||0===e))return $i.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(i.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(i.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return $i.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,i=t.appendWrapper,r=t.footerWrapper;if(this.appendHeight=i?i.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return $i.a.nextTick((function(){return e.updateElsHeight()}));var l=this.tableHeight=this.table.$el.clientHeight,c=this.footerHeight=r?r.offsetHeight:0;null!==this.height&&(this.bodyHeight=l-s-c+(r?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var u=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?l-(u?0:this.gutterWidth):l,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!$i.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,i=this.getFlattenColumns(),r=i.filter((function(e){return"number"!==typeof e.width}));if(i.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),r.length>0&&e){i.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===r.length)r[0].realWidth=(r[0].minWidth||80)+a;else{var s=r.reduce((function(e,t){return e+(t.minWidth||80)}),0),l=a/s,c=0;r.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*l);c+=n,e.realWidth=(e.minWidth||80)+n}})),r[0].realWidth=(r[0].minWidth||80)+a-c}}else this.scrollX=!0,r.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else i.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var u=this.store.states.fixedColumns;if(u.length>0){var d=0;u.forEach((function(e){d+=e.realWidth||e.width})),this.fixedWidth=d}var h=this.store.states.rightFixedColumns;if(h.length>0){var f=0;h.forEach((function(e){f+=e.realWidth||e.width})),this.rightFixedWidth=f}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),_r=yr,wr={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),i={};n.forEach((function(e){i[e.id]=e}));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=a.getAttribute("name"),l=i[s];l&&a.setAttribute("width",l.realWidth||l.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,i=t.length;n<i;n++){var r=t[n];r.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var o=this.$el.querySelectorAll("th.gutter"),a=0,s=o.length;a<s;a++){var l=o[a];l.style.width=e.scrollY?e.gutterWidth+"px":"0",l.style.display=e.scrollY?"":"none"}}}},xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cr={name:"ElTableRow",props:["columns","row","index","isSelected","isExpanded","store","context","firstDefaultColumnIndex","treeRowData","treeIndent","columnsHidden","getSpan","getColspanRealWidth","getCellStyle","getCellClass","handleCellMouseLeave","handleCellMouseEnter","fixed"],components:{ElCheckbox:Ni.a},render:function(){var e=this,t=arguments[0],n=this.columns,i=this.row,r=this.index,o=this.store,a=this.context,s=this.firstDefaultColumnIndex,l=this.treeRowData,c=this.treeIndent,u=this.columnsHidden,d=void 0===u?[]:u,h=this.isSelected,f=this.isExpanded;return t("tr",[n.map((function(u,p){var g=e.getSpan(i,u,r,p),m=g.rowspan,v=g.colspan;if(!m||!v)return null;var b=xr({},u);b.realWidth=e.getColspanRealWidth(n,v,p);var y={store:o,isSelected:h,isExpanded:f,_self:a,column:b,row:i,$index:r};return p===s&&l&&(y.treeNode={indent:l.level*c,level:l.level},"boolean"===typeof l.expanded&&(y.treeNode.expanded=l.expanded,"loading"in l&&(y.treeNode.loading=l.loading),"noLazyChildren"in l&&(y.treeNode.noLazyChildren=l.noLazyChildren))),t("td",{style:e.getCellStyle(r,p,i,u),class:e.getCellClass(r,p,i,u),attrs:{rowspan:m,colspan:v},on:{mouseenter:function(t){return e.handleCellMouseEnter(t,i)},mouseleave:e.handleCellMouseLeave}},[u.renderCell.call(e._renderProxy,e.$createElement,y,d[p])])}))])}},Sr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Or={name:"ElTableBody",mixins:[wr],components:{ElCheckbox:Ni.a,ElTooltip:rt.a,TableRow:Cr},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:kr({table:function(){return this.$parent}},gr({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{columnsHidden:function(){var e=this;return this.columns.map((function(t,n){return e.isColumnHidden(n)}))},firstDefaultColumnIndex:function(){return Object(b["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var i=window.requestAnimationFrame;i||(i=function(e){return setTimeout(e,16)}),i((function(){var i=n.$el.querySelectorAll(".el-table__row"),r=i[t],o=i[e];r&&Object(je["removeClass"])(r,"hover-row"),o&&Object(je["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=F()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Xi(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,i){var r=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:i});Array.isArray(s)?(r=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":Sr(s))&&(r=s.rowspan,o=s.colspan)}return{rowspan:r,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var i=this.table.rowClassName;return"string"===typeof i?n.push(i):"function"===typeof i&&n.push(i.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,i){var r=this.table.cellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getCellClass:function(e,t,n,i){var r=[i.id,i.align,i.className];this.isColumnHidden(t)&&r.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var i=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return i.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,i=Hi(e);if(i){var r=Yi(n,i),o=n.hoverState={cell:i,column:r,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(je["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var l=s.getBoundingClientRect().width,c=(parseInt(Object(je["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(je["getStyle"])(a,"paddingRight"),10)||0);if((l+c>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var u=this.$refs.tooltip;this.tooltipContent=i.innerText||i.textContent,u.referenceElm=i,u.$refs.popper&&(u.$refs.popper.style.display="none"),u.doDestroy(),u.setExpectedState(!0),this.activateTooltip(u)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=Hi(e);if(n){var i=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",i.row,i.column,i.cell,e)}},handleMouseEnter:F()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:F()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var i=this.table,r=Hi(e),o=void 0;r&&(o=Yi(i,r),o&&i.$emit("cell-"+n,t,o,r,e)),i.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var i=this,r=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,l=this.getRowClass(e,t),c=!0;n&&(l.push("el-table__row--level-"+n.level),c=n.display);var u=c?null:{display:"none"};return r(Cr,{style:[u,this.getRowStyle(e,t)],class:l,key:this.getKeyOfRow(e,t),nativeOn:{dblclick:function(t){return i.handleDoubleClick(t,e)},click:function(t){return i.handleClick(t,e)},contextmenu:function(t){return i.handleContextMenu(t,e)},mouseenter:function(e){return i.handleMouseEnter(t)},mouseleave:this.handleMouseLeave},attrs:{columns:a,row:e,index:t,store:this.store,context:this.context||this.table.$vnode.context,firstDefaultColumnIndex:s,treeRowData:n,treeIndent:o,columnsHidden:this.columnsHidden,getSpan:this.getSpan,getColspanRealWidth:this.getColspanRealWidth,getCellStyle:this.getCellStyle,getCellClass:this.getCellClass,handleCellMouseEnter:this.handleCellMouseEnter,handleCellMouseLeave:this.handleCellMouseLeave,isSelected:this.store.isSelected(e),isExpanded:this.store.states.expandRows.indexOf(e)>-1,fixed:this.fixed}})},wrappedRowRender:function(e,t){var n=this,i=this.$createElement,r=this.store,o=r.isRowExpanded,a=r.assertRowKey,s=r.states,l=s.treeData,c=s.lazyTreeNodeMap,u=s.childrenColumnName,d=s.rowKey;if(this.hasExpandColumn&&o(e)){var h=this.table.renderExpanded,f=this.rowRender(e,t);return h?[[f,i("tr",{key:"expanded-row__"+f.key},[i("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[h(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(l).length){a();var p=Xi(e,d),g=l[p],m=null;g&&(m={expanded:g.expanded,level:g.level,display:!0},"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(m.noLazyChildren=!(g.children&&g.children.length)),m.loading=g.loading));var v=[this.rowRender(e,t,m)];if(g){var b=0,y=function e(i,r){i&&i.length&&r&&i.forEach((function(i){var o={display:r.display&&r.expanded,level:r.level+1},a=Xi(i,d);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=kr({},l[a]),g&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),b++,v.push(n.rowRender(i,t+b,o)),g){var s=c[a]||i[u];e(s,g)}}))};g.display=!0;var _=c[p]||e[u];y(_,g)}return v}return this.rowRender(e,t)}}},Mr=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Dr=[];Mr._withStripped=!0;var Er=[];!$i.a.prototype.$isServer&&document.addEventListener("click",(function(e){Er.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var Tr={open:function(e){e&&Er.push(e)},close:function(e){var t=Er.indexOf(e);-1!==t&&Er.splice(e,1)}},Lr=n(32),Ir=n.n(Lr),Ar={name:"ElTableFilterPanel",mixins:[W.a,v.a],directives:{Clickoutside:B.a},components:{ElCheckbox:Ni.a,ElCheckboxGroup:Ir.a,ElScrollbar:U.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?Tr.open(e):Tr.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<C["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=C["PopupManager"].nextZIndex())}}},Nr=Ar,Pr=s(Nr,Mr,Dr,!1,null,null,null);Pr.options.__file="packages/table/src/filter-panel.vue";var Rr=Pr.exports,Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jr=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},Br=function(e){var t=1,n=function e(n,i){if(i&&(n.level=i.level+1,t<n.level&&(t=n.level)),n.children){var r=0;n.children.forEach((function(t){e(t,n),r+=t.colSpan})),n.colSpan=r}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var i=[],r=0;r<t;r++)i.push([]);var o=jr(e);return o.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,i[e.level-1].push(e)})),i},zr={name:"ElTableHeader",mixins:[wr],render:function(e){var t=this,n=this.store.states.originColumns,i=Br(n,this.columns),r=i.length>1;return r&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":r,"has-gutter":this.hasGutter}]},[this._l(i,(function(n,i){return e("tr",{style:t.getHeaderRowStyle(i),class:t.getHeaderRowClass(i)},[n.map((function(r,o){return e("th",{attrs:{colspan:r.colSpan,rowspan:r.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,r)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,r)},click:function(e){return t.handleHeaderClick(e,r)},contextmenu:function(e){return t.handleHeaderContextMenu(e,r)}},style:t.getHeaderCellStyle(i,o,n,r),class:t.getHeaderCellClass(i,o,n,r),key:r.id},[e("div",{class:["cell",r.filteredValue&&r.filteredValue.length>0?"highlight":"",r.labelClassName]},[r.renderHeader?r.renderHeader.call(t._renderProxy,e,{column:r,$index:o,store:t.store,_self:t.$parent.$vnode.context}):r.label,r.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,r)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,r,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,r,"descending")}}})]):"",r.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,r)}}},[e("i",{class:["el-icon-arrow-down",r.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:Ni.a},computed:Fr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,i=t.order,r=!0;e.store.commit("sort",{prop:n,order:i,init:r})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,i=0;i<e;i++)n+=t[i].colSpan;var r=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?r>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:r<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,i){var r=this.table.headerCellStyle;return"function"===typeof r?r.call(null,{rowIndex:e,columnIndex:t,row:n,column:i}):r},getHeaderCellClass:function(e,t,n,i){var r=[i.id,i.order,i.headerAlign,i.className,i.labelClassName];0===e&&this.isCellHidden(t,n)&&r.push("is-hidden"),i.children||r.push("is-leaf"),i.sortable&&r.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?r.push(o):"function"===typeof o&&r.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:i})),r.push("el-table__cell"),r.join(" ")},toggleAllSelection:function(){this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,i="TH"===n.tagName?n:n.parentNode;if(!Object(je["hasClass"])(i,"noclick")){i=i.querySelector(".el-table__column-filter-trigger")||i;var r=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new $i.a(Rr),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=r,o.cell=i,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var i=this.$parent,r=i.$el,o=r.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),l=s.left-o+30;Object(je["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var c=i.$refs.resizeProxy;c.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var u=function(e){var t=e.clientX-n.dragState.startMouseLeft,i=n.dragState.startLeft+t;c.style.left=Math.max(l,i)+"px"},d=function r(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,l=o.startLeft,d=parseInt(c.style.left,10),h=d-s;t.width=t.realWidth=h,i.$emit("header-dragend",t.width,l-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},i.resizeProxyVisible=!1}document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",r),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(je["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",u),document.addEventListener("mouseup",d)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var i=n.getBoundingClientRect(),r=document.body.style;i.width>12&&i.right-e.pageX<8?(r.cursor="col-resize",Object(je["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(r.cursor="",Object(je["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var i=n.indexOf(t||null);return n[i>n.length-2?0:i+1]},handleSortClick:function(e,t,n){e.stopPropagation();var i=t.order===n?null:n||this.toggleOrder(t),r=e.target;while(r&&"TH"!==r.tagName)r=r.parentNode;if(r&&"TH"===r.tagName&&Object(je["hasClass"])(r,"noclick"))Object(je["removeClass"])(r,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,l=o.sortingColumn;(l!==t||l===t&&null===l.order)&&(l&&(l.order=null),o.sortingColumn=t,a=t.property),s=t.order=i||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},Vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$r={name:"ElTableFooter",mixins:[wr],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,i){if(0!==i){var r=t.store.states.data.map((function(t){return Number(t[e.property])})),o=[],a=!0;r.forEach((function(e){if(!isNaN(e)){a=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}}));var s=Math.max.apply(null,o);n[i]=a?"":r.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[i]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(i,r){return e("td",{key:r,attrs:{colspan:i.colSpan,rowspan:i.rowSpan},class:[].concat(t.getRowClasses(i,r),["el-table__cell"])},[e("div",{class:["cell",i.labelClassName]},[n[r]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:Vr({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},gr({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var i=0,r=0;r<e;r++)i+=t[r].colSpan;return i<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},Wr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hr=1,Ur={name:"ElTable",mixins:[v.a,O.a],directives:{Mousewheel:zi},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:zr,TableFooter:$r,TableBody:Or,ElCheckbox:Ni.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var i=n.scrollTop;t.pixelY<0&&0!==i&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>i&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,i=t.pixelY;Math.abs(n)>=Math.abs(i)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,i=e.offsetWidth,r=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,l=o.fixedBodyWrapper,c=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),l&&(l.scrollTop=n),c&&(c.scrollTop=n);var u=r-i-1;this.scrollPosition=t>=u?"right":0===t?"left":"middle"},throttleSyncPostion:Object(Pi["throttle"])(16,(function(){this.syncPostion()})),onScroll:function(e){var t=window.requestAnimationFrame;t?t(this.syncPostion):this.throttleSyncPostion()},bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(ei["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.onScroll,{passive:!0}),this.fit&&Object(ei["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,i=n.width,r=n.height,o=t.offsetWidth;i!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&r!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:Wr({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,i=e.gutterWidth;return t?t-(n?i:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,i=e.bodyHeight,r=e.footerHeight,o=void 0===r?0:r;if(this.height)return{height:i?i+"px":""};if(this.maxHeight){var a=nr(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=nr(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},gr({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+Hr++,this.debouncedUpdateLayout=Object(Pi["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,i=e.children,r=void 0===i?"children":i;this.store=pr(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:r});var o=new _r({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},qr=Ur,Gr=s(qr,Li,Ii,!1,null,null,null);Gr.options.__file="packages/table/src/table.vue";var Kr=Gr.exports;Kr.install=function(e){e.component(Kr.name,Kr)};var Yr=Kr,Xr={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},Zr={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},on:{input:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,i=t.column,r=t.isSelected,o=t.store,a=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:r,disabled:!!i.selectable&&!i.selectable.call(null,n,a)},on:{input:function(){o.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,i=t.column,r=n+1,o=i.index;return"number"===typeof o?r=n+o:"function"===typeof o&&(r=o(n)),e("div",[r])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,i=t.store,r=t.isExpanded,o=["el-table__expand-icon"];r&&o.push("el-table__expand-icon--expanded");var a=function(e){e.stopPropagation(),i.toggleRowExpansion(n)};return e("div",{class:o,on:{click:a}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function Qr(e,t){var n=t.row,i=t.column,r=t.$index,o=i.property,a=o&&Object(b["getPropByPath"])(n,o).v;return i&&i.formatter?i.formatter(n,i,a,r):a}function Jr(e,t){var n=t.row,i=t.treeNode,r=t.store;if(!i)return null;var o=[],a=function(e){e.stopPropagation(),r.loadOrToggle(n)};if(i.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":i.indent+"px"}})),"boolean"!==typeof i.expanded||i.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",i.expanded?"el-table__expand-icon--expanded":""],l=["el-icon-arrow-right"];i.loading&&(l=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:l})]))}return o}var eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},to=1,no={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},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,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return er(this.width)},realMinWidth:function(){return tr(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=Zr[t]||{};return Object.keys(n).forEach((function(t){var i=n[t];void 0!==i&&(e[t]="className"===t?e[t]+" "+i:i)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,i){var r=t.$scopedSlots.header;return r?r(i):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||Qr,e.renderCell=function(i,r){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(r):n(i,r);var a=Jr(i,r),s={class:"cell",style:{}};return e.showOverflowTooltip&&(s.class+=" el-tooltip",s.style={width:(r.column.realWidth||r.column.width)-1+"px"}),i("div",s,[a,o])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},i=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(i).forEach((function(t){var i=n[t];e.$watch(t,(function(t){e.columnConfig[i]=t;var n="fixed"===i;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:Ni.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+to++;var t=this.type||"default",n=""===this.sortable||this.sortable,i=eo({},Xr[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),r=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],o=["sortMethod","sortBy","sortOrders"],a=["selectable","reserveSelection"],s=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(r,o,a,s);l=Ji(i,l);var c=ir(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=c(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,i=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,i,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(no.name,no)}},io=no,ro=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type||"years"===e.type||"months"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},oo=[];ro._withStripped=!0;var ao=n(0),so={props:{appendToBody:W.a.props.appendToBody,offset:W.a.props.offset,boundariesPadding:W.a.props.boundariesPadding,arrowOffset:W.a.props.arrowOffset,transformOrigin:W.a.props.transformOrigin},methods:W.a.methods,data:function(){return kt()({visibleArrow:!0},W.a.data)},beforeDestroy:W.a.beforeDestroy},lo={date:"yyyy-MM-dd",month:"yyyy-MM",months:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy",years:"yyyy"},co=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates","months","years"],uo=function(e,t){return"timestamp"===t?e.getTime():Object(ao["formatDate"])(e,t)},ho=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(ao["parseDate"])(e,t)},fo=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],i=e[1];if(n&&i)return[uo(n,t),uo(i,t)]}return""},po=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var i=e[0],r=e[1];return[ho(i,t),ho(r,t)]}return[]},go={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(ao["getWeekNumber"])(e),i=e.getMonth(),r=new Date(e);1===n&&11===i&&(r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7));var o=Object(ao["formatDate"])(r,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(e,t){return go.date.parser(e,t)}},date:{formatter:uo,parser:ho},datetime:{formatter:uo,parser:ho},daterange:{formatter:fo,parser:po},monthrange:{formatter:fo,parser:po},datetimerange:{formatter:fo,parser:po},timerange:{formatter:fo,parser:po},time:{formatter:uo,parser:ho},month:{formatter:uo,parser:ho},year:{formatter:uo,parser:ho},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return uo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}},months:{formatter:function(e,t){return e.map((function(e){return uo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}},years:{formatter:function(e,t){return e.map((function(e){return uo(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:ho(e,t)}))}}},mo={left:"bottom-start",center:"bottom",right:"bottom-end"},vo=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var r=(go[n]||go["default"]).parser,o=t||lo[n];return r(e,o,i)},bo=function(e,t,n){if(!e)return null;var i=(go[n]||go["default"]).formatter,r=t||lo[n];return i(e,r)},yo=function(e,t){var n=function(e,t){var n=e instanceof Date,i=t instanceof Date;return n&&i?e.getTime()===t.getTime():!n&&!i&&e===t},i=e instanceof Array,r=t instanceof Array;return i&&r?e.length===t.length&&e.every((function(e,i){return n(e,t[i])})):!i&&!r&&n(e,t)},_o=function(e){return"string"===typeof e||e instanceof String},wo=function(e){return null===e||void 0===e||_o(e)||Array.isArray(e)&&2===e.length&&e.every(_o)},xo={mixins:[D.a,so],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:wo},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:wo},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:g.a},directives:{Clickoutside:B.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){yo(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"months"===this.type?"months":"years"===this.type?"years":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==co.indexOf(this.type)},displayValue:function(){var e=bo(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type||"years"===this.type||"months"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(ao["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(ao["isDateObject"]);return e?this.value:this.valueFormat?vo(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=mo[this.align]||mo.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(ao["isDateObject"])(e)||Array.isArray(e)&&e.every(ao["isDateObject"]);return this.valueFormat&&!t&&vo(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(ao["isDateObject"])(e)||Array.isArray(e)&&e.every(ao["isDateObject"]);return this.valueFormat&&t?bo(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return vo(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return bo(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type||"years"===this.type||"months"===this.type)){var e=vo(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===co.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===co.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new $i.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,i=go.datetimerange.parser,r=lo.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return i(t,r,e.rangeSeparator)}))}for(var o in t)t.hasOwnProperty(o)&&"selectableRange"!==o&&(e.picker[o]=t[o]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,i){0!==e.refInput.length&&(i&&"min"!==i?"max"===i&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){yo(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);yo(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},Co=xo,So=s(Co,ro,oo,!1,null,null,null);So.options.__file="packages/date-picker/src/picker.vue";var ko=So.exports,Oo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{"selection-mode":e.selectionMode,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&("date"===e.currentView||"month"===e.currentView||"year"===e.currentView),expression:"footerVisible && (currentView === 'date' || currentView === 'month' || currentView === 'year')"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode&&"months"!==e.selectionMode&&"years"!==e.selectionMode,expression:"selectionMode !== 'dates' && selectionMode !== 'months' && selectionMode !== 'years'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n "+e._s(e.t("el.datepicker.now"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1)])])},Mo=[];Oo._withStripped=!0;var Do=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},Eo=[];Do._withStripped=!0;var To=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:i,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?i%12||12:i)).slice(-2))+e._s(e.amPm(i)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:i===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:i,disabled:!1})}}},[e._v(e._s(("0"+i).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,i){return n("li",{key:i,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n ")])})),0)]):e._e()]:e._e()],2)},Lo=[];To._withStripped=!0;var Io={components:{ElScrollbar:U.a},directives:{repeatClick:Nt},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(ao["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(ao["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(ao["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(ao["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,i=t.disabled;i||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,i=this.hoursList,r=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=i.length;while(a--&&o)r=(r+e+i.length)%i.length,i[r]||o--;if(i[r])return}else r=(r+e+60)%60;this.modifyDateField(n,r),this.adjustSpinner(n,r),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,i=e<12?" am":" pm";return n&&(i=i.toUpperCase()),i},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},Ao=Io,No=s(Ao,To,Lo,!1,null,null,null);No.options.__file="packages/date-picker/src/basic/time-spinner.vue";var Po=No.exports,Ro={mixins:[v.a],components:{TimeSpinner:Po},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(ao["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(ao["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(ao["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(ao["clearMilliseconds"])(Object(ao["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.$refs.spinner.scrollDown(r),void e.preventDefault()}},isValidValue:function(e){return Object(ao["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[r])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},Fo=Ro,jo=s(Fo,Do,Eo,!1,null,null,null);jo.options.__file="packages/date-picker/src/panel/time.vue";var Bo=jo.exports,zo=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},Vo=[];zo._withStripped=!0;var $o=function(e){var t=Object(ao["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(ao["range"])(t).map((function(e){return Object(ao["nextDate"])(n,e)}))},Wo={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(ao["isDate"])(e)}},date:{},selectionMode:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&$o(e).every(this.disabledDate),t.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(je["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;if("years"===this.selectionMode){var i=this.value||[],r=Object(b["arrayFindIndex"])(i,(function(e){return e.getFullYear()===Number(n)})),o=r>-1?[].concat(i.slice(0,r),i.slice(r+1)):[].concat(i,[new Date(n)]);this.$emit("pick",o)}else this.$emit("pick",Number(n))}}}},Ho=Wo,Uo=s(Ho,zo,Vo,!1,null,null,null);Uo.options.__file="packages/date-picker/src/basic/year-table.vue";var qo=Uo.exports,Go=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,i){return n("tr",{key:i},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},Ko=[];Go._withStripped=!0;var Yo=function(e,t){var n=Object(ao["getDayCountOfMonth"])(e,t),i=new Date(e,t,1);return Object(ao["range"])(n).map((function(e){return Object(ao["nextDate"])(i,e)}))},Xo=function(e){return new Date(e.getFullYear(),e.getMonth())},Zo=function(e){return"number"===typeof e||"string"===typeof e?Xo(new Date(e)).getTime():e instanceof Date?Xo(e).getTime():NaN},Qo=function(e,t){var n="function"===typeof t?Object(b["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},Jo={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(ao["isDate"])(e)||Array.isArray(e)&&e.every(ao["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[v.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){Zo(e)!==Zo(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){Zo(e)!==Zo(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},i=this.date.getFullYear(),r=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&Yo(i,o).every(this.disabledDate),n.current=Object(b["arrayFindIndex"])(Object(b["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===i&&e.getMonth()===o}))>=0,n.today=r.getFullYear()===i&&r.getMonth()===o,n.default=a.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=Zo(e),t=Zo(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.rows,r=0,o=i.length;r<o;r++)for(var a=i[r],s=0,l=a.length;s<l;s++){var c=a[s],u=4*r+s,d=new Date(this.date.getFullYear(),u).getTime();c.inRange=e&&d>=e&&d<=t,c.start=e&&d===e,c.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+i)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(je["hasClass"])(t,"disabled")){var n=t.cellIndex,i=t.parentNode.rowIndex,r=4*i+n,o=this.getMonthOfCell(r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("months"===this.selectionMode){var a=this.value||[],s=this.date.getFullYear(),l=Object(b["arrayFindIndex"])(a,(function(e){return e.getFullYear()===s&&e.getMonth()===r}))>=0?Qo(a,(function(e){return e.getTime()===o.getTime()})):[].concat(a,[o]);this.$emit("pick",l)}else this.$emit("pick",r)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,i=[],r=Zo(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var l=4*o+t,c=new Date(e.date.getFullYear(),l).getTime();s.inRange=c>=Zo(e.minDate)&&c<=Zo(e.maxDate),s.start=e.minDate&&c===Zo(e.minDate),s.end=e.maxDate&&c===Zo(e.maxDate);var u=c===r;u&&(s.type="today"),s.text=l;var d=new Date(c);s.disabled="function"===typeof n&&n(d),s.selected=Object(b["arrayFind"])(i,(function(e){return e.getTime()===d.getTime()})),e.$set(a,t,s)},l=0;l<4;l++)s(l);return t}}},ea=Jo,ta=s(ea,Go,Ko,!1,null,null,null);ta.options.__file="packages/date-picker/src/basic/month-table.vue";var na=ta.exports,ia=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,i){return n("th",{key:i},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,i){return n("tr",{key:i,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,i){return n("td",{key:i,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n "+e._s(t.text)+"\n ")])])])})),0)}))],2)])},ra=[];ia._withStripped=!0;var oa=["sun","mon","tue","wed","thu","fri","sat"],aa=function(e){return"number"===typeof e||"string"===typeof e?Object(ao["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(ao["clearTime"])(e).getTime():NaN},sa=function(e,t){var n="function"===typeof t?Object(b["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},la={mixins:[v.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(ao["isDate"])(e)||Array.isArray(e)&&e.every(ao["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return oa.concat(oa).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(ao["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(ao["getFirstDayOfMonth"])(t),i=Object(ao["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),r=Object(ao["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,a=this.tableRows,s=1,l=this.startDate,c=this.disabledDate,u=this.cellClassName,d="dates"===this.selectionMode?Object(b["coerceTruthyValueToArray"])(this.value):[],h=aa(new Date),f=0;f<6;f++){var p=a[f];this.showWeekNumber&&(p[0]||(p[0]={type:"week",text:Object(ao["getWeekNumber"])(Object(ao["nextDate"])(l,7*f+1))}));for(var g=function(t){var a=p[e.showWeekNumber?t+1:t];a||(a={row:f,column:t,type:"normal",inRange:!1,start:!1,end:!1}),a.type="normal";var g=7*f+t,m=Object(ao["nextDate"])(l,g-o).getTime();a.inRange=m>=aa(e.minDate)&&m<=aa(e.maxDate),a.start=e.minDate&&m===aa(e.minDate),a.end=e.maxDate&&m===aa(e.maxDate);var v=m===h;if(v&&(a.type="today"),f>=0&&f<=1){var y=n+o<0?7+n+o:n+o;t+7*f>=y?a.text=s++:(a.text=r-(y-t%7)+1+7*f,a.type="prev-month")}else s<=i?a.text=s++:(a.text=s++-i,a.type="next-month");var _=new Date(m);a.disabled="function"===typeof c&&c(_),a.selected=Object(b["arrayFind"])(d,(function(e){return e.getTime()===_.getTime()})),a.customClass="function"===typeof u&&u(_),e.$set(p,e.showWeekNumber?t+1:t,a)},m=0;m<7;m++)g(m);if("week"===this.selectionMode){var v=this.showWeekNumber?1:0,y=this.showWeekNumber?7:6,_=this.isWeekActive(p[v+1]);p[v].inRange=_,p[v].start=_,p[y].inRange=_,p[y].end=_}}return a}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){aa(e)!==aa(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){aa(e)!==aa(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,i=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],r=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?r.push(e.type):(r.push("available"),"today"===e.type&&r.push("today")),"normal"===e.type&&i.some((function(n){return t.cellMatchesDate(e,n)}))&&r.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||r.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(r.push("in-range"),e.start&&r.push("start-date"),e.end&&r.push("end-date")),e.disabled&&r.push("disabled"),e.selected&&r.push("selected"),e.customClass&&r.push(e.customClass),r.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(ao["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),i=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===i?11:i-1),t.setFullYear(0===i?n-1:n)),"next-month"===e.type&&(t.setMonth(11===i?0:i+1),t.setFullYear(11===i?n+1:n)),t.setDate(parseInt(e.text,10)),Object(ao["isDate"])(this.value)){var r=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(ao["prevDate"])(this.value,r);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=aa(e),t=aa(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var i=this.startDate,r=this.rows,o=0,a=r.length;o<a;o++)for(var s=r[o],l=0,c=s.length;l<c;l++)if(!this.showWeekNumber||0!==l){var u=s[l],d=7*o+l+(this.showWeekNumber?-1:0),h=Object(ao["nextDate"])(i,d-this.offsetDay).getTime();u.inRange=e&&h>=e&&h<=t,u.start=e&&h===e,u.end=t&&h===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i=t.cellIndex;this.rows[n][i].disabled||n===this.lastRow&&i===this.lastColumn||(this.lastRow=n,this.lastColumn=i,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,i)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,i="week"===this.selectionMode?1:t.cellIndex,r=this.rows[n][i];if(!r.disabled&&"week"!==r.type){var o=this.getDateOfCell(n,i);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var a=Object(ao["getWeekNumber"])(o),s=o.getFullYear()+"w"+a;this.$emit("pick",{year:o.getFullYear(),week:a,value:s,date:o})}else if("dates"===this.selectionMode){var l=this.value||[],c=r.selected?sa(l,(function(e){return e.getTime()===o.getTime()})):[].concat(l,[o]);this.$emit("pick",c)}}}}}},ca=la,ua=s(ca,ia,ra,!1,null,null,null);ua.options.__file="packages/date-picker/src/basic/date-table.vue";var da=ua.exports,ha={mixins:[v.a],directives:{Clickoutside:B.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||"months"===this.selectionMode&&this.value||"years"===this.selectionMode&&this.value||(Object(ao["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(ao["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e?this.currentView="date":"years"===e?this.currentView="year":"months"===e&&(this.currentView="month")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},i=function(t){e.$refs.timepicker.date=t},r=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",i),this.$watch("selectableRange",r),t(this.timeFormat),n(this.value),i(this.date),r(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(e)if(Array.isArray(e)){var o=e.map((function(e){return t.showTime?Object(ao["clearMilliseconds"])(e):Object(ao["clearTime"])(e)}));this.$emit.apply(this,["pick",o].concat(i))}else this.$emit.apply(this,["pick",this.showTime?Object(ao["clearMilliseconds"])(e):Object(ao["clearTime"])(e)].concat(i));else this.$emit.apply(this,["pick",e].concat(i));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(ao["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(ao["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(ao["prevYear"])(this.date,10):this.date=Object(ao["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(ao["nextYear"])(this.date,10):this.date=Object(ao["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(ao["isDate"])(e)){var i=this.value?Object(ao["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=i,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):"months"===this.selectionMode?this.emit(e,!0):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(ao["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(ao["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(ao["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(ao["modifyDate"])(this.date,e,0,1),this.emit(this.date)):"years"===this.selectionMode?this.emit(e,!0):(this.date=Object(ao["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(ao["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode||"months"===this.selectionMode?this.currentView="month":"year"===this.selectionMode||"years"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,i=31536e6,r=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(r-o.getTime())<=i){var a=t[n];if(a.offset(o,a[e]),"function"!==typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(ao["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(ao["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(ao["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(ao["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(ao["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:Bo,YearTable:qo,MonthTable:na,DateTable:da,ElInput:g.a,ElButton:ae.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(ao["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode||"months"===this.selectionMode||"years"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(ao["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(ao["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},fa=ha,pa=s(fa,Oo,Mo,!1,null,null,null);pa.options.__file="packages/date-picker/src/panel/date.vue";var ga=pa.exports,ma=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n "+e._s(e.t("el.datepicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n "+e._s(e.t("el.datepicker.confirm"))+"\n ")])],1):e._e()])])},va=[];ma._withStripped=!0;var ba=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ao["nextDate"])(new Date(e),1)]:[new Date,Object(ao["nextDate"])(new Date,1)]},ya={mixins:[v.a],directives:{Clickoutside:B.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(ao["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(ao["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(ao["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(ao["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(ao["parseDate"])(Object(ao["formatDate"])(t.minDate,e),e),Object(ao["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ao["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ao["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),i=this.maxDate.getFullYear(),r=this.maxDate.getMonth();this.rightDate=t===i&&n===r?Object(ao["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextMonth"])(this.leftDate);else this.leftDate=ba(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=ba(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?i:Object(ao["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ba(this.defaultValue)[0],this.rightDate=Object(ao["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(ao["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(ao["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))):(this.maxDate=Object(ao["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(ao["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(ao["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(ao["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(ao["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var i=Object(ao["parseDate"])(e,this.timeFormat);i&&("min"===t?(this.minDate=Object(ao["modifyTime"])(this.minDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,i.getHours(),i.getMinutes(),i.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(ao["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(ao["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(ao["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ao["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ao["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(ao["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(ao["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(ao["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(ao["nextYear"])(this.rightDate):(this.leftDate=Object(ao["nextYear"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(ao["nextMonth"])(this.rightDate):(this.leftDate=Object(ao["nextMonth"])(this.leftDate),this.rightDate=Object(ao["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(ao["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(ao["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ao["isDate"])(e[0])&&Object(ao["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:Bo,DateTable:da,ElInput:g.a,ElButton:ae.a}},_a=ya,wa=s(_a,ma,va,!1,null,null,null);wa.options.__file="packages/date-picker/src/panel/date-range.vue";var xa=wa.exports,Ca=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,i){return n("button",{key:i,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},Sa=[];Ca._withStripped=!0;var ka=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(ao["nextMonth"])(new Date(e))]:[new Date,Object(ao["nextMonth"])(new Date)]},Oa={mixins:[v.a],directives:{Clickoutside:B.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(ao["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(ao["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(ao["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(ao["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(ao["nextYear"])(this.leftDate);else this.leftDate=ka(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=ka(e),n=t[0],i=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==i.getFullYear()&&this.unlinkPanels?i:Object(ao["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=ka(this.defaultValue)[0],this.rightDate=Object(ao["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.defaultTime||[],r=Object(ao["modifyWithTimeString"])(e.minDate,i[0]),o=Object(ao["modifyWithTimeString"])(e.maxDate,i[1]);this.maxDate===o&&this.minDate===r||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=r,setTimeout((function(){t.maxDate=o,t.minDate=r}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(ao["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(ao["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(ao["nextYear"])(this.leftDate)),this.rightDate=Object(ao["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(ao["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(ao["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(ao["isDate"])(e[0])&&Object(ao["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(ao["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:na,ElInput:g.a,ElButton:ae.a}},Ma=Oa,Da=s(Ma,Ca,Sa,!1,null,null,null);Da.options.__file="packages/date-picker/src/panel/month-range.vue";var Ea=Da.exports,Ta=function(e){return"daterange"===e||"datetimerange"===e?xa:"monthrange"===e?Ea:ga},La={mixins:[ko],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=Ta(e),this.mountPicker()):this.panel=Ta(e)}},created:function(){this.panel=Ta(this.type)},install:function(e){e.component(La.name,La)}},Ia=La,Aa=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:e.popperClass,style:{width:e.width+"px"}},[n("el-scrollbar",{attrs:{noresize:"","wrap-class":"el-picker-panel__content"}},e._l(e.items,(function(t){return n("div",{key:t.value,staticClass:"time-select-item",class:{selected:e.value===t.value,disabled:t.disabled,default:t.value===e.defaultValue},attrs:{disabled:t.disabled},on:{click:function(n){e.handleClick(t)}}},[e._v(e._s(t.value))])})),0)],1)])},Na=[];Aa._withStripped=!0;var Pa=function(e){var t=(e||"").split(":");if(t.length>=2){var n=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:n,minutes:i}}return null},Ra=function(e,t){var n=Pa(e),i=Pa(t),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},Fa=function(e){return(e.hours<10?"0"+e.hours:e.hours)+":"+(e.minutes<10?"0"+e.minutes:e.minutes)},ja=function(e,t){var n=Pa(e),i=Pa(t),r={hours:n.hours,minutes:n.minutes};return r.minutes+=i.minutes,r.hours+=i.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,Fa(r)},Ba={components:{ElScrollbar:U.a},watch:{value:function(e){var t=this;e&&this.$nextTick((function(){return t.scrollToOption()}))}},methods:{handleClick:function(e){e.disabled||this.$emit("pick",e.value)},handleClear:function(){this.$emit("pick",null)},scrollToOption:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".selected",t=this.$refs.popper.querySelector(".el-picker-panel__content");ni()(t,t.querySelector(e))},handleMenuEnter:function(){var e=this,t=-1!==this.items.map((function(e){return e.value})).indexOf(this.value),n=-1!==this.items.map((function(e){return e.value})).indexOf(this.defaultValue),i=(t?".selected":n&&".default")||".time-select-item:not(.disabled)";this.$nextTick((function(){return e.scrollToOption(i)}))},scrollDown:function(e){var t=this.items,n=t.length,i=t.length,r=t.map((function(e){return e.value})).indexOf(this.value);while(i--)if(r=(r+e+n)%n,!t[r].disabled)return void this.$emit("pick",t[r].value,!0)},isValidValue:function(e){return-1!==this.items.filter((function(e){return!e.disabled})).map((function(e){return e.value})).indexOf(e)},handleKeydown:function(e){var t=e.keyCode;if(38===t||40===t){var n={40:1,38:-1},i=n[t.toString()];return this.scrollDown(i),void e.stopPropagation()}}},data:function(){return{popperClass:"",start:"09:00",end:"18:00",step:"00:30",value:"",defaultValue:"",visible:!1,minTime:"",maxTime:"",width:0}},computed:{items:function(){var e=this.start,t=this.end,n=this.step,i=[];if(e&&t&&n){var r=e;while(Ra(r,t)<=0)i.push({value:r,disabled:Ra(r,this.minTime||"-1:-1")<=0||Ra(r,this.maxTime||"100:100")>=0}),r=ja(r,n)}return i}}},za=Ba,Va=s(za,Aa,Na,!1,null,null,null);Va.options.__file="packages/date-picker/src/panel/time-select.vue";var $a=Va.exports,Wa={mixins:[ko],name:"ElTimeSelect",componentName:"ElTimeSelect",props:{type:{type:String,default:"time-select"}},beforeCreate:function(){this.panel=$a},install:function(e){e.component(Wa.name,Wa)}},Ha=Wa,Ua=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-range-picker__content"},[n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.startTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"minSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.minDate},on:{change:e.handleMinChange,"select-range":e.setMinSelectionRange}})],1)]),n("div",{staticClass:"el-time-range-picker__cell"},[n("div",{staticClass:"el-time-range-picker__header"},[e._v(e._s(e.t("el.datepicker.endTime")))]),n("div",{staticClass:"el-time-range-picker__body el-time-panel__content",class:{"has-seconds":e.showSeconds,"is-arrow":e.arrowControl}},[n("time-spinner",{ref:"maxSpinner",attrs:{"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,"arrow-control":e.arrowControl,date:e.maxDate},on:{change:e.handleMaxChange,"select-range":e.setMaxSelectionRange}})],1)])]),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:function(t){e.handleCancel()}}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn confirm",attrs:{type:"button",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},qa=[];Ua._withStripped=!0;var Ga=Object(ao["parseDate"])("00:00:00","HH:mm:ss"),Ka=Object(ao["parseDate"])("23:59:59","HH:mm:ss"),Ya=function(e){return Object(ao["modifyDate"])(Ga,e.getFullYear(),e.getMonth(),e.getDate())},Xa=function(e){return Object(ao["modifyDate"])(Ka,e.getFullYear(),e.getMonth(),e.getDate())},Za=function(e,t){return new Date(Math.min(e.getTime()+t,Xa(e).getTime()))},Qa={mixins:[v.a],components:{TimeSpinner:Po},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},offset:function(){return this.showSeconds?11:8},spinner:function(){return this.selectionRange[0]<this.offset?this.$refs.minSpinner:this.$refs.maxSpinner},btnDisabled:function(){return this.minDate.getTime()>this.maxDate.getTime()},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},data:function(){return{popperClass:"",minDate:new Date,maxDate:new Date,value:[],oldValue:[new Date,new Date],defaultValue:null,format:"HH:mm:ss",visible:!1,selectionRange:[0,2],arrowControl:!1}},watch:{value:function(e){Array.isArray(e)?(this.minDate=new Date(e[0]),this.maxDate=new Date(e[1])):Array.isArray(this.defaultValue)?(this.minDate=new Date(this.defaultValue[0]),this.maxDate=new Date(this.defaultValue[1])):this.defaultValue?(this.minDate=new Date(this.defaultValue),this.maxDate=Za(new Date(this.defaultValue),36e5)):(this.minDate=new Date,this.maxDate=Za(new Date,36e5))},visible:function(e){var t=this;e&&(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.minSpinner.emitSelectRange("hours")})))}},methods:{handleClear:function(){this.$emit("pick",null)},handleCancel:function(){this.$emit("pick",this.oldValue)},handleMinChange:function(e){this.minDate=Object(ao["clearMilliseconds"])(e),this.handleChange()},handleMaxChange:function(e){this.maxDate=Object(ao["clearMilliseconds"])(e),this.handleChange()},handleChange:function(){this.isValidValue([this.minDate,this.maxDate])&&(this.$refs.minSpinner.selectableRange=[[Ya(this.minDate),this.maxDate]],this.$refs.maxSpinner.selectableRange=[[this.minDate,Xa(this.maxDate)]],this.$emit("pick",[this.minDate,this.maxDate],!0))},setMinSelectionRange:function(e,t){this.$emit("select-range",e,t,"min"),this.selectionRange=[e,t]},setMaxSelectionRange:function(e,t){this.$emit("select-range",e,t,"max"),this.selectionRange=[e+this.offset,t+this.offset]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$refs.minSpinner.selectableRange,n=this.$refs.maxSpinner.selectableRange;this.minDate=Object(ao["limitTimeRange"])(this.minDate,t,this.format),this.maxDate=Object(ao["limitTimeRange"])(this.maxDate,n,this.format),this.$emit("pick",[this.minDate,this.maxDate],e)},adjustSpinners:function(){this.$refs.minSpinner.adjustSpinners(),this.$refs.maxSpinner.adjustSpinners()},changeSelectionRange:function(e){var t=this.showSeconds?[0,3,6,11,14,17]:[0,3,8,11],n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),i=t.indexOf(this.selectionRange[0]),r=(i+e+t.length)%t.length,o=t.length/2;r<o?this.$refs.minSpinner.emitSelectRange(n[r]):this.$refs.maxSpinner.emitSelectRange(n[r-o])},isValidValue:function(e){return Array.isArray(e)&&Object(ao["timeWithinRange"])(this.minDate,this.$refs.minSpinner.selectableRange)&&Object(ao["timeWithinRange"])(this.maxDate,this.$refs.maxSpinner.selectableRange)},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var i=n[t];return this.changeSelectionRange(i),void e.preventDefault()}if(38===t||40===t){var r=n[t];return this.spinner.scrollDown(r),void e.preventDefault()}}}},Ja=Qa,es=s(Ja,Ua,qa,!1,null,null,null);es.options.__file="packages/date-picker/src/panel/time-range.vue";var ts=es.exports,ns={mixins:[ko],name:"ElTimePicker",props:{isRange:Boolean,arrowControl:Boolean},data:function(){return{type:""}},watch:{isRange:function(e){this.picker?(this.unmountPicker(),this.type=e?"timerange":"time",this.panel=e?ts:Bo,this.mountPicker()):(this.type=e?"timerange":"time",this.panel=e?ts:Bo)}},created:function(){this.type=this.isRange?"timerange":"time",this.panel=this.isRange?ts:Bo},install:function(e){e.component(ns.name,ns)}},is=ns,rs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},os=[];rs._withStripped=!0;var as={name:"ElPopover",mixins:[W.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(b["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(je["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(je["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(je["on"])(n,"focusin",this.handleFocus),Object(je["on"])(t,"focusout",this.handleBlur),Object(je["on"])(n,"focusout",this.handleBlur)),Object(je["on"])(t,"keydown",this.handleKeydown),Object(je["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(je["on"])(t,"click",this.doToggle),Object(je["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(je["on"])(t,"mouseenter",this.handleMouseEnter),Object(je["on"])(n,"mouseenter",this.handleMouseEnter),Object(je["on"])(t,"mouseleave",this.handleMouseLeave),Object(je["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(je["on"])(t,"focusin",this.doShow),Object(je["on"])(t,"focusout",this.doClose)):(Object(je["on"])(t,"mousedown",this.doShow),Object(je["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(je["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(je["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(je["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(je["off"])(e,"click",this.doToggle),Object(je["off"])(e,"mouseup",this.doClose),Object(je["off"])(e,"mousedown",this.doShow),Object(je["off"])(e,"focusin",this.doShow),Object(je["off"])(e,"focusout",this.doClose),Object(je["off"])(e,"mousedown",this.doShow),Object(je["off"])(e,"mouseup",this.doClose),Object(je["off"])(e,"mouseleave",this.handleMouseLeave),Object(je["off"])(e,"mouseenter",this.handleMouseEnter),Object(je["off"])(document,"click",this.handleDocumentClick)}},ss=as,ls=s(ss,rs,os,!1,null,null,null);ls.options.__file="packages/popover/src/main.vue";var cs=ls.exports,us=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},ds={bind:function(e,t,n){us(e,t,n)},inserted:function(e,t,n){us(e,t,n)}};$i.a.directive("popover",ds),cs.install=function(e){e.directive("popover",ds),e.component(cs.name,cs)},cs.directive=ds;var hs=cs,fs={name:"ElTooltip",mixins:[W.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(b["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new $i.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=F()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(je["on"])(this.referenceElm,"mouseenter",this.show),Object(je["on"])(this.referenceElm,"mouseleave",this.hide),Object(je["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(je["on"])(this.referenceElm,"blur",this.handleBlur),Object(je["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(je["addClass"])(this.referenceElm,"focusing"):Object(je["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;n<e.length;n++)if(e[n]&&e[n].tag){t=e[n];break}return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(je["off"])(e,"mouseenter",this.show),Object(je["off"])(e,"mouseleave",this.hide),Object(je["off"])(e,"focus",this.handleFocus),Object(je["off"])(e,"blur",this.handleBlur),Object(je["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(fs.name,fs)}},ps=fs,gs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n ")])],1)])])])},ms=[];gs._withStripped=!0;var vs=n(12),bs=n.n(vs),ys=n(40),_s=n.n(ys),ws=void 0,xs={success:"success",info:"info",warning:"warning",error:"error"},Cs={mixins:[S.a,v.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:g.a,ElButton:ae.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&xs[e]?"el-icon-"+xs[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),ws.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(vs["t"])("el.messagebox.error"),Object(je["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(vs["t"])("el.messagebox.error"),Object(je["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(je["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(je["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,ws=new _s.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(je["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){ws.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},Ss=Cs,ks=s(Ss,gs,ms,!1,null,null,null);ks.options.__file="packages/message-box/src/main.vue";var Os=ks.exports,Ms=n(22),Ds="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},Ts=$i.a.extend(Os),Ls=void 0,Is=void 0,As=[],Ns=function(e){if(Ls){var t=Ls.callback;"function"===typeof t&&(Is.showInput?t(Is.inputValue,e):t(e)),Ls.resolve&&("confirm"===e?Is.showInput?Ls.resolve({value:Is.inputValue,action:e}):Ls.resolve(e):!Ls.reject||"cancel"!==e&&"close"!==e||Ls.reject(e))}},Ps=function(){Is=new Ts({el:document.createElement("div")}),Is.callback=Ns},Rs=function e(){if(Is||Ps(),Is.action="",(!Is.visible||Is.closeTimer)&&As.length>0){Ls=As.shift();var t=Ls.options;for(var n in t)t.hasOwnProperty(n)&&(Is[n]=t[n]);void 0===t.callback&&(Is.callback=Ns);var i=Is.callback;Is.callback=function(t,n){i(t,n),e()},Object(Ms["isVNode"])(Is.message)?(Is.$slots.default=[Is.message],Is.message=null):delete Is.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===Is[e]&&(Is[e]=!0)})),document.body.appendChild(Is.$el),$i.a.nextTick((function(){Is.visible=!0}))}},Fs=function e(t,n){if(!$i.a.prototype.$isServer){if("string"===typeof t||Object(Ms["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(i,r){As.push({options:kt()({},Es,e.defaults,t),callback:n,resolve:i,reject:r}),Rs()}));As.push({options:kt()({},Es,e.defaults,t),callback:n}),Rs()}};Fs.setDefaults=function(e){Fs.defaults=e},Fs.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Fs(kt()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},Fs.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Fs(kt()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},Fs.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":Ds(t))?(n=t,t=""):void 0===t&&(t=""),Fs(kt()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},Fs.close=function(){Is.doClose(),Is.visible=!1,As=[],Ls=null};var js=Fs,Bs=js,zs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-breadcrumb",attrs:{"aria-label":"Breadcrumb",role:"navigation"}},[e._t("default")],2)},Vs=[];zs._withStripped=!0;var $s={name:"ElBreadcrumb",props:{separator:{type:String,default:"/"},separatorClass:{type:String,default:""}},provide:function(){return{elBreadcrumb:this}},mounted:function(){var e=this.$el.querySelectorAll(".el-breadcrumb__item");e.length&&e[e.length-1].setAttribute("aria-current","page")}},Ws=$s,Hs=s(Ws,zs,Vs,!1,null,null,null);Hs.options.__file="packages/breadcrumb/src/breadcrumb.vue";var Us=Hs.exports;Us.install=function(e){e.component(Us.name,Us)};var qs=Us,Gs=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-breadcrumb__item"},[n("span",{ref:"link",class:["el-breadcrumb__inner",e.to?"is-link":""],attrs:{role:"link"}},[e._t("default")],2),e.separatorClass?n("i",{staticClass:"el-breadcrumb__separator",class:e.separatorClass}):n("span",{staticClass:"el-breadcrumb__separator",attrs:{role:"presentation"}},[e._v(e._s(e.separator))])])},Ks=[];Gs._withStripped=!0;var Ys={name:"ElBreadcrumbItem",props:{to:{},replace:Boolean},data:function(){return{separator:"",separatorClass:""}},inject:["elBreadcrumb"],mounted:function(){var e=this;this.separator=this.elBreadcrumb.separator,this.separatorClass=this.elBreadcrumb.separatorClass;var t=this.$refs.link;t.setAttribute("role","link"),t.addEventListener("click",(function(t){var n=e.to,i=e.$router;n&&i&&(e.replace?i.replace(n):i.push(n))}))}},Xs=Ys,Zs=s(Xs,Gs,Ks,!1,null,null,null);Zs.options.__file="packages/breadcrumb/src/breadcrumb-item.vue";var Qs=Zs.exports;Qs.install=function(e){e.component(Qs.name,Qs)};var Js=Qs,el=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{staticClass:"el-form",class:[e.labelPosition?"el-form--label-"+e.labelPosition:"",{"el-form--inline":e.inline}]},[e._t("default")],2)},tl=[];el._withStripped=!0;var nl={name:"ElForm",componentName:"ElForm",provide:function(){return{elForm:this}},props:{model:Object,rules:Object,labelPosition:String,labelWidth:String,labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:String,disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1}},watch:{rules:function(){this.fields.forEach((function(e){e.removeValidateEvents(),e.addValidateEvents()})),this.validateOnRuleChange&&this.validate((function(){}))}},computed:{autoLabelWidth:function(){if(!this.potentialLabelWidthArr.length)return 0;var e=Math.max.apply(Math,this.potentialLabelWidthArr);return e?e+"px":""}},data:function(){return{fields:[],potentialLabelWidthArr:[]}},created:function(){var e=this;this.$on("el.form.addField",(function(t){t&&e.fields.push(t)})),this.$on("el.form.removeField",(function(t){t.prop&&e.fields.splice(e.fields.indexOf(t),1)}))},methods:{resetFields:function(){this.model?this.fields.forEach((function(e){e.resetField()})):console.warn("[Element Warn][Form]model is required for resetFields to work.")},clearValidate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length?"string"===typeof e?this.fields.filter((function(t){return e===t.prop})):this.fields.filter((function(t){return e.indexOf(t.prop)>-1})):this.fields;t.forEach((function(e){e.clearValidate()}))},validate:function(e){var t=this;if(this.model){var n=void 0;"function"!==typeof e&&window.Promise&&(n=new window.Promise((function(t,n){e=function(e,i){e?t(e):n(i)}})));var i=!0,r=0;0===this.fields.length&&e&&e(!0);var o={};return this.fields.forEach((function(n){n.validate("",(function(n,a){n&&(i=!1),o=kt()({},o,a),"function"===typeof e&&++r===t.fields.length&&e(i,o)}))})),n||void 0}console.warn("[Element Warn][Form]model is required for validate to work!")},validateField:function(e,t){e=[].concat(e);var n=this.fields.filter((function(t){return-1!==e.indexOf(t.prop)}));n.length?n.forEach((function(e){e.validate("",t)})):console.warn("[Element Warn]please pass correct props!")},getLabelWidthIndex:function(e){var t=this.potentialLabelWidthArr.indexOf(e);if(-1===t)throw new Error("[ElementForm]unpected width ",e);return t},registerLabelWidth:function(e,t){if(e&&t){var n=this.getLabelWidthIndex(t);this.potentialLabelWidthArr.splice(n,1,e)}else e&&this.potentialLabelWidthArr.push(e)},deregisterLabelWidth:function(e){var t=this.getLabelWidthIndex(e);this.potentialLabelWidthArr.splice(t,1)}}},il=nl,rl=s(il,el,tl,!1,null,null,null);rl.options.__file="packages/form/src/form.vue";var ol=rl.exports;ol.install=function(e){e.component(ol.name,ol)};var al=ol,sl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-form-item",class:[{"el-form-item--feedback":e.elForm&&e.elForm.statusIcon,"is-error":"error"===e.validateState,"is-validating":"validating"===e.validateState,"is-success":"success"===e.validateState,"is-required":e.isRequired||e.required,"is-no-asterisk":e.elForm&&e.elForm.hideRequiredAsterisk},e.sizeClass?"el-form-item--"+e.sizeClass:""]},[n("label-wrap",{attrs:{"is-auto-width":e.labelStyle&&"auto"===e.labelStyle.width,"update-all":"auto"===e.form.labelWidth}},[e.label||e.$slots.label?n("label",{staticClass:"el-form-item__label",style:e.labelStyle,attrs:{for:e.labelFor}},[e._t("label",[e._v(e._s(e.label+e.form.labelSuffix))])],2):e._e()]),n("div",{staticClass:"el-form-item__content",style:e.contentStyle},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-top"}},["error"===e.validateState&&e.showMessage&&e.form.showMessage?e._t("error",[n("div",{staticClass:"el-form-item__error",class:{"el-form-item__error--inline":"boolean"===typeof e.inlineMessage?e.inlineMessage:e.elForm&&e.elForm.inlineMessage||!1}},[e._v("\n "+e._s(e.validateMessage)+"\n ")])],{error:e.validateMessage}):e._e()],2)],2)],1)},ll=[];sl._withStripped=!0;var cl,ul,dl=n(41),hl=n.n(dl),fl={props:{isAutoWidth:Boolean,updateAll:Boolean},inject:["elForm","elFormItem"],render:function(){var e=arguments[0],t=this.$slots.default;if(!t)return null;if(this.isAutoWidth){var n=this.elForm.autoLabelWidth,i={};if(n&&"auto"!==n){var r=parseInt(n,10)-this.computedWidth;r&&(i.marginLeft=r+"px")}return e("div",{class:"el-form-item__label-wrap",style:i},[t])}return t[0]},methods:{getLabelWidth:function(){if(this.$el&&this.$el.firstElementChild){var e=window.getComputedStyle(this.$el.firstElementChild).width;return Math.ceil(parseFloat(e))}return 0},updateLabelWidth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";this.$slots.default&&this.isAutoWidth&&this.$el.firstElementChild&&("update"===e?this.computedWidth=this.getLabelWidth():"remove"===e&&this.elForm.deregisterLabelWidth(this.computedWidth))}},watch:{computedWidth:function(e,t){this.updateAll&&(this.elForm.registerLabelWidth(e,t),this.elFormItem.updateComputedLabelWidth(e))}},data:function(){return{computedWidth:0}},mounted:function(){this.updateLabelWidth("update")},updated:function(){this.updateLabelWidth("update")},beforeDestroy:function(){this.updateLabelWidth("remove")}},pl=fl,gl=s(pl,cl,ul,!1,null,null,null);gl.options.__file="packages/form/src/label-wrap.vue";var ml=gl.exports,vl={name:"ElFormItem",componentName:"ElFormItem",mixins:[D.a],provide:function(){return{elFormItem:this}},inject:["elForm"],props:{label:String,labelWidth:String,prop:String,required:{type:Boolean,default:void 0},rules:[Object,Array],error:String,validateStatus:String,for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:String},components:{LabelWrap:ml},watch:{error:{immediate:!0,handler:function(e){this.validateMessage=e,this.validateState=e?"error":""}},validateStatus:function(e){this.validateState=e},rules:function(e){e&&0!==e.length||void 0!==this.required||this.clearValidate()}},computed:{labelFor:function(){return this.for||this.prop},labelStyle:function(){var e={};if("top"===this.form.labelPosition)return e;var t=this.labelWidth||this.form.labelWidth;return t&&(e.width=t),e},contentStyle:function(){var e={},t=this.label;if("top"===this.form.labelPosition||this.form.inline)return e;if(!t&&!this.labelWidth&&this.isNested)return e;var n=this.labelWidth||this.form.labelWidth;return"auto"===n?"auto"===this.labelWidth?e.marginLeft=this.computedLabelWidth:"auto"===this.form.labelWidth&&(e.marginLeft=this.elForm.autoLabelWidth):e.marginLeft=n,e},form:function(){var e=this.$parent,t=e.$options.componentName;while("ElForm"!==t)"ElFormItem"===t&&(this.isNested=!0),e=e.$parent,t=e.$options.componentName;return e},fieldValue:function(){var e=this.form.model;if(e&&this.prop){var t=this.prop;return-1!==t.indexOf(":")&&(t=t.replace(/:/,".")),Object(b["getPropByPath"])(e,t,!0).v}},isRequired:function(){var e=this.getRules(),t=!1;return e&&e.length&&e.every((function(e){return!e.required||(t=!0,!1)})),t},_formSize:function(){return this.elForm.size},elFormItemSize:function(){return this.size||this._formSize},sizeClass:function(){return this.elFormItemSize||(this.$ELEMENT||{}).size}},data:function(){return{validateState:"",validateMessage:"",validateDisabled:!1,validator:{},isNested:!1,computedLabelWidth:""}},methods:{validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b["noop"];this.validateDisabled=!1;var i=this.getFilteredRule(e);if((!i||0===i.length)&&void 0===this.required)return n(),!0;this.validateState="validating";var r={};i&&i.length>0&&i.forEach((function(e){delete e.trigger})),r[this.prop]=i;var o=new hl.a(r),a={};a[this.prop]=this.fieldValue,o.validate(a,{firstFields:!0},(function(e,i){t.validateState=e?"error":"success",t.validateMessage=e?e[0].message:"",n(t.validateMessage,i),t.elForm&&t.elForm.$emit("validate",t.prop,!e,t.validateMessage||null)}))},clearValidate:function(){this.validateState="",this.validateMessage="",this.validateDisabled=!1},resetField:function(){var e=this;this.validateState="",this.validateMessage="";var t=this.form.model,n=this.fieldValue,i=this.prop;-1!==i.indexOf(":")&&(i=i.replace(/:/,"."));var r=Object(b["getPropByPath"])(t,i,!0);this.validateDisabled=!0,Array.isArray(n)?r.o[r.k]=[].concat(this.initialValue):r.o[r.k]=this.initialValue,this.$nextTick((function(){e.validateDisabled=!1})),this.broadcast("ElTimeSelect","fieldReset",this.initialValue)},getRules:function(){var e=this.form.rules,t=this.rules,n=void 0!==this.required?{required:!!this.required}:[],i=Object(b["getPropByPath"])(e,this.prop||"");return e=e?i.o[this.prop||""]||i.v:[],[].concat(t||e||[]).concat(n)},getFilteredRule:function(e){var t=this.getRules();return t.filter((function(t){return!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.indexOf(e)>-1:t.trigger===e)})).map((function(e){return kt()({},e)}))},onFieldBlur:function(){this.validate("blur")},onFieldChange:function(){this.validateDisabled?this.validateDisabled=!1:this.validate("change")},updateComputedLabelWidth:function(e){this.computedLabelWidth=e?e+"px":""},addValidateEvents:function(){var e=this.getRules();(e.length||void 0!==this.required)&&(this.$on("el.form.blur",this.onFieldBlur),this.$on("el.form.change",this.onFieldChange))},removeValidateEvents:function(){this.$off()}},mounted:function(){if(this.prop){this.dispatch("ElForm","el.form.addField",[this]);var e=this.fieldValue;Array.isArray(e)&&(e=[].concat(e)),Object.defineProperty(this,"initialValue",{value:e}),this.addValidateEvents()}},beforeDestroy:function(){this.dispatch("ElForm","el.form.removeField",[this])}},bl=vl,yl=s(bl,sl,ll,!1,null,null,null);yl.options.__file="packages/form/src/form-item.vue";var _l=yl.exports;_l.install=function(e){e.component(_l.name,_l)};var wl=_l,xl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tabs__active-bar",class:"is-"+e.rootTabs.tabPosition,style:e.barStyle})},Cl=[];xl._withStripped=!0;var Sl={name:"TabBar",props:{tabs:Array},inject:["rootTabs"],computed:{barStyle:{get:function(){var e=this,t={},n=0,i=0,r=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height",o="width"===r?"x":"y",a=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))};this.tabs.every((function(t,o){var s=Object(b["arrayFind"])(e.$parent.$refs.tabs||[],(function(e){return e.id.replace("tab-","")===t.paneName}));if(!s)return!1;if(t.active){i=s["client"+a(r)];var l=window.getComputedStyle(s);return"width"===r&&e.tabs.length>1&&(i-=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),"width"===r&&(n+=parseFloat(l.paddingLeft)),!1}return n+=s["client"+a(r)],!0}));var s="translate"+a(o)+"("+n+"px)";return t[r]=i+"px",t.transform=s,t.msTransform=s,t.webkitTransform=s,t}}}},kl=Sl,Ol=s(kl,xl,Cl,!1,null,null,null);Ol.options.__file="packages/tabs/src/tab-bar.vue";var Ml=Ol.exports;function Dl(){}var El,Tl,Ll=function(e){return e.toLowerCase().replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))},Il={name:"TabNav",components:{TabBar:Ml},inject:["rootTabs"],props:{panes:Array,currentName:String,editable:Boolean,onTabClick:{type:Function,default:Dl},onTabRemove:{type:Function,default:Dl},type:String,stretch:Boolean},data:function(){return{scrollable:!1,navOffset:0,isFocus:!1,focusable:!0}},computed:{navStyle:function(){var e=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"X":"Y";return{transform:"translate"+e+"(-"+this.navOffset+"px)"}},sizeName:function(){return-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"width":"height"}},methods:{scrollPrev:function(){var e=this.$refs.navScroll["offset"+Ll(this.sizeName)],t=this.navOffset;if(t){var n=t>e?t-e:0;this.navOffset=n}},scrollNext:function(){var e=this.$refs.nav["offset"+Ll(this.sizeName)],t=this.$refs.navScroll["offset"+Ll(this.sizeName)],n=this.navOffset;if(!(e-n<=t)){var i=e-n>2*t?n+t:e-t;this.navOffset=i}},scrollToActiveTab:function(){if(this.scrollable){var e=this.$refs.nav,t=this.$el.querySelector(".is-active");if(t){var n=this.$refs.navScroll,i=-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition),r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),a=i?e.offsetWidth-o.width:e.offsetHeight-o.height,s=this.navOffset,l=s;i?(r.left<o.left&&(l=s-(o.left-r.left)),r.right>o.right&&(l=s+r.right-o.right)):(r.top<o.top&&(l=s-(o.top-r.top)),r.bottom>o.bottom&&(l=s+(r.bottom-o.bottom))),l=Math.max(l,0),this.navOffset=Math.min(l,a)}}},update:function(){if(this.$refs.nav){var e=this.sizeName,t=this.$refs.nav["offset"+Ll(e)],n=this.$refs.navScroll["offset"+Ll(e)],i=this.navOffset;if(n<t){var r=this.navOffset;this.scrollable=this.scrollable||{},this.scrollable.prev=r,this.scrollable.next=r+n<t,t-r<n&&(this.navOffset=t-n)}else this.scrollable=!1,i>0&&(this.navOffset=0)}},changeTab:function(e){var t=e.keyCode,n=void 0,i=void 0,r=void 0;-1!==[37,38,39,40].indexOf(t)&&(r=e.currentTarget.querySelectorAll("[role=tab]"),i=Array.prototype.indexOf.call(r,e.target),n=37===t||38===t?0===i?r.length-1:i-1:i<r.length-1?i+1:0,r[n].focus(),r[n].click(),this.setFocus())},setFocus:function(){this.focusable&&(this.isFocus=!0)},removeFocus:function(){this.isFocus=!1},visibilityChangeHandler:function(){var e=this,t=document.visibilityState;"hidden"===t?this.focusable=!1:"visible"===t&&setTimeout((function(){e.focusable=!0}),50)},windowBlurHandler:function(){this.focusable=!1},windowFocusHandler:function(){var e=this;setTimeout((function(){e.focusable=!0}),50)}},updated:function(){this.update()},render:function(e){var t=this,n=this.type,i=this.panes,r=this.editable,o=this.stretch,a=this.onTabClick,s=this.onTabRemove,l=this.navStyle,c=this.scrollable,u=this.scrollNext,d=this.scrollPrev,h=this.changeTab,f=this.setFocus,p=this.removeFocus,g=c?[e("span",{class:["el-tabs__nav-prev",c.prev?"":"is-disabled"],on:{click:d}},[e("i",{class:"el-icon-arrow-left"})]),e("span",{class:["el-tabs__nav-next",c.next?"":"is-disabled"],on:{click:u}},[e("i",{class:"el-icon-arrow-right"})])]:null,m=this._l(i,(function(n,i){var o,l=n.name||n.index||i,c=n.isClosable||r;n.index=""+i;var u=c?e("span",{class:"el-icon-close",on:{click:function(e){s(n,e)}}}):null,d=n.$slots.label||n.label,h=n.active?0:-1;return e("div",{class:(o={"el-tabs__item":!0},o["is-"+t.rootTabs.tabPosition]=!0,o["is-active"]=n.active,o["is-disabled"]=n.disabled,o["is-closable"]=c,o["is-focus"]=t.isFocus,o),attrs:{id:"tab-"+l,"aria-controls":"pane-"+l,role:"tab","aria-selected":n.active,tabindex:h},key:"tab-"+l,ref:"tabs",refInFor:!0,on:{focus:function(){f()},blur:function(){p()},click:function(e){p(),a(n,l,e)},keydown:function(e){!c||46!==e.keyCode&&8!==e.keyCode||s(n,e)}}},[d,u])}));return e("div",{class:["el-tabs__nav-wrap",c?"is-scrollable":"","is-"+this.rootTabs.tabPosition]},[g,e("div",{class:["el-tabs__nav-scroll"],ref:"navScroll"},[e("div",{class:["el-tabs__nav","is-"+this.rootTabs.tabPosition,o&&-1!==["top","bottom"].indexOf(this.rootTabs.tabPosition)?"is-stretch":""],ref:"nav",style:l,attrs:{role:"tablist"},on:{keydown:h}},[n?null:e("tab-bar",{attrs:{tabs:i}}),m])])])},mounted:function(){var e=this;Object(ei["addResizeListener"])(this.$el,this.update),document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.addEventListener("blur",this.windowBlurHandler),window.addEventListener("focus",this.windowFocusHandler),setTimeout((function(){e.scrollToActiveTab()}),0)},beforeDestroy:function(){this.$el&&this.update&&Object(ei["removeResizeListener"])(this.$el,this.update),document.removeEventListener("visibilitychange",this.visibilityChangeHandler),window.removeEventListener("blur",this.windowBlurHandler),window.removeEventListener("focus",this.windowFocusHandler)}},Al=Il,Nl=s(Al,El,Tl,!1,null,null,null);Nl.options.__file="packages/tabs/src/tab-nav.vue";var Pl,Rl,Fl=Nl.exports,jl={name:"ElTabs",components:{TabNav:Fl},props:{type:String,activeName:String,closable:Boolean,addable:Boolean,value:{},editable:Boolean,tabPosition:{type:String,default:"top"},beforeLeave:Function,stretch:Boolean},provide:function(){return{rootTabs:this}},data:function(){return{currentName:this.value||this.activeName,panes:[]}},watch:{activeName:function(e){this.setCurrentName(e)},value:function(e){this.setCurrentName(e)},currentName:function(e){var t=this;this.$refs.nav&&this.$nextTick((function(){t.$refs.nav.$nextTick((function(e){t.$refs.nav.scrollToActiveTab()}))}))}},methods:{calcPaneInstances:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.$slots.default){var n=this.$slots.default.filter((function(e){return e.tag&&e.componentOptions&&"ElTabPane"===e.componentOptions.Ctor.options.name})),i=n.map((function(e){var t=e.componentInstance;return t})),r=!(i.length===this.panes.length&&i.every((function(t,n){return t===e.panes[n]})));(t||r)&&(this.panes=i)}else 0!==this.panes.length&&(this.panes=[])},handleTabClick:function(e,t,n){e.disabled||(this.setCurrentName(t),this.$emit("tab-click",e,n))},handleTabRemove:function(e,t){e.disabled||(t.stopPropagation(),this.$emit("edit",e.name,"remove"),this.$emit("tab-remove",e.name))},handleTabAdd:function(){this.$emit("edit",null,"add"),this.$emit("tab-add")},setCurrentName:function(e){var t=this,n=function(){t.currentName=e,t.$emit("input",e)};if(this.currentName!==e&&this.beforeLeave){var i=this.beforeLeave(e,this.currentName);i&&i.then?i.then((function(){n(),t.$refs.nav&&t.$refs.nav.removeFocus()}),(function(){})):!1!==i&&n()}else n()}},render:function(e){var t,n=this.type,i=this.handleTabClick,r=this.handleTabRemove,o=this.handleTabAdd,a=this.currentName,s=this.panes,l=this.editable,c=this.addable,u=this.tabPosition,d=this.stretch,h=l||c?e("span",{class:"el-tabs__new-tab",on:{click:o,keydown:function(e){13===e.keyCode&&o()}},attrs:{tabindex:"0"}},[e("i",{class:"el-icon-plus"})]):null,f={props:{currentName:a,onTabClick:i,onTabRemove:r,editable:l,type:n,panes:s,stretch:d},ref:"nav"},p=e("div",{class:["el-tabs__header","is-"+u]},[h,e("tab-nav",f)]),g=e("div",{class:"el-tabs__content"},[this.$slots.default]);return e("div",{class:(t={"el-tabs":!0,"el-tabs--card":"card"===n},t["el-tabs--"+u]=!0,t["el-tabs--border-card"]="border-card"===n,t)},["bottom"!==u?[p,g]:[g,p]])},created:function(){this.currentName||this.setCurrentName("0"),this.$on("tab-nav-update",this.calcPaneInstances.bind(null,!0))},mounted:function(){this.calcPaneInstances()},updated:function(){this.calcPaneInstances()}},Bl=jl,zl=s(Bl,Pl,Rl,!1,null,null,null);zl.options.__file="packages/tabs/src/tabs.vue";var Vl=zl.exports;Vl.install=function(e){e.component(Vl.name,Vl)};var $l=Vl,Wl=function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.lazy||e.loaded||e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"el-tab-pane",attrs:{role:"tabpanel","aria-hidden":!e.active,id:"pane-"+e.paneName,"aria-labelledby":"tab-"+e.paneName}},[e._t("default")],2):e._e()},Hl=[];Wl._withStripped=!0;var Ul={name:"ElTabPane",componentName:"ElTabPane",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean},data:function(){return{index:null,loaded:!1}},computed:{isClosable:function(){return this.closable||this.$parent.closable},active:function(){var e=this.$parent.currentName===(this.name||this.index);return e&&(this.loaded=!0),e},paneName:function(){return this.name||this.index}},updated:function(){this.$parent.$emit("tab-nav-update")}},ql=Ul,Gl=s(ql,Wl,Hl,!1,null,null,null);Gl.options.__file="packages/tabs/src/tab-pane.vue";var Kl=Gl.exports;Kl.install=function(e){e.component(Kl.name,Kl)};var Yl,Xl,Zl=Kl,Ql={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},Jl=Ql,ec=s(Jl,Yl,Xl,!1,null,null,null);ec.options.__file="packages/tag/src/tag.vue";var tc=ec.exports;tc.install=function(e){e.component(tc.name,tc)};var nc=tc,ic=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-tree",class:{"el-tree--highlight-current":e.highlightCurrent,"is-dragging":!!e.dragState.draggingNode,"is-drop-not-allow":!e.dragState.allowDrop,"is-drop-inner":"inner"===e.dragState.dropType},attrs:{role:"tree"}},[e._l(e.root.childNodes,(function(t){return n("el-tree-node",{key:e.getNodeKey(t),attrs:{node:t,props:e.props,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent},on:{"node-expand":e.handleNodeExpand}})})),e.isEmpty?n("div",{staticClass:"el-tree__empty-block"},[n("span",{staticClass:"el-tree__empty-text"},[e._v(e._s(e.emptyText))])]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.dragState.showDropIndicator,expression:"dragState.showDropIndicator"}],ref:"dropIndicator",staticClass:"el-tree__drop-indicator"})],2)},rc=[];ic._withStripped=!0;var oc="$treeNodeId",ac=function(e,t){t&&!t[oc]&&Object.defineProperty(t,oc,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},sc=function(e,t){return e?t[e]:t[oc]},lc=function(e,t){var n=e;while(n&&"BODY"!==n.tagName){if(n.__vue__&&n.__vue__.$options.name===t)return n.__vue__;n=n.parentNode}return null},cc=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function uc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var dc=function(e){for(var t=!0,n=!0,i=!0,r=0,o=e.length;r<o;r++){var a=e[r];(!0!==a.checked||a.indeterminate)&&(t=!1,a.disabled||(i=!1)),(!1!==a.checked||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:i,half:!t&&!n}},hc=function e(t){if(0!==t.childNodes.length&&!t.loading){var n=dc(t.childNodes),i=n.all,r=n.none,o=n.half;i?(t.checked=!0,t.indeterminate=!1):o?(t.checked=!1,t.indeterminate=!0):r&&(t.checked=!1,t.indeterminate=!1);var a=t.parent;a&&0!==a.level&&(t.store.checkStrictly||e(a))}},fc=function(e,t){var n=e.store.props,i=e.data||{},r=n[t];if("function"===typeof r)return r(i,e);if("string"===typeof r)return i[r];if("undefined"===typeof r){var o=i[t];return void 0===o?"":o}},pc=0,gc=function(){function e(t){for(var n in uc(this,e),this.id=pc++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1);var i=this.store;if(!i)throw new Error("[Node]store is required!");i.registerNode(this);var r=i.props;if(r&&"undefined"!==typeof r.isLeaf){var o=fc(this,"isLeaf");"boolean"===typeof o&&(this.isLeafByUser=o)}if(!0!==i.lazy&&this.data?(this.setData(this.data),i.defaultExpandAll&&(this.expanded=!0)):this.level>0&&i.lazy&&i.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ac(this,this.data),this.data){var a=i.defaultExpandedKeys,s=i.key;s&&a&&-1!==a.indexOf(this.key)&&this.expand(null,i.autoExpandParent),s&&void 0!==i.currentNodeKey&&this.key===i.currentNodeKey&&(i.currentNode=this,i.currentNode.isCurrent=!0),i.lazy&&i._initDefaultCheckedNode(this),this.updateLeafState()}}return e.prototype.setData=function(e){Array.isArray(e)||ac(this,e),this.data=e,this.childNodes=[];var t=void 0;t=0===this.level&&this.data instanceof Array?this.data:fc(this,"children")||[];for(var n=0,i=t.length;n<i;n++)this.insertChild({data:t[n]})},e.prototype.contains=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(i){for(var r=i.childNodes||[],o=!1,a=0,s=r.length;a<s;a++){var l=r[a];if(l===e||t&&n(l)){o=!0;break}}return o};return n(this)},e.prototype.remove=function(){var e=this.parent;e&&e.removeChild(this)},e.prototype.insertChild=function(t,n,i){if(!t)throw new Error("insertChild error: child is required.");if(!(t instanceof e)){if(!i){var r=this.getChildren(!0)||[];-1===r.indexOf(t.data)&&("undefined"===typeof n||n<0?r.push(t.data):r.splice(n,0,t.data))}kt()(t,{parent:this,store:this.store}),t=new e(t)}t.level=this.level+1,"undefined"===typeof n||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()},e.prototype.insertBefore=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t)),this.insertChild(e,n)},e.prototype.insertAfter=function(e,t){var n=void 0;t&&(n=this.childNodes.indexOf(t),-1!==n&&(n+=1)),this.insertChild(e,n)},e.prototype.removeChild=function(e){var t=this.getChildren()||[],n=t.indexOf(e.data);n>-1&&t.splice(n,1);var i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()},e.prototype.removeChildByData=function(e){for(var t=null,n=0;n<this.childNodes.length;n++)if(this.childNodes[n].data===e){t=this.childNodes[n];break}t&&this.removeChild(t)},e.prototype.expand=function(e,t){var n=this,i=function(){if(t){var i=n.parent;while(i.level>0)i.expanded=!0,i=i.parent}n.expanded=!0,e&&e()};this.shouldLoadData()?this.loadData((function(e){e instanceof Array&&(n.checked?n.setChecked(!0,!0):n.store.checkStrictly||hc(n),i())})):i()},e.prototype.doCreateChildren=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){t.insertChild(kt()({data:e},n),void 0,!0)}))},e.prototype.collapse=function(){this.expanded=!1},e.prototype.shouldLoadData=function(){return!0===this.store.lazy&&this.store.load&&!this.loaded},e.prototype.updateLeafState=function(){if(!0!==this.store.lazy||!0===this.loaded||"undefined"===typeof this.isLeafByUser){var e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}else this.isLeaf=this.isLeafByUser},e.prototype.setChecked=function(e,t,n,i){var r=this;if(this.indeterminate="half"===e,this.checked=!0===e,!this.store.checkStrictly){if(!this.shouldLoadData()||this.store.checkDescendants){var o=dc(this.childNodes),a=o.all,s=o.allWithoutDisable;this.isLeaf||a||!s||(this.checked=!1,e=!1);var l=function(){if(t){for(var n=r.childNodes,o=0,a=n.length;o<a;o++){var s=n[o];i=i||!1!==e;var l=s.disabled?s.checked:i;s.setChecked(l,t,!0,i)}var c=dc(n),u=c.half,d=c.all;d||(r.checked=d,r.indeterminate=u)}};if(this.shouldLoadData())return void this.loadData((function(){l(),hc(r)}),{checked:!1!==e});l()}var c=this.parent;c&&0!==c.level&&(n||hc(c))}},e.prototype.getChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===this.level)return this.data;var t=this.data;if(!t)return null;var n=this.store.props,i="children";return n&&(i=n.children||"children"),void 0===t[i]&&(t[i]=null),e&&!t[i]&&(t[i]=[]),t[i]},e.prototype.updateChildren=function(){var e=this,t=this.getChildren()||[],n=this.childNodes.map((function(e){return e.data})),i={},r=[];t.forEach((function(e,t){var o=e[oc],a=!!o&&Object(b["arrayFindIndex"])(n,(function(e){return e[oc]===o}))>=0;a?i[o]={index:t,data:e}:r.push({index:t,data:e})})),this.store.lazy||n.forEach((function(t){i[t[oc]]||e.removeChildByData(t)})),r.forEach((function(t){var n=t.index,i=t.data;e.insertChild({data:i},n)})),this.updateLeafState()},e.prototype.loadData=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!0!==this.store.lazy||!this.store.load||this.loaded||this.loading&&!Object.keys(n).length)e&&e.call(this);else{this.loading=!0;var i=function(i){t.childNodes=[],t.doCreateChildren(i,n),t.loaded=!0,t.loading=!1,t.updateLeafState(),e&&e.call(t,i)};this.store.load(this,i)}},cc(e,[{key:"label",get:function(){return fc(this,"label")}},{key:"key",get:function(){var e=this.store.key;return this.data?this.data[e]:null}},{key:"disabled",get:function(){return fc(this,"disabled")}},{key:"nextSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return e.childNodes[t+1]}return null}},{key:"previousSibling",get:function(){var e=this.parent;if(e){var t=e.childNodes.indexOf(this);if(t>-1)return t>0?e.childNodes[t-1]:null}return null}}]),e}(),mc=gc,vc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function bc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var yc=function(){function e(t){var n=this;for(var i in bc(this,e),this.currentNode=null,this.currentNodeKey=null,t)t.hasOwnProperty(i)&&(this[i]=t[i]);if(this.nodesMap={},this.root=new mc({data:this.data,store:this}),this.lazy&&this.load){var r=this.load;r(this.root,(function(e){n.root.doCreateChildren(e),n._initDefaultCheckedNodes()}))}else this._initDefaultCheckedNodes()}return e.prototype.filter=function(e){var t=this.filterNodeMethod,n=this.lazy,i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;if(o.forEach((function(n){n.visible=t.call(n,e,n.data,n),i(n)})),!r.visible&&o.length){var a=!0;a=!o.some((function(e){return e.visible})),r.root?r.root.visible=!1===a:r.visible=!1===a}e&&(!r.visible||r.isLeaf||n||r.expand())};i(this)},e.prototype.setData=function(e){var t=e!==this.root.data;t?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()},e.prototype.getNode=function(e){if(e instanceof mc)return e;var t="object"!==("undefined"===typeof e?"undefined":vc(e))?e:sc(this.key,e);return this.nodesMap[t]||null},e.prototype.insertBefore=function(e,t){var n=this.getNode(t);n.parent.insertBefore({data:e},n)},e.prototype.insertAfter=function(e,t){var n=this.getNode(t);n.parent.insertAfter({data:e},n)},e.prototype.remove=function(e){var t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))},e.prototype.append=function(e,t){var n=t?this.getNode(t):this.root;n&&n.insertChild({data:e})},e.prototype._initDefaultCheckedNodes=function(){var e=this,t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach((function(t){var i=n[t];i&&i.setChecked(!0,!e.checkStrictly)}))},e.prototype._initDefaultCheckedNode=function(e){var t=this.defaultCheckedKeys||[];-1!==t.indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)},e.prototype.setDefaultCheckedKey=function(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())},e.prototype.registerNode=function(e){var t=this.key;if(t&&e&&e.data){var n=e.key;void 0!==n&&(this.nodesMap[e.key]=e)}},e.prototype.deregisterNode=function(e){var t=this,n=this.key;n&&e&&e.data&&(e.childNodes.forEach((function(e){t.deregisterNode(e)})),delete this.nodesMap[e.key])},e.prototype.getCheckedNodes=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=function i(r){var o=r.root?r.root.childNodes:r.childNodes;o.forEach((function(r){(r.checked||t&&r.indeterminate)&&(!e||e&&r.isLeaf)&&n.push(r.data),i(r)}))};return i(this),n},e.prototype.getCheckedKeys=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getCheckedNodes(t).map((function(t){return(t||{})[e.key]}))},e.prototype.getHalfCheckedNodes=function(){var e=[],t=function t(n){var i=n.root?n.root.childNodes:n.childNodes;i.forEach((function(n){n.indeterminate&&e.push(n.data),t(n)}))};return t(this),e},e.prototype.getHalfCheckedKeys=function(){var e=this;return this.getHalfCheckedNodes().map((function(t){return(t||{})[e.key]}))},e.prototype._getAllNodes=function(){var e=[],t=this.nodesMap;for(var n in t)t.hasOwnProperty(n)&&e.push(t[n]);return e},e.prototype.updateChildren=function(e,t){var n=this.nodesMap[e];if(n){for(var i=n.childNodes,r=i.length-1;r>=0;r--){var o=i[r];this.remove(o.data)}for(var a=0,s=t.length;a<s;a++){var l=t[a];this.append(l,n.data)}}},e.prototype._setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=this._getAllNodes().sort((function(e,t){return t.level-e.level})),r=Object.create(null),o=Object.keys(n);i.forEach((function(e){return e.setChecked(!1,!1)}));for(var a=0,s=i.length;a<s;a++){var l=i[a],c=l.data[e].toString(),u=o.indexOf(c)>-1;if(u){var d=l.parent;while(d&&d.level>0)r[d.data[e]]=!0,d=d.parent;l.isLeaf||this.checkStrictly?l.setChecked(!0,!1):(l.setChecked(!0,!0),t&&function(){l.setChecked(!1,!1);var e=function e(t){var n=t.childNodes;n.forEach((function(t){t.isLeaf||t.setChecked(!1,!1),e(t)}))};e(l)}())}else l.checked&&!r[c]&&l.setChecked(!1,!1)}},e.prototype.setCheckedNodes=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.key,i={};e.forEach((function(e){i[(e||{})[n]]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setCheckedKeys=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.defaultCheckedKeys=e;var n=this.key,i={};e.forEach((function(e){i[e]=!0})),this._setCheckedKeys(n,t,i)},e.prototype.setDefaultExpandedKeys=function(e){var t=this;e=e||[],this.defaultExpandedKeys=e,e.forEach((function(e){var n=t.getNode(e);n&&n.expand(null,t.autoExpandParent)}))},e.prototype.setChecked=function(e,t,n){var i=this.getNode(e);i&&i.setChecked(!!t,n)},e.prototype.getCurrentNode=function(){return this.currentNode},e.prototype.setCurrentNode=function(e){var t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0},e.prototype.setUserCurrentNode=function(e){var t=e[this.key],n=this.nodesMap[t];this.setCurrentNode(n)},e.prototype.setCurrentNodeKey=function(e){if(null===e||void 0===e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);var t=this.getNode(e);t&&this.setCurrentNode(t)},e}(),_c=yc,wc=function(){var e=this,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.node.visible,expression:"node.visible"}],ref:"node",staticClass:"el-tree-node",class:{"is-expanded":t.expanded,"is-current":t.node.isCurrent,"is-hidden":!t.node.visible,"is-focusable":!t.node.disabled,"is-checked":!t.node.disabled&&t.node.checked},attrs:{role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.draggable},on:{click:function(e){return e.stopPropagation(),t.handleClick(e)},contextmenu:function(t){return e.handleContextMenu(t)},dragstart:function(e){return e.stopPropagation(),t.handleDragStart(e)},dragover:function(e){return e.stopPropagation(),t.handleDragOver(e)},dragend:function(e){return e.stopPropagation(),t.handleDragEnd(e)},drop:function(e){return e.stopPropagation(),t.handleDrop(e)}}},[i("div",{staticClass:"el-tree-node__content",style:{"padding-left":(t.node.level-1)*t.tree.indent+"px"}},[i("span",{class:[{"is-leaf":t.node.isLeaf,expanded:!t.node.isLeaf&&t.expanded},"el-tree-node__expand-icon",t.tree.iconClass?t.tree.iconClass:"el-icon-caret-right"],on:{click:function(e){return e.stopPropagation(),t.handleExpandIconClick(e)}}}),t.showCheckbox?i("el-checkbox",{attrs:{indeterminate:t.node.indeterminate,disabled:!!t.node.disabled},on:{change:t.handleCheckChange},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.node.checked,callback:function(e){t.$set(t.node,"checked",e)},expression:"node.checked"}}):t._e(),t.node.loading?i("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),i("node-content",{attrs:{node:t.node}})],1),i("el-collapse-transition",[!t.renderAfterExpand||t.childNodeRendered?i("div",{directives:[{name:"show",rawName:"v-show",value:t.expanded,expression:"expanded"}],staticClass:"el-tree-node__children",attrs:{role:"group","aria-expanded":t.expanded}},t._l(t.node.childNodes,(function(e){return i("el-tree-node",{key:t.getNodeKey(e),attrs:{"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:e},on:{"node-expand":t.handleChildNodeExpand}})})),1):t._e()])],1)},xc=[];wc._withStripped=!0;var Cc={name:"ElTreeNode",componentName:"ElTreeNode",mixins:[D.a],props:{node:{default:function(){return{}}},props:{},renderContent:Function,renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1}},components:{ElCollapseTransition:Ge.a,ElCheckbox:Ni.a,NodeContent:{props:{node:{required:!0}},render:function(e){var t=this.$parent,n=t.tree,i=this.node,r=i.data,o=i.store;return t.renderContent?t.renderContent.call(t._renderProxy,e,{_self:n.$vnode.context,node:i,data:r,store:o}):n.$scopedSlots.default?n.$scopedSlots.default({node:i,data:r}):e("span",{class:"el-tree-node__label"},[i.label])}}},data:function(){return{tree:null,expanded:!1,childNodeRendered:!1,oldChecked:null,oldIndeterminate:null}},watch:{"node.indeterminate":function(e){this.handleSelectChange(this.node.checked,e)},"node.checked":function(e){this.handleSelectChange(e,this.node.indeterminate)},"node.expanded":function(e){var t=this;this.$nextTick((function(){return t.expanded=e})),e&&(this.childNodeRendered=!0)}},methods:{getNodeKey:function(e){return sc(this.tree.nodeKey,e.data)},handleSelectChange:function(e,t){this.oldChecked!==e&&this.oldIndeterminate!==t&&this.tree.$emit("check-change",this.node.data,e,t),this.oldChecked=e,this.indeterminate=t},handleClick:function(){var e=this.tree.store;e.setCurrentNode(this.node),this.tree.$emit("current-change",e.currentNode?e.currentNode.data:null,e.currentNode),this.tree.currentNode=this,this.tree.expandOnClickNode&&this.handleExpandIconClick(),this.tree.checkOnClickNode&&!this.node.disabled&&this.handleCheckChange(null,{target:{checked:!this.node.checked}}),this.tree.$emit("node-click",this.node.data,this.node,this)},handleContextMenu:function(e){this.tree._events["node-contextmenu"]&&this.tree._events["node-contextmenu"].length>0&&(e.stopPropagation(),e.preventDefault()),this.tree.$emit("node-contextmenu",e,this.node.data,this.node,this)},handleExpandIconClick:function(){this.node.isLeaf||(this.expanded?(this.tree.$emit("node-collapse",this.node.data,this.node,this),this.node.collapse()):(this.node.expand(),this.$emit("node-expand",this.node.data,this.node,this)))},handleCheckChange:function(e,t){var n=this;this.node.setChecked(t.target.checked,!this.tree.checkStrictly),this.$nextTick((function(){var e=n.tree.store;n.tree.$emit("check",n.node.data,{checkedNodes:e.getCheckedNodes(),checkedKeys:e.getCheckedKeys(),halfCheckedNodes:e.getHalfCheckedNodes(),halfCheckedKeys:e.getHalfCheckedKeys()})}))},handleChildNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.tree.$emit("node-expand",e,t,n)},handleDragStart:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-start",e,this)},handleDragOver:function(e){this.tree.draggable&&(this.tree.$emit("tree-node-drag-over",e,this),e.preventDefault())},handleDrop:function(e){e.preventDefault()},handleDragEnd:function(e){this.tree.draggable&&this.tree.$emit("tree-node-drag-end",e,this)}},created:function(){var e=this,t=this.$parent;t.isTree?this.tree=t:this.tree=t.tree;var n=this.tree;n||console.warn("Can not find node's tree.");var i=n.props||{},r=i["children"]||"children";this.$watch("node.data."+r,(function(){e.node.updateChildren()})),this.node.expanded&&(this.expanded=!0,this.childNodeRendered=!0),this.tree.accordion&&this.$on("tree-node-expand",(function(t){e.node!==t&&e.node.collapse()}))}},Sc=Cc,kc=s(Sc,wc,xc,!1,null,null,null);kc.options.__file="packages/tree/src/tree-node.vue";var Oc=kc.exports,Mc={name:"ElTree",mixins:[D.a],components:{ElTreeNode:Oc},data:function(){return{store:null,root:null,currentNode:null,treeItems:null,checkboxItems:[],dragState:{showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0}}},props:{data:{type:Array},emptyText:{type:String,default:function(){return Object(vs["t"])("el.tree.emptyText")}},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,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:{default:function(){return{children:"children",label:"label",disabled:"disabled"}}},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},iconClass:String},computed:{children:{set:function(e){this.data=e},get:function(){return this.data}},treeItemArray:function(){return Array.prototype.slice.call(this.treeItems)},isEmpty:function(){var e=this.root.childNodes;return!e||0===e.length||e.every((function(e){var t=e.visible;return!t}))}},watch:{defaultCheckedKeys:function(e){this.store.setDefaultCheckedKey(e)},defaultExpandedKeys:function(e){this.store.defaultExpandedKeys=e,this.store.setDefaultExpandedKeys(e)},data:function(e){this.store.setData(e)},checkboxItems:function(e){Array.prototype.forEach.call(e,(function(e){e.setAttribute("tabindex",-1)}))},checkStrictly:function(e){this.store.checkStrictly=e}},methods:{filter:function(e){if(!this.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");this.store.filter(e)},getNodeKey:function(e){return sc(this.nodeKey,e.data)},getNodePath:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");var t=this.store.getNode(e);if(!t)return[];var n=[t.data],i=t.parent;while(i&&i!==this.root)n.push(i.data),i=i.parent;return n.reverse()},getCheckedNodes:function(e,t){return this.store.getCheckedNodes(e,t)},getCheckedKeys:function(e){return this.store.getCheckedKeys(e)},getCurrentNode:function(){var e=this.store.getCurrentNode();return e?e.data:null},getCurrentKey:function(){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");var e=this.getCurrentNode();return e?e[this.nodeKey]:null},setCheckedNodes:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");this.store.setCheckedNodes(e,t)},setCheckedKeys:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");this.store.setCheckedKeys(e,t)},setChecked:function(e,t,n){this.store.setChecked(e,t,n)},getHalfCheckedNodes:function(){return this.store.getHalfCheckedNodes()},getHalfCheckedKeys:function(){return this.store.getHalfCheckedKeys()},setCurrentNode:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");this.store.setUserCurrentNode(e)},setCurrentKey:function(e){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");this.store.setCurrentNodeKey(e)},getNode:function(e){return this.store.getNode(e)},remove:function(e){this.store.remove(e)},append:function(e,t){this.store.append(e,t)},insertBefore:function(e,t){this.store.insertBefore(e,t)},insertAfter:function(e,t){this.store.insertAfter(e,t)},handleNodeExpand:function(e,t,n){this.broadcast("ElTreeNode","tree-node-expand",t),this.$emit("node-expand",e,t,n)},updateKeyChildren:function(e,t){if(!this.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");this.store.updateChildren(e,t)},initTabIndex:function(){this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]");var e=this.$el.querySelectorAll(".is-checked[role=treeitem]");e.length?e[0].setAttribute("tabindex",0):this.treeItems[0]&&this.treeItems[0].setAttribute("tabindex",0)},handleKeydown:function(e){var t=e.target;if(-1!==t.className.indexOf("el-tree-node")){var n=e.keyCode;this.treeItems=this.$el.querySelectorAll(".is-focusable[role=treeitem]");var i=this.treeItemArray.indexOf(t),r=void 0;[38,40].indexOf(n)>-1&&(e.preventDefault(),r=38===n?0!==i?i-1:0:i<this.treeItemArray.length-1?i+1:0,this.treeItemArray[r].focus()),[37,39].indexOf(n)>-1&&(e.preventDefault(),t.click());var o=t.querySelector('[type="checkbox"]');[13,32].indexOf(n)>-1&&o&&(e.preventDefault(),o.click())}}},created:function(){var e=this;this.isTree=!0,this.store=new _c({key:this.nodeKey,data:this.data,lazy:this.lazy,props:this.props,load:this.load,currentNodeKey:this.currentNodeKey,checkStrictly:this.checkStrictly,checkDescendants:this.checkDescendants,defaultCheckedKeys:this.defaultCheckedKeys,defaultExpandedKeys:this.defaultExpandedKeys,autoExpandParent:this.autoExpandParent,defaultExpandAll:this.defaultExpandAll,filterNodeMethod:this.filterNodeMethod}),this.root=this.store.root;var t=this.dragState;this.$on("tree-node-drag-start",(function(n,i){if("function"===typeof e.allowDrag&&!e.allowDrag(i.node))return n.preventDefault(),!1;n.dataTransfer.effectAllowed="move";try{n.dataTransfer.setData("text/plain","")}catch(r){}t.draggingNode=i,e.$emit("node-drag-start",i.node,n)})),this.$on("tree-node-drag-over",(function(n,i){var r=lc(n.target,"ElTreeNode"),o=t.dropNode;o&&o!==r&&Object(je["removeClass"])(o.$el,"is-drop-inner");var a=t.draggingNode;if(a&&r){var s=!0,l=!0,c=!0,u=!0;"function"===typeof e.allowDrop&&(s=e.allowDrop(a.node,r.node,"prev"),u=l=e.allowDrop(a.node,r.node,"inner"),c=e.allowDrop(a.node,r.node,"next")),n.dataTransfer.dropEffect=l?"move":"none",(s||l||c)&&o!==r&&(o&&e.$emit("node-drag-leave",a.node,o.node,n),e.$emit("node-drag-enter",a.node,r.node,n)),(s||l||c)&&(t.dropNode=r),r.node.nextSibling===a.node&&(c=!1),r.node.previousSibling===a.node&&(s=!1),r.node.contains(a.node,!1)&&(l=!1),(a.node===r.node||a.node.contains(r.node))&&(s=!1,l=!1,c=!1);var d=r.$el.getBoundingClientRect(),h=e.$el.getBoundingClientRect(),f=void 0,p=s?l?.25:c?.45:1:-1,g=c?l?.75:s?.55:0:1,m=-9999,v=n.clientY-d.top;f=v<d.height*p?"before":v>d.height*g?"after":l?"inner":"none";var b=r.$el.querySelector(".el-tree-node__expand-icon").getBoundingClientRect(),y=e.$refs.dropIndicator;"before"===f?m=b.top-h.top:"after"===f&&(m=b.bottom-h.top),y.style.top=m+"px",y.style.left=b.right-h.left+"px","inner"===f?Object(je["addClass"])(r.$el,"is-drop-inner"):Object(je["removeClass"])(r.$el,"is-drop-inner"),t.showDropIndicator="before"===f||"after"===f,t.allowDrop=t.showDropIndicator||u,t.dropType=f,e.$emit("node-drag-over",a.node,r.node,n)}})),this.$on("tree-node-drag-end",(function(n){var i=t.draggingNode,r=t.dropType,o=t.dropNode;if(n.preventDefault(),n.dataTransfer.dropEffect="move",i&&o){var a={data:i.node.data};"none"!==r&&i.node.remove(),"before"===r?o.node.parent.insertBefore(a,o.node):"after"===r?o.node.parent.insertAfter(a,o.node):"inner"===r&&o.node.insertChild(a),"none"!==r&&e.store.registerNode(a),Object(je["removeClass"])(o.$el,"is-drop-inner"),e.$emit("node-drag-end",i.node,o.node,r,n),"none"!==r&&e.$emit("node-drop",i.node,o.node,r,n)}i&&!o&&e.$emit("node-drag-end",i.node,null,r,n),t.showDropIndicator=!1,t.draggingNode=null,t.dropNode=null,t.allowDrop=!0}))},mounted:function(){this.initTabIndex(),this.$el.addEventListener("keydown",this.handleKeydown)},updated:function(){this.treeItems=this.$el.querySelectorAll("[role=treeitem]"),this.checkboxItems=this.$el.querySelectorAll("input[type=checkbox]")}},Dc=Mc,Ec=s(Dc,ic,rc,!1,null,null,null);Ec.options.__file="packages/tree/src/tree.vue";var Tc=Ec.exports;Tc.install=function(e){e.component(Tc.name,Tc)};var Lc=Tc,Ic=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-alert-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-alert",class:[e.typeClass,e.center?"is-center":"","is-"+e.effect],attrs:{role:"alert"}},[e.showIcon?n("i",{staticClass:"el-alert__icon",class:[e.iconClass,e.isBigIcon]}):e._e(),n("div",{staticClass:"el-alert__content"},[e.title||e.$slots.title?n("span",{staticClass:"el-alert__title",class:[e.isBoldTitle]},[e._t("title",[e._v(e._s(e.title))])],2):e._e(),e.$slots.default&&!e.description?n("p",{staticClass:"el-alert__description"},[e._t("default")],2):e._e(),e.description&&!e.$slots.default?n("p",{staticClass:"el-alert__description"},[e._v(e._s(e.description))]):e._e(),n("i",{directives:[{name:"show",rawName:"v-show",value:e.closable,expression:"closable"}],staticClass:"el-alert__closebtn",class:{"is-customed":""!==e.closeText,"el-icon-close":""===e.closeText},on:{click:function(t){e.close()}}},[e._v(e._s(e.closeText))])])])])},Ac=[];Ic._withStripped=!0;var Nc={success:"el-icon-success",warning:"el-icon-warning",error:"el-icon-error"},Pc={name:"ElAlert",props:{title:{type:String,default:""},description:{type:String,default:""},type:{type:String,default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,default:"light",validator:function(e){return-1!==["light","dark"].indexOf(e)}}},data:function(){return{visible:!0}},methods:{close:function(){this.visible=!1,this.$emit("close")}},computed:{typeClass:function(){return"el-alert--"+this.type},iconClass:function(){return Nc[this.type]||"el-icon-info"},isBigIcon:function(){return this.description||this.$slots.default?"is-big":""},isBoldTitle:function(){return this.description||this.$slots.default?"is-bold":""}}},Rc=Pc,Fc=s(Rc,Ic,Ac,!1,null,null,null);Fc.options.__file="packages/alert/src/main.vue";var jc=Fc.exports;jc.install=function(e){e.component(jc.name,jc)};var Bc=jc,zc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-notification-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-notification",e.customClass,e.horizontalClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:function(t){e.clearTimer()},mouseleave:function(t){e.startTimer()},click:e.click}},[e.type||e.iconClass?n("i",{staticClass:"el-notification__icon",class:[e.typeClass,e.iconClass]}):e._e(),n("div",{staticClass:"el-notification__group",class:{"is-with-icon":e.typeClass||e.iconClass}},[n("h2",{staticClass:"el-notification__title",domProps:{textContent:e._s(e.title)}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.message,expression:"message"}],staticClass:"el-notification__content"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2),e.showClose?n("div",{staticClass:"el-notification__closeBtn el-icon-close",on:{click:function(t){return t.stopPropagation(),e.close(t)}}}):e._e()])])])},Vc=[];zc._withStripped=!0;var $c={success:"success",info:"info",warning:"warning",error:"error"},Wc={data:function(){return{visible:!1,title:"",message:"",duration:4500,type:"",showClose:!0,customClass:"",iconClass:"",onClose:null,onClick:null,closed:!1,verticalOffset:0,timer:null,dangerouslyUseHTMLString:!1,position:"top-right"}},computed:{typeClass:function(){return this.type&&$c[this.type]?"el-icon-"+$c[this.type]:""},horizontalClass:function(){return this.position.indexOf("right")>-1?"right":"left"},verticalProperty:function(){return/^top-/.test(this.position)?"top":"bottom"},positionStyle:function(){var e;return e={},e[this.verticalProperty]=this.verticalOffset+"px",e}},watch:{closed:function(e){e&&(this.visible=!1,this.$el.addEventListener("transitionend",this.destroyElement))}},methods:{destroyElement:function(){this.$el.removeEventListener("transitionend",this.destroyElement),this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},click:function(){"function"===typeof this.onClick&&this.onClick()},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose()},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){46===e.keyCode||8===e.keyCode?this.clearTimer():27===e.keyCode?this.closed||this.close():this.startTimer()}},mounted:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration)),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Hc=Wc,Uc=s(Hc,zc,Vc,!1,null,null,null);Uc.options.__file="packages/notification/src/main.vue";var qc=Uc.exports,Gc=$i.a.extend(qc),Kc=void 0,Yc=[],Xc=1,Zc=function e(t){if(!$i.a.prototype.$isServer){t=kt()({},t);var n=t.onClose,i="notification_"+Xc++,r=t.position||"top-right";t.onClose=function(){e.close(i,n)},Kc=new Gc({data:t}),Object(Ms["isVNode"])(t.message)&&(Kc.$slots.default=[t.message],t.message="REPLACED_BY_VNODE"),Kc.id=i,Kc.$mount(),document.body.appendChild(Kc.$el),Kc.visible=!0,Kc.dom=Kc.$el,Kc.dom.style.zIndex=C["PopupManager"].nextZIndex();var o=t.offset||0;return Yc.filter((function(e){return e.position===r})).forEach((function(e){o+=e.$el.offsetHeight+16})),o+=16,Kc.verticalOffset=o,Yc.push(Kc),Kc}};["success","warning","info","error"].forEach((function(e){Zc[e]=function(t){return("string"===typeof t||Object(Ms["isVNode"])(t))&&(t={message:t}),t.type=e,Zc(t)}})),Zc.close=function(e,t){var n=-1,i=Yc.length,r=Yc.filter((function(t,i){return t.id===e&&(n=i,!0)}))[0];if(r&&("function"===typeof t&&t(r),Yc.splice(n,1),!(i<=1)))for(var o=r.position,a=r.dom.offsetHeight,s=n;s<i-1;s++)Yc[s].position===o&&(Yc[s].dom.style[r.verticalProperty]=parseInt(Yc[s].dom.style[r.verticalProperty],10)-a-16+"px")},Zc.closeAll=function(){for(var e=Yc.length-1;e>=0;e--)Yc[e].close()};var Qc=Zc,Jc=Qc,eu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-slider",class:{"is-vertical":e.vertical,"el-slider--with-input":e.showInput},attrs:{role:"slider","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-orientation":e.vertical?"vertical":"horizontal","aria-disabled":e.sliderDisabled}},[e.showInput&&!e.range?n("el-input-number",{ref:"input",staticClass:"el-slider__input",attrs:{step:e.step,disabled:e.sliderDisabled,controls:e.showInputControls,min:e.min,max:e.max,debounce:e.debounce,size:e.inputSize},on:{change:e.emitChange},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}):e._e(),n("div",{ref:"slider",staticClass:"el-slider__runway",class:{"show-input":e.showInput,disabled:e.sliderDisabled},style:e.runwayStyle,on:{click:e.onSliderClick}},[n("div",{staticClass:"el-slider__bar",style:e.barStyle}),n("slider-button",{ref:"button1",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.firstValue,callback:function(t){e.firstValue=t},expression:"firstValue"}}),e.range?n("slider-button",{ref:"button2",attrs:{vertical:e.vertical,"tooltip-class":e.tooltipClass},model:{value:e.secondValue,callback:function(t){e.secondValue=t},expression:"secondValue"}}):e._e(),e._l(e.stops,(function(t,i){return e.showStops?n("div",{key:i,staticClass:"el-slider__stop",style:e.getStopStyle(t)}):e._e()})),e.markList.length>0?[n("div",e._l(e.markList,(function(t,i){return n("div",{key:i,staticClass:"el-slider__stop el-slider__marks-stop",style:e.getStopStyle(t.position)})})),0),n("div",{staticClass:"el-slider__marks"},e._l(e.markList,(function(t,i){return n("slider-marker",{key:i,style:e.getStopStyle(t.position),attrs:{mark:t.mark}})})),1)]:e._e()],2)],1)},tu=[];eu._withStripped=!0;var nu=n(42),iu=n.n(nu),ru=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"button",staticClass:"el-slider__button-wrapper",class:{hover:e.hovering,dragging:e.dragging},style:e.wrapperStyle,attrs:{tabindex:"0"},on:{mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave,mousedown:e.onButtonDown,touchstart:e.onButtonDown,focus:e.handleMouseEnter,blur:e.handleMouseLeave,keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.onLeftKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.onRightKeyDown(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.onLeftKeyDown(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.onRightKeyDown(t))}]}},[n("el-tooltip",{ref:"tooltip",attrs:{placement:"top","popper-class":e.tooltipClass,disabled:!e.showTooltip}},[n("span",{attrs:{slot:"content"},slot:"content"},[e._v(e._s(e.formatValue))]),n("div",{staticClass:"el-slider__button",class:{hover:e.hovering,dragging:e.dragging}})])],1)},ou=[];ru._withStripped=!0;var au={name:"ElSliderButton",components:{ElTooltip:rt.a},props:{value:{type:Number,default:0},vertical:{type:Boolean,default:!1},tooltipClass:String},data:function(){return{hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.sliderDisabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},showTooltip:function(){return this.$parent.showTooltip},precision:function(){return this.$parent.precision},currentPosition:function(){return(this.value-this.min)/(this.max-this.min)*100+"%"},enableFormat:function(){return this.$parent.formatTooltip instanceof Function},formatValue:function(){return this.enableFormat&&this.$parent.formatTooltip(this.value)||this.value},wrapperStyle:function(){return this.vertical?{bottom:this.currentPosition}:{left:this.currentPosition}}},watch:{dragging:function(e){this.$parent.dragging=e}},methods:{displayTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!0)},hideTooltip:function(){this.$refs.tooltip&&(this.$refs.tooltip.showPopper=!1)},handleMouseEnter:function(){this.hovering=!0,this.displayTooltip()},handleMouseLeave:function(){this.hovering=!1,this.hideTooltip()},onButtonDown:function(e){this.disabled||(e.preventDefault(),this.onDragStart(e),window.addEventListener("mousemove",this.onDragging),window.addEventListener("touchmove",this.onDragging),window.addEventListener("mouseup",this.onDragEnd),window.addEventListener("touchend",this.onDragEnd),window.addEventListener("contextmenu",this.onDragEnd))},onLeftKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onRightKeyDown:function(){this.disabled||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitChange())},onDragStart:function(e){this.dragging=!0,this.isClick=!0,"touchstart"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?this.startY=e.clientY:this.startX=e.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(e){if(this.dragging){this.isClick=!1,this.displayTooltip(),this.$parent.resetSize();var t=0;"touchmove"===e.type&&(e.clientY=e.touches[0].clientY,e.clientX=e.touches[0].clientX),this.vertical?(this.currentY=e.clientY,t=(this.startY-this.currentY)/this.$parent.sliderSize*100):(this.currentX=e.clientX,t=(this.currentX-this.startX)/this.$parent.sliderSize*100),this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd:function(){var e=this;this.dragging&&(setTimeout((function(){e.dragging=!1,e.hideTooltip(),e.isClick||(e.setPosition(e.newPosition),e.$parent.emitChange())}),0),window.removeEventListener("mousemove",this.onDragging),window.removeEventListener("touchmove",this.onDragging),window.removeEventListener("mouseup",this.onDragEnd),window.removeEventListener("touchend",this.onDragEnd),window.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(e){var t=this;if(null!==e&&!isNaN(e)){e<0?e=0:e>100&&(e=100);var n=100/((this.max-this.min)/this.step),i=Math.round(e/n),r=i*n*(this.max-this.min)*.01+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.$nextTick((function(){t.displayTooltip(),t.$refs.tooltip&&t.$refs.tooltip.updatePopper()})),this.dragging||this.value===this.oldValue||(this.oldValue=this.value)}}}},su=au,lu=s(su,ru,ou,!1,null,null,null);lu.options.__file="packages/slider/src/button.vue";var cu=lu.exports,uu={name:"ElMarker",props:{mark:{type:[String,Object]}},render:function(){var e=arguments[0],t="string"===typeof this.mark?this.mark:this.mark.label;return e("div",{class:"el-slider__marks-text",style:this.mark.style||{}},[t])}},du={name:"ElSlider",mixins:[D.a],inject:{elForm:{default:""}},props:{min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},value:{type:[Number,Array],default:0},showInput:{type:Boolean,default:!1},showInputControls:{type:Boolean,default:!0},inputSize:{type:String,default:"small"},showStops:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},formatTooltip:Function,disabled:{type:Boolean,default:!1},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},height:{type:String},debounce:{type:Number,default:300},label:{type:String},tooltipClass:String,marks:Object},components:{ElInputNumber:iu.a,SliderButton:cu,SliderMarker:uu},data:function(){return{firstValue:null,secondValue:null,oldValue:null,dragging:!1,sliderSize:1}},watch:{value:function(e,t){this.dragging||Array.isArray(e)&&Array.isArray(t)&&e.every((function(e,n){return e===t[n]}))||this.setValues()},dragging:function(e){e||this.setValues()},firstValue:function(e){this.range?this.$emit("input",[this.minValue,this.maxValue]):this.$emit("input",e)},secondValue:function(){this.range&&this.$emit("input",[this.minValue,this.maxValue])},min:function(){this.setValues()},max:function(){this.setValues()}},methods:{valueChanged:function(){var e=this;return this.range?![this.minValue,this.maxValue].every((function(t,n){return t===e.oldValue[n]})):this.value!==this.oldValue},setValues:function(){if(this.min>this.max)console.error("[Element Error][Slider]min should not be greater than max.");else{var e=this.value;this.range&&Array.isArray(e)?e[1]<this.min?this.$emit("input",[this.min,this.min]):e[0]>this.max?this.$emit("input",[this.max,this.max]):e[0]<this.min?this.$emit("input",[this.min,e[1]]):e[1]>this.max?this.$emit("input",[e[0],this.max]):(this.firstValue=e[0],this.secondValue=e[1],this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",[this.minValue,this.maxValue]),this.oldValue=e.slice())):this.range||"number"!==typeof e||isNaN(e)||(e<this.min?this.$emit("input",this.min):e>this.max?this.$emit("input",this.max):(this.firstValue=e,this.valueChanged()&&(this.dispatch("ElFormItem","el.form.change",e),this.oldValue=e)))}},setPosition:function(e){var t=this.min+e*(this.max-this.min)/100;if(this.range){var n=void 0;n=Math.abs(this.minValue-t)<Math.abs(this.maxValue-t)?this.firstValue<this.secondValue?"button1":"button2":this.firstValue>this.secondValue?"button1":"button2",this.$refs[n].setPosition(e)}else this.$refs.button1.setPosition(e)},onSliderClick:function(e){if(!this.sliderDisabled&&!this.dragging){if(this.resetSize(),this.vertical){var t=this.$refs.slider.getBoundingClientRect().bottom;this.setPosition((t-e.clientY)/this.sliderSize*100)}else{var n=this.$refs.slider.getBoundingClientRect().left;this.setPosition((e.clientX-n)/this.sliderSize*100)}this.emitChange()}},resetSize:function(){this.$refs.slider&&(this.sliderSize=this.$refs.slider["client"+(this.vertical?"Height":"Width")])},emitChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.range?[e.minValue,e.maxValue]:e.value)}))},getStopStyle:function(e){return this.vertical?{bottom:e+"%"}:{left:e+"%"}}},computed:{stops:function(){var e=this;if(!this.showStops||this.min>this.max)return[];if(0===this.step)return[];for(var t=(this.max-this.min)/this.step,n=100*this.step/(this.max-this.min),i=[],r=1;r<t;r++)i.push(r*n);return this.range?i.filter((function(t){return t<100*(e.minValue-e.min)/(e.max-e.min)||t>100*(e.maxValue-e.min)/(e.max-e.min)})):i.filter((function(t){return t>100*(e.firstValue-e.min)/(e.max-e.min)}))},markList:function(){var e=this;if(!this.marks)return[];var t=Object.keys(this.marks);return t.map(parseFloat).sort((function(e,t){return e-t})).filter((function(t){return t<=e.max&&t>=e.min})).map((function(t){return{point:t,position:100*(t-e.min)/(e.max-e.min),mark:e.marks[t]}}))},minValue:function(){return Math.min(this.firstValue,this.secondValue)},maxValue:function(){return Math.max(this.firstValue,this.secondValue)},barSize:function(){return this.range?100*(this.maxValue-this.minValue)/(this.max-this.min)+"%":100*(this.firstValue-this.min)/(this.max-this.min)+"%"},barStart:function(){return this.range?100*(this.minValue-this.min)/(this.max-this.min)+"%":"0%"},precision:function(){var e=[this.min,this.max,this.step].map((function(e){var t=(""+e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,e)},runwayStyle:function(){return this.vertical?{height:this.height}:{}},barStyle:function(){return this.vertical?{height:this.barSize,bottom:this.barStart}:{width:this.barSize,left:this.barStart}},sliderDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},mounted:function(){var e=void 0;this.range?(Array.isArray(this.value)?(this.firstValue=Math.max(this.min,this.value[0]),this.secondValue=Math.min(this.max,this.value[1])):(this.firstValue=this.min,this.secondValue=this.max),this.oldValue=[this.firstValue,this.secondValue],e=this.firstValue+"-"+this.secondValue):("number"!==typeof this.value||isNaN(this.value)?this.firstValue=this.min:this.firstValue=Math.min(this.max,Math.max(this.min,this.value)),this.oldValue=this.firstValue,e=this.firstValue),this.$el.setAttribute("aria-valuetext",e),this.$el.setAttribute("aria-label",this.label?this.label:"slider between "+this.min+" and "+this.max),this.resetSize(),window.addEventListener("resize",this.resetSize)},beforeDestroy:function(){window.removeEventListener("resize",this.resetSize)}},hu=du,fu=s(hu,eu,tu,!1,null,null,null);fu.options.__file="packages/slider/src/main.vue";var pu=fu.exports;pu.install=function(e){e.component(pu.name,pu)};var gu=pu,mu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},vu=[];mu._withStripped=!0;var bu={data:function(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave:function(){this.$emit("after-leave")},setText:function(e){this.text=e}}},yu=bu,_u=s(yu,mu,vu,!1,null,null,null);_u.options.__file="packages/loading/src/loading.vue";var wu=_u.exports,xu=n(33),Cu=n.n(xu),Su=$i.a.extend(wu),ku={install:function(e){if(!e.prototype.$isServer){var t=function(t,i){i.value?e.nextTick((function(){i.modifiers.fullscreen?(t.originalPosition=Object(je["getStyle"])(document.body,"position"),t.originalOverflow=Object(je["getStyle"])(document.body,"overflow"),t.maskStyle.zIndex=C["PopupManager"].nextZIndex(),Object(je["addClass"])(t.mask,"is-fullscreen"),n(document.body,t,i)):(Object(je["removeClass"])(t.mask,"is-fullscreen"),i.modifiers.body?(t.originalPosition=Object(je["getStyle"])(document.body,"position"),["top","left"].forEach((function(e){var n="top"===e?"scrollTop":"scrollLeft";t.maskStyle[e]=t.getBoundingClientRect()[e]+document.body[n]+document.documentElement[n]-parseInt(Object(je["getStyle"])(document.body,"margin-"+e),10)+"px"})),["height","width"].forEach((function(e){t.maskStyle[e]=t.getBoundingClientRect()[e]+"px"})),n(document.body,t,i)):(t.originalPosition=Object(je["getStyle"])(t,"position"),n(t,t,i)))})):(Cu()(t.instance,(function(e){if(t.instance.hiding){t.domVisible=!1;var n=i.modifiers.fullscreen||i.modifiers.body?document.body:t;Object(je["removeClass"])(n,"el-loading-parent--relative"),Object(je["removeClass"])(n,"el-loading-parent--hidden"),t.instance.hiding=!1}}),300,!0),t.instance.visible=!1,t.instance.hiding=!0)},n=function(t,n,i){n.domVisible||"none"===Object(je["getStyle"])(n,"display")||"hidden"===Object(je["getStyle"])(n,"visibility")?n.domVisible&&!0===n.instance.hiding&&(n.instance.visible=!0,n.instance.hiding=!1):(Object.keys(n.maskStyle).forEach((function(e){n.mask.style[e]=n.maskStyle[e]})),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(je["addClass"])(t,"el-loading-parent--relative"),i.modifiers.fullscreen&&i.modifiers.lock&&Object(je["addClass"])(t,"el-loading-parent--hidden"),n.domVisible=!0,t.appendChild(n.mask),e.nextTick((function(){n.instance.hiding?n.instance.$emit("after-leave"):n.instance.visible=!0})),n.domInserted=!0)};e.directive("loading",{bind:function(e,n,i){var r=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),a=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),l=i.context,c=new Su({el:document.createElement("div"),data:{text:l&&l[r]||r,spinner:l&&l[o]||o,background:l&&l[a]||a,customClass:l&&l[s]||s,fullscreen:!!n.modifiers.fullscreen}});e.instance=c,e.mask=c.$el,e.maskStyle={},n.value&&t(e,n)},update:function(e,n){e.instance.setText(e.getAttribute("element-loading-text")),n.oldValue!==n.value&&t(e,n)},unbind:function(e,n){e.domInserted&&(e.mask&&e.mask.parentNode&&e.mask.parentNode.removeChild(e.mask),t(e,{value:!1,modifiers:n.modifiers})),e.instance&&e.instance.$destroy()}})}}},Ou=ku,Mu=$i.a.extend(wu),Du={text:null,fullscreen:!0,body:!1,lock:!1,customClass:""},Eu=void 0;Mu.prototype.originalPosition="",Mu.prototype.originalOverflow="",Mu.prototype.close=function(){var e=this;this.fullscreen&&(Eu=void 0),Cu()(this,(function(t){var n=e.fullscreen||e.body?document.body:e.target;Object(je["removeClass"])(n,"el-loading-parent--relative"),Object(je["removeClass"])(n,"el-loading-parent--hidden"),e.$el&&e.$el.parentNode&&e.$el.parentNode.removeChild(e.$el),e.$destroy()}),300),this.visible=!1};var Tu=function(e,t,n){var i={};e.fullscreen?(n.originalPosition=Object(je["getStyle"])(document.body,"position"),n.originalOverflow=Object(je["getStyle"])(document.body,"overflow"),i.zIndex=C["PopupManager"].nextZIndex()):e.body?(n.originalPosition=Object(je["getStyle"])(document.body,"position"),["top","left"].forEach((function(t){var n="top"===t?"scrollTop":"scrollLeft";i[t]=e.target.getBoundingClientRect()[t]+document.body[n]+document.documentElement[n]+"px"})),["height","width"].forEach((function(t){i[t]=e.target.getBoundingClientRect()[t]+"px"}))):n.originalPosition=Object(je["getStyle"])(t,"position"),Object.keys(i).forEach((function(e){n.$el.style[e]=i[e]}))},Lu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!$i.a.prototype.$isServer){if(e=kt()({},Du,e),"string"===typeof e.target&&(e.target=document.querySelector(e.target)),e.target=e.target||document.body,e.target!==document.body?e.fullscreen=!1:e.body=!0,e.fullscreen&&Eu)return Eu;var t=e.body?document.body:e.target,n=new Mu({el:document.createElement("div"),data:e});return Tu(e,t,n),"absolute"!==n.originalPosition&&"fixed"!==n.originalPosition&&"sticky"!==n.originalPosition&&Object(je["addClass"])(t,"el-loading-parent--relative"),e.fullscreen&&e.lock&&Object(je["addClass"])(t,"el-loading-parent--hidden"),t.appendChild(n.$el),$i.a.nextTick((function(){n.visible=!0})),e.fullscreen&&(Eu=n),n}},Iu=Lu,Au={install:function(e){e.use(Ou),e.prototype.$loading=Iu},directive:Ou,service:Iu},Nu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("i",{class:"el-icon-"+e.name})},Pu=[];Nu._withStripped=!0;var Ru={name:"ElIcon",props:{name:String}},Fu=Ru,ju=s(Fu,Nu,Pu,!1,null,null,null);ju.options.__file="packages/icon/src/icon.vue";var Bu=ju.exports;Bu.install=function(e){e.component(Bu.name,Bu)};var zu=Bu,Vu={name:"ElRow",componentName:"ElRow",props:{tag:{type:String,default:"div"},gutter:Number,type:String,justify:{type:String,default:"start"},align:String},computed:{style:function(){var e={};return this.gutter&&(e.marginLeft="-"+this.gutter/2+"px",e.marginRight=e.marginLeft),e}},render:function(e){return e(this.tag,{class:["el-row","start"!==this.justify?"is-justify-"+this.justify:"",this.align?"is-align-"+this.align:"",{"el-row--flex":"flex"===this.type}],style:this.style},this.$slots.default)},install:function(e){e.component(Vu.name,Vu)}},$u=Vu,Wu="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hu={name:"ElCol",props:{span:{type:Number,default:24},tag:{type:String,default:"div"},offset:Number,pull:Number,push:Number,xs:[Number,Object],sm:[Number,Object],md:[Number,Object],lg:[Number,Object],xl:[Number,Object]},computed:{gutter:function(){var e=this.$parent;while(e&&"ElRow"!==e.$options.componentName)e=e.$parent;return e?e.gutter:0}},render:function(e){var t=this,n=[],i={};return this.gutter&&(i.paddingLeft=this.gutter/2+"px",i.paddingRight=i.paddingLeft),["span","offset","pull","push"].forEach((function(e){(t[e]||0===t[e])&&n.push("span"!==e?"el-col-"+e+"-"+t[e]:"el-col-"+t[e])})),["xs","sm","md","lg","xl"].forEach((function(e){if("number"===typeof t[e])n.push("el-col-"+e+"-"+t[e]);else if("object"===Wu(t[e])){var i=t[e];Object.keys(i).forEach((function(t){n.push("span"!==t?"el-col-"+e+"-"+t+"-"+i[t]:"el-col-"+e+"-"+i[t])}))}})),e(this.tag,{class:["el-col",n],style:i},this.$slots.default)},install:function(e){e.component(Hu.name,Hu)}},Uu=Hu,qu=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition-group",{class:["el-upload-list","el-upload-list--"+e.listType,{"is-disabled":e.disabled}],attrs:{tag:"ul",name:"el-list"}},e._l(e.files,(function(t){return n("li",{key:t.uid,class:["el-upload-list__item","is-"+t.status,e.focusing?"focusing":""],attrs:{tabindex:"0"},on:{keydown:function(n){if(!("button"in n)&&e._k(n.keyCode,"delete",[8,46],n.key,["Backspace","Delete","Del"]))return null;!e.disabled&&e.$emit("remove",t)},focus:function(t){e.focusing=!0},blur:function(t){e.focusing=!1},click:function(t){e.focusing=!1}}},[e._t("default",["uploading"!==t.status&&["picture-card","picture"].indexOf(e.listType)>-1?n("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:t.url,alt:""}}):e._e(),n("a",{staticClass:"el-upload-list__item-name",on:{click:function(n){e.handleClick(t)}}},[n("i",{staticClass:"el-icon-document"}),e._v(e._s(t.name)+"\n ")]),n("label",{staticClass:"el-upload-list__item-status-label"},[n("i",{class:{"el-icon-upload-success":!0,"el-icon-circle-check":"text"===e.listType,"el-icon-check":["picture-card","picture"].indexOf(e.listType)>-1}})]),e.disabled?e._e():n("i",{staticClass:"el-icon-close",on:{click:function(n){e.$emit("remove",t)}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-close-tip"},[e._v(e._s(e.t("el.upload.deleteTip")))]),"uploading"===t.status?n("el-progress",{attrs:{type:"picture-card"===e.listType?"circle":"line","stroke-width":"picture-card"===e.listType?6:2,percentage:e.parsePercentage(t.percentage)}}):e._e(),"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-actions"},[e.handlePreview&&"picture-card"===e.listType?n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(n){e.handlePreview(t)}}},[n("i",{staticClass:"el-icon-zoom-in"})]):e._e(),e.disabled?e._e():n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(n){e.$emit("remove",t)}}},[n("i",{staticClass:"el-icon-delete"})])]):e._e()],{file:t})],2)})),0)},Gu=[];qu._withStripped=!0;var Ku=n(34),Yu=n.n(Ku),Xu={name:"ElUploadList",mixins:[v.a],data:function(){return{focusing:!1}},components:{ElProgress:Yu.a},props:{files:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},handlePreview:Function,listType:String},methods:{parsePercentage:function(e){return parseInt(e,10)},handleClick:function(e){this.handlePreview&&this.handlePreview(e)}}},Zu=Xu,Qu=s(Zu,qu,Gu,!1,null,null,null);Qu.options.__file="packages/upload/src/upload-list.vue";var Ju=Qu.exports,ed=n(24),td=n.n(ed);function nd(e,t,n){var i=void 0;i=n.response?""+(n.response.error||n.response):n.responseText?""+n.responseText:"fail to post "+e+" "+n.status;var r=new Error(i);return r.status=n.status,r.method="post",r.url=e,r}function id(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(n){return t}}function rd(e){if("undefined"!==typeof XMLHttpRequest){var t=new XMLHttpRequest,n=e.action;t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var i=new FormData;e.data&&Object.keys(e.data).forEach((function(t){i.append(t,e.data[t])})),i.append(e.filename,e.file,e.file.name),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300)return e.onError(nd(n,e,t));e.onSuccess(id(t))},t.open("post",n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};for(var o in r)r.hasOwnProperty(o)&&null!==r[o]&&t.setRequestHeader(o,r[o]);return t.send(i),t}}var od=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-upload-dragger",class:{"is-dragover":e.dragover},on:{drop:function(t){return t.preventDefault(),e.onDrop(t)},dragover:function(t){return t.preventDefault(),e.onDragover(t)},dragleave:function(t){t.preventDefault(),e.dragover=!1}}},[e._t("default")],2)},ad=[];od._withStripped=!0;var sd={name:"ElUploadDrag",props:{disabled:Boolean},inject:{uploader:{default:""}},data:function(){return{dragover:!1}},methods:{onDragover:function(){this.disabled||(this.dragover=!0)},onDrop:function(e){if(!this.disabled&&this.uploader){var t=this.uploader.accept;this.dragover=!1,t?this.$emit("file",[].slice.call(e.dataTransfer.files).filter((function(e){var n=e.type,i=e.name,r=i.indexOf(".")>-1?"."+i.split(".").pop():"",o=n.replace(/\/.*$/,"");return t.split(",").map((function(e){return e.trim()})).filter((function(e){return e})).some((function(e){return/\..+$/.test(e)?r===e:/\/\*$/.test(e)?o===e.replace(/\/\*$/,""):!!/^[^\/]+\/[^\/]+$/.test(e)&&n===e}))}))):this.$emit("file",e.dataTransfer.files)}}}},ld=sd,cd=s(ld,od,ad,!1,null,null,null);cd.options.__file="packages/upload/src/upload-dragger.vue";var ud,dd,hd=cd.exports,fd={inject:["uploader"],components:{UploadDragger:hd},props:{type:String,action:{type:String,required:!0},name:{type:String,default:"file"},data:Object,headers:Object,withCredentials:Boolean,multiple:Boolean,accept:String,onStart:Function,onProgress:Function,onSuccess:Function,onError:Function,beforeUpload:Function,drag:Boolean,onPreview:{type:Function,default:function(){}},onRemove:{type:Function,default:function(){}},fileList:Array,autoUpload:Boolean,listType:String,httpRequest:{type:Function,default:rd},disabled:Boolean,limit:Number,onExceed:Function},data:function(){return{mouseover:!1,reqs:{}}},methods:{isImage:function(e){return-1!==e.indexOf("image")},handleChange:function(e){var t=e.target.files;t&&this.uploadFiles(t)},uploadFiles:function(e){var t=this;if(this.limit&&this.fileList.length+e.length>this.limit)this.onExceed&&this.onExceed(e,this.fileList);else{var n=Array.prototype.slice.call(e);this.multiple||(n=n.slice(0,1)),0!==n.length&&n.forEach((function(e){t.onStart(e),t.autoUpload&&t.upload(e)}))}},upload:function(e){var t=this;if(this.$refs.input.value=null,!this.beforeUpload)return this.post(e);var n=this.beforeUpload(e);n&&n.then?n.then((function(n){var i=Object.prototype.toString.call(n);if("[object File]"===i||"[object Blob]"===i){for(var r in"[object Blob]"===i&&(n=new File([n],e.name,{type:e.type})),e)e.hasOwnProperty(r)&&(n[r]=e[r]);t.post(n)}else t.post(e)}),(function(){t.onRemove(null,e)})):!1!==n?this.post(e):this.onRemove(null,e)},abort:function(e){var t=this.reqs;if(e){var n=e;e.uid&&(n=e.uid),t[n]&&t[n].abort()}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort(),delete t[e]}))},post:function(e){var t=this,n=e.uid,i={headers:this.headers,withCredentials:this.withCredentials,file:e,data:this.data,filename:this.name,action:this.action,onProgress:function(n){t.onProgress(n,e)},onSuccess:function(i){t.onSuccess(i,e),delete t.reqs[n]},onError:function(i){t.onError(i,e),delete t.reqs[n]}},r=this.httpRequest(i);this.reqs[n]=r,r&&r.then&&r.then(i.onSuccess,i.onError)},handleClick:function(){this.disabled||(this.$refs.input.value=null,this.$refs.input.click())},handleKeydown:function(e){e.target===e.currentTarget&&(13!==e.keyCode&&32!==e.keyCode||this.handleClick())}},render:function(e){var t=this.handleClick,n=this.drag,i=this.name,r=this.handleChange,o=this.multiple,a=this.accept,s=this.listType,l=this.uploadFiles,c=this.disabled,u=this.handleKeydown,d={class:{"el-upload":!0},on:{click:t,keydown:u}};return d.class["el-upload--"+s]=!0,e("div",td()([d,{attrs:{tabindex:"0"}}]),[n?e("upload-dragger",{attrs:{disabled:c},on:{file:l}},[this.$slots.default]):this.$slots.default,e("input",{class:"el-upload__input",attrs:{type:"file",name:i,multiple:o,accept:a},ref:"input",on:{change:r}})])}},pd=fd,gd=s(pd,ud,dd,!1,null,null,null);gd.options.__file="packages/upload/src/upload.vue";var md=gd.exports;function vd(){}var bd,yd,_d={name:"ElUpload",mixins:[O.a],components:{ElProgress:Yu.a,UploadList:Ju,Upload:md},provide:function(){return{uploader:this}},inject:{elForm:{default:""}},props:{action:{type:String,required:!0},headers:{type:Object,default:function(){return{}}},data:Object,multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,dragger:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:String,type:{type:String,default:"select"},beforeUpload:Function,beforeRemove:Function,onRemove:{type:Function,default:vd},onChange:{type:Function,default:vd},onPreview:{type:Function},onSuccess:{type:Function,default:vd},onProgress:{type:Function,default:vd},onError:{type:Function,default:vd},fileList:{type:Array,default:function(){return[]}},autoUpload:{type:Boolean,default:!0},listType:{type:String,default:"text"},httpRequest:Function,disabled:Boolean,limit:Number,onExceed:{type:Function,default:vd}},data:function(){return{uploadFiles:[],dragOver:!1,draging:!1,tempIndex:1}},computed:{uploadDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{listType:function(e){"picture-card"!==e&&"picture"!==e||(this.uploadFiles=this.uploadFiles.map((function(e){if(!e.url&&e.raw)try{e.url=URL.createObjectURL(e.raw)}catch(t){console.error("[Element Error][Upload]",t)}return e})))},fileList:{immediate:!0,handler:function(e){var t=this;this.uploadFiles=e.map((function(e){return e.uid=e.uid||Date.now()+t.tempIndex++,e.status=e.status||"success",e}))}}},methods:{handleStart:function(e){e.uid=Date.now()+this.tempIndex++;var t={status:"ready",name:e.name,size:e.size,percentage:0,uid:e.uid,raw:e};if("picture-card"===this.listType||"picture"===this.listType)try{t.url=URL.createObjectURL(e)}catch(n){return void console.error("[Element Error][Upload]",n)}this.uploadFiles.push(t),this.onChange(t,this.uploadFiles)},handleProgress:function(e,t){var n=this.getFile(t);this.onProgress(e,n,this.uploadFiles),n.status="uploading",n.percentage=e.percent||0},handleSuccess:function(e,t){var n=this.getFile(t);n&&(n.status="success",n.response=e,this.onSuccess(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles))},handleError:function(e,t){var n=this.getFile(t),i=this.uploadFiles;n.status="fail",i.splice(i.indexOf(n),1),this.onError(e,n,this.uploadFiles),this.onChange(n,this.uploadFiles)},handleRemove:function(e,t){var n=this;t&&(e=this.getFile(t));var i=function(){n.abort(e);var t=n.uploadFiles;t.splice(t.indexOf(e),1),n.onRemove(e,t)};if(this.beforeRemove){if("function"===typeof this.beforeRemove){var r=this.beforeRemove(e,this.uploadFiles);r&&r.then?r.then((function(){i()}),vd):!1!==r&&i()}}else i()},getFile:function(e){var t=this.uploadFiles,n=void 0;return t.every((function(t){return n=e.uid===t.uid?t:null,!n})),n},abort:function(e){this.$refs["upload-inner"].abort(e)},clearFiles:function(){this.uploadFiles=[]},submit:function(){var e=this;this.uploadFiles.filter((function(e){return"ready"===e.status})).forEach((function(t){e.$refs["upload-inner"].upload(t.raw)}))},getMigratingConfig:function(){return{props:{"default-file-list":"default-file-list is renamed to file-list.","show-upload-list":"show-upload-list is renamed to show-file-list.","thumbnail-mode":"thumbnail-mode has been deprecated, you can implement the same effect according to this case: http://element.eleme.io/#/zh-CN/component/upload#yong-hu-tou-xiang-shang-chuan"}}}},beforeDestroy:function(){this.uploadFiles.forEach((function(e){e.url&&0===e.url.indexOf("blob:")&&URL.revokeObjectURL(e.url)}))},render:function(e){var t=this,n=void 0;this.showFileList&&(n=e(Ju,{attrs:{disabled:this.uploadDisabled,listType:this.listType,files:this.uploadFiles,handlePreview:this.onPreview},on:{remove:this.handleRemove}},[function(e){if(t.$scopedSlots.file)return t.$scopedSlots.file({file:e.file})}]));var i={props:{type:this.type,drag:this.drag,action:this.action,multiple:this.multiple,"before-upload":this.beforeUpload,"with-credentials":this.withCredentials,headers:this.headers,name:this.name,data:this.data,accept:this.accept,fileList:this.uploadFiles,autoUpload:this.autoUpload,listType:this.listType,disabled:this.uploadDisabled,limit:this.limit,"on-exceed":this.onExceed,"on-start":this.handleStart,"on-progress":this.handleProgress,"on-success":this.handleSuccess,"on-error":this.handleError,"on-preview":this.onPreview,"on-remove":this.handleRemove,"http-request":this.httpRequest},ref:"upload-inner"},r=this.$slots.trigger||this.$slots.default,o=e("upload",i,[r]);return e("div",["picture-card"===this.listType?n:"",this.$slots.trigger?[o,this.$slots.default]:o,this.$slots.tip,"picture-card"!==this.listType?n:""])}},wd=_d,xd=s(wd,bd,yd,!1,null,null,null);xd.options.__file="packages/upload/src/index.vue";var Cd=xd.exports;Cd.install=function(e){e.component(Cd.name,Cd)};var Sd=Cd,kd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},Od=[];kd._withStripped=!0;var Md={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},Dd=Md,Ed=s(Dd,kd,Od,!1,null,null,null);Ed.options.__file="packages/progress/src/progress.vue";var Td=Ed.exports;Td.install=function(e){e.component(Td.name,Td)};var Ld=Td,Id=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"el-spinner"},[n("svg",{staticClass:"el-spinner-inner",style:{width:e.radius/2+"px",height:e.radius/2+"px"},attrs:{viewBox:"0 0 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"25",cy:"25",r:"20",fill:"none",stroke:e.strokeColor,"stroke-width":e.strokeWidth}})])])},Ad=[];Id._withStripped=!0;var Nd={name:"ElSpinner",props:{type:String,radius:{type:Number,default:100},strokeWidth:{type:Number,default:5},strokeColor:{type:String,default:"#efefef"}}},Pd=Nd,Rd=s(Pd,Id,Ad,!1,null,null,null);Rd.options.__file="packages/spinner/src/spinner.vue";var Fd=Rd.exports;Fd.install=function(e){e.component(Fd.name,Fd)};var jd=Fd,Bd=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},zd=[];Bd._withStripped=!0;var Vd={success:"success",info:"info",warning:"warning",error:"error"},$d={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+Vd[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},Wd=$d,Hd=s(Wd,Bd,zd,!1,null,null,null);Hd.options.__file="packages/message/src/main.vue";var Ud=Hd.exports,qd=n(16),Gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kd=$i.a.extend(Ud),Yd=void 0,Xd=[],Zd=1,Qd=function e(t){if(!$i.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,i="message_"+Zd++;t.onClose=function(){e.close(i,n)},Yd=new Kd({data:t}),Yd.id=i,Object(Ms["isVNode"])(Yd.message)&&(Yd.$slots.default=[Yd.message],Yd.message=null),Yd.$mount(),document.body.appendChild(Yd.$el);var r=t.offset||20;return Xd.forEach((function(e){r+=e.$el.offsetHeight+16})),Yd.verticalOffset=r,Yd.visible=!0,Yd.$el.style.zIndex=C["PopupManager"].nextZIndex(),Xd.push(Yd),Yd}};["success","warning","info","error"].forEach((function(e){Qd[e]=function(t){return Object(qd["isObject"])(t)&&!Object(Ms["isVNode"])(t)?Qd(Gd({},t,{type:e})):Qd({type:e,message:t})}})),Qd.close=function(e,t){for(var n=Xd.length,i=-1,r=void 0,o=0;o<n;o++)if(e===Xd[o].id){r=Xd[o].$el.offsetHeight,i=o,"function"===typeof t&&t(Xd[o]),Xd.splice(o,1);break}if(!(n<=1||-1===i||i>Xd.length-1))for(var a=i;a<n-1;a++){var s=Xd[a].$el;s.style["top"]=parseInt(s.style["top"],10)-r-16+"px"}},Qd.closeAll=function(){for(var e=Xd.length-1;e>=0;e--)Xd[e].close()};var Jd=Qd,eh=Jd,th=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-badge"},[e._t("default"),n("transition",{attrs:{name:"el-zoom-in-center"}},[n("sup",{directives:[{name:"show",rawName:"v-show",value:!e.hidden&&(e.content||0===e.content||e.isDot),expression:"!hidden && (content || content === 0 || isDot)"}],staticClass:"el-badge__content",class:[e.type?"el-badge__content--"+e.type:null,{"is-fixed":e.$slots.default,"is-dot":e.isDot}],domProps:{textContent:e._s(e.content)}})])],2)},nh=[];th._withStripped=!0;var ih={name:"ElBadge",props:{value:[String,Number],max:Number,isDot:Boolean,hidden:Boolean,type:{type:String,validator:function(e){return["primary","success","warning","info","danger"].indexOf(e)>-1}}},computed:{content:function(){if(!this.isDot){var e=this.value,t=this.max;return"number"===typeof e&&"number"===typeof t&&t<e?t+"+":e}}}},rh=ih,oh=s(rh,th,nh,!1,null,null,null);oh.options.__file="packages/badge/src/main.vue";var ah=oh.exports;ah.install=function(e){e.component(ah.name,ah)};var sh=ah,lh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-card",class:e.shadow?"is-"+e.shadow+"-shadow":"is-always-shadow"},[e.$slots.header||e.header?n("div",{staticClass:"el-card__header"},[e._t("header",[e._v(e._s(e.header))])],2):e._e(),n("div",{staticClass:"el-card__body",style:e.bodyStyle},[e._t("default")],2)])},ch=[];lh._withStripped=!0;var uh={name:"ElCard",props:{header:{},bodyStyle:{},shadow:{type:String}}},dh=uh,hh=s(dh,lh,ch,!1,null,null,null);hh.options.__file="packages/card/src/main.vue";var fh=hh.exports;fh.install=function(e){e.component(fh.name,fh)};var ph=fh,gh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-rate",attrs:{role:"slider","aria-valuenow":e.currentValue,"aria-valuetext":e.text,"aria-valuemin":"0","aria-valuemax":e.max,tabindex:"0"},on:{keydown:e.handleKey}},[e._l(e.max,(function(t,i){return n("span",{key:i,staticClass:"el-rate__item",style:{cursor:e.rateDisabled?"auto":"pointer"},on:{mousemove:function(n){e.setCurrentValue(t,n)},mouseleave:e.resetCurrentValue,click:function(n){e.selectValue(t)}}},[n("i",{staticClass:"el-rate__icon",class:[e.classes[t-1],{hover:e.hoverIndex===t}],style:e.getIconStyle(t)},[e.showDecimalIcon(t)?n("i",{staticClass:"el-rate__decimal",class:e.decimalIconClass,style:e.decimalStyle}):e._e()])])})),e.showText||e.showScore?n("span",{staticClass:"el-rate__text",style:{color:e.textColor}},[e._v(e._s(e.text))]):e._e()],2)},mh=[];gh._withStripped=!0;var vh={name:"ElRate",mixins:[O.a],inject:{elForm:{default:""}},data:function(){return{pointerAtLeftHalf:!0,currentValue:this.value,hoverIndex:-1}},props:{value:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:[Array,Object],default:function(){return["#F7BA2A","#F7BA2A","#F7BA2A"]}},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},iconClasses:{type:[Array,Object],default:function(){return["el-icon-star-on","el-icon-star-on","el-icon-star-on"]}},voidIconClass:{type:String,default:"el-icon-star-off"},disabledVoidIconClass:{type:String,default:"el-icon-star-on"},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Array,default:function(){return["极差","失望","一般","满意","惊喜"]}},scoreTemplate:{type:String,default:"{value}"}},computed:{text:function(){var e="";return this.showScore?e=this.scoreTemplate.replace(/\{\s*value\s*\}/,this.rateDisabled?this.value:this.currentValue):this.showText&&(e=this.texts[Math.ceil(this.currentValue)-1]),e},decimalStyle:function(){var e="";return this.rateDisabled?e=this.valueDecimal+"%":this.allowHalf&&(e="50%"),{color:this.activeColor,width:e}},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)},classMap:function(){var e;return Array.isArray(this.iconClasses)?(e={},e[this.lowThreshold]=this.iconClasses[0],e[this.highThreshold]={value:this.iconClasses[1],excluded:!0},e[this.max]=this.iconClasses[2],e):this.iconClasses},decimalIconClass:function(){return this.getValueFromMap(this.value,this.classMap)},voidClass:function(){return this.rateDisabled?this.disabledVoidIconClass:this.voidIconClass},activeClass:function(){return this.getValueFromMap(this.currentValue,this.classMap)},colorMap:function(){var e;return Array.isArray(this.colors)?(e={},e[this.lowThreshold]=this.colors[0],e[this.highThreshold]={value:this.colors[1],excluded:!0},e[this.max]=this.colors[2],e):this.colors},activeColor:function(){return this.getValueFromMap(this.currentValue,this.colorMap)},classes:function(){var e=[],t=0,n=this.currentValue;for(this.allowHalf&&this.currentValue!==Math.floor(this.currentValue)&&n--;t<n;t++)e.push(this.activeClass);for(;t<this.max;t++)e.push(this.voidClass);return e},rateDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){this.currentValue=e,this.pointerAtLeftHalf=this.value!==Math.floor(this.value)}},methods:{getMigratingConfig:function(){return{props:{"text-template":"text-template is renamed to score-template."}}},getValueFromMap:function(e,t){var n=Object.keys(t).filter((function(n){var i=t[n],r=!!Object(qd["isObject"])(i)&&i.excluded;return r?e<n:e<=n})).sort((function(e,t){return e-t})),i=t[n[0]];return Object(qd["isObject"])(i)?i.value:i||""},showDecimalIcon:function(e){var t=this.rateDisabled&&this.valueDecimal>0&&e-1<this.value&&e>this.value,n=this.allowHalf&&this.pointerAtLeftHalf&&e-.5<=this.currentValue&&e>this.currentValue;return t||n},getIconStyle:function(e){var t=this.rateDisabled?this.disabledVoidColor:this.voidColor;return{color:e<=this.currentValue?this.activeColor:t}},selectValue:function(e){this.rateDisabled||(this.allowHalf&&this.pointerAtLeftHalf?(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)):(this.$emit("input",e),this.$emit("change",e)))},handleKey:function(e){if(!this.rateDisabled){var t=this.currentValue,n=e.keyCode;38===n||39===n?(this.allowHalf?t+=.5:t+=1,e.stopPropagation(),e.preventDefault()):37!==n&&40!==n||(this.allowHalf?t-=.5:t-=1,e.stopPropagation(),e.preventDefault()),t=t<0?0:t,t=t>this.max?this.max:t,this.$emit("input",t),this.$emit("change",t)}},setCurrentValue:function(e,t){if(!this.rateDisabled){if(this.allowHalf){var n=t.target;Object(je["hasClass"])(n,"el-rate__item")&&(n=n.querySelector(".el-rate__icon")),Object(je["hasClass"])(n,"el-rate__decimal")&&(n=n.parentNode),this.pointerAtLeftHalf=2*t.offsetX<=n.clientWidth,this.currentValue=this.pointerAtLeftHalf?e-.5:e}else this.currentValue=e;this.hoverIndex=e}},resetCurrentValue:function(){this.rateDisabled||(this.allowHalf&&(this.pointerAtLeftHalf=this.value!==Math.floor(this.value)),this.currentValue=this.value,this.hoverIndex=-1)}},created:function(){this.value||this.$emit("input",0)}},bh=vh,yh=s(bh,gh,mh,!1,null,null,null);yh.options.__file="packages/rate/src/main.vue";var _h=yh.exports;_h.install=function(e){e.component(_h.name,_h)};var wh=_h,xh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-steps",class:[!e.simple&&"el-steps--"+e.direction,e.simple&&"el-steps--simple"]},[e._t("default")],2)},Ch=[];xh._withStripped=!0;var Sh={name:"ElSteps",mixins:[O.a],props:{space:[Number,String],active:Number,direction:{type:String,default:"horizontal"},alignCenter:Boolean,simple:Boolean,finishStatus:{type:String,default:"finish"},processStatus:{type:String,default:"process"}},data:function(){return{steps:[],stepOffset:0}},methods:{getMigratingConfig:function(){return{props:{center:"center is removed."}}}},watch:{active:function(e,t){this.$emit("change",e,t)},steps:function(e){e.forEach((function(e,t){e.index=t}))}}},kh=Sh,Oh=s(kh,xh,Ch,!1,null,null,null);Oh.options.__file="packages/steps/src/steps.vue";var Mh=Oh.exports;Mh.install=function(e){e.component(Mh.name,Mh)};var Dh=Mh,Eh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-step",class:[!e.isSimple&&"is-"+e.$parent.direction,e.isSimple&&"is-simple",e.isLast&&!e.space&&!e.isCenter&&"is-flex",e.isCenter&&!e.isVertical&&!e.isSimple&&"is-center"],style:e.style},[n("div",{staticClass:"el-step__head",class:"is-"+e.currentStatus},[n("div",{staticClass:"el-step__line",style:e.isLast?"":{marginRight:e.$parent.stepOffset+"px"}},[n("i",{staticClass:"el-step__line-inner",style:e.lineStyle})]),n("div",{staticClass:"el-step__icon",class:"is-"+(e.icon?"icon":"text")},["success"!==e.currentStatus&&"error"!==e.currentStatus?e._t("icon",[e.icon?n("i",{staticClass:"el-step__icon-inner",class:[e.icon]}):e._e(),e.icon||e.isSimple?e._e():n("div",{staticClass:"el-step__icon-inner"},[e._v(e._s(e.index+1))])]):n("i",{staticClass:"el-step__icon-inner is-status",class:["el-icon-"+("success"===e.currentStatus?"check":"close")]})],2)]),n("div",{staticClass:"el-step__main"},[n("div",{ref:"title",staticClass:"el-step__title",class:["is-"+e.currentStatus]},[e._t("title",[e._v(e._s(e.title))])],2),e.isSimple?n("div",{staticClass:"el-step__arrow"}):n("div",{staticClass:"el-step__description",class:["is-"+e.currentStatus]},[e._t("description",[e._v(e._s(e.description))])],2)])])},Th=[];Eh._withStripped=!0;var Lh={name:"ElStep",props:{title:String,icon:String,description:String,status:String},data:function(){return{index:-1,lineStyle:{},internalStatus:""}},beforeCreate:function(){this.$parent.steps.push(this)},beforeDestroy:function(){var e=this.$parent.steps,t=e.indexOf(this);t>=0&&e.splice(t,1)},computed:{currentStatus:function(){return this.status||this.internalStatus},prevStatus:function(){var e=this.$parent.steps[this.index-1];return e?e.currentStatus:"wait"},isCenter:function(){return this.$parent.alignCenter},isVertical:function(){return"vertical"===this.$parent.direction},isSimple:function(){return this.$parent.simple},isLast:function(){var e=this.$parent;return e.steps[e.steps.length-1]===this},stepsCount:function(){return this.$parent.steps.length},space:function(){var e=this.isSimple,t=this.$parent.space;return e?"":t},style:function(){var e={},t=this.$parent,n=t.steps.length,i="number"===typeof this.space?this.space+"px":this.space?this.space:100/(n-(this.isCenter?0:1))+"%";return e.flexBasis=i,this.isVertical||(this.isLast?e.maxWidth=100/this.stepsCount+"%":e.marginRight=-this.$parent.stepOffset+"px"),e}},methods:{updateStatus:function(e){var t=this.$parent.$children[this.index-1];e>this.index?this.internalStatus=this.$parent.finishStatus:e===this.index&&"error"!==this.prevStatus?this.internalStatus=this.$parent.processStatus:this.internalStatus="wait",t&&t.calcProgress(this.internalStatus)},calcProgress:function(e){var t=100,n={};n.transitionDelay=150*this.index+"ms",e===this.$parent.processStatus?(this.currentStatus,t=0):"wait"===e&&(t=0,n.transitionDelay=-150*this.index+"ms"),n.borderWidth=t&&!this.isSimple?"1px":0,"vertical"===this.$parent.direction?n.height=t+"%":n.width=t+"%",this.lineStyle=n}},mounted:function(){var e=this,t=this.$watch("index",(function(n){e.$watch("$parent.active",e.updateStatus,{immediate:!0}),e.$watch("$parent.processStatus",(function(){var t=e.$parent.active;e.updateStatus(t)}),{immediate:!0}),t()}))}},Ih=Lh,Ah=s(Ih,Eh,Th,!1,null,null,null);Ah.options.__file="packages/steps/src/step.vue";var Nh=Ah.exports;Nh.install=function(e){e.component(Nh.name,Nh)};var Ph=Nh,Rh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.carouselClasses,on:{mouseenter:function(t){return t.stopPropagation(),e.handleMouseEnter(t)},mouseleave:function(t){return t.stopPropagation(),e.handleMouseLeave(t)}}},[n("div",{staticClass:"el-carousel__container",style:{height:e.height}},[e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-left"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex>0),expression:"(arrow === 'always' || hover) && (loop || activeIndex > 0)"}],staticClass:"el-carousel__arrow el-carousel__arrow--left",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("left")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex-1)}}},[n("i",{staticClass:"el-icon-arrow-left"})])]):e._e(),e.arrowDisplay?n("transition",{attrs:{name:"carousel-arrow-right"}},[n("button",{directives:[{name:"show",rawName:"v-show",value:("always"===e.arrow||e.hover)&&(e.loop||e.activeIndex<e.items.length-1),expression:"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"}],staticClass:"el-carousel__arrow el-carousel__arrow--right",attrs:{type:"button"},on:{mouseenter:function(t){e.handleButtonEnter("right")},mouseleave:e.handleButtonLeave,click:function(t){t.stopPropagation(),e.throttledArrowClick(e.activeIndex+1)}}},[n("i",{staticClass:"el-icon-arrow-right"})])]):e._e(),e._t("default")],2),"none"!==e.indicatorPosition?n("ul",{class:e.indicatorsClasses},e._l(e.items,(function(t,i){return n("li",{key:i,class:["el-carousel__indicator","el-carousel__indicator--"+e.direction,{"is-active":i===e.activeIndex}],on:{mouseenter:function(t){e.throttledIndicatorHover(i)},click:function(t){t.stopPropagation(),e.handleIndicatorClick(i)}}},[n("button",{staticClass:"el-carousel__button"},[e.hasLabel?n("span",[e._v(e._s(t.label))]):e._e()])])})),0):e._e()])},Fh=[];Rh._withStripped=!0;var jh=n(25),Bh=n.n(jh),zh={name:"ElCarousel",props:{initialIndex:{type:Number,default:0},height:String,trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:String,indicator:{type:Boolean,default:!0},arrow:{type:String,default:"hover"},type:String,loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}}},data:function(){return{items:[],activeIndex:-1,containerWidth:0,timer:null,hover:!1}},computed:{arrowDisplay:function(){return"never"!==this.arrow&&"vertical"!==this.direction},hasLabel:function(){return this.items.some((function(e){return e.label.toString().length>0}))},carouselClasses:function(){var e=["el-carousel","el-carousel--"+this.direction];return"card"===this.type&&e.push("el-carousel--card"),e},indicatorsClasses:function(){var e=["el-carousel__indicators","el-carousel__indicators--"+this.direction];return this.hasLabel&&e.push("el-carousel__indicators--labels"),"outside"!==this.indicatorPosition&&"card"!==this.type||e.push("el-carousel__indicators--outside"),e}},watch:{items:function(e){e.length>0&&this.setActiveItem(this.initialIndex)},activeIndex:function(e,t){this.resetItemPosition(t),t>-1&&this.$emit("change",e,t)},autoplay:function(e){e?this.startTimer():this.pauseTimer()},loop:function(){this.setActiveItem(this.activeIndex)},interval:function(){this.pauseTimer(),this.startTimer()}},methods:{handleMouseEnter:function(){this.hover=!0,this.pauseTimer()},handleMouseLeave:function(){this.hover=!1,this.startTimer()},itemInStage:function(e,t){var n=this.items.length;return t===n-1&&e.inStage&&this.items[0].active||e.inStage&&this.items[t+1]&&this.items[t+1].active?"left":!!(0===t&&e.inStage&&this.items[n-1].active||e.inStage&&this.items[t-1]&&this.items[t-1].active)&&"right"},handleButtonEnter:function(e){var t=this;"vertical"!==this.direction&&this.items.forEach((function(n,i){e===t.itemInStage(n,i)&&(n.hover=!0)}))},handleButtonLeave:function(){"vertical"!==this.direction&&this.items.forEach((function(e){e.hover=!1}))},updateItems:function(){this.items=this.$children.filter((function(e){return"ElCarouselItem"===e.$options.name}))},resetItemPosition:function(e){var t=this;this.items.forEach((function(n,i){n.translateItem(i,t.activeIndex,e)}))},playSlides:function(){this.activeIndex<this.items.length-1?this.activeIndex++:this.loop&&(this.activeIndex=0)},pauseTimer:function(){this.timer&&(clearInterval(this.timer),this.timer=null)},startTimer:function(){this.interval<=0||!this.autoplay||this.timer||(this.timer=setInterval(this.playSlides,this.interval))},resetTimer:function(){this.pauseTimer(),this.startTimer()},setActiveItem:function(e){if("string"===typeof e){var t=this.items.filter((function(t){return t.name===e}));t.length>0&&(e=this.items.indexOf(t[0]))}if(e=Number(e),isNaN(e)||e!==Math.floor(e))console.warn("[Element Warn][Carousel]index must be an integer.");else{var n=this.items.length,i=this.activeIndex;this.activeIndex=e<0?this.loop?n-1:0:e>=n?this.loop?0:n-1:e,i===this.activeIndex&&this.resetItemPosition(i),this.resetTimer()}},prev:function(){this.setActiveItem(this.activeIndex-1)},next:function(){this.setActiveItem(this.activeIndex+1)},handleIndicatorClick:function(e){this.activeIndex=e},handleIndicatorHover:function(e){"hover"===this.trigger&&e!==this.activeIndex&&(this.activeIndex=e)}},created:function(){var e=this;this.throttledArrowClick=Bh()(300,!0,(function(t){e.setActiveItem(t)})),this.throttledIndicatorHover=Bh()(300,(function(t){e.handleIndicatorHover(t)}))},mounted:function(){var e=this;this.updateItems(),this.$nextTick((function(){Object(ei["addResizeListener"])(e.$el,e.resetItemPosition),e.initialIndex<e.items.length&&e.initialIndex>=0&&(e.activeIndex=e.initialIndex),e.startTimer()}))},beforeDestroy:function(){this.$el&&Object(ei["removeResizeListener"])(this.$el,this.resetItemPosition),this.pauseTimer()}},Vh=zh,$h=s(Vh,Rh,Fh,!1,null,null,null);$h.options.__file="packages/carousel/src/main.vue";var Wh=$h.exports;Wh.install=function(e){e.component(Wh.name,Wh)};var Hh=Wh,Uh={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function qh(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var Gh={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return Uh[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:qh({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(je["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(je["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(je["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(je["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},Kh={name:"ElScrollbar",components:{Bar:Gh},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=vr()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(b["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var o=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),a=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[o]]),s=void 0;return s=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[o]])]:[a,e(Gh,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(Gh,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},s)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(ei["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(ei["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(Kh.name,Kh)}},Yh=Kh,Xh=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],staticClass:"el-carousel__item",class:{"is-active":e.active,"el-carousel__item--card":"card"===e.$parent.type,"is-in-stage":e.inStage,"is-hover":e.hover,"is-animating":e.animating},style:e.itemStyle,on:{click:e.handleItemClick}},["card"===e.$parent.type?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!active"}],staticClass:"el-carousel__mask"}):e._e(),e._t("default")],2)},Zh=[];Xh._withStripped=!0;var Qh=.83,Jh={name:"ElCarouselItem",props:{name:String,label:{type:[String,Number],default:""}},data:function(){return{hover:!1,translate:0,scale:1,active:!1,ready:!1,inStage:!1,animating:!1}},methods:{processIndex:function(e,t,n){return 0===t&&e===n-1?-1:t===n-1&&0===e?n:e<t-1&&t-e>=n/2?n+1:e>t+1&&e-t>=n/2?-2:e},calcCardTranslate:function(e,t){var n=this.$parent.$el.offsetWidth;return this.inStage?n*((2-Qh)*(e-t)+1)/4:e<t?-(1+Qh)*n/4:(3+Qh)*n/4},calcTranslate:function(e,t,n){var i=this.$parent.$el[n?"offsetHeight":"offsetWidth"];return i*(e-t)},translateItem:function(e,t,n){var i=this.$parent.type,r=this.parentDirection,o=this.$parent.items.length;if("card"!==i&&void 0!==n&&(this.animating=e===t||e===n),e!==t&&o>2&&this.$parent.loop&&(e=this.processIndex(e,t,o)),"card"===i)"vertical"===r&&console.warn("[Element Warn][Carousel]vertical direction is not supported in card mode"),this.inStage=Math.round(Math.abs(e-t))<=1,this.active=e===t,this.translate=this.calcCardTranslate(e,t),this.scale=this.active?1:Qh;else{this.active=e===t;var a="vertical"===r;this.translate=this.calcTranslate(e,t,a),this.scale=1}this.ready=!0},handleItemClick:function(){var e=this.$parent;if(e&&"card"===e.type){var t=e.items.indexOf(this);e.setActiveItem(t)}}},computed:{parentDirection:function(){return this.$parent.direction},itemStyle:function(){var e="vertical"===this.parentDirection?"translateY":"translateX",t=e+"("+this.translate+"px) scale("+this.scale+")",n={transform:t};return Object(b["autoprefixer"])(n)}},created:function(){this.$parent&&this.$parent.updateItems()},destroyed:function(){this.$parent&&this.$parent.updateItems()}},ef=Jh,tf=s(ef,Xh,Zh,!1,null,null,null);tf.options.__file="packages/carousel/src/item.vue";var nf=tf.exports;nf.install=function(e){e.component(nf.name,nf)};var rf=nf,of=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse",attrs:{role:"tablist","aria-multiselectable":"true"}},[e._t("default")],2)},af=[];of._withStripped=!0;var sf={name:"ElCollapse",componentName:"ElCollapse",props:{accordion:Boolean,value:{type:[Array,String,Number],default:function(){return[]}}},data:function(){return{activeNames:[].concat(this.value)}},provide:function(){return{collapse:this}},watch:{value:function(e){this.activeNames=[].concat(e)}},methods:{setActiveNames:function(e){e=[].concat(e);var t=this.accordion?e[0]:e;this.activeNames=e,this.$emit("input",t),this.$emit("change",t)},handleItemClick:function(e){if(this.accordion)this.setActiveNames(!this.activeNames[0]&&0!==this.activeNames[0]||this.activeNames[0]!==e.name?e.name:"");else{var t=this.activeNames.slice(0),n=t.indexOf(e.name);n>-1?t.splice(n,1):t.push(e.name),this.setActiveNames(t)}}},created:function(){this.$on("item-click",this.handleItemClick)}},lf=sf,cf=s(lf,of,af,!1,null,null,null);cf.options.__file="packages/collapse/src/collapse.vue";var uf=cf.exports;uf.install=function(e){e.component(uf.name,uf)};var df=uf,hf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-collapse-item",class:{"is-active":e.isActive,"is-disabled":e.disabled}},[n("div",{attrs:{role:"tab","aria-expanded":e.isActive,"aria-controls":"el-collapse-content-"+e.id,"aria-describedby":"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__header",class:{focusing:e.focusing,"is-active":e.isActive},attrs:{role:"button",id:"el-collapse-head-"+e.id,tabindex:e.disabled?void 0:0},on:{click:e.handleHeaderClick,keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.handleEnterClick(t))},focus:e.handleFocus,blur:function(t){e.focusing=!1}}},[e._t("title",[e._v(e._s(e.title))]),n("i",{staticClass:"el-collapse-item__arrow el-icon-arrow-right",class:{"is-active":e.isActive}})],2)]),n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"el-collapse-item__wrap",attrs:{role:"tabpanel","aria-hidden":!e.isActive,"aria-labelledby":"el-collapse-head-"+e.id,id:"el-collapse-content-"+e.id}},[n("div",{staticClass:"el-collapse-item__content"},[e._t("default")],2)])])],1)},ff=[];hf._withStripped=!0;var pf={name:"ElCollapseItem",componentName:"ElCollapseItem",mixins:[D.a],components:{ElCollapseTransition:Ge.a},data:function(){return{contentWrapStyle:{height:"auto",display:"block"},contentHeight:0,focusing:!1,isClick:!1,id:Object(b["generateId"])()}},inject:["collapse"],props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},computed:{isActive:function(){return this.collapse.activeNames.indexOf(this.name)>-1}},methods:{handleFocus:function(){var e=this;setTimeout((function(){e.isClick?e.isClick=!1:e.focusing=!0}),50)},handleHeaderClick:function(){this.disabled||(this.dispatch("ElCollapse","item-click",this),this.focusing=!1,this.isClick=!0)},handleEnterClick:function(){this.dispatch("ElCollapse","item-click",this)}}},gf=pf,mf=s(gf,hf,ff,!1,null,null,null);mf.options.__file="packages/collapse/src/collapse-item.vue";var vf=mf.exports;vf.install=function(e){e.component(vf.name,vf)};var bf=vf,yf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:function(){return e.toggleDropDownVisible(!1)},expression:"() => toggleDropDownVisible(false)"}],ref:"reference",class:["el-cascader",e.realSize&&"el-cascader--"+e.realSize,{"is-disabled":e.isDisabled}],on:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1},click:function(){return e.toggleDropDownVisible(!e.readonly||void 0)},keydown:e.handleKeyDown}},[n("el-input",{ref:"input",class:{"is-focus":e.dropDownVisible},attrs:{size:e.realSize,placeholder:e.placeholder,readonly:e.readonly,disabled:e.isDisabled,"validate-event":!1},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.handleInput},model:{value:e.multiple?e.presentText:e.inputValue,callback:function(t){e.multiple?e.presentText:e.inputValue=t},expression:"multiple ? presentText : inputValue"}},[n("template",{slot:"suffix"},[e.clearBtnVisible?n("i",{key:"clear",staticClass:"el-input__icon el-icon-circle-close",on:{click:function(t){return t.stopPropagation(),e.handleClear(t)}}}):n("i",{key:"arrow-down",class:["el-input__icon","el-icon-arrow-down",e.dropDownVisible&&"is-reverse"],on:{click:function(t){t.stopPropagation(),e.toggleDropDownVisible()}}})])],2),e.multiple?n("div",{staticClass:"el-cascader__tags"},[e._l(e.presentTags,(function(t){return n("el-tag",{key:t.key,attrs:{type:"info",size:e.tagSize,hit:t.hitState,closable:t.closable,"disable-transitions":""},on:{close:function(n){e.deleteTag(t)}}},[n("span",[e._v(e._s(t.text))])])})),e.filterable&&!e.isDisabled?n("input",{directives:[{name:"model",rawName:"v-model.trim",value:e.inputValue,expression:"inputValue",modifiers:{trim:!0}}],staticClass:"el-cascader__search-input",attrs:{type:"text",placeholder:e.presentTags.length?"":e.placeholder},domProps:{value:e.inputValue},on:{input:[function(t){t.target.composing||(e.inputValue=t.target.value.trim())},function(t){return e.handleInput(e.inputValue,t)}],click:function(t){t.stopPropagation(),e.toggleDropDownVisible(!0)},keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.handleDelete(t)},blur:function(t){e.$forceUpdate()}}}):e._e()],2):e._e(),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.handleDropdownLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.dropDownVisible,expression:"dropDownVisible"}],ref:"popper",class:["el-popper","el-cascader__dropdown",e.popperClass]},[n("el-cascader-panel",{directives:[{name:"show",rawName:"v-show",value:!e.filtering,expression:"!filtering"}],ref:"panel",attrs:{options:e.options,props:e.config,border:!1,"render-label":e.$scopedSlots.default},on:{"expand-change":e.handleExpandChange,close:function(t){e.toggleDropDownVisible(!1)}},model:{value:e.checkedValue,callback:function(t){e.checkedValue=t},expression:"checkedValue"}}),e.filterable?n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.filtering,expression:"filtering"}],ref:"suggestionPanel",staticClass:"el-cascader__suggestion-panel",attrs:{tag:"ul","view-class":"el-cascader__suggestion-list"},nativeOn:{keydown:function(t){return e.handleSuggestionKeyDown(t)}}},[e.suggestions.length?e._l(e.suggestions,(function(t,i){return n("li",{key:t.uid,class:["el-cascader__suggestion-item",t.checked&&"is-checked"],attrs:{tabindex:-1},on:{click:function(t){e.handleSuggestionClick(i)}}},[n("span",[e._v(e._s(t.text))]),t.checked?n("i",{staticClass:"el-icon-check"}):e._e()])})):e._t("empty",[n("li",{staticClass:"el-cascader__empty-text"},[e._v(e._s(e.t("el.cascader.noMatch")))])])],2):e._e()],1)])],1)},_f=[];yf._withStripped=!0;var wf=n(43),xf=n.n(wf),Cf=n(35),Sf=n.n(Cf),kf=Sf.a.keys,Of={expandTrigger:{newProp:"expandTrigger",type:String},changeOnSelect:{newProp:"checkStrictly",type:Boolean},hoverThreshold:{newProp:"hoverThreshold",type:Number}},Mf={props:{placement:{type:String,default:"bottom-start"},appendToBody:W.a.props.appendToBody,visibleArrow:{type:Boolean,default:!0},arrowOffset:W.a.props.arrowOffset,offset:W.a.props.offset,boundariesPadding:W.a.props.boundariesPadding,popperOptions:W.a.props.popperOptions,transformOrigin:W.a.props.transformOrigin},methods:W.a.methods,data:W.a.data,beforeDestroy:W.a.beforeDestroy},Df={medium:36,small:32,mini:28},Ef={name:"ElCascader",directives:{Clickoutside:B.a},mixins:[Mf,D.a,v.a,O.a],inject:{elForm:{default:""},elFormItem:{default:""}},components:{ElInput:g.a,ElTag:Jn.a,ElScrollbar:U.a,ElCascaderPanel:xf.a},props:{value:{},options:Array,props:Object,size:String,placeholder:{type:String,default:function(){return Object(vs["t"])("el.cascader.placeholder")}},disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:Function,separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,debounce:{type:Number,default:300},beforeFilter:{type:Function,default:function(){return function(){}}},popperClass:String},data:function(){return{dropDownVisible:!1,checkedValue:this.value,inputHover:!1,inputValue:null,presentText:null,presentTags:[],checkedNodes:[],filtering:!1,suggestions:[],inputInitialHeight:0,pressDeleteCount:0}},computed:{realSize:function(){var e=(this.elFormItem||{}).elFormItemSize;return this.size||e||(this.$ELEMENT||{}).size},tagSize:function(){return["small","mini"].indexOf(this.realSize)>-1?"mini":"small"},isDisabled:function(){return this.disabled||(this.elForm||{}).disabled},config:function(){var e=this.props||{},t=this.$attrs;return Object.keys(Of).forEach((function(n){var i=Of[n],r=i.newProp,o=i.type,a=t[n]||t[Object(b["kebabCase"])(n)];Object(Ot["isDef"])(n)&&!Object(Ot["isDef"])(e[r])&&(o===Boolean&&""===a&&(a=!0),e[r]=a)})),e},multiple:function(){return this.config.multiple},leafOnly:function(){return!this.config.checkStrictly},readonly:function(){return!this.filterable||this.multiple},clearBtnVisible:function(){return!(!this.clearable||this.isDisabled||this.filtering||!this.inputHover)&&(this.multiple?!!this.checkedNodes.filter((function(e){return!e.isDisabled})).length:!!this.presentText)},panel:function(){return this.$refs.panel}},watch:{disabled:function(){this.computePresentContent()},value:function(e){Object(b["isEqual"])(e,this.checkedValue)||(this.checkedValue=e,this.computePresentContent())},checkedValue:function(e){var t=this.value,n=this.dropDownVisible,i=this.config,r=i.checkStrictly,o=i.multiple;Object(b["isEqual"])(e,t)&&!Object(qd["isUndefined"])(t)||(this.computePresentContent(),o||r||!n||this.toggleDropDownVisible(!1),this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",[e]))},options:{handler:function(){this.$nextTick(this.computePresentContent)},deep:!0},presentText:function(e){this.inputValue=e},presentTags:function(e,t){this.multiple&&(e.length||t.length)&&this.$nextTick(this.updateStyle)},filtering:function(e){this.$nextTick(this.updatePopper)}},mounted:function(){var e=this,t=this.$refs.input;t&&t.$el&&(this.inputInitialHeight=t.$el.offsetHeight||Df[this.realSize]||40),this.isEmptyValue(this.value)||this.computePresentContent(),this.filterHandler=F()(this.debounce,(function(){var t=e.inputValue;if(t){var n=e.beforeFilter(t);n&&n.then?n.then(e.getSuggestions):!1!==n?e.getSuggestions():e.filtering=!1}else e.filtering=!1})),Object(ei["addResizeListener"])(this.$el,this.updateStyle)},beforeDestroy:function(){Object(ei["removeResizeListener"])(this.$el,this.updateStyle)},methods:{getMigratingConfig:function(){return{props:{"expand-trigger":"expand-trigger is removed, use `props.expandTrigger` instead.","change-on-select":"change-on-select is removed, use `props.checkStrictly` instead.","hover-threshold":"hover-threshold is removed, use `props.hoverThreshold` instead"},events:{"active-item-change":"active-item-change is renamed to expand-change"}}},toggleDropDownVisible:function(e){var t=this;if(!this.isDisabled){var n=this.dropDownVisible,i=this.$refs.input;e=Object(Ot["isDef"])(e)?e:!n,e!==n&&(this.dropDownVisible=e,e&&this.$nextTick((function(){t.updatePopper(),t.panel.scrollIntoView()})),i.$refs.input.setAttribute("aria-expanded",e),this.$emit("visible-change",e))}},handleDropdownLeave:function(){this.filtering=!1,this.inputValue=this.presentText,this.doDestroy()},handleKeyDown:function(e){switch(e.keyCode){case kf.enter:this.toggleDropDownVisible();break;case kf.down:this.toggleDropDownVisible(!0),this.focusFirstNode(),e.preventDefault();break;case kf.esc:case kf.tab:this.toggleDropDownVisible(!1);break}},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){this.$emit("blur",e)},handleInput:function(e,t){!this.dropDownVisible&&this.toggleDropDownVisible(!0),t&&t.isComposing||(e?this.filterHandler():this.filtering=!1)},handleClear:function(){this.presentText="",this.panel.clearCheckedNodes()},handleExpandChange:function(e){this.$nextTick(this.updatePopper.bind(this)),this.$emit("expand-change",e),this.$emit("active-item-change",e)},focusFirstNode:function(){var e=this;this.$nextTick((function(){var t=e.filtering,n=e.$refs,i=n.popper,r=n.suggestionPanel,o=null;if(t&&r)o=r.$el.querySelector(".el-cascader__suggestion-item");else{var a=i.querySelector(".el-cascader-menu");o=a.querySelector('.el-cascader-node[tabindex="-1"]')}o&&(o.focus(),!t&&o.click())}))},computePresentContent:function(){var e=this;this.$nextTick((function(){e.config.multiple?(e.computePresentTags(),e.presentText=e.presentTags.length?" ":null):e.computePresentText()}))},isEmptyValue:function(e){var t=this.multiple,n=this.panel.config.emitPath;return!(!t&&!n)&&Object(b["isEmpty"])(e)},computePresentText:function(){var e=this.checkedValue,t=this.config;if(!this.isEmptyValue(e)){var n=this.panel.getNodeByValue(e);if(n&&(t.checkStrictly||n.isLeaf))return void(this.presentText=n.getText(this.showAllLevels,this.separator))}this.presentText=null},computePresentTags:function(){var e=this.isDisabled,t=this.leafOnly,n=this.showAllLevels,i=this.separator,r=this.collapseTags,o=this.getCheckedNodes(t),a=[],s=function(t){return{node:t,key:t.uid,text:t.getText(n,i),hitState:!1,closable:!e&&!t.isDisabled}};if(o.length){var l=o[0],c=o.slice(1),u=c.length;a.push(s(l)),u&&(r?a.push({key:-1,text:"+ "+u,closable:!1}):c.forEach((function(e){return a.push(s(e))})))}this.checkedNodes=o,this.presentTags=a},getSuggestions:function(){var e=this,t=this.filterMethod;Object(qd["isFunction"])(t)||(t=function(e,t){return e.text.includes(t)});var n=this.panel.getFlattedNodes(this.leafOnly).filter((function(n){return!n.isDisabled&&(n.text=n.getText(e.showAllLevels,e.separator)||"",t(n,e.inputValue))}));this.multiple?this.presentTags.forEach((function(e){e.hitState=!1})):n.forEach((function(t){t.checked=Object(b["isEqual"])(e.checkedValue,t.getValueByOption())})),this.filtering=!0,this.suggestions=n,this.$nextTick(this.updatePopper)},handleSuggestionKeyDown:function(e){var t=e.keyCode,n=e.target;switch(t){case kf.enter:n.click();break;case kf.up:var i=n.previousElementSibling;i&&i.focus();break;case kf.down:var r=n.nextElementSibling;r&&r.focus();break;case kf.esc:case kf.tab:this.toggleDropDownVisible(!1);break}},handleDelete:function(){var e=this.inputValue,t=this.pressDeleteCount,n=this.presentTags,i=n.length-1,r=n[i];this.pressDeleteCount=e?0:t+1,r&&this.pressDeleteCount&&(r.hitState?this.deleteTag(r):r.hitState=!0)},handleSuggestionClick:function(e){var t=this.multiple,n=this.suggestions[e];if(t){var i=n.checked;n.doCheck(!i),this.panel.calculateMultiCheckedValue()}else this.checkedValue=n.getValueByOption(),this.toggleDropDownVisible(!1)},deleteTag:function(e){var t=this.checkedValue,n=e.node.getValueByOption(),i=t.find((function(e){return Object(b["isEqual"])(e,n)}));this.checkedValue=t.filter((function(e){return!Object(b["isEqual"])(e,n)})),this.$emit("remove-tag",i)},updateStyle:function(){var e=this.$el,t=this.inputInitialHeight;if(!this.$isServer&&e){var n=this.$refs.suggestionPanel,i=e.querySelector(".el-input__inner");if(i){var r=e.querySelector(".el-cascader__tags"),o=null;if(n&&(o=n.$el)){var a=o.querySelector(".el-cascader__suggestion-list");a.style.minWidth=i.offsetWidth+"px"}if(r){var s=Math.round(r.getBoundingClientRect().height),l=Math.max(s+6,t)+"px";i.style.height=l,this.dropDownVisible&&this.updatePopper()}}}},getCheckedNodes:function(e){return this.panel.getCheckedNodes(e)}}},Tf=Ef,Lf=s(Tf,yf,_f,!1,null,null,null);Lf.options.__file="packages/cascader/src/cascader.vue";var If=Lf.exports;If.install=function(e){e.component(If.name,If)};var Af=If,Nf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],class:["el-color-picker",e.colorDisabled?"is-disabled":"",e.colorSize?"el-color-picker--"+e.colorSize:""]},[e.colorDisabled?n("div",{staticClass:"el-color-picker__mask"}):e._e(),n("div",{staticClass:"el-color-picker__trigger",on:{click:e.handleTrigger}},[n("span",{staticClass:"el-color-picker__color",class:{"is-alpha":e.showAlpha}},[n("span",{staticClass:"el-color-picker__color-inner",style:{backgroundColor:e.displayedColor}}),e.value||e.showPanelColor?e._e():n("span",{staticClass:"el-color-picker__empty el-icon-close"})]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.value||e.showPanelColor,expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),n("picker-dropdown",{ref:"dropdown",class:["el-color-picker__panel",e.popperClass||""],attrs:{color:e.color,"show-alpha":e.showAlpha,predefine:e.predefine},on:{pick:e.confirmValue,clear:e.clearValue},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}})],1)},Pf=[];Nf._withStripped=!0;var Rf="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Ff(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var jf=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Bf=function(e){return"string"===typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)},zf=function(e){return"string"===typeof e&&-1!==e.indexOf("%")},Vf=function(e,t){Bf(e)&&(e="100%");var n=zf(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)},$f={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Wf=function(e){var t=e.r,n=e.g,i=e.b,r=function(e){e=Math.min(Math.round(e),255);var t=Math.floor(e/16),n=e%16;return""+($f[t]||t)+($f[n]||n)};return isNaN(t)||isNaN(n)||isNaN(i)?"":"#"+r(t)+r(n)+r(i)},Hf={A:10,B:11,C:12,D:13,E:14,F:15},Uf=function(e){return 2===e.length?16*(Hf[e[0].toUpperCase()]||+e[0])+(Hf[e[1].toUpperCase()]||+e[1]):Hf[e[1].toUpperCase()]||+e[1]},qf=function(e,t,n){t/=100,n/=100;var i=t,r=Math.max(n,.01),o=void 0,a=void 0;return n*=2,t*=n<=1?n:2-n,i*=r<=1?r:2-r,a=(n+t)/2,o=0===n?2*i/(r+i):2*t/(n+t),{h:e,s:100*o,v:100*a}},Gf=function(e,t,n){e=Vf(e,255),t=Vf(t,255),n=Vf(n,255);var i=Math.max(e,t,n),r=Math.min(e,t,n),o=void 0,a=void 0,s=i,l=i-r;if(a=0===i?0:l/i,i===r)o=0;else{switch(i){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:360*o,s:100*a,v:100*s}},Kf=function(e,t,n){e=6*Vf(e,360),t=Vf(t,100),n=Vf(n,100);var i=Math.floor(e),r=e-i,o=n*(1-t),a=n*(1-r*t),s=n*(1-(1-r)*t),l=i%6,c=[n,a,o,o,s,n][l],u=[s,n,n,a,o,o][l],d=[o,o,s,n,n,a][l];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}},Yf=function(){function e(t){for(var n in Ff(this,e),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{},t)t.hasOwnProperty(n)&&(this[n]=t[n]);this.doOnChange()}return e.prototype.set=function(e,t){if(1!==arguments.length||"object"!==("undefined"===typeof e?"undefined":Rf(e)))this["_"+e]=t,this.doOnChange();else for(var n in e)e.hasOwnProperty(n)&&this.set(n,e[n])},e.prototype.get=function(e){return this["_"+e]},e.prototype.toRgb=function(){return Kf(this._hue,this._saturation,this._value)},e.prototype.fromString=function(e){var t=this;if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();var n=function(e,n,i){t._hue=Math.max(0,Math.min(360,e)),t._saturation=Math.max(0,Math.min(100,n)),t._value=Math.max(0,Math.min(100,i)),t.doOnChange()};if(-1!==e.indexOf("hsl")){var i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===i.length?this._alpha=Math.floor(100*parseFloat(i[3])):3===i.length&&(this._alpha=100),i.length>=3){var r=qf(i[0],i[1],i[2]),o=r.h,a=r.s,s=r.v;n(o,a,s)}}else if(-1!==e.indexOf("hsv")){var l=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));4===l.length?this._alpha=Math.floor(100*parseFloat(l[3])):3===l.length&&(this._alpha=100),l.length>=3&&n(l[0],l[1],l[2])}else if(-1!==e.indexOf("rgb")){var c=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((function(e){return""!==e})).map((function(e,t){return t>2?parseFloat(e):parseInt(e,10)}));if(4===c.length?this._alpha=Math.floor(100*parseFloat(c[3])):3===c.length&&(this._alpha=100),c.length>=3){var u=Gf(c[0],c[1],c[2]),d=u.h,h=u.s,f=u.v;n(d,h,f)}}else if(-1!==e.indexOf("#")){var p=e.replace("#","").trim();if(!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(p))return;var g=void 0,m=void 0,v=void 0;3===p.length?(g=Uf(p[0]+p[0]),m=Uf(p[1]+p[1]),v=Uf(p[2]+p[2])):6!==p.length&&8!==p.length||(g=Uf(p.substring(0,2)),m=Uf(p.substring(2,4)),v=Uf(p.substring(4,6))),8===p.length?this._alpha=Math.floor(Uf(p.substring(6))/255*100):3!==p.length&&6!==p.length||(this._alpha=100);var b=Gf(g,m,v),y=b.h,_=b.s,w=b.v;n(y,_,w)}},e.prototype.compare=function(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1},e.prototype.doOnChange=function(){var e=this._hue,t=this._saturation,n=this._value,i=this._alpha,r=this.format;if(this.enableAlpha)switch(r){case"hsl":var o=jf(e,t/100,n/100);this.value="hsla("+e+", "+Math.round(100*o[1])+"%, "+Math.round(100*o[2])+"%, "+i/100+")";break;case"hsv":this.value="hsva("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%, "+i/100+")";break;default:var a=Kf(e,t,n),s=a.r,l=a.g,c=a.b;this.value="rgba("+s+", "+l+", "+c+", "+i/100+")"}else switch(r){case"hsl":var u=jf(e,t/100,n/100);this.value="hsl("+e+", "+Math.round(100*u[1])+"%, "+Math.round(100*u[2])+"%)";break;case"hsv":this.value="hsv("+e+", "+Math.round(t)+"%, "+Math.round(n)+"%)";break;case"rgb":var d=Kf(e,t,n),h=d.r,f=d.g,p=d.b;this.value="rgb("+h+", "+f+", "+p+")";break;default:this.value=Wf(Kf(e,t,n))}},e}(),Xf=Yf,Zf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-color-dropdown"},[n("div",{staticClass:"el-color-dropdown__main-wrapper"},[n("hue-slider",{ref:"hue",staticStyle:{float:"right"},attrs:{color:e.color,vertical:""}}),n("sv-panel",{ref:"sl",attrs:{color:e.color}})],1),e.showAlpha?n("alpha-slider",{ref:"alpha",attrs:{color:e.color}}):e._e(),e.predefine?n("predefine",{attrs:{color:e.color,colors:e.predefine}}):e._e(),n("div",{staticClass:"el-color-dropdown__btns"},[n("span",{staticClass:"el-color-dropdown__value"},[n("el-input",{attrs:{"validate-event":!1,size:"mini"},on:{blur:e.handleConfirm},nativeOn:{keyup:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleConfirm(t)}},model:{value:e.customInput,callback:function(t){e.customInput=t},expression:"customInput"}})],1),n("el-button",{staticClass:"el-color-dropdown__link-btn",attrs:{size:"mini",type:"text"},on:{click:function(t){e.$emit("clear")}}},[e._v("\n "+e._s(e.t("el.colorpicker.clear"))+"\n ")]),n("el-button",{staticClass:"el-color-dropdown__btn",attrs:{plain:"",size:"mini"},on:{click:e.confirmValue}},[e._v("\n "+e._s(e.t("el.colorpicker.confirm"))+"\n ")])],1)],1)])},Qf=[];Zf._withStripped=!0;var Jf=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-svpanel",style:{backgroundColor:e.background}},[n("div",{staticClass:"el-color-svpanel__white"}),n("div",{staticClass:"el-color-svpanel__black"}),n("div",{staticClass:"el-color-svpanel__cursor",style:{top:e.cursorTop+"px",left:e.cursorLeft+"px"}},[n("div")])])},ep=[];Jf._withStripped=!0;var tp=!1,np=function(e,t){if(!$i.a.prototype.$isServer){var n=function(e){t.drag&&t.drag(e)},i=function e(i){document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",e),document.onselectstart=null,document.ondragstart=null,tp=!1,t.end&&t.end(i)};e.addEventListener("mousedown",(function(e){tp||(document.onselectstart=function(){return!1},document.ondragstart=function(){return!1},document.addEventListener("mousemove",n),document.addEventListener("mouseup",i),tp=!0,t.start&&t.start(e))}))}},ip={name:"el-sl-panel",props:{color:{required:!0}},computed:{colorValue:function(){var e=this.color.get("hue"),t=this.color.get("value");return{hue:e,value:t}}},watch:{colorValue:function(){this.update()}},methods:{update:function(){var e=this.color.get("saturation"),t=this.color.get("value"),n=this.$el,i=n.clientWidth,r=n.clientHeight;this.cursorLeft=e*i/100,this.cursorTop=(100-t)*r/100,this.background="hsl("+this.color.get("hue")+", 100%, 50%)"},handleDrag:function(e){var t=this.$el,n=t.getBoundingClientRect(),i=e.clientX-n.left,r=e.clientY-n.top;i=Math.max(0,i),i=Math.min(i,n.width),r=Math.max(0,r),r=Math.min(r,n.height),this.cursorLeft=i,this.cursorTop=r,this.color.set({saturation:i/n.width*100,value:100-r/n.height*100})}},mounted:function(){var e=this;np(this.$el,{drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}}),this.update()},data:function(){return{cursorTop:0,cursorLeft:0,background:"hsl(0, 100%, 50%)"}}},rp=ip,op=s(rp,Jf,ep,!1,null,null,null);op.options.__file="packages/color-picker/src/components/sv-panel.vue";var ap=op.exports,sp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-hue-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},lp=[];sp._withStripped=!0;var cp={name:"el-color-hue-slider",props:{color:{required:!0},vertical:Boolean},data:function(){return{thumbLeft:0,thumbTop:0}},computed:{hueValue:function(){var e=this.color.get("hue");return e}},watch:{hueValue:function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb,i=void 0;if(this.vertical){var r=e.clientY-t.top;r=Math.min(r,t.height-n.offsetHeight/2),r=Math.max(n.offsetHeight/2,r),i=Math.round((r-n.offsetHeight/2)/(t.height-n.offsetHeight)*360)}else{var o=e.clientX-t.left;o=Math.min(o,t.width-n.offsetWidth/2),o=Math.max(n.offsetWidth/2,o),i=Math.round((o-n.offsetWidth/2)/(t.width-n.offsetWidth)*360)}this.color.set("hue",i)},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/360)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color.get("hue");if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/360)},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop()}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};np(n,r),np(i,r),this.update()}},up=cp,dp=s(up,sp,lp,!1,null,null,null);dp.options.__file="packages/color-picker/src/components/hue-slider.vue";var hp=dp.exports,fp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-alpha-slider",class:{"is-vertical":e.vertical}},[n("div",{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:{background:e.background},on:{click:e.handleClick}}),n("div",{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:{left:e.thumbLeft+"px",top:e.thumbTop+"px"}})])},pp=[];fp._withStripped=!0;var gp={name:"el-color-alpha-slider",props:{color:{required:!0},vertical:Boolean},watch:{"color._alpha":function(){this.update()},"color.value":function(){this.update()}},methods:{handleClick:function(e){var t=this.$refs.thumb,n=e.target;n!==t&&this.handleDrag(e)},handleDrag:function(e){var t=this.$el.getBoundingClientRect(),n=this.$refs.thumb;if(this.vertical){var i=e.clientY-t.top;i=Math.max(n.offsetHeight/2,i),i=Math.min(i,t.height-n.offsetHeight/2),this.color.set("alpha",Math.round((i-n.offsetHeight/2)/(t.height-n.offsetHeight)*100))}else{var r=e.clientX-t.left;r=Math.max(n.offsetWidth/2,r),r=Math.min(r,t.width-n.offsetWidth/2),this.color.set("alpha",Math.round((r-n.offsetWidth/2)/(t.width-n.offsetWidth)*100))}},getThumbLeft:function(){if(this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetWidth-n.offsetWidth/2)/100)},getThumbTop:function(){if(!this.vertical)return 0;var e=this.$el,t=this.color._alpha;if(!e)return 0;var n=this.$refs.thumb;return Math.round(t*(e.offsetHeight-n.offsetHeight/2)/100)},getBackground:function(){if(this.color&&this.color.value){var e=this.color.toRgb(),t=e.r,n=e.g,i=e.b;return"linear-gradient(to right, rgba("+t+", "+n+", "+i+", 0) 0%, rgba("+t+", "+n+", "+i+", 1) 100%)"}return null},update:function(){this.thumbLeft=this.getThumbLeft(),this.thumbTop=this.getThumbTop(),this.background=this.getBackground()}},data:function(){return{thumbLeft:0,thumbTop:0,background:null}},mounted:function(){var e=this,t=this.$refs,n=t.bar,i=t.thumb,r={drag:function(t){e.handleDrag(t)},end:function(t){e.handleDrag(t)}};np(n,r),np(i,r),this.update()}},mp=gp,vp=s(mp,fp,pp,!1,null,null,null);vp.options.__file="packages/color-picker/src/components/alpha-slider.vue";var bp=vp.exports,yp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-color-predefine"},[n("div",{staticClass:"el-color-predefine__colors"},e._l(e.rgbaColors,(function(t,i){return n("div",{key:e.colors[i],staticClass:"el-color-predefine__color-selector",class:{selected:t.selected,"is-alpha":t._alpha<100},on:{click:function(t){e.handleSelect(i)}}},[n("div",{style:{"background-color":t.value}})])})),0)])},_p=[];yp._withStripped=!0;var wp={props:{colors:{type:Array,required:!0},color:{required:!0}},data:function(){return{rgbaColors:this.parseColors(this.colors,this.color)}},methods:{handleSelect:function(e){this.color.fromString(this.colors[e])},parseColors:function(e,t){return e.map((function(e){var n=new Xf;return n.enableAlpha=!0,n.format="rgba",n.fromString(e),n.selected=n.value===t.value,n}))}},watch:{"$parent.currentColor":function(e){var t=new Xf;t.fromString(e),this.rgbaColors.forEach((function(e){e.selected=t.compare(e)}))},colors:function(e){this.rgbaColors=this.parseColors(e,this.color)},color:function(e){this.rgbaColors=this.parseColors(this.colors,e)}}},xp=wp,Cp=s(xp,yp,_p,!1,null,null,null);Cp.options.__file="packages/color-picker/src/components/predefine.vue";var Sp=Cp.exports,kp={name:"el-color-picker-dropdown",mixins:[W.a,v.a],components:{SvPanel:ap,HueSlider:hp,AlphaSlider:bp,ElInput:g.a,ElButton:ae.a,Predefine:Sp},props:{color:{required:!0},showAlpha:Boolean,predefine:Array},data:function(){return{customInput:""}},computed:{currentColor:function(){var e=this.$parent;return e.value||e.showPanelColor?e.color.value:""}},methods:{confirmValue:function(){this.$emit("pick")},handleConfirm:function(){this.color.fromString(this.customInput)}},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$el},watch:{showPopper:function(e){var t=this;!0===e&&this.$nextTick((function(){var e=t.$refs,n=e.sl,i=e.hue,r=e.alpha;n&&n.update(),i&&i.update(),r&&r.update()}))},currentColor:{immediate:!0,handler:function(e){this.customInput=e}}}},Op=kp,Mp=s(Op,Zf,Qf,!1,null,null,null);Mp.options.__file="packages/color-picker/src/components/picker-dropdown.vue";var Dp=Mp.exports,Ep={name:"ElColorPicker",mixins:[D.a],props:{value:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:String,popperClass:String,predefine:Array},inject:{elForm:{default:""},elFormItem:{default:""}},directives:{Clickoutside:B.a},computed:{displayedColor:function(){return this.value||this.showPanelColor?this.displayedRgb(this.color,this.showAlpha):"transparent"},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},colorSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},colorDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},watch:{value:function(e){e?e&&e!==this.color.value&&this.color.fromString(e):this.showPanelColor=!1},color:{deep:!0,handler:function(){this.showPanelColor=!0}},displayedColor:function(e){if(this.showPicker){var t=new Xf({enableAlpha:this.showAlpha,format:this.colorFormat});t.fromString(this.value);var n=this.displayedRgb(t,this.showAlpha);e!==n&&this.$emit("active-change",e)}}},methods:{handleTrigger:function(){this.colorDisabled||(this.showPicker=!this.showPicker)},confirmValue:function(){var e=this.color.value;this.$emit("input",e),this.$emit("change",e),this.dispatch("ElFormItem","el.form.change",e),this.showPicker=!1},clearValue:function(){this.$emit("input",null),this.$emit("change",null),null!==this.value&&this.dispatch("ElFormItem","el.form.change",null),this.showPanelColor=!1,this.showPicker=!1,this.resetColor()},hide:function(){this.showPicker=!1,this.resetColor()},resetColor:function(){var e=this;this.$nextTick((function(t){e.value?e.color.fromString(e.value):e.showPanelColor=!1}))},displayedRgb:function(e,t){if(!(e instanceof Xf))throw Error("color should be instance of Color Class");var n=e.toRgb(),i=n.r,r=n.g,o=n.b;return t?"rgba("+i+", "+r+", "+o+", "+e.get("alpha")/100+")":"rgb("+i+", "+r+", "+o+")"}},mounted:function(){var e=this.value;e&&this.color.fromString(e),this.popperElm=this.$refs.dropdown.$el},data:function(){var e=new Xf({enableAlpha:this.showAlpha,format:this.colorFormat});return{color:e,showPicker:!1,showPanelColor:!1}},components:{PickerDropdown:Dp}},Tp=Ep,Lp=s(Tp,Nf,Pf,!1,null,null,null);Lp.options.__file="packages/color-picker/src/main.vue";var Ip=Lp.exports;Ip.install=function(e){e.component(Ip.name,Ip)};var Ap=Ip,Np=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer"},[n("transfer-panel",e._b({ref:"leftPanel",attrs:{data:e.sourceData,title:e.titles[0]||e.t("el.transfer.titles.0"),"default-checked":e.leftDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onSourceCheckedChange}},"transfer-panel",e.$props,!1),[e._t("left-footer")],2),n("div",{staticClass:"el-transfer__buttons"},[n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.rightChecked.length},nativeOn:{click:function(t){return e.addToLeft(t)}}},[n("i",{staticClass:"el-icon-arrow-left"}),void 0!==e.buttonTexts[0]?n("span",[e._v(e._s(e.buttonTexts[0]))]):e._e()]),n("el-button",{class:["el-transfer__button",e.hasButtonTexts?"is-with-texts":""],attrs:{type:"primary",disabled:0===e.leftChecked.length},nativeOn:{click:function(t){return e.addToRight(t)}}},[void 0!==e.buttonTexts[1]?n("span",[e._v(e._s(e.buttonTexts[1]))]):e._e(),n("i",{staticClass:"el-icon-arrow-right"})])],1),n("transfer-panel",e._b({ref:"rightPanel",attrs:{data:e.targetData,title:e.titles[1]||e.t("el.transfer.titles.1"),"default-checked":e.rightDefaultChecked,placeholder:e.filterPlaceholder||e.t("el.transfer.filterPlaceholder")},on:{"checked-change":e.onTargetCheckedChange}},"transfer-panel",e.$props,!1),[e._t("right-footer")],2)],1)},Pp=[];Np._withStripped=!0;var Rp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-transfer-panel"},[n("p",{staticClass:"el-transfer-panel__header"},[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleAllCheckedChange},model:{value:e.allChecked,callback:function(t){e.allChecked=t},expression:"allChecked"}},[e._v("\n "+e._s(e.title)+"\n "),n("span",[e._v(e._s(e.checkedSummary))])])],1),n("div",{class:["el-transfer-panel__body",e.hasFooter?"is-with-footer":""]},[e.filterable?n("el-input",{staticClass:"el-transfer-panel__filter",attrs:{size:"small",placeholder:e.placeholder},nativeOn:{mouseenter:function(t){e.inputHover=!0},mouseleave:function(t){e.inputHover=!1}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}},[n("i",{class:["el-input__icon","el-icon-"+e.inputIcon],attrs:{slot:"prefix"},on:{click:e.clearQuery},slot:"prefix"})]):e._e(),n("el-checkbox-group",{directives:[{name:"show",rawName:"v-show",value:!e.hasNoMatch&&e.data.length>0,expression:"!hasNoMatch && data.length > 0"}],staticClass:"el-transfer-panel__list",class:{"is-filterable":e.filterable},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},e._l(e.filteredData,(function(t){return n("el-checkbox",{key:t[e.keyProp],staticClass:"el-transfer-panel__item",attrs:{label:t[e.keyProp],disabled:t[e.disabledProp]}},[n("option-content",{attrs:{option:t}})],1)})),1),n("p",{directives:[{name:"show",rawName:"v-show",value:e.hasNoMatch,expression:"hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noMatch")))]),n("p",{directives:[{name:"show",rawName:"v-show",value:0===e.data.length&&!e.hasNoMatch,expression:"data.length === 0 && !hasNoMatch"}],staticClass:"el-transfer-panel__empty"},[e._v(e._s(e.t("el.transfer.noData")))])],1),e.hasFooter?n("p",{staticClass:"el-transfer-panel__footer"},[e._t("default")],2):e._e()])},Fp=[];Rp._withStripped=!0;var jp={mixins:[v.a],name:"ElTransferPanel",componentName:"ElTransferPanel",components:{ElCheckboxGroup:Ir.a,ElCheckbox:Ni.a,ElInput:g.a,OptionContent:{props:{option:Object},render:function(e){var t=function e(t){return"ElTransferPanel"===t.$options.componentName?t:t.$parent?e(t.$parent):t},n=t(this),i=n.$parent||n;return n.renderContent?n.renderContent(e,this.option):i.$scopedSlots.default?i.$scopedSlots.default({option:this.option}):e("span",[this.option[n.labelProp]||this.option[n.keyProp]])}}},props:{data:{type:Array,default:function(){return[]}},renderContent:Function,placeholder:String,title:String,filterable:Boolean,format:Object,filterMethod:Function,defaultChecked:Array,props:Object},data:function(){return{checked:[],allChecked:!1,query:"",inputHover:!1,checkChangeByUser:!0}},watch:{checked:function(e,t){if(this.updateAllChecked(),this.checkChangeByUser){var n=e.concat(t).filter((function(n){return-1===e.indexOf(n)||-1===t.indexOf(n)}));this.$emit("checked-change",e,n)}else this.$emit("checked-change",e),this.checkChangeByUser=!0},data:function(){var e=this,t=[],n=this.filteredData.map((function(t){return t[e.keyProp]}));this.checked.forEach((function(e){n.indexOf(e)>-1&&t.push(e)})),this.checkChangeByUser=!1,this.checked=t},checkableData:function(){this.updateAllChecked()},defaultChecked:{immediate:!0,handler:function(e,t){var n=this;if(!t||e.length!==t.length||!e.every((function(e){return t.indexOf(e)>-1}))){var i=[],r=this.checkableData.map((function(e){return e[n.keyProp]}));e.forEach((function(e){r.indexOf(e)>-1&&i.push(e)})),this.checkChangeByUser=!1,this.checked=i}}}},computed:{filteredData:function(){var e=this;return this.data.filter((function(t){if("function"===typeof e.filterMethod)return e.filterMethod(e.query,t);var n=t[e.labelProp]||t[e.keyProp].toString();return n.toLowerCase().indexOf(e.query.toLowerCase())>-1}))},checkableData:function(){var e=this;return this.filteredData.filter((function(t){return!t[e.disabledProp]}))},checkedSummary:function(){var e=this.checked.length,t=this.data.length,n=this.format,i=n.noChecked,r=n.hasChecked;return i&&r?e>0?r.replace(/\${checked}/g,e).replace(/\${total}/g,t):i.replace(/\${total}/g,t):e+"/"+t},isIndeterminate:function(){var e=this.checked.length;return e>0&&e<this.checkableData.length},hasNoMatch:function(){return this.query.length>0&&0===this.filteredData.length},inputIcon:function(){return this.query.length>0&&this.inputHover?"circle-close":"search"},labelProp:function(){return this.props.label||"label"},keyProp:function(){return this.props.key||"key"},disabledProp:function(){return this.props.disabled||"disabled"},hasFooter:function(){return!!this.$slots.default}},methods:{updateAllChecked:function(){var e=this,t=this.checkableData.map((function(t){return t[e.keyProp]}));this.allChecked=t.length>0&&t.every((function(t){return e.checked.indexOf(t)>-1}))},handleAllCheckedChange:function(e){var t=this;this.checked=e?this.checkableData.map((function(e){return e[t.keyProp]})):[]},clearQuery:function(){"circle-close"===this.inputIcon&&(this.query="")}}},Bp=jp,zp=s(Bp,Rp,Fp,!1,null,null,null);zp.options.__file="packages/transfer/src/transfer-panel.vue";var Vp=zp.exports,$p={name:"ElTransfer",mixins:[D.a,v.a,O.a],components:{TransferPanel:Vp,ElButton:ae.a},props:{data:{type:Array,default:function(){return[]}},titles:{type:Array,default:function(){return[]}},buttonTexts:{type:Array,default:function(){return[]}},filterPlaceholder:{type:String,default:""},filterMethod:Function,leftDefaultChecked:{type:Array,default:function(){return[]}},rightDefaultChecked:{type:Array,default:function(){return[]}},renderContent:Function,value:{type:Array,default:function(){return[]}},format:{type:Object,default:function(){return{}}},filterable:Boolean,props:{type:Object,default:function(){return{label:"label",key:"key",disabled:"disabled"}}},targetOrder:{type:String,default:"original"}},data:function(){return{leftChecked:[],rightChecked:[]}},computed:{dataObj:function(){var e=this.props.key;return this.data.reduce((function(t,n){return(t[n[e]]=n)&&t}),{})},sourceData:function(){var e=this;return this.data.filter((function(t){return-1===e.value.indexOf(t[e.props.key])}))},targetData:function(){var e=this;return"original"===this.targetOrder?this.data.filter((function(t){return e.value.indexOf(t[e.props.key])>-1})):this.value.reduce((function(t,n){var i=e.dataObj[n];return i&&t.push(i),t}),[])},hasButtonTexts:function(){return 2===this.buttonTexts.length}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}},methods:{getMigratingConfig:function(){return{props:{"footer-format":"footer-format is renamed to format."}}},onSourceCheckedChange:function(e,t){this.leftChecked=e,void 0!==t&&this.$emit("left-check-change",e,t)},onTargetCheckedChange:function(e,t){this.rightChecked=e,void 0!==t&&this.$emit("right-check-change",e,t)},addToLeft:function(){var e=this.value.slice();this.rightChecked.forEach((function(t){var n=e.indexOf(t);n>-1&&e.splice(n,1)})),this.$emit("input",e),this.$emit("change",e,"left",this.rightChecked)},addToRight:function(){var e=this,t=this.value.slice(),n=[],i=this.props.key;this.data.forEach((function(t){var r=t[i];e.leftChecked.indexOf(r)>-1&&-1===e.value.indexOf(r)&&n.push(r)})),t="unshift"===this.targetOrder?n.concat(t):t.concat(n),this.$emit("input",t),this.$emit("change",t,"right",this.leftChecked)},clearQuery:function(e){"left"===e?this.$refs.leftPanel.query="":"right"===e&&(this.$refs.rightPanel.query="")}}},Wp=$p,Hp=s(Wp,Np,Pp,!1,null,null,null);Hp.options.__file="packages/transfer/src/main.vue";var Up=Hp.exports;Up.install=function(e){e.component(Up.name,Up)};var qp=Up,Gp=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"el-container",class:{"is-vertical":e.isVertical}},[e._t("default")],2)},Kp=[];Gp._withStripped=!0;var Yp={name:"ElContainer",componentName:"ElContainer",props:{direction:String},computed:{isVertical:function(){return"vertical"===this.direction||"horizontal"!==this.direction&&(!(!this.$slots||!this.$slots.default)&&this.$slots.default.some((function(e){var t=e.componentOptions&&e.componentOptions.tag;return"el-header"===t||"el-footer"===t})))}}},Xp=Yp,Zp=s(Xp,Gp,Kp,!1,null,null,null);Zp.options.__file="packages/container/src/main.vue";var Qp=Zp.exports;Qp.install=function(e){e.component(Qp.name,Qp)};var Jp=Qp,eg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",{staticClass:"el-header",style:{height:e.height}},[e._t("default")],2)},tg=[];eg._withStripped=!0;var ng={name:"ElHeader",componentName:"ElHeader",props:{height:{type:String,default:"60px"}}},ig=ng,rg=s(ig,eg,tg,!1,null,null,null);rg.options.__file="packages/header/src/main.vue";var og=rg.exports;og.install=function(e){e.component(og.name,og)};var ag=og,sg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aside",{staticClass:"el-aside",style:{width:e.width}},[e._t("default")],2)},lg=[];sg._withStripped=!0;var cg={name:"ElAside",componentName:"ElAside",props:{width:{type:String,default:"300px"}}},ug=cg,dg=s(ug,sg,lg,!1,null,null,null);dg.options.__file="packages/aside/src/main.vue";var hg=dg.exports;hg.install=function(e){e.component(hg.name,hg)};var fg=hg,pg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"el-main"},[e._t("default")],2)},gg=[];pg._withStripped=!0;var mg={name:"ElMain",componentName:"ElMain"},vg=mg,bg=s(vg,pg,gg,!1,null,null,null);bg.options.__file="packages/main/src/main.vue";var yg=bg.exports;yg.install=function(e){e.component(yg.name,yg)};var _g=yg,wg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("footer",{staticClass:"el-footer",style:{height:e.height}},[e._t("default")],2)},xg=[];wg._withStripped=!0;var Cg={name:"ElFooter",componentName:"ElFooter",props:{height:{type:String,default:"60px"}}},Sg=Cg,kg=s(Sg,wg,xg,!1,null,null,null);kg.options.__file="packages/footer/src/main.vue";var Og=kg.exports;Og.install=function(e){e.component(Og.name,Og)};var Mg,Dg,Eg=Og,Tg={name:"ElTimeline",props:{reverse:{type:Boolean,default:!1}},provide:function(){return{timeline:this}},render:function(){var e=arguments[0],t=this.reverse,n={"el-timeline":!0,"is-reverse":t},i=this.$slots.default||[];return t&&(i=i.reverse()),e("ul",{class:n},[i])}},Lg=Tg,Ig=s(Lg,Mg,Dg,!1,null,null,null);Ig.options.__file="packages/timeline/src/main.vue";var Ag=Ig.exports;Ag.install=function(e){e.component(Ag.name,Ag)};var Ng=Ag,Pg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-timeline-item"},[n("div",{staticClass:"el-timeline-item__tail"}),e.$slots.dot?e._e():n("div",{staticClass:"el-timeline-item__node",class:["el-timeline-item__node--"+(e.size||""),"el-timeline-item__node--"+(e.type||"")],style:{backgroundColor:e.color}},[e.icon?n("i",{staticClass:"el-timeline-item__icon",class:e.icon}):e._e()]),e.$slots.dot?n("div",{staticClass:"el-timeline-item__dot"},[e._t("dot")],2):e._e(),n("div",{staticClass:"el-timeline-item__wrapper"},[e.hideTimestamp||"top"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-top"},[e._v("\n "+e._s(e.timestamp)+"\n ")]),n("div",{staticClass:"el-timeline-item__content"},[e._t("default")],2),e.hideTimestamp||"bottom"!==e.placement?e._e():n("div",{staticClass:"el-timeline-item__timestamp is-bottom"},[e._v("\n "+e._s(e.timestamp)+"\n ")])])])},Rg=[];Pg._withStripped=!0;var Fg={name:"ElTimelineItem",inject:["timeline"],props:{timestamp:String,hideTimestamp:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},type:String,color:String,size:{type:String,default:"normal"},icon:String}},jg=Fg,Bg=s(jg,Pg,Rg,!1,null,null,null);Bg.options.__file="packages/timeline/src/item.vue";var zg=Bg.exports;zg.install=function(e){e.component(zg.name,zg)};var Vg=zg,$g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({class:["el-link",e.type?"el-link--"+e.type:"",e.disabled&&"is-disabled",e.underline&&!e.disabled&&"is-underline"],attrs:{href:e.disabled?null:e.href},on:{click:e.handleClick}},"a",e.$attrs,!1),[e.icon?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",{staticClass:"el-link--inner"},[e._t("default")],2):e._e(),e.$slots.icon?[e.$slots.icon?e._t("icon"):e._e()]:e._e()],2)},Wg=[];$g._withStripped=!0;var Hg={name:"ElLink",props:{type:{type:String,default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:String,icon:String},methods:{handleClick:function(e){this.disabled||this.href||this.$emit("click",e)}}},Ug=Hg,qg=s(Ug,$g,Wg,!1,null,null,null);qg.options.__file="packages/link/src/main.vue";var Gg=qg.exports;Gg.install=function(e){e.component(Gg.name,Gg)};var Kg=Gg,Yg=function(e,t){var n=t._c;return n("div",t._g(t._b({class:[t.data.staticClass,"el-divider","el-divider--"+t.props.direction]},"div",t.data.attrs,!1),t.listeners),[t.slots().default&&"vertical"!==t.props.direction?n("div",{class:["el-divider__text","is-"+t.props.contentPosition]},[t._t("default")],2):t._e()])},Xg=[];Yg._withStripped=!0;var Zg={name:"ElDivider",props:{direction:{type:String,default:"horizontal",validator:function(e){return-1!==["horizontal","vertical"].indexOf(e)}},contentPosition:{type:String,default:"center",validator:function(e){return-1!==["left","center","right"].indexOf(e)}}}},Qg=Zg,Jg=s(Qg,Yg,Xg,!0,null,null,null);Jg.options.__file="packages/divider/src/main.vue";var em=Jg.exports;em.install=function(e){e.component(em.name,em)};var tm=em,nm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-image"},[e.loading?e._t("placeholder",[n("div",{staticClass:"el-image__placeholder"})]):e.error?e._t("error",[n("div",{staticClass:"el-image__error"},[e._v(e._s(e.t("el.image.error")))])]):n("img",e._g(e._b({staticClass:"el-image__inner",class:{"el-image__inner--center":e.alignCenter,"el-image__preview":e.preview},style:e.imageStyle,attrs:{src:e.src},on:{click:e.clickHandler}},"img",e.$attrs,!1),e.$listeners)),e.preview?[e.showViewer?n("image-viewer",{attrs:{"z-index":e.zIndex,"initial-index":e.imageIndex,"on-close":e.closeViewer,"url-list":e.previewSrcList}}):e._e()]:e._e()],2)},im=[];nm._withStripped=!0;var rm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"viewer-fade"}},[n("div",{ref:"el-image-viewer__wrapper",staticClass:"el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick(t)}}}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[n("i",{staticClass:"el-icon-close"})]),e.isSingle?e._e():[n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[n("i",{staticClass:"el-icon-arrow-left"})]),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[n("i",{staticClass:"el-icon-arrow-right"})])],n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){e.handleActions("zoomOut")}}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){e.handleActions("zoomIn")}}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{class:e.mode.icon,on:{click:e.toggleMode}}),n("i",{staticClass:"el-image-viewer__actions__divider"}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.handleActions("anticlocelise")}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.handleActions("clocelise")}}})])]),n("div",{staticClass:"el-image-viewer__canvas"},e._l(e.urlList,(function(t,i){return i===e.index?n("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg,referrerpolicy:"no-referrer"},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}}):e._e()})),0)],2)])},om=[];rm._withStripped=!0;var am=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sm={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},lm=Object(b["isFirefox"])()?"DOMMouseScroll":"mousewheel",cm={name:"elImageViewer",props:{urlList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:sm.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},currentImg:function(){return this.urlList[this.index]},imgStyle:function(){var e=this.transform,t=e.scale,n=e.deg,i=e.offsetX,r=e.offsetY,o=e.enableTransition,a={transform:"scale("+t+") rotate("+n+"deg)",transition:o?"transform .3s":"","margin-left":i+"px","margin-top":r+"px"};return this.mode===sm.CONTAIN&&(a.maxWidth=a.maxHeight="100%"),a},viewerZIndex:function(){var e=C["PopupManager"].nextZIndex();return this.zIndex>e?this.zIndex:e}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg:function(e){var t=this;this.$nextTick((function(e){var n=t.$refs.img[0];n.complete||(t.loading=!0)}))}},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var n=t.keyCode;switch(n){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(b["rafThrottle"])((function(t){var n=t.wheelDelta?t.wheelDelta:-t.detail;n>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(je["on"])(document,"keydown",this._keyDownHandler),Object(je["on"])(document,lm,this._mouseWheelHandler)},deviceSupportUninstall:function(){Object(je["off"])(document,"keydown",this._keyDownHandler),Object(je["off"])(document,lm,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var n=this.transform,i=n.offsetX,r=n.offsetY,o=e.pageX,a=e.pageY;this._dragHandler=Object(b["rafThrottle"])((function(e){t.transform.offsetX=i+e.pageX-o,t.transform.offsetY=r+e.pageY-a})),Object(je["on"])(document,"mousemove",this._dragHandler),Object(je["on"])(document,"mouseup",(function(e){Object(je["off"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},handleMaskClick:function(){this.maskClosable&&this.hide()},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){if(!this.loading){var e=Object.keys(sm),t=Object.values(sm),n=t.indexOf(this.mode),i=(n+1)%e.length;this.mode=sm[e[i]],this.reset()}},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var n=am({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),i=n.zoomRate,r=n.rotateDeg,o=n.enableTransition,a=this.transform;switch(e){case"zoomOut":a.scale>.2&&(a.scale=parseFloat((a.scale-i).toFixed(3)));break;case"zoomIn":a.scale=parseFloat((a.scale+i).toFixed(3));break;case"clocelise":a.deg+=r;break;case"anticlocelise":a.deg-=r;break}a.enableTransition=o}}},mounted:function(){this.deviceSupportInstall(),this.appendToBody&&document.body.appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},um=cm,dm=s(um,rm,om,!1,null,null,null);dm.options.__file="packages/image/src/image-viewer.vue";var hm=dm.exports,fm=function(){return void 0!==document.documentElement.style.objectFit},pm={NONE:"none",CONTAIN:"contain",COVER:"cover",FILL:"fill",SCALE_DOWN:"scale-down"},gm="",mm={name:"ElImage",mixins:[v.a],inheritAttrs:!1,components:{ImageViewer:hm},props:{src:String,fit:String,lazy:Boolean,scrollContainer:{},previewSrcList:{type:Array,default:function(){return[]}},zIndex:{type:Number,default:2e3},initialIndex:Number},data:function(){return{loading:!0,error:!1,show:!this.lazy,imageWidth:0,imageHeight:0,showViewer:!1}},computed:{imageStyle:function(){var e=this.fit;return!this.$isServer&&e?fm()?{"object-fit":e}:this.getImageStyle(e):{}},alignCenter:function(){return!this.$isServer&&!fm()&&this.fit!==pm.FILL},preview:function(){var e=this.previewSrcList;return Array.isArray(e)&&e.length>0},imageIndex:function(){var e=0,t=this.initialIndex;if(t>=0)return e=t,e;var n=this.previewSrcList.indexOf(this.src);return n>=0?(e=n,e):e}},watch:{src:function(e){this.show&&this.loadImage()},show:function(e){e&&this.loadImage()}},mounted:function(){this.lazy?this.addLazyLoadListener():this.loadImage()},beforeDestroy:function(){this.lazy&&this.removeLazyLoadListener()},methods:{loadImage:function(){var e=this;if(!this.$isServer){this.loading=!0,this.error=!1;var t=new Image;t.onload=function(n){return e.handleLoad(n,t)},t.onerror=this.handleError.bind(this),Object.keys(this.$attrs).forEach((function(n){var i=e.$attrs[n];t.setAttribute(n,i)})),t.src=this.src}},handleLoad:function(e,t){this.imageWidth=t.width,this.imageHeight=t.height,this.loading=!1,this.error=!1},handleError:function(e){this.loading=!1,this.error=!0,this.$emit("error",e)},handleLazyLoad:function(){Object(je["isInContainer"])(this.$el,this._scrollContainer)&&(this.show=!0,this.removeLazyLoadListener())},addLazyLoadListener:function(){if(!this.$isServer){var e=this.scrollContainer,t=null;t=Object(qd["isHtmlElement"])(e)?e:Object(qd["isString"])(e)?document.querySelector(e):Object(je["getScrollContainer"])(this.$el),t&&(this._scrollContainer=t,this._lazyLoadHandler=Bh()(200,this.handleLazyLoad),Object(je["on"])(t,"scroll",this._lazyLoadHandler),this.handleLazyLoad())}},removeLazyLoadListener:function(){var e=this._scrollContainer,t=this._lazyLoadHandler;!this.$isServer&&e&&t&&(Object(je["off"])(e,"scroll",t),this._scrollContainer=null,this._lazyLoadHandler=null)},getImageStyle:function(e){var t=this.imageWidth,n=this.imageHeight,i=this.$el,r=i.clientWidth,o=i.clientHeight;if(!t||!n||!r||!o)return{};var a=t/n,s=r/o;if(e===pm.SCALE_DOWN){var l=t<r&&n<o;e=l?pm.NONE:pm.CONTAIN}switch(e){case pm.NONE:return{width:"auto",height:"auto"};case pm.CONTAIN:return a<s?{width:"auto"}:{height:"auto"};case pm.COVER:return a<s?{height:"auto"}:{width:"auto"};default:return{}}},clickHandler:function(){this.preview&&(gm=document.body.style.overflow,document.body.style.overflow="hidden",this.showViewer=!0)},closeViewer:function(){document.body.style.overflow=gm,this.showViewer=!1}}},vm=mm,bm=s(vm,nm,im,!1,null,null,null);bm.options.__file="packages/image/src/main.vue";var ym=bm.exports;ym.install=function(e){e.component(ym.name,ym)};var _m=ym,wm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-calendar"},[n("div",{staticClass:"el-calendar__header"},[n("div",{staticClass:"el-calendar__title"},[e._v("\n "+e._s(e.i18nDate)+"\n ")]),0===e.validatedRange.length?n("div",{staticClass:"el-calendar__button-group"},[n("el-button-group",[n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("prev-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.prevMonth"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("today")}}},[e._v("\n "+e._s(e.t("el.datepicker.today"))+"\n ")]),n("el-button",{attrs:{type:"plain",size:"mini"},on:{click:function(t){e.selectDate("next-month")}}},[e._v("\n "+e._s(e.t("el.datepicker.nextMonth"))+"\n ")])],1)],1):e._e()]),0===e.validatedRange.length?n("div",{key:"no-range",staticClass:"el-calendar__body"},[n("date-table",{attrs:{date:e.date,"selected-day":e.realSelectedDay,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})],1):n("div",{key:"has-range",staticClass:"el-calendar__body"},e._l(e.validatedRange,(function(t,i){return n("date-table",{key:i,attrs:{date:t[0],"selected-day":e.realSelectedDay,range:t,"hide-header":0!==i,"first-day-of-week":e.realFirstDayOfWeek},on:{pick:e.pickDay}})})),1)])},xm=[];wm._withStripped=!0;var Cm,Sm,km=n(20),Om=n.n(km),Mm={props:{selectedDay:String,range:{type:Array,validator:function(e){if(!e||!e.length)return!0;var t=e[0],n=e[1];return Object(ao["validateRangeInOneMonth"])(t,n)}},date:Date,hideHeader:Boolean,firstDayOfWeek:Number},inject:["elCalendar"],methods:{toNestedArr:function(e){return Object(ao["range"])(e.length/7).map((function(t,n){var i=7*n;return e.slice(i,i+7)}))},getFormateDate:function(e,t){if(!e||-1===["prev","current","next"].indexOf(t))throw new Error("invalid day or type");var n=this.curMonthDatePrefix;return"prev"===t?n=this.prevMonthDatePrefix:"next"===t&&(n=this.nextMonthDatePrefix),e=("00"+e).slice(-2),n+"-"+e},getCellClass:function(e){var t=e.text,n=e.type,i=[n];if("current"===n){var r=this.getFormateDate(t,n);r===this.selectedDay&&i.push("is-selected"),r===this.formatedToday&&i.push("is-today")}return i},pickDay:function(e){var t=e.text,n=e.type,i=this.getFormateDate(t,n);this.$emit("pick",i)},cellRenderProxy:function(e){var t=e.text,n=e.type,i=this.$createElement,r=this.elCalendar.$scopedSlots.dateCell;if(!r)return i("span",[t]);var o=this.getFormateDate(t,n),a=new Date(o),s={isSelected:this.selectedDay===o,type:n+"-month",day:o};return r({date:a,data:s})}},computed:{WEEK_DAYS:function(){return Object(ao["getI18nSettings"])().dayNames},prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Om.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Om.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Om.a.format(e,"yyyy-MM")},formatedToday:function(){return this.elCalendar.formatedToday},isInRange:function(){return this.range&&this.range.length},rows:function(){var e=[];if(this.isInRange){var t=this.range,n=t[0],i=t[1],r=Object(ao["range"])(i.getDate()-n.getDate()+1).map((function(e,t){return{text:n.getDate()+t,type:"current"}})),o=r.length%7;o=0===o?0:7-o;var a=Object(ao["range"])(o).map((function(e,t){return{text:t+1,type:"next"}}));e=r.concat(a)}else{var s=this.date,l=Object(ao["getFirstDayOfMonth"])(s);l=0===l?7:l;var c="number"===typeof this.firstDayOfWeek?this.firstDayOfWeek:1,u=(7+l-c)%7,d=Object(ao["getPrevMonthLastDays"])(s,u).map((function(e){return{text:e,type:"prev"}})),h=Object(ao["getMonthDays"])(s).map((function(e){return{text:e,type:"current"}}));e=[].concat(d,h);var f=Object(ao["range"])(42-e.length).map((function(e,t){return{text:t+1,type:"next"}}));e=e.concat(f)}return this.toNestedArr(e)},weekDays:function(){var e=this.firstDayOfWeek,t=this.WEEK_DAYS;return"number"!==typeof e||0===e?t.slice():t.slice(e).concat(t.slice(0,e))}},render:function(){var e=this,t=arguments[0],n=this.hideHeader?null:t("thead",[this.weekDays.map((function(e){return t("th",{key:e},[e])}))]);return t("table",{class:{"el-calendar-table":!0,"is-range":this.isInRange},attrs:{cellspacing:"0",cellpadding:"0"}},[n,t("tbody",[this.rows.map((function(n,i){return t("tr",{class:{"el-calendar-table__row":!0,"el-calendar-table__row--hide-border":0===i&&e.hideHeader},key:i},[n.map((function(n,i){return t("td",{key:i,class:e.getCellClass(n),on:{click:e.pickDay.bind(e,n)}},[t("div",{class:"el-calendar-day"},[e.cellRenderProxy(n)])])}))])}))])])}},Dm=Mm,Em=s(Dm,Cm,Sm,!1,null,null,null);Em.options.__file="packages/calendar/src/date-table.vue";var Tm=Em.exports,Lm=["prev-month","today","next-month"],Im=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Am=864e5,Nm={name:"ElCalendar",mixins:[v.a],components:{DateTable:Tm,ElButton:ae.a,ElButtonGroup:le.a},props:{value:[Date,String,Number],range:{type:Array,validator:function(e){return!Array.isArray(e)||2===e.length&&e.every((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date}))}},firstDayOfWeek:{type:Number,default:1}},provide:function(){return{elCalendar:this}},methods:{pickDay:function(e){this.realSelectedDay=e},selectDate:function(e){if(-1===Lm.indexOf(e))throw new Error("invalid type "+e);var t="";t="prev-month"===e?this.prevMonthDatePrefix+"-01":"next-month"===e?this.nextMonthDatePrefix+"-01":this.formatedToday,t!==this.formatedDate&&this.pickDay(t)},toDate:function(e){if(!e)throw new Error("invalid val");return e instanceof Date?e:new Date(e)},rangeValidator:function(e,t){var n=this.realFirstDayOfWeek,i=t?n:0===n?6:n-1,r=(t?"start":"end")+" of range should be "+Im[i]+".";return e.getDay()===i||(console.warn("[ElementCalendar]",r,"Invalid range will be ignored."),!1)}},computed:{prevMonthDatePrefix:function(){var e=new Date(this.date.getTime());return e.setDate(0),Om.a.format(e,"yyyy-MM")},curMonthDatePrefix:function(){return Om.a.format(this.date,"yyyy-MM")},nextMonthDatePrefix:function(){var e=new Date(this.date.getFullYear(),this.date.getMonth()+1,1);return Om.a.format(e,"yyyy-MM")},formatedDate:function(){return Om.a.format(this.date,"yyyy-MM-dd")},i18nDate:function(){var e=this.date.getFullYear(),t=this.date.getMonth()+1;return e+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+t)},formatedToday:function(){return Om.a.format(this.now,"yyyy-MM-dd")},realSelectedDay:{get:function(){return this.value?this.formatedDate:this.selectedDay},set:function(e){this.selectedDay=e;var t=new Date(e);this.$emit("input",t)}},date:function(){if(this.value)return this.toDate(this.value);if(this.realSelectedDay){var e=this.selectedDay.split("-");return new Date(e[0],e[1]-1,e[2])}return this.validatedRange.length?this.validatedRange[0][0]:this.now},validatedRange:function(){var e=this,t=this.range;if(!t)return[];if(t=t.reduce((function(t,n,i){var r=e.toDate(n);return e.rangeValidator(r,0===i)&&(t=t.concat(r)),t}),[]),2===t.length){var n=t,i=n[0],r=n[1];if(i>r)return console.warn("[ElementCalendar]end time should be greater than start time"),[];if(Object(ao["validateRangeInOneMonth"])(i,r))return[[i,r]];var o=[],a=new Date(i.getFullYear(),i.getMonth()+1,1),s=this.toDate(a.getTime()-Am);if(!Object(ao["validateRangeInOneMonth"])(a,r))return console.warn("[ElementCalendar]start time and end time interval must not exceed two months"),[];o.push([i,s]);var l=this.realFirstDayOfWeek,c=a.getDay(),u=0;return c!==l&&(0===l?u=7-c:(u=l-c,u=u>0?u:7+u)),a=this.toDate(a.getTime()+u*Am),a.getDate()<r.getDate()&&o.push([a,r]),o}return[]},realFirstDayOfWeek:function(){return this.firstDayOfWeek<1||this.firstDayOfWeek>6?0:Math.floor(this.firstDayOfWeek)}},data:function(){return{selectedDay:"",now:new Date}}},Pm=Nm,Rm=s(Pm,wm,xm,!1,null,null,null);Rm.options.__file="packages/calendar/src/main.vue";var Fm=Rm.exports;Fm.install=function(e){e.component(Fm.name,Fm)};var jm=Fm,Bm=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick(t)}}},[e._t("default",[n("el-icon",{attrs:{name:"caret-top"}})])],2):e._e()])},zm=[];Bm._withStripped=!0;var Vm=function(e){return Math.pow(e,3)},$m=function(e){return e<.5?Vm(2*e)/2:1-Vm(2*(1-e))/2},Wm={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return this.bottom+"px"},styleRight:function(){return this.right+"px"}},mounted:function(){this.init(),this.throttledScrollHandler=Bh()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: "+this.target);this.container=this.el}},onScroll:function(){var e=this.el.scrollTop;this.visible=e>=this.visibilityHeight},handleClick:function(e){this.scrollToTop(),this.$emit("click",e)},scrollToTop:function(){var e=this.el,t=Date.now(),n=e.scrollTop,i=window.requestAnimationFrame||function(e){return setTimeout(e,16)},r=function r(){var o=(Date.now()-t)/500;o<1?(e.scrollTop=n*(1-$m(o)),i(r)):e.scrollTop=0};i(r)}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},Hm=Wm,Um=s(Hm,Bm,zm,!1,null,null,null);Um.options.__file="packages/backtop/src/main.vue";var qm=Um.exports;qm.install=function(e){e.component(qm.name,qm)};var Gm=qm,Km=function(e,t){if(e===window&&(e=document.documentElement),1!==e.nodeType)return[];var n=window.getComputedStyle(e,null);return t?n[t]:n},Ym=function(e){return Object.keys(e||{}).map((function(t){return[t,e[t]]}))},Xm=function(e,t){return e===window||e===document?document.documentElement[t]:e[t]},Zm=function(e){return Xm(e,"offsetHeight")},Qm=function(e){return Xm(e,"clientHeight")},Jm="ElInfiniteScroll",ev={delay:{type:Number,default:200},distance:{type:Number,default:0},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},tv=function(e,t){return Object(qd["isHtmlElement"])(e)?Ym(ev).reduce((function(n,i){var r=i[0],o=i[1],a=o.type,s=o.default,l=e.getAttribute("infinite-scroll-"+r);switch(l=Object(qd["isUndefined"])(t[l])?l:t[l],a){case Number:l=Number(l),l=Number.isNaN(l)?s:l;break;case Boolean:l=Object(qd["isDefined"])(l)?"false"!==l&&Boolean(l):s;break;default:l=a(l)}return n[r]=l,n}),{}):{}},nv=function(e){return e.getBoundingClientRect().top},iv=function(e){var t=this[Jm],n=t.el,i=t.vm,r=t.container,o=t.observer,a=tv(n,i),s=a.distance,l=a.disabled;if(!l){var c=r.getBoundingClientRect();if(c.width||c.height){var u=!1;if(r===n){var d=r.scrollTop+Qm(r);u=r.scrollHeight-d<=s}else{var h=Zm(n)+nv(n)-nv(r),f=Zm(r),p=Number.parseFloat(Km(r,"borderBottomWidth"));u=h-f+p<=s}u&&Object(qd["isFunction"])(e)?e.call(i):o&&(o.disconnect(),this[Jm].observer=null)}}},rv={name:"InfiniteScroll",inserted:function(e,t,n){var i=t.value,r=n.context,o=Object(je["getScrollContainer"])(e,!0),a=tv(e,r),s=a.delay,l=a.immediate,c=F()(s,iv.bind(e,i));if(e[Jm]={el:e,vm:r,container:o,onScroll:c},o&&(o.addEventListener("scroll",c),l)){var u=e[Jm].observer=new MutationObserver(c);u.observe(o,{childList:!0,subtree:!0}),c()}},unbind:function(e){var t=e[Jm],n=t.container,i=t.onScroll;n&&n.removeEventListener("scroll",i)},install:function(e){e.directive(rv.name,rv)}},ov=rv,av=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-page-header"},[n("div",{staticClass:"el-page-header__left",on:{click:function(t){e.$emit("back")}}},[n("i",{staticClass:"el-icon-back"}),n("div",{staticClass:"el-page-header__title"},[e._t("title",[e._v(e._s(e.title))])],2)]),n("div",{staticClass:"el-page-header__content"},[e._t("content",[e._v(e._s(e.content))])],2)])},sv=[];av._withStripped=!0;var lv={name:"ElPageHeader",props:{title:{type:String,default:function(){return Object(vs["t"])("el.pageHeader.title")}},content:String}},cv=lv,uv=s(cv,av,sv,!1,null,null,null);uv.options.__file="packages/page-header/src/main.vue";var dv=uv.exports;dv.install=function(e){e.component(dv.name,dv)};var hv=dv,fv=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-cascader-panel",e.border&&"is-bordered"],on:{keydown:e.handleKeyDown}},e._l(e.menus,(function(e,t){return n("cascader-menu",{key:t,ref:"menu",refInFor:!0,attrs:{index:t,nodes:e}})})),1)},pv=[];fv._withStripped=!0;var gv,mv,vv=n(44),bv=n.n(vv),yv=function(e){return e.stopPropagation()},_v={inject:["panel"],components:{ElCheckbox:Ni.a,ElRadio:bv.a},props:{node:{required:!0},nodeId:String},computed:{config:function(){return this.panel.config},isLeaf:function(){return this.node.isLeaf},isDisabled:function(){return this.node.isDisabled},checkedValue:function(){return this.panel.checkedValue},isChecked:function(){return this.node.isSameNode(this.checkedValue)},inActivePath:function(){return this.isInPath(this.panel.activePath)},inCheckedPath:function(){var e=this;return!!this.config.checkStrictly&&this.panel.checkedNodePaths.some((function(t){return e.isInPath(t)}))},value:function(){return this.node.getValueByOption()}},methods:{handleExpand:function(){var e=this,t=this.panel,n=this.node,i=this.isDisabled,r=this.config,o=r.multiple,a=r.checkStrictly;!a&&i||n.loading||(r.lazy&&!n.loaded?t.lazyLoad(n,(function(){var t=e.isLeaf;if(t||e.handleExpand(),o){var i=!!t&&n.checked;e.handleMultiCheckChange(i)}})):t.handleExpand(n))},handleCheckChange:function(){var e=this.panel,t=this.value,n=this.node;e.handleCheckChange(t),e.handleExpand(n)},handleMultiCheckChange:function(e){this.node.doCheck(e),this.panel.calculateMultiCheckedValue()},isInPath:function(e){var t=this.node,n=e[t.level-1]||{};return n.uid===t.uid},renderPrefix:function(e){var t=this.isLeaf,n=this.isChecked,i=this.config,r=i.checkStrictly,o=i.multiple;return o?this.renderCheckbox(e):r?this.renderRadio(e):t&&n?this.renderCheckIcon(e):null},renderPostfix:function(e){var t=this.node,n=this.isLeaf;return t.loading?this.renderLoadingIcon(e):n?null:this.renderExpandIcon(e)},renderCheckbox:function(e){var t=this.node,n=this.config,i=this.isDisabled,r={on:{change:this.handleMultiCheckChange},nativeOn:{}};return n.checkStrictly&&(r.nativeOn.click=yv),e("el-checkbox",td()([{attrs:{value:t.checked,indeterminate:t.indeterminate,disabled:i}},r]))},renderRadio:function(e){var t=this.checkedValue,n=this.value,i=this.isDisabled;return Object(b["isEqual"])(n,t)&&(n=t),e("el-radio",{attrs:{value:t,label:n,disabled:i},on:{change:this.handleCheckChange},nativeOn:{click:yv}},[e("span")])},renderCheckIcon:function(e){return e("i",{class:"el-icon-check el-cascader-node__prefix"})},renderLoadingIcon:function(e){return e("i",{class:"el-icon-loading el-cascader-node__postfix"})},renderExpandIcon:function(e){return e("i",{class:"el-icon-arrow-right el-cascader-node__postfix"})},renderContent:function(e){var t=this.panel,n=this.node,i=t.renderLabelFn,r=i?i({node:n,data:n.data}):null;return e("span",{class:"el-cascader-node__label"},[r||n.label])}},render:function(e){var t=this,n=this.inActivePath,i=this.inCheckedPath,r=this.isChecked,o=this.isLeaf,a=this.isDisabled,s=this.config,l=this.nodeId,c=s.expandTrigger,u=s.checkStrictly,d=s.multiple,h=!u&&a,f={on:{}};return"click"===c?f.on.click=this.handleExpand:(f.on.mouseenter=function(e){t.handleExpand(),t.$emit("expand",e)},f.on.focus=function(e){t.handleExpand(),t.$emit("expand",e)}),!o||a||u||d||(f.on.click=this.handleCheckChange),e("li",td()([{attrs:{role:"menuitem",id:l,"aria-expanded":n,tabindex:h?null:-1},class:{"el-cascader-node":!0,"is-selectable":u,"in-active-path":n,"in-checked-path":i,"is-active":r,"is-disabled":h}},f]),[this.renderPrefix(e),this.renderContent(e),this.renderPostfix(e)])}},wv=_v,xv=s(wv,gv,mv,!1,null,null,null);xv.options.__file="packages/cascader-panel/src/cascader-node.vue";var Cv,Sv,kv=xv.exports,Ov={name:"ElCascaderMenu",mixins:[v.a],inject:["panel"],components:{ElScrollbar:U.a,CascaderNode:kv},props:{nodes:{type:Array,required:!0},index:Number},data:function(){return{activeNode:null,hoverTimer:null,id:Object(b["generateId"])()}},computed:{isEmpty:function(){return!this.nodes.length},menuId:function(){return"cascader-menu-"+this.id+"-"+this.index}},methods:{handleExpand:function(e){this.activeNode=e.target},handleMouseMove:function(e){var t=this.activeNode,n=this.hoverTimer,i=this.$refs.hoverZone;if(t&&i)if(t.contains(e.target)){clearTimeout(n);var r=this.$el.getBoundingClientRect(),o=r.left,a=e.clientX-o,s=this.$el,l=s.offsetWidth,c=s.offsetHeight,u=t.offsetTop,d=u+t.offsetHeight;i.innerHTML='\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+u+" L"+l+" 0 V"+u+' Z" />\n <path style="pointer-events: auto;" fill="transparent" d="M'+a+" "+d+" L"+l+" "+c+" V"+d+' Z" />\n '}else n||(this.hoverTimer=setTimeout(this.clearHoverZone,this.panel.config.hoverThreshold))},clearHoverZone:function(){var e=this.$refs.hoverZone;e&&(e.innerHTML="")},renderEmptyText:function(e){return e("div",{class:"el-cascader-menu__empty-text"},[this.t("el.cascader.noData")])},renderNodeList:function(e){var t=this.menuId,n=this.panel.isHoverMenu,i={on:{}};n&&(i.on.expand=this.handleExpand);var r=this.nodes.map((function(n,r){var o=n.hasChildren;return e("cascader-node",td()([{key:n.uid,attrs:{node:n,"node-id":t+"-"+r,"aria-haspopup":o,"aria-owns":o?t:null}},i]))}));return[].concat(r,[n?e("svg",{ref:"hoverZone",class:"el-cascader-menu__hover-zone"}):null])}},render:function(e){var t=this.isEmpty,n=this.menuId,i={nativeOn:{}};return this.panel.isHoverMenu&&(i.nativeOn.mousemove=this.handleMouseMove),e("el-scrollbar",td()([{attrs:{tag:"ul",role:"menu",id:n,"wrap-class":"el-cascader-menu__wrap","view-class":{"el-cascader-menu__list":!0,"is-empty":t}},class:"el-cascader-menu"},i]),[t?this.renderEmptyText(e):this.renderNodeList(e)])}},Mv=Ov,Dv=s(Mv,Cv,Sv,!1,null,null,null);Dv.options.__file="packages/cascader-panel/src/cascader-menu.vue";var Ev=Dv.exports,Tv=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function Lv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Iv=0,Av=function(){function e(t,n,i){Lv(this,e),this.data=t,this.config=n,this.parent=i||null,this.level=this.parent?this.parent.level+1:1,this.uid=Iv++,this.initState(),this.initChildren()}return e.prototype.initState=function(){var e=this.config,t=e.value,n=e.label;this.value=this.data[t],this.label=this.data[n],this.pathNodes=this.calculatePathNodes(),this.path=this.pathNodes.map((function(e){return e.value})),this.pathLabels=this.pathNodes.map((function(e){return e.label})),this.loading=!1,this.loaded=!1},e.prototype.initChildren=function(){var t=this,n=this.config,i=n.children,r=this.data[i];this.hasChildren=Array.isArray(r),this.children=(r||[]).map((function(i){return new e(i,n,t)}))},e.prototype.calculatePathNodes=function(){var e=[this],t=this.parent;while(t)e.unshift(t),t=t.parent;return e},e.prototype.getPath=function(){return this.path},e.prototype.getValue=function(){return this.value},e.prototype.getValueByOption=function(){return this.config.emitPath?this.getPath():this.getValue()},e.prototype.getText=function(e,t){return e?this.pathLabels.join(t):this.label},e.prototype.isSameNode=function(e){var t=this.getValueByOption();return this.config.multiple&&Array.isArray(e)?e.some((function(e){return Object(b["isEqual"])(e,t)})):Object(b["isEqual"])(e,t)},e.prototype.broadcast=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r="onParent"+Object(b["capitalize"])(e);this.children.forEach((function(t){t&&(t.broadcast.apply(t,[e].concat(n)),t[r]&&t[r].apply(t,n))}))},e.prototype.emit=function(e){var t=this.parent,n="onChild"+Object(b["capitalize"])(e);if(t){for(var i=arguments.length,r=Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];t[n]&&t[n].apply(t,r),t.emit.apply(t,[e].concat(r))}},e.prototype.onParentCheck=function(e){this.isDisabled||this.setCheckState(e)},e.prototype.onChildCheck=function(){var e=this.children,t=e.filter((function(e){return!e.isDisabled})),n=!!t.length&&t.every((function(e){return e.checked}));this.setCheckState(n)},e.prototype.setCheckState=function(e){var t=this.children.length,n=this.children.reduce((function(e,t){var n=t.checked?1:t.indeterminate?.5:0;return e+n}),0);this.checked=e,this.indeterminate=n!==t&&n>0},e.prototype.syncCheckState=function(e){var t=this.getValueByOption(),n=this.isSameNode(e,t);this.doCheck(n)},e.prototype.doCheck=function(e){this.checked!==e&&(this.config.checkStrictly?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check")))},Tv(e,[{key:"isDisabled",get:function(){var e=this.data,t=this.parent,n=this.config,i=n.disabled,r=n.checkStrictly;return e[i]||!r&&t&&t.isDisabled}},{key:"isLeaf",get:function(){var e=this.data,t=this.loaded,n=this.hasChildren,i=this.children,r=this.config,o=r.lazy,a=r.leaf;if(o){var s=Object(Ot["isDef"])(e[a])?e[a]:!!t&&!i.length;return this.hasChildren=!s,s}return!n}}]),e}(),Nv=Av;function Pv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Rv=function e(t,n){return t.reduce((function(t,i){return i.isLeaf?t.push(i):(!n&&t.push(i),t=t.concat(e(i.children,n))),t}),[])},Fv=function(){function e(t,n){Pv(this,e),this.config=n,this.initNodes(t)}return e.prototype.initNodes=function(e){var t=this;e=Object(b["coerceTruthyValueToArray"])(e),this.nodes=e.map((function(e){return new Nv(e,t.config)})),this.flattedNodes=this.getFlattedNodes(!1,!1),this.leafNodes=this.getFlattedNodes(!0,!1)},e.prototype.appendNode=function(e,t){var n=new Nv(e,this.config,t),i=t?t.children:this.nodes;i.push(n)},e.prototype.appendNodes=function(e,t){var n=this;e=Object(b["coerceTruthyValueToArray"])(e),e.forEach((function(e){return n.appendNode(e,t)}))},e.prototype.getNodes=function(){return this.nodes},e.prototype.getFlattedNodes=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e?this.leafNodes:this.flattedNodes;return t?n:Rv(this.nodes,e)},e.prototype.getNodeByValue=function(e){var t=this.getFlattedNodes(!1,!this.config.lazy).filter((function(t){return Object(b["valueEquals"])(t.path,e)||t.value===e}));return t&&t.length?t[0]:null},e}(),jv=Fv,Bv=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zv=Sf.a.keys,Vv={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:b["noop"],value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},$v=function(e){return!e.getAttribute("aria-owns")},Wv=function(e,t){var n=e.parentNode;if(n){var i=n.querySelectorAll('.el-cascader-node[tabindex="-1"]'),r=Array.prototype.indexOf.call(i,e);return i[r+t]||null}return null},Hv=function(e,t){if(e){var n=e.id.split("-");return Number(n[n.length-2])}},Uv=function(e){e&&(e.focus(),!$v(e)&&e.click())},qv=function(e){if(e){var t=e.querySelector("input");t?t.click():$v(e)&&e.click()}},Gv={name:"ElCascaderPanel",components:{CascaderMenu:Ev},props:{value:{},options:Array,props:Object,border:{type:Boolean,default:!0},renderLabel:Function},provide:function(){return{panel:this}},data:function(){return{checkedValue:null,checkedNodePaths:[],store:[],menus:[],activePath:[],loadCount:0}},computed:{config:function(){return kt()(Bv({},Vv),this.props||{})},multiple:function(){return this.config.multiple},checkStrictly:function(){return this.config.checkStrictly},leafOnly:function(){return!this.checkStrictly},isHoverMenu:function(){return"hover"===this.config.expandTrigger},renderLabelFn:function(){return this.renderLabel||this.$scopedSlots.default}},watch:{value:function(){this.syncCheckedValue(),this.checkStrictly&&this.calculateCheckedNodePaths()},options:{handler:function(){this.initStore()},immediate:!0,deep:!0},checkedValue:function(e){Object(b["isEqual"])(e,this.value)||(this.checkStrictly&&this.calculateCheckedNodePaths(),this.$emit("input",e),this.$emit("change",e))}},mounted:function(){this.isEmptyValue(this.value)||this.syncCheckedValue()},methods:{initStore:function(){var e=this.config,t=this.options;e.lazy&&Object(b["isEmpty"])(t)?this.lazyLoad():(this.store=new jv(t,e),this.menus=[this.store.getNodes()],this.syncMenuState())},syncCheckedValue:function(){var e=this.value,t=this.checkedValue;Object(b["isEqual"])(e,t)||(this.activePath=[],this.checkedValue=e,this.syncMenuState())},syncMenuState:function(){var e=this.multiple,t=this.checkStrictly;this.syncActivePath(),e&&this.syncMultiCheckState(),t&&this.calculateCheckedNodePaths(),this.$nextTick(this.scrollIntoView)},syncMultiCheckState:function(){var e=this,t=this.getFlattedNodes(this.leafOnly);t.forEach((function(t){t.syncCheckState(e.checkedValue)}))},isEmptyValue:function(e){var t=this.multiple,n=this.config,i=n.emitPath;return!(!t&&!i)&&Object(b["isEmpty"])(e)},syncActivePath:function(){var e=this,t=this.store,n=this.multiple,i=this.activePath,r=this.checkedValue;if(Object(b["isEmpty"])(i))if(this.isEmptyValue(r))this.activePath=[],this.menus=[t.getNodes()];else{var o=n?r[0]:r,a=this.getNodeByValue(o)||{},s=(a.pathNodes||[]).slice(0,-1);this.expandNodes(s)}else{var l=i.map((function(t){return e.getNodeByValue(t.getValue())}));this.expandNodes(l)}},expandNodes:function(e){var t=this;e.forEach((function(e){return t.handleExpand(e,!0)}))},calculateCheckedNodePaths:function(){var e=this,t=this.checkedValue,n=this.multiple,i=n?Object(b["coerceTruthyValueToArray"])(t):[t];this.checkedNodePaths=i.map((function(t){var n=e.getNodeByValue(t);return n?n.pathNodes:[]}))},handleKeyDown:function(e){var t=e.target,n=e.keyCode;switch(n){case zv.up:var i=Wv(t,-1);Uv(i);break;case zv.down:var r=Wv(t,1);Uv(r);break;case zv.left:var o=this.$refs.menu[Hv(t)-1];if(o){var a=o.$el.querySelector('.el-cascader-node[aria-expanded="true"]');Uv(a)}break;case zv.right:var s=this.$refs.menu[Hv(t)+1];if(s){var l=s.$el.querySelector('.el-cascader-node[tabindex="-1"]');Uv(l)}break;case zv.enter:qv(t);break;case zv.esc:case zv.tab:this.$emit("close");break;default:return}},handleExpand:function(e,t){var n=this.activePath,i=e.level,r=n.slice(0,i-1),o=this.menus.slice(0,i);if(e.isLeaf||(r.push(e),o.push(e.children)),this.activePath=r,this.menus=o,!t){var a=r.map((function(e){return e.getValue()})),s=n.map((function(e){return e.getValue()}));Object(b["valueEquals"])(a,s)||(this.$emit("active-item-change",a),this.$emit("expand-change",a))}},handleCheckChange:function(e){this.checkedValue=e},lazyLoad:function(e,t){var n=this,i=this.config;e||(e=e||{root:!0,level:0},this.store=new jv([],i),this.menus=[this.store.getNodes()]),e.loading=!0;var r=function(i){var r=e.root?null:e;if(i&&i.length&&n.store.appendNodes(i,r),e.loading=!1,e.loaded=!0,Array.isArray(n.checkedValue)){var o=n.checkedValue[n.loadCount++],a=n.config.value,s=n.config.leaf;if(Array.isArray(i)&&i.filter((function(e){return e[a]===o})).length>0){var l=n.store.getNodeByValue(o);l.data[s]||n.lazyLoad(l,(function(){n.handleExpand(l)})),n.loadCount===n.checkedValue.length&&n.$parent.computePresentText()}}t&&t(i)};i.lazyLoad(e,r)},calculateMultiCheckedValue:function(){this.checkedValue=this.getCheckedNodes(this.leafOnly).map((function(e){return e.getValueByOption()}))},scrollIntoView:function(){if(!this.$isServer){var e=this.$refs.menu||[];e.forEach((function(e){var t=e.$el;if(t){var n=t.querySelector(".el-scrollbar__wrap"),i=t.querySelector(".el-cascader-node.is-active")||t.querySelector(".el-cascader-node.in-active-path");ni()(n,i)}}))}},getNodeByValue:function(e){return this.store.getNodeByValue(e)},getFlattedNodes:function(e){var t=!this.config.lazy;return this.store.getFlattedNodes(e,t)},getCheckedNodes:function(e){var t=this.checkedValue,n=this.multiple;if(n){var i=this.getFlattedNodes(e);return i.filter((function(e){return e.checked}))}return this.isEmptyValue(t)?[]:[this.getNodeByValue(t)]},clearCheckedNodes:function(){var e=this.config,t=this.leafOnly,n=e.multiple,i=e.emitPath;n?(this.getCheckedNodes(t).filter((function(e){return!e.isDisabled})).forEach((function(e){return e.doCheck(!1)})),this.calculateMultiCheckedValue()):this.checkedValue=i?[]:null}}},Kv=Gv,Yv=s(Kv,fv,pv,!1,null,null,null);Yv.options.__file="packages/cascader-panel/src/cascader-panel.vue";var Xv=Yv.exports;Xv.install=function(e){e.component(Xv.name,Xv)};var Zv,Qv,Jv=Xv,eb={name:"ElAvatar",props:{size:{type:[Number,String],validator:function(e){return"string"===typeof e?["large","medium","small"].includes(e):"number"===typeof e}},shape:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e)}},icon:String,src:String,alt:String,srcSet:String,error:Function,fit:{type:String,default:"cover"}},data:function(){return{isImageExist:!0}},computed:{avatarClass:function(){var e=this.size,t=this.icon,n=this.shape,i=["el-avatar"];return e&&"string"===typeof e&&i.push("el-avatar--"+e),t&&i.push("el-avatar--icon"),n&&i.push("el-avatar--"+n),i.join(" ")}},methods:{handleError:function(){var e=this.error,t=e?e():void 0;!1!==t&&(this.isImageExist=!1)},renderAvatar:function(){var e=this.$createElement,t=this.icon,n=this.src,i=this.alt,r=this.isImageExist,o=this.srcSet,a=this.fit;return r&&n?e("img",{attrs:{src:n,alt:i,srcSet:o},on:{error:this.handleError},style:{"object-fit":a}}):t?e("i",{class:t}):this.$slots.default}},render:function(){var e=arguments[0],t=this.avatarClass,n=this.size,i="number"===typeof n?{height:n+"px",width:n+"px",lineHeight:n+"px"}:{};return e("span",{class:t,style:i},[this.renderAvatar()])}},tb=eb,nb=s(tb,Zv,Qv,!1,null,null,null);nb.options.__file="packages/avatar/src/main.vue";var ib=nb.exports;ib.install=function(e){e.component(ib.name,ib)};var rb=ib,ob=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-drawer-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-drawer__wrapper",attrs:{tabindex:"-1"}},[n("div",{staticClass:"el-drawer__container",class:e.visible&&"el-drawer__open",attrs:{role:"document",tabindex:"-1"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{ref:"drawer",staticClass:"el-drawer",class:[e.direction,e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,attrs:{"aria-modal":"true","aria-labelledby":"el-drawer__title","aria-label":e.title,role:"dialog",tabindex:"-1"}},[e.withHeader?n("header",{staticClass:"el-drawer__header",attrs:{id:"el-drawer__title"}},[e._t("title",[n("span",{attrs:{role:"heading",title:e.title}},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-drawer__close-btn",attrs:{"aria-label":"close "+(e.title||"drawer"),type:"button"},on:{click:e.closeDrawer}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2):e._e(),e.rendered?n("section",{staticClass:"el-drawer__body"},[e._t("default")],2):e._e()])])])])},ab=[];ob._withStripped=!0;var sb={name:"ElDrawer",mixins:[S.a,D.a],props:{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},customClass:{type:String,default:""},closeOnPressEscape:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},direction:{type:String,default:"rtl",validator:function(e){return-1!==["ltr","rtl","ttb","btt"].indexOf(e)}},modalAppendToBody:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},size:{type:[Number,String],default:"30%"},title:{type:String,default:""},visible:{type:Boolean},wrapperClosable:{type:Boolean,default:!0},withHeader:{type:Boolean,default:!0}},computed:{isHorizontal:function(){return"rtl"===this.direction||"ltr"===this.direction},drawerSize:function(){return"number"===typeof this.size?this.size+"px":this.size}},data:function(){return{closed:!1,prevActiveElement:null}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.appendToBody&&document.body.appendChild(this.$el),this.prevActiveElement=document.activeElement):(this.closed||(this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1)),this.$nextTick((function(){t.prevActiveElement&&t.prevActiveElement.focus()})))}},methods:{afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),!0===this.destroyOnClose&&(this.rendered=!1),this.closed=!0)},handleWrapperClick:function(){this.wrapperClosable&&this.closeDrawer()},closeDrawer:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},handleClose:function(){this.closeDrawer()}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},lb=sb,cb=s(lb,ob,ab,!1,null,null,null);cb.options.__file="packages/drawer/src/main.vue";var ub=cb.exports;ub.install=function(e){e.component(ub.name,ub)};var db=ub,hb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-statistic"},[e.title||e.$slots.title?n("div",{staticClass:"head"},[e._t("title",[n("span",{staticClass:"title"},[e._v("\n "+e._s(e.title)+"\n ")])])],2):e._e(),n("div",{staticClass:"con"},[e.prefix||e.$slots.prefix?n("span",{staticClass:"prefix"},[e._t("prefix",[e._v("\n "+e._s(e.prefix)+"\n ")])],2):e._e(),n("span",{staticClass:"number",style:e.valueStyle},[e._t("formatter",[e._v(" "+e._s(e.disposeValue))])],2),e.suffix||e.$slots.suffix?n("span",{staticClass:"suffix"},[e._t("suffix",[e._v("\n "+e._s(e.suffix)+"\n ")])],2):e._e()])])},fb=[];hb._withStripped=!0;var pb=n(28),gb={name:"ElStatistic",data:function(){return{disposeValue:"",timeTask:null,REFRESH_INTERVAL:1e3/30}},props:{decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:""},precision:{type:Number,default:null},value:{type:[String,Number],default:""},prefix:{type:String,default:""},suffix:{type:String,default:""},title:{type:[String,Number],default:""},timeIndices:{type:Boolean,default:!1},valueStyle:{type:Object,default:function(){return{}}},format:{type:String,default:"HH:mm:ss:SSS"},rate:{type:Number,default:1e3}},created:function(){this.branch()},watch:{value:function(){this.branch()}},methods:{branch:function(){var e=this.timeIndices,t=this.countDown,n=this.dispose;e?t():n()},magnification:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:",",i=String(t).length-1,r=new RegExp("\\d{1,"+i+"}(?=(\\d{"+i+"})+$)","g"),o=String(e).replace(r,"$&,").split(",").join(n);return o},dispose:function(){var e=this.value,t=this.precision,n=this.groupSeparator,i=this.rate;if(!Object(pb["isNumber"])(e))return!1;var r=String(e).split("."),o=r[0],a=r[1];t&&(a=""+(a||"")+1..toFixed(t).replace(".","").slice(1),a=a.slice(0,t));var s=0;return n&&(o=this.magnification(o,i,n)),s=[o,a].join(a?this.decimalSeparator:""),this.disposeValue=s,s},diffDate:function(e,t){return Math.max(e-t,0)},suspend:function(e){return e?this.timeTask&&(clearInterval(this.timeTask),this.timeTask=null):this.branch(),this.disposeValue},formatTimeStr:function(e){var t=this.format,n=/\[[^\]]*]/g,i=(t.match(n)||[]).map((function(e){return e.slice(1,-1)})),r=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]],o=Object(pb["reduce"])(r,(function(t,n){var i=n[0];return t.replace(new RegExp(i+"+","g"),(function(t){var i=Object(pb["chain"])(e).divide(n[1]).floor(0).value();return e-=Object(pb["multiply"])(i,n[1]),Object(pb["padStart"])(String(i),String(t).length,0)}))}),t),a=0;return o.replace(n,(function(){var e=i[a];return a+=1,e}))},stopTime:function(e){var t=!0;return e?(this.$emit("change",e),t=!1):(t=!0,this.suspend(!0),this.$emit("finish",!0)),t},countDown:function(){var e=this.REFRESH_INTERVAL,t=this.timeTask,n=this.diffDate,i=this.formatTimeStr,r=this.stopTime,o=this.suspend;if(!t){var a=this;this.timeTask=setInterval((function(){var e=n(a.value,Date.now());a.disposeValue=i(e),r(e)}),e),this.$once("hook:beforeDestroy",(function(){o(!0)}))}}}},mb=gb,vb=s(mb,hb,fb,!1,null,null,null);vb.options.__file="packages/statistic/src/main.vue";var bb=vb.exports;bb.install=function(e){e.component(bb.name,bb)};var yb=bb,_b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-popover",e._b({attrs:{trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},"el-popover",e.$attrs,!1),[n("div",{staticClass:"el-popconfirm"},[n("p",{staticClass:"el-popconfirm__main"},[e.hideIcon?e._e():n("i",{staticClass:"el-popconfirm__icon",class:e.icon,style:{color:e.iconColor}}),e._v("\n "+e._s(e.title)+"\n ")]),n("div",{staticClass:"el-popconfirm__action"},[n("el-button",{attrs:{size:"mini",type:e.cancelButtonType},on:{click:e.cancel}},[e._v("\n "+e._s(e.displayCancelButtonText)+"\n ")]),n("el-button",{attrs:{size:"mini",type:e.confirmButtonType},on:{click:e.confirm}},[e._v("\n "+e._s(e.displayConfirmButtonText)+"\n ")])],1)]),e._t("reference",null,{slot:"reference"})],2)},wb=[];_b._withStripped=!0;var xb=n(45),Cb=n.n(xb),Sb={name:"ElPopconfirm",props:{title:{type:String},confirmButtonText:{type:String},cancelButtonText:{type:String},confirmButtonType:{type:String,default:"primary"},cancelButtonType:{type:String,default:"text"},icon:{type:String,default:"el-icon-question"},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1}},components:{ElPopover:Cb.a,ElButton:ae.a},data:function(){return{visible:!1}},computed:{displayConfirmButtonText:function(){return this.confirmButtonText||Object(vs["t"])("el.popconfirm.confirmButtonText")},displayCancelButtonText:function(){return this.cancelButtonText||Object(vs["t"])("el.popconfirm.cancelButtonText")}},methods:{confirm:function(){this.visible=!1,this.$emit("confirm")},cancel:function(){this.visible=!1,this.$emit("cancel")}}},kb=Sb,Ob=s(kb,_b,wb,!1,null,null,null);Ob.options.__file="packages/popconfirm/src/main.vue";var Mb=Ob.exports;Mb.install=function(e){e.component(Mb.name,Mb)};var Db=Mb,Eb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.uiLoading?[n("div",e._b({class:["el-skeleton",e.animated?"is-animated":""]},"div",e.$attrs,!1),[e._l(e.count,(function(t){return[e.loading?e._t("template",e._l(e.rows,(function(i){return n("el-skeleton-item",{key:t+"-"+i,class:{"el-skeleton__paragraph":1!==i,"is-first":1===i,"is-last":i===e.rows&&e.rows>1},attrs:{variant:"p"}})}))):e._e()]}))],2)]:[e._t("default",null,null,e.$attrs)]],2)},Tb=[];Eb._withStripped=!0;var Lb={name:"ElSkeleton",props:{animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:4},loading:{type:Boolean,default:!0},throttle:{type:Number,default:0}},watch:{loading:{handler:function(e){var t=this;this.throttle<=0?this.uiLoading=e:e?(clearTimeout(this.timeoutHandle),this.timeoutHandle=setTimeout((function(){t.uiLoading=t.loading}),this.throttle)):this.uiLoading=e},immediate:!0}},data:function(){return{uiLoading:this.throttle<=0&&this.loading}}},Ib=Lb,Ab=s(Ib,Eb,Tb,!1,null,null,null);Ab.options.__file="packages/skeleton/src/index.vue";var Nb=Ab.exports;Nb.install=function(e){e.component(Nb.name,Nb)};var Pb=Nb,Rb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-skeleton__item","el-skeleton__"+e.variant]},["image"===e.variant?n("img-placeholder"):e._e()],1)},Fb=[];Rb._withStripped=!0;var jb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M64 896V128h896v768H64z m64-128l192-192 116.352 116.352L640 448l256 307.2V192H128v576z m224-480a96 96 0 1 1-0.064 192.064A96 96 0 0 1 352 288z"}})])},Bb=[];jb._withStripped=!0;var zb={name:"ImgPlaceholder"},Vb=zb,$b=s(Vb,jb,Bb,!1,null,null,null);$b.options.__file="packages/skeleton/src/img-placeholder.vue";var Wb,Hb=$b.exports,Ub={name:"ElSkeletonItem",props:{variant:{type:String,default:"text"}},components:(Wb={},Wb[Hb.name]=Hb,Wb)},qb=Ub,Gb=s(qb,Rb,Fb,!1,null,null,null);Gb.options.__file="packages/skeleton/src/item.vue";var Kb=Gb.exports;Kb.install=function(e){e.component(Kb.name,Kb)};var Yb=Kb,Xb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-empty"},[n("div",{staticClass:"el-empty__image",style:e.imageStyle},[e.image?n("img",{attrs:{src:e.image,ondragstart:"return false"}}):e._t("image",[n("img-empty")])],2),n("div",{staticClass:"el-empty__description"},[e.$slots.description?e._t("description"):n("p",[e._v(e._s(e.emptyDescription))])],2),e.$slots.default?n("div",{staticClass:"el-empty__bottom"},[e._t("default")],2):e._e()])},Zb=[];Xb._withStripped=!0;var Qb=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("linearGradient",{attrs:{id:"linearGradient-1-"+e.id,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#EEEFF3",offset:"100%"}})],1),n("linearGradient",{attrs:{id:"linearGradient-2-"+e.id,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"}},[n("stop",{attrs:{"stop-color":"#FCFCFD",offset:"0%"}}),n("stop",{attrs:{"stop-color":"#E9EBEF",offset:"100%"}})],1),n("rect",{attrs:{id:"path-3-"+e.id,x:"0",y:"0",width:"17",height:"36"}})],1),n("g",{attrs:{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"B-type",transform:"translate(-1268.000000, -535.000000)"}},[n("g",{attrs:{id:"Group-2",transform:"translate(1268.000000, 535.000000)"}},[n("path",{attrs:{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:"#F7F8FC"}}),n("polygon",{attrs:{id:"Rectangle-Copy-14",fill:"#E5E7E9",transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"}}),n("g",{attrs:{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"}},[n("polygon",{attrs:{id:"Rectangle-Copy-10",fill:"#E5E7E9",transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"}}),n("polygon",{attrs:{id:"Rectangle-Copy-11",fill:"#EDEEF2",points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"}}),n("rect",{attrs:{id:"Rectangle-Copy-12",fill:"url(#linearGradient-1-"+e.id+")",transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"}}),n("polygon",{attrs:{id:"Rectangle-Copy-13",fill:"#F8F9FB",transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"}})]),n("rect",{attrs:{id:"Rectangle-Copy-15",fill:"url(#linearGradient-2-"+e.id+")",x:"13",y:"45",width:"40",height:"36"}}),n("g",{attrs:{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"}},[n("mask",{attrs:{id:"mask-4-"+e.id,fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-3-"+e.id}})]),n("use",{attrs:{id:"Mask",fill:"#E0E3E9",transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":"#path-3-"+e.id}}),n("polygon",{attrs:{id:"Rectangle-Copy",fill:"#D5D7DE",mask:"url(#mask-4-"+e.id+")",transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 -1.70530257e-13 16"}})]),n("polygon",{attrs:{id:"Rectangle-Copy-18",fill:"#F8F9FB",transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"}})])])])])},Jb=[];Qb._withStripped=!0;var ey=0,ty={name:"ImgEmpty",data:function(){return{id:++ey}}},ny=ty,iy=s(ny,Qb,Jb,!1,null,null,null);iy.options.__file="packages/empty/src/img-empty.vue";var ry,oy=iy.exports,ay={name:"ElEmpty",components:(ry={},ry[oy.name]=oy,ry),props:{image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},computed:{emptyDescription:function(){return this.description||Object(vs["t"])("el.empty.description")},imageStyle:function(){return{width:this.imageSize?this.imageSize+"px":""}}}},sy=ay,ly=s(sy,Xb,Zb,!1,null,null,null);ly.options.__file="packages/empty/src/index.vue";var cy=ly.exports;cy.install=function(e){e.component(cy.name,cy)};var uy,dy=cy,hy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fy={name:"ElDescriptionsRow",props:{row:{type:Array}},inject:["elDescriptions"],render:function(e){var t=this.elDescriptions,n=(this.row||[]).map((function(e){return hy({},e,{label:e.slots.label||e.props.label},["labelClassName","contentClassName","labelStyle","contentStyle"].reduce((function(n,i){return n[i]=e.props[i]||t[i],n}),{}))}));return"vertical"===t.direction?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"has-colon":!t.border&&t.colon,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:n.props.span}},[n.label])}))]),e("tr",{class:"el-descriptions-row"},[n.map((function(t){return e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",t.contentClassName],style:t.contentStyle,attrs:{colSpan:t.props.span}},[t.slots.default])}))])]):t.border?e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return[e("th",{class:(i={"el-descriptions-item__cell":!0,"el-descriptions-item__label":!0,"is-bordered-label":t.border},i[n.labelClassName]=!0,i),style:n.labelStyle,attrs:{colSpan:"1"}},[n.label]),e("td",{class:["el-descriptions-item__cell","el-descriptions-item__content",n.contentClassName],style:n.contentStyle,attrs:{colSpan:2*n.props.span-1}},[n.slots.default])]}))])]):e("tbody",[e("tr",{class:"el-descriptions-row"},[n.map((function(n){var i;return e("td",{class:"el-descriptions-item el-descriptions-item__cell",attrs:{colSpan:n.props.span}},[e("div",{class:"el-descriptions-item__container"},[e("span",{class:(i={"el-descriptions-item__label":!0,"has-colon":t.colon},i[n.labelClassName]=!0,i),style:n.labelStyle},[n.label]),e("span",{class:["el-descriptions-item__content",n.contentClassName],style:n.contentStyle},[n.slots.default])])])}))])])}},py=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},gy={name:"ElDescriptions",components:(uy={},uy[fy.name]=fy,uy),props:{border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,default:"horizontal"},size:{type:String},title:{type:String,default:""},extra:{type:String,default:""},labelStyle:{type:Object},contentStyle:{type:Object},labelClassName:{type:String,default:""},contentClassName:{type:String,default:""},colon:{type:Boolean,default:!0}},computed:{descriptionsSize:function(){return this.size||(this.$ELEMENT||{}).size}},provide:function(){return{elDescriptions:this}},methods:{getOptionProps:function(e){if(e.componentOptions){var t=e.componentOptions,n=t.propsData,i=void 0===n?{}:n,r=t.Ctor,o=void 0===r?{}:r,a=(o.options||{}).props||{},s={};for(var l in a){var c=a[l],u=c.default;void 0!==u&&(s[l]=Object(qd["isFunction"])(u)?u.call(e):u)}return py({},s,i)}return{}},getSlots:function(e){var t=this,n=e.componentOptions||{},i=e.children||n.children||[],r={};return i.forEach((function(e){if(!t.isEmptyElement(e)){var n=e.data&&e.data.slot||"default";r[n]=r[n]||[],"template"===e.tag?r[n].push(e.children):r[n].push(e)}})),py({},r)},isEmptyElement:function(e){return!(e.tag||e.text&&""!==e.text.trim())},filledNode:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.props||(e.props={}),t>n&&(e.props.span=n),i&&(e.props.span=n),e},getRows:function(){var e=this,t=(this.$slots.default||[]).filter((function(e){return e.tag&&e.componentOptions&&"ElDescriptionsItem"===e.componentOptions.Ctor.options.name})),n=t.map((function(t){return{props:e.getOptionProps(t),slots:e.getSlots(t),vnode:t}})),i=[],r=[],o=this.column;return n.forEach((function(n,a){var s=n.props.span||1;if(a===t.length-1)return r.push(e.filledNode(n,s,o,!0)),void i.push(r);s<o?(o-=s,r.push(n)):(r.push(e.filledNode(n,s,o)),i.push(r),o=e.column,r=[])})),i}},render:function(){var e=arguments[0],t=this.title,n=this.extra,i=this.border,r=this.descriptionsSize,o=this.$slots,a=this.getRows();return e("div",{class:"el-descriptions"},[t||n||o.title||o.extra?e("div",{class:"el-descriptions__header"},[e("div",{class:"el-descriptions__title"},[o.title?o.title:t]),e("div",{class:"el-descriptions__extra"},[o.extra?o.extra:n])]):null,e("div",{class:"el-descriptions__body"},[e("table",{class:["el-descriptions__table",{"is-bordered":i},r?"el-descriptions--"+r:""]},[a.map((function(t){return e(fy,{attrs:{row:t}})}))])])])},install:function(e){e.component(gy.name,gy)}},my=gy,vy={name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},contentClassName:{type:String,default:""},contentStyle:{type:Object},labelClassName:{type:String,default:""},labelStyle:{type:Object}},render:function(){return null},install:function(e){e.component(vy.name,vy)}},by=vy,yy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-result"},[n("div",{staticClass:"el-result__icon"},[e._t("icon",[n(e.iconElement,{tag:"component",class:e.iconElement})])],2),e.title||e.$slots.title?n("div",{staticClass:"el-result__title"},[e._t("title",[n("p",[e._v(e._s(e.title))])])],2):e._e(),e.subTitle||e.$slots.subTitle?n("div",{staticClass:"el-result__subtitle"},[e._t("subTitle",[n("p",[e._v(e._s(e.subTitle))])])],2):e._e(),e.$slots.extra?n("div",{staticClass:"el-result__extra"},[e._t("extra")],2):e._e()])},_y=[];yy._withStripped=!0;var wy=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M34.5548098,16.4485711 C33.9612228,15.8504763 32.9988282,15.8504763 32.4052412,16.4485711 L32.4052412,16.4485711 L21.413757,27.5805811 L21.413757,27.5805811 L21.4034642,27.590855 C21.0097542,27.9781674 20.3766105,27.9729811 19.9892981,27.5792711 L19.9892981,27.5792711 L15.5947588,23.1121428 C15.0011718,22.514048 14.0387772,22.514048 13.4451902,23.1121428 C12.8516033,23.7102376 12.8516033,24.6799409 13.4451902,25.2780357 L13.4451902,25.2780357 L19.6260786,31.5514289 C20.2196656,32.1495237 21.1820602,32.1495237 21.7756472,31.5514289 L21.7756472,31.5514289 L34.5548098,18.614464 C35.1483967,18.0163692 35.1483967,17.0466659 34.5548098,16.4485711 Z"}})])},xy=[];wy._withStripped=!0;var Cy={name:"IconSuccess"},Sy=Cy,ky=s(Sy,wy,xy,!1,null,null,null);ky.options.__file="packages/result/src/icon-success.vue";var Oy=ky.exports,My=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.57818,15.42182 C32.0157534,14.8593933 31.1038797,14.8593933 30.541453,15.42182 L30.541453,15.42182 L24.0006789,21.9625941 L17.458547,15.42182 C16.8961203,14.8593933 15.9842466,14.8593933 15.42182,15.42182 C14.8593933,15.9842466 14.8593933,16.8961203 15.42182,17.458547 L15.42182,17.458547 L21.9639519,23.9993211 L15.42182,30.541453 C14.8593933,31.1038797 14.8593933,32.0157534 15.42182,32.57818 C15.9842466,33.1406067 16.8961203,33.1406067 17.458547,32.57818 L17.458547,32.57818 L24.0006789,26.0360481 L30.541453,32.57818 C31.1038797,33.1406067 32.0157534,33.1406067 32.57818,32.57818 C33.1406067,32.0157534 33.1406067,31.1038797 32.57818,30.541453 L32.57818,30.541453 L26.0374059,23.9993211 L32.57818,17.458547 C33.1406067,16.8961203 33.1406067,15.9842466 32.57818,15.42182 Z"}})])},Dy=[];My._withStripped=!0;var Ey={name:"IconError"},Ty=Ey,Ly=s(Ty,My,Dy,!1,null,null,null);Ly.options.__file="packages/result/src/icon-error.vue";var Iy=Ly.exports,Ay=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,31 C22.8954305,31 22,31.8954305 22,33 C22,34.1045695 22.8954305,35 24,35 C25.1045695,35 26,34.1045695 26,33 C26,31.8954305 25.1045695,31 24,31 Z M24,14 C23.1715729,14 22.5,14.6715729 22.5,15.5 L22.5,15.5 L22.5,27.5 C22.5,28.3284271 23.1715729,29 24,29 C24.8284271,29 25.5,28.3284271 25.5,27.5 L25.5,27.5 L25.5,15.5 C25.5,14.6715729 24.8284271,14 24,14 Z"}})])},Ny=[];Ay._withStripped=!0;var Py={name:"IconWarning"},Ry=Py,Fy=s(Ry,Ay,Ny,!1,null,null,null);Fy.options.__file="packages/result/src/icon-warning.vue";var jy=Fy.exports,By=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M24,19 L21,19 C20.1715729,19 19.5,19.6715729 19.5,20.5 C19.5,21.3284271 20.1715729,22 21,22 L21,22 L22.5,22 L22.5,31 L21,31 C20.1715729,31 19.5,31.6715729 19.5,32.5 C19.5,33.3284271 20.1715729,34 21,34 L21,34 L27,34 C27.8284271,34 28.5,33.3284271 28.5,32.5 C28.5,31.6715729 27.8284271,31 27,31 L27,31 L25.5,31 L25.5,20.5 C25.5,19.6715729 24.8284271,19 24,19 L24,19 Z M24,13 C22.8954305,13 22,13.8954305 22,15 C22,16.1045695 22.8954305,17 24,17 C25.1045695,17 26,16.1045695 26,15 C26,13.8954305 25.1045695,13 24,13 Z"}})])},zy=[];By._withStripped=!0;var Vy={name:"IconInfo"},$y=Vy,Wy=s($y,By,zy,!1,null,null,null);Wy.options.__file="packages/result/src/icon-info.vue";var Hy,Uy=Wy.exports,qy={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Gy={name:"ElResult",components:(Hy={},Hy[Oy.name]=Oy,Hy[Iy.name]=Iy,Hy[jy.name]=jy,Hy[Uy.name]=Uy,Hy),props:{title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,default:"info"}},computed:{iconElement:function(){var e=this.icon;return e&&qy[e]?qy[e]:"icon-info"}}},Ky=Gy,Yy=s(Ky,yy,_y,!1,null,null,null);Yy.options.__file="packages/result/src/index.vue";var Xy=Yy.exports;Xy.install=function(e){e.component(Xy.name,Xy)};var Zy=Xy,Qy=[_,A,re,fe,_e,Me,Ue,et,ct,mt,Lt,Bt,qt,en,ln,gn,xn,En,Rn,li,ci,mi,Ci,Ti,Yr,io,Ia,Ha,is,hs,ps,qs,Js,al,wl,$l,Zl,nc,Lc,Bc,gu,zu,$u,Uu,Sd,Ld,jd,sh,ph,wh,Dh,Ph,Hh,Yh,rf,df,bf,Af,Ap,qp,Jp,ag,fg,_g,Eg,Ng,Vg,Kg,tm,_m,jm,Gm,hv,Jv,rb,db,yb,Db,Pb,Yb,dy,my,by,Zy,Ge.a],Jy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};bs.a.use(t.locale),bs.a.i18n(t.i18n),Qy.forEach((function(t){e.component(t.name,t)})),e.use(ov),e.use(Au.directive),e.prototype.$ELEMENT={size:t.size||"",zIndex:t.zIndex||2e3},e.prototype.$loading=Au.service,e.prototype.$msgbox=Bs,e.prototype.$alert=Bs.alert,e.prototype.$confirm=Bs.confirm,e.prototype.$prompt=Bs.prompt,e.prototype.$notify=Jc,e.prototype.$message=eh};"undefined"!==typeof window&&window.Vue&&Jy(window.Vue);t["default"]={version:"2.15.13",locale:bs.a.use,i18n:bs.a.i18n,install:Jy,CollapseTransition:Ge.a,Loading:Au,Pagination:_,Dialog:A,Autocomplete:re,Dropdown:fe,DropdownMenu:_e,DropdownItem:Me,Menu:Ue,Submenu:et,MenuItem:ct,MenuItemGroup:mt,Input:Lt,InputNumber:Bt,Radio:qt,RadioGroup:en,RadioButton:ln,Checkbox:gn,CheckboxButton:xn,CheckboxGroup:En,Switch:Rn,Select:li,Option:ci,OptionGroup:mi,Button:Ci,ButtonGroup:Ti,Table:Yr,TableColumn:io,DatePicker:Ia,TimeSelect:Ha,TimePicker:is,Popover:hs,Tooltip:ps,MessageBox:Bs,Breadcrumb:qs,BreadcrumbItem:Js,Form:al,FormItem:wl,Tabs:$l,TabPane:Zl,Tag:nc,Tree:Lc,Alert:Bc,Notification:Jc,Slider:gu,Icon:zu,Row:$u,Col:Uu,Upload:Sd,Progress:Ld,Spinner:jd,Message:eh,Badge:sh,Card:ph,Rate:wh,Steps:Dh,Step:Ph,Carousel:Hh,Scrollbar:Yh,CarouselItem:rf,Collapse:df,CollapseItem:bf,Cascader:Af,ColorPicker:Ap,Transfer:qp,Container:Jp,Header:ag,Aside:fg,Main:_g,Footer:Eg,Timeline:Ng,TimelineItem:Vg,Link:Kg,Divider:tm,Image:_m,Calendar:jm,Backtop:Gm,InfiniteScroll:ov,PageHeader:hv,CascaderPanel:Jv,Avatar:rb,Drawer:db,Statistic:yb,Popconfirm:Db,Skeleton:Pb,SkeletonItem:Yb,Empty:dy,Descriptions:my,DescriptionsItem:by,Result:Zy}}])["default"]},"5ca1":function(e,t,n){var i=n("7726"),r=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,h,f,p=e&c.F,g=e&c.G,m=e&c.S,v=e&c.P,b=e&c.B,y=g?i:m?i[t]||(i[t]={}):(i[t]||{})[l],_=g?r:r[t]||(r[t]={}),w=_[l]||(_[l]={});for(u in g&&(n=t),n)d=!p&&y&&void 0!==y[u],h=(d?y:n)[u],f=b&&d?s(h,i):v&&"function"==typeof h?s(Function.call,h):h,y&&a(y,u,h,e&c.U),_[u]!=h&&o(_,u,f),v&&w[u]!=h&&(w[u]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5cc5":function(e,t,n){var i=n("2b4c")("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,(function(){throw 2}))}catch(a){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var o=[7],s=o[i]();s.next=function(){return{done:n=!0}},o[i]=function(){return s},e(o)}catch(a){}return n}},"5d34":function(e,t,n){var i=n("1b14"),r=n("90e4");function o(e,t,n){if(e){i(e)||(e=r(e));for(var o=e.length-1;o>=0;o--)if(t.call(n,e[o],o,e))return e[o]}}e.exports=o},"5d37":function(e,t,n){},"5d40":function(e,t,n){n("28e4")("WeakMap")},"5d90":function(e,t,n){n("28e4")("WeakSet")},"5dbc":function(e,t,n){var i=n("d3f4"),r=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(e,o),e}},"5df2":function(e,t,n){var i=n("5ca1"),r=n("d752");i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},"5df3":function(e,t,n){"use strict";var i=n("02f4")(!0);n("01f9")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"5e07":function(e,t,n){},"5eda":function(e,t,n){var i=n("5ca1"),r=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),i(i.S+i.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var i=n("23c6"),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"5ff6":function(e,t,n){var i=n("79ac");function r(){return i(arguments)}e.exports=r},"604a":function(e,t){function n(e,t){return!(!e||!e.hasOwnProperty)&&e.hasOwnProperty(t)}e.exports=n},6095:function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(4);i(i.P+i.F*!n("2f21")([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},"60f1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;var i={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.legendConfig=i},"60f7":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=d;var r=i(n("9523")),o=i(n("278c")),a=i(n("7037")),s=n("18ad"),l=n("5557"),c=n("9d85"),u=n("becb");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.legend;n?(n=(0,u.deepMerge)((0,l.deepClone)(c.legendConfig,!0),n),n=h(n),n=f(n,t,e),n=p(n,e),n=v(n,e),n=[n]):n=[],(0,s.doUpdate)({chart:e,series:n,key:"legendIcon",getGraphConfig:D}),(0,s.doUpdate)({chart:e,series:n,key:"legendText",getGraphConfig:L})}function h(e){var t=e.data;return e.data=t.map((function(e){var t=(0,a["default"])(e);return"string"===t?{name:e}:"object"===t?e:{name:""}})),e}function f(e,t,n){var i=t.series,r=n.legendStatus,o=e.data.filter((function(e){var t=e.name,n=i.find((function(e){var n=e.name;return t===n}));return!!n&&(e.color||(e.color=n.color),e.icon||(e.icon=n.type),e)}));return r&&r.length===e.data.length||(r=new Array(e.data.length).fill(!0)),o.forEach((function(e,t){return e.status=r[t]})),e.data=o,n.legendStatus=r,e}function p(e,t){var n=t.render.ctx,i=e.data,r=e.textStyle,o=e.textUnselectedStyle;return i.forEach((function(e){var t=e.status,i=e.name;e.textWidth=g(n,i,t?r:o)})),e}function g(e,t,n){return e.font=m(n),e.measureText(t).width}function m(e){var t=e.fontFamily,n=e.fontSize;return"".concat(n,"px ").concat(t)}function v(e,t){var n=e.orient;return"vertical"===n?S(e,t):b(e,t),e}function b(e,t){var n=e.iconHeight,i=e.itemGap,r=y(e,t),o=r.map((function(n){return w(n,e,t)})),a=x(e,t),s={textAlign:"left",textBaseline:"middle"};r.forEach((function(e,t){return e.forEach((function(e){var r=e.iconPosition,l=e.textPosition,c=o[t],u=a+t*(i+n);e.iconPosition=C(r,[c,u]),e.textPosition=C(l,[c,u]),e.align=s}))}))}function y(e,t){var n=e.data,i=e.iconWidth,r=t.render.area[0],o=0,a=[[]];return n.forEach((function(t,n){var s=_(o,n,e),l=s+i+5+t.textWidth;l>=r&&(o=n,s=_(o,n,e),a.push([])),t.iconPosition=[s,0],t.textPosition=[s+i+5,0],a.slice(-1)[0].push(t)})),a}function _(e,t,n){var i=n.data,r=n.iconWidth,o=n.itemGap,a=i.slice(e,t);return(0,u.mulAdd)(a.map((function(e){var t=e.textWidth;return t})))+(t-e)*(o+5+r)}function w(e,t,n){var i=t.left,r=t.right,o=t.iconWidth,a=t.itemGap,s=n.render.area[0],l=e.length,c=(0,u.mulAdd)(e.map((function(e){var t=e.textWidth;return t})))+l*(5+o)+(l-1)*a,d=[i,r].findIndex((function(e){return"auto"!==e}));return-1===d?(s-c)/2:0===d?"number"===typeof i?i:parseInt(i)/100*s:("number"!==typeof r&&(r=parseInt(r)/100*s),s-(c+r))}function x(e,t){var n=e.top,i=e.bottom,r=e.iconHeight,o=t.render.area[1],a=[n,i].findIndex((function(e){return"auto"!==e})),s=r/2;if(-1===a){var l=t.gridArea,c=l.y,u=l.h;return c+u+45-s}return 0===a?"number"===typeof n?n-s:parseInt(n)/100*o-s:("number"!==typeof i&&(i=parseInt(i)/100*o),o-i-s)}function C(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[i+s,r+l]}function S(e,t){var n=k(e,t),i=(0,o["default"])(n,2),r=i[0],a=i[1],s=O(e,t);M(e,r);var l={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,n=e.iconPosition;e.textPosition=C(t,[a,s]),e.iconPosition=C(n,[a,s]),e.align=l}))}function k(e,t){var n=e.left,i=e.right,r=t.render.area[0],o=[n,i].findIndex((function(e){return"auto"!==e}));if(-1===o)return[!0,r-10];var a=[n,i][o];return"number"!==typeof a&&(a=parseInt(a)/100*r),[Boolean(o),a]}function O(e,t){var n=e.iconHeight,i=e.itemGap,r=e.data,o=e.top,a=e.bottom,s=t.render.area[1],l=r.length,c=l*n+(l-1)*i,u=[o,a].findIndex((function(e){return"auto"!==e}));if(-1===u)return(s-c)/2;var d=[o,a][u];return"number"!==typeof d&&(d=parseInt(d)/100*s),1===u&&(d=s-d-c),d}function M(e,t){var n=e.data,i=e.iconWidth,r=e.iconHeight,o=e.itemGap,a=r/2;n.forEach((function(e,n){var s=e.textWidth,l=(r+o)*n+a,c=t?0-i:0,u=t?c-5-s:i+5;e.iconPosition=[c,l],e.textPosition=[u,l]}))}function D(e,t){var n=e.data,i=e.selectAble,o=e.animationCurve,a=e.animationFrame,s=e.rLevel;return n.map((function(n,l){return(0,r["default"])({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:e.show,hover:i,click:i,animationCurve:o,animationFrame:a,shape:E(e,l),style:T(e,l)},"click",P(e,l,t))}))}function E(e,t){var n=e.data,i=e.iconWidth,r=e.iconHeight,a=(0,o["default"])(n[t].iconPosition,2),s=a[0],l=a[1],c=r/2;return{x:s,y:l-c,w:i,h:r}}function T(e,t){var n=e.data,i=e.iconStyle,r=e.iconUnselectedStyle,o=n[t],a=o.status,s=o.color,l=a?i:r;return(0,u.deepMerge)({fill:s},l)}function L(e,t){var n=e.data,i=e.selectAble,r=e.animationCurve,o=e.animationFrame,a=e.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:e.show,hover:i,animationCurve:r,animationFrame:o,hoverRect:N(e,s),shape:I(e,s),style:A(e,s),click:P(e,s,t)}}))}function I(e,t){var n=e.data[t],i=n.textPosition,r=n.name;return{content:r,position:i}}function A(e,t){var n=e.textStyle,i=e.textUnselectedStyle,r=e.data[t],o=r.status,a=r.align,s=o?n:i;return(0,u.deepMerge)((0,l.deepClone)(s,!0),a)}function N(e,t){var n=e.textStyle,i=e.textUnselectedStyle,r=e.data[t],a=r.status,s=(0,o["default"])(r.textPosition,2),l=s[0],c=s[1],u=r.textWidth,d=a?n:i,h=d.fontSize;return[l,c-h/2,u,h]}function P(e,t,n){var i=e.data[t].name;return function(){var e=n.chart,r=e.legendStatus,o=e.option,a=!r[t],s=o.series.find((function(e){var t=e.name;return t===i}));s.show=a,r[t]=a,n.chart.setOption(o)}}},"613b":function(e,t,n){var i=n("5537")("keys"),r=n("ca5a");e.exports=function(e){return i[e]||(i[e]=r(e))}},6167:function(e,t,n){"use strict";var i,r;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){i=a,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,i){this._reference=e.jquery?e[0]:e,this.state={};var r="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=r||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,i),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),d(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function i(t){var n=t.style.display,i=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var r=e.getComputedStyle(t),o=parseFloat(r.marginTop)+parseFloat(r.marginBottom),a=parseFloat(r.marginLeft)+parseFloat(r.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=i,s}function r(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,i=0;for(n in e){if(e[n]===t)return i;i++}return null}function s(t,n){var i=e.getComputedStyle(t,null);return i[n]}function l(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function c(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:c(t.parentNode):t}function u(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?u(t.parentNode):t))}function d(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&n(t[i])&&(r="px"),e.style[i]=t[i]+r}))}function h(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function f(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function p(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),i=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:i,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-i}}function g(e,t,n){var i=p(e),r=p(t);if(n){var o=c(t);r.top+=o.scrollTop,r.bottom+=o.scrollTop,r.left+=o.scrollLeft,r.right+=o.scrollLeft}var a={top:i.top-r.top,left:i.left-r.left,bottom:i.top-r.top+i.height,right:i.left-r.left+i.width,width:i.width,height:i.height};return a}function m(t){for(var n=["","ms","webkit","moz","o"],i=0;i<n.length;i++){var r=n[i]?n[i]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[r])return r}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[m("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var i=e.document,r=i.createElement(t.tagName);if(s(r,t.classNames),l(r,t.attributes),"node"===t.contentType?r.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?r.innerHTML=t.content:r.textContent=t.content,t.arrowTagName){var o=i.createElement(t.arrowTagName);s(o,t.arrowClassNames),l(o,t.arrowAttributes),r.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=i.querySelectorAll(t.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(r),r;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function l(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=l(t);if(this._options.forceAbsolute)return"absolute";var i=u(t,n);return i?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var r={};r.position=this.state.position;var o="fixed"===r.position,a=g(t,l(e),o),s=i(e);return-1!==["right","left"].indexOf(n)?(r.top=a.top+a.height/2-s.height/2,r.left="left"===n?a.left-s.width:a.right):(r.left=a.left+a.width/2-s.width/2,r.top="top"===n?a.top-s.height:a.bottom),r.width=s.width,r.height=s.height,{popper:r,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=c(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,i){var r,o,a={};if("window"===i){var s=e.document.body,u=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,u.clientHeight,u.scrollHeight,u.offsetHeight),r=Math.max(s.scrollWidth,s.offsetWidth,u.clientWidth,u.scrollWidth,u.offsetWidth),a={top:0,right:r,bottom:o,left:0}}else if("viewport"===i){var d=l(this._popper),h=c(this._popper),p=f(d),g=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:g(h),b="fixed"===t.offsets.popper.position?0:m(h);a={top:0-(p.top-v),right:e.document.documentElement.clientWidth-(p.left-b),bottom:e.document.documentElement.clientHeight-(p.top-v),left:0-(p.left-b)}}else a=l(this._popper)===i?{top:0,left:0,right:i.clientWidth,bottom:i.clientHeight}:f(i);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var i=t.slice();return void 0!==n&&(i=this._options.modifiers.slice(0,a(this._options.modifiers,n))),i.forEach(function(t){h(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},i=Math.round(e.offsets.popper.left),r=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=m("transform"))?(n[t]="translate3d("+i+"px, "+r+"px, 0)",n.top=0,n.left=0):(n.left=i,n.top=r),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:r.top},end:{top:r.top+r.height-a.height}},x:{start:{left:r.left},end:{left:r.left+r.width-a.width}}},l=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[l][i])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),i={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,i[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,i=Math.floor;return t.right<i(n.left)&&(e.offsets.popper.left=i(n.left)-t.width),t.left>i(n.right)&&(e.offsets.popper.left=i(n.right)),t.bottom<i(n.top)&&(e.offsets.popper.top=i(n.top)-t.height),t.top>i(n.bottom)&&(e.offsets.popper.top=i(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=r(t),i=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,l){if(t===s&&a.length!==l+1){t=e.placement.split("-")[0],n=r(t);var c=o(e.offsets.popper),u=-1!==["right","bottom"].indexOf(t);(u&&Math.floor(e.offsets.reference[t])>Math.floor(c[n])||!u&&Math.floor(e.offsets.reference[t])<Math.floor(c[n]))&&(e.flipped=!0,e.placement=a[l+1],i&&(e.placement+="-"+i),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var r={},a=e.placement.split("-")[0],s=o(e.offsets.popper),l=e.offsets.reference,c=-1!==["left","right"].indexOf(a),u=c?"height":"width",d=c?"top":"left",h=c?"left":"top",f=c?"bottom":"right",p=i(t)[u];l[f]-p<s[d]&&(e.offsets.popper[d]-=s[d]-(l[f]-p)),l[d]+p>s[f]&&(e.offsets.popper[d]+=l[d]+p-s[f]);var g=l[d]+(n||l[u]/2-p/2),m=g-s[d];return m=Math.max(Math.min(s[u]-p-8,m),8),r[d]=m,r[h]="",e.offsets.arrow=r,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i){i=Object(i);for(var r=Object.keys(i),o=0,a=r.length;o<a;o++){var s=r[o],l=Object.getOwnPropertyDescriptor(i,s);void 0!==l&&l.enumerable&&(t[s]=i[s])}}}return t}}),n}))},6229:function(e,t,n){var i=n("3466"),r=n("1b14"),o=n("97b9"),a=n("bd39"),s=n("edb5");function l(e,t,n){return e(t,n?function(e){return u(e,n)}:function(e){return e})}function c(e,t){if(t&&e){var n=e.constructor;switch(i.call(e)){case"[object Date]":case"[object RegExp]":return new n(e.valueOf());case"[object Set]":var r=new n;return e.forEach((function(e){r.add(e)})),r;case"[object Map]":var o=new n;return e.forEach((function(e,t){o.set(t,e)})),o}}return e}function u(e,t){return o(e)?l(a,e,t):r(e)?l(s,e,t):c(e,t)}function d(e,t){return e?u(e,t):e}e.exports=d},"626a":function(e,t,n){var i=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},6299:function(e,t,n){var i=n("681d"),r=i("every",1,1,!1,!0);e.exports=r},"62a0":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"62fd":function(e,t,n){},"63b6":function(e,t,n){var i=n("e53d"),r=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),l="prototype",c=function(e,t,n){var u,d,h,f=e&c.F,p=e&c.G,g=e&c.S,m=e&c.P,v=e&c.B,b=e&c.W,y=p?r:r[t]||(r[t]={}),_=y[l],w=p?i:g?i[t]:(i[t]||{})[l];for(u in p&&(n=t),n)d=!f&&w&&void 0!==w[u],d&&s(y,u)||(h=d?w[u]:n[u],y[u]=p&&"function"!=typeof w[u]?n[u]:v&&d?o(h,i):b&&w[u]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[u]=h,e&c.R&&_&&!_[u]&&a(_,u,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"63d9":function(e,t,n){n("ec30")("Float32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"643e":function(e,t,n){"use strict";var i=n("dcbc"),r=n("67ab").getWeak,o=n("cb7c"),a=n("d3f4"),s=n("f605"),l=n("4a59"),c=n("0a49"),u=n("69a8"),d=n("b39a"),h=c(5),f=c(6),p=0,g=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},v=function(e,t){return h(e.a,(function(e){return e[0]===t}))};m.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e((function(e,i){s(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,void 0!=i&&l(i,n,e[o],e)}));return i(c.prototype,{delete:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(d(this,t))["delete"](e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=r(e);return!0===n?g(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var i=r(o(t),!0);return!0===i?g(e).set(t,n):i[e._i]=n,e},ufstore:g}},"644d":function(e,t,n){var i=n("a20e"),r=n("2c63");function o(e){if(i(e))return e;if(r(e))try{return JSON.parse(e)}catch(t){}return{}}e.exports=o},"64d5":function(e,t,n){"use strict";var i=n("5ca1"),r=n("4bf8"),o=n("6a99"),a=n("38fd"),s=n("11e9").f;n("9e1e")&&i(i.P+n("c5b4"),"Object",{__lookupSetter__:function(e){var t,n=r(this),i=o(e,!0);do{if(t=s(n,i))return t.set}while(n=a(n))}})},6613:function(e,t,n){var i=n("5a43");function r(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},6657:function(e,t,n){var i=n("2c63"),r=n("4c7b");function o(e){return!!(e&&i(e.nodeName)&&r(e.nodeType))}e.exports=o},"66c8":function(e,t,n){var i=n("d3f4");n("5eda")("isFrozen",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},"66f9":function(e,t,n){n("8a81"),n("8478"),n("1c01"),n("58b2"),n("9986"),n("e4f7"),n("456d"),n("25db"),n("0d6d"),n("cf6a"),n("9aea"),n("66c8"),n("57f0"),n("165b"),n("f751"),n("db97"),n("fd24"),n("06db"),n("d92a"),n("7f7f"),n("217b"),n("18d0"),n("b72c"),n("c5f6"),n("036c"),n("54a8"),n("2e37"),n("fca0"),n("7cdf"),n("ee1d"),n("b1b1"),n("87f3"),n("9278"),n("5df2"),n("04ff"),n("7f25"),n("536b"),n("d9ab"),n("f9ab"),n("32d7"),n("25c9"),n("9f3c"),n("042e"),n("c7c6"),n("f4ff"),n("7872"),n("049f"),n("a69f"),n("0b21"),n("6c1a"),n("c7c62"),n("84b4"),n("5695"),n("788d"),n("4f37"),n("5df3"),n("a032"),n("aef6"),n("2fdb"),n("14b9"),n("f559"),n("8449"),n("9c86"),n("fa83"),n("48c0"),n("d263"),n("6c37"),n("9ec8"),n("d0b0"),n("b54a"),n("f386"),n("1448"),n("673e"),n("242a"),n("78ce"),n("0298"),n("8ea5"),n("87b3"),n("c8ce"),n("2caf"),n("1c4c"),n("e804"),n("373f"),n("23bf"),n("55dd"),n("f3e2"),n("6d67"),n("d25f"),n("759f"),n("6095"),n("0cd8"),n("48f8"),n("57e7"),n("9865"),n("744f"),n("6c7b"),n("7514"),n("20d6"),n("d04f"),n("cadf"),n("3b2b"),n("b0c5"),n("6b54"),n("3846"),n("4917"),n("a481"),n("386d"),n("28a5"),n("551c"),n("f400"),n("4f7f"),n("10ad"),n("c02b"),n("c66f"),n("262f"),n("b05c"),n("34ef"),n("6aa2"),n("15ac"),n("af56"),n("b6e4"),n("9c29"),n("63d9"),n("4dda"),n("df1b"),n("2397"),n("88ca"),n("ba16"),n("7ff6"),n("d185"),n("ebde"),n("2d34"),n("f6b3"),n("2251"),n("c698"),n("a19f"),n("9253"),n("9275"),n("6762"),n("e956"),n("71f1"),n("3535e"),n("f576"),n("ed50"),n("23be"),n("7c0e"),n("988d"),n("ac4d"),n("c7ca"),n("8e6e"),n("8615"),n("ffc1"),n("4504"),n("fee7"),n("b9a1"),n("64d5"),n("4704"),n("db9a"),n("729b"),n("99c5"),n("764f"),n("bdd1"),n("416c"),n("dd8a"),n("5d40"),n("5d90"),n("0c36"),n("a234"),n("4276"),n("09e0"),n("0c00"),n("2748"),n("1f91"),n("9c00"),n("2f78"),n("b4c2"),n("1f18"),n("692b"),n("c775"),n("8a5c"),n("ed7e"),n("097d"),n("a9cc"),n("e3d0"),n("ceaf"),n("e394"),n("b80b"),n("06a7"),n("7cdff"),n("896f"),n("ec39"),n("3a9c"),n("0d25"),n("37b5"),n("4795"),n("130f"),n("ac6a"),e.exports=n("8378")},6718:function(e,t,n){var i=n("e53d"),r=n("584a"),o=n("b8e3"),a=n("ccb9"),s=n("d9f6").f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},"673e":function(e,t,n){"use strict";n("386b")("sub",(function(e){return function(){return e(this,"sub","","")}}))},6762:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c366")(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"67ab":function(e,t,n){var i=n("ca5a")("meta"),r=n("d3f4"),o=n("69a8"),a=n("86cc").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("79e5")((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},f=function(e){return c&&p.NEED&&l(e)&&!o(e,i)&&u(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},"681d":function(e,t,n){var i=n("604a"),r=n("1b14");function o(e,t,n,o,a){return function(s,l,c){if(s&&l){if(e&&s[e])return s[e](l,c);if(t&&r(s)){for(var u=0,d=s.length;u<d;u++)if(!!l.call(c,s[u],u,s)===o)return[!0,!1,u,s[u]][n]}else for(var h in s)if(i(s,h)&&!!l.call(c,s[h],h,s)===o)return[!0,!1,h,s[h]][n]}return a}}e.exports=o},6821:function(e,t,n){var i=n("626a"),r=n("be13");e.exports=function(e){return i(r(e))}},"692b":function(e,t,n){var i=n("5ca1"),r=Math.PI/180;i(i.S,"Math",{radians:function(e){return e*r}})},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"69d3":function(e,t,n){n("6718")("asyncIterator")},"6a30":function(e,t,n){var i=n("4e80"),r=n("1eba"),o=Date.now||function(){return i(r())};e.exports=o},"6a99":function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"6aa2":function(e,t,n){n("ec30")("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},"6abf":function(e,t,n){var i=n("e6f3"),r=n("1691").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"6ac9":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},5:function(e,t){e.exports=n("e974")},7:function(e,t){e.exports=n("2b0e")},78:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[n("transition",{attrs:{name:e.transition},on:{"after-enter":e.handleAfterEnter,"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.disabled&&e.showPopper,expression:"!disabled && showPopper"}],ref:"popper",staticClass:"el-popover el-popper",class:[e.popperClass,e.content&&"el-popover--plain"],style:{width:e.width+"px"},attrs:{role:"tooltip",id:e.tooltipId,"aria-hidden":e.disabled||!e.showPopper?"true":"false"}},[e.title?n("div",{staticClass:"el-popover__title",domProps:{textContent:e._s(e.title)}}):e._e(),e._t("default",[e._v(e._s(e.content))])],2)]),n("span",{ref:"wrapper",staticClass:"el-popover__reference-wrapper"},[e._t("reference")],2)],1)},r=[];i._withStripped=!0;var o=n(5),a=n.n(o),s=n(2),l=n(3),c={name:"ElPopover",mixins:[a.a],props:{trigger:{type:String,default:"click",validator:function(e){return["click","focus","hover","manual"].indexOf(e)>-1}},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:200},title:String,disabled:Boolean,content:String,reference:{},popperClass:String,width:{},visibleArrow:{default:!0},arrowOffset:{type:Number,default:0},transition:{type:String,default:"fade-in-linear"},tabindex:{type:Number,default:0}},computed:{tooltipId:function(){return"el-popover-"+Object(l["generateId"])()}},watch:{showPopper:function(e){this.disabled||(e?this.$emit("show"):this.$emit("hide"))}},mounted:function(){var e=this,t=this.referenceElm=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),t&&(Object(s["addClass"])(t,"el-popover__reference"),t.setAttribute("aria-describedby",this.tooltipId),t.setAttribute("tabindex",this.tabindex),n.setAttribute("tabindex",0),"click"!==this.trigger&&(Object(s["on"])(t,"focusin",(function(){e.handleFocus();var n=t.__vue__;n&&"function"===typeof n.focus&&n.focus()})),Object(s["on"])(n,"focusin",this.handleFocus),Object(s["on"])(t,"focusout",this.handleBlur),Object(s["on"])(n,"focusout",this.handleBlur)),Object(s["on"])(t,"keydown",this.handleKeydown),Object(s["on"])(t,"click",this.handleClick)),"click"===this.trigger?(Object(s["on"])(t,"click",this.doToggle),Object(s["on"])(document,"click",this.handleDocumentClick)):"hover"===this.trigger?(Object(s["on"])(t,"mouseenter",this.handleMouseEnter),Object(s["on"])(n,"mouseenter",this.handleMouseEnter),Object(s["on"])(t,"mouseleave",this.handleMouseLeave),Object(s["on"])(n,"mouseleave",this.handleMouseLeave)):"focus"===this.trigger&&(this.tabindex<0&&console.warn("[Element Warn][Popover]a negative taindex means that the element cannot be focused by tab key"),t.querySelector("input, textarea")?(Object(s["on"])(t,"focusin",this.doShow),Object(s["on"])(t,"focusout",this.doClose)):(Object(s["on"])(t,"mousedown",this.doShow),Object(s["on"])(t,"mouseup",this.doClose)))},beforeDestroy:function(){this.cleanup()},deactivated:function(){this.cleanup()},methods:{doToggle:function(){this.showPopper=!this.showPopper},doShow:function(){this.showPopper=!0},doClose:function(){this.showPopper=!1},handleFocus:function(){Object(s["addClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!0)},handleClick:function(){Object(s["removeClass"])(this.referenceElm,"focusing")},handleBlur:function(){Object(s["removeClass"])(this.referenceElm,"focusing"),"click"!==this.trigger&&"focus"!==this.trigger||(this.showPopper=!1)},handleMouseEnter:function(){var e=this;clearTimeout(this._timer),this.openDelay?this._timer=setTimeout((function(){e.showPopper=!0}),this.openDelay):this.showPopper=!0},handleKeydown:function(e){27===e.keyCode&&"manual"!==this.trigger&&this.doClose()},handleMouseLeave:function(){var e=this;clearTimeout(this._timer),this.closeDelay?this._timer=setTimeout((function(){e.showPopper=!1}),this.closeDelay):this.showPopper=!1},handleDocumentClick:function(e){var t=this.reference||this.$refs.reference,n=this.popper||this.$refs.popper;!t&&this.$refs.wrapper.children&&(t=this.referenceElm=this.$refs.wrapper.children[0]),this.$el&&t&&!this.$el.contains(e.target)&&!t.contains(e.target)&&n&&!n.contains(e.target)&&(this.showPopper=!1)},handleAfterEnter:function(){this.$emit("after-enter")},handleAfterLeave:function(){this.$emit("after-leave"),this.doDestroy()},cleanup:function(){(this.openDelay||this.closeDelay)&&clearTimeout(this._timer)}},destroyed:function(){var e=this.reference;Object(s["off"])(e,"click",this.doToggle),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"focusin",this.doShow),Object(s["off"])(e,"focusout",this.doClose),Object(s["off"])(e,"mousedown",this.doShow),Object(s["off"])(e,"mouseup",this.doClose),Object(s["off"])(e,"mouseleave",this.handleMouseLeave),Object(s["off"])(e,"mouseenter",this.handleMouseEnter),Object(s["off"])(document,"click",this.handleDocumentClick)}},u=c,d=n(0),h=Object(d["a"])(u,i,r,!1,null,null,null);h.options.__file="packages/popover/src/main.vue";var f=h.exports,p=function(e,t,n){var i=t.expression?t.value:t.arg,r=n.context.$refs[i];r&&(Array.isArray(r)?r[0].$refs.reference=e:r.$refs.reference=e)},g={bind:function(e,t,n){p(e,t,n)},inserted:function(e,t,n){p(e,t,n)}},m=n(7),v=n.n(m);v.a.directive("popover",g),f.install=function(e){e.directive("popover",g),e.component(f.name,f)},f.directive=g;t["default"]=f}})},"6b4c":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"6b54":function(e,t,n){"use strict";n("3846");var i=n("cb7c"),r=n("0bfb"),o=n("9e1e"),a="toString",s=/./[a],l=function(e){n("2aba")(RegExp.prototype,a,e,!0)};n("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?r.call(e):void 0)})):s.name!=a&&l((function(){return s.call(this)}))},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},"6b7c":function(e,t,n){"use strict";t.__esModule=!0;var i=n("4897");t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.t.apply(this,t)}}}},"6bd0":function(e,t,n){var i=n("0bdd"),r=i(1,0);e.exports=r},"6c02":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"changeDefaultConfig",{enumerable:!0,get:function(){return o.changeDefaultConfig}}),t["default"]=void 0;var r=i(n("04fb")),o=n("9d85"),a=r["default"];t["default"]=a},"6c1a":function(e,t,n){var i=n("5ca1"),r=n("2d5c"),o=Math.exp;i(i.S+i.F*n("79e5")((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},"6c1c":function(e,t,n){n("c367");for(var i=n("e53d"),r=n("35e8"),o=n("481b"),a=n("5168")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var c=s[l],u=i[c],d=u&&u.prototype;d&&!d[a]&&r(d,a,c),o[c]=o.Array}},"6c29":function(e,t,n){"use strict";n("62fd");var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-active-ring-chart"},[t("div",{ref:"active-ring-chart",staticClass:"active-ring-chart-container"}),t("div",{staticClass:"active-ring-info"},[t("dv-digital-flop",{attrs:{config:e.digitalFlop}}),t("div",{staticClass:"active-ring-name",style:e.fontSize},[e._v(e._s(e.ringName))])],1)])},r=[],o=(n("8e6e"),n("456d"),n("2909")),a=n("ade3"),s=(n("ac6a"),n("7f7f"),n("6c02")),l=n.n(s),c=function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-digital-flop"},[t("canvas",{ref:"digital-flop"})])},u=[];function d(e){if(Array.isArray(e))return e}function h(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw r}}return s}}var f=n("06c5");function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return d(e)||h(e,t)||Object(f["a"])(e,t)||p()}var m=n("9886"),v=n.n(m),b=(n("0ca1"),n("becb")),y=n("5557"),_={name:"DvDigitalFlop",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null}},watch:{config:function(){var e=this.update;e()}},methods:{init:function(){var e=this.initRender,t=this.mergeConfig,n=this.initGraph;e(),t(),n()},initRender:function(){var e=this.$refs;this.renderer=new v.a(e["digital-flop"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(e,!0),t||{})},initGraph:function(){var e=this.getShape,t=this.getStyle,n=this.renderer,i=this.mergedConfig,r=i.animationCurve,o=i.animationFrame,a=e(),s=t();this.graph=n.add({name:"numberText",animationCurve:r,animationFrame:o,shape:a,style:s})},getShape:function(){var e=this.mergedConfig,t=e.number,n=e.content,i=e.toFixed,r=e.textAlign,o=e.rowGap,a=e.formatter,s=g(this.renderer.area,2),l=s[0],c=s[1],u=[l/2,c/2];return"left"===r&&(u[0]=0),"right"===r&&(u[0]=l),{number:t,content:n,toFixed:i,position:u,rowGap:o,formatter:a}},getStyle:function(){var e=this.mergedConfig,t=e.style,n=e.textAlign;return Object(b["deepMerge"])(t,{textAlign:n,textBaseline:"middle"})},update:function(){var e=this.mergeConfig,t=this.mergeShape,n=this.getShape,i=this.getStyle,r=this.graph,o=this.mergedConfig;if(r.animationEnd(),e(),r){var a=o.animationCurve,s=o.animationFrame,l=n(),c=i();t(r,l),r.animationCurve=a,r.animationFrame=s,r.animation("style",c,!0),r.animation("shape",l)}},mergeShape:function(e,t){var n=e.shape.number.length,i=t.number.length;n!==i&&(e.shape.number=t.number)}},mounted:function(){var e=this.init;e()}},w=_,x=n("2877"),C=Object(x["a"])(w,c,u,!1,null,null,null),S=C.exports;function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M={name:"DvActiveRingChart",components:{dvDigitalFlop:S},props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}},computed:{digitalFlop:function(){var e=this.mergedConfig,t=this.activeIndex;if(!e)return{};var n,i=e.digitalFlopStyle,r=e.digitalFlopToFixed,o=e.data,a=e.showOriginValue,s=e.digitalFlopUnit,l=o.map((function(e){var t=e.value;return t}));if(a)n=l[t];else{var c=l.reduce((function(e,t){return e+t}),0),u=parseFloat(l[t]/c*100)||0;n=u}return{content:"{nt}".concat(a?s:s||"%"),number:[n],style:i,toFixed:r}},ringName:function(){var e=this.mergedConfig,t=this.activeIndex;return e?e.data[t].name:""},fontSize:function(){var e=this.mergedConfig;return e?"font-size: ".concat(e.digitalFlopStyle.fontSize,"px;"):""}},watch:{config:function(){var e=this.animationHandler,t=this.mergeConfig,n=this.setRingOption;clearTimeout(e),this.activeIndex=0,t(),n()}},methods:{init:function(){var e=this.initChart,t=this.mergeConfig,n=this.setRingOption;e(),t(),n()},initChart:function(){var e=this.$refs;this.chart=new l.a(e["active-ring-chart"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(e,!0),t||{})},setRingOption:function(){var e=this.getRingOption,t=this.chart,n=this.ringAnimation,i=e();t.setOption(i,!0),n()},getRingOption:function(){var e=this.mergedConfig,t=this.getRealRadius,n=t();return e.data.forEach((function(e){e.radius=n})),{series:[O(O({type:"pie"},e),{},{outsideLabel:{show:!1}})],color:e.color}},getRealRadius:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.mergedConfig,n=this.chart,i=t.radius,r=t.activeRadius,a=t.lineWidth,s=Math.min.apply(Math,Object(o["a"])(n.render.area))/2,l=a/2,c=e?r:i;"number"!==typeof c&&(c=parseInt(c)/100*s);var u=c-l,d=c+l;return[u,d]},ringAnimation:function(){var e=this,t=this.activeIndex,n=this.getRingOption,i=this.chart,r=this.getRealRadius,o=r(),a=r(!0),s=n(),l=s.series[0].data;l.forEach((function(e,n){e.radius=n===t?a:o})),i.setOption(s,!0);var c=s.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){t+=1,t>=l.length&&(t=0),e.activeIndex=t,e.ringAnimation()}),c)}},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.animationHandler;clearTimeout(e)}},D=M,E=Object(x["a"])(D,i,r,!1,null,null,null),T=E.exports,L=function(e){e.component(T.name,T)},I=(n("fe7b"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-1"},[t("svg",{staticClass:"border",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"10, 27 10, ".concat(e.height-27," 13, ").concat(e.height-24," 13, ").concat(e.height-21," 24, ").concat(e.height-11,"\n 38, ").concat(e.height-11," 41, ").concat(e.height-8," 73, ").concat(e.height-8," 75, ").concat(e.height-10," 81, ").concat(e.height-10,"\n 85, ").concat(e.height-6," ").concat(e.width-85,", ").concat(e.height-6," ").concat(e.width-81,", ").concat(e.height-10," ").concat(e.width-75,", ").concat(e.height-10,"\n ").concat(e.width-73,", ").concat(e.height-8," ").concat(e.width-41,", ").concat(e.height-8," ").concat(e.width-38,", ").concat(e.height-11,"\n ").concat(e.width-24,", ").concat(e.height-11," ").concat(e.width-13,", ").concat(e.height-21," ").concat(e.width-13,", ").concat(e.height-24,"\n ").concat(e.width-10,", ").concat(e.height-27," ").concat(e.width-10,", 27 ").concat(e.width-13,", 25 ").concat(e.width-13,", 21\n ").concat(e.width-24,", 11 ").concat(e.width-38,", 11 ").concat(e.width-41,", 8 ").concat(e.width-73,", 8 ").concat(e.width-75,", 10\n ").concat(e.width-81,", 10 ").concat(e.width-85,", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24")}})]),e._l(e.border,(function(n){return t("svg",{key:n,class:"".concat(n," border"),attrs:{width:"150px",height:"150px"}},[t("polygon",{attrs:{fill:e.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";").concat(e.mergedColor[0]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{fill:e.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0],";").concat(e.mergedColor[1]),dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{fill:e.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";transparent"),dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),t("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),A=[];function N(e,t){return 1===arguments.length?parseInt(Math.random()*e+1,10):parseInt(Math.random()*(t-e+1)+e,10)}function P(e,t){let n;return function(){clearTimeout(n);const[i,r]=[this,arguments];n=setTimeout(()=>{t.apply(i,r)},e)}}function R(e,t){const n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=new n(t);return i.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),i}function F(e,t){const n=Math.abs(e[0]-t[0]),i=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+i*i)}function j(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(e){const t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))}var B={data(){return{dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}},methods:{async autoResizeMixinInit(){const{initWH:e,getDebounceInitWHFun:t,bindDomResizeCallback:n,afterAutoResizeMixinInit:i}=this;await e(!1),t(),n(),"function"===typeof i&&i()},initWH(e=!0){const{$nextTick:t,$refs:n,ref:i,onResize:r}=this;return new Promise(o=>{t(t=>{const a=this.dom=n[i];this.width=a?a.clientWidth:0,this.height=a?a.clientHeight:0,a?this.width&&this.height||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"===typeof r&&e&&r(),o()})})},getDebounceInitWHFun(){const{initWH:e}=this;this.debounceInitWHFun=P(100,e)},bindDomResizeCallback(){const{dom:e,debounceInitWHFun:t}=this;this.domObserver=R(e,t),window.addEventListener("resize",t)},unbindDomResizeCallback(){let{domObserver:e,debounceInitWHFun:t}=this;e&&(e.disconnect(),e.takeRecords(),e=null,window.removeEventListener("resize",t))}},mounted(){const{autoResizeMixinInit:e}=this;e()},beforeDestroy(){const{unbindDomResizeCallback:e}=this;e()}},z={name:"DvBorderBox1",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},V=z,$=Object(x["a"])(V,I,A,!1,null,null,null),W=$.exports,H=function(e){e.component(W.name,W)},U=(n("6ccd"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px ".concat(e.mergedColor[0])},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 4, 0 ".concat(e.width-4,", 0 ").concat(e.width,", 4 ").concat(e.width,", ").concat(e.height-4," ").concat(e.width-4,", ").concat(e.height,"\n 4, ").concat(e.height," 0, ").concat(e.height-4," 0, 4\n ")}})]),e._l(e.border,(function(n){return t("svg",{key:n,class:"".concat(n," dv-border-svg-container"),attrs:{width:"150px",height:"150px"}},[t("polygon",{attrs:{fill:e.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])})),t("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),q=[],G={name:"DvBorderBox10",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},K=G,Y=Object(x["a"])(K,U,q,!1,null,null,null),X=Y.exports,Z=function(e){e.component(X.name,X)},Q=(n("4656"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-11"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[t("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),t("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),t("feFlood",{attrs:{"flood-color":e.mergedColor[1],result:"glowColor"}}),t("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t("feMerge",[t("feMergeNode",{attrs:{in:"softGlowColored"}}),t("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 20, 32 ".concat(.5*e.width-e.titleWidth/2,", 32 ").concat(.5*e.width-e.titleWidth/2+20,", 53\n ").concat(.5*e.width+e.titleWidth/2-20,", 53 ").concat(.5*e.width+e.titleWidth/2,", 32\n ").concat(e.width-20,", 32 ").concat(e.width-8,", 48 ").concat(e.width-8,", ").concat(e.height-25," ").concat(e.width-20,", ").concat(e.height-8,"\n 20, ").concat(e.height-8," 8, ").concat(e.height-25," 8, 50\n ")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n ".concat((e.width-e.titleWidth)/2,", 30\n 20, 30 7, 50 7, ").concat(50+(e.height-167)/2,"\n 13, ").concat(55+(e.height-167)/2," 13, ").concat(135+(e.height-167)/2,"\n 7, ").concat(140+(e.height-167)/2," 7, ").concat(e.height-27,"\n 20, ").concat(e.height-7," ").concat(e.width-20,", ").concat(e.height-7," ").concat(e.width-7,", ").concat(e.height-27,"\n ").concat(e.width-7,", ").concat(140+(e.height-167)/2," ").concat(e.width-13,", ").concat(135+(e.height-167)/2,"\n ").concat(e.width-13,", ").concat(55+(e.height-167)/2," ").concat(e.width-7,", ").concat(50+(e.height-167)/2,"\n ").concat(e.width-7,", 50 ").concat(e.width-20,", 30 ").concat((e.width+e.titleWidth)/2,", 30\n ").concat((e.width+e.titleWidth)/2-20,", 7 ").concat((e.width-e.titleWidth)/2+20,", 7\n ").concat((e.width-e.titleWidth)/2,", 30 ").concat((e.width-e.titleWidth)/2+20,", 52\n ").concat((e.width+e.titleWidth)/2-20,", 52 ").concat((e.width+e.titleWidth)/2,", 30\n ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n ".concat((e.width+e.titleWidth)/2-5,", 30 ").concat((e.width+e.titleWidth)/2-21,", 11\n ").concat((e.width+e.titleWidth)/2-27,", 11 ").concat((e.width+e.titleWidth)/2-8,", 34\n ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n ".concat((e.width-e.titleWidth)/2+5,", 30 ").concat((e.width-e.titleWidth)/2+22,", 49\n ").concat((e.width-e.titleWidth)/2+28,", 49 ").concat((e.width-e.titleWidth)/2+8,", 26\n ")}}),t("polygon",{attrs:{stroke:e.mergedColor[0],fill:e.fade(e.mergedColor[1]||e.defaultColor[1],30),filter:"url(#".concat(e.filterId,")"),points:"\n ".concat((e.width+e.titleWidth)/2-11,", 37 ").concat((e.width+e.titleWidth)/2-32,", 11\n ").concat((e.width-e.titleWidth)/2+23,", 11 ").concat((e.width-e.titleWidth)/2+11,", 23\n ").concat((e.width-e.titleWidth)/2+33,", 49 ").concat((e.width+e.titleWidth)/2-22,", 49\n ")}}),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"1",points:"\n ".concat((e.width-e.titleWidth)/2-10,", 37 ").concat((e.width-e.titleWidth)/2-31,", 37\n ").concat((e.width-e.titleWidth)/2-25,", 46 ").concat((e.width-e.titleWidth)/2-4,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.7",points:"\n ".concat((e.width-e.titleWidth)/2-40,", 37 ").concat((e.width-e.titleWidth)/2-61,", 37\n ").concat((e.width-e.titleWidth)/2-55,", 46 ").concat((e.width-e.titleWidth)/2-34,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.5",points:"\n ".concat((e.width-e.titleWidth)/2-70,", 37 ").concat((e.width-e.titleWidth)/2-91,", 37\n ").concat((e.width-e.titleWidth)/2-85,", 46 ").concat((e.width-e.titleWidth)/2-64,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"1",points:"\n ".concat((e.width+e.titleWidth)/2+30,", 37 ").concat((e.width+e.titleWidth)/2+9,", 37\n ").concat((e.width+e.titleWidth)/2+3,", 46 ").concat((e.width+e.titleWidth)/2+24,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.7",points:"\n ".concat((e.width+e.titleWidth)/2+60,", 37 ").concat((e.width+e.titleWidth)/2+39,", 37\n ").concat((e.width+e.titleWidth)/2+33,", 46 ").concat((e.width+e.titleWidth)/2+54,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("polygon",{attrs:{filter:"url(#".concat(e.filterId,")"),fill:e.mergedColor[0],opacity:"0.5",points:"\n ".concat((e.width+e.titleWidth)/2+90,", 37 ").concat((e.width+e.titleWidth)/2+69,", 37\n ").concat((e.width+e.titleWidth)/2+63,", 46 ").concat((e.width+e.titleWidth)/2+84,", 46\n ")}},[t("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),t("text",{staticClass:"dv-border-box-11-title",attrs:{x:"".concat(e.width/2),y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[e._v("\n "+e._s(e.title)+"\n ")]),t("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n 7, ".concat(53+(e.height-167)/2," 11, ").concat(57+(e.height-167)/2,"\n 11, ").concat(133+(e.height-167)/2," 7, ").concat(137+(e.height-167)/2,"\n ")}}),t("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#".concat(e.filterId,")"),points:"\n ".concat(e.width-7,", ").concat(53+(e.height-167)/2," ").concat(e.width-11,", ").concat(57+(e.height-167)/2,"\n ").concat(e.width-11,", ").concat(133+(e.height-167)/2," ").concat(e.width-7,", ").concat(137+(e.height-167)/2,"\n ")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),J=[],ee=(n("c5f6"),n("a870")),te={name:"DvBorderBox11",mixins:[B],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=j();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(e),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])},fade:ee["fade"]},mounted:function(){var e=this.mergeColor;e()}},ne=te,ie=Object(x["a"])(ne,Q,J,!1,null,null,null),re=ie.exports,oe=function(e){e.component(re.name,re)},ae=(n("3c0e"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-12"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[t("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),t("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),t("feFlood",{attrs:{"flood-color":e.fade(e.mergedColor[1]||e.defaultColor[1],70),result:"glowColor"}},[t("animate",{attrs:{attributeName:"flood-color",values:"\n ".concat(e.fade(e.mergedColor[1]||e.defaultColor[1],70),";\n ").concat(e.fade(e.mergedColor[1]||e.defaultColor[1],30),";\n ").concat(e.fade(e.mergedColor[1]||e.defaultColor[1],70),";\n "),dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),t("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),t("feMerge",[t("feMergeNode",{attrs:{in:"softGlowColored"}}),t("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),e.width&&e.height?t("path",{attrs:{fill:e.backgroundColor,"stroke-width":"2",stroke:e.mergedColor[0],d:"\n M15 5 L ".concat(e.width-15," 5 Q ").concat(e.width-5," 5, ").concat(e.width-5," 15\n L ").concat(e.width-5," ").concat(e.height-15," Q ").concat(e.width-5," ").concat(e.height-5,", ").concat(e.width-15," ").concat(e.height-5,"\n L 15, ").concat(e.height-5," Q 5 ").concat(e.height-5," 5 ").concat(e.height-15," L 5 15\n Q 5 5 15 5\n ")}}):e._e(),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"M ".concat(e.width-20," 5 L ").concat(e.width-15," 5 Q ").concat(e.width-5," 5 ").concat(e.width-5," 15 L ").concat(e.width-5," 20")}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"\n M ".concat(e.width-20," ").concat(e.height-5," L ").concat(e.width-15," ").concat(e.height-5,"\n Q ").concat(e.width-5," ").concat(e.height-5," ").concat(e.width-5," ").concat(e.height-15,"\n L ").concat(e.width-5," ").concat(e.height-20,"\n ")}}),t("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#".concat(e.filterId,")"),stroke:e.mergedColor[1],d:"\n M 20 ".concat(e.height-5," L 15 ").concat(e.height-5,"\n Q 5 ").concat(e.height-5," 5 ").concat(e.height-15,"\n L 5 ").concat(e.height-20,"\n ")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),se=[],le={name:"DvBorderBox12",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=j();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(e),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])},fade:ee["fade"]},mounted:function(){var e=this.mergeColor;e()}},ce=le,ue=Object(x["a"])(ce,ae,se,!1,null,null,null),de=ue.exports,he=function(e){e.component(de.name,de)},fe=(n("470c"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-13"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("path",{attrs:{fill:e.backgroundColor,stroke:e.mergedColor[0],d:"\n M 5 20 L 5 10 L 12 3 L 60 3 L 68 10\n L ".concat(e.width-20," 10 L ").concat(e.width-5," 25\n L ").concat(e.width-5," ").concat(e.height-5," L 20 ").concat(e.height-5,"\n L 5 ").concat(e.height-20," L 5 20\n ")}}),t("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:e.mergedColor[0],d:"M 16 9 L 61 9"}}),t("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"}}),t("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M ".concat(e.width-5," ").concat(e.height-30," L ").concat(e.width-5," ").concat(e.height-5," L ").concat(e.width-30," ").concat(e.height-5)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),pe=[],ge={name:"DvBorderBox13",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},me=ge,ve=Object(x["a"])(me,fe,pe,!1,null,null,null),be=ve.exports,ye=function(e){e.component(be.name,be)},_e=(n("b72d"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-2"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 7, 7 ".concat(e.width-7,", 7 ").concat(e.width-7,", ").concat(e.height-7," 7, ").concat(e.height-7,"\n ")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"2, 2 ".concat(e.width-2," ,2 ").concat(e.width-2,", ").concat(e.height-2," 2, ").concat(e.height-2," 2, 2")}}),t("polyline",{attrs:{stroke:e.mergedColor[1],points:"6, 6 ".concat(e.width-6,", 6 ").concat(e.width-6,", ").concat(e.height-6," 6, ").concat(e.height-6," 6, 6")}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:"11",r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:"11",r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:e.height-11,r:"1"}}),t("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:e.height-11,r:"1"}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),we=[],xe={name:"DvBorderBox2",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Ce=xe,Se=Object(x["a"])(Ce,_e,we,!1,null,null,null),ke=Se.exports,Oe=function(e){e.component(ke.name,ke)},Me=(n("1e4c"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-3"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 23, 23 ".concat(e.width-24,", 23 ").concat(e.width-24,", ").concat(e.height-24," 23, ").concat(e.height-24,"\n ")}}),t("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:e.mergedColor[0],points:"4, 4 ".concat(e.width-22," ,4 ").concat(e.width-22,", ").concat(e.height-22," 4, ").concat(e.height-22," 4, 4")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"10, 10 ".concat(e.width-16,", 10 ").concat(e.width-16,", ").concat(e.height-16," 10, ").concat(e.height-16," 10, 10")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"16, 16 ".concat(e.width-10,", 16 ").concat(e.width-10,", ").concat(e.height-10," 16, ").concat(e.height-10," 16, 16")}}),t("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"22, 22 ".concat(e.width-4,", 22 ").concat(e.width-4,", ").concat(e.height-4," 22, ").concat(e.height-4," 22, 22")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),De=[],Ee={name:"DvBorderBox3",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Te=Ee,Le=Object(x["a"])(Te,Me,De,!1,null,null,null),Ie=Le.exports,Ae=function(e){e.component(Ie.name,Ie)},Ne=(n("1dac"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-4"},[t("svg",{class:"dv-border-svg-container ".concat(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n ".concat(e.width-15,", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n 16, 42 16, ").concat(e.height-32," 41, ").concat(e.height-7," ").concat(e.width-15,", ").concat(e.height-7,"\n ")}}),t("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:e.mergedColor[0],points:"145, ".concat(e.height-5," 40, ").concat(e.height-5," 10, ").concat(e.height-35,"\n 10, 40 40, 5 150, 5 170, 20 ").concat(e.width-15,", 20")}}),t("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:e.mergedColor[1],points:"245, ".concat(e.height-1," 36, ").concat(e.height-1," 14, ").concat(e.height-23,"\n 14, ").concat(e.height-100)}}),t("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:e.mergedColor[0],points:"7, ".concat(e.height-40," 7, ").concat(e.height-75)}}),t("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:e.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),t("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:e.mergedColor[0],points:"5, 45 5, 140"}}),t("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:e.mergedColor[1],points:"14, 75 14, 180"}}),t("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:e.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),t("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:e.mergedColor[1],points:"158, 5 173, 16"}}),t("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:e.mergedColor[0],points:"200, 17 ".concat(e.width-10,", 17")}}),t("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:e.mergedColor[1],points:"385, 17 ".concat(e.width-10,", 17")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Pe=[],Re={name:"DvBorderBox4",mixins:[B],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Fe=Re,je=Object(x["a"])(Fe,Ne,Pe,!1,null,null,null),Be=je.exports,ze=function(e){e.component(Be.name,Be)},Ve=(n("042d"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-5"},[t("svg",{class:"dv-border-svg-container ".concat(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 10, 22 ".concat(e.width-22,", 22 ").concat(e.width-22,", ").concat(e.height-86," ").concat(e.width-84,", ").concat(e.height-24," 10, ").concat(e.height-24,"\n ")}}),t("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:e.mergedColor[0],points:"8, 5 ".concat(e.width-5,", 5 ").concat(e.width-5,", ").concat(e.height-100,"\n ").concat(e.width-100,", ").concat(e.height-5," 8, ").concat(e.height-5," 8, 5")}}),t("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:e.mergedColor[1],points:"3, 5 ".concat(e.width-20,", 5 ").concat(e.width-20,", ").concat(e.height-60,"\n ").concat(e.width-74,", ").concat(e.height-5," 3, ").concat(e.height-5," 3, 5")}}),t("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:e.mergedColor[1],points:"50, 13 ".concat(e.width-35,", 13")}}),t("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:e.mergedColor[1],points:"15, 20 ".concat(e.width-35,", 20")}}),t("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:e.mergedColor[1],points:"15, ".concat(e.height-20," ").concat(e.width-110,", ").concat(e.height-20)}}),t("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:e.mergedColor[1],points:"15, ".concat(e.height-13," ").concat(e.width-110,", ").concat(e.height-13)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),$e=[],We={name:"DvBorderBox5",mixins:[B],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},He=We,Ue=Object(x["a"])(He,Ve,$e,!1,null,null,null),qe=Ue.exports,Ge=function(e){e.component(qe.name,qe)},Ke=(n("4e86"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-6"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 9, 7 ".concat(e.width-9,", 7 ").concat(e.width-9,", ").concat(e.height-7," 9, ").concat(e.height-7,"\n ")}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:"5",r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:"5",r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:e.height-5,r:"2"}}),t("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:e.height-5,r:"2"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, 4 ".concat(e.width-10,", 4")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, ".concat(e.height-4," ").concat(e.width-10,", ").concat(e.height-4)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"5, 70 5, ".concat(e.height-70)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-5,", 70 ").concat(e.width-5,", ").concat(e.height-70)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, 10, 3, 50"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, 30 7, 80"}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-3,", 10 ").concat(e.width-3,", 50")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-7,", 30 ").concat(e.width-7,", 80")}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, ".concat(e.height-10," 3, ").concat(e.height-50)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, ".concat(e.height-30," 7, ").concat(e.height-80)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-3,", ").concat(e.height-10," ").concat(e.width-3,", ").concat(e.height-50)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-7,", ").concat(e.height-30," ").concat(e.width-7,", ").concat(e.height-80)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Ye=[],Xe={name:"DvBorderBox6",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Ze=Xe,Qe=Object(x["a"])(Ze,Ke,Ye,!1,null,null,null),Je=Qe.exports,et=function(e){e.component(Je.name,Je)},tt=(n("3648"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px ".concat(e.mergedColor[0],"; border: 1px solid ").concat(e.mergedColor[0],"; background-color: ").concat(e.backgroundColor)},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-25,", 0 ").concat(e.width,", 0 ").concat(e.width,", 25")}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"".concat(e.width-25,", ").concat(e.height," ").concat(e.width,", ").concat(e.height," ").concat(e.width,", ").concat(e.height-25)}}),t("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, ".concat(e.height-25," 0, ").concat(e.height," 25, ").concat(e.height)}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"".concat(e.width-10,", 0 ").concat(e.width,", 0 ").concat(e.width,", 10")}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"".concat(e.width-10,", ").concat(e.height," ").concat(e.width,", ").concat(e.height," ").concat(e.width,", ").concat(e.height-10)}}),t("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, ".concat(e.height-10," 0, ").concat(e.height," 10, ").concat(e.height)}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),nt=[],it={name:"DvBorderBox7",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},rt=it,ot=Object(x["a"])(rt,tt,nt,!1,null,null,null),at=ot.exports,st=function(e){e.component(at.name,at)},lt=(n("733c"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-8"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("path",{attrs:{id:e.path,d:e.pathD,fill:"transparent"}}),t("radialGradient",{attrs:{id:e.gradient,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("mask",{attrs:{id:e.mask}},[t("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#".concat(e.gradient,")")}},[t("animateMotion",{attrs:{dur:"".concat(e.dur,"s"),path:e.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),t("polygon",{attrs:{fill:e.backgroundColor,points:"5, 5 ".concat(e.width-5,", 5 ").concat(e.width-5," ").concat(e.height-5," 5, ").concat(e.height-5)}}),t("use",{attrs:{stroke:e.mergedColor[0],"stroke-width":"1","xlink:href":"#".concat(e.path)}}),t("use",{attrs:{stroke:e.mergedColor[1],"stroke-width":"3","xlink:href":"#".concat(e.path),mask:"url(#".concat(e.mask,")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.length),to:"".concat(e.length,", 0"),dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})])]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),ct=[],ut={name:"DvBorderBox8",mixins:[B],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var e=j();return{ref:"border-box-8",path:"border-box-8-path-".concat(e),gradient:"border-box-8-gradient-".concat(e),mask:"border-box-8-mask-".concat(e),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){var e=this.width,t=this.height;return 2*(e+t-5)},pathD:function(){var e=this.reverse,t=this.width,n=this.height;return e?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(t-2.5,", ").concat(n-2.5," L ").concat(t-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(t-2.5,", 2.5 L").concat(t-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},dt=ut,ht=Object(x["a"])(dt,lt,ct,!1,null,null,null),ft=ht.exports,pt=function(e){e.component(ft.name,ft)},gt=(n("6fc2"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-border-box-9"},[t("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[t("defs",[t("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[t("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),t("stop",{attrs:{offset:"0%","stop-color":e.mergedColor[0]}},[t("animate",{attrs:{attributeName:"stop-color",values:"".concat(e.mergedColor[0],";").concat(e.mergedColor[1],";").concat(e.mergedColor[0]),dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),t("stop",{attrs:{offset:"100%","stop-color":e.mergedColor[1]}},[t("animate",{attrs:{attributeName:"stop-color",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0],";").concat(e.mergedColor[1]),dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),t("mask",{attrs:{id:e.maskId}},[t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, ".concat(.4*e.height," 8, 3, ").concat(.4*e.width+7,", 3")}}),t("polyline",{attrs:{fill:"#fff",points:"8, ".concat(.15*e.height," 8, 3, ").concat(.1*e.width+7,", 3\n ").concat(.1*e.width,", 8 14, 8 14, ").concat(.15*e.height-7,"\n ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"".concat(.5*e.width,", 3 ").concat(e.width-3,", 3, ").concat(e.width-3,", ").concat(.25*e.height)}}),t("polyline",{attrs:{fill:"#fff",points:"\n ".concat(.52*e.width,", 3 ").concat(.58*e.width,", 3\n ").concat(.58*e.width-7,", 9 ").concat(.52*e.width+7,", 9\n ")}}),t("polyline",{attrs:{fill:"#fff",points:"\n ".concat(.9*e.width,", 3 ").concat(e.width-3,", 3 ").concat(e.width-3,", ").concat(.1*e.height,"\n ").concat(e.width-9,", ").concat(.1*e.height-7," ").concat(e.width-9,", 9 ").concat(.9*e.width+7,", 9\n ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, ".concat(.5*e.height," 8, ").concat(e.height-3," ").concat(.3*e.width+7,", ").concat(e.height-3)}}),t("polyline",{attrs:{fill:"#fff",points:"\n 8, ".concat(.55*e.height," 8, ").concat(.7*e.height,"\n 2, ").concat(.7*e.height-7," 2, ").concat(.55*e.height+7,"\n ")}}),t("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"".concat(.35*e.width,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(.35*e.height)}}),t("polyline",{attrs:{fill:"#fff",points:"\n ".concat(.92*e.width,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(e.height-3," ").concat(e.width-3,", ").concat(.8*e.height,"\n ").concat(e.width-9,", ").concat(.8*e.height+7," ").concat(e.width-9,", ").concat(e.height-9," ").concat(.92*e.width+7,", ").concat(e.height-9,"\n ")}})])],1),t("polygon",{attrs:{fill:e.backgroundColor,points:"\n 15, 9 ".concat(.1*e.width+1,", 9 ").concat(.1*e.width+4,", 6 ").concat(.52*e.width+2,", 6\n ").concat(.52*e.width+6,", 10 ").concat(.58*e.width-7,", 10 ").concat(.58*e.width-2,", 6\n ").concat(.9*e.width+2,", 6 ").concat(.9*e.width+6,", 10 ").concat(e.width-10,", 10 ").concat(e.width-10,", ").concat(.1*e.height-6,"\n ").concat(e.width-6,", ").concat(.1*e.height-1," ").concat(e.width-6,", ").concat(.8*e.height+1," ").concat(e.width-10,", ").concat(.8*e.height+6,"\n ").concat(e.width-10,", ").concat(e.height-10," ").concat(.92*e.width+7,", ").concat(e.height-10," ").concat(.92*e.width+2,", ").concat(e.height-6,"\n 11, ").concat(e.height-6," 11, ").concat(.15*e.height-2," 15, ").concat(.15*e.height-7,"\n ")}}),t("rect",{attrs:{x:"0",y:"0",width:e.width,height:e.height,fill:"url(#".concat(e.gradientId,")"),mask:"url(#".concat(e.maskId,")")}})]),t("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),mt=[],vt={name:"DvBorderBox9",mixins:[B],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=j();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(e),maskId:"border-box-9-mask-".concat(e),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},bt=vt,yt=Object(x["a"])(bt,gt,mt,!1,null,null,null),_t=yt.exports,wt=function(e){e.component(_t.name,_t)},xt=(n("335d"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-capsule-chart"},[e.mergedConfig?[t("div",{staticClass:"label-column"},[e._l(e.mergedConfig.data,(function(n){return t("div",{key:n.name},[e._v(e._s(n.name))])})),t("div",[e._v(" ")])],2),t("div",{staticClass:"capsule-container"},[e._l(e.capsuleLength,(function(n,i){return t("div",{key:i,staticClass:"capsule-item"},[t("div",{staticClass:"capsule-item-column",style:"width: ".concat(100*n,"%; background-color: ").concat(e.mergedConfig.colors[i%e.mergedConfig.colors.length],";")},[e.mergedConfig.showValue?t("div",{staticClass:"capsule-item-value"},[e._v(e._s(e.capsuleValue[i]))]):e._e()])])})),t("div",{staticClass:"unit-label"},e._l(e.labelData,(function(n,i){return t("div",{key:n+i},[e._v(e._s(n))])})),0)],2),e.mergedConfig.unit?t("div",{staticClass:"unit-text"},[e._v(e._s(e.mergedConfig.unit))]):e._e()]:e._e()],2)}),Ct=[],St=(n("6c7b"),n("4f7f"),n("5df3"),n("1c4c"),{name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{calcData:function(){var e=this.mergeConfig,t=this.calcCapsuleLengthAndLabelData;e(),t()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{})},calcCapsuleLengthAndLabelData:function(){var e=this.mergedConfig.data;if(e.length){var t=e.map((function(e){var t=e.value;return t})),n=Math.max.apply(Math,Object(o["a"])(t));this.capsuleValue=t,this.capsuleLength=t.map((function(e){return n?e/n:0}));var i=n/5,r=Array.from(new Set(new Array(6).fill(0).map((function(e,t){return Math.ceil(t*i)}))));this.labelData=r,this.labelDataLength=Array.from(r).map((function(e){return n?e/n:0}))}}},mounted:function(){var e=this.calcData;e()}}),kt=St,Ot=Object(x["a"])(kt,xt,Ct,!1,null,null,null),Mt=Ot.exports,Dt=function(e){e.component(Mt.name,Mt)},Et=(n("8261"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-charts-container"},[t("div",{ref:e.chartRef,staticClass:"charts-canvas-container"})])}),Tt=[],Lt={name:"DvCharts",mixins:[B],props:{option:{type:Object,default:function(){return{}}}},data:function(){var e=j();return{ref:"charts-container-".concat(e),chartRef:"chart-".concat(e),chart:null}},watch:{option:function(){var e=this.chart,t=this.option;e&&(t||(t={}),e.setOption(t,!0))}},methods:{afterAutoResizeMixinInit:function(){var e=this.initChart;e()},initChart:function(){var e=this.$refs,t=this.chartRef,n=this.option,i=this.chart=new l.a(e[t]);n&&i.setOption(n)},onResize:function(){var e=this.chart;e&&e.resize()}}},It=Lt,At=Object(x["a"])(It,Et,Tt,!1,null,null,null),Nt=At.exports,Pt=function(e){e.component(Nt.name,Nt)},Rt=(n("7ed3"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-conical-column-chart"},[t("svg",{attrs:{width:e.width,height:e.height}},e._l(e.column,(function(n,i){return t("g",{key:i},[t("path",{attrs:{d:n.d,fill:e.mergedConfig.columnColor}}),t("text",{style:"fontSize:".concat(e.mergedConfig.fontSize,"px"),attrs:{fill:e.mergedConfig.textColor,x:n.x,y:e.height-4}},[e._v("\n "+e._s(n.name)+"\n ")]),e.mergedConfig.img.length?t("image",{attrs:{"xlink:href":e.mergedConfig.img[i%e.mergedConfig.img.length],width:e.mergedConfig.imgSideLength,height:e.mergedConfig.imgSideLength,x:n.x-e.mergedConfig.imgSideLength/2,y:n.y-e.mergedConfig.imgSideLength}}):e._e(),e.mergedConfig.showValue?t("text",{style:"fontSize:".concat(e.mergedConfig.fontSize,"px"),attrs:{fill:e.mergedConfig.textColor,x:n.x,y:n.textY}},[e._v("\n "+e._s(n.value)+"\n ")]):e._e()])})),0)])}),Ft=[];n("55dd");function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zt={name:"DvConicalColumnChart",mixins:[B],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this.mergeConfig,t=this.initData,n=this.calcSVGPath;e(),t(),n()},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(e,!0),t||{})},initData:function(){var e=this.mergedConfig,t=e.data;t=Object(y["deepClone"])(t,!0),t.sort((function(e,t){var n=e.value,i=t.value;return n>i?-1:n<i?1:n===i?0:void 0}));var n=t[0]?t[0].value:10;t=t.map((function(e){return Bt(Bt({},e),{},{percent:e.value/n})})),e.data=t},calcSVGPath:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=e.imgSideLength,r=e.fontSize,o=e.data,a=o.length,s=t/(a+1),l=n-i-r-5,c=n-r-5;this.column=o.map((function(e,t){var n=e.percent,i=s*(t+1),o=s*t,a=s*(t+2),u=c-l*n,d=l*n*.6+u,h="\n M".concat(o,", ").concat(c,"\n Q").concat(i,", ").concat(d," ").concat(i,",").concat(u,"\n M").concat(i,",").concat(u,"\n Q").concat(i,", ").concat(d," ").concat(a,",").concat(c,"\n L").concat(o,", ").concat(c,"\n Z\n "),f=(c+u)/2+r/2;return Bt(Bt({},e),{},{d:h,x:i,y:u,textY:f})}))}}},Vt=zt,$t=Object(x["a"])(Vt,Rt,Ft,!1,null,null,null),Wt=$t.exports,Ht=function(e){e.component(Wt.name,Wt)},Ut=(n("11b09"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-1"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,i){return[Math.random()>.6?t("rect",{key:i,attrs:{fill:e.mergedColor[0],x:n[0]-e.halfPointSideLength,y:n[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[0],";transparent"),dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()]):e._e()]})),e.rects[0]?t("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[0][0]-e.pointSideLength,y:e.rects[0][1]-e.pointSideLength,width:2*e.pointSideLength,height:2*e.pointSideLength}},[t("animate",{attrs:{attributeName:"width",values:"0;".concat(2*e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"height",values:"0;".concat(2*e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x",values:"".concat(e.rects[0][0],";").concat(e.rects[0][0]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"y",values:"".concat(e.rects[0][1],";").concat(e.rects[0][1]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):e._e(),e.rects[1]?t("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[1][0]-40,y:e.rects[1][1]-e.pointSideLength,width:40,height:2*e.pointSideLength}},[t("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"x",values:"".concat(e.rects[1][0],";").concat(e.rects[1][0]-40,";").concat(e.rects[1][0]),dur:"2s",repeatCount:"indefinite"}})]):e._e()],2)])}),qt=[],Gt={name:"DvDecoration1",mixins:[B],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=2.5;return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:e,halfPointSideLength:e/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcRectsPosition,n=this.calcScale;e(),t(),n()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=g(e,2),r=i[0],a=i[1],s=r/(n+1),l=a/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcRectsPosition:function(){var e=this.points,t=this.rowPoints,n=e[2*t-1],i=e[2*t-3];this.rects=[n,i]},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=g(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Kt=Gt,Yt=Object(x["a"])(Kt,Ut,qt,!1,null,null,null),Xt=Yt.exports,Zt=function(e){e.component(Xt.name,Xt)},Qt=(n("c423"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-10"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[1],"stroke-width":"2",points:"0, ".concat(e.height/2," ").concat(e.width,", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"5, ".concat(e.height/2," ").concat(.2*e.width-3,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.2*e.width),fill:"freeze"}},[t("animate",{attrs:{id:e.animationId2,attributeName:"stroke-dasharray",values:"0, ".concat(.2*e.width,";").concat(.2*e.width,", 0;"),dur:"3s",begin:"".concat(e.animationId1,".end"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.2*e.width,", 0;0, ").concat(.2*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"".concat(.2*e.width+3,", ").concat(e.height/2," ").concat(.8*e.width-3,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.6*e.width)}},[t("animate",{attrs:{id:e.animationId4,attributeName:"stroke-dasharray",values:"0, ".concat(.6*e.width,";").concat(.6*e.width,", 0"),dur:"3s",begin:"".concat(e.animationId3,".end + 1s"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.6*e.width,", 0;0, ").concat(.6*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"".concat(.8*e.width+3,", ").concat(e.height/2," ").concat(e.width-5,", ").concat(e.height/2),"stroke-dasharray":"0, ".concat(.2*e.width)}},[t("animate",{attrs:{id:e.animationId6,attributeName:"stroke-dasharray",values:"0, ".concat(.2*e.width,";").concat(.2*e.width,", 0"),dur:"3s",begin:"".concat(e.animationId5,".end + 1s"),fill:"freeze"}}),t("animate",{attrs:{attributeName:"stroke-dasharray",values:"".concat(.2*e.width,", 0;0, ").concat(.3*e.width),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:"2",cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId1,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"0s;".concat(e.animationId7,".end"),dur:"0.3s",fill:"freeze"}})]),t("circle",{attrs:{cx:.2*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId3,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId2,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:.8*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId5,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId4,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})]),t("circle",{attrs:{cx:e.width-2,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[t("animate",{attrs:{id:e.animationId7,attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[0]),begin:"".concat(e.animationId6,".end"),dur:"0.3s",fill:"freeze"}}),t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor[1],";").concat(e.mergedColor[1]),dur:"0.01s",begin:"".concat(e.animationId7,".end"),fill:"freeze"}})])])])}),Jt=[],en={name:"DvDecoration10",mixins:[B],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=j();return{ref:"decoration-10",animationId1:"d10ani1".concat(e),animationId2:"d10ani2".concat(e),animationId3:"d10ani3".concat(e),animationId4:"d10ani4".concat(e),animationId5:"d10ani5".concat(e),animationId6:"d10ani6".concat(e),animationId7:"d10ani7".concat(e),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},tn=en,nn=Object(x["a"])(tn,Qt,Jt,!1,null,null,null),rn=nn.exports,on=function(e){e.component(rn.name,rn)},an=(n("3e8a"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-11"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 ".concat(e.height-10,", 25 ").concat(e.height-4,", 55 ").concat(e.height-4," 60 ").concat(e.height-10)}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"".concat(e.width-20," 10, ").concat(e.width-25," 4, ").concat(e.width-55," 4 ").concat(e.width-60," 10")}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"".concat(e.width-20," ").concat(e.height-10,", ").concat(e.width-25," ").concat(e.height-4,", ").concat(e.width-55," ").concat(e.height-4," ").concat(e.width-60," ").concat(e.height-10)}}),t("polygon",{attrs:{fill:e.fade(e.mergedColor[0]||e.defaultColor[0],20),stroke:e.mergedColor[0],points:"\n 20 10, 5 ".concat(e.height/2," 20 ").concat(e.height-10,"\n ").concat(e.width-20," ").concat(e.height-10," ").concat(e.width-5," ").concat(e.height/2," ").concat(e.width-20," 10\n ")}}),t("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"25 18, 15 ".concat(e.height/2," 25 ").concat(e.height-18)}}),t("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"".concat(e.width-25," 18, ").concat(e.width-15," ").concat(e.height/2," ").concat(e.width-25," ").concat(e.height-18)}})]),t("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),sn=[],ln={name:"DvDecoration11",mixins:[B],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])},fade:ee["fade"]},mounted:function(){var e=this.mergeColor;e()}},cn=ln,un=Object(x["a"])(cn,an,sn,!1,null,null,null),dn=un.exports,hn=function(e){e.component(dn.name,dn)},fn=(n("e11f"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-12"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("g",{attrs:{id:e.gId}},e._l(e.pathD,(function(n,i){return t("path",{key:n,attrs:{stroke:e.pathColor[i],"stroke-width":e.width/2,fill:"transparent",d:n}})})),0),t("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),e._l(e.circleR,(function(n){return t("circle",{key:n,attrs:{r:n,cx:e.x,cy:e.y,stroke:e.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),t("circle",{attrs:{r:"1",cx:e.x,cy:e.y,stroke:"transparent",fill:"url(#".concat(e.gradientId,")")}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(e.width/2),dur:"".concat(e.haloDur,"s"),repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:"".concat(e.haloDur,"s"),repeatCount:"indefinite"}})]),t("circle",{attrs:{r:"2",cx:e.x,cy:e.y,fill:e.mergedColor[1]}}),e.showSplitLine?t("g",e._l(e.splitLinePoints,(function(n){return t("polyline",{key:n,attrs:{points:n,stroke:e.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):e._e(),e._l(e.arcD,(function(n){return t("path",{key:n,attrs:{d:n,stroke:e.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),t("use",{attrs:{"xlink:href":"#".concat(e.gId)}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, ".concat(e.x," ").concat(e.y,";360, ").concat(e.x," ").concat(e.y),dur:"".concat(e.scanDur,"s"),repeatCount:"indefinite"}})],1)],2),t("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),pn=[],gn={name:"DvDecoration12",mixins:[B],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var e=j();return{ref:"decoration-12",gId:"decoration-12-g-".concat(e),gradientId:"decoration-12-gradient-".concat(e),defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){var e=this.mergeColor;e()}},computed:{x:function(){var e=this.width;return e/2},y:function(){var e=this.height;return e/2}},methods:{init:function(){var e=this.mergeColor,t=this.calcPathD,n=this.calcPathColor,i=this.calcCircleR,r=this.calcSplitLinePoints,o=this.calcArcD;e(),t(),n(),i(),r(),o()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])},calcPathD:function(){var e=this.x,t=this.y,n=this.width,i=this.segment,r=this.sectorAngle,o=-Math.PI/2,a=r/i,s=n/4,l=Object(y["getCircleRadianPoint"])(e,t,s,o);this.pathD=new Array(i).fill("").map((function(n,i){var r=Object(y["getCircleRadianPoint"])(e,t,s,o-(i+1)*a).map((function(e){return e.toFixed(5)})),c="M".concat(l.join(",")," A").concat(s,", ").concat(s," 0 0 0 ").concat(r.join(","));return l=r,c}))},calcPathColor:function(){var e=g(this.mergedColor,1),t=e[0],n=this.segment,i=100/(n-1);this.pathColor=new Array(n).fill(t).map((function(e,n){return Object(ee["fade"])(t,100-n*i)}))},calcCircleR:function(){this.segment;var e=this.ringNum,t=this.width,n=this.ringWidth,i=(t/2-n/2)/e;this.circleR=new Array(e).fill(0).map((function(e,t){return i*(t+1)}))},calcSplitLinePoints:function(){var e=this.x,t=this.y,n=this.width,i=Math.PI/6,r=n/2;this.splitLinePoints=new Array(6).fill("").map((function(n,o){var a=i*(o+1),s=a+Math.PI,l=Object(y["getCircleRadianPoint"])(e,t,r,a),c=Object(y["getCircleRadianPoint"])(e,t,r,s);return"".concat(l.join(",")," ").concat(c.join(","))}))},calcArcD:function(){var e=this.x,t=this.y,n=this.width,i=Math.PI/6,r=n/2-1;this.arcD=new Array(4).fill("").map((function(n,o){var a=i*(3*o+1),s=a+i,l=Object(y["getCircleRadianPoint"])(e,t,r,a),c=Object(y["getCircleRadianPoint"])(e,t,r,s);return"M".concat(l.join(",")," A").concat(e,", ").concat(t," 0 0 1 ").concat(c.join(","))}))},afterAutoResizeMixinInit:function(){var e=this.init;e()},fade:ee["fade"]}},mn=gn,vn=Object(x["a"])(mn,fn,pn,!1,null,null,null),bn=vn.exports,yn=function(e){e.component(bn.name,bn)},_n=(n("9b06"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-2"},[t("svg",{attrs:{width:"".concat(e.width,"px"),height:"".concat(e.height,"px")}},[t("rect",{attrs:{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.mergedColor[0]}},[t("animate",{attrs:{attributeName:e.reverse?"height":"width",from:"0",to:e.reverse?e.height:e.width,dur:"".concat(e.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),t("rect",{attrs:{x:e.x,y:e.y,width:"1",height:"1",fill:e.mergedColor[1]}},[t("animate",{attrs:{attributeName:e.reverse?"y":"x",from:"0",to:e.reverse?e.height:e.width,dur:"".concat(e.dur,"s"),calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),wn=[],xn={name:"DvDecoration2",mixins:[B],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()},reverse:function(){var e=this.calcSVGData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.reverse,t=this.width,n=this.height;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Cn=xn,Sn=Object(x["a"])(Cn,_n,wn,!1,null,null,null),kn=Sn.exports,On=function(e){e.component(kn.name,kn)},Mn=(n("5e07"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-3"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,i){return[t("rect",{key:i,attrs:{fill:e.mergedColor[0],x:n[0]-e.halfPointSideLength,y:n[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?t("animate",{attrs:{attributeName:"fill",values:"".concat(e.mergedColor.join(";")),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()])]}))],2)])}),Dn=[],En={name:"DvDecoration3",mixins:[B],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:e,halfPointSideLength:e/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=g(e,2),r=i[0],a=i[1],s=r/(n+1),l=a/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=g(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Tn=En,Ln=Object(x["a"])(Tn,Mn,Dn,!1,null,null,null),In=Ln.exports,An=function(e){e.component(In.name,In)},Nn=(n("c2ca"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-4"},[t("div",{class:"container ".concat(e.reverse?"reverse":"normal"),style:e.reverse?"width:".concat(e.width,"px;height:5px;animation-duration:").concat(e.dur,"s"):"width:5px;height:".concat(e.height,"px;animation-duration:").concat(e.dur,"s")},[t("svg",{attrs:{width:e.reverse?e.width:5,height:e.reverse?5:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[0],points:e.reverse?"0, 2.5 ".concat(e.width,", 2.5"):"2.5, 0 2.5, ".concat(e.height)}}),t("polyline",{staticClass:"bold-line",attrs:{stroke:e.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:e.reverse?"0, 2.5 ".concat(e.width,", 2.5"):"2.5, 0 2.5, ".concat(e.height)}})])])])}),Pn=[],Rn={name:"DvDecoration4",mixins:[B],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Fn=Rn,jn=Object(x["a"])(Fn,Nn,Pn,!1,null,null,null),Bn=jn.exports,zn=function(e){e.component(Bn.name,Bn)},Vn=(n("2848"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-5"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"3",points:e.line1Points}},[t("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(e.line1Length/2,", 0, ").concat(e.line1Length/2),to:"0, 0, ".concat(e.line1Length,", 0"),dur:"".concat(e.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),t("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"2",points:e.line2Points}},[t("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, ".concat(e.line2Length/2,", 0, ").concat(e.line2Length/2),to:"0, 0, ".concat(e.line2Length,", 0"),dur:"".concat(e.dur,"s"),begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),$n=[],Wn={name:"DvDecoration5",mixins:[B],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.width,t=this.height,n=[[0,.2*t],[.18*e,.2*t],[.2*e,.4*t],[.25*e,.4*t],[.27*e,.6*t],[.72*e,.6*t],[.75*e,.4*t],[.8*e,.4*t],[.82*e,.2*t],[e,.2*t]],i=[[.3*e,.8*t],[.7*e,.8*t]],r=Object(b["getPolylineLength"])(n),o=Object(b["getPolylineLength"])(i);n=n.map((function(e){return e.join(",")})).join(" "),i=i.map((function(e){return e.join(",")})).join(" "),this.line1Points=n,this.line2Points=i,this.line1Length=r,this.line2Length=o},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Hn=Wn,Un=Object(x["a"])(Hn,Vn,$n,!1,null,null,null),qn=Un.exports,Gn=function(e){e.component(qn.name,qn)},Kn=(n("c7c8"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-6"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[e._l(e.points,(function(n,i){return[t("rect",{key:i,attrs:{fill:e.mergedColor[Math.random()>.5?0:1],x:n[0]-e.halfRectWidth,y:n[1]-e.heights[i]/2,width:e.rectWidth,height:e.heights[i]}},[t("animate",{attrs:{attributeName:"y",values:"".concat(n[1]-e.minHeights[i]/2,";").concat(n[1]-e.heights[i]/2,";").concat(n[1]-e.minHeights[i]/2),dur:"".concat(e.randoms[i],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"height",values:"".concat(e.minHeights[i],";").concat(e.heights[i],";").concat(e.minHeights[i]),dur:"".concat(e.randoms[i],"s"),keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]}))],2)])}),Yn=[],Xn={name:"DvDecoration6",mixins:[B],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:e,halfRectWidth:e/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=g(e,2),r=i[0],a=i[1],s=r/(n+1),l=a/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[]);var u=this.heights=new Array(t*n).fill(0).map((function(e){return Math.random()>.8?N(.7*a,a):N(.2*a,.5*a)}));this.minHeights=new Array(t*n).fill(0).map((function(e,t){return u[t]*Math.random()})),this.randoms=new Array(t*n).fill(0).map((function(e){return Math.random()+1.5}))},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=g(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Zn=Xn,Qn=Object(x["a"])(Zn,Kn,Yn,!1,null,null,null),Jn=Qn.exports,ei=function(e){e.component(Jn.name,Jn)},ti=(n("d51d"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-decoration-7"},[t("svg",{attrs:{width:"21px",height:"20px"}},[t("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),t("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),e._t("default"),t("svg",{attrs:{width:"21px",height:"20px"}},[t("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),t("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),ni=[],ii={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},ri=ii,oi=Object(x["a"])(ri,ti,ni,!1,null,null,null),ai=oi.exports,si=function(e){e.component(ai.name,ai)},li=(n("357d"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-8"},[t("svg",{attrs:{width:e.width,height:e.height}},[t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:"".concat(e.xPos(0),", 0 ").concat(e.xPos(30),", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:"".concat(e.xPos(20),", 0 ").concat(e.xPos(50),", ").concat(e.height/2," ").concat(e.xPos(e.width),", ").concat(e.height/2)}}),t("polyline",{attrs:{stroke:e.mergedColor[1],fill:"transparent","stroke-width":"3",points:"".concat(e.xPos(0),", ").concat(e.height-3,", ").concat(e.xPos(200),", ").concat(e.height-3)}})])])}),ci=[],ui={name:"DvDecoration8",mixins:[B],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{xPos:function(e){var t=this.reverse,n=this.width;return t?n-e:e},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},di=ui,hi=Object(x["a"])(di,li,ci,!1,null,null,null),fi=hi.exports,pi=function(e){e.component(fi.name,fi)},gi=(n("9ab4"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-decoration-9"},[t("svg",{style:"transform:scale(".concat(e.svgScale[0],",").concat(e.svgScale[1],");"),attrs:{width:"".concat(e.svgWH[0],"px"),height:"".concat(e.svgWH[1],"px")}},[t("defs",[t("polygon",{attrs:{id:e.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),t("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})],1),t("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:"".concat(e.dur,"s"),repeatCount:"indefinite"}})],1),t("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),e._l(new Array(20).fill(0),(function(n,i){return t("use",{key:i,attrs:{"xlink:href":"#".concat(e.polygonId),stroke:e.mergedColor[1],fill:Math.random()>.4?"transparent":e.mergedColor[0]}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:"".concat(e.dur,"s"),begin:"".concat(i*e.dur/20,"s"),repeatCount:"indefinite"}})],1)})),t("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),e._t("default")],2)}),mi=[],vi={name:"DvDecoration9",mixins:[B],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var e=j();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(e),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcScale;e()},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=g(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcScale;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||[])},fade:ee["fade"]},mounted:function(){var e=this.mergeColor;e()}},bi=vi,yi=Object(x["a"])(bi,gi,mi,!1,null,null,null),_i=yi.exports,wi=function(e){e.component(_i.name,_i)},xi=(n("bc96"),function(e){e.component(S.name,S)}),Ci=(n("41f6"),n("6b54"),function(){var e=this,t=e._self._c;return t("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url(".concat(e.mergedConfig?e.mergedConfig.bgImgUrl:"",")"),on:{click:e.consoleClickPos}},[e.mergedConfig?t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("radialGradient",{attrs:{id:e.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),e.paths[0]?t("circle",{attrs:{id:"circle".concat(e.paths[0].toString()),cx:e.paths[0][2][0],cy:e.paths[0][2][1]}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(e.mergedConfig.halo.radius),dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):e._e()],1),e.paths[0]?t("image",{attrs:{"xlink:href":e.mergedConfig.centerPointImg.url,width:e.mergedConfig.centerPointImg.width,height:e.mergedConfig.centerPointImg.height,x:e.paths[0][2][0]-e.mergedConfig.centerPointImg.width/2,y:e.paths[0][2][1]-e.mergedConfig.centerPointImg.height/2}}):e._e(),t("mask",{attrs:{id:"maskhalo".concat(e.paths[0].toString())}},[e.paths[0]?t("use",{attrs:{"xlink:href":"#circle".concat(e.paths[0].toString()),fill:"url(#".concat(e.gradient2Id,")")}}):e._e()]),e.paths[0]&&e.mergedConfig.halo.show?t("use",{attrs:{"xlink:href":"#circle".concat(e.paths[0].toString()),fill:e.mergedConfig.halo.color,mask:"url(#maskhalo".concat(e.paths[0].toString(),")")}}):e._e(),e._l(e.paths,(function(n,i){return t("g",{key:i},[t("defs",[t("path",{ref:"path".concat(i),refInFor:!0,attrs:{id:"path".concat(n.toString()),d:"M".concat(n[0].toString()," Q").concat(n[1].toString()," ").concat(n[2].toString()),fill:"transparent"}})]),t("use",{attrs:{"xlink:href":"#path".concat(n.toString()),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.orbitColor}}),e.lengths[i]?t("use",{attrs:{"xlink:href":"#path".concat(n.toString()),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.flylineColor,mask:"url(#mask".concat(e.unique).concat(n.toString(),")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.lengths[i]),to:"".concat(e.lengths[i],", 0"),dur:e.times[i]||0,repeatCount:"indefinite"}})]):e._e(),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.toString())}},[t("circle",{attrs:{cx:"0",cy:"0",r:e.mergedConfig.flylineRadius,fill:"url(#".concat(e.gradientId,")")}},[t("animateMotion",{attrs:{dur:e.times[i]||0,path:"M".concat(n[0].toString()," Q").concat(n[1].toString()," ").concat(n[2].toString()),rotate:"auto",repeatCount:"indefinite"}})],1)]),t("image",{attrs:{"xlink:href":e.mergedConfig.pointsImg.url,width:e.mergedConfig.pointsImg.width,height:e.mergedConfig.pointsImg.height,x:n[0][0]-e.mergedConfig.pointsImg.width/2,y:n[0][1]-e.mergedConfig.pointsImg.height/2}}),t("text",{style:"fontSize:".concat(e.mergedConfig.text.fontSize,"px;"),attrs:{fill:e.mergedConfig.text.color,x:n[0][0]+e.mergedConfig.text.offset[0],y:n[0][1]+e.mergedConfig.text.offset[1]}},[e._v("\n "+e._s(e.texts[i])+"\n ")])])}))],2):e._e()])}),Si=[];n("96cf");function ki(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(i,r)}function Oi(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){ki(o,i,r,a,s,"next",e)}function s(e){ki(o,i,r,a,s,"throw",e)}a(void 0)}))}}var Mi={name:"DvFlylineChart",mixins:[B],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=j();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(e),maskCircleId:"mask-circle-id-".concat(e),gradientId:"gradient-id-".concat(e),gradient2Id:"gradient2-id-".concat(e),defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.mergeConfig,n=this.createFlylinePaths,i=this.calcLineLengths,t(),n(),e.next=5,i();case 5:r=this.calcTimes,o=this.calcTexts,r(),o();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{}),i=n.points;n.points=i.map((function(e){return e instanceof Array?{position:e,text:""}:e})),this.mergedConfig=n},createFlylinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=this.width,i=this.height,r=t.centerPoint,o=t.points,a=t.relative;o=o.map((function(e){var t=e.position;return t})),a&&(r=[n*r[0],i*r[1]],o=o.map((function(e){var t=g(e,2),r=t[0],o=t[1];return[n*r,i*o]}))),this.paths=o.map((function(t){return e(r,t)}))},getPath:function(e,t){var n=this.getControlPoint,i=n(e,t);return[t,i,e]},getControlPoint:function(e,t){var n=g(e,2),i=n[0],r=n[1],o=g(t,2),a=o[0],s=o[1],l=this.getKLinePointByx,c=this.mergedConfig,u=c.curvature,d=c.k,h=(i+a)/2,f=(r+s)/2,p=F([i,r],[a,s]),m=p/u,v=m/2,b=h,y=f;do{b+=v,y=l(d,[h,f],b)[1]}while(F([h,f],[b,y])<m);return[b,y]},getKLinePointByx:function(e,t,n){var i=g(t,2),r=i[0],o=i[1],a=o-e*r+e*n;return[n,a]},calcLineLengths:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$nextTick,n=this.paths,i=this.$refs,e.next=3,t();case 3:this.lengths=n.map((function(e,t){return i["path".concat(t)][0].getTotalLength()}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),calcTimes:function(){var e=this.mergedConfig,t=e.duration,n=e.points;this.times=n.map((function(e){return N.apply(void 0,Object(o["a"])(t))/10}))},calcTexts:function(){var e=this.mergedConfig.points;this.texts=e.map((function(e){var t=e.text;return t}))},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,i=this.width,r=this.height,o=this.dev;if(o){var a=(t/i).toFixed(2),s=(n/r).toFixed(2);console.warn("dv-flyline-chart DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}},Di=Mi,Ei=Object(x["a"])(Di,Ci,Si,!1,null,null,null),Ti=Ei.exports,Li=function(e){e.component(Ti.name,Ti)},Ii=(n("dbbf"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url(".concat(e.mergedConfig?e.mergedConfig.bgImgSrc:"",")"),on:{click:e.consoleClickPos}},[e.flylines.length?t("svg",{attrs:{width:e.width,height:e.height}},[t("defs",[t("radialGradient",{attrs:{id:e.flylineGradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),t("radialGradient",{attrs:{id:e.haloGradientId,cx:"50%",cy:"50%",r:"50%"}},[t("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),t("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1)],1),e._l(e.flylinePoints,(function(n){return t("g",{key:n.key+Math.random()},[t("defs",[n.halo.show?t("circle",{attrs:{id:"halo".concat(e.unique).concat(n.key),cx:n.coordinate[0],cy:n.coordinate[1]}},[t("animate",{attrs:{attributeName:"r",values:"1;".concat(n.halo.radius),dur:"".concat(n.halo.time,"s"),repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:"".concat(n.halo.time,"s"),repeatCount:"indefinite"}})]):e._e()]),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.key)}},[n.halo.show?t("use",{attrs:{"xlink:href":"#halo".concat(e.unique).concat(n.key),fill:"url(#".concat(e.haloGradientId,")")}}):e._e()]),n.halo.show?t("use",{attrs:{"xlink:href":"#halo".concat(e.unique).concat(n.key),fill:n.halo.color,mask:"url(#mask".concat(e.unique).concat(n.key,")")}}):e._e(),n.icon.show?t("image",{attrs:{"xlink:href":n.icon.src,width:n.icon.width,height:n.icon.height,x:n.icon.x,y:n.icon.y}}):e._e(),n.text.show?t("text",{style:"fontSize:".concat(n.text.fontSize,"px;color:").concat(n.text.color),attrs:{fill:n.text.color,x:n.text.x,y:n.text.y}},[e._v("\n "+e._s(n.name)+"\n ")]):e._e()])})),e._l(e.flylines,(function(n,i){return t("g",{key:n.key+Math.random()},[t("defs",[t("path",{ref:n.key,refInFor:!0,attrs:{id:n.key,d:n.d,fill:"transparent"}})]),t("use",{attrs:{"xlink:href":"#".concat(n.key),"stroke-width":n.width,stroke:n.orbitColor}}),t("mask",{attrs:{id:"mask".concat(e.unique).concat(n.key)}},[t("circle",{attrs:{cx:"0",cy:"0",r:n.radius,fill:"url(#".concat(e.flylineGradientId,")")}},[t("animateMotion",{attrs:{dur:n.time,path:n.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),e.flylineLengths[i]?t("use",{attrs:{"xlink:href":"#".concat(n.key),"stroke-width":n.width,stroke:n.color,mask:"url(#mask".concat(e.unique).concat(n.key,")")}},[t("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, ".concat(e.flylineLengths[i]),to:"".concat(e.flylineLengths[i],", 0"),dur:n.time,repeatCount:"indefinite"}})]):e._e()])}))],2):e._e()])}),Ai=[];n("7514");function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Pi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ri={name:"DvFlylineChartEnhanced",mixins:[B],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=j();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-".concat(e),haloGradientId:"halo-gradient-id-".concat(e),defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.mergeConfig,n=this.calcflylinePoints,i=this.calcLinePaths,t(),n(),i(),r=this.calcLineLengths,e.next=7,r();case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{}),i=n.points,r=n.lines,o=n.halo,a=n.text,s=n.icon,l=n.line;n.points=i.map((function(e){return e.halo=Object(b["deepMerge"])(Object(y["deepClone"])(o,!0),e.halo||{}),e.text=Object(b["deepMerge"])(Object(y["deepClone"])(a,!0),e.text||{}),e.icon=Object(b["deepMerge"])(Object(y["deepClone"])(s,!0),e.icon||{}),e})),n.lines=r.map((function(e){return Object(b["deepMerge"])(Object(y["deepClone"])(l,!0),e)})),this.mergedConfig=n},calcflylinePoints:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=e.relative,r=e.points;this.flylinePoints=r.map((function(e,r){var a=g(e.coordinate,2),s=a[0],l=a[1],c=e.halo,u=e.icon,d=e.text;i&&(e.coordinate=[s*t,l*n]),e.halo.time=N.apply(void 0,Object(o["a"])(c.duration))/10;var h=u.width,f=u.height;e.icon.x=e.coordinate[0]-h/2,e.icon.y=e.coordinate[1]-f/2;var p=g(d.offset,2),m=p[0],v=p[1];return e.text.x=e.coordinate[0]+m,e.text.y=e.coordinate[1]+v,e.key="".concat(e.coordinate.toString()).concat(r),e}))},calcLinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=t.points,i=t.lines;this.flylines=i.map((function(t){var i=t.source,r=t.target,a=t.duration,s=n.find((function(e){var t=e.name;return t===i})).coordinate,l=n.find((function(e){var t=e.name;return t===r})).coordinate,c=e(s,l).map((function(e){return e.map((function(e){return parseFloat(e.toFixed(10))}))})),u="M".concat(c[0].toString()," Q").concat(c[1].toString()," ").concat(c[2].toString()),d="path".concat(c.toString()),h=N.apply(void 0,Object(o["a"])(a))/10;return Pi(Pi({},t),{},{path:c,key:d,d:u,time:h})}))},getPath:function(e,t){var n=this.getControlPoint,i=n(e,t);return[e,i,t]},getControlPoint:function(e,t){var n=g(e,2),i=n[0],r=n[1],o=g(t,2),a=o[0],s=o[1],l=this.getKLinePointByx,c=this.mergedConfig,u=c.curvature,d=c.k,h=(i+a)/2,f=(r+s)/2,p=F([i,r],[a,s]),m=p/u,v=m/2,b=h,y=f;do{b+=v,y=l(d,[h,f],b)[1]}while(F([h,f],[b,y])<m);return[b,y]},getKLinePointByx:function(e,t,n){var i=g(t,2),r=i[0],o=i[1],a=o-e*r+e*n;return[n,a]},calcLineLengths:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$nextTick,n=this.flylines,i=this.$refs,e.next=3,t();case 3:this.flylineLengths=n.map((function(e){var t=e.key;return i[t][0].getTotalLength()}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,i=this.width,r=this.height,o=this.dev;if(o){var a=(t/i).toFixed(2),s=(n/r).toFixed(2);console.warn("dv-flyline-chart-enhanced DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}},Fi=Ri,ji=Object(x["a"])(Fi,Ii,Ai,!1,null,null,null),Bi=ji.exports,zi=function(e){e.component(Bi.name,Bi)},Vi=(n("7cc8"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,attrs:{id:"dv-full-screen-container"}},[e.ready?[e._t("default")]:e._e()],2)}),$i=[],Wi={name:"DvFullScreenContainer",mixins:[B],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var e=this.initConfig,t=this.setAppScale;e(),t(),this.ready=!0},initConfig:function(){var e=this.dom,t=screen,n=t.width,i=t.height;this.allWidth=n,e.style.width="".concat(n,"px"),e.style.height="".concat(i,"px")},setAppScale:function(){var e=this.allWidth,t=this.dom,n=document.body.clientWidth;t.style.transform="scale(".concat(n/e,")")},onResize:function(){var e=this.setAppScale;e()}}},Hi=Wi,Ui=Object(x["a"])(Hi,Vi,$i,!1,null,null,null),qi=Ui.exports,Gi=function(e){e.component(qi.name,qi)},Ki=(n("84cd"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-loading"},[t("svg",{attrs:{width:"50px",height:"50px"}},[t("circle",{attrs:{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"}})],1),t("circle",{attrs:{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"}},[t("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),t("animate",{attrs:{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"}})],1)]),t("div",{staticClass:"loading-tip"},[e._t("default")],2)])}),Yi=[],Xi={name:"DvLoading"},Zi=Xi,Qi=Object(x["a"])(Zi,Ki,Yi,!1,null,null,null),Ji=Qi.exports,er=function(e){e.component(Ji.name,Ji)},tr=(n("a157"),function(){var e=this,t=e._self._c;return t("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[t("svg",[t("defs",[t("linearGradient",{attrs:{id:e.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},e._l(e.linearGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:"".concat(e[0],"%"),"stop-color":e[1]}})})),1),t("linearGradient",{attrs:{id:e.gradientId2,x1:"0%",y1:"0%",x2:e.gradient2XPos,y2:"0%"}},e._l(e.linearGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:"".concat(e[0],"%"),"stop-color":e[1]}})})),1)],1),t("rect",{attrs:{x:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",y:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",rx:e.mergedConfig?e.mergedConfig.borderRadius:"0",ry:e.mergedConfig?e.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":e.mergedConfig?e.mergedConfig.borderWidth:"0",stroke:"url(#".concat(e.gradientId1,")"),width:e.rectWidth>0?e.rectWidth:0,height:e.rectHeight>0?e.rectHeight:0}}),t("polyline",{attrs:{"stroke-width":e.polylineWidth,"stroke-dasharray":e.mergedConfig?e.mergedConfig.lineDash.join(","):"0",stroke:"url(#".concat(e.polylineGradient,")"),points:e.points}}),t("text",{attrs:{stroke:e.mergedConfig?e.mergedConfig.textColor:"#fff",fill:e.mergedConfig?e.mergedConfig.textColor:"#fff",x:e.width/2,y:e.height/2}},[e._v("\n "+e._s(e.details)+"\n ")])])])}),nr=[],ir=(n("a481"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var e=j();return{gradientId1:"percent-pond-gradientId1-".concat(e),gradientId2:"percent-pond-gradientId2-".concat(e),width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var e=this.mergedConfig,t=this.width;if(!e)return 0;var n=e.borderWidth;return t-n},rectHeight:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth;return t-n},points:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=n/2;if(!e)return"0, ".concat(i," 0, ").concat(i);var r=e.borderWidth,o=e.borderGap,a=e.value,s=(t-2*(r+o))/100*a;return"\n ".concat(r+o,", ").concat(i,"\n ").concat(r+o+s,", ").concat(i+.001,"\n ")},polylineWidth:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth,i=e.borderGap;return t-2*(n+i)},linearGradient:function(){var e=this.mergedConfig;if(!e)return[];var t=e.colors,n=t.length,i=100/(n-1);return t.map((function(e,t){return[i*t,e]}))},polylineGradient:function(){var e=this.gradientId1,t=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?e:t},gradient2XPos:function(){var e=this.mergedConfig;if(!e)return"100%";var t=e.value;return"".concat(200-t,"%")},details:function(){var e=this.mergedConfig;if(!e)return"";var t=e.value,n=e.formatter;return n.replace("{value}",t)}},watch:{config:function(){var e=this.mergeConfig;e()}},methods:{init:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.initWH,n=this.config,i=this.mergeConfig,e.next=3,t();case 3:if(n){e.next=5;break}return e.abrupt("return");case 5:i();case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),initWH:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$nextTick,n=this.$refs,e.next=3,t();case 3:i=n["percent-pond"],r=i.clientWidth,o=i.clientHeight,this.width=r,this.height=o;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{})}},mounted:function(){var e=this.init;e()}}),rr=ir,or=Object(x["a"])(rr,tr,nr,!1,null,null,null),ar=or.exports,sr=function(e){e.component(ar.name,ar)},lr=(n("037e"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-scroll-board"},[e.header.length&&e.mergedConfig?t("div",{staticClass:"header",style:"background-color: ".concat(e.mergedConfig.headerBGC,";")},e._l(e.header,(function(n,i){return t("div",{key:"".concat(n).concat(i),staticClass:"header-item",style:"\n height: ".concat(e.mergedConfig.headerHeight,"px;\n line-height: ").concat(e.mergedConfig.headerHeight,"px;\n width: ").concat(e.widths[i],"px;\n "),attrs:{align:e.aligns[i]},domProps:{innerHTML:e._s(n)}})})),0):e._e(),e.mergedConfig?t("div",{staticClass:"rows",style:"height: ".concat(e.height-(e.header.length?e.mergedConfig.headerHeight:0),"px;")},e._l(e.rows,(function(n,i){return t("div",{key:"".concat(n.toString()).concat(n.scroll),staticClass:"row-item",style:"\n height: ".concat(e.heights[i],"px;\n line-height: ").concat(e.heights[i],"px;\n background-color: ").concat(e.mergedConfig[n.rowIndex%2===0?"evenRowBGC":"oddRowBGC"],";\n ")},e._l(n.ceils,(function(r,o){return t("div",{key:"".concat(r).concat(i).concat(o),staticClass:"ceil",style:"width: ".concat(e.widths[o],"px;"),attrs:{align:e.aligns[o]},domProps:{innerHTML:e._s(r)},on:{click:function(t){return e.emitEvent("click",i,o,n,r)},mouseenter:function(t){return e.handleHover(!0,i,o,n,r)},mouseleave:function(t){return e.handleHover(!1)}}})})),0)})),0):e._e()])}),cr=[];function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hr={name:"DvScrollBoard",mixins:[B],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),this.animationIndex=0,t()}},methods:{handleHover:function(e,t,n,i,r){var o=this.mergedConfig,a=this.emitEvent,s=this.stopAnimation,l=this.animation;e&&a("mouseover",t,n,i,r),o.hoverPause&&(e?s():l(!0))},afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcWidths,n=this.calcHeights;e&&(t(),n())},calcData:function(){var e=this.mergeConfig,t=this.calcHeaderData,n=this.calcRowsData;e(),t(),n();var i=this.calcWidths,r=this.calcHeights,o=this.calcAligns;i(),r(),o();var a=this.animation;a(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{})},calcHeaderData:function(){var e=this.mergedConfig,t=e.header,n=e.index,i=e.indexHeader;t.length?(t=Object(o["a"])(t),n&&t.unshift(i),this.header=t):this.header=[]},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.index,i=e.headerBGC,r=e.rowNum;n&&(t=t.map((function(e,t){e=Object(o["a"])(e);var n='<span class="index" style="background-color: '.concat(i,';">').concat(t+1,"</span>");return e.unshift(n),e}))),t=t.map((function(e,t){return{ceils:e,rowIndex:t}}));var a=t.length;a>r&&a<2*r&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return dr(dr({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcWidths:function(){var e=this.width,t=this.mergedConfig,n=this.rowsData,i=t.columnWidth,r=t.header,o=i.reduce((function(e,t){return e+t}),0),a=0;n[0]?a=n[0].ceils.length:r.length&&(a=r.length);var s=(e-o)/(a-i.length),l=new Array(a).fill(s);this.widths=Object(b["deepMerge"])(l,i)},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,i=this.header,r=n.headerHeight,o=n.rowNum,a=n.data,s=t;i.length&&(s-=r);var l=s/o;this.avgHeight=l,e||(this.heights=new Array(a.length).fill(l))},calcAligns:function(){var e=this.header,t=this.mergedConfig,n=e.length,i=new Array(n).fill("left"),r=t.align;this.aligns=Object(b["deepMerge"])(i,r)},animation:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r,a,s,l,c,u,d,h,f,p,g,m,v,b,y,_=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=_.length>0&&void 0!==_[0]&&_[0],i=this.needCalc,r=this.calcHeights,a=this.calcRowsData,i&&(a(),r(),this.needCalc=!1),s=this.avgHeight,l=this.animationIndex,c=this.mergedConfig,u=this.rowsData,d=this.animation,h=this.updater,f=c.waitTime,p=c.carousel,g=c.rowNum,m=u.length,!(g>=m)){e.next=8;break}return e.abrupt("return");case 8:if(!n){e.next=13;break}return e.next=11,new Promise((function(e){return setTimeout(e,f)}));case 11:if(h===this.updater){e.next=13;break}return e.abrupt("return");case 13:return v="single"===p?1:g,b=u.slice(l),b.push.apply(b,Object(o["a"])(u.slice(0,l))),this.rows=b.slice(0,"page"===p?2*g:g+1),this.heights=new Array(m).fill(s),e.next=20,new Promise((function(e){return setTimeout(e,300)}));case 20:if(h===this.updater){e.next=22;break}return e.abrupt("return");case 22:(t=this.heights).splice.apply(t,[0,v].concat(Object(o["a"])(new Array(v).fill(0)))),l+=v,y=l-m,y>=0&&(l=y),this.animationIndex=l,this.animationHandler=setTimeout(d,f-300);case 28:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)},emitEvent:function(e,t,n,i,r){var o=i.ceils,a=i.rowIndex;this.$emit(e,{row:o,ceil:r,rowIndex:a,columnIndex:n})},updateRows:function(e,t){var n=this.mergedConfig,i=this.animationHandler,r=this.animation;this.mergedConfig=dr(dr({},n),{},{data:Object(o["a"])(e)}),this.needCalc=!0,"number"===typeof t&&(this.animationIndex=t),i||r(!0)}},destroyed:function(){var e=this.stopAnimation;e()}},fr=hr,pr=Object(x["a"])(fr,lr,cr,!1,null,null,null),gr=pr.exports,mr=function(e){e.component(gr.name,gr)},vr=(n("c280"),function(){var e=this,t=e._self._c;return t("div",{ref:e.ref,staticClass:"dv-scroll-ranking-board"},e._l(e.rows,(function(n,i){return t("div",{key:n.toString()+n.scroll,staticClass:"row-item",style:"height: ".concat(e.heights[i],"px;")},[t("div",{staticClass:"ranking-info"},[t("div",{staticClass:"rank"},[e._v("No."+e._s(n.ranking))]),t("div",{staticClass:"info-name",domProps:{innerHTML:e._s(n.name)}}),t("div",{staticClass:"ranking-value"},[e._v(e._s(e.mergedConfig.valueFormatter?e.mergedConfig.valueFormatter(n):n.value+e.mergedConfig.unit))])]),t("div",{staticClass:"ranking-column"},[t("div",{staticClass:"inside-column",style:"width: ".concat(n.percent,"%;")},[t("div",{staticClass:"shine"})])])])})),0)}),br=[];function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){Object(a["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wr={name:"DvScrollRankingBoard",mixins:[B],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),t()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcHeights;e&&t(!0)},calcData:function(){var e=this.mergeConfig,t=this.calcRowsData;e(),t();var n=this.calcHeights;n();var i=this.animation;i(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e||{})},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.rowNum,i=e.sort;i&&t.sort((function(e,t){var n=e.value,i=t.value;return n>i?-1:n<i?1:n===i?0:void 0}));var r=t.map((function(e){var t=e.value;return t})),a=Math.min.apply(Math,Object(o["a"])(r))||0,s=Math.abs(a),l=Math.max.apply(Math,Object(o["a"])(r))||0,c=(Math.abs(l),l+s);t=t.map((function(e,t){return _r(_r({},e),{},{ranking:t+1,percent:(e.value+s)/c*100})}));var u=t.length;u>n&&u<2*n&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return _r(_r({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,i=n.rowNum,r=n.data,o=t/i;this.avgHeight=o,e||(this.heights=new Array(r.length).fill(o))},animation:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r,a,s,l,c,u,d,h,f,p,g,m,v=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=v.length>0&&void 0!==v[0]&&v[0],i=this.avgHeight,r=this.animationIndex,a=this.mergedConfig,s=this.rowsData,l=this.animation,c=this.updater,u=a.waitTime,d=a.carousel,h=a.rowNum,f=s.length,!(h>=f)){e.next=6;break}return e.abrupt("return");case 6:if(!n){e.next=11;break}return e.next=9,new Promise((function(e){return setTimeout(e,u)}));case 9:if(c===this.updater){e.next=11;break}return e.abrupt("return");case 11:return p="single"===d?1:h,g=s.slice(r),g.push.apply(g,Object(o["a"])(s.slice(0,r))),this.rows=g.slice(0,h+1),this.heights=new Array(f).fill(i),e.next=18,new Promise((function(e){return setTimeout(e,300)}));case 18:if(c===this.updater){e.next=20;break}return e.abrupt("return");case 20:(t=this.heights).splice.apply(t,[0,p].concat(Object(o["a"])(new Array(p).fill(0)))),r+=p,m=r-f,m>=0&&(r=m),this.animationIndex=r,this.animationHandler=setTimeout(l,u-300);case 26:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)}},destroyed:function(){var e=this.stopAnimation;e()}},xr=wr,Cr=Object(x["a"])(xr,vr,br,!1,null,null,null),Sr=Cr.exports,kr=function(e){e.component(Sr.name,Sr)},Or=(n("fa10"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"dv-water-pond-level"},[e.renderer?t("svg",[t("defs",[t("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},e._l(e.svgBorderGradient,(function(e){return t("stop",{key:e[0],attrs:{offset:e[0],"stop-color":e[1]}})})),1)],1),e.renderer?t("text",{attrs:{stroke:"url(#".concat(e.gradientId,")"),fill:"url(#".concat(e.gradientId,")"),x:e.renderer.area[0]/2+8,y:e.renderer.area[1]/2+8}},[e._v("\n "+e._s(e.details)+"\n ")]):e._e(),e.shape&&"round"!==e.shape?t("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===e.shape?10:0,ry:"roundRect"===e.shape?10:0,width:e.renderer.area[0]+12,height:e.renderer.area[1]+12,stroke:"url(#".concat(e.gradientId,")")}}):t("ellipse",{attrs:{cx:e.renderer.area[0]/2+8,cy:e.renderer.area[1]/2+8,rx:e.renderer.area[0]/2+5,ry:e.renderer.area[1]/2+5,stroke:"url(#".concat(e.gradientId,")")}})]):e._e(),t("canvas",{ref:"water-pond-level",style:"border-radius: ".concat(e.radius,";")})])}),Mr=[],Dr={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var e=j();return{gradientId:"water-level-pond-".concat(e),defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var e=this.mergedConfig.shape;return"round"===e?"50%":"rect"===e?"0":"roundRect"===e?"10px":"0"},shape:function(){var e=this.mergedConfig.shape;return e||"rect"}},watch:{config:function(){var e=this.calcData,t=this.renderer;t.delAllGraph(),this.waves=[],setTimeout(e,0)}},methods:{init:function(){var e=this.initRender,t=this.config,n=this.calcData;e(),t&&n()},initRender:function(){var e=this.$refs;this.renderer=new v.a(e["water-pond-level"])},calcData:function(){var e=this.mergeConfig,t=this.calcSvgBorderGradient,n=this.calcDetails;e(),t(),n();var i=this.addWave,r=this.animationWave;i(),r()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(b["deepMerge"])(Object(y["deepClone"])(t,!0),e)},calcSvgBorderGradient:function(){var e=this.mergedConfig.colors,t=e.length,n=100/(t-1);this.svgBorderGradient=e.map((function(e,t){return[n*t,e]}))},calcDetails:function(){var e=this.mergedConfig,t=e.data,n=e.formatter;if(t.length){var i=Math.max.apply(Math,Object(o["a"])(t));this.details=n.replace("{value}",i)}else this.details=""},addWave:function(){var e=this.renderer,t=this.getWaveShapes,n=this.getWaveStyle,i=this.drawed,r=t(),o=n();this.waves=r.map((function(t){return e.add({name:"smoothline",animationFrame:300,shape:t,style:o,drawed:i})}))},getWaveShapes:function(){var e=this.mergedConfig,t=this.renderer,n=this.mergeOffset,i=e.waveNum,r=e.waveHeight,o=e.data,a=g(t.area,2),s=a[0],l=a[1],c=4*i+4,u=s/i/2;return o.map((function(e){var t=new Array(c).fill(0).map((function(t,n){var i=s-u*n,o=(1-e/100)*l,a=n%2===0?o:o-r;return[i,a]}));return t=t.map((function(e){return n(e,[2*u,0])})),{points:t}}))},mergeOffset:function(e,t){var n=g(e,2),i=n[0],r=n[1],o=g(t,2),a=o[0],s=o[1];return[i+a,r+s]},getWaveStyle:function(){var e=this.renderer,t=this.mergedConfig,n=e.area[1];return{gradientColor:t.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:t.waveOpacity,translate:[0,0]}},drawed:function(e,t){var n=e.shape.points,i=t.ctx,r=t.area,o=n[0],a=n.slice(-1)[0],s=r[1];i.lineTo(a[0],s),i.lineTo(o[0],s),i.closePath(),i.fill()},animationWave:function(){var e=Oi(regeneratorRuntime.mark((function e(){var t,n,i,r,o,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=a.length>0&&void 0!==a[0]?a[0]:1,n=this.waves,i=this.renderer,r=this.animation,!r){e.next=4;break}return e.abrupt("return");case 4:return this.animation=!0,o=i.area[0],n.forEach((function(e){e.attr("style",{translate:[0,0]}),e.animation("style",{translate:[o,0]},!0)})),e.next=9,i.launchAnimation();case 9:if(this.animation=!1,i.graphs.length){e.next=12;break}return e.abrupt("return");case 12:this.animationWave(t+1);case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.renderer;e.delAllGraph(),this.waves=[]}},Er=Dr,Tr=Object(x["a"])(Er,Or,Mr,!1,null,null,null),Lr=Tr.exports,Ir=function(e){e.component(Lr.name,Lr)};t["a"]=function(e){e.use(Gi),e.use(er),e.use(H),e.use(Oe),e.use(Ae),e.use(ze),e.use(Ge),e.use(et),e.use(st),e.use(pt),e.use(wt),e.use(Z),e.use(oe),e.use(he),e.use(ye),e.use(Zt),e.use(On),e.use(An),e.use(zn),e.use(Gn),e.use(ei),e.use(si),e.use(pi),e.use(wi),e.use(on),e.use(hn),e.use(yn),e.use(Pt),e.use(L),e.use(Dt),e.use(Ir),e.use(sr),e.use(Li),e.use(zi),e.use(Ht),e.use(xi),e.use(mr),e.use(kr)}},"6c36":function(e,t,n){var i=n("a58e"),r=n("9a44"),o=n("f1d9"),a=n("ab05");function s(e,t){var n=r(i(e,t)),s=n.split("."),l=s[0],c=s[1]||"",u=t-c.length;return t?u>0?l+"."+c+o("0",u):l+a(c,Math.abs(u)):l}e.exports=s},"6c37":function(e,t,n){"use strict";n("386b")("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},"6c7b":function(e,t,n){var i=n("5ca1");i(i.P,"Array",{fill:n("36bd")}),n("9c6c")("fill")},"6ccd":function(e,t,n){},"6cff":function(e,t,n){var i=n("edb5"),r=n("2610");function o(e,t){return i(e,r(t))}e.exports=o},"6d08":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.CipherParams,o=n.enc,a=o.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return r.create({ciphertext:t})}}}(),e.format.Hex}))},"6d67":function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(1);i(i.P+i.F*!n("2f21")([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},"6d87":function(e,t){var n="undefined";e.exports=n},"6d8b":function(e,t,n){"use strict";n.r(t),n.d(t,"guid",(function(){return m})),n.d(t,"logError",(function(){return v})),n.d(t,"clone",(function(){return b})),n.d(t,"merge",(function(){return y})),n.d(t,"mergeAll",(function(){return _})),n.d(t,"extend",(function(){return w})),n.d(t,"defaults",(function(){return x})),n.d(t,"createCanvas",(function(){return C})),n.d(t,"indexOf",(function(){return S})),n.d(t,"inherits",(function(){return k})),n.d(t,"mixin",(function(){return O})),n.d(t,"isArrayLike",(function(){return M})),n.d(t,"each",(function(){return D})),n.d(t,"map",(function(){return E})),n.d(t,"reduce",(function(){return T})),n.d(t,"filter",(function(){return L})),n.d(t,"find",(function(){return I})),n.d(t,"keys",(function(){return A})),n.d(t,"bind",(function(){return P})),n.d(t,"curry",(function(){return R})),n.d(t,"isArray",(function(){return F})),n.d(t,"isFunction",(function(){return j})),n.d(t,"isString",(function(){return B})),n.d(t,"isStringSafe",(function(){return z})),n.d(t,"isNumber",(function(){return V})),n.d(t,"isObject",(function(){return $})),n.d(t,"isBuiltInObject",(function(){return W})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isDom",(function(){return U})),n.d(t,"isGradientObject",(function(){return q})),n.d(t,"isImagePatternObject",(function(){return G})),n.d(t,"isRegExp",(function(){return K})),n.d(t,"eqNaN",(function(){return Y})),n.d(t,"retrieve",(function(){return X})),n.d(t,"retrieve2",(function(){return Z})),n.d(t,"retrieve3",(function(){return Q})),n.d(t,"slice",(function(){return J})),n.d(t,"normalizeCssArray",(function(){return ee})),n.d(t,"assert",(function(){return te})),n.d(t,"trim",(function(){return ne})),n.d(t,"setAsPrimitive",(function(){return re})),n.d(t,"isPrimitive",(function(){return oe})),n.d(t,"HashMap",(function(){return ce})),n.d(t,"createHashMap",(function(){return ue})),n.d(t,"concatArray",(function(){return de})),n.d(t,"createObject",(function(){return he})),n.d(t,"disableUserSelect",(function(){return fe})),n.d(t,"hasOwn",(function(){return pe})),n.d(t,"noop",(function(){return ge})),n.d(t,"RADIAN_TO_DEGREE",(function(){return me}));var i=n("726e"),r=T(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),o=T(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,d=s.map,h=function(){}.constructor,f=h?h.prototype:null,p="__proto__",g=2311;function m(){return g++}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function b(e){if(null==e||"object"!==typeof e)return e;var t=e,n=a.call(e);if("[object Array]"===n){if(!oe(e)){t=[];for(var i=0,s=e.length;i<s;i++)t[i]=b(e[i])}}else if(o[n]){if(!oe(e)){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(i=0,s=e.length;i<s;i++)t[i]=e[i]}}}else if(!r[n]&&!oe(e)&&!U(e))for(var c in t={},e)e.hasOwnProperty(c)&&c!==p&&(t[c]=b(e[c]));return t}function y(e,t,n){if(!$(t)||!$(e))return n?b(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==p){var r=e[i],o=t[i];!$(o)||!$(r)||F(o)||F(r)||U(o)||U(r)||W(o)||W(r)||oe(o)||oe(r)?!n&&i in e||(e[i]=b(t[i])):y(r,o,n)}return e}function _(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=y(n,e[i],t);return n}function w(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p&&(e[n]=t[n]);return e}function x(e,t,n){for(var i=A(t),r=0;r<i.length;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var C=i["d"].createCanvas;function S(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function k(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function O(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else x(e,t,n)}function M(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function D(e,t,n){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function E(e,t,n){if(!e)return[];if(!t)return J(e);if(e.map&&e.map===d)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function T(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function L(e,t,n){if(!e)return[];if(!t)return J(e);if(e.filter&&e.filter===c)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function I(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function A(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function N(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(u.call(arguments)))}}var P=f&&j(f.bind)?f.call.bind(f.bind):N;function R(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function j(e){return"function"===typeof e}function B(e){return"string"===typeof e}function z(e){return"[object String]"===a.call(e)}function V(e){return"number"===typeof e}function $(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function W(e){return!!r[a.call(e)]}function H(e){return!!o[a.call(e)]}function U(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function q(e){return null!=e.colorStops}function G(e){return null!=e.image}function K(e){return"[object RegExp]"===a.call(e)}function Y(e){return e!==e}function X(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function Z(e,t){return null!=e?e:t}function Q(e,t,n){return null!=e?e:null!=t?t:n}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return u.apply(e,t)}function ee(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function te(e,t){if(!e)throw new Error(t)}function ne(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function re(e){e[ie]=!0}function oe(e){return e[ie]}var ae=function(){function e(){this.data={}}return e.prototype["delete"]=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return A(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),se="function"===typeof Map;function le(){return se?new Map:new ae}var ce=function(){function e(t){var n=F(t);this.data=le();var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&D(t,r)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,i){e.call(t,n,i)}))},e.prototype.keys=function(){var e=this.data.keys();return se?Array.from(e):e},e.prototype.removeKey=function(e){this.data["delete"](e)},e}();function ue(e){return new ce(e)}function de(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function he(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&w(n,t),n}function fe(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function pe(e,t){return e.hasOwnProperty(t)}function ge(){}var me=180/Math.PI},"6dcd":function(e,t,n){var i=n("bcdc"),r=n("90e4");function o(e){for(var t,n=[],o=r(e),a=o.length-1;a>=0;a--)t=a>0?i(0,a):0,n.push(o[t]),o.splice(t,1);return n}e.exports=o},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,r=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,i=!1,r=0;function s(){n&&(n=!1,e()),i&&c()}function l(){o(s)}function c(){var e=Date.now();if(n){if(e-r<a)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return c}var l=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=c.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||r},p=S(0,0,0,0);function g(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+g(i)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var o=r[i],a=e["padding-"+o];n[o]=g(a)}return n}function b(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var i=f(e).getComputedStyle(e),r=v(i),o=r.left+r.right,a=r.top+r.bottom,s=g(i.width),l=g(i.height);if("border-box"===i.boxSizing&&(Math.round(s+o)!==t&&(s-=m(i,"left","right")+o),Math.round(l+a)!==n&&(l-=m(i,"top","bottom")+a)),!w(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return S(r.left,r.top,s,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function x(e){return i?_(e)?b(e):y(e):p}function C(e){var t=e.x,n=e.y,i=e.width,r=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return h(a,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),a}function S(e,t,n,i){return{x:e,y:t,width:n,height:i}}var k=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(){function e(e,t){var n=C(t);h(this,{target:e,contentRect:n})}return e}(),M=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new k(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D="undefined"!==typeof WeakMap?new WeakMap:new n,E=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),i=new M(t,n,this);D.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=D.get(this))[e].apply(t,arguments)}}));var T=function(){return"undefined"!==typeof r.ResizeObserver?r.ResizeObserver:E}();t["default"]=T}.call(this,n("c8ba"))},"6eb9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineConfig=void 0;var i={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.lineConfig=i},"6fc2":function(e,t,n){},7037:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},7184:function(e,t,n){var i=n("eecc"),r=i;e.exports=r},"71ba":function(e,t){var n=0;function i(e){return[e,++n].join("")}e.exports=i},"71c1":function(e,t,n){var i=n("3a38"),r=n("25eb");e.exports=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"71f1":function(e,t,n){"use strict";var i=n("5ca1"),r=n("c45f"),o=n("4bf8"),a=n("9def"),s=n("4588"),l=n("cd1c");i(i.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),i=l(t,0);return r(i,t,t,n,0,void 0===e?1:s(e)),i}}),n("9c6c")("flatten")},"722f":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n("e452"),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}var s,l=l||{};l.Dialog=function(e,t,n){var r=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":i(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":i(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){r.trapFocus(e)},this.addListeners()},l.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},l.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},l.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},l.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=l.Dialog},"726e":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h}));var i=12,r="sans-serif",o=i+"px "+r,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-a)/s;t[i]=r}return t}var u=c(l),d={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=d.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||o),e.measureText(n);n=n||"",r=r||o;var s=/(\d+)px/.exec(r),l=s&&+s[1]||i,c=0;if(r.indexOf("mono")>=0)c=l*n.length;else for(var h=0;h<n.length;h++){var f=u[n[h]];c+=null==f?l:f*l}return{width:c}}}(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}};function h(e){for(var t in d)e[t]&&(d[t]=e[t])}},7271:function(e,t,n){var i=n("068a"),r=n("47fc");function o(e,t){return i(r(e),r(t))}e.exports=o},"729b":function(e,t,n){n("c6a15")("Map")},"729e":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.pie=p;var r=i(n("9523")),o=i(n("7037")),a=i(n("278c")),s=i(n("448a")),l=n("18ad"),c=n("222a"),u=n("5557"),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,d.initNeedSeries)(n,c.pieConfig,"pie");i=g(i,e),i=m(i,e),i=b(i,e),i=w(i),i=S(i,e),i=O(i),i=D(i),i=E(i),(0,l.doUpdate)({chart:e,series:i,key:"pie",getGraphConfig:P,getStartGraphConfig:R,beforeChange:F}),(0,l.doUpdate)({chart:e,series:i,key:"pieInsideLabel",getGraphConfig:z}),(0,l.doUpdate)({chart:e,series:i,key:"pieOutsideLabelLine",getGraphConfig:W,getStartGraphConfig:H}),(0,l.doUpdate)({chart:e,series:i,key:"pieOutsideLabel",getGraphConfig:G,getStartGraphConfig:K})}function g(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function m(e,t){var n=Math.min.apply(Math,(0,s["default"])(t.render.area))/2;return e.forEach((function(e){var t=e.radius,i=e.data;t=v(t,n),i.forEach((function(e){var i=e.radius;i||(i=t),i=v(i,n),e.radius=i})),e.radius=t})),e}function v(e,t){return e instanceof Array||(e=[0,e]),e=e.map((function(e){return"number"===typeof e?e:parseInt(e)/100*t})),e}function b(e,t){var n=e.filter((function(e){var t=e.roseType;return t}));return n.forEach((function(e){var t=e.radius,n=e.data,i=e.roseSort,r=_(e),o=(0,s["default"])(n);n=y(n),n.forEach((function(e,n){e.radius[1]=t[1]-r*n})),i?n.reverse():e.data=o,e.roseIncrement=r})),e}function y(e){return e.sort((function(e,t){var n=e.value,i=t.value;return n===i?0:n>i?-1:n<i?1:void 0}))}function _(e){var t=e.radius,n=e.roseIncrement;if("number"===typeof n)return n;if("auto"===n){var i=e.data,r=i.reduce((function(e,t){var n=t.radius;return[].concat((0,s["default"])(e),(0,s["default"])(n))}),[]),o=Math.min.apply(Math,(0,s["default"])(r)),a=Math.max.apply(Math,(0,s["default"])(r));return.6*(a-o)/(i.length-1||1)}return parseInt(n)/100*t[1]}function w(e){return e.forEach((function(e){var t=e.data,n=e.percentToFixed,i=C(t);t.forEach((function(e){var t=e.value;e.percent=t/i*100,e.percentForLabel=x(t/i*100,n)}));var r=(0,d.mulAdd)(t.slice(0,-1).map((function(e){var t=e.percent;return t})));t.slice(-1)[0].percent=100-r,t.slice(-1)[0].percentForLabel=x(100-r,n)})),e}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.toString(),i=n.split("."),r=i[1]||"0",o=r.slice(0,t);return i[1]=o,parseFloat(i.join("."))}function C(e){return(0,d.mulAdd)(e.map((function(e){var t=e.value;return t})))}function S(e){return e.forEach((function(e){var t=e.startAngle,n=e.data;n.forEach((function(e,i){var r=k(n,i),o=(0,a["default"])(r,2),s=o[0],l=o[1];e.startAngle=t+s,e.endAngle=t+l}))})),e}function k(e,t){var n=2*Math.PI,i=e.slice(0,t+1),r=(0,d.mulAdd)(i.map((function(e){var t=e.percent;return t}))),o=e[t].percent,a=r-o;return[n*a/100,n*r/100]}function O(e){return e.forEach((function(e){var t=e.data;t.forEach((function(t){t.insideLabelPos=M(e,t)}))})),e}function M(e,t){var n=e.center,i=t.startAngle,r=t.endAngle,o=(0,a["default"])(t.radius,2),l=o[0],c=o[1],d=(l+c)/2,h=(i+r)/2;return u.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([d,h]))}function D(e){return e.forEach((function(e){var t=e.data,n=e.center;t.forEach((function(e){var t=e.startAngle,i=e.endAngle,r=e.radius,o=(t+i)/2,a=u.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([r[1],o]));e.edgeCenterPos=a}))})),e}function E(e){return e.forEach((function(e){var t=I(e),n=I(e,!1);t=A(t),n=A(n),N(t,e),N(n,e,!1)})),e}function T(e){var t=e.outsideLabel.labelLineBendGap,n=L(e);return"number"!==typeof t&&(t=parseInt(t)/100*n),t+n}function L(e){var t=e.data,n=t.map((function(e){var t=(0,a["default"])(e.radius,2),n=(t[0],t[1]);return n}));return Math.max.apply(Math,(0,s["default"])(n))}function I(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.data,i=e.center,r=i[0];return n.filter((function(e){var n=e.edgeCenterPos,i=n[0];return t?i<=r:i>r}))}function A(e){return e.sort((function(e,t){var n=(0,a["default"])(e.edgeCenterPos,2),i=(n[0],n[1]),r=(0,a["default"])(t.edgeCenterPos,2),o=(r[0],r[1]);return i>o?1:i<o?-1:i===o?0:void 0})),e}function N(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.center,r=t.outsideLabel,o=T(t);e.forEach((function(e){var t=e.edgeCenterPos,a=e.startAngle,l=e.endAngle,c=r.labelLineEndLength,h=(a+l)/2,f=u.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([o,h])),p=(0,s["default"])(f);p[0]+=c*(n?-1:1),e.labelLine=[t,f,p],e.labelLineLength=(0,d.getPolylineLength)(e.labelLine),e.align={textAlign:"left",textBaseline:"middle"},n&&(e.align.textAlign="right")}))}function P(e){var t=e.data,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"pie",index:r,animationCurve:n,animationFrame:i,shape:j(e,o),style:B(e,o)}}))}function R(e){var t=e.animationDelayGap,n=e.startAnimationCurve,i=P(e);return i.forEach((function(e,i){e.animationCurve=n,e.animationDelay=i*t,e.shape.or=e.shape.ir})),i}function F(e){e.animationDelay=0}function j(e,t){var n=e.center,i=e.data,r=i[t],o=r.radius,a=r.startAngle,s=r.endAngle;return{startAngle:a,endAngle:s,ir:o[0],or:o[1],rx:n[0],ry:n[1]}}function B(e,t){var n=e.pieStyle,i=e.data,r=i[t],o=r.color;return(0,d.deepMerge)({fill:o},n)}function z(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"text",index:r,visible:e.insideLabel.show,animationCurve:t,animationFrame:n,shape:V(e,o),style:$(e,o)}}))}function V(e,t){var n=e.insideLabel,i=e.data,r=n.formatter,a=i[t],s=(0,o["default"])(r),l="";return"string"===s&&(l=r.replace("{name}",a.name),l=l.replace("{percent}",a.percentForLabel),l=l.replace("{value}",a.value)),"function"===s&&(l=r(a)),{content:l,position:a.insideLabelPos}}function $(e,t){var n=e.insideLabel.style;return n}function W(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"polyline",index:r,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:U(e,o),style:q(e,o)}}))}function H(e){var t=e.data,n=W(e);return n.forEach((function(e,n){e.style.lineDash=[0,t[n].labelLineLength]})),n}function U(e,t){var n=e.data,i=n[t];return{points:i.labelLine}}function q(e,t){var n=e.outsideLabel,i=e.data,r=n.labelLineStyle,o=i[t].color;return(0,d.deepMerge)({stroke:o,lineDash:[i[t].labelLineLength,0]},r)}function G(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"text",index:r,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:Y(e,o),style:X(e,o)}}))}function K(e){var t=e.data,n=G(e);return n.forEach((function(e,n){e.shape.position=t[n].labelLine[1]})),n}function Y(e,t){var n=e.outsideLabel,i=e.data,r=n.formatter,a=i[t],s=a.labelLine,l=a.name,c=a.percentForLabel,u=a.value,d=(0,o["default"])(r),h="";return"string"===d&&(h=r.replace("{name}",l),h=h.replace("{percent}",c),h=h.replace("{value}",u)),"function"===d&&(h=r(i[t])),{content:h,position:s[2]}}function X(e,t){var n=e.outsideLabel,i=e.data,r=i[t],o=r.color,a=r.align,s=n.style;return(0,d.deepMerge)(f({fill:o},a),s)}},"72fe":function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var l=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,r=e[i];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var o=this._hash.words,a=e[t+0],l=e[t+1],f=e[t+2],p=e[t+3],g=e[t+4],m=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],C=e[t+12],S=e[t+13],k=e[t+14],O=e[t+15],M=o[0],D=o[1],E=o[2],T=o[3];M=c(M,D,E,T,a,7,s[0]),T=c(T,M,D,E,l,12,s[1]),E=c(E,T,M,D,f,17,s[2]),D=c(D,E,T,M,p,22,s[3]),M=c(M,D,E,T,g,7,s[4]),T=c(T,M,D,E,m,12,s[5]),E=c(E,T,M,D,v,17,s[6]),D=c(D,E,T,M,b,22,s[7]),M=c(M,D,E,T,y,7,s[8]),T=c(T,M,D,E,_,12,s[9]),E=c(E,T,M,D,w,17,s[10]),D=c(D,E,T,M,x,22,s[11]),M=c(M,D,E,T,C,7,s[12]),T=c(T,M,D,E,S,12,s[13]),E=c(E,T,M,D,k,17,s[14]),D=c(D,E,T,M,O,22,s[15]),M=u(M,D,E,T,l,5,s[16]),T=u(T,M,D,E,v,9,s[17]),E=u(E,T,M,D,x,14,s[18]),D=u(D,E,T,M,a,20,s[19]),M=u(M,D,E,T,m,5,s[20]),T=u(T,M,D,E,w,9,s[21]),E=u(E,T,M,D,O,14,s[22]),D=u(D,E,T,M,g,20,s[23]),M=u(M,D,E,T,_,5,s[24]),T=u(T,M,D,E,k,9,s[25]),E=u(E,T,M,D,p,14,s[26]),D=u(D,E,T,M,y,20,s[27]),M=u(M,D,E,T,S,5,s[28]),T=u(T,M,D,E,f,9,s[29]),E=u(E,T,M,D,b,14,s[30]),D=u(D,E,T,M,C,20,s[31]),M=d(M,D,E,T,m,4,s[32]),T=d(T,M,D,E,y,11,s[33]),E=d(E,T,M,D,x,16,s[34]),D=d(D,E,T,M,k,23,s[35]),M=d(M,D,E,T,l,4,s[36]),T=d(T,M,D,E,g,11,s[37]),E=d(E,T,M,D,b,16,s[38]),D=d(D,E,T,M,w,23,s[39]),M=d(M,D,E,T,S,4,s[40]),T=d(T,M,D,E,a,11,s[41]),E=d(E,T,M,D,p,16,s[42]),D=d(D,E,T,M,v,23,s[43]),M=d(M,D,E,T,_,4,s[44]),T=d(T,M,D,E,C,11,s[45]),E=d(E,T,M,D,O,16,s[46]),D=d(D,E,T,M,f,23,s[47]),M=h(M,D,E,T,a,6,s[48]),T=h(T,M,D,E,b,10,s[49]),E=h(E,T,M,D,k,15,s[50]),D=h(D,E,T,M,m,21,s[51]),M=h(M,D,E,T,C,6,s[52]),T=h(T,M,D,E,p,10,s[53]),E=h(E,T,M,D,w,15,s[54]),D=h(D,E,T,M,l,21,s[55]),M=h(M,D,E,T,y,6,s[56]),T=h(T,M,D,E,O,10,s[57]),E=h(E,T,M,D,v,15,s[58]),D=h(D,E,T,M,S,21,s[59]),M=h(M,D,E,T,g,6,s[60]),T=h(T,M,D,E,x,10,s[61]),E=h(E,T,M,D,f,15,s[62]),D=h(D,E,T,M,_,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+D|0,o[2]=o[2]+E|0,o[3]=o[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;n[r>>>5]|=128<<24-r%32;var o=t.floor(i/4294967296),a=i;n[15+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+r+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+r+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,i,r,o,a){var s=e+(t^n^i)+r+a;return(s<<o|s>>>32-o)+t}function h(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+r+a;return(s<<o|s>>>32-o)+t}n.MD5=o._createHelper(l),n.HmacMD5=o._createHmacHelper(l)}(Math),e.MD5}))},7333:function(e,t,n){"use strict";var i=n("9e1e"),r=n("0d58"),o=n("2621"),a=n("52a7"),s=n("4bf8"),l=n("626a"),c=Object.assign;e.exports=!c||n("79e5")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,d=o.f,h=a.f;while(c>u){var f,p=l(arguments[u++]),g=d?r(p).concat(d(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:c},"733c":function(e,t,n){},"73bb":function(e,t,n){var i=n("a786");function r(e,t,n){return!(!e||!t)&&(e=i(e,n),"Invalid Date"!==e&&e===i(t,n))}e.exports=r},"744f":function(e,t,n){var i=n("5ca1");i(i.P,"Array",{copyWithin:n("ba92")}),n("9c6c")("copyWithin")},7514:function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7523:function(e,t,n){var i=n("4e80"),r=n("db34");function o(e){return i(r(e))}e.exports=o},"759f":function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(3);i(i.P+i.F*!n("2f21")([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},"764f":function(e,t,n){n("c6a15")("WeakMap")},"765d":function(e,t,n){n("6718")("observable")},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},7764:function(e,t,n){var i=n("1d15"),r=i;e.exports=r},"77f1":function(e,t,n){var i=n("4588"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},7819:function(e,t,n){var i=n("c6fd"),r=n("bfb8"),o=n("e095"),a=n("9bd2");function s(e,t,n){return o(n)?i(e,t,(function(e,t,i,o,s){var l=n(e,t,i,o,s);return a(l)?r(e,t):!!l}),n):i(e,t,r)}e.exports=s},7872:function(e,t,n){var i=n("5ca1");i(i.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},"788d":function(e,t,n){var i=n("5ca1"),r=n("6821"),o=n("9def");i(i.S,"String",{raw:function(e){var t=r(e.raw),n=o(t.length),i=arguments.length,a=[],s=0;while(n>s)a.push(String(t[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},"78ce":function(e,t,n){var i=n("5ca1");i(i.S,"Date",{now:function(){return(new Date).getTime()}})},7905:function(e,t){function n(e){return e.toLowerCase()}e.exports=n},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79ac":function(e,t,n){var i=n("6cff"),r=n("5986");function o(e){var t,n,o,a=[];if(e&&e.length)for(t=0,n=r(e,(function(e){return e?e.length:0})),o=n?n.length:0;t<o;t++)a.push(i(e,t));return a}e.exports=o},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"7a29":function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"q",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"i",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return _})),n.d(t,"o",(function(){return w})),n.d(t,"k",(function(){return x})),n.d(t,"d",(function(){return C})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return k})),n.d(t,"c",(function(){return O}));var i=n("6d8b"),r=n("41ef"),o=n("22d1"),a=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(r["parse"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e<l&&e>-l}function u(e){return a(1e3*e)/1e3}function d(e){return a(1e4*e)/1e4}function h(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+d(e[4])+","+d(e[5])+")"}var f={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function g(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function m(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){return e&&!!e.image}function b(e){return e&&!!e.svgElement}function y(e){return v(e)||b(e)}function _(e){return"linear"===e.type}function w(e){return"radial"===e.type}function x(e){return e&&("linear"===e.type||"radial"===e.type)}function C(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function k(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*i["RADIAN_TO_DEGREE"],o=Object(i["retrieve2"])(e.scaleX,1),s=Object(i["retrieve2"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*i["RADIAN_TO_DEGREE"])+"deg, "+a(c*i["RADIAN_TO_DEGREE"])+"deg)"),u.join(" ")}var O=function(){return o["a"].hasGlobalWindow&&Object(i["isFunction"])(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("b639").Buffer)},"7a56":function(e,t,n){"use strict";var i=n("7726"),r=n("86cc"),o=n("9e1e"),a=n("2b4c")("species");e.exports=function(e){var t=i[e];o&&t&&!t[a]&&r.f(t,a,{configurable:!0,get:function(){return this}})}},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b23":function(e,t,n){var i=n("d8e8"),r=n("4bf8"),o=n("626a"),a=n("9def");e.exports=function(e,t,n,s,l){i(t);var c=r(e),u=o(c),d=a(c.length),h=l?d-1:0,f=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=f;break}if(h+=f,l?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:d>h;h+=f)h in u&&(s=t(s,u[h],h,c));return s}},"7b3e":function(e,t,n){"use strict";var i,r=n("a3de");
  74. /**
  75. * Checks if an event is supported in the current execution environment.
  76. *
  77. * NOTE: This will not work correctly for non-generic events such as `change`,
  78. * `reset`, `load`, `error`, and `select`.
  79. *
  80. * Borrows from Modernizr.
  81. *
  82. * @param {string} eventNameSuffix Event name, e.g. "click".
  83. * @param {?boolean} capture Check if the capture phase is supported.
  84. * @return {boolean} True if the event is supported.
  85. * @internal
  86. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  87. */
  88. function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7bad":function(e,t,n){var i=n("2a2f");function r(e,t){var n=i(arguments,2),r=this;return setTimeout((function(){e.apply(r,n)}),t)}e.exports=r},"7bbc":function(e,t,n){var i=n("6821"),r=n("9093").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"7bbcc":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("df2f"),n("5980"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Base,r=n.WordArray,o=t.algo,a=o.SHA1,s=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),l=o.words,c=a.words,u=n.keySize,d=n.iterations;while(l.length<u){var h=i.update(t).finalize(a);i.reset();for(var f=h.words,p=f.length,g=h,m=1;m<d;m++){g=i.finalize(g),i.reset();for(var v=g.words,b=0;b<p;b++)f[b]^=v[b]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}});t.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)}}(),e.PBKDF2}))},"7c0e":function(e,t,n){"use strict";n("aa77")("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},"7c12":function(e,t,n){var i=n("3a24"),r=n("4b14"),o=n("b22f");function a(){if(i){var e=i.pathname,t=o(e,"/")+1;return r()+(t===e.length?e:e.substring(0,t))}return""}e.exports=a},"7cc8":function(e,t,n){},"7cdf":function(e,t,n){var i=n("5ca1");i(i.S,"Number",{isInteger:n("9c12")})},"7cdff":function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=i.keys,a=i.key;i.exp({getOwnMetadataKeys:function(e){return o(r(e),arguments.length<2?void 0:a(arguments[1]))}})},"7e28":function(e,t,n){var i=n("47fc"),r=n("969d");function o(e){return function(t,n){var o=i(t);if(o){n>>=0;var a=r(o),s=a.split("."),l=s[0],c=s[1]||"";if(o=l+"."+c.substring(0,n+1),n>=c.length)return i(o);if(n>0){var u=Math.pow(10,n);return Math[e](o*u)/u}return Math[e](o)}return o}}e.exports=o},"7e90":function(e,t,n){var i=n("d9f6"),r=n("e4ae"),o=n("c3a1");e.exports=n("8e60")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,l=0;while(s>l)i.f(e,n=a[l++],t[n]);return e}},"7ec2":function(e,t,n){var i=n("7037")["default"];function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(L){d=function(e,t,n){return e[t]=n}}function h(e,t,n,i){var r=t&&t.prototype instanceof g?t:g,o=Object.create(r.prototype),s=new D(i||[]);return a(o,"_invoke",{value:S(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(L){return{type:"throw",arg:L}}}t.wrap=h;var p={};function g(){}function m(){}function v(){}var b={};d(b,l,(function(){return this}));var y=Object.getPrototypeOf,_=y&&y(y(E([])));_&&_!==n&&o.call(_,l)&&(b=_);var w=v.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(r,a,s,l){var c=f(e[r],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function S(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=f(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var r=f(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,p;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function E(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=v,a(w,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:m,configurable:!0}),m.displayName=d(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,d(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(C.prototype),d(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new C(h(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),d(w,u,"Generator"),d(w,l,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=E,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return a.type="throw",a.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ed3":function(e,t,n){},"7f20":function(e,t,n){var i=n("86cc").f,r=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},"7f25":function(e,t,n){var i=n("5ca1"),r=n("d6c6"),o=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+o(e-1)*o(e+1))}})},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var i=arguments[t]||{};for(var r in i)if(i.hasOwnProperty(r)){var o=i[r];void 0!==o&&(e[r]=o)}}return e}},"7f7f":function(e,t,n){var i=n("86cc").f,r=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in r||n("9e1e")&&i(r,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox-group.vue";var d=u.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},"7ff6":function(e,t,n){"use strict";var i=n("5ca1"),r=n("cb7c"),o=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n("41a0")(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),i(i.S,"Reflect",{enumerate:function(e){return new o(e)}})},"7fff":function(e,t,n){var i=n("7e28"),r=i("floor");e.exports=r},8035:function(e,t,n){var i=n("9a44"),r=n("9bd2"),o=n("f1d9");function a(e,t,n){var a=i(e);return t>>=0,n=r(n)?" ":""+n,a.padStart?a.padStart(t,n):t>a.length?(t-=a.length,t>n.length&&(n+=o(n,t/n.length)),n.slice(0,t)+a):a}e.exports=a},8079:function(e,t,n){var i=n("7726"),r=n("1991").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n("2d95")(a);e.exports=function(){var e,t,n,c=function(){var i,r;l&&(i=a.domain)&&i.exit();while(e){r=e.fn,e=e.next;try{r()}catch(o){throw e?n():t=void 0,o}}t=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var d=!0,h=document.createTextNode("");new o(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},"80d3":function(module,exports,__webpack_require__){
  89. /*!
  90. * Avue.js v2.6.18
  91. * (c) 2017-2020 Smallwei
  92. * Released under the MIT License.
  93. *
  94. */
  95. !function(e,t){module.exports=t()}(0,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=120)}([function(e,t){e.exports=function(e,t,n,i,r,o){var a,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(a=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),h(e,t)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.name=o.KEY_COMPONENT_NAME+e.name,e.mixins=e.mixins||[],e.mixins.push(r.default),e};var i=n(124),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o=n(8)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.name=l.KEY_ECHART_NAME+e.name,e.mixins=e.mixins||[],e.mixins.push(s.default),(0,o.default)(e)};var r=n(1),o=i(r),a=n(288),s=i(a),l=n(8)},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e;return{data:function(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:r.DIC_HTTP_PROPS,propsDefault:r.DIC_PROPS}},props:(e={blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,typeslot:{type:Boolean,default:!1},separator:{type:String,default:r.DIC_SPLIT},formslot:{type:Boolean,default:!1},params:{type:Object,default:function(){return{}}},listType:{type:String},value:{},column:{type:Object,default:function(){return{}}}},i(e,"typeslot",{type:Boolean,default:!1}),i(e,"label",{type:String,default:""}),i(e,"readonly",{type:Boolean,default:!1}),i(e,"size",{type:String,default:""}),i(e,"tip",{type:String,default:""}),i(e,"disabled",{type:Boolean,default:!1}),i(e,"dataType",{type:String}),i(e,"clearable",{type:Boolean,default:!0}),i(e,"type",{type:String,default:""}),i(e,"dicUrl",{type:String,default:""}),i(e,"dicMethod",{type:String,default:""}),i(e,"dicFormatter",Function),i(e,"dicQuery",{type:Object,default:function(){return{}}}),i(e,"dic",{type:Array,default:function(){return[]}}),i(e,"placeholder",{type:String,default:""}),i(e,"rules",{type:Array}),i(e,"min",{type:Number}),i(e,"max",{type:Number}),i(e,"multiple",{type:Boolean,default:!1}),i(e,"button",{type:Boolean,default:!1}),i(e,"group",{type:Boolean,default:!1}),i(e,"row",{type:Boolean,default:!1}),i(e,"prop",{type:String,default:""}),i(e,"border",{type:Boolean,default:!1}),i(e,"propsHttp",{type:Object,default:function(){return r.DIC_HTTP_PROPS}}),i(e,"props",{type:Object,default:function(){return r.DIC_PROPS}}),e),watch:{text:{handler:function(e,t){this.handleChange(e)}},value:{handler:function(e,t){this.initVal()}}},computed:{componentName:function(){return this.$AVUE.ui.type+"-"+this.name+(this.button?"-button":"")},required:function(){return!this.validatenull(this.rules)},isArray:function(){return"array"===this.dataType},isString:function(){return"string"===this.dataType},isNumber:function(){return"number"===this.dataType},nameKey:function(){return this.propsHttp.name||this.propsHttpDefault.name},urlKey:function(){return this.propsHttp.url||this.propsHttpDefault.url},resKey:function(){return this.propsHttp.res||this.propsHttpDefault.res},groupsKey:function(){return this.props.groups||this.propsDefault.groups},valueKey:function(){return this.props.value||this.propsDefault.value},leafKey:function(){return this.props.leaf||this.propsDefault.leaf},labelKey:function(){return this.props.label||this.propsDefault.label},childrenKey:function(){return this.props.children||this.propsDefault.children},disabledKey:function(){return this.props.disabled||this.propsDefault.disabled},idKey:function(){return this.props.id||this.propsDefault.id}},created:function(){this.initVal()}}};var r=n(8)},function(e,t,n){"use strict";function i(e,t,n){"function"==typeof e[t]&&e[t]({value:e.value,column:e.column}),e.$emit(t,e.value,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{methods:{initVal:function(){var e=this;this.text=(0,a.initVal)({type:this.type,multiple:this.multiple,dataType:this.dataType,value:this.value,separator:this.separator,callback:function(t){e.stringMode=t}})},getLabelText:function(e){return this.validatenull(e)?"":"function"==typeof this.typeformat?this.typeformat(e,this.labelKey,this.valueKey):e[this.labelKey]},handleFocus:function(e){i(this,"focus",e)},handleBlur:function(e){i(this,"blur",e)},handleClick:function(e){i(this,"click",e)},handleChange:function(e){var t=e;if("antd"==this.$AVUE.ui.name)if(["date","time"].includes(this.type)){var n=this.format.replace("dd","DD").replace("yyyy","YYYY");t=(0,o.default)(e._d).format(n)}else["radio"].includes(this.type)&&(t=e.target.value);(this.isString||this.isNumber||this.stringMode||"picture-img"===this.listType)&&Array.isArray(e)&&(t=e.join(",")),"function"==typeof this.change&&this.change({value:t,column:this.column}),this.$emit("input",t),this.$emit("change",t)}}}};var r=n(16),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(10)},function(module,exports,__webpack_require__){"use strict";function hasOwn(e,t){return hasOwnProperty.call(e,t)}function getFixed(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(e.toFixed(t))}function getAsVal(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=deepClone(e);return t.split(".").forEach((function(e){(0,_validate.validatenull)(e)||(n=n[e])})),n}function downFile(e,t){var n=document.createElementNS("http://www.w3.org/1999/xhtml","a");n.href=e,n.download=t;var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(i)}function strCorNum(e){return e.forEach((function(t,n){e[n]=Number(t)})),e}function extend(){var e,t,n,i,r=arguments[0]||{},o=!1,a=Array.prototype.slice.call(arguments),s=1,l=!1;for("boolean"==typeof r&&(o=r,s++,r=arguments[1]);s<a.length;s++)if(null!=(e=a[s]))for(n in e)i=e[n],t=r[n],o&&("[object Object]"===toString.call(i)||(l="[object Array]"==toString.call(i)))?(t=l?"[object Array]"===toString.call(t)?t:[]:"[object Object]"===toString.call(t)?t:{},r[n]=extend(o,t,i)):void 0!==i&&i!==t&&(r[n]=i);return r}function createObj(e,t){var n=t.split("."),i=n.splice(0,1)[0],r={};if(r[i]={},n.length>=2){var o="";n.forEach((function(e){o=o+'{"'+e+'":'})),o+='""';for(var a=0;a<n.length;a++)o+="}";o=JSON.parse(o),r[i]=o}return extend(!0,e,r)}function setAsVal(obj){var bind=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",value=arguments[2];return(0,_validate.validatenull)(value)||eval("obj."+bind+'="'+value+'"'),obj}function dataURLtoFile(e,t){for(var n=e.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,a=new Uint8Array(o);o--;)a[o]=r.charCodeAt(o);return new File([a],t,{type:i})}function findObject(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"prop",i=-1,r=function(){var t=void 0;return e.forEach((function(e){e.column?t="group":e.children&&(t="tree")})),t}();return"group"===r?e.forEach((function(e){var r=findArray(e.column,t,n,!0);-1!==r&&(i=r)})):i="tree"===r?findLabelNode(e,t,{value:n},!0):findArray(e,t,n,!0),i}function randomId(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t=e.length,n="",i=0;i<16;i++)n+=e.charAt(Math.floor(Math.random()*t));return n}Object.defineProperty(exports,"__esModule",{value:!0}),exports.vaildData=exports.clearVal=exports.getPasswordChar=exports.findArray=exports.findArrayLabel=exports.getObjValue=exports.getDeepData=exports.findLabelNode=exports.detailDicGroup=exports.filterDefaultParams=exports.findByValue=exports.detailDic=exports.getUrlParams=exports.detailDataType=exports.setPx=exports.sortArrys=exports.deepClone=exports.isJson=exports.getObjType=exports.loadScript=void 0;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};exports.hasOwn=hasOwn,exports.getFixed=getFixed,exports.getAsVal=getAsVal,exports.downFile=downFile,exports.strCorNum=strCorNum,exports.extend=extend,exports.createObj=createObj,exports.setAsVal=setAsVal,exports.dataURLtoFile=dataURLtoFile,exports.findObject=findObject,exports.randomId=randomId;var _validate=__webpack_require__(9),_variable=__webpack_require__(8),hasOwnProperty=Object.prototype.hasOwnProperty,loadScript=exports.loadScript=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"js",t=arguments[1],n=!1;return new Promise((function(i){var r=document.getElementsByTagName("head")[0];if(r.children.forEach((function(e){-1!==(e.src||"").indexOf(t)&&(n=!0,i())})),!n){var o=void 0;"js"===e?(o=document.createElement("script"),o.type="text/javascript",o.src=t):"css"===e&&(o=document.createElement("link"),o.rel="stylesheet",o.type="text/css",o.href=t),r.appendChild(o),o.onload=function(){i()}}}))},getObjType=exports.getObjType=function(e){var t=Object.prototype.toString,n={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"};return e instanceof Element?"element":n[t.call(e)]},isJson=exports.isJson=function(e){return Array.isArray(e)?e[0]instanceof Object:e instanceof Object},deepClone=exports.deepClone=function e(t){var n,i=getObjType(t);if("array"===i)n=[];else{if("object"!==i)return t;n={}}if("array"===i)for(var r=0,o=t.length;r<o;r++)t[r]=function(){return t[r],t[r]}(),t[r]&&delete t[r].$parent,n.push(e(t[r]));else if("object"===i)for(var a in t)t&&delete t.$parent,n[a]=e(t[a]);return n},sortArrys=exports.sortArrys=function(e,t){return e.sort((function(e,n){return e[t]>n[t]?-1:e[t]<n[t]?1:0})),e},setPx=exports.setPx=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,_validate.validatenull)(e)&&(e=t),(0,_validate.validatenull)(e)?"":(e+="",-1===e.indexOf("%")&&(e+="px"),e)},detailDataType=exports.detailDataType=function(e,t){return"number"===t?Number(e):"string"===t?e+"":e},getUrlParams=exports.getUrlParams=function(e){var t={url:"",params:{}},n=e.split("?");t.url=n[0];var i=n[1];return i&&i.split("&").forEach((function(e){var n=e.split("="),i=n[0],r=n[1];t.params[i]=r})),t},detailDic=exports.detailDic=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],r=n.value||_variable.DIC_PROPS.value,o=n.children||_variable.DIC_PROPS.children;return t.forEach((function(t){t[r]=detailDataType(t[r],i),t[o]&&e(t[o],n,i)})),t},findByValue=exports.findByValue=function(e,t,n,i,r){if((0,_validate.validatenull)(e))return t;var o="";if(n=n||_variable.DIC_PROPS,t instanceof Array){o=[];for(var a=0;a<t.length;a++){var s=t[a];i?o.push(findLabelNode(e,s,n)||s):o.push(findArrayLabel(e,s,n))}o=o.join(_variable.DIC_SHOW_SPLIT).toString()}else["string","number","boolean"].includes(void 0===t?"undefined":_typeof(t))&&(o=findLabelNode(e,t,n)||t);return o},filterDefaultParams=exports.filterDefaultParams=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=deepClone(e);if(t)return n;for(var i in n)(-1!==i.indexOf("$")||(0,_validate.validatenull)(n[i]))&&delete n[i];return n},detailDicGroup=exports.detailDicGroup=function(e){e=deepClone(e);var t=[];return(e[0]||{}).groups?(e.forEach((function(e){e.groups&&(t=t.concat(e.groups))})),t):e},findLabelNode=exports.findLabelNode=function(e,t,n,i){var r=void 0;return i||(e=detailDicGroup(e)),function e(t,n,o){for(var a=o.label||_variable.DIC_PROPS.label,s=o.value||_variable.DIC_PROPS.value,l=o.children||_variable.DIC_PROPS.children,c=0;c<t.length;c++){var u=t[c],d=u[l]||[];u[s]===n?r=i?u:u[a]:e(d,n,o)}}(e,t,n),r},getDeepData=exports.getDeepData=function(e){return(Array.isArray(e)?e:e.data)||[]},getObjValue=exports.getObjValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],i=t.split("."),r=e;return""===i[0]&&"object"!==n?getDeepData(e):(""!==i[0]&&i.forEach((function(e){r=r[e]})),r)},findArrayLabel=exports.findArrayLabel=function(e,t,n){e=detailDicGroup(e);for(var i=n.value||_variable.DIC_PROPS.value,r=n.label||_variable.DIC_PROPS.label,o=0;o<e.length;o++)if(e[o][i]===t)return e[o][r];return t},findArray=exports.findArray=function(e,t,n,i){i||(e=detailDicGroup(e)),n=n||_variable.DIC_PROPS.value;for(var r=0;r<e.length;r++)if(e[r][n]===t)return i?e[r]:r;return-1},getPasswordChar=exports.getPasswordChar=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments[1],n=e.toString().length;e="";for(var i=0;i<n;i++)e+=t;return e},clearVal=exports.clearVal=function(e){return e?(Object.keys(e).forEach((function(t){Array.isArray(e[t])?e[t]=[]:null!==e[t]&&"object"===_typeof(e[t])?e[t]={}:["number","boolean"].includes(_typeof(e[t]))||void 0===e[t]?e[t]=void 0:e[t]=""})),e):{}},vaildData=exports.vaildData=function(e,t){return"boolean"==typeof e?e:(0,_validate.validatenull)(e)?t:e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o={AliOSS:{url:"https://avuex.avue.top/cdn/aliyun-oss-sdk.min.js",title:"阿里云云图片上传,需要引入OSS的sdk",version:"6.1.0",github:"https://github.com/ali-sdk/ali-oss/"},echarts:{url:"https://cdn.staticfile.org/echarts/4.2.1-rc1/echarts.min.js",title:"图表组件,需要引echart",version:"4.2.1-rc1",github:"https://github.com/apache/incubator-echarts"},Map:{url:"https://webapi.amap.com/maps?v=1.4.11&key=xxxxx&plugin=AMap.PlaceSearch,https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需要引高德SDK",version:"1.4.11"},MapUi:{url:"https://webapi.amap.com/ui/1.0/main.js?v=1.0.11",title:"地图组件,需要引高德UISDK",version:"1.0.11"},Sortable:{url:"https://cdn.staticfile.org/Sortable/1.10.0-rc2/Sortable.min.js",title:"表格拖拽,需要引sortableJs",version:"1.10.0-rc2",github:"https://github.com/SortableJS/Sortable"},Screenshot:{url:"https://cdn.staticfile.org/html2canvas/0.5.0-beta4/html2canvas.min.js",title:"需要引入html2canvas依赖包",version:"0.5.0-beta4",github:"https://github.com/niklasvh/html2canvas/"},CryptoJS:{url:"https://avuejs.com/cdn/CryptoJS.js",title:"七牛云图片上传,需要引入CryptoJS",version:"3.1.2"},"ant-design-vue":{url:"",title:"需要引入ant-design-vue框架包",version:"1.3.14",gihub:"https://github.com/vueComponent/ant-design-vue"},"element-ui":{url:"https://cdnjs.cloudflare.com/ajax/libs/element-ui/2.12.0/index.js",title:"需要引入Element-ui框架包",version:"2.11.0",gihub:"https://github.com/ElemeFE/element"},hljs:{url:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/highlight.min.js",title:"需要引入hljs框架包",version:"9.15.6",gihub:"https://github.com/highlightjs/highlight.js"},vant:{url:"https://cdn.jsdelivr.net/npm/vant@1.6/lib/vant.min.js",title:"需要引入Vant框架包",version:"1.6",gihub:"https://github.com/youzan/vant"},"file-saver":{url:"https://cdn.staticfile.org/FileSaver.js/2014-11-29/FileSaver.min.js",title:"需要引入文件操作包",version:"2014-11-29",gihub:"https://github.com/eligrey/FileSaver.js"},xlsx:{url:"https://cdn.staticfile.org/xlsx/0.14.1/xlsx.full.min.js",title:"需要引入excel操作包",version:"0.14.1",gihub:"https://github.com/SheetJS/js-xlsx"},mock:{url:"https://cdn.staticfile.org/Mock.js/1.0.1-beta3/mock-min.js",title:"需要引入mock模拟数据包",version:"1.0.1-beta3",gihub:"https://github.com/Colingo/mock"},axios:{title:"需要引入axios发送数据包",url:"https://cdn.staticfile.org/axios/0.19.0-beta.1/axios.js",version:"0.19.0-beta.1",github:"https://github.com/axios/axios"}};t.default=function(){return{logs:function(e){var t=o[e];r.default.capsule(e,t.title,"warning"),r.default.warning("版本:"+(t.version||"-")),r.default.warning("CDN:"+(t.url||"-")),r.default.warning("GITHUB:"+(t.github||"-"))}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(28);t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.t.apply(this,t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(t.KEY_COMPONENT_NAME="avue-",t.KEY_ECHART_NAME="echart-",t.DIC_PROPS={nodeKey:"id",label:"label",value:"value",groups:"groups",leaf:"leaf",children:"children",labelText:"名称",disabled:"disabled"},t.DIC_HTTP_PROPS={name:"name",url:"url",fileName:"file",res:""},t.DATE_LIST=["dates","date","datetime","datetimerange","daterange","time","timerange","week","month","monthrange","year"]),r=(t.INPUT_LIST=["tree","number","icon","color","table","map"],t.ARRAY_LIST=["img","array","url"]);t.MULTIPLE_LIST=["tree","select"],t.ARRAY_VALUE_LIST=r.concat(["upload","dynamic","map","checkbox","cascader","dynamic","timerange","monthrange","daterange","datetimerange","dates"]),t.SELECT_LIST=i.concat(["select","checkbox","radio","cascader","tree","color","icon","table","map"]),t.DIC_SHOW_SPLIT=" | ",t.DIC_SPLIT=","},function(e,t,n){"use strict";function i(e){if(e&&0===parseInt(e))return!1;var t=["$parent"];if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if(!(e instanceof Array)){if(e instanceof Object){for(var n in e=(0,a.deepClone)(e),t.forEach((function(t){delete e[t]})),e)return!1;return!0}return"null"===e||null==e||"undefined"===e||void 0===e||""===e}return 0===e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.asyncValidator=void 0,t.validatenull=i;var r=n(136),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(5);t.asyncValidator=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(i,r){new o.default(e).validate(t,n,(function(e){e?r(e):i()}))}))}},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getPlaceholder=t.formInitVal=t.getComponent=t.getSearchType=t.initVal=t.calcCount=t.calcCascader=void 0;var r=n(9),o=n(8),a=n(5),s=(t.calcCascader=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.forEach((function(t,n){if(!(0,r.validatenull)(t.cascaderItem)){var o=[].concat(i(t.cascaderItem)),s=t.prop;e[n].cascader=[].concat(i(o)),o.forEach((function(t,n){var r=(0,a.findObject)(e,t);-1!==r&&(r.parentProp=s,r.cascader=[].concat(i(o)).splice(n+1),s=r.prop)}))}})),e},0);t.calcCount=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&(s=0),s=s+(e.span||t)+(e.offset||0),24===s?s=0:s>24?s=0+(e.span||t)+(e.offset||0):e.row&&24!==s&&(e.count=24-s,s=0),e},t.initVal=function(e){var t=e.type,n=e.multiple,i=e.dataType,s=e.value,l=e.callback,c=e.separator,u=void 0===c?o.DIC_SPLIT:c,d=s;return(o.MULTIPLE_LIST.includes(t)&&n||o.ARRAY_VALUE_LIST.includes(t))&&(Array.isArray(d)?l&&l(!1):(0,r.validatenull)(d)?d=[]:(d=(d+"").split(u)||[],l&&l(!0)),d.forEach((function(e,t){d[t]=(0,a.detailDataType)(e,i)})),o.ARRAY_LIST.includes(t)&&(0,r.validatenull)(d)&&(d=[""])),d},t.getSearchType=function(e){var t=e.type,n=e.searchRange,i=t;return["radio","checkbox","switch"].includes(t)?i="select":o.DATE_LIST.includes(t)?i=n?t.includes("range")?t:t+"range":t.replace("range",""):["textarea"].includes(t)&&(i="input"),i},t.getComponent=function(e,t){var n=e||"input";return(0,r.validatenull)(t)?(o.ARRAY_LIST.includes(e)?n="array":["time","timerange"].includes(e)?n="time":o.DATE_LIST.includes(e)?n="date":["password","textarea","search"].includes(e)?n="input":o.INPUT_LIST.includes(e)&&(n="input-"+e),o.KEY_COMPONENT_NAME+n):t},t.formInitVal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={};return e.forEach((function(e){o.ARRAY_VALUE_LIST.includes(e.type)||o.MULTIPLE_LIST.includes(e.type)&&e.multiple||e.range||"array"===e.dataType?t[e.prop]=[]:["rate","slider","number"].includes(e.type)||"number"===e.dataType?t[e.prop]=void 0:t[e.prop]="",e.bind&&(t=(0,a.createObj)(t,e.bind)),(0,r.validatenull)(e.value)||(t[e.prop]=e.value)})),{tableForm:t}},t.getPlaceholder=function(e,t){var n=e.placeholder,i=e.label;if("search"===t){var a=e.searchPlaceholder;return(0,r.validatenull)(a)?i:a}return(0,r.validatenull)(n)?o.SELECT_LIST.includes(e.type)?this.t("tip.select")+" "+i:this.t("tip.input")+" "+i:n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={clientHeight:document.documentElement.clientHeight,menuWidth:240,menuFixed:"right",menuXsWidth:100,menuAlign:"center",menuHeaderAlign:"center",headerAlign:"left",cancelBtnIcon:"el-icon-circle-close",viewBtnIcon:"el-icon-view",editBtnIcon:"el-icon-edit",copyBtnIcon:"el-icon-document-add",addBtnIcon:"el-icon-plus",printBtnIcon:"el-icon-printer",excelBtnIcon:"el-icon-download",delBtnIcon:"el-icon-delete",searchBtnIcon:"el-icon-search",emptyBtnIcon:"el-icon-delete",saveBtnIcon:"el-icon-circle-plus-outline",updateBtnIcon:"el-icon-circle-check",columnBtnIcon:"el-icon-s-operation",filterBtnIcon:"el-icon-tickets",refreshBtnIcon:"el-icon-refresh",viewBtn:!1,editBtn:!0,copyBtn:!1,cancelBtn:!0,addBtn:!0,addRowBtn:!1,printBtn:!1,excelBtn:!1,delBtn:!0,cellBtn:!1,dateBtn:!1,updateBtn:!0,saveBtn:!0,refreshBtn:!0,columnBtn:!0,filterBtn:!1,queryBtn:!0,menuBtn:!1,searchBtn:!0,clearBtn:!0,selectClearBtn:!0,searchShow:!0,tip:!0,dialogTop:"100",dialogHeight:"auto",dialogWidth:"60%",dialogDrag:!1,formFullscreen:!1,customClass:"",pageBackground:!0,simplePage:!1,page:!0,menu:!0,indexLabel:"#",indexWidth:50,indexFixed:"left",selectionWidth:50,selectionFixed:"left",expandWidth:60,expandFixed:"left",sortableWidth:50,sortableFixed:!1,filterMultiple:!0,calcHeight:300,title:"表格标题",width:"100%",searchGutter:20,searchLabelWidth:80,searchSpan:6}},function(e,t,n){"use strict";function i(e){var t=e.column||[],n=[],i={},r=[];return t.forEach((function(e){var t=e.dicData,o=e.dicUrl,a=e.prop,s=e.parentProp;r=r.concat(e.cascaderItem||[]),Array.isArray(t)&&(i[a]=t),!1===e.dicFlag||r.includes(a)||o&&!s&&n.push({url:o,name:a,method:e.dicMethod,formatter:e.dicFormatter,props:e.props,dataType:e.dataType,resKey:(e.props||{}).res,query:e.dicQuery})})),{ajaxdic:n,locationdic:i}}function r(e){var t={},n=[];return new Promise((function(i){e.forEach((function(e){n.push(new Promise((function(t){c(Object.assign(e,{url:""+e.url.replace("{{key}}","")})).then((function(n){n=(0,l.detailDic)(n,e.props,e.dataType),t(n)})).catch((function(){t([])}))})))})),Promise.all(n).then((function(n){e.forEach((function(e,i){t[e.name]=n[i]})),i(t)}))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.sendDic=t.loadLocalDic=t.loadDic=t.loadCascaderDic=void 0;var o=n(6),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(9),l=n(5),c=(t.loadCascaderDic=function(e,t){return new Promise((function(n,i){var r=[],o=[],a={};e.forEach((function(e){e.parentProp&&r.push(e)})),t.forEach((function(e,t){r.forEach((function(n){!0!==n.hide&&!1!==n.dicFlag&&o.push(new Promise((function(i){(0,s.validatenull)(e[n.parentProp])?i({prop:n.prop,data:[],index:t}):n.dicUrl&&c(Object.assign({url:""+n.dicUrl.replace("{{key}}",e[n.parentProp])},{props:n.props,method:n.dicMethod,formatter:n.dicFormatter,query:n.dicQuery})).then((function(e){i({prop:n.prop,data:e,index:t})}))})))}))})),Promise.all(o).then((function(e){e.forEach((function(e){(0,s.validatenull)(a[e.index])&&(a[e.index]={}),a[e.index][e.prop]=e.data})),n(a)}))}))},t.loadDic=function(e){var t=[];return new Promise((function(n,o){var l=i(e);t=l.ajaxdic,window.axios||(0,s.validatenull)(t)||(a.default.logs("axios"),n()),r(t).then((function(e){n(e)})).catch((function(e){o(e)}))}))},t.loadLocalDic=function(e){var t={},n=e.dicData||{};return e.column.forEach((function(e){(0,s.validatenull)(e.dicData)||(t[e.prop]=e.dicData)})),Object.assign(n,t)},t.sendDic=function(e){var t=e.url,n=e.query,i=e.method,r=e.resKey,o=e.props,s=e.formatter,c=e.value,u=e.column,d=e.form,h=void 0===d?{}:d;u&&(t=u.dicUrl,i=u.dicMethod,n=u.dicQuery,s=u.dicFormatter,o=u.props),t=t||"";var f=t.match(/[^\{\}]+(?=\})/g);return f=f||[],f.forEach((function(e){t="key"===e?t.replace("{{key}}",c||""):t.replace("{{"+e+"}}",h[e]||"")})),o&&(r=(o||{}).res||r),new Promise((function(e){var o=function(t){var n=[];n="function"==typeof s?s(t.data):(0,l.getObjValue)(t.data,r),e(n)};window.axios||(a.default.logs("axios"),e([])),"post"===i?window.axios.post(t,n).then((function(e){o(e)})).catch((function(){return[e([])]})):window.axios.get(t,{params:n}).then((function(e){o(e)})).catch((function(){return[e([])]}))}))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(148),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDayText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return"number"==typeof e?e=new Date(e):"string"==typeof e&&(e=new Date(e.replace(/-/g,"/").replace(/\./g,"/"))),"日一二三四五六".charAt(e.getDay())},t.dateFtt=function(e,t){var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),n)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?n[i]:("00"+n[i]).substr((""+n[i]).length)));return e},t.getDateValues=function(e){function t(e){return e+="",1===e.length?"0"+e:e}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy/MM/dd hh:mm::ss",i=new Date;"number"==typeof e?i=new Date(e):"string"==typeof e&&(i=new Date(e.replace(/-/g,"/").replace(/\./g,"/")));var r=[],o=i.getFullYear(),a=i.getMonth()+1,s=i.getDate(),l=i.getHours(),c=i.getMinutes(),u=i.getSeconds();return n.includes("y")&&r.push(t(o)),n.includes("M")&&r.push(t(a)),n.includes("d")&&r.push(t(s)),n.includes("h")&&r.push(t(l)),n.includes("m")&&r.push(t(c)),n.includes("s")&&r.push(t(u)),r},t.timeToSec=function(e){var t=e.split(":")[0]||"00",n=e.split(":")[1]||"00",i=e.split(":")[2]||"00";return Number(3600*t)+Number(60*n)+Number(i)},t.GetDateStr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new Date;n.setDate(n.getDate()+e);var i=n.getFullYear(),r=n.getMonth()+1<10?"0"+(n.getMonth()+1):n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=i+"-"+r+"-"+o;return 0===t?a+" 00:00:00":a+" 23:59:59"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{props:{option:{type:Object,required:!0,default:function(){return{}}}},watch:{option:{handler:function(){this.init()},deep:!0}},data:function(){return{DIC:{},cascaderDIC:{},tableOption:{},isMobile:""}},created:function(){this.init(),this.handleLoadDic()},computed:{resultOption:function(){return Object.assign(this.deepClone(this.tableOption),{column:this.propOption})},formRules:function(){var e={};return this.propOption.forEach((function(t){t.rules&&!1!==t.display&&(e[t.prop]=t.rules)})),e},menuType:function(){return this.tableOption.menuType||this.$AVUE.menuType||"button"},isMediumSize:function(){return this.controlSize},controlSize:function(){return this.tableOption.size||this.$AVUE.size||"small"}},methods:{init:function(){this.tableOption=this.option,this.getIsMobile(),this.handleLocalDic()},getIsMobile:function(){this.isMobile=window.document.body.clientWidth<=768},updateDic:function(e,t){var n=this,r=this.findObject(this.propOption,e);this.validatenull(t)&&this.validatenull(e)?this.handleLoadDic():this.validatenull(t)&&!this.validatenull(r.dicUrl)?(0,i.sendDic)({column:r}).then((function(t){n.$set(n.DIC,e,t)})):this.$set(this.DIC,e,t)},handleSetDic:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(n).forEach((function(i){t.$set(e,i,n[i])})),this.forEachLabel&&this.forEachLabel()},handleLocalDic:function(){var e=(0,i.loadLocalDic)(this.resultOption);this.handleSetDic(this.DIC,e)},handleLoadDic:function(){var e=this;return new Promise((function(t){(0,i.loadDic)(e.resultOption).then((function(n){e.handleSetDic(e.DIC,n),t()}))}))},handleLoadCascaderDic:function(){var e=this;(0,i.loadCascaderDic)(this.propOption,this.data).then((function(t){return e.handleSetDic(e.cascaderDIC,t)}))}}}};var i=n(12)},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";var e="millisecond",t="second",n="minute",i="hour",r="day",o="week",a="month",s="quarter",l="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,u=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},h={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+d(i,2,"0")+":"+d(r,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,a),r=t-i<0,o=e.clone().add(n+(r?-1:1),a);return Number(-(n+(t-i)/(r?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:a,y:l,w:o,d:r,D:"date",h:i,m:n,s:t,ms:e,Q:s}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",g={};g[p]=f;var m=function(e){return e instanceof _},v=function(e,t,n){var i;if(!e)return p;if("string"==typeof e)g[e]&&(i=e),t&&(g[e]=t,i=e);else{var r=e.name;g[r]=e,i=r}return!n&&i&&(p=i),i||!n&&p},b=function(e,t){if(m(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},y=h;y.l=v,y.i=m,y.w=function(e,t){return b(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var _=function(){function d(e){this.$L=this.$L||v(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(y.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(c);if(i)return n?new Date(Date.UTC(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)):new Date(i[1],i[2]-1,i[3]||1,i[4]||0,i[5]||0,i[6]||0,i[7]||0)}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=b(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return b(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<b(e)},h.$g=function(e,t,n){return y.u(e)?this[t]:this.set(n,e)},h.year=function(e){return this.$g(e,"$y",l)},h.month=function(e){return this.$g(e,"$M",a)},h.day=function(e){return this.$g(e,"$W",r)},h.date=function(e){return this.$g(e,"$D","date")},h.hour=function(e){return this.$g(e,"$H",i)},h.minute=function(e){return this.$g(e,"$m",n)},h.second=function(e){return this.$g(e,"$s",t)},h.millisecond=function(t){return this.$g(t,"$ms",e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,s){var c=this,u=!!y.u(s)||s,d=y.p(e),h=function(e,t){var n=y.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return u?n:n.endOf(r)},f=function(e,t){return y.w(c.toDate()[e].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},p=this.$W,g=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return u?h(1,0):h(31,11);case a:return u?h(1,g):h(0,g+1);case o:var b=this.$locale().weekStart||0,_=(p<b?p+7:p)-b;return h(u?m-_:m+(6-_),g);case r:case"date":return f(v+"Hours",0);case i:return f(v+"Minutes",1);case n:return f(v+"Seconds",2);case t:return f(v+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(o,s){var c,u=y.p(o),d="set"+(this.$u?"UTC":""),h=(c={},c[r]=d+"Date",c.date=d+"Date",c[a]=d+"Month",c[l]=d+"FullYear",c[i]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[u],f=u===r?this.$D+(s-this.$W):s;if(u===a||u===l){var p=this.clone().set("date",1);p.$d[h](f),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else h&&this.$d[h](f);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[y.p(e)]()},h.add=function(e,s){var c,u=this;e=Number(e);var d=y.p(s),h=function(t){var n=b(u);return y.w(n.date(n.date()+Math.round(t*e)),u)};if(d===a)return this.set(a,this.$M+e);if(d===l)return this.set(l,this.$y+e);if(d===r)return h(1);if(d===o)return h(7);var f=(c={},c[n]=6e4,c[i]=36e5,c[t]=1e3,c)[d]||1,p=this.$d.getTime()+e*f;return y.w(p,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=y.z(this),r=this.$locale(),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,d=function(e,i,r,o){return e&&(e[i]||e(t,n))||r[i].substr(0,o)},h=function(e){return y.s(o%12||12,e,"0")},f=r.meridiem||function(e,t,n){var i=e<12?"AM":"PM";return n?i.toLowerCase():i},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:y.s(s+1,2,"0"),MMM:d(r.monthsShort,s,c,3),MMMM:d(c,s),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:d(r.weekdaysMin,this.$W,l,2),ddd:d(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:y.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,a,!0),A:f(o,a,!1),m:String(a),mm:y.s(a,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:i};return n.replace(u,(function(e,t){return t||p[e]||i.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,c,u){var d,h=y.p(c),f=b(e),p=6e4*(f.utcOffset()-this.utcOffset()),g=this-f,m=y.m(this,f);return m=(d={},d[l]=m/12,d[a]=m,d[s]=m/3,d[o]=(g-p)/6048e5,d[r]=(g-p)/864e5,d[i]=g/36e5,d[n]=g/6e4,d[t]=g/1e3,d)[h]||g,u?m:y.a(m)},h.daysInMonth=function(){return this.endOf(a).$D},h.$locale=function(){return g[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),i=v(e,t,!0);return i&&(n.$L=i),n},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return b.prototype=_.prototype,b.extend=function(e,t){return e(t,_,b),b},b.locale=v,b.isDayjs=m,b.unix=function(e){return b(1e3*e)},b.en=g[p],b.Ls=g,b}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o=n(18);t.default=(0,r.default)({name:"affix",props:{id:{},offsetTop:{type:Number,default:0},offsetBottom:{type:Number}},data:function(){return{affix:!1,styles:{},slot:!1,slotStyle:{}}},computed:{parent:function(){return this.validatenull(this.id)?window:(0,o.isDom)(this.id)?this.id:window.document.getElementById(this.id)},offsetType:function(){var e="top";return this.offsetBottom>=0&&(e="bottom"),e}},mounted:function(){this.parent.addEventListener("scroll",this.handleScroll,!1),this.parent.addEventListener("resize",this.handleScroll,!1)},beforeDestroy:function(){this.parent.removeEventListener("scroll",this.handleScroll,!1),this.parent.removeEventListener("resize",this.handleScroll,!1)},methods:{getScroll:function(e,t){var n=t?"pageYOffset":"pageXOffset",i=t?"scrollTop":"scrollLeft",r=e[n];return"number"!=typeof r&&(r=window.document.documentElement[i]),r},getOffset:function(e){var t=e.getBoundingClientRect(),n=this.getScroll(this.parent,!0),i=this.getScroll(this.parent),r=window.document.body,o=r.clientTop||0,a=r.clientLeft||0;return{top:t.top+n-o,left:t.left+i-a}},handleScroll:function(){var e=this.affix,t=this.getScroll(window,!0),n=this.getOffset(this.$el),i=window.innerHeight,r=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<t&&"top"==this.offsetType&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:this.offsetTop+"px",left:n.left+"px",width:this.$el.offsetWidth+"px"},this.$emit("on-change",!0)):n.top-this.offsetTop>t&&"top"==this.offsetType&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+r>t+i&&"bottom"==this.offsetType&&!e?(this.affix=!0,this.styles={bottom:this.offsetBottom+"px",left:n.left+"px",width:this.$el.offsetWidth+"px"},this.$emit("on-change",!0)):n.top+this.offsetBottom+r<t+i&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}}})},function(e,t,n){"use strict";function i(e,t){return s.call(e,t)}function r(e){return null!==e&&"object"===(void 0===e?"undefined":a(e))&&i(e,"componentOptions")}function o(e){return"object"===("undefined"==typeof HTMLElement?"undefined":a(HTMLElement))?function(){return e instanceof HTMLElement}():function(){return e&&"object"===(void 0===e?"undefined":a(e))&&1===e.nodeType&&"string"==typeof e.nodeName}()}Object.defineProperty(t,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.hasOwn=i,t.isVNode=r,t.isDom=o;var s=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(127),o=i(r),a=n(1),s=i(a);t.default=(0,s.default)({name:"count-up",props:{animation:{type:Boolean,default:!0},start:{type:Number,required:!1,default:0},end:{required:!0},decimals:{type:Number,required:!1,default:0},duration:{type:Number,required:!1,default:2},options:{type:Object,required:!1,default:function(){return{}}},callback:{type:Function,required:!1,default:function(){}}},data:function(){return{c:null}},watch:{decimals:function(){this.c&&this.c.update&&this.c.update(this.end)},end:function(e){this.c&&this.c.update&&this.c.update(e)}},mounted:function(){this.animation&&this.init()},methods:{init:function(){var e=this;this.c||(this.c=new o.default(this.$el,this.start,this.end,this.decimals,this.duration,this.options),this.c.start((function(){e.callback(e.c)})))},destroy:function(){this.c=null}},beforeDestroy:function(){this.destroy()},start:function(e){var t=this;this.c&&this.c.start&&this.c.start((function(){e&&e(t.c)}))},pauseResume:function(){this.c&&this.c.pauseResume&&this.c.pauseResume()},reset:function(){this.c&&this.c.reset&&this.c.reset()},update:function(e){this.c&&this.c.update&&this.c.update(e)}})},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),a=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,a.default)({name:"avatar",props:(r={src:String,shape:{validator:function(e){return["circle","square"].includes(e)},default:"circle"}},i(r,"shape",String),i(r,"size",{validator:function(e){return"number"==typeof e||["small","large","default"].includes(e)},default:"default"}),i(r,"icon",String),r),data:function(){return{scale:1}},updated:function(){var e=this;this.$nextTick((function(){e.setScale()}))},computed:{sizeChildrenStyle:function(){var e={},t=(this.$refs.avatarChildren,"scale("+this.scale+") translateX(-50%)");return e={msTransform:t,WebkitTransform:t,transform:t},"number"==typeof size&&(e.lineHeight=this.size+"px"),e},sizeCls:function(){var e;return e={},i(e,"avue-avatar--"+this.shape,this.shape),i(e,"avue-avatar--lg","large"===this.size),i(e,"avue-avatar--sm","small"===this.size),e},sizeStyle:function(){return"number"==typeof this.size?{width:this.size+"px",height:this.size+"px",lineHeight:this.size+"px",fontSize:this.icon?this.size/2+"px":"18px"}:{}}},mounted:function(){var e=this;this.$nextTick((function(){e.setScale()}))},methods:{setScale:function(){var e=this.$refs.avatarChildren;if(e){var t=e.offsetWidth,n=this.$el.getBoundingClientRect().width;this.scale=n-8<t?(n-8)/t:1}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o={title:"title",meta:"meta",lead:"lead",body:"body"};t.default=(0,r.default)({name:"article",props:{data:{type:Object,default:function(){return{}}},props:{type:Object,default:function(){return o}},option:{type:Object,default:function(){return{}}}},computed:{titleKey:function(){return this.props.title||o.title},metaKey:function(){return this.props.meta||o.meta},leadKey:function(){return this.props.lead||o.lead},bodyKey:function(){return this.props.body||o.body},title:function(){return this.data[this.titleKey]},meta:function(){return this.data[this.metaKey]},lead:function(){return this.data[this.leadKey]},body:function(){return this.data[this.bodyKey]}},mounted:function(){}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"carousel",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(6),l=i(s),c=n(25),u=i(c),d=n(15),h=i(d),f=n(138),p=i(f),g=n(140),m=i(g),v=n(7),b=i(v),y=n(146),_=i(y),w=n(151),x=i(w),C=n(153),S=i(C),k=n(155),O=i(k),M=n(157),D=i(M),E=n(11),T=i(E),L=n(159),I=i(L),A=n(10);t.default=(0,a.default)({name:"crud",mixins:[(0,h.default)(),b.default],directives:{permission:u.default},provide:function(){return{crud:this}},components:{column:_.default,tablePage:p.default,headerSearch:m.default,headerMenu:x.default,dialogColumn:S.default,dialogFilter:O.default,dialogForm:D.default},data:function(){return{reload:!0,isChild:!1,config:T.default,list:[],expandList:[],tableForm:{},tableHeight:void 0,tableIndex:-1,tableSelect:[],formIndexList:[],sumsList:[],cascaderDicList:{},formCascaderList:{},btnDisabledList:{},btnDisabled:!1}},created:function(){this.dataInit()},mounted:function(){var e=this;this.refreshTable((function(){e.$refs.headerSearch.init(),e.getTableHeight(),e.setSort()}))},computed:{isIconMenu:function(){return"icon"===this.menuType},isTextMenu:function(){return"text"===this.menuType},isMenu:function(){return"menu"===this.menuType},calcHeight:function(){return this.tableOption.calcHeight||10},propOption:function(){function e(i){Array.isArray(i)&&i.forEach((function(i){i.prop&&t.push(i),i.children&&(n.isChild=!0,e(i.children))}))}var t=[],n=this;return e(this.columnOption),t=this.isChild?(0,A.calcCascader)(t):(0,A.calcCascader)(this.columnOption)},isTree:function(){var e=!1;return this.data.forEach((function(t){t.children&&(e=!0)})),this.vaildData(this.tableOption.tree,e)},isGroup:function(){return!this.validatenull(this.tableOption.group)},groupOption:function(){return this.parentOption.group},isSortable:function(){return this.tableOption.sortable},dynamicOption:function(){var e=[];return this.propOption.forEach((function(t){"dynamic"===t.type&&(e=e.concat(t.children.column.map((function(e){return Object.assign(e,{dynamic:!0})}))))})),e},columnFormOption:function(){var e=[];return this.propOption.forEach((function(t){e.push(t)})),this.isGroup&&this.groupOption.forEach((function(t){t.column&&t.column.forEach((function(t){e.push(t)}))})),e.concat(this.dynamicOption)},expandLevel:function(){return this.parentOption.expandLevel||0},expandAll:function(){return this.parentOption.expandAll||!1},rowKey:function(){return this.tableOption.rowKey||"id"},rowParentKey:function(){return this.tableOption.rowParentKey||"parentId"},parentOption:function(){return this.tableOption||{}},columnOption:function(){return this.tableOption.column||[]},sumColumnList:function(){return this.tableOption.sumColumnList||[]},selectLen:function(){return this.tableSelect?this.tableSelect.length:0}},watch:{tableOption:{handler:function(){this.$refs.dialogColumn.columnInit()},deep:!0},tableForm:{handler:function(){this.$emit("input",this.tableForm)},deep:!0},value:{handler:function(){this.formVal()},deep:!0},data:{handler:function(){this.dataInit(),this.handleLoadCascaderDic()},deep:!0}},props:{sortBy:Function,sortOrders:Function,sortMethod:Function,spanMethod:Function,summaryMethod:Function,rowStyle:Function,cellStyle:Function,beforeClose:Function,beforeOpen:Function,rowClassName:Function,cellClassName:Function,headerCellClassName:Function,uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,permission:{type:[Function,Object],default:function(){return{}}},value:{type:Object,default:function(){return{}}},showColumn:{type:Array,default:function(){return[]}},search:{type:Object,default:function(){return{}}},page:{type:Object,default:function(){return{}}},tableLoading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},data:{type:Array,required:!0,default:function(){return[]}}},methods:{getPermission:function(e,t,n){return"function"==typeof this.permission?this.permission(e,t,n):!!this.validatenull(this.permission[e])||this.permission[e]},getTableHeight:function(){var e=this;"auto"==this.tableOption.height?this.$nextTick((function(){var t=e.$refs.table.$el,n=e.$refs.tablePage?e.$refs.tablePage.$el.offsetHeight:0;e.tableHeight=T.default.clientHeight-t.offsetTop-n-e.calcHeight})):this.tableHeight=this.tableOption.height},doLayout:function(){this.$refs.table.doLayout()},refreshTable:function(e){var t=this;this.reload=!1,this.$nextTick((function(){t.reload=!0,e&&e()}))},setSort:function(){var e=this,t=function(){if(window.Sortable){var t=e.$refs.table.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];e.sortable=window.Sortable.create(t,{ghostClass:"avue-crud__sortable",handle:e.tableOption.dragHandler?".avue-crud__drag-handler":void 0,onEnd:function(t){var n=t.oldIndex,i=t.newIndex,r=e.list.splice(n,1)[0];e.list.splice(i,0,r),e.$emit("sortable-change",n,i,r,e.list)}})}else l.default.logs("Sortable")};this.isSortable&&this.$nextTick((function(){t()}))},treeLoad:function(e,t,n){this.$emit("tree-load",e,t,(function(t){e.children=t,n(t)}))},formatData:function(){var e=this.data;if(0===e.length)return[];(0,L.addAttrs)(this,e,{expand:this.expandAll,expandLevel:this.expandLevel}),this.list=(0,I.default)(this,e)},showRow:function(e){var t=(e.rowIndex,!e.row._parent||e.row._parent._expand&&e.row._parent._show);return e.row._show=t,t?"animation:treeTableShow 1s;-webkit-animation:treeTableShow 1s;":"display:none;"},validateField:function(e){return this.$refs.dialogForm.$refs.tableForm.validateField(e)},handleGetRowKeys:function(e){return e[this.rowKey]},menuIcon:function(e){return this.vaildData(this.tableOption[e+"Text"],this.t("crud."+e))},menuText:function(e){return this.isTextMenu?"text":e},selectClear:function(){this.$refs.table.clearSelection()},toggleRowSelection:function(e,t){this.$refs.table.toggleRowSelection(e,t)},toggleRowExpansion:function(e,t){this.$refs.table.toggleRowExpansion(e,t)},setCurrentRow:function(e){this.$refs.table.setCurrentRow(e)},indexMethod:function(e){return e+1+((this.page.currentPage||1)-1)*(this.page.pageSize||10)},formVal:function(){var e=this;Object.keys(this.value).forEach((function(t){e.$set(e.tableForm,t,e.value[t])}))},dataInit:function(){var e=this;this.list=this.data,this.list.forEach((function(t,n){t.$cellEdit&&!e.formCascaderList[n]&&(e.formCascaderList[n]=e.deepClone(t)),t.$index=n}))},headerDragend:function(e,t,n,i){this.$emit("header-dragend",e,t,n,i)},expandChange:function(e,t){this.expandList=[].concat(r(t)),this.$emit("expand-change",e,t)},currentRowChange:function(e){this.$emit("current-row-change",e)},refreshChange:function(){this.$emit("refresh-change")},toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.table.toggleRowSelection(e)})):this.$refs.table.clearSelection()},selectionChange:function(e){this.tableSelect=e,this.$emit("selection-change",this.tableSelect)},select:function(e,t){this.$emit("select",e,t)},selectAll:function(e){this.$emit("select-all",e)},sortChange:function(e){this.$emit("sort-change",e)},rowDblclick:function(e,t){this.$emit("row-dblclick",e,t)},rowClick:function(e,t,n){this.$emit("row-click",e,t,n)},clearSort:function(){this.$refs.table.clearSort()},cellMouseEnter:function(e,t,n,i){this.$emit("cell-mouse-enter",e,t,n,i)},cellMouseLeave:function(e,t,n,i){this.$emit("cell-mouse-leave",e,t,n,i)},cellClick:function(e,t,n,i){this.$emit("cell-click",e,t,n,i)},headerClick:function(e,t){this.$emit("header-click",e,t)},rowContextmenu:function(e,t,n){this.$emit("row-contextmenu",e,t,n)},headerContextmenu:function(e,t){this.$emit("header-contextmenu",e,t)},cellDblclick:function(e,t,n,i){this.$emit("cell-dblclick",e,t,n,i)},rowCell:function(e,t){e.$cellEdit?this.rowCellUpdate(e,t):this.rowCellEdit(e,t)},rowCellAdd:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.list.length,n=(0,A.formInitVal)(this.propOption).tableForm;e=this.deepClone(Object.assign({$cellEdit:!0,$index:t},n,e)),this.list.push(e),this.formIndexList.push(t),this.setSort()},rowCancel:function(e,t){this.validatenull(e[this.rowKey])?this.list.splice(t,1):(this.formCascaderList[t].$cellEdit=!1,this.$set(this.list,t,this.formCascaderList[t]),delete this.formCascaderList[t],this.$set(this.cascaderDIC,t,this.cascaderDicList[t]),this.formIndexList.splice(this.formIndexList.indexOf(t),1))},rowCellEdit:function(e,t){var n=this;e.$cellEdit=!0,this.$set(this.list,t,e),this.formCascaderList[t]=this.deepClone(e),this.cascaderDicList[t]=this.deepClone(this.cascaderDIC[t]),setTimeout((function(){n.formIndexList.push(t)}),1e3)},rowCellUpdate:function(e,t){var n=this;this.asyncValidator(this.formRules,e).then((function(i){n.btnDisabledList[t]=!0,n.btnDisabled=!0,n.$emit("row-update",e,t,(function(){n.btnDisabledList[t]=!1,n.btnDisabled=!1,e.$cellEdit=!1,n.$set(n.list,t,e),delete n.formCascaderList[t]}),(function(){n.btnDisabledList[t]=!1}))})).catch((function(e){n.$message.error("第"+(t+1)+"行:"+e[0].message)}))},rowAdd:function(){this.$refs.dialogForm.show("add")},rowSave:function(){return this.$refs.dialogForm.$refs.tableForm.submit()},rowUpdate:function(){return this.$refs.dialogForm.$refs.tableForm.submit()},closeDialog:function(){return this.$refs.dialogForm.closeDialog()},rowClone:function(e){var t={};return Object.keys(e).forEach((function(n){["_parent","children"].includes(n)||(t[n]=e[n])})),t},searchChange:function(){this.$refs.headerSearch.searchChange()},getPropRef:function(e){return this.$refs.dialogForm.$refs.tableForm.getPropRef(e)},searchReset:function(){this.$refs.headerSearch.searchReset()},rowEdit:function(e,t){this.tableForm=this.rowClone(e),this.$emit("input",this.tableForm),this.tableIndex=t,this.$refs.dialogForm.show("edit",t)},rowCopy:function(e){this.tableForm=this.rowClone(e),delete this.tableForm[this.rowKey],this.$emit("input",this.tableForm),this.tableIndex=-1,this.$refs.dialogForm.show("add")},rowView:function(e,t){this.tableForm=this.rowClone(e),this.$emit("input",this.tableForm),this.tableIndex=t,this.$refs.dialogForm.show("view")},vaildParent:function(e){return this.validatenull(e[this.rowParentKey])},rowDel:function(e,t){var n=this;this.$emit("row-del",e,t,(function(){var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=t.findIndex((function(t){return t[n.rowKey]===e[n.rowKey]}));t.splice(i,1)};if(n.isTree)if(n.vaildParent(e))t(n.data);else{var i=n.findObject(n.data,e[n.rowParentKey],n.rowKey);t(void 0===i?n.data:i.children)}else t(n.data)}))},resetForm:function(){this.$refs.dialogForm.resetForm(),this.$emit("input",this.tableForm)},tableSpanMethod:function(e){if("function"==typeof this.spanMethod)return this.spanMethod(e)},tableSummaryMethod:function(e){var t=this;if("function"==typeof this.summaryMethod)return this.summaryMethod(e);var n=e.columns,i=e.data,r=[];return n.length>0&&n.forEach((function(e,n){var o=t.sumColumnList.find((function(t){return t.name===e.property}));if(0===n)r[n]="";else if(o){var a=o.decimals||2,s=o.label;switch(o.type){case"count":r[n]=(s||t.t("crud.summary.count"))+i.length;break;case"avg":var l=i.map((function(t){return Number(t[e.property])})),c=1;r[n]=l.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:(e*(c-1)+t)/c++}),0),r[n]=(s||t.t("crud.summary.avg"))+r[n].toFixed(a);break;case"sum":var u=i.map((function(t){return Number(t[e.property])}));r[n]=u.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:e+t}),0),r[n]=(s||t.t("crud.summary.sum"))+r[n].toFixed(a)}}else r[n]="-"})),this.sumsList=r,r}}})},function(e,t,n){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",t="";switch(e){case"default":t="#35495E";break;case"primary":t="#3488ff";break;case"success":t="#43B883";break;case"warning":t="#e6a23c";break;case"danger":t="#f56c6c"}return t}Object.defineProperty(t,"__esModule",{value:!0});var o={capsule:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"primary";console.log("%c "+e+" %c "+t+" %c","background:#35495E; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;","background:"+r(n)+"; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;","background:transparent")},colorful:function(e){var t;(t=console).log.apply(t,["%c"+e.map((function(e){return e.text||""})).join("%c")].concat(i(e.map((function(e){return"color: "+r(e.type)+";"})))))},default:function(e){o.colorful([{text:e}])},primary:function(e){o.colorful([{text:e,type:"primary"}])},success:function(e){o.colorful([{text:e,type:"success"}])},warning:function(e){o.colorful([{text:e,type:"warning"}])},danger:function(e){o.colorful([{text:e,type:"danger"}])}};window.$Log=o,t.default=o},function(e,t,n){"use strict";function i(e,t){var n=t.value;e.style.display=!1===n?"none":""}Object.defineProperty(t,"__esModule",{value:!0}),t.default={bind:function(e,t){i(e,t)},update:function(e,t){i(e,t)}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=i(r),a=n(1),s=i(a);t.default=(0,s.default)({name:"crud",inject:["crud"],props:{page:{type:Object,default:function(){return{}}}},data:function(){return{config:o.default,defaultPage:{total:0,pagerCount:7,currentPage:1,pageSize:10,pageSizes:[10,20,30,40,50,100],layout:"total, sizes, prev, pager, next, jumper",background:!0}}},created:function(){this.pageInit(),this.crud.$emit("on-load",this.defaultPage)},watch:{page:{handler:function(){this.pageInit()},deep:!0},pageFlag:function(){this.crud.getTableHeight()},"defaultPage.total":function(e){this.defaultPage.total===(this.defaultPage.currentPage-1)*this.defaultPage.pageSize&&0!=this.defaultPage.total&&(this.defaultPage.currentPage=this.defaultPage.currentPage-1,this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",this.defaultPage.currentPage),this.updateValue())}},computed:{pageFlag:function(){return 0!=this.defaultPage.total}},methods:{pageInit:function(){this.defaultPage=Object.assign(this.defaultPage,this.page,{total:Number(this.page.total||this.defaultPage.total),pagerCount:Number(this.page.pagerCount||this.defaultPage.pagerCount),currentPage:Number(this.page.currentPage||this.defaultPage.currentPage),pageSize:Number(this.page.pageSize||this.defaultPage.pageSize)}),this.updateValue()},updateValue:function(){this.crud.$emit("update:page",this.defaultPage)},nextClick:function(e){this.crud.$emit("next-click",e)},prevClick:function(e){this.crud.$emit("prev-click",e)},sizeChange:function(e){this.defaultPage.currentPage=1,this.defaultPage.pageSize=e,this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("size-change",e)},currentChange:function(e){this.updateValue(),this.crud.$emit("on-load",this.defaultPage),this.crud.$emit("current-change",e)}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(5),s=n(9),l=n(7),c=i(l),u=n(10),d=n(11),h=i(d);t.default=(0,o.default)({name:"crud__search",inject:["crud"],mixins:[c.default],data:function(){return{flag:!1,config:h.default,defaultForm:{searchForm:{}},searchShow:!0,searchForm:{}}},props:{search:{type:Object,default:function(){return{}}}},watch:{"crud.propOption":{handler:function(){this.dataformat()},immediate:!0},search:{handler:function(){this.searchInit()},deep:!0},searchForm:{handler:function(){this.$emit("input",this.searchForm),this.updateValue()},deep:!0}},created:function(){this.init(),this.searchInit()},computed:{columnOption:function(){return this.option.column||[]},option:function(){var e=this,t=this.crud.option,n=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=[];return n.forEach((function(n){n.search&&(n=Object.assign(n,{type:(0,u.getSearchType)(n),multiple:n.searchMultiple,order:n.searchOrder,detail:!1,dicFlag:!1,span:n.searchSpan||t.searchSpan||e.config.searchSpan,gutter:n.searchGutter||t.searchGutter||e.config.searchGutter,labelWidth:n.searchLabelWidth||t.searchLabelWidth||e.config.searchLabelWidth,labelPosition:n.searchLabelPosition||t.searchLabelPosition,tip:n.searchTip,placeholder:(0,u.getPlaceholder)(n,"search"),filterable:n.searchFilterable,tipPlacement:n.searchTipPlacement,filterMethod:n.searchFilterMethod,checkStrictly:n.searchCheckStrictly||t.searchCheckStrictly,tags:n.searchTags,row:n.searchRow,size:n.searchSize,formslot:n.searchslot,clearable:n.searchClearable,rules:n.searchRules,disabled:n.searchDisabled,readonly:n.searchReadonly,value:n.searchValue}),["display","disabled","readonly"].forEach((function(e){delete n[e]})),i.push(n))})),i},i=function(i){var r=e.deepClone(i);return r.translate=!1,r.group&&delete r.group,r.column=n(e.deepClone(e.crud.columnFormOption)),Object.assign(r,{tabs:!1,printBtn:!1,mockBtn:!1,submitText:e.vaildData(t.searchBtnText,e.t("crud.searchBtn")),submitBtn:e.vaildData(t.searchBtn,e.config.searchSubBtn),submitIcon:t.searchBtnIcon||e.config.searchBtnIcon,emptyText:e.vaildData(t.emptyBtnText,e.t("crud.emptyBtn")),emptyBtn:e.vaildData(t.emptyBtn,e.config.emptyBtn),emptyIcon:t.emptyBtnIcon||e.config.emptyBtnIcon,menuSpan:t.searchMenuSpan,dicFlag:!1,dicData:e.crud.DIC})}(t);return this.flag=!this.validatenull(i.column),i},searchFlag:function(){return!(0,s.validatenull)(this.searchForm)}},methods:{searchInit:function(){this.searchForm=Object.assign(this.searchForm,this.search)},updateValue:function(){this.crud.$emit("update:search",this.searchForm)},init:function(){this.crud.searchChange=this.searchChange,this.crud.searchReset=this.searchReset},searchChange:function(e,t){this.crud.$emit("search-change",e,t)},resetChange:function(){this.crud.$emit("search-reset",this.defaultForm.tableForm)},searchReset:function(){this.$refs.form.resetForm()},handleSearchShow:function(){this.searchShow=!this.searchShow},dataformat:function(){this.defaultForm=(0,u.formInitVal)(this.option.column),this.searchForm=this.deepClone(this.defaultForm.tableForm),this.searchShow=(0,a.vaildData)(this.crud.tableOption.searchShow,this.crud.config.searchShow)}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.i18n=t.use=t.locale=t.t=void 0;var r=n(141),o=i(r),a=n(142),s=i(a),l=n(143),c=i(l),u=n(144),d=i(u),h=window.Vue,f=(0,d.default)(h),p=o.default,g=!1,m=function(){var e=Object.getPrototypeOf(this||h).$t;if("function"==typeof e&&(h||{}).locale)return g||(g=!0,h.locale(h.config.lang,(0,c.default)(p,h.locale(h.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},v=t.t=function(e,t){var n=m.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var i=e.split("."),r=p,o=0,a=i.length;o<a;o++){if(n=r[i[o]],o===a-1)return f(n,t);if(!n)return"";r=n}return""},b=t.locale={zh:o.default,en:s.default},y=t.use=function(e){p=b[e||"zh"]},_=t.i18n=function(e){m=e||m};t.default={use:y,t:v,i18n:_,locale:b}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(8),s=n(147),l=i(s),c=n(7),u=i(c),d=n(12),h=n(10),f=n(13),p=i(f),g=n(32);t.default={name:"column",mixins:[u.default],components:{formTemp:p.default,dynamicColumn:l.default},inject:["crud"],provide:function(){return{crud:this.crud,dynamic:this}},props:{columnOption:{type:Array,default:function(){return[]}}},computed:{list:function(){return[].concat(r(this.columnOption))}},methods:{getComponent:h.getComponent,getPlaceholder:h.getPlaceholder,vaildColumn:function(e){var t=e.prop;return((this.crud.$refs.dialogColumn||{}).columnIndex||[]).includes(t)},corArray:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.DIC_SPLIT;return this.validatenull(e)?[]:Array.isArray(e)?e:e.split(t)},getImgList:function(e,t){var n=(t.propsHttp||{}).home||"",i=(t.props||{}).value||a.DIC_PROPS.value;if(this.validatenull(e.row[t.prop]))return[];if("picture-img"==t.listType)return[n+e.row[t.prop]];var r=this.corArray(this.deepClone(e.row[t.prop]),t.separator);return r.forEach((function(e,t){"object"===(void 0===e?"undefined":o(e))?r[t]=n+e[i]:r[t]=n+e})),r},menuText:function(e){return"text"===this.menuType?"text":e},handleDetail:function(e,t,n){var i=e[t.prop];return i=(0,g.detail)(e,t,this.crud.tableOption,n),this.validatenull(n)||(e["$"+t.prop]=i),i},handleShowLabel:function(e,t,n){var i="";return this.validatenull(n)||(i=(0,g.detail)(e,t,this.tableOption,n),e["$"+t.prop]=i),i},handleChange:function(e,t){var n=this;this.$nextTick((function(){var i=[].concat(r(n.crud.propOption)),o=i[e],s=o.cascader,l=t[o.prop],c=t.$index,u=i[e+1],h=u.prop;n.validatenull(s)||n.validatenull(l)||n.validatenull(u)||(n.validatenull(n.crud.cascaderDIC[c])&&n.$set(n.crud.cascaderDIC,c,{}),n.crud.formIndexList.includes(c)&&s.forEach((function(e){n.$set(n.crud.cascaderDIC[c],e.prop,[]),s.forEach((function(e){return t[e]=""}))})),(0,d.sendDic)({column:u,value:l,form:t}).then((function(e){n.crud.formIndexList.includes(c)||n.crud.formIndexList.push(c);var i=Array.isArray(e)?e:[];n.$set(n.crud.cascaderDIC[c],h,i),n.validatenull(i)||n.validatenull(u.cascaderIndex)||(t[h]=i[u.cascaderIndex][(u.props||{}).value||a.DIC_PROPS.value])})))}))},openImg:function(e,t){e=e.map((function(e){return{thumbUrl:e,url:e}})),this.$ImagePreview(e,t)},cellEditFlag:function(e,t){return e.$cellEdit&&!0!==t.slot&&t.cell},iconShow:function(e,t){return e===this.crud.treeProp&&t.children&&t.children.length>0},toggleExpanded:function(e,t){e._expand=!e._expand,this.$set(this.crud.list,t,e)},handleFiltersMethod:function(e,t,n){var i=this.columnOption.filter((function(e){return e.prop===n.property}))[0];return"function"==typeof i.filtersMethod?i.filtersMethod(e,t,i):t[i.prop]===e},handleFilters:function(e){var t=this;if(!0===e.filter){if(this.validatenull(e.dicFilters)){var n=[];return(this.crud.DIC[e.prop]||[]).forEach((function(i){var r=e.props||t.crud.tableOption.props||{};n.push({text:i[r.label||a.DIC_PROPS.label],value:i[r.value||a.DIC_PROPS.value]})})),n}return e.dicFilters}}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=i(r),a=n(7),s=i(a);t.default={name:"dynamic-column",mixins:[s.default],components:{formTemp:o.default},inject:["dynamic","crud"],props:{columnOption:{type:Object,required:!0}},created:function(){var e=this,t=["corArray","openImg","detailData","getComponent","getPlaceholder","vaildColumn","menuText","handleDetail","handleShowLabel","handleChange","cellEditFlag","iconShow","getImgList","toggleExpanded","handleFiltersMethod","handleFilters"];Object.keys(this.dynamic).forEach((function(n){t.includes(n)&&(e[n]=e.dynamic[n])}))}}},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(10);t.default={name:"form-temp",props:(r={value:{},t:Function,uploadBefore:Function,uploadDelete:Function,uploadAfter:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,props:{type:Object},clearable:{type:Boolean},enter:{type:Boolean,default:!1},type:{type:String},propsHttp:{type:Object,default:function(){return{}}}},i(r,"props",{type:Object}),i(r,"dic",{type:Array}),i(r,"placeholder",{type:String}),i(r,"size",{type:String}),i(r,"disabled",{type:Boolean}),i(r,"readonly",{type:Boolean}),i(r,"column",{type:Object,default:function(){return{}}}),r),data:function(){return{first:!1,text:void 0}},computed:{params:function(){return this.column.params||{}},event:function(){return this.column.event||{}},columnOption:function(){return(this.column.children||[]).column||[]}},watch:{text:{handler:function(e){this.first||!this.validatenull(e)?(this.first=!0,this.$emit("input",e)):this.first=!0}},value:{handler:function(e){this.text=e},immediate:!0}},methods:{getComponent:o.getComponent,getPlaceholder:o.getPlaceholder,enterChange:function(){this.enter&&this.$emit("enter")},handleChange:function(e){this.$emit("change",e)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detail=void 0;var i=n(9),r=n(5),o=n(8),a=n(16),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.detail=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=e[t.prop],c=t.type,u=t.separator;if((0,i.validatenull)(l)&&(l=""),!(0,i.validatenull)(l)&&o.DATE_LIST.includes(c)&&t.format){var d=t.format.replace("dd","DD").replace("yyyy","YYYY");l=(0,s.default)(l).format(d)}return!["string","number"].includes(t.dataType)||Array.isArray(l)||(0,i.validatenull)(l)||(l=(l+"").split(u||o.DIC_SPLIT),"number"===t.dataType&&(l=(0,r.strCorNum)(l))),["array"].includes(c)?l=Array.isArray(l)?l.join(u||o.DIC_SHOW_SPLIT):l.split(u||o.DIC_SPLIT).join(u||o.DIC_SHOW_SPLIT):["password"].includes(c)?l=(0,r.getPasswordChar)(l,"*"):["color"].includes(c)?l='<i class="avue-crud__color" style="background-color:'+l+'"></i>':["icon"].includes(c)&&(l='<i class="avue-crud__icon '+l+'" ></i>'),t.bind&&(l=(0,r.getAsVal)(e,t.bind)),(0,i.validatenull)(a)||(l=(0,r.findByValue)(a,l,t.props||n.props,["cascader","tree"].includes(t.type),t)),t.formatter&&"function"==typeof t.formatter&&(l=t.formatter(e,e[t.prop],l,t)),l}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),a=i(o),s=n(25),l=i(s),c=n(1),u=i(c),d=n(11),h=i(d),f=n(6),p=i(f),g=n(14),m=n(5);t.default=(0,u.default)({name:"crud",mixins:[a.default],directives:{permission:l.default},inject:["crud"],data:function(){return{dateCreate:!1,pickerOptions:{shortcuts:[{text:"今日",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()),e.$emit("pick",[n,t])}},{text:"昨日",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-864e5),e.$emit("pick",[n,t])}},{text:"最近一周",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-6048e5),e.$emit("pick",[n,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-2592e6),e.$emit("pick",[n,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-7776e6),e.$emit("pick",[n,t])}}]},config:h.default}},created:function(){this.initFun()},computed:{data:function(){return this.crud.tableOption.selection?this.crud.tableSelect:this.crud.list},columnIndex:function(){return this.crud.$refs.dialogColumn.columnIndex}},methods:{dateChange:function(e){this.dateCreate?this.crud.$emit("date-change",e):this.dateCreate=!0},initFun:function(){this.vaildData=m.vaildData,this.crud.rowExcel=this.rowExcel,this.crud.rowPrint=this.rowPrint},rowExcel:function(){var e=this;return window.saveAs&&window.XLSX?this.validatenull(this.data)?void this.$message.warning("请勾选要导出的数据"):(this.$export.excel({title:(this.crud.tableOption.title||"")+(0,g.dateFtt)("yyyy-MM-dd hh:mm:ss",new Date),columns:function(){var t=[];return e.crud.propOption.forEach((function(n){e.columnIndex.includes(n.prop)&&t.push({label:n.label,prop:function(){return e.validatenull(e.crud.DIC[n.prop])&&e.validatenull(e.crud.cascaderDIC[n.prop])?n.prop:"$"+n.prop}()})})),t}(),data:this.handleSum()}),void this.crud.setCurrentRow()):(p.default.logs("file-saver"),void p.default.logs("xlsx"))},handleSum:function(){var e=this,t=this.crud.tableOption,n=this.crud.propOption,i=0,o=[].concat(r(this.crud.sumsList)),a=[];if(this.data.forEach((function(t){var i=e.deepClone(t);n.forEach((function(e){e.bind&&(i[e.prop]=(0,m.getAsVal)(i,e.bind))})),a.push(i)})),t.index&&i++,t.selection&&i++,t.expand&&i++,o.splice(0,i),o.splice(o.length-1,1),t.showSummary){var s={};o.forEach((function(e,t){(n[t]||{}).prop&&(s[n[t].prop]=e)})),a.push(s)}return a},rowPrint:function(){var e=this;this.$nextTick((function(){e.$Print({html:e.crud.$el.innerHTML})}))}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(6),s=i(a),l=n(7),c=i(l);t.default=(0,o.default)({name:"crud",mixins:[c.default],inject:["crud"],props:{showColumn:{type:Array,default:function(){return[]}}},data:function(){return{columnBox:!1,defaultProps:{value:"prop"},columnList:[],columnIndex:[]}},watch:{showColumn:function(){this.initData()},columnIndex:function(e){this.crud.refreshTable(),this.crud.$emit("update:showColumn",e)},columnBox:function(e){var t=this;e&&this.crud.isSortable&&this.$nextTick((function(){t.setSort()}))}},created:function(){this.columnInit()},methods:{initData:function(){this.validatenull(this.showColumn)||(this.columnIndex=this.showColumn)},setSort:function(){var e=this;if(window.Sortable){var t=this.$refs.transfer.$el.querySelectorAll(".el-checkbox-group")[1];this.sortable=window.Sortable.create(t,{sort:!0,handle:".el-checkbox",onEnd:function(t){var n=t.oldIndex,i=t.newIndex,r=e.crud.propOption,o=r.splice(n,1)[0];r.splice(i,0,o),e.crud.refreshTable()}})}else s.default.logs("Sortable")},columnInit:function(){var e=this;this.columnIndex=[],this.columnList=[],this.crud.propOption.forEach((function(t,n){if(!1!==t.showColumn){!0!==t.hide&&e.columnIndex.push(t.prop);var i={label:t.label,key:t.prop,index:n};e.columnList.push(e.deepClone(i))}})),this.initData()}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),o=n(7),a=i(o),s=n(1),l=i(s),c=n(13),u=i(c);t.default=(0,l.default)({name:"crud",mixins:[a.default],inject:["crud"],components:{formTemp:u.default},data:function(){return{box:!1,formDefault:{},list:[],columnList:[],dateList:r.dateList,columnProps:{value:"prop"}}},computed:{symbolDic:function(){return[{label:"=",value:"="},{label:"≠",value:"≠"},{label:"like",value:"like"},{label:">",value:">"},{label:"≥",value:"≥"},{label:"<",value:"<"},{label:"≤",value:"≤"},{label:"∈",value:"∈"}]},result:function(){var e=this,t=[];return this.list.forEach((function(n){e.validatenull(n.value)||t.push([n.text,n.symbol,n.value])})),t},columnObj:function(){return this.columnOption[0]},columnOption:function(){return this.crud.propOption}},created:function(){this.getSearchType=r.getSearchType,this.formDefault=(0,r.formInitVal)(this.columnOption).tableForm},methods:{getColumnByIndex:function(e,t){var n=this.deepClone(e);return n.type=(0,r.getSearchType)(n),n.multiple=["checkbox"].includes(e.type),n},handleDelete:function(e){this.list.splice(e,1),this.columnList.splice(e,1)},handleClear:function(){this.list=[],this.columnList=[]},handleValueClear:function(){var e=this;this.list.forEach((function(t,n){e.$set(e.list[n],"value",e.formDefault[t.text])}))},handleGetColumn:function(e){return this.columnOption.find((function(t){return t.prop===e}))},handleSubmit:function(){this.list.push({}),this.list.splice(this.list.length-1,1),this.crud.$emit("filter-change",this.result),this.box=!1},handleChange:function(e,t){var n=this.handleGetColumn(e);this.columnList[t]=n,this.list[t].value=this.formDefault[e]},handleAdd:function(){var e=(this.list.length,this.columnObj.prop),t=this.handleGetColumn(e);this.columnList.push(t),this.list.push({text:e,value:this.formDefault[e],symbol:this.symbolDic[0].value})}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(1),a=i(o),s=n(7),l=i(s),c=n(11),u=i(c);t.default=(0,a.default)({name:"crud",mixins:[l.default],inject:["crud"],data:function(){return{config:u.default,boxType:"",fullscreen:!1,size:null,boxVisible:!1,boxHeight:0,tableForm:{},index:-1}},props:{value:{type:Object,default:function(){return{}}}},watch:{boxVisible:function(e){var t=this;e&&this.$nextTick((function(){t.initFun()}))},value:{handler:function(){this.formVal()},deep:!0},tableForm:{handler:function(){this.$emit("input",this.tableForm)},deep:!0}},computed:{styleName:function(){return{height:this.dialogHeight,overflow:"hidden"}},isView:function(){return"view"===this.boxType},isAdd:function(){return"add"===this.boxType},isEdit:function(){return"edit"===this.boxType},direction:function(){return this.crud.tableOption.dialogDirection},width:function(){return this.vaildData(this.crud.tableOption.dialogWidth+"",this.crud.isMobile?"100%":u.default.dialogWidth+"")},dialogType:function(){return this.isDrawer?"elDrawer":"elDialog"},dialogTop:function(){return this.crud.tableOption.dialogTop||u.default.dialogTop},isDrawer:function(){return"drawer"===this.crud.tableOption.dialogType},dialogHeight:function(){return this.isDrawer?"calc(100% - 100px)":this.crud.tableOption.dialogHeight===u.default.dialogHeight?this.setPx(u.default.clientHeight-3*this.dialogTop):this.setPx(this.crud.tableOption.dialogHeight)},formOption:function(){var e=this,t=this.deepClone(this.crud.tableOption);return t.boxType=this.boxType,t.column=this.deepClone(this.crud.propOption),t.printBtn=!1,t.mockBtn=!1,this.isView?(t.menuBtn=!1,t.detail=!0):(t.menuPosition||(t.menuPosition="right"),this.isAdd?(t.submitBtn=t.saveBtn,t.submitText=this.crud.menuIcon("saveBtn"),t.submitIcon=t.saveBtnIcon||u.default.saveBtnIcon):this.isEdit&&(t.submitBtn=t.updateBtn,t.submitText=this.crud.menuIcon("updateBtn"),t.submitIcon=t.updateBtnIcon||u.default.updateBtnIcon),t.emptyBtn=t.cancelBtn,t.emptyIcon=t.cancelBtnIcon||u.default.cancelBtnIcon,t.emptyText=this.crud.menuIcon("cancelBtn")),this.crud.isGroup||(t.dicFlag=!1,t.dicData=this.crud.DIC),this.validatenull(t.dicFlag)||t.column.forEach((function(n){n.boxType=e.boxType,n.dicFlag=n.dicFlag||t.dicFlag})),t},dialogTitle:function(){var e=""+this.boxType;if(!this.validatenull(this.boxType))return this.crud.tableOption[e+"Title"]||this.t("crud."+e+"Title")}},methods:{handleTabClick:function(e,t){this.crud.$emit("tab-click",e,t)},handleFullScreen:function(){this.isDrawer?this.validatenull(this.size)?this.size="100%":this.size="":this.fullscreen?this.fullscreen=!1:this.fullscreen=!0},handleError:function(e){this.crud.$emit("error",e)},handleSubmit:function(e,t){this.isAdd?this.rowSave(t):this.isEdit&&this.rowUpdate(t)},initFun:function(){var e=this;["clearValidate","validate"].forEach((function(t){e.crud[t]=e.$refs.tableForm[t]}))},formVal:function(){var e=this;Object.keys(this.value).forEach((function(t){e.tableForm[t]=e.value[t]}))},resetForm:function(){this.$refs.tableForm.resetForm(),this.$emit("input",this.tableForm)},rowSave:function(e){this.crud.$emit("row-save",(0,r.filterDefaultParams)(this.tableForm,this.crud.tableOption.translate),this.closeDialog,e)},rowUpdate:function(e){this.crud.tableIndex,this.crud.$emit("row-update",(0,r.filterDefaultParams)(this.tableForm,this.crud.tableOption.translate),this.index,this.closeDialog,e)},closeDialog:function(e,t){var n=this;e&&function(){if(n.isEdit){var i=n.findObject(n.crud.data,e[n.crud.rowKey],n.crud.rowKey);i=Object.assign(i||{},e)}else if(n.isAdd){var r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments[1];n.validatenull(i)?t.push(e):t.splice(i,0,e)};if(n.crud.isTree)if(e.children||(e.children=[]),n.crud.vaildParent(e))r(n.crud.data,t);else{var o=n.findObject(n.crud.data,e[n.crud.rowParentKey],n.crud.rowKey);if(void 0===o)return r(n.crud.data,t);o.children||(o.hasChildren=!0,o.children=[]),r(o.children,t)}else r(n.crud.data,t)}}(),this.hide()},hide:function(e){var t=this,n=function(){e&&e(),t.crud.tableIndex=-1,t.tableForm={},t.$nextTick((function(){t.boxVisible=!1}))};"function"==typeof this.crud.beforeClose?this.crud.beforeClose(n,this.boxType):n()},show:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.index=n,this.boxType=e;var i=function(){t.$nextTick((function(){t.boxVisible=!0}))};"function"==typeof this.crud.beforeOpen?this.crud.beforeOpen(i,this.boxType):i()}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o={img:"img",title:"title",info:"info"};t.default=(0,r.default)({name:"card",props:{props:{type:Object,default:function(){return o}},option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}}},data:function(){return{propsDefault:o}},computed:{imgKey:function(){return this.option.props.img||this.propsDefault.img},titleKey:function(){return this.option.props.title||this.propsDefault.title},infoKey:function(){return this.option.props.info||this.propsDefault.info},span:function(){return this.option.span||8},gutter:function(){return this.option.gutter||20}},methods:{rowAdd:function(){this.$emit("row-add")},rowClick:function(e,t){this.$emit("row-click",e,t)}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(6),s=i(a);t.default=(0,o.default)({name:"code",props:{height:{type:Number,default:200},syntax:{type:String,default:"javascript"}},computed:{styleName:function(){return{height:this.setPx(this.height)}}},mounted:function(){window.hljs?window.hljs&&"function"==typeof window.hljs.highlightBlock&&window.hljs.highlightBlock(this.$refs.container):s.default.logs("hljs")}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r),a=n(14);t.default=(0,o.default)({name:"chat",data:function(){return{upload:{box:!1,src:"",type:"",title:""},visible:!1,imgSrc:"",videoSrc:"",audioSrc:"",keys:"",show:!1,msg:""}},props:{beforeOpen:Function,tools:{type:Object,default:function(){return{img:!0,video:!0,file:!0}}},placeholder:{type:String,default:"请输入..."},width:{type:[String,Number],default:320},height:{type:[String,Number],default:520},value:{type:String},notice:{type:Boolean,default:!0},audio:{type:Array,default:function(){return["https://www.helloweba.net/demo/notifysound/notify.ogg","https://www.helloweba.net/demo/notifysound/notify.mp3","https://www.helloweba.net/demo/notifysound/notify.wav"]}},config:{type:Object,default:function(){return{}}},keylist:{type:Array,default:function(){return[]}},list:{type:Array,default:function(){return[]}}},watch:{"upload.box":function(e){var t=this;e&&this.$nextTick((function(){t.$refs.form.clearValidate()}))},value:{handler:function(){this.msg=this.value},immediate:!0},msg:{handler:function(){this.$emit("input",this.msg)},immediate:!0}},computed:{heightStyleName:function(){return{height:this.setPx(this.height)}},widthStyleName:function(){return{width:this.setPx(this.width)}},msgActive:function(){return!this.validatenull(this.msg.replace(/[\r\n]/g,""))}},methods:{uploadSubmit:function(){var e=this;this.$refs.form.validate((function(t){t&&(e.upload.box=!1,e.$emit("submit",e.getDetail(e.upload)))}))},handleUpload:function(e){this.upload.type=e,this.upload.src="","img"===e?this.upload.title="图片上传":"video"===e?this.upload.title="视频上传":"file"===e&&(this.upload.title="文件上传"),this.upload.box=!0},handleClose:function(e){this.imgSrc=void 0,this.videoSrc=void 0,this.audioSrc=void 0,e()},addKey:function(){""!==this.keys&&(this.$emit("keyadd",this.keys),this.keys=""),this.visible=!1},sendKey:function(e){this.$emit("keysend",e)},getAudio:function(){this.$refs.chatAudio.play()},getNotification:function(e){var t=this,n=Notification||window.Notification;if(n){var i=function(){var n=new Notification(t.config.name,{body:e,icon:t.config.img});n.onshow=function(){t.getAudio(),setTimeout((function(){n.close()}),2500)},n.onclick=function(e){n.close()}},r=n.permission;"granted"===r?i():"denied"===r?console.log("用户拒绝了你!!!"):function(){n.requestPermission((function(e){"granted"===e?i():console.log("用户无情残忍的拒绝了你!!!")}))}()}},pushMsg:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!0===t.mine,r=t.text||{},o=t.date,s={date:o||(0,a.dateFtt)("yyyy-MM-dd hh:mm:ss",new Date),text:function(){return"object"!=(void 0===r?"undefined":i(r))?{text:r}:r}(),mine:n,img:n?this.config.myImg:this.config.img,name:n?this.config.myName:this.config.name};this.list.push(s),setTimeout((function(){e.setScroll()}),50)},setScroll:function(e){var t=this;this.$nextTick((function(){t.$refs.main.scrollTop=e||t.$refs.main.scrollHeight}))},handleSend:function(){this.msgActive&&this.$emit("submit")},handleItemMsg:function(e){this.$emit("submit",e.ask)},handleDetail:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t;return setTimeout((function(){e.$refs.content.forEach((function(t){for(var n=0;n<t.children.length;n++)!function(n){var i=t.children[n];0!=i.getAttribute("data-flag")&&(i.setAttribute("data-flag",0),i.onclick=function(){e.handleEvent(i.dataset)},"IMG"===i.tagName?(i.className="web__msg--img",i.src=i.getAttribute("data-src")):"VIDEO"===i.tagName?(i.className="web__msg--video",i.src=i.getAttribute("data-src")):"AUDIO"===i.tagName?(i.className="web__msg--audio",i.controls="controls",i.src=i.getAttribute("data-src")):"FILE"===i.tagName?(i.className="web__msg--file",i.innerHTML="<h2>File</h2><span>"+i.getAttribute("data-name")+"</span>"):"MAP"===i.tagName&&(i.className="web__msg--file web__msg--map",i.innerHTML="<h2>Map</h2><span>"+i.getAttribute("data-longitude")+" , "+i.getAttribute("data-latitude")+"<br />"+i.getAttribute("data-address")+"</span>"),e.setScroll())}(n)}))}),0),n},getDetail:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=e.src,i=e.name,r=e.longitude,o=e.latitude,a=e.address;return"img"===t?'<img data-type="IMG" data-src="'+n+'" />':"video"===t?'<video data-type="VIDEO" data-src="'+n+'"></video>':"audio"===t?'<audio data-type="AUDIO" data-src="'+n+'"></audio>':"file"===t?'<file data-type="FILE" data-name="'+i+'" data-src="'+n+'"></file>':"map"===t?'<map data-type="MAP" data-src="'+n+'" data-address="'+a+' "data-latitude="'+o+'" data-longitude="'+r+'"></map>':void 0},handleEvent:function(e){var t=this,n=function(){"IMG"===e.type?(t.imgSrc=e.src,t.show=!0):"VIDEO"===e.type?(t.videoSrc=e.src,t.show=!0):"AUDIO"===e.type?(t.audioSrc=e.src,t.show=!0):"FILE"===e.type&&window.open(e.src)};"function"==typeof this.beforeOpen?this.beforeOpen(e,n):n()},rootSendMsg:function(e){this.pushMsg({text:e}),this.notice&&this.getNotification(e.text||e)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o={avatar:"avatar",author:"author",body:"body"};t.default=(0,r.default)({name:"comment",props:{reverse:{type:Boolean,default:!1},data:{type:Object,default:function(){return{}}},props:{type:Object,default:function(){return o}},option:{type:Object,default:function(){return{}}}},computed:{avatarKey:function(){return this.props.avatar||o.avatar},authorKey:function(){return this.props.author||o.author},bodyKey:function(){return this.props.body||o.body},avatar:function(){return this.data[this.avatarKey]},author:function(){return this.data[this.authorKey]},body:function(){return this.data[this.bodyKey]}},mounted:function(){}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),a=i(o),s=n(32),l=n(1),c=i(l),u=n(15),d=i(u),h=n(13),f=i(h),p=n(8),g=n(10),m=n(12),v=n(5),b=n(170),y=i(b),_=n(171),w=i(_);t.default=(0,c.default)({name:"form",mixins:[(0,d.default)(),a.default],components:{formTemp:f.default,formMenu:w.default},data:function(){return{activeName:"",labelWidth:90,allDisabled:!1,optionIndex:[],optionBox:!1,tableOption:{},itemSpanDefault:12,bindList:{},form:{},formList:[],formCreate:!1,formDefault:{},formVal:{}}},provide:function(){return{formSafe:this}},watch:{tabsActive:{handler:function(e){this.activeName=this.tabsActive},immediate:!0},formRules:{handler:function(){this.clearValidate()},deep:!0},form:{handler:function(e){this.formCreate&&this.setVal()},deep:!0},value:{handler:function(e){this.formCreate?this.setForm(e):this.formVal=Object.assign(this.formVal,e||{})},deep:!0,immediate:!0}},computed:{isMenu:function(){return 1!=this.columnOption.length},isDetail:function(){return this.option.detail},isAdd:function(){return"add"===this.boxType},isTabs:function(){return this.parentOption.tabs},isEdit:function(){return"edit"===this.boxType},isView:function(){return"view"===this.boxType},disabled:function(){return this.parentOption.disabled},readonly:function(){return this.parentOption.readonly},tabsType:function(){return this.parentOption.tabsType},columnLen:function(){return this.columnOption.length},dynamicOption:function(){var e=this,t=[];return this.propOption.forEach((function(n){"dynamic"==n.type&&e.vaildDisplay(n)&&t.push(n)})),t},propOption:function(){var e=[];return this.columnOption.forEach((function(t){t.column.forEach((function(t){return e.push(t)}))})),e},parentOption:function(){var e=this.deepClone(this.tableOption),t=e.group;return t||(e=Object.assign(e,{group:[this.deepClone(e)]})),t&&t.unshift({arrow:!1,column:e.column}),e},columnOption:function(){var e=this,t=[].concat(r(this.parentOption.group))||[];return t.forEach((function(t,n){t.column=t.column||[],t.column.forEach((function(t,n){!1===t.display||e.isMobile||(t=(0,g.calcCount)(t,e.itemSpanDefault,0===n))})),t.column=(0,g.calcCascader)(t.column),t.column=t.column.sort((function(e,t){return(t.order||0)-(e.order||0)}))})),t},menuPosition:function(){return this.parentOption.menuPosition?this.parentOption.menuPosition:"center"},boxType:function(){return this.parentOption.boxType},isPrint:function(){return this.vaildData(this.parentOption.printBtn,!1)},tabsActive:function(){return this.vaildData(this.tableOption.tabsActive+"","1")},isMock:function(){return this.vaildData(this.parentOption.mockBtn,!1)}},props:{uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function,reset:{type:Boolean,default:!0},value:{type:Object,required:!0,default:function(){return{}}}},created:function(){var e=this;this.$nextTick((function(){e.dataFormat(),e.setVal(),e.clearValidate(),e.formCreate=!0}))},methods:{getComponent:g.getComponent,getPlaceholder:g.getPlaceholder,getDisabled:function(e){return this.vaildDetail(e)||this.isDetail||this.vaildDisabled(e)||this.allDisabled},getSpan:function(e){return e.span||this.parentOption.span||this.itemSpanDefault},isGroupShow:function(e,t){return!this.isTabs||t==this.activeName||0==t},forEachLabel:function(){var e=this;this.propOption.forEach((function(t){e.handleShowLabel(t,e.DIC[t.prop])}))},handleTabClick:function(e,t){this.$emit("tab-click",e,t)},getLabelWidth:function(e,t){var n=void 0;return n=this.validatenull(e.labelWidth)?this.validatenull(e.labelWidth)?this.parentOption.labelWidth:t.labelWidth:e.labelWidth,this.setPx(n,this.labelWidth)},handleShowLabel:function(e,t){var n=void 0;return this.validatenull(t)||(n=(0,s.detail)(this.form,e,this.tableOption,t),this.$set(this.form,["$"+e.prop],n)),n},validateField:function(e){return this.$refs.form.validateField(e)},getPropRef:function(e){return this.$refs[e][0]},dataFormat:function(){this.formDefault=(0,g.formInitVal)(this.propOption);var e=this.deepClone(this.formDefault.tableForm);this.setForm(this.deepClone(Object.assign(e,this.formVal)))},setVal:function(){this.$emit("input",this.form),this.$emit("change",this.form)},setForm:function(e){var t=this;Object.keys(e).forEach((function(n,i){var r=e[n],o=t.propOption[i]||{},a=o.prop,s=o.bind;s&&!t.bindList[a]?(t.$watch("form."+a,(function(e,n){e!=n&&(0,v.setAsVal)(t.form,s,e)})),t.$watch("form."+s,(function(e,n){e!=n&&t.$set(t.form,a,e)})),t.bindList[a]=!0):t.$set(t.form,n,r)})),this.forEachLabel()},handleChange:function(e,t){var n=this;this.$nextTick((function(){var i=t.cascader,r=i.join(","),o=i[0],a=n.form[t.prop],s=n.findObject(e,o);n.validatenull(i)||n.validatenull(a)||n.validatenull(s)||(n.formList.includes(r)&&i.forEach((function(e){n.form[e]="",n.$set(n.DIC,e,[])})),(0,m.sendDic)({column:s,value:a,form:n.form}).then((function(e){n.formList.includes(r)||n.formList.push(r);var t=Array.isArray(e)?e:[];n.$set(n.DIC,o,t),n.validatenull(t)||n.validatenull(s.cascaderIndex)||!n.validatenull(n.form[o])||(n.form[o]=t[s.cascaderIndex][(s.props||{}).value||p.DIC_PROPS.value])})))}))},handlePrint:function(){this.$Print({html:this.$el.innerHTML})},propChange:function(e,t){t.cascader&&this.handleChange(e,t)},handleMock:function(){var e=this;this.isMock&&(this.columnOption.forEach((function(t){var n=(0,y.default)(t.column,e.DIC,e.form,e.isMock);e.validatenull(n)||(Object.keys(n).forEach((function(t){e.form[t]=n[t]})),e.clearValidate())})),this.$emit("mock-change",this.form))},vaildDetail:function(e){return!!this.detail||(this.validatenull(e.detail)?this.isAdd?this.vaildData(e.addDetail,!1):this.isEdit?this.vaildData(e.editDetail,!1):!!this.isView:this.vaildData(e.detail,!1))},vaildDisabled:function(e){return!!this.disabled||(this.validatenull(e.disabled)?this.isAdd?this.vaildData(e.addDisabled,!1):this.isEdit?this.vaildData(e.editDisabled,!1):!!this.isView:this.vaildData(e.disabled,!1))},vaildDisplay:function(e){return this.validatenull(e.display)?this.isAdd?this.vaildData(e.addDisplay,!0):this.isEdit?this.vaildData(e.editDisplay,!0):!this.isView||this.vaildData(e.viewDisplay,!0):this.vaildData(e.display,!0)},clearValidate:function(e){var t=this;this.$nextTick((function(){t.$refs.form.clearValidate(e)}))},validate:function(e){var t=this;this.$refs.form.validate((function(n){if(n){var i=[],r=[],o=function(){t.validatenull(r)?(t.show(),e(!0,t.hide)):e(!1,r)};t.dynamicOption.forEach((function(e){r.push({field:e.prop,label:e.label,children:{}}),i.push(t.$refs[e.prop][0].$refs.temp.validate())})),Promise.all(i).then((function(e){var n=0;e.forEach((function(e,i){var o=Object.keys(r);if(t.validatenull(e))r.splice(n,1);else{if(n+=1,0==i){var a=Object.keys(e)[0];t.$message.error("【"+r[i].label+"】第"+(Number(a)+1)+"行:"+e[a][0].message)}r[o[i]].children=e}})),o()}))}else e(n,t.hide)}))},resetForm:function(){this.clearValidate(),this.reset&&(this.resetFields(),this.clearVal()),this.$emit("input",this.form),this.$emit("reset-change")},clearVal:function(){this.form=(0,v.clearVal)(this.form)},resetFields:function(){this.$refs.form.resetFields()},show:function(){this.allDisabled=!0},hide:function(){this.allDisabled=!1},submit:function(){var e=this;this.validate((function(t,n){t?e.$emit("submit",(0,v.filterDefaultParams)(e.form,e.parentOption.translate),e.hide):e.$emit("error",n)}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default={form:"1",inject:["formSafe"],mixins:[r.default],computed:{menuSpan:function(){return this.formSafe.parentOption.menuSpan||24},styleName:function(){return 24!==this.menuSpan?{padding:0}:{}}}}},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"checkbox",props:{all:{type:Boolean,default:!1}},mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{checkAll:!1,isIndeterminate:!1,name:"checkbox"}},watch:{dic:function(){this.handleCheckChange(this.text)},text:{handler:function(e){this.handleChange(e),this.handleCheckChange(e)},immediate:!0}},created:function(){},mounted:function(){},methods:{handleCheckAll:function(e){var t=this;this.all&&(this.text=e?this.dic.map((function(e){return e[t.valueKey]})):[],this.isIndeterminate=!1)},handleCheckChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.all){var t=e.length;if(0!==t){var n=this.dic.length;this.checkAll=t===n,this.isIndeterminate=t>0&&t<n}}}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=(n(14),n(3)),s=i(a),l=n(4),c=i(l),u=n(7),d=i(u);t.default=(0,o.default)({name:"date",mixins:[(0,s.default)(),(0,c.default)(),d.default],data:function(){return{text:"",menu:[]}},props:{unlinkPanels:{type:Boolean,default:!1},value:{},startPlaceholder:{type:String,default:"开始日期"},endPlaceholder:{type:String,default:"结束日期"},rangeSeparator:{type:String},defaultValue:{type:[String,Array]},defaultTime:{type:[String,Array]},pickerOptions:{type:Object,default:function(){}},type:{type:String,default:"date"},valueFormat:{},format:{}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o=n(5);t.default=(0,r.default)({name:"draggable",props:{index:{type:[String,Number]},mask:{type:Boolean,default:!0},scale:{type:Number,default:1},readonly:{type:Boolean,default:!1},resize:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},step:{type:Number,default:1},zIndex:{type:[Number,String],default:1},left:{type:Number,default:0},top:{type:Number,default:0},width:{type:Number},height:{type:Number}},data:function(){return{baseWidth:0,baseHeight:0,baseLeft:0,baseTop:0,children:{},moveActive:!1,overActive:!1,rangeActive:!1,active:!1,keydown:null,rangeList:[{classname:"left"},{classname:"right"},{classname:"top"},{classname:"bottom"},{classname:"top-left"},{classname:"top-right"},{classname:"bottom-left"},{classname:"bottom-right"}]}},computed:{scaleVal:function(){return this.scale},styleMenuName:function(){return{transformOrigin:"0 0",transform:"scale("+this.scaleVal+")"}},styleLineName:function(){return{borderWidth:this.setPx(this.scaleVal)}},styleRangeName:function(){var e=10*this.scaleVal;return{width:this.setPx(e),height:this.setPx(e)}},styleLabelName:function(){return{fontSize:this.setPx(18*this.scaleVal)}},styleName:function(){var e=this;return Object.assign(function(){return e.active?Object.assign({zIndex:9999},e.styleLineName):{zIndex:e.zIndex}}(),{top:this.setPx(this.baseTop),left:this.setPx(this.baseLeft),width:this.setPx(this.baseWidth),height:this.setPx(this.baseHeight)})}},watch:{active:function(e){e?this.handleKeydown():document.onkeydown=this.keydown},width:function(e){this.baseWidth=(0,o.getFixed)(e)||this.children.offsetWidth},height:function(e){this.baseHeight=(0,o.getFixed)(e)||this.children.offsetHeight},left:function(e){this.baseLeft=(0,o.getFixed)(e)},top:function(e){this.baseTop=(0,o.getFixed)(e)},baseWidth:function(e){this.$refs.wrapper.style.width=this.setPx(e),this.resize&&this.children.style&&(this.children.style.width=this.setPx(e))},baseHeight:function(e){this.$refs.wrapper.style.height=this.setPx(e),this.resize&&this.children.style&&(this.children.style.height=this.setPx(e))}},mounted:function(){this.init()},methods:{init:function(){this.children=this.$refs.item.firstChild,this.baseWidth=(0,o.getFixed)(this.width)||this.children.offsetWidth,this.baseHeight=(0,o.getFixed)(this.height)||this.children.offsetHeight,this.baseLeft=(0,o.getFixed)(this.left),this.baseTop=(0,o.getFixed)(this.top),this.keydown=document.onkeydown},setLeft:function(e){this.baseLeft=e},setTop:function(e){this.baseTop=e},getRangeStyle:function(e){var t=this,n=10*this.scaleVal/2,i={};return e.split("-").forEach((function(e){i[e]=t.setPx(-n)})),i},setOverActive:function(e){this.overActive=e},setActive:function(e){this.active=e},rangeMove:function(e,t){var n=this;if(!this.disabled){var i=void 0,r=void 0,a=void 0,s=void 0,l=void 0,c=void 0;this.rangeActive=!0,this.handleMouseDown();var u=e.clientX,d=e.clientY;document.onmousemove=function(e){n.moveActive=!0,"right"===t?(i=!0,r=!1):"left"===t?(i=!0,a=!0,l=!0,r=!1):"top"===t?(i=!1,r=!0,s=!0,c=!0):"bottom"===t?(i=!1,r=!0):"bottom-right"===t?(i=!0,r=!0):"bottom-left"===t?(i=!0,r=!0,a=!0,l=!0):"top-right"===t?(i=!0,r=!0,s=!0,c=!0):"top-left"===t&&(i=!0,r=!0,a=!0,l=!0,s=!0,c=!0);var h=e.clientX-u,f=e.clientY-d;if(u=e.clientX,d=e.clientY,i){var p=h*n.step;l&&(p=-p),a&&(n.baseLeft=(0,o.getFixed)(n.baseLeft-p)),n.baseWidth=(0,o.getFixed)(n.baseWidth+p)}if(r){var g=f*n.step;c&&(g=-g),s&&(n.baseTop=(0,o.getFixed)(n.baseTop-g)),n.baseHeight=(0,o.getFixed)(n.baseHeight+g)}},this.handleClear()}},handleOut:function(){this.overActive=!1,this.$emit("out",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleOver:function(){this.disabled||(this.overActive=!0,this.$emit("over",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop}))},handleMove:function(e){var t=this;if(!this.disabled){this.active=!0,this.handleMouseDown();var n=e.clientX,i=e.clientY;document.onmousemove=function(e){var r=e.clientX-n,a=e.clientY-i;n=e.clientX,i=e.clientY,t.baseLeft=(0,o.getFixed)(t.baseLeft+r*t.step),t.baseTop=(0,o.getFixed)(t.baseTop+a*t.step)},this.handleClear()}},handleClear:function(){var e=this;document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,e.handleMouseUp()}},handleKeydown:function(){var e=arguments,t=this;document.onkeydown=function(n){var i=n||window.event||e.callee.caller.arguments[0],r=1*t.step;i&&38==i.keyCode?t.baseTop=(0,o.getFixed)(t.baseTop-r):i&&37==i.keyCode?t.baseLeft=(0,o.getFixed)(t.baseLeft-r):i&&40==i.keyCode?t.baseTop=(0,o.getFixed)(t.baseTop+r):i&&39==i.keyCode&&(t.baseLeft=(0,o.getFixed)(t.baseLeft+r)),n.stopPropagation(),t.$emit("blur",{index:t.index,width:t.baseWidth,height:t.baseHeight,left:t.baseLeft,top:t.baseTop}),t.keydown&&t.keydown(n)}},handleMouseDown:function(e){this.moveActive=!0,this.$emit("focus",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})},handleMouseUp:function(){this.moveActive=!1,this.rangeActive=!1,this.$emit("blur",{index:this.index,width:this.baseWidth,height:this.baseHeight,left:this.baseLeft,top:this.baseTop})}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=(i(a),n(4));i(s),t.default=(0,o.default)({name:"empty",props:{size:{type:String},image:{type:String,default:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTg0IiBoZWlnaHQ9IjE1MiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjQgMzEuNjcpIj4KICAgICAgPGVsbGlwc2UgZmlsbC1vcGFjaXR5PSIuOCIgZmlsbD0iI0Y1RjVGNyIgY3g9IjY3Ljc5NyIgY3k9IjEwNi44OSIgcng9IjY3Ljc5NyIgcnk9IjEyLjY2OCIvPgogICAgICA8cGF0aCBkPSJNMTIyLjAzNCA2OS42NzRMOTguMTA5IDQwLjIyOWMtMS4xNDgtMS4zODYtMi44MjYtMi4yMjUtNC41OTMtMi4yMjVoLTUxLjQ0Yy0xLjc2NiAwLTMuNDQ0LjgzOS00LjU5MiAyLjIyNUwxMy41NiA2OS42NzR2MTUuMzgzaDEwOC40NzVWNjkuNjc0eiIgZmlsbD0iI0FFQjhDMiIvPgogICAgICA8cGF0aCBkPSJNMTAxLjUzNyA4Ni4yMTRMODAuNjMgNjEuMTAyYy0xLjAwMS0xLjIwNy0yLjUwNy0xLjg2Ny00LjA0OC0xLjg2N0gzMS43MjRjLTEuNTQgMC0zLjA0Ny42Ni00LjA0OCAxLjg2N0w2Ljc2OSA4Ni4yMTR2MTMuNzkyaDk0Ljc2OFY4Ni4yMTR6IiBmaWxsPSJ1cmwoI2xpbmVhckdyYWRpZW50LTEpIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxMy41NikiLz4KICAgICAgPHBhdGggZD0iTTMzLjgzIDBoNjcuOTMzYTQgNCAwIDAgMSA0IDR2OTMuMzQ0YTQgNCAwIDAgMS00IDRIMzMuODNhNCA0IDAgMCAxLTQtNFY0YTQgNCAwIDAgMSA0LTR6IiBmaWxsPSIjRjVGNUY3Ii8+CiAgICAgIDxwYXRoIGQ9Ik00Mi42NzggOS45NTNoNTAuMjM3YTIgMiAwIDAgMSAyIDJWMzYuOTFhMiAyIDAgMCAxLTIgMkg0Mi42NzhhMiAyIDAgMCAxLTItMlYxMS45NTNhMiAyIDAgMCAxIDItMnpNNDIuOTQgNDkuNzY3aDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI0SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjR6TTQyLjk0IDYxLjUzaDQ5LjcxM2EyLjI2MiAyLjI2MiAwIDEgMSAwIDQuNTI1SDQyLjk0YTIuMjYyIDIuMjYyIDAgMCAxIDAtNC41MjV6TTEyMS44MTMgMTA1LjAzMmMtLjc3NSAzLjA3MS0zLjQ5NyA1LjM2LTYuNzM1IDUuMzZIMjAuNTE1Yy0zLjIzOCAwLTUuOTYtMi4yOS02LjczNC01LjM2YTcuMzA5IDcuMzA5IDAgMCAxLS4yMjItMS43OVY2OS42NzVoMjYuMzE4YzIuOTA3IDAgNS4yNSAyLjQ0OCA1LjI1IDUuNDJ2LjA0YzAgMi45NzEgMi4zNyA1LjM3IDUuMjc3IDUuMzdoMzQuNzg1YzIuOTA3IDAgNS4yNzctMi40MjEgNS4yNzctNS4zOTNWNzUuMWMwLTIuOTcyIDIuMzQzLTUuNDI2IDUuMjUtNS40MjZoMjYuMzE4djMzLjU2OWMwIC42MTctLjA3NyAxLjIxNi0uMjIxIDEuNzg5eiIgZmlsbD0iI0RDRTBFNiIvPgogICAgPC9nPgogICAgPHBhdGggZD0iTTE0OS4xMjEgMzMuMjkybC02LjgzIDIuNjVhMSAxIDAgMCAxLTEuMzE3LTEuMjNsMS45MzctNi4yMDdjLTIuNTg5LTIuOTQ0LTQuMTA5LTYuNTM0LTQuMTA5LTEwLjQwOEMxMzguODAyIDguMTAyIDE0OC45MiAwIDE2MS40MDIgMCAxNzMuODgxIDAgMTg0IDguMTAyIDE4NCAxOC4wOTdjMCA5Ljk5NS0xMC4xMTggMTguMDk3LTIyLjU5OSAxOC4wOTctNC41MjggMC04Ljc0NC0xLjA2Ni0xMi4yOC0yLjkwMnoiIGZpbGw9IiNEQ0UwRTYiLz4KICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE0OS42NSAxNS4zODMpIiBmaWxsPSIjRkZGIj4KICAgICAgPGVsbGlwc2UgY3g9IjIwLjY1NCIgY3k9IjMuMTY3IiByeD0iMi44NDkiIHJ5PSIyLjgxNSIvPgogICAgICA8cGF0aCBkPSJNNS42OTggNS42M0gwTDIuODk4LjcwNHpNOS4yNTkuNzA0aDQuOTg1VjUuNjNIOS4yNTl6Ii8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"},desc:{type:String,default:"暂无数据"}},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(183),s=i(a),l=n(5);t.default=(0,o.default)({name:"flow",components:{flowNode:s.default},data:function(){return{active:"",jsPlumb:{},id:"",jsplumbSetting:{Anchors:["Top","TopCenter","TopRight","TopLeft","Right","RightMiddle","Bottom","BottomCenter","BottomRight","BottomLeft","Left","LeftMiddle"],Container:"",Connector:"Flowchart",ConnectionsDetachable:!1,DeleteEndpointsOnDetach:!1,Endpoint:["Rectangle",{height:10,width:10}],EndpointStyle:{fill:"rgba(255,255,255,0)",outlineWidth:1},LogEnabled:!0,PaintStyle:{stroke:"black",strokeWidth:3},Overlays:[["Arrow",{width:12,length:12,location:1}]],RenderMode:"svg"},jsplumbConnectOptions:{isSource:!0,isTarget:!0,anchor:"Continuous"},jsplumbSourceOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},jsplumbTargetOptions:{filter:".avue-flow__node-drag",filterExclude:!1,anchor:"Continuous",allowLoopback:!1},loadEasyFlowFinish:!1}},props:{value:{type:String},option:{type:Object},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"}},watch:{value:{handler:function(){this.active=this.value},immediate:!0},active:function(e){this.$emit("input",e)}},created:function(){this.id=(0,l.randomId)(),this.jsplumbSetting.Container=this.id},mounted:function(){this.init()},computed:{styleName:function(){return{position:"relative",width:this.setPx(this.width),height:this.setPx(this.height)}}},methods:{init:function(){var e=this;this.jsPlumb=jsPlumb.getInstance(),this.$nextTick((function(){e.jsPlumbInit()}))},handleClick:function(e){this.$emit("click",e)},hasLine:function(e,t){for(var n=0;n<this.data.lineList.length;n++){var i=this.data.lineList[n];if(i.from===e&&i.to===t)return!0}return!1},hashOppositeLine:function(e,t){return this.hasLine(t,e)},deleteLine:function(e,t){this.option.lineList=this.option.lineList.filter((function(n){return n.from!==e&&n.to!==t}))},changeLine:function(e,t){this.deleteLine(e,t)},changeNodeSite:function(e){for(var t=e.index,n=e.left,i=e.top,r=0;r<this.option.nodeList.length;r++)this.option.nodeList[r],r===t&&(this.$set(this.option.nodeList[r],"left",n),this.$set(this.option.nodeList[r],"top",i))},deleteNode:function(e){var t=this;return this.$confirm("确定要删除节点"+e+"?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",closeOnClickModal:!1}).then((function(){t.option.nodeList.forEach((function(t){t.id===e&&(t.display=!0)})),t.$nextTick((function(){this.jsPlumb.removeAllEndpoints(e)}))})).catch((function(){})),!0},addNode:function(e){var t=this.option.nodeList.length,n="node"+t;this.option.nodeList.push({id:"node"+t,name:e,left:0,top:0}),this.$nextTick((function(){this.jsPlumb.makeSource(n,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(n,this.jsplumbTargetOptions),this.jsPlumb.draggable(n,{containment:"parent"})}))},loadEasyFlow:function(){for(var e=0;e<this.option.nodeList.length;e++){var t=this.option.nodeList[e];this.jsPlumb.makeSource(t.id,this.jsplumbSourceOptions),this.jsPlumb.makeTarget(t.id,this.jsplumbTargetOptions),this.jsPlumb.draggable(t.id)}for(e=0;e<this.option.lineList.length;e++){var n=this.option.lineList[e];this.jsPlumb.connect({source:n.from,target:n.to},this.jsplumbConnectOptions)}this.$nextTick((function(){this.loadEasyFlowFinish=!0}))},jsPlumbInit:function(){var e=this;this.jsPlumb.ready((function(){e.jsPlumb.importDefaults(e.jsplumbSetting),e.jsPlumb.setSuspendDrawing(!1,!0),e.loadEasyFlow(),e.jsPlumb.bind("click",(function(t,n){console.log("click",t),e.$confirm("确定删除所点击的线吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.jsPlumb.deleteConnection(t)})).catch((function(){}))})),e.jsPlumb.bind("connection",(function(t){console.log("connection",t);var n=t.source.id,i=t.target.id;e.loadEasyFlowFinish&&e.option.lineList.push({from:n,to:i})})),e.jsPlumb.bind("connectionDetached",(function(t){console.log("connectionDetached",t),e.deleteLine(t.sourceId,t.targetId)})),e.jsPlumb.bind("connectionMoved",(function(t){console.log("connectionMoved",t),e.changeLine(t.originalSourceId,t.originalTargetId)})),e.jsPlumb.bind("contextmenu",(function(e){console.log("contextmenu",e)})),e.jsPlumb.bind("beforeDrop",(function(t){console.log("beforeDrop",t);var n=t.sourceId,i=t.targetId;return n===i?(e.$message.error("不能连接自己"),!1):e.hasLine(n,i)?(e.$message.error("不能重复连线"),!1):!e.hashOppositeLine(n,i)||(e.$message.error("不能回环哦"),!1)})),e.jsPlumb.bind("beforeDetach",(function(e){console.log("beforeDetach",e)}))}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"flow",props:{active:[String,Number],index:[String,Number],node:Object},data:function(){return{mouseEnter:!1}},computed:{flowNodeContainer:{get:function(){return{position:"absolute",width:"200px",top:this.setPx(this.node.top),left:this.setPx(this.node.left),boxShadow:this.mouseEnter?"#66a6e0 0px 0px 12px 0px":"",backgroundColor:"transparent"}}}},methods:{showDelete:function(){this.mouseEnter=!0},hideDelete:function(){this.mouseEnter=!1},changeNodeSite:function(){this.node.left==this.$refs.node.style.left&&this.node.top==this.$refs.node.style.top||this.$emit("changeNodeSite",{index:this.index,left:Number(this.$refs.node.style.left.replace("px","")),top:Number(this.$refs.node.style.top.replace("px",""))})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o={img:"img",title:"title",subtile:"title",tag:"tag",status:"status"};t.default=(0,r.default)({name:"notice",props:{option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}}},data:function(){return{page:1,loading:!1}},computed:{props:function(){return this.option.props||o},imgKey:function(){return this.props.img||o.img},titleKey:function(){return this.props.title||o.title},subtitleKey:function(){return this.props.subtitle||o.subtitle},tagKey:function(){return this.props.tag||o.tag},statusKey:function(){return this.props.status||o.status}},methods:{click:function(e){this.$emit("click",e)},handleClick:function(){var e=this;this.loading=!0;var t=function(){e.loading=!1};this.page++,this.$emit("page-change",this.page,t)},getType:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return 0==e?"info":1==e?"":2==e?"warning":3==e?"danger":4==e?"success":void 0}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o=n(5);t.default=(0,r.default)({name:"license",props:{id:{type:String,default:""},option:{type:Object,default:function(){return{}}}},watch:{option:{handler:function(){this.init()},deep:!0}},data:function(){return{base64:"",draw:!1,canvas:"",context:""}},computed:{img:function(){return this.option.img},list:function(){return this.option.list||[]}},mounted:function(){this.canvas=document.getElementById("canvas"+this.id),this.context=this.canvas.getContext("2d"),this.init()},methods:{init:function(){var e=this;this.draw=!1;var t=new Image;t.src=this.img,t.onload=function(){var n=e.option.width||t.width,i=e.option.width?t.height/t.width*e.option.width:t.height;e.$refs.canvas.width=n,e.$refs.canvas.height=i,e.context.clearRect(0,0,n,i),e.context.drawImage(t,0,0,n,i),e.list.forEach((function(t,n){var i=function(){n==e.list.length-1&&setTimeout((function(){e.draw=!0}),0)};if(t.img){var r=new Image;r.src=t.img,r.onload=function(){var n=t.width||r.width,o=t.width?r.height/r.width*t.width:r.height;e.context.drawImage(r,t.left,t.top,n,o),i()}}else t.bold?e.context.font="bold "+t.size+"px "+t.style:e.context.font=t.size+"px "+t.style,e.context.fillStyle=t.color,e.context.fillText(t.text,t.left,t.top),e.context.stroke(),i()}))}},getFile:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();return new Promise((function(n){var i=setInterval((function(){if(e.draw){var r=e.canvas.toDataURL("image/jpeg",1),o=e.dataURLtoFile(r,t);clearInterval(i),n(o)}}),1e3)}))},downFile:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();(0,o.downFile)(this.base64,e)},getBase64:function(){var e=this;return new Promise((function(t){var n=setInterval((function(){if(e.draw){var i=e.canvas.toDataURL("image/jpeg",1);e.base64=i,clearInterval(n),t(i)}}),100)}))},getPdf:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime(),t=this.canvas.width,n=this.canvas.height,i=t/592.28*841.89,r=n,o=0,a=592.28/t*n,s=this.canvas.toDataURL("image/jpeg",1),l=new window.jsPDF("","pt","a4");if(r<i)l.addImage(s,"JPEG",0,0,595.28,a);else for(;r>0;)l.addImage(s,"JPEG",0,o,595.28,a),r-=i,o-=841.89,r>0&&l.addPage();l.save(e+".pdf")}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"progress",props:{showText:{type:Boolean},width:{type:[Number,String]},strokeWidth:{type:[Number,String]},type:{type:String},color:{type:String},percentage:{type:[Number]}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l),u=n(7),d=i(u);t.default=(0,o.default)({name:"time",mixins:[(0,s.default)(),(0,c.default)(),d.default],data:function(){return{}},props:{startPlaceholder:{type:String,default:"开始时间"},endPlaceholder:{type:String,default:"结束时间"},rangeSeparator:{type:String},value:{required:!0},defaultValue:{type:[String,Array]},valueFormat:{default:""},arrowControl:{type:Boolean,default:!1},type:{default:""},format:{default:""}},watch:{text:function(){Array.isArray(this.text)&&this.validatenull(this.text)&&(this.text=this.text.join(","))}},created:function(){},mounted:function(){},computed:{isRange:function(){return"timerange"===this.type}},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(1),s=i(a),l=n(3),c=i(l),u=n(4),d=i(u);n(9),t.default=(0,s.default)({name:"input",mixins:[(0,c.default)(),(0,d.default)()],data:function(){return{}},props:(o={value:{},maxlength:"",minlength:"",showPassword:{type:Boolean,default:!0},showWordLimit:{type:Boolean,default:!1},target:{type:String,default:" _blank"},prefixIcon:{type:String},suffixIcon:{type:String},prependClick:{type:Function,default:function(){}},prepend:{type:String},appendClick:{type:Function,default:function(){}},append:{type:String}},r(o,"minlength",{type:Number}),r(o,"maxlength",{type:Number}),r(o,"minRows",{type:Number,default:5}),r(o,"maxRows",{type:Number,default:10}),r(o,"autocomplete",{type:String}),o),computed:{isSearch:function(){return"search"==this.type},typeParam:function(){return"textarea"===this.type?"textarea":"password"===this.type?"password":"text"}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"radio",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{name:"radio"}},props:{value:{}},watch:{},created:function(){},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=i(r),a=n(1),s=i(a),l=n(3),c=i(l),u=n(4),d=i(u),h=n(12);t.default=(0,s.default)({name:"select",mixins:[(0,c.default)(),(0,d.default)()],data:function(){return{created:!1,netDic:[],loading:!1}},props:{value:{},loadingText:{type:String},noMatchText:{type:String},noDataText:{type:String},drag:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},tags:{type:Boolean,default:!1},limit:{type:Number,default:99},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},defaultFirstOption:{type:Boolean,default:!1}},watch:{value:function(e){this.validatenull(e)||this.remote&&!this.created&&(this.created=!0,this.handleRemoteMethod(this.multiple?this.text.join(","):this.text))},dic:{handler:function(e){this.netDic=e},immediate:!0}},created:function(){},mounted:function(){this.drag&&this.setSort()},methods:{setSort:function(){var e=this;if(window.Sortable){var t=this.$refs.main.$el.querySelectorAll(".el-select__tags > span")[0];this.sortable=window.Sortable.create(t,{ghostClass:"sortable-ghost",setData:function(e){e.setData("Text","")},onEnd:function(t){var n=e.value.splice(t.oldIndex,1)[0];e.value.splice(t.newIndex,0,n)}})}else o.default.logs("Sortable")},handleRemoteMethod:function(e){var t=this;this.loading=!0,(0,h.sendDic)({column:this.column,value:e}).then((function(e){t.loading=!1,t.netDic=e}))}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o,a=n(1),s=i(a),l=n(3),c=i(l),u=n(4),d=i(u);t.default=(0,s.default)({name:"cascader",mixins:[(0,c.default)(),(0,d.default)()],props:(o={checkStrictly:{type:Boolean,default:!1},emitPath:{type:Boolean,default:!0},tags:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}},changeOnSelect:{type:Boolean,default:!1},expandTrigger:{type:String,default:"hover"},showAllLevels:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},lazyLoad:Function,filterable:{type:Boolean,default:!1}},r(o,"expandTrigger",{type:String,default:"click"}),r(o,"separator",{type:String}),o),data:function(){return{}},watch:{},computed:{allProps:function(){var e=this;return{label:this.labelKey,value:this.valueKey,children:this.childrenKey,checkStrictly:this.checkStrictly,multiple:this.multiple,lazy:this.lazy,lazyLoad:function(t,n){var i=function(i){!function t(n,i,r){n.forEach((function(n){n[e.valueKey]==i?n[e.childrenKey]=r:n[e.childrenKey]&&t(n[e.childrenKey])}))}(e.dic,t[e.valueKey],i),n(i)};e.lazyLoad&&e.lazyLoad(t,i)},expandTrigger:this.expandTrigger}}},created:function(){},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"input-color",mixins:[(0,s.default)(),(0,c.default)()],props:{iconList:{type:Array,default:function(){return[]}}},data:function(){return{predefineColors:["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgba(255, 69, 0, 0.68)","rgb(255, 120, 0)","hsv(51, 100, 98)","hsva(120, 40, 94, 0.5)","hsl(181, 100%, 37%)","hsla(209, 100%, 56%, 0.73)","#c7158577"]}},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"input-number",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{}},props:{controls:{type:Boolean,default:!0},step:{type:Number,default:1},controlsPosition:{type:String,default:"right"},precision:{type:Number},minRows:{type:Number,default:-1/0},maxRows:{type:Number,default:1/0}},created:function(){},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l),u=n(8),d=n(5);t.default=(0,o.default)({name:"input-tree",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{node:[],filterText:"",box:!1,labelText:[]}},props:{nodeClick:Function,treeLoad:Function,checked:Function,value:{},lazy:{type:Boolean,default:!1},leafOnly:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},filter:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:!1},accordion:{type:Boolean,default:!1},parent:{type:Boolean,default:!0},defaultExpandedKeys:{type:Array},iconClass:{type:String},defaultCheckedKeys:{type:Array},defaultExpandAll:{type:Boolean,default:!1}},watch:{text:{handler:function(e){this.validatenull(e)&&this.clearHandle()}},dic:function(){this.init()},value:function(){this.initVal(),this.init()},filterText:function(e){this.$refs.tree.filter(e)}},computed:{treeProps:function(){return Object.assign(this.props,{isLeaf:this.leafKey})},dicList:function(){function e(t,n){t.forEach((function(t){var i=t.children;i&&e(i,t),n&&(t.$parent=n)}))}var t=this.dic;return e(t),t},keysList:function(){var e=this;if(this.validatenull(this.text))return[];var t=[];return Array.isArray(this.text)?t=this.text:(t=(this.text+"").split(this.separator),t=t.map((function(t){return(0,d.detailDataType)(t,e.dataType)}))),t},labelShow:function(){var e=this;if(this.typeformat){var t=[];return this.node.forEach((function(n){t.push(e.getLabelText(n))})),t.join(u.DIC_SHOW_SPLIT).toString()}return(this.labelText||[]).join(u.DIC_SHOW_SPLIT).toString()}},mounted:function(){this.init()},methods:{handleTreeLoad:function(e,t){var n=this,i=function(i){!function e(t,i,r){t.forEach((function(t){t[n.valueKey]==i?t[n.childrenKey]=r:t[n.childrenKey]&&e(t[n.childrenKey])}))}(n.dic,e.key,i),t(i)};this.treeLoad&&this.treeLoad(e,i)},initScroll:function(e){var t=this;setTimeout((function(){t.$nextTick((function(){document.querySelectorAll(".el-scrollbar .el-select-dropdown__wrap").forEach((function(e){e.scrollTop=0}))}))}),0),this.handleClick(e)},filterNode:function(e,t){return!e||-1!==t[this.labelKey].indexOf(e)},checkChange:function(e,t,n,i){var r=this;this.text=[],this.node=[],this.labelText=[],this.$refs.tree.getCheckedNodes(this.leafOnly,!1).forEach((function(e){r.node.push(e),r.text.push(e[r.valueKey]),r.labelText.push(e[r.labelKey])})),"function"==typeof this.checked&&this.checked(e)},getHalfList:function(){var e=this,t=this.$refs.tree.getCheckedNodes(!1,!0);return t.map((function(t){return t[e.valueKey]}))},init:function(){var e=this;this.$nextTick((function(){if(e.labelText=[],e.node=[],e.multiple)e.$refs.tree.getCheckedNodes(e.leafOnly,!1).forEach((function(t){e.labelText.push(t[e.labelKey]),e.node.push(t)}));else{var t=e.$refs.tree.getNode(e.text);if(t){var n=t.data;e.$refs.tree.setCurrentKey(n[e.valueKey]),e.labelText.push(n[e.labelKey]),e.node.push(n)}}})),this.disabledParentNode(this.dic,this.parent)},disabledParentNode:function(e,t){var n=this;e.forEach((function(e){var i=e[n.childrenKey];n.validatenull(i)||(t||(e.disabled=!0),n.disabledParentNode(i,t))}))},clearHandle:function(){this.$refs.tree.setCurrentKey(null),this.$refs.tree.setCheckedKeys([])},handleNodeClick:function(e){if(!e.disabled&&("function"==typeof this.nodeClick&&this.nodeClick(e),!this.multiple&&(this.validatenull(e[this.childrenKey])&&!this.multiple||this.parent))){var t=e[this.valueKey],n=e[this.labelKey];this.text=t,this.node=[e],this.labelText=[n],this.$refs.main.blur()}}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=i(r),a=n(1),s=i(a),l=n(3),c=i(l),u=n(4),d=i(u);t.default=(0,s.default)({name:"input-map",mixins:[(0,c.default)(),(0,d.default)()],data:function(){return{formattedAddress:"",address:"",poi:{},marker:null,map:null,box:!1}},watch:{poi:function(e){this.formattedAddress=e.formattedAddress},value:function(e){this.validatenull(e)&&(this.poi={})},text:function(e){this.validatenull(e)||(this.poi={longitude:e[0],latitude:e[1],formattedAddress:e[2]},this.address=e[2])},box:{handler:function(){var e=this;this.box&&this.$nextTick((function(){return e.init((function(){e.longitude&&e.latitude&&(e.addMarker(e.longitude,e.latitude),e.getAddress(e.longitude,e.latitude))}))}))},immediate:!0}},computed:{longitude:function(){return this.text[0]},latitude:function(){return this.text[1]},title:function(){return this.disabled||this.readonly?"查看":"选择"}},methods:{clear:function(){this.poi={},this.clearMarker()},handleSubmit:function(){this.setVal(),this.box=!1},handleClear:function(){this.text=[],this.poi={},this.handleChange(this.text)},setVal:function(){this.text=[this.poi.longitude,this.poi.latitude,this.poi.formattedAddress],this.handleChange(this.text)},handleShow:function(){this.$refs.main.blur(),this.box=!0},addMarker:function(e,t){this.clearMarker(),this.marker=new window.AMap.Marker({position:[e,t]}),this.marker.setMap(this.map)},clearMarker:function(){this.marker&&(this.marker.setMap(null),this.marker=null)},getAddress:function(e,t){var n=this;new window.AMap.service("AMap.Geocoder",(function(){new window.AMap.Geocoder({}).getAddress([e,t],(function(i,r){if("complete"===i&&"OK"===r.info){var o=r.regeocode;n.poi=Object.assign(o,{longitude:e,latitude:t});var a=document.createElement("div"),s=document.createElement("img");s.src="//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png",a.appendChild(s);var l=document.createElement("span");l.className="avue-input-map__marker",l.innerHTML=n.formattedAddress,a.appendChild(l),n.marker.setContent(a)}}))}))},handleClose:function(){window.poiPicker.clearSearchResults()},addClick:function(){var e=this;this.map.on("click",(function(t){if(!e.disabled&&!e.readonly){var n=t.lnglat,i=n.P||n.Q,r=n.R;e.addMarker(r,i),e.getAddress(r,i)}}))},init:function(e){var t=this;window.AMap?(this.map=new window.AMap.Map("map__container",Object.assign({zoom:13,center:function(){if(t.longitude&&t.latitude)return[t.longitude,t.latitude]}()},this.params)),this.initPoip(),this.addClick(),e()):o.default.logs("Map")},initPoip:function(){var e=this;window.AMapUI?window.AMapUI.loadUI(["misc/PoiPicker"],(function(t){var n=new t({input:"map__input",placeSearchOptions:{map:e.map,pageSize:10},searchResultsContainer:"map__result"});e.poiPickerReady(n)})):o.default.logs("MapUi")},poiPickerReady:function(e){var t=this;window.poiPicker=e,e.on("poiPicked",(function(n){t.clearMarker();var i=n.source,r=n.item;t.poi=Object.assign(r,{formattedAddress:r.name,longitude:r.location.R,latitude:r.location.P||r.location.Q}),"search"!==i&&e.searchByKeyword(r.name)}))}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"input-icon",mixins:[(0,s.default)(),(0,c.default)()],props:{iconList:{type:Array,default:function(){return[]}}},data:function(){return{box:!1,tabs:{}}},computed:{list:function(){return(this.tabs.list||[]).map((function(e){return e.value?e:{value:e}}))},option:function(){return{column:this.iconList}}},created:function(){this.tabs=this.iconList[0]||{}},methods:{handleTabs:function(e){this.tabs=e},handleSubmit:function(e){this.box=!1,this.text=e,this.handleChange(e)},handleShow:function(){this.$refs.main.blur(),this.disabled||this.readonly||(this.box=!0)}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"input-table",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{object:{},active:{},page:{},box:!1,created:!1,data:[]}},props:{formatter:Function,onLoad:Function},watch:{value:function(e){this.validatenull(e)&&(this.active={},this.object={})},box:function(e){var t=this;e&&setTimeout((function(){var e=t.data.find((function(e){return e[t.valueKey]==t.object[t.valueKey]}));t.$refs.crud.setCurrentRow(e)}))},text:function(e){var t=this;this.create||this.validatenull(e)||"function"==typeof this.onLoad&&this.onLoad({value:this.text},(function(e){t.active=e,t.object=e,t.create=!0}))}},computed:{title:function(){return this.disabled||this.readonly?"查看":"选择"},labelShow:function(){return"function"==typeof this.formatter?this.formatter(this.object):this.object[this.labelKey]||""},option:function(){return Object.assign({menu:!1,header:!1,size:"mini",headerAlign:"center",align:"center",highlightCurrentRow:!0},this.column.children)}},methods:{handleClear:function(){this.active={},this.setVal()},handleShow:function(){this.$refs.main.blur(),this.disabled||this.readonly||(this.box=!0)},setVal:function(){this.object=this.active,this.text=this.active[this.valueKey]||"",this.handleChange(this.text),this.box=!1},handleCurrentRowChange:function(e){this.active=e},handleSearchChange:function(e,t){var n=this;this.onLoad({page:this.page,data:e},(function(e){n.page.total=e.total,n.data=e.data})),t&&t()},onList:function(e){var t=this;"function"==typeof this.onLoad&&this.onLoad({page:this.page},(function(e){t.page.total=e.total,t.data=e.data}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"verify",props:{size:{type:[Number,String],default:50},value:[Number,String],len:{type:[Number,String],default:6}},computed:{styleName:function(){return{padding:this.setPx(this.size/7)+" "+this.setPx(this.size/4),fontSize:this.setPx(this.size)}},list:function(){return this.data.split("")}},watch:{value:{handler:function(e){this.validatenull(e)?this.randomn():this.data=e+""},immediate:!0},data:{handler:function(e){this.$emit("input",e)},immediate:!0}},data:function(){return{data:0}},methods:{randomn:function(){var e=this.len;if(e>21)return null;var t=new RegExp("(\\d{"+e+"})(\\.|$)"),n=(Array(e-1).join(0)+Math.pow(10,e)*Math.random()).match(t)[1];this.data=n}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"switch",mixins:[(0,s.default)(),(0,c.default)()],props:{value:{},activeIconClass:String,inactiveIconClass:String,activeColor:String,inactiveColor:String,len:Number},data:function(){return{}},watch:{},created:function(){},mounted:function(){},computed:{active:function(){return this.dic[1]||{}},inactive:function(){return this.dic[0]||{}}},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"rate",mixins:[(0,s.default)(),(0,c.default)()],props:{value:{type:Number,default:0},colors:{type:Array},max:{type:Number,default:5},iconClasses:{type:Array},texts:{type:Array},showText:{type:Boolean,default:!1},voidIconClass:{type:String}},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l),u=n(7),d=i(u),h=n(5),f=n(67),p=n(222),g=n(223),m=n(6),v=i(m);t.default=(0,o.default)({name:"upload",mixins:[(0,s.default)(),(0,c.default)(),d.default],data:function(){return{res:"",menu:!1,loading:!1,text:[],file:{}}},props:{data:{type:Object,default:function(){return{}}},preview:{type:Object,default:function(){}},value:{},onRemove:Function,showFileList:{type:Boolean,default:!0},oss:{type:String},limit:{type:Number,default:10},headers:{type:Object,default:function(){return{}}},accept:{type:[String,Array],default:""},canvasOption:{type:Object,default:function(){return{}}},fileSize:{type:Number},drag:{type:Boolean,default:!1},isVideo:{type:Boolean,default:!1},loadText:{type:String,default:"文件上传中,请稍等"},action:{type:String,default:""},uploadBefore:Function,uploadAfter:Function,uploadDelete:Function,uploadPreview:Function,uploadError:Function,uploadExceed:Function},computed:{acceptList:function(){return Array.isArray(this.accept)?this.accept.join(","):this.accept},homeUrl:function(){return this.propsHttp.home||""},allParams:function(){return this.$typeList.video.test(this.imgUrl)||this.isVideo?Object.assign({is:"video"},this.params):this.params},fileName:function(){return this.propsHttp.fileName||"file"},isAliOss:function(){return"ali"===this.oss},isQiniuOss:function(){return"qiniu"===this.oss},isPictureImg:function(){return"picture-img"===this.listType},imgUrl:function(){if(!this.validatenull(this.text))return this.homeUrl+this.text[0]},fileList:function(){var e=this,t=[],n=this.isArray||this.isString||this.stringMode;return(this.text||[]).forEach((function(i,r){if(i){var o=void 0;if(n){var a=i.lastIndexOf("/");o=i.substring(a+1)}t.push({uid:r+"",status:"done",name:n?o:i[e.labelKey],url:e.homeUrl+(n?i:i[e.valueKey])})}})),t}},created:function(){},watch:{},mounted:function(){},methods:{handleClick:function(){"function"==typeof this.click&&this.click({value:this.text,column:this.column})},handleFileChange:function(e,t){t.splice(t.length-1,1),"function"==typeof this.change&&this.change({value:this.text,column:this.column})},handleSuccess:function(e){if(this.isPictureImg)this.text.splice(0,1,e[this.urlKey]);else if(this.isArray||this.isString||this.stringMode)this.text.push(e[this.urlKey]);else{var t={};t[this.labelKey]=e[this.nameKey],t[this.valueKey]=e[this.urlKey],this.text.push(t)}},handleRemove:function(e,t){this.onRemove&&this.onRemove(e,t),this.delete(e)},handleError:function(e){this.uploadError&&this.uploadError(e,this.column)},delete:function(e){var t=this;this.isArray||this.isString||this.stringMode?(this.text||[]).forEach((function(n,i){n===e.url&&t.text.splice(i,1)})):(this.text||[]).forEach((function(n,i){n[t.valueKey]===e.url&&t.text.splice(i,1)}))},show:function(e){this.loading=!1,this.handleSuccess(e||this.res)},hide:function(e){this.loading=!1,this.handleError(e)},httpRequest:function(e){var t=this;this.loading=!0;var n=e.file,i=n.size;if(this.file=e.file,!this.validatenull(i)&&i>this.fileSize)this.hide("文件太大不符合");else{var r=Object.assign(this.headers,{"Content-Type":"multipart/form-data"}),o={},a={},s=new FormData;for(var l in this.data)s.append(l,this.data[l]);var c=function(){var e=t.action,i=function(i){var l=i||n;if(s.append(t.fileName,l),t.isQiniuOss){if(!window.CryptoJS)return v.default.logs("CryptoJS"),void t.hide();o=t.$AVUE.qiniu;var c=(0,p.getToken)(o.AK,o.SK,{scope:o.scope,deadline:(new Date).getTime()+3600*o.deadline});s.append("token",c),e=o.bucket}else if(t.isAliOss){if(!window.OSS)return v.default.logs("AliOSS"),void t.hide();o=t.$AVUE.ali,a=(0,g.getClient)(o)}(function(){return t.isAliOss?a.put(l.name,l):window.axios?t.$axios.post(e,s,{headers:r}):(v.default.logs("axios"),Promise.reject())})().then((function(e){t.res={},t.isQiniuOss&&(e.data.key=o.url+e.data.key),t.isAliOss?t.res=(0,h.getAsVal)(e,t.resKey):t.res=(0,h.getAsVal)(e.data,t.resKey),"function"==typeof t.uploadAfter?t.uploadAfter(t.res,t.show,(function(){t.loading=!1}),t.column):t.show(t.res)})).catch((function(e){"function"==typeof t.uploadAfter?t.uploadAfter(e,t.hide,(function(){t.loading=!1}),t.column):t.hide(e)}))};"function"==typeof t.uploadBefore?t.uploadBefore(t.file,i,(function(){t.loading=!1}),t.column):i()};this.validatenull(this.canvasOption)?c():(0,f.detailImg)(n,this.canvasOption).then((function(e){n=e,c()}))}},handleExceed:function(e,t){this.uploadExceed&&this.uploadExceed(this.limit,e,t,this.column)},handlePreview:function(e){var t=this,n=function(){var n=e.url,i=t.fileList.map((function(e){return Object.assign(e,{type:t.$typeList.video.test(e.url)||t.isVideo?"video":""})})),r=t.fileList.findIndex((function(e){return e.url===n}));t.$ImagePreview(i,r)};"function"==typeof this.uploadPreview?this.uploadPreview(e,this.column,n):n()},handleDelete:function(e){var t=this;this.beforeRemove(e).then((function(){t.text=[],t.menu=!1})).catch((function(){}))},beforeRemove:function(e){return"function"==typeof this.uploadDelete?this.uploadDelete(e,this.column):Promise.resolve()}}})},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){function a(t){var i=new Image;i.src=t,i.onload=function(){var t=i.width,r=i.height;s(t,r),o.drawImage(i,0,0,t,r),d(t,r),n((0,l.dataURLtoFile)(document.getElementById("canvas").toDataURL(e.type,u.ratio),e.name))}}function s(e,t){r=document.getElementById("canvas"),null===r&&(r=document.createElement("canvas"),r.id="canvas",r.className="avue-canvas",document.body.appendChild(r)),o=r.getContext("2d"),r.width=e,r.height=t}function d(e,t){var n=u.text,i=h(n,e,t);o.font=i.fontSize+"px "+u.fontFamily,o.fillStyle=u.color,o.globalAlpha=u.opacity/100,o.fillText(n,i.x,i.y)}function h(e,t,n){var i,r,a=u.fontSize/c.width,s=a*t;r=u.bottom?c.height-u.bottom:u.top,i=u.right?c.width-u.right:u.left,o.font=u.fontSize+"px "+u.fontFamily,i-=Number(o.measureText(e).width);var l=i/c.width,d=r/c.height;return i=l*t,r=d*n,{x:i,y:r,fontSize:s}}var f=t.text,p=t.fontFamily,g=t.color,m=t.fontSize,v=t.opacity,b=t.bottom,y=t.right,_=t.ratio;!function(){u.text=f||u.text,u.fontFamily=p||u.fontFamily,u.color=g||u.color,u.fontSize=m||u.fontSize,u.opacity=v||u.opacity,u.bottom=b||u.bottom,u.right=y||u.right,u.ratio=_||u.ratio}(),function(e,t){var n=new FileReader;n.readAsDataURL(e),n.onload=function(e){t(e.target.result)}}(e,a)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.watermark=void 0,t.detailImg=i;var r,o,a=n(221),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=n(5),c={width:200,height:200},u={text:"avue.top",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1};t.watermark=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new s.default(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"sign",props:{width:{type:Number,default:600},height:{type:Number,default:400}},data:function(){return{linex:[],liney:[],linen:[],canvas:{},context:{}}},computed:{styleName:function(){return{width:this.setPx(this.width),height:this.setPx(this.height)}}},mounted:function(){this.init()},methods:{getStar:function(e,t,n){var i=this.canvas,r=this.context,o=i.width/2,a=i.height/2;r.lineWidth=7,r.strokeStyle="#f00",r.beginPath(),r.arc(o,a,110,0,2*Math.PI),r.stroke(),function(e,t,n,i,r,o){e.save(),e.fillStyle=r,e.translate(t,n),e.rotate(Math.PI+o),e.beginPath();for(var a=Math.sin(0),s=Math.cos(0),l=Math.PI/5*4,c=0;c<5;c++){a=Math.sin(c*l),s=Math.cos(c*l);e.lineTo(a*i,s*i)}e.closePath(),e.stroke(),e.fill(),e.restore()}(r,o,a,20,"#f00",0),r.font="18px 黑体",r.textBaseline="middle",r.textAlign="center",r.lineWidth=1,r.strokeStyle="#f00",r.strokeText(e,o,a+50),r.font="14px 黑体",r.textBaseline="middle",r.textAlign="center",r.lineWidth=1,r.strokeStyle="#f00",r.strokeText(n,o,a+80),r.translate(o,a),r.font="22px 黑体";for(var s,l=t.length,c=4*Math.PI/(3*(l-1)),u=t.split(""),d=0;d<l;d++)s=u[d],0==d?r.rotate(5*Math.PI/6):r.rotate(c),r.save(),r.translate(90,0),r.rotate(Math.PI/2),r.strokeText(s,0,0),r.restore(),r.save()},submit:function(e,t){return e||(e=this.width),t||(t=this.height),this.canvas.toDataURL("i/png")},clear:function(){this.linex=new Array,this.liney=new Array,this.linen=new Array,this.canvas.width=this.canvas.width},init:function(){function e(e,t){var n,i,r=e.getBoundingClientRect();return t.targetTouches?(n=t.targetTouches[0].clientX,i=t.targetTouches[0].clientY):(n=t.clientX,i=t.clientY),{x:(n-r.left)*(e.width/r.width),y:(i-r.top)*(e.height/r.height)}}function t(t){var n=e(r,t).x,i=e(r,t).y;if(1==c){o.linex.push(n),o.liney.push(i),o.linen.push(1),a.save(),a.translate(a.canvas.width/2,a.canvas.height/2),a.translate(-a.canvas.width/2,-a.canvas.height/2),a.beginPath(),a.lineWidth=2;for(var u=1;u<o.linex.length;u++)s=o.linex[u],l=o.liney[u],0==o.linen[u]?a.moveTo(s,l):a.lineTo(s,l);a.shadowBlur=10,a.stroke(),a.restore()}t.preventDefault()}function n(t){var n=e(r,t).x,i=e(r,t).y;c=1,o.linex.push(n),o.liney.push(i),o.linen.push(0)}function i(){c=0}this.canvas=this.$refs.canvas;var r=this.canvas,o=this;void 0!==document.ontouchstart?(r.addEventListener("touchmove",t,!1),r.addEventListener("touchstart",n,!1),r.addEventListener("touchend",i,!1)):(r.addEventListener("mousemove",t,!1),r.addEventListener("mousedown",n,!1),r.addEventListener("mouseup",i,!1),r.addEventListener("mouseleave",i,!1)),this.context=r.getContext("2d");var a=this.context;this.linex=new Array,this.liney=new Array,this.linen=new Array;var s=1,l=30,c=0}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"slider",mixins:[(0,s.default)(),(0,c.default)()],props:{value:{},step:{type:Number},min:{type:Number},max:{type:Number},range:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},showStops:{type:Boolean,default:!1},formatTooltip:Function},data:function(){return{}},watch:{},created:function(){},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(230),o=i(r),a=n(231),s=i(a),l=n(232),c=(i(l),n(1)),u=i(c);t.default=(0,u.default)({name:"keyboard",props:{ele:{type:String,required:!0},keys:Array,theme:{type:String,default:"default",validator:function(e){return["default","dark","green","classic"].includes(e)}},type:{type:String,default:"default",validator:function(e){return["default","number","mobile"].includes(e)}},fixedBottomCenter:{type:Boolean,default:!1},rebind:{type:Boolean,default:!0}},watch:{ele:function(){this.init()}},data:function(){return{customClick:{}}},computed:{className:function(){return"avue-keyboard--"+this.theme}},mounted:function(){this.init()},methods:{init:function(){var e=this;if(this.ele){var t=void 0,n={el:"#keyboard",style:{},keys:this.keys,fixedBottomCenter:this.fixedBottomCenter};"default"==this.type?t=new o.default(n):"number"==this.type?t=new s.default(n):"mobile"==this.type&&(t=new MobileKeyBoard(n));var i=0==this.ele.indexOf("#")?this.ele.substring(1):this.ele;t.inputOn("#"+i,"value",(function(t,n){e.$emit("click",t,n)}),this.rebind?this.customClick:null),this.keyboard=t}},bindClick:function(e,t){this.keyboard.onclick(e,t),this.customClick[e]=t}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"group",props:{arrow:{type:Boolean,default:!0},collapse:{type:Boolean,default:!0},header:{type:Boolean,default:!0},icon:{type:String},display:{type:Boolean,default:!0},card:{type:Boolean,default:!1},label:{type:String}},computed:{text:function(){return this.collapse?1:0},isHeader:function(){return this.$slots.header&&this.header||(this.label||this.icon)&&this.header}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),a=n(7),s=i(a),l=n(1),c=i(l);t.default=(0,c.default)({name:"tree",mixins:[s.default],props:{iconClass:{type:String},loading:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!1},option:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{}}}},data:function(){return{filterText:"",client:{x:0,y:0,show:!1},box:!1,type:"",node:{},obj:{},form:{}}},computed:{styleName:function(){return{top:this.setPx(this.client.y-10),left:this.setPx(this.client.x-10)}},treeProps:function(){return Object.assign(this.props,{isLeaf:this.leafKey})},menu:function(){return this.vaildData(this.option.menu,!0)},title:function(){return this.option.title},treeLoad:function(){return this.option.treeLoad},checkStrictly:function(){return this.option.checkStrictly},accordion:function(){return this.option.accordion},multiple:function(){return this.option.multiple},lazy:function(){return this.option.lazy},addText:function(){return this.addFlag?this.t("crud.addBtn"):this.t("crud.editBtn")},addFlag:function(){return["add","parentAdd"].includes(this.type)},size:function(){return this.option.size||"small"},props:function(){return this.option.props||{}},leafKey:function(){return this.props.leaf||o.DIC_PROPS.leaf},valueKey:function(){return this.props.value||o.DIC_PROPS.value},labelText:function(){return this.props.labelText||o.DIC_PROPS.labelText},labelKey:function(){return this.props.label||o.DIC_PROPS.label},childrenKey:function(){return this.props.children||o.DIC_PROPS.children},nodeKey:function(){return this.option.nodeKey||o.DIC_PROPS.nodeKey},defaultExpandAll:function(){return this.option.defaultExpandAll},formColumnOption:function(){return(this.option.formOption||{}).column||[]},formOption:function(){var e=this;return Object.assign({submitText:this.addText,column:[{label:this.valueKey,prop:this.valueKey,display:!1},{label:this.labelText,prop:this.labelKey,rules:[{required:!0,message:this.t("tip.input")+" "+this.labelText,trigger:"blur"}]}].concat(r(this.formColumnOption))},function(){var t=e.option.formOption||{};return delete t.column,t}())}},mounted:function(){var e=this;document.addEventListener("click",(function(t){e.$el.contains(t.target)||(e.client.show=!1)})),this.initFun()},watch:{option:function(){this.init()},filterText:function(e){this.$refs.tree.filter(e)},value:function(e){this.form=e},form:function(e){this.$emit("input",e)}},methods:{initFun:function(){var e=this;["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"].forEach((function(t){e[t]=e.$refs.tree[t]}))},nodeContextmenu:function(e,t){this.node=this.deepClone(t),this.client.x=e.clientX,this.client.y=e.clientY,this.client.show=!0},handleCheckChange:function(e,t,n){this.$emit("check-change",e,t,n)},handleSubmit:function(e,t){this.addFlag?this.save(e,t):this.update(e,t)},nodeClick:function(e){this.$emit("node-click",e)},filterNode:function(e,t){return!e||-1!==t[this.labelKey].indexOf(e)},hide:function(){this.box=!1,this.node={},this.$refs.form.resetForm(),this.$refs.form.clearValidate()},save:function(e,t){var n=this,i=function(){var e=n.deepClone(n.form);"add"===n.type?n.$refs.tree.append(e,n.node[n.valueKey]):"parentAdd"===n.type&&n.$refs.tree.append(e),n.hide(),t()};this.$emit("save",this.node,e,i,t)},update:function(e,t){var n=this,i=function(){var e=n.$refs.tree.getNode(n.node[n.valueKey]),i=n.deepClone(n.form);e.data=i,n.hide(),t()};this.$emit("update",this.node,e,i,t)},rowEdit:function(e){this.type="edit",this.form=this.node,this.show()},parentAdd:function(){this.type="parentAdd",this.show()},rowAdd:function(){this.type="add",this.show()},show:function(){this.client.show=!1,this.box=!0},rowRemove:function(){var e=this;this.client.show=!1;var t=function(){e.$refs.tree.remove(e.node[e.valueKey])};this.$emit("del",this.node,t)}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"title",mixins:[(0,s.default)(),(0,c.default)()],props:{styles:{type:Object,default:function(){return{}}}},mounted:function(){},methods:{}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),a=i(o),s=n(15),l=i(s);t.default=(0,a.default)({name:"search",mixins:[(0,l.default)()],props:{value:{}},computed:{isCard:function(){return this.parentOption.card},parentOption:function(){return this.deepClone(this.tableOption)},propOption:function(){var e=[];return this.columnOption.forEach((function(t){return e.push(t)})),e},columnOption:function(){return[].concat(r(this.parentOption.column))||[]}},data:function(){return{form:{}}},watch:{value:{handler:function(){this.setVal()},deep:!0}},created:function(){this.dataformat(),this.setVal()},methods:{setVal:function(){var e=this;Object.keys(this.value).forEach((function(t){e.$set(e.form,t,e.value[t])}))},getKey:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return e[t[n]||(this.parentOption.props||{})[n]||n]},dataformat:function(){var e=this;this.columnOption.forEach((function(t){var n=t.prop;e.validatenull(e.form[n])&&(!1===t.multiple?e.$set(e.form,n,""):e.$set(e.form,n,[]))}))},getActive:function(e,t){var n=this.getKey(e,t.props,"value");return!1===t.multiple?this.form[t.prop]===n:this.form[t.prop].includes(n)},handleClick:function(e,t){var n=this.getKey(t,e.props,"value");if(!1===e.multiple)this.form[e.prop]=n;else{var i=this.form[e.prop].indexOf(n);-1===i?this.form[e.prop].push(n):this.form[e.prop].splice(i,1)}this.$emit("change",this.form),this.$emit("input",this.form)}}})},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=(0,o.default)({name:"skeleton",props:{loading:{type:Boolean,default:!0},avatar:Boolean,active:{type:Boolean,default:!0},block:Boolean,number:{type:Number,default:1},rows:{type:Number,default:3}},computed:{styleName:function(){return this.block?{width:"100%"}:{}},className:function(){return i({},"avue-skeleton__loading",this.active)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"tabs",props:{value:{},uploadBefore:Function,uploadAfter:Function,option:{type:Object,required:!0,default:function(){return{}}}},data:function(){return{form:{},tabsForm:{},active:"0",tableOption:{}}},watch:{value:{handler:function(){this.form=this.value},immediate:!0},form:{handler:function(){this.$emit("input",this.form)},deep:!0},active:function(){this.$emit("change",this.tabsObj)}},computed:{tabsPropOptiom:function(){var e=[];return this.tabsObjOption.group.forEach((function(t){t.column.forEach((function(t){e.push(t)}))})),e},tabsObjOption:function(){if(this.tabsObj.option){var e=this.deepClone(this.tabsObj.option);return e.group||(e=Object.assign(e,{group:[this.deepClone(e)]})),delete e.column,Object.assign(e,{submitBtn:!1,emptyBtn:!1})}},tabsObj:function(){return this.columnOption[this.active]},parentOption:function(){return this.tableOption},columnOption:function(){return this.parentOption.column||[]},formRef:function(){return this.$refs.form[this.active]}},created:function(){this.tableOption=this.option},methods:{changeTabs:function(e){this.active=e+""},setVal:function(e){var t=this;e.forEach((function(e){var n=e.prop;t.$set(t.tabsForm,n,t.validatenull(t.form[n])?t.formRef.formDefault.tableForm[n]:t.form[n])}))},clearValidate:function(){this.formRef.clearValidate()},resetForm:function(){this.formRef.resetForm({part:!0}),this.$emit("reset-change")},validate:function(){var e=this;return new Promise((function(t,n){e.formRef.validate((function(e){e?t():n()}))}))},submit:function(){var e=this;this.$emit("input",this.form),this.formRef.validate((function(t){t&&(e.tabsForm={},e.tabsObjOption.group.forEach((function(t){e.setVal(t.column)})),e.$emit("submit",e.tabsForm))}))}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"dynamic",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{hoverList:[]}},props:{children:{type:Object,default:function(){return{}}}},computed:{showIndex:function(){return this.vaildData(this.children.index,!0)},showType:function(){return this.children.type||"crud"},isForm:function(){return"form"===this.showType},isCrud:function(){return"crud"===this.showType},selectionChange:function(){return this.children.selectionChange},rowAdd:function(){return this.children.rowAdd},rowDel:function(){return this.children.rowDel},viewBtn:function(){return!1===this.children.viewBtn},addBtn:function(){return!1===this.children.addBtn},delBtn:function(){return!1===this.children.delBtn},valueOption:function(){var e={};return this.columnOption.forEach((function(t){t.value&&(e[t.prop]=t.value)})),e},rulesOption:function(){var e={};return this.columnOption.forEach((function(t){t.rules&&(e[t.prop]=t.rules)})),e},columnOption:function(){return this.children.column||[]},option:function(){var e=this;return Object.assign({border:!0,header:!1,menu:!1,size:this.size,readonly:this.readonly,emptyBtn:!1,submitBtn:!1},function(){var t=e.deepClone(e.children);return delete t.column,t}(),function(){var t=[{label:"#",prop:"_index",display:e.showIndex,detail:!0,fixed:!0,align:"center",headerAlign:"center",span:24,width:50,renderHeader:function(t,n){if(n.column,n.$index,!e.addBtn&&!e.readonly)return t("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus",disabled:e.disabled,circle:!0},on:{click:e.addRow}})},slot:!0,formslot:!0}];return e.columnOption.forEach((function(n){t.push(Object.assign(n,{cell:e.vaildData(n.cell,!0),slot:n.formslot}))})),{column:t}}())}},mounted:function(){this.initData()},watch:{textLen:function(){return this.text.length},text:function(){this.initData()}},methods:{handleSelectionChange:function(e){this.selectionChange&&this.selectionChange(e)},cellMouseenter:function(e){var t=e.$index;this.mouseoverRow(t)},cellMouseLeave:function(e,t,n,i){var r=e.$index;this.mouseoutRow(r)},validate:function(){var e=this;return new Promise((function(t){var n=[];e.text.forEach((function(t,i){n.push(function(){return new Promise((function(n){e.asyncValidator(e.rulesOption,t).then((function(){n()})).catch((function(e){n(e)}))}))}())})),Promise.all(n).then((function(n){var i=void 0;n.forEach((function(t,n){e.validatenull(t)||(i||(i={}),i[n]=t)})),t(i)}))}))},initData:function(){this.text.forEach((function(e,t){e=Object.assign(e,{$cellEdit:!0,$index:t})}))},mouseoverRow:function(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!0))},mouseoutRow:function(e){this.delBtn||(this.flagList(),this.$set(this.hoverList,e,!1))},flagList:function(){this.hoverList.forEach((function(e,t){}))},delRow:function(e){var t=this,n=function(){t.text.splice(e,1)},i=this.text[e];"function"==typeof this.rowDel?this.rowDel(i,n):n()},addRow:function(){var e=this,t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t=Object.assign(e.valueOption,t,{$index:e.textLen}),e.isCrud?e.$refs.crud.rowCellAdd(t):e.isForm&&e.text.push(t)};"function"==typeof this.rowAdd?this.rowAdd(t):t()}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"queue",props:{enter:{type:String,default:"fadeInLeft"},leave:{type:String,default:"fadeOutRight"},block:{type:Boolean,default:!1},delay:{type:Number,default:0}},data:function(){return{isFixed:0,animate:[]}},mounted:function(){var e=this;this.$nextTick((function(){addEventListener("scroll",e.handleAnimate),e.handleAnimate()}))},methods:{handleAnimate:function(){var e=this;(pageYOffset||document.documentElement.scrollTop||document.body.scrollTop)+document.documentElement.clientHeight>this.$refs.queue.offsetTop?setTimeout((function(){e.animate=[e.enter,"avue-opacity--active"]}),this.delay):this.animate=["avue-opacity"]}},destroyed:function(){removeEventListener("scroll",this.handleAnimate)}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(251),s=i(a);t.default=(0,o.default)({name:"video",props:{background:{type:String},width:{type:[String,Number],default:500}},computed:{styleName:function(){return{width:this.setPx(this.width)}},imgStyleName:function(){return{width:this.setPx(this.width/2)}},borderStyleName:function(){return{width:this.setPx(this.width/15),height:this.setPx(this.width/15),borderWidth:this.setPx(5)}}},data:function(){return{videoObj:null}},mounted:function(){this.init()},methods:{init:function(){var e=this;this.videoObj=new s.default(this.$refs.main),this.videoObj.init().then((function(){e.videoObj.mediaRecorder.addEventListener("stop",e.getData,!1)}))},startRecord:function(){this.videoObj.startRecord()},stopRecord:function(){this.videoObj.stopRecord()},getData:function(){var e=this,t=new Blob(this.videoObj.chunks,{type:"video/mp4"}),n=new FileReader;n.readAsDataURL(t),n.addEventListener("loadend",(function(){var t=n.result;e.$emit("data-change",t)}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o="{{time}}s后重获取";t.default=(0,r.default)({name:"login",props:{codesrc:{type:String},option:{type:Object,default:function(){return{}}}},computed:{labelWidth:function(){return this.option.labelWidth||80},time:function(){return this.option.time||60},isImg:function(){return"img"===this.codeType},isPhone:function(){return"phone"===this.codeType},codeType:function(){return this.option.codeType||"img"},width:function(){return this.option.width||"100%"},username:function(){return this.column.username||{}},password:function(){return this.column.password||{}},code:function(){return this.column.code||{}},column:function(){return this.option.column||{}},sendDisabled:function(){return!this.validatenull(this.check)}},data:function(){return{text:"",nowtime:"",check:{},flag:!1,form:{}}},created:function(){this.text="发送验证码"},methods:{onSend:function(){var e=this,t=function(){e.nowtime=e.time,e.text=o.replace("{{time}}",e.nowtime),e.check=setInterval((function(){e.nowtime--,0===e.nowtime?(e.text="发送验证码",clearInterval(e.check),e.check=null):e.text=o.replace("{{time}}",e.nowtime)}),1e3)};this.sendDisabled||this.$emit("send",t)},onRefresh:function(){this.$emit("refresh")},onSubmit:function(){var e=this,t=function(){var t={};for(var n in e.form){var i=n;e[n].prop&&(i=e[n].prop),t[i]=e.form[n]}return t};this.$refs.form.validate((function(n){n&&e.$emit("submit",t())}))}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=i(r),a=n(3),s=i(a),l=n(4),c=i(l);t.default=(0,o.default)({name:"array",mixins:[(0,s.default)(),(0,c.default)()],data:function(){return{text:[]}},computed:{isImg:function(){return"img"===this.type},isUrl:function(){return"url"===this.type}},props:{alone:Boolean,type:String,size:String,placeholder:String,readonly:Boolean,disabled:Boolean,value:[Array,String]},methods:{add:function(){this.text.push("")},remove:function(e){this.text.splice(e,1)},openImg:function(e){var t=this.text.map((function(e){return{thumbUrl:e,url:e}}));this.$ImagePreview(t,e)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"text-ellipsis",props:{text:String,height:Number,width:Number,isLimitHeight:{type:Boolean,default:!0},useTooltip:{type:Boolean,default:!1},placement:String},data:function(){return{keyIndex:0,oversize:!1,isHide:!1}},watch:{isLimitHeight:function(){this.init()},text:function(){this.init()},height:function(){this.init()}},mounted:function(){this.init()},methods:{init:function(){this.oversize=!1,this.keyIndex+=1,this.$refs.more.style.display="none",this.isLimitHeight&&this.limitShow()},limitShow:function(){var e=this;this.$nextTick((function(){var t=e.$refs.text,n=e.$el,i=e.$refs.more,r=1e3;if(t)if(n.offsetHeight>e.height){i.style.display="inline-block";for(var o=e.text;n.offsetHeight>e.height&&r>0;)n.offsetHeight>3*e.height?t.innerText=o=o.substring(0,Math.floor(o.length/2)):t.innerText=o=o.substring(0,o.length-1),r--;e.$emit("hide"),e.isHide=!0}else e.$emit("show"),e.isHide=!1}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-tabs",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-cardtext",data:function(){return{}},computed:{icon:function(){return this.option.icon},color:function(){return this.option.color||"#333"},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-box",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-progress",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-icons",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||4},data:function(){return this.option.data},color:function(){return this.option.color||"rgb(63, 161, 255)"},discount:function(){return this.option.discount||!1}},props:{option:{type:Object,default:function(){}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-card",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]},colorText:function(){return this.option.colorText||"#fff"},bgText:function(){return this.option.bgText||"#2e323f"},borderColor:function(){return this.option.borderColor||"#2e323f"}},created:function(){},mounted:function(){},watch:{},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-display",data:function(){return{}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||6},data:function(){return this.option.data||[]},color:function(){return this.option.color||"rgb(63, 161, 255)"}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-imgtext",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]},color:function(){return this.option.color||"rgb(63, 161, 255)"}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-operatext",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-rotate",data:function(){return{}},props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||8},data:function(){return this.option.data||[]}},created:function(){},mounted:function(){},watch:{},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-pay",props:{option:{type:Object,default:function(){}}},computed:{animation:function(){return this.option.animation},decimals:function(){return this.option.decimals||0},span:function(){return this.option.span||6},data:function(){return this.option.data||[]}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-price",data:function(){return{}},computed:{span:function(){return this.option.span||6},data:function(){return this.option.data}},props:{option:{type:Object,default:function(){}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"data-panel",data:function(){return{}},computed:{decimals:function(){return this.option.decimals||0},animation:function(){return this.option.animation},span:function(){return this.option.span||6},data:function(){return this.option.data||[]}},props:{option:{type:Object,default:function(){}}},created:function(){},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"bar",computed:{x2:function(){return this.option.gridX2||20}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:this.ishasprop(this.formatter,{formatter:function(t){return e.formatter(t,e.dataChart)}},{textStyle:{fontSize:this.option.tipFontSize,color:this.option.tipColor||"#fff"}}),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},legend:{show:this.vaildData(this.option.legend,!1),orient:this.option.legendOrient||"vertical",x:this.option.legendPostion||"left",top:0,right:this.x2,textStyle:{fontSize:this.option.legendFontSize||12},data:function(){return(t.series||[]).map((function(t,n){return{name:t.name,textStyle:e.ishasprop(!e.switchTheme,{color:e.getColor(n,!0)},{})}}))}()},xAxis:{type:this.option.category?"value":"category",name:this.option.xAxisName,axisLine:{lineStyle:{color:this.option.lineColor||"#333"}},data:t.categories||[],inverse:this.vaildData(this.option.xAxisInverse,!1),show:this.vaildData(this.option.xAxisShow,!0),splitLine:{show:this.vaildData(this.option.xAxisSplitLineShow,!1)},axisLabel:{interval:this.option.xAxisinterval||"auto",rotate:this.option.xAxisRotate||0,textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.xNameFontSize||14}}},yAxis:{type:this.option.category?"category":"value",name:this.option.yAxisName,data:t.categories||[],axisLabel:{textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.yNameFontSize||14}},axisLine:{lineStyle:{color:this.option.lineColor||"#333"}},inverse:this.vaildData(this.option.yAxisInverse,!1),show:this.vaildData(this.option.yAxisShow,!0),splitLine:{show:this.vaildData(this.option.yAxisSplitLineShow,!0)}},series:function(){return e.option.barColor,(t.series||[]).map((function(t,n){return Object.assign(t,{type:"bar",stack:t.stack,barWidth:e.option.barWidth||16,barMinHeight:e.option.barMinHeight||0,itemStyle:e.ishasprop(!e.switchTheme,{color:e.getColor(n)},{barBorderRadius:e.option.barRadius||0}),label:{show:e.vaildData(e.option.labelShow,!1),position:"top",formatter:function(t){return e.getLabelFormatter(t)},textStyle:{fontSize:e.option.labelShowFontSize||14,color:e.option.labelShowColor||"#333",fontWeight:e.option.labelShowFontWeight||500}}})}))}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"pie",computed:{labelShow:function(){return this.vaildData(this.option.labelShow,!1)},x2:function(){return this.option.gridX2||20},fontSize:function(){return this.option.fontSize||14}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart)||[],n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:function(){return Object.assign(function(){return e.formatter?{formatter:function(t){return e.formatter(t,e.dataChart)}}:{}}(),{textStyle:{fontSize:e.option.tipFontSize,color:e.option.tipColor||"#fff"}})}(),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},legend:{show:this.vaildData(this.option.legend,!1),orient:this.option.legendOrient||"vertical",x:this.option.legendPostion||"left",top:0,right:this.x2,textStyle:{fontSize:this.option.legendFontSize||12},data:function(){return t.map((function(t,n){return{name:t.name,textStyle:e.ishasprop(!e.switchTheme,{color:e.getColor(n,!0)},{})}}))}()},series:function(){return e.option.barColor,[{type:"pie",roseType:e.option.roseType?"radius":"",radius:e.option.radius?["40%","55%"]:"50%",center:["50%","60%"],animationType:"scale",animationEasing:"elasticOut",animationDelay:function(e){return 200*Math.random()},label:{normal:{show:e.labelShow,formatter:"{b}:{c}({d}%)",textStyle:{fontSize:e.fontSize}}},data:function(){var n=t;return e.option.notCount&&(n=n.filter((function(e){if(0!==e.value&&e.value)return!0}))),e.option.sort&&n.sort((function(e,t){return e.value-t.value})),n}(),itemStyle:e.ishasprop(!e.switchTheme,{color:function(t){return e.getColor(t.dataIndex)}},{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}})}]}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"line",computed:{x2:function(){return this.option.gridX2||20}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:function(){return Object.assign(function(){return e.formatter?{formatter:function(t){return e.formatter(t,e.dataChart)}}:{}}(),{backgroundColor:"rgba(0,0,0,1)",trigger:"axis",textStyle:{fontSize:e.option.tipFontSize,color:e.option.tipColor||"#fff"}})}(),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},legend:{show:this.vaildData(this.option.legend,!1),orient:this.option.legendOrient||"horizontal",x:this.option.legendPostion||"right",top:0,right:this.x2,textStyle:{fontSize:this.option.legendFontSize||12},data:function(){return(t.series||[]).map((function(t,n){return{name:t.name,textStyle:{color:e.getColor(n,!0)}}}))}()},xAxis:{type:this.option.category?"value":"category",name:this.option.xAxisName,axisLine:{lineStyle:{color:this.option.lineColor||"#333"}},data:t.categories||[],inverse:this.vaildData(this.option.xAxisInverse,!1),show:this.vaildData(this.option.xAxisShow,!0),splitLine:{show:this.vaildData(this.option.xAxisSplitLineShow,!1)},axisLabel:{textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.xNameFontSize||14}}},yAxis:{type:this.option.category?"category":"value",name:this.option.yAxisName,data:t.categories||[],axisLabel:{textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.yNameFontSize||14}},axisLine:{lineStyle:{color:this.option.lineColor||"#333"}},inverse:this.vaildData(this.option.yAxisInverse,!1),show:this.vaildData(this.option.yAxisShow,!0),splitLine:{show:this.vaildData(this.option.yAxisSplitLineShow,!0)}},series:function(){return(t.series||[]).map((function(t,n){return Object.assign(t,{type:"line",smooth:!0,symbolSize:e.option.symbolSize||10,areaStyle:function(){if(e.option.areaStyle)return{opacity:.7}}(),lineStyle:{width:e.option.lineWidth||1},itemStyle:e.ishasprop(!e.switchTheme,{color:e.getColor(n)},{}),label:{show:e.vaildData(e.option.labelShow,!1),position:"top",formatter:function(t){return e.getLabelFormatter(t)},textStyle:{fontSize:e.option.labelShowFontSize||14,color:e.option.labelShowColor||"#333",fontWeight:e.option.labelShowFontWeight||500}}})}))}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(2),a=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,a.default)({name:"table",data:function(){return{visible:!1,listVisible:!1,columnData:[],indexWidth:50,top:0,prop:"",scrollCheck:"",activeIndex:0,query:{}}},watch:(r={scrollCount:function(){this.setTime()},count:function(){this.setTime()},scrollTime:function(){this.setTime()}},i(r,"count",(function(){this.setTime()})),i(r,"scroll",{handler:function(e){this.setTime()},immediate:!0}),r),created:function(){var e=this;this.columnList.forEach((function(t){e.columnShowList.includes(t.value)||e.columnData.push(t.value)}))},computed:{listOption:function(){var e=this;return Object.assign({align:"center",headerAlign:"center",size:"mini",menu:!1,header:!1,height:500,sumText:"合计",showSummary:!0,column:this.option.column},function(){return{sumColumnList:e.totalList.map((function(e){return{name:e,type:"sum"}}))}}())},totalList:function(){return this.option.totalList||[]},totalFlag:function(){return!this.validatenull(this.totalList)},totalData:function(){var e=this,t={};return this.totalList.forEach((function(n){e.dataChart.forEach((function(e){t[n]=(t[n]||0)+Number(e[n]),t[n]=Number(t[n].toFixed(2))}))})),t},columnList:function(){var e=this;return this.columnOption.map((function(t){return!e.columnShowWhite.includes(t.prop)&&{label:t.label,value:t.prop}})).filter((function(e){return e.value}))},columnShow:function(){return this.option.columnShow},columnListShow:function(){return this.option.columnListShow},columnShowWhite:function(){return this.option.columnShowWhite||[]},columnShowList:function(){return this.option.columnShowList||[]},dataTabelLen:function(){return this.dataChart.length},dataTabel:function(){var e=this.dataChart;return this.validatenull(this.prop)||(e=this.sortArrys(e,this.prop)),e},allHeight:function(){var e=this.count-(this.totalFlag?2:1);return(this.dataChartLen-e)*this.lineHeight},count:function(){return(this.option.count||10)+1},dataChartLen:function(){return(this.dataChart||[]).length},lineHeight:function(){return parseInt(this.height/this.count)},index:function(){return this.option.index},scroll:function(){return this.option.scroll},scrollTime:function(){return this.option.scrollTime||5e3},indexLabel:function(){return this.option.indexLabel||"排名"},fontSize:function(){return this.option.fontSize||14},scrollCount:function(){return this.option.scrollCount||this.count},speed:function(){return this.scrollCount*this.lineHeight},styleThName:function(){return{fontSize:this.setPx(this.fontSize),background:this.option.headerBackground||"rgba(0, 0, 0, 0.01)",color:this.option.headerColor||"rgba(154, 168, 212, 1)"}},columnOption:function(){return this.crudOption.column||[]},styleTdName:function(){return{fontSize:this.setPx(this.fontSize),lineHeight:this.setPx(this.lineHeight),color:this.option.bodyColor||"rgba(154, 168, 212, 1)",borderColor:this.option.borderColor||"rgba(51, 65, 107, 1)"}},styleMenuName:function(){return{color:this.option.headerColor||"rgba(154, 168, 212, 1)"}},sortableProp:function(){return this.option.sortableProp||"order"},crudOption:function(){return Object.assign(this.option,{menu:!1,align:"center",headerAlign:"center",header:!1})}},props:{option:{type:Object,default:function(){return{}}}},methods:{styleWidth:function(e){return{width:this.setPx(e.width),flex:e.width?"auto":1}},resetData:function(){this.top=0},handleSortable:function(e){this.propQuery[this.sortableProp]=e,this.updateData()},setTime:function(){var e=this;this.top=0,clearInterval(this.scrollCheck),setTimeout((function(){e.scroll&&(e.scrollCheck=setInterval((function(){e.top<=-e.allHeight?e.top=0:e.top=e.top-e.speed}),e.scrollTime))}),2e3)},styleTrName:function(e){var t={lineHeight:this.setPx(this.lineHeight)};return t.background=e%2==0?this.option.othColor:this.option.nthColor,t},rowClick:function(e,t){this.clickFormatter({type:t,value:e,data:this.dataChart})},handleClick:function(e,t){this.activeIndex=t,this.query.type=e,this.updateData()}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"flop",data:function(){return{statusDIC:[".",","]}},computed:{isArray:function(){return Array.isArray(this.dataChart)},decimals:function(){return this.option.decimals||0},listData:function(){return this.isArray?this.dataChart:[this.dataChart]},isWhole:function(){return this.vaildData(this.option.whole,!1)},type:function(){return this.option.type},isBorder:function(){return"border"===this.type},isImg:function(){return"img"===this.type},span:function(){return this.option.span||1},prefixStyle:function(){return{display:this.option.prefixInline?"inline-block":"block",textAlign:this.option.prefixTextAlign,marginBottom:this.setPx(this.option.prefixSplity),marginRight:this.setPx(this.option.prefixSplitx),color:this.option.prefixColor||"#fff",fontSize:this.setPx(this.option.prefixFontSize||24)}},suffixStyle:function(){return{display:this.option.suffixInline?"inline-block":"block",textAlign:this.option.suffixTextAlign,marginTop:this.setPx(this.option.suffixSplity),marginLeft:this.setPx(this.option.suffixSplitx),color:this.option.suffixColor||"#fff",fontSize:this.setPx(this.option.suffixFontSize||24)}},styleParentSize:function(){var e={boxSizing:"border-box",display:"inline-block",width:100/this.span-1+"%"};return this.option.splitx&&(e.paddingRight=this.setPx(this.option.splitx)),this.option.splity&&(e.paddingBottom=this.setPx(this.option.splity)),e},styleParentName:function(){var e={};return this.isImg||this.isBorder||(e=Object.assign(e,{backgroundImage:"url("+this.option.backgroundImage+")",backgroundColor:this.option.backgroundColor})),this.option.padding&&(e.padding=this.setPx(this.option.padding)),e},styleName:function(){var e=this;return Object.assign(function(){var t={};return e.option.splitx&&(t.marginRight=e.setPx(e.option.splitx)),e.option.splity&&(t.marginBottom=e.setPx(e.option.splity)),e.option.backgroundImage&&(t=Object.assign(t,{backgroundImage:"url("+e.option.backgroundImage+")",backgroundSize:"100% 100%"})),t}(),{textAlign:this.option.textAlign,backgroundColor:this.option.backgroundColor,color:this.option.color||"#fff",fontSize:this.setPx(this.option.fontSize||64),fontWeight:this.option.fontWeight},function(){return"img"===e.type?{borderImageSource:"url("+e.option.backgroundBorder+")"}:"border"===e.type?{borderColor:e.option.borderColor||"#fff",borderStyle:"solid",borderWidth:e.setPx(e.option.borderWidth)}:void 0}())}},props:{option:{type:Object,default:function(){return{}}}},created:function(){},methods:{handleClick:function(e,t){this.clickFormatter({type:t,value:e,data:this.dataChart})},getValByArray:function(e,t){return this.isArray?e[t]:this.option[t]}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=i(r),a=n(14),s=n(2),l=i(s);t.default=(0,l.default)({name:"datetime",data:function(){return{date:new Date}},computed:{nowDate:function(){if("day"===this.option.format)return"星期"+(0,a.getDayText)();var e=(this.option.format||"yyyy-MM-dd hh:mm:ss").replace("dd","DD").replace("yyyy","YYYY");return(0,o.default)(this.date).format(e)},styleName:function(){return{width:"100%",height:"100%",textAlign:this.option.textAlign,letterSpacing:this.setPx(this.option.split),textIndent:this.setPx(this.option.split),backgroundColor:this.option.backgroundColor,fontWeight:this.option.fontWeight||"normal",fontSize:(this.option.fontSize||30)+"px",color:this.option.color||"#333"}}},created:function(){var e=this;setInterval((function(){e.date=new Date}),1e3)},props:{option:{type:Object,default:function(){return{}}}},methods:{handleClick:function(){this.clickFormatter({data:this.dataChart})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"text",data:function(){return{check:"",date:new Date,left:0}},computed:{scroll:function(){return this.vaildData(this.option.scroll,!1)},linkHref:function(){return this.option.linkHref||"#"},linkTarget:function(){return this.option.linkTarget||"_self"},step:function(){return this.option.step||5},speed:function(){return this.option.speed||100},lineHeight:function(){return this.option.lineHeight||40},fontSize:function(){return this.option.fontSize||30},split:function(){return this.option.split},textWidth:function(){return(this.dataChart.value||"").length*this.fontSize},styleName:function(){return{width:this.scroll?this.setPx(this.textWidth):"auto",transform:"translateX("+this.left+"px)",textAlign:this.option.textAlign,letterSpacing:this.setPx(this.split),textIndent:this.setPx(this.split),backgroundColor:this.option.backgroundColor,fontWeight:this.option.fontWeight||"normal",fontSize:this.fontSize+"px",lineHeight:this.lineHeight+"px",color:this.option.color||"#333"}}},watch:{scroll:function(){this.move()},speed:function(){this.move()}},created:function(){var e=this;setInterval((function(){e.date=new Date}),1e3)},mounted:function(){this.move()},methods:{handleClick:function(){this.clickFormatter({data:this.dataChart})},move:function(){var e=this;clearInterval(this.check),this.scroll?this.check=setInterval((function(){e.left<-e.textWidth&&(e.left=e.width),e.left=e.left-e.step}),this.speed):this.left=0}},props:{option:{type:Object,default:function(){return{}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"swiper",data:function(){return{}},computed:{styleName:function(){return{opacity:this.opacity}},indicator:function(){return this.opacity.indicator||"none"},opacity:function(){return.01*(this.option.opacity||100)},type:function(){return this.option.type||""},interval:function(){return this.option.interval||5e3}},created:function(){},mounted:function(){},methods:{handleClick:function(e,t){this.clickFormatter({type:t,value:e,data:this.dataChart})}},props:{option:{type:Object,default:function(){return{}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"iframe",data:function(){return{}},computed:{},created:function(){},mounted:function(){},methods:{handleClick:function(){this.clickFormatter({data:this.dataChart})}},props:{option:{type:Object,default:function(){return{}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"video",data:function(){return{}},computed:{},created:function(){},mounted:function(){},methods:{handleClick:function(){this.clickFormatter({type:index,value:item,data:this.dataChart})}},props:{option:{type:Object,default:function(){return{}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"wordcloud",methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart)||[],n={series:[{type:"wordCloud",left:"center",top:"center",width:"100%",height:"100%",right:null,bottom:null,sizeRange:function(){return[e.option.minFontSize||12,e.option.maxFontSize||60]}(),rotationRange:function(){return e.option.rotate?[-90,90]:[0,0]}(),rotationStep:function(){return e.option.rotate?45:0}(),gridSize:this.option.split||30,drawOutOfBound:!1,textStyle:{normal:{fontFamily:"sans-serif",fontWeight:"bold",color:function(){return"rgb("+[Math.round(160*Math.random()),Math.round(160*Math.random()),Math.round(160*Math.random())].join(",")+")"}},emphasis:{shadowBlur:10,shadowColor:"#333"}},data:t}]};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"gauge",computed:{x2:function(){return this.option.gridX2||20}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},series:[{name:"业务指标",type:"gauge",detail:{fontSize:this.option.valueFontSize||30,formatter:"{value}"+t.unit},min:t.min,max:t.max,axisLine:{lineStyle:{color:function(){var t=[];return(e.option.barColor||[]).forEach((function(e){t.push([e.postion,e.color1])})),e.validatenull(t)&&(t=[[0,2,"#91c7ae"],[.8,"#638693"],[1,"#c23531"]]),t}(),width:this.option.lineSize||5}},axisLabel:{show:this.vaildData(this.option.axisLabelShow,!0),fontSize:this.option.axisLabelFontSize||25},axisTick:{lineStyle:{color:this.option.lineColor||"#eee"}},title:{color:this.option.nameColor,fontSize:this.option.nameFontSize||20},data:[t]}]};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"progress",computed:{styleSuffixName:function(){return{fontWeight:this.option.suffixFontWeight||"normal",fontSize:(this.option.suffixFontSize||40)+"px",color:this.option.suffixColor||"#333"}},styleName:function(){return{marginBottom:this.option.split+"px",fontWeight:this.option.fontWeight||"normal",fontSize:(this.option.fontSize||40)+"px",color:this.option.color||"#333"}},type:function(){return this.option.type||"line"},color:function(){return this.option.borderColor||"#333"},strokeWidth:function(){return this.option.strokeWidth||14}},props:{option:{type:Object,default:function(){return{}}}},methods:{handleClick:function(){this.clickFormatter({data:this.dataChart})}}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=i(o),s=n(6),l=i(s);t.default=(0,a.default)({name:"map",data:function(){return{bannerCount:0,bannerCheck:"",move:!1,step:1,startLeft:0,startTop:0,baseScale:0,left:0,top:0,centerData:[],zoomData:1}},watch:{mapData:function(){this.updateChart()},dataChartLen:function(){this.setBanner()},bannerTime:function(){this.setBanner()},banner:{handler:function(){this.setBanner()},immediate:!0},type:function(){var e=this;this.isEchart&&this.$nextTick((function(){e.init(),e.updateData()}))},width:function(){this.updateData()},height:function(){this.updateData()},zoom:{handler:function(){this.zoomData=this.zoom},immediate:!0},zoomData:{handler:function(){this.updateData()},immediate:!0},scale:{handler:function(e){this.baseScale=e},immediate:!0}},computed:{zoomShow:function(){return this.option.zoomShow||1},zoom:function(){return this.option.zoom||1},mapData:function(){return this.option.mapData||{}},borderWidth:function(){return this.option.borderWidth||3},borderColor:function(){return this.option.borderColor||"#389BB7"},areaColor:function(){return this.option.areaColor||"#0c162f"},empColor:function(){return this.option.empColor||"#fff"},empAreaColor:function(){return this.option.empAreaColor||"yellow"},color:function(){return this.option.color||"#fff"},fontSize:function(){return this.option.fontSize||24},isEchart:function(){return 0===this.type},bannerTime:function(){return this.option.bannerTime||3e3},banner:function(){return this.option.banner},scale:function(){return this.option.scale||100},styleImgName:function(){return{marginLeft:this.setPx(this.left),marginTop:this.setPx(this.top),transform:"scale("+this.baseScale/100+", "+this.baseScale/100+")"}},location:function(){return this.option.location||[]},img:function(){return this.option.img},type:function(){return this.option.type},locationData:function(){var e=this;return(this.dataChart||[]).map((function(t){t.zoom=t.zoom||1;var n=e.zoomData<1?1:e.zoomData;return Object.assign(function(){return t.zoom<=n?{name:t.name}:{}}(),{value:[t.lng,t.lat,t.value]})}))}},methods:{docMouseUp:function(){var e=this;window.document.onmouseup=function(t){window.document.onmousemove=void 0,e.move=!1}},handleMouseDown:function(e){this.move=!0,this.startLeft=e.clientX,this.startTop=e.clientY,this.docMouseUp()},handleMouseMove:function(e){var t=this;this.move&&(window.document.onmousemove=function(e){var n=e.clientX,i=e.clientY;t.left=t.left+(n-t.startLeft)*t.step,t.top=t.top+(i-t.startTop)*t.step,t.startLeft=n,t.startTop=i})},handleMouseUp:function(){this.move=!1},handleMousewheel:function(e){var t=e.deltaY;this.baseScale=t>0?this.baseScale+10:this.baseScale-10},resetBanner:function(){var e=this;this.$nextTick((function(){e.myChart.dispatchAction({type:"hideTip"})}))},setBanner:function(){var e=this;clearInterval(this.bannerCheck),this.banner&&(this.bannerCheck=setInterval((function(){var t=e.bannerCount%e.dataChartLen;e.myChart.dispatchAction({type:"showTip",seriesIndex:"0",dataIndex:t}),e.myChart.dispatchAction({type:"downplay"}),e.myChart.dispatchAction({type:"highlight",dataIndex:t}),e.bannerCount+=1}),this.bannerTime))},updateChart:function(){var e=this;window.axios?this.$axios(this.mapData).then((function(t){var n,i=t.data,o=e.deepClone(i);window.echarts.registerMap("HK",o);var a={tooltip:function(){return Object.assign(function(){return e.formatter?{formatter:function(t){return e.formatter(t,e.dataChart)}}:{}}(),{backgroundColor:e.option.tipBackgroundColor||"rgba(0,0,0,1)",textStyle:{fontSize:e.option.tipFontSize,color:e.option.tipColor||"red"}})}(),geo:Object.assign(function(){return e.validatenull(e.centerData)?{}:{center:e.centerData}}(),(n={map:"HK",label:{emphasis:{show:!1}},zoom:e.zoomData,layoutCenter:["50%","50%"],layoutSize:1200,roam:!0},r(n,"label",{show:!0,fontSize:e.fontSize,color:e.color}),r(n,"left",e.option.gridX),r(n,"top",e.option.gridY),r(n,"right",e.option.gridX2),r(n,"bottom",e.option.gridY2),r(n,"emphasis",{label:{color:e.empColor},itemStyle:{areaColor:e.empAreaColor}}),r(n,"itemStyle",{borderWidth:e.borderWidth,borderColor:e.borderColor,areaColor:e.areaColor}),n)),series:[{type:"effectScatter",coordinateSystem:"geo",showEffectOn:"emphasis",rippleEffect:{brushType:"fill",scale:4},symbolSize:e.fontSize,hoverAnimation:!0,data:e.locationData,label:{show:!0,position:["130%","0"],fontSize:e.fontSize,color:e.color,formatter:function(e){return e.name}},itemStyle:{color:e.color},emphasis:{label:{show:!0,fontSize:e.fontSize+20,color:e.option.empColor},itemStyle:{color:e.option.empColor}}}]};e.myChart.off("mouseover"),e.myChart.off("mouseout"),e.myChart.off("georoam"),e.myChart.on("mouseover",(function(){clearInterval(e.bannerCheck),e.resetBanner()})),e.myChart.on("mouseout",(function(){e.bannerCount=0,e.setBanner()})),e.myChart.on("georoam",(function(t){var n=e.myChart.getOption(),i=n.geo[0];e.centerData=i.center,e.zoomData=i.zoom,e.zoomData<1&&(e.zoomData=1)})),e.myChart.resize(),e.myChart.setOption(a,!0)})):l.default.logs("axios")}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"img",computed:{styleImgName:function(){var e=this;return Object.assign(function(){return e.rotate?{animationDuration:e.duration/1e3+"s"}:{}}(),{opacity:this.option.opacity||1})},duration:function(){return this.option.duration||3e3},rotate:function(){return this.option.rotate}},methods:{handleClick:function(){this.clickFormatter({data:this.dataChart})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"imgborder",computed:{styleImgName:function(){var e=this;return Object.assign({width:"100%",height:"100%",backgroundColor:this.option.backgroundColor||"rgba(180, 181, 198, 0.1)",backgroundClip:"padding-box",opacity:this.option.opacity||1,filter:"blur(0px)"},function(){return e.validatenull(e.dataChart)?{}:{borderImageSource:"url("+e.dataChart+")",borderImageSlice:"10 16 15 10 fill",borderWidth:"10px 16px 15px 10px",borderStyle:"solid",boxSizing:"border-box"}}())}},methods:{}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"tabs",data:function(){return{active:""}},watch:{active:function(e){e&&this.handleClick(e)},dataChart:{handler:function(e){0!==e.length&&(this.active=e[0].value)},immediate:!0}},computed:{isSelect:function(){return"select"===this.type},type:function(){return this.option.type},paramName:function(){return this.option.paramName},iconSize:function(){return this.option.iconSize||20},styleSelectName:function(){return Object.assign({fontSize:this.setPx(this.option.fontSize||30)},this.styleSizeName)},styleIconName:function(){return Object.assign({marginRight:this.setPx(this.option.iconSplit),width:this.setPx(this.option.iconSize),height:this.setPx(this.option.iconSize)})},styleName:function(){var e=this;return Object.assign(function(){return e.option.backgroundImage?{backgroundImage:"url("+e.option.backgroundImage+")",backgroundSize:"100% 100%"}:{}}(),{borderColor:this.option.borderColor||"#fff",borderStyle:"solid",borderWidth:this.setPx(this.option.borderWidth||0),margin:"0 "+this.setPx(this.option.split),backgroundColor:this.option.backgroundColor,fontSize:this.setPx(this.option.fontSize||30),color:this.option.color})}},created:function(){},mounted:function(){},methods:{styleIconBgName:function(e){if(e.icon)return{backgroundImage:"url("+e.icon+")",backgroundSize:"100% 100%"}},styleIconActiveName:function(e){if(this.active==e.value&&e.empIcon)return{backgroundImage:"url("+e.empIcon+")",backgroundSize:"100% 100%"}},styleActiveName:function(e){var t=this;if(this.active==e.value)return Object.assign(function(){return t.option.empBackgroundImage?{backgroundImage:"url("+t.option.empBackgroundImage+")",backgroundSize:"100% 100%"}:{}}(),{borderColor:this.option.empBorderColor||"#fff",borderStyle:"solid",borderWidth:this.setPx(this.option.empBorderWidth||0),color:this.option.empColor})},handleClick:function(e){this.active=e,this.click({type:this.name,child:this.child,value:this.active})}},props:{option:{type:Object,default:function(){return{}}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"slide",data:function(){return{reload:!0}},mounted:function(){this.init()},computed:{delay:function(){return this.option.delay||3e3},autoplay:function(){return this.vaildData(this.option.autoplay,!1)}},watch:{option:{handler:function(){var e=this;this.reload=!1,this.$nextTick((function(){e.reload=!0,e.init()}))},deep:!0}},methods:{init:function(){var e=this;new Swiper(".swiper-container",Object.assign(function(){return e.autoplay?{autoplay:{delay:e.delay,disableOnInteraction:!1}}:{}}(),{spaceBetween:80,pagination:{el:".swiper-pagination",clickable:!0},observer:!0,observeParents:!0}))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"pictorialbar",methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n=this.validatenull(this.option.symbol)?"":"image://"+this.option.symbol,i=this.option.color||"#fff",r=this.option.fontSize||20,o=0;t.forEach((function(e){e.value>o&&(o=e.value)}));var a={tooltip:function(){return Object.assign(function(){return e.formatter?{formatter:function(t){return e.formatter(t,e.dataChart)}}:{}}(),{textStyle:{fontSize:e.option.tipFontSize,color:e.option.tipColor||"#fff"}})}(),xAxis:{show:this.vaildData(this.option.xAxisShow,!0),max:o,splitLine:{show:!1},offset:10,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.xNameFontSize||14}}},yAxis:{data:function(){return t.map((function(e){return e.name}))}(),show:this.vaildData(this.option.yAxisShow,!0),inverse:!0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{margin:10,textStyle:{color:this.option.nameColor||"#333",fontSize:this.option.yNameFontSize||14}}},grid:{top:"center",height:10*Number(this.option.split),left:this.option.gridX||70,right:this.option.gridX2||100},series:[{type:"pictorialBar",symbol:n,symbolRepeat:"fixed",symbolMargin:"5%",symbolClip:!0,symbolSize:this.option.symbolSize||30,symbolBoundingData:o,data:function(){return t.map((function(e){return e.value}))}()},{type:"pictorialBar",itemStyle:{normal:{opacity:.2}},label:{normal:{show:!0,position:"right",offset:[10,0],textStyle:{color:i,fontSize:r}}},animationDuration:0,symbol:n,symbolRepeat:"fixed",symbolMargin:"5%",symbolSize:30,symbolBoundingData:o,data:function(){return t.map((function(e){return e.value}))}()}]};this.myChart.resize(),this.myChart.setOption(a,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"radar",x2:function(){return this.option.gridX2||"80%"},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:function(){return Object.assign(function(){return e.formatter?{formatter:function(t){return e.formatter(t,e.dataChart)}}:{}}(),{backgroundColor:e.option.tipBackgroundColor||"rgba(50,50,50,0.7)",textStyle:{fontSize:e.option.tipFontSize||14,color:e.option.tipColor||"#fff"}})}(),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},legend:{show:this.vaildData(this.option.legend,!1),top:0,x:this.option.legendPostion||"right",right:this.x2,textStyle:{fontSize:this.option.legendFontSize||12},data:function(){return(t.series[0].data||[]).map((function(t,n){return{name:t.name,textStyle:e.ishasprop(!e.option.switchTheme,{color:e.getColor(n,!0)},{})}}))}()},radar:{name:{fontSize:this.option.radarNameSize||12,color:this.option.radarNameColor||"#333"},indicator:t.indicator||[],shape:this.option.shape||"polygon",radius:this.option.radius||"75%"},series:function(){return e.option.barColor,[{type:"radar",barWidth:e.option.barWidth||16,barMinHeight:e.option.barMinHeight||0,itemStyle:{barBorderRadius:e.option.barRadius||0},data:function(){return(t.series[0].data||[]).map((function(t,n){return{name:t.name,value:t.value,label:{show:e.vaildData(e.option.labelShow,!1),textStyle:{fontSize:e.option.fontSize||14,color:e.getColor(n),fontWeight:e.option.labelShowFontWeight||500}},areaStyle:{color:e.getColor(n),opacity:e.option.areaOpacity||.9}}}))}()}]}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"funnel",computed:{x2:function(){return this.option.gridX2||20},fontSize:function(){return this.option.fontSize||14}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:this.ishasprop(this.formatter,{formatter:function(t){return e.formatter(t,e.dataChart)}},{backgroundColor:this.option.tipBackgroundColor||"rgba(50,50,50,0.7)",textStyle:{fontSize:this.option.tipFontSize,color:this.option.tipColor||"#fff"}}),grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},legend:{show:this.vaildData(this.option.legend,!1),orient:this.option.legendOrient||"horizontal",top:0,x:this.option.legendPostion||"right",right:this.x2,textStyle:{fontSize:this.option.legendFontSize||12},data:function(){return t.map((function(e,t){return e.name}))}()},series:function(){return e.option.barColor,[{type:"funnel",animationDelay:function(e){return 200*Math.random()},label:{show:e.vaildData(e.option.labelShow,!1),fontSize:e.fontSize},data:function(){var n=t;return e.option.notCount&&(n=n.filter((function(e){if(0!==e.value&&e.value)return!0}))),e.option.sort&&n.sort((function(e,t){return e.value-t.value})),n}(),itemStyle:e.ishasprop(!e.switchTheme,{normal:{color:function(t){return e.getColor(t.dataIndex)}}},{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}})}]}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"scatter",computed:{x2:function(){return this.option.gridX2||20}},methods:{updateChart:function(){var e=this,t=this.deepClone(this.dataChart),n={title:this.ishasprop(this.option.titleShow,{text:this.option.title,subtext:this.option.subtext||"",textStyle:{color:this.option.titleColor||"#333",fontSize:this.option.titleFontSize||16},left:this.option.titlePostion||"auto",subtextStyle:{color:this.option.subTitleColor||"#aaa",fontSize:this.option.subTitleFontSize||14}},{}),tooltip:{formatter:this.option.formatter||"",backgroundColor:this.option.tipBackgroundColor||"rgba(50,50,50,0.7)",textStyle:{fontSize:this.option.tipFontSize,color:this.option.tipColor||"#fff"}},grid:{left:this.option.gridX||20,top:this.option.gridY||60,right:this.x2,bottom:this.option.gridY2||60},xAxis:{splitLine:{lineStyle:{type:"dashed"}}},yAxis:{splitLine:{lineStyle:{type:"dashed"}}},series:function(){return e.option.barColor,(t||[]).map((function(t,n){return Object.assign(t,{type:"scatter",itemStyle:{color:e.getColor(n)},label:{show:e.vaildData(e.option.labelShow,!1),position:"top",textStyle:{fontSize:e.option.fontSize||14,color:e.option.labelShowColor||"#333",fontWeight:e.option.labelShowFontWeight||500}}})}))}()};this.myChart.resize(),this.myChart.setOption(n,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"common",methods:{updateChart:function(){var e=this.deepClone(this.dataChart)||[],t=this.echartFormatter(e);this.myChart.resize(),this.myChart.setOption(t,!0)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,r.default)({name:"image-preview",data:function(){return{left:0,top:0,scale:1,datas:[],rotate:0,isShow:!1,index:0,onClose:null}},computed:{styleBoxName:function(){return{marginLeft:this.setPx(this.left),marginTop:this.setPx(this.top)}},styleName:function(){return{transform:"scale("+this.scale+") rotate("+this.rotate+"deg)",maxWidth:"100%",maxHeight:"100%"}},isRrrow:function(){return 1!=this.imgLen},imgLen:function(){return this.imgList.length},imgList:function(){return this.datas.map((function(e){return e.url}))}},methods:{getIsVideo:function(e){return this.$typeList.video.test(e.url)||"video"==e.type?{is:"video"}:{}},subScale:function(){.2!=this.scale&&(this.scale=parseFloat((this.scale-.2).toFixed(2)))},addScale:function(){this.scale=parseFloat((this.scale+.2).toFixed(2))},handleChange:function(){this.scale=1,this.rotate=0},move:function(e){var t=this,n=e.clientX,i=e.clientY;document.onmousemove=function(e){var r=e.clientX-n,o=e.clientY-i;n=e.clientX,i=e.clientY,t.left=t.left+r,t.top=t.top+o},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}},close:function(){this.isShow=!1,"function"==typeof this.onClose&&this.onClose(this)}}})},function(e,t,n){e.exports=n(121)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=n(122),o=i(r),a=n(9),s=n(5),l=n(335),c=i(l),u=n(336),d=i(u),h=n(67);n(339);var f=n(24),p=i(f),g=n(28),m=i(g),v=n(340),b=i(v),y=n(341),_=i(y),w=n(342),x=i(w),C=n(343),S=i(C),k=n(345),O=i(k),M={$Print:x.default,$Clipboard:_.default,$Log:p.default,$NProgress:S.default,$Screenshot:b.default,deepClone:s.deepClone,dataURLtoFile:s.dataURLtoFile,isJson:s.isJson,setPx:s.setPx,vaildData:s.vaildData,sortArrys:s.sortArrys,findArray:s.findArray,validatenull:a.validatenull,downFile:s.downFile,loadScript:s.loadScript,watermark:h.watermark,asyncValidator:a.asyncValidator,findObject:s.findObject},D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.use(d.default),e.directive("dialogdrag",c.default),Object.keys(o.default).map((function(t){var n=o.default[t];e.component(n.name,n)})),Object.keys(M).forEach((function(t){e.prototype[t]=M[t]})),m.default.use(t.locale),m.default.i18n(t.i18n),e.prototype.$axios=t.axios||window.axios,e.prototype.$typeList={img:/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)/,video:/\.(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/},e.prototype.$ImagePreview=(0,O.default)(e),"dark"===t.theme&&(document.documentElement.className="avue-theme--dark"),e.prototype.$uploadFun=function(e){e=e||this;var t=["uploadPreview","uploadBefore","uploadAfter","uploadDelete","uploadError","uploadExceed"],n={};return t.forEach((function(t){n[t]=e[t]})),n},e.prototype.$AVUE={ui:function(){return window.antd?(e.prototype.moment=window.moment,{name:"antd",type:"a"}):window.Element?{name:"element-ui",type:"el"}:void 0}(),size:t.size||"small",tableSize:t.tableSize,formSize:t.formSize,menuType:t.menuType||"text",canvas:Object.assign({text:"avuejs.com",fontFamily:"microsoft yahei",color:"#999",fontSize:16,opacity:100,bottom:10,right:10,ratio:1},t.canvas),qiniu:Object.assign({AK:"",SK:"",scope:"",url:"",bucket:"https://upload.qiniup.com",deadline:1},t.qiniu||{}),ali:Object.assign({region:"",endpoint:"",stsToken:"",accessKeyId:"",accessKeySecret:"",bucket:""},t.ali||{})}};"undefined"!=typeof window&&window.Vue&&D(window.Vue);var E=Object.assign({version:"2.6.11",locale:m.default.locale,install:D},o.default);e.exports=E,e.exports.default=e.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(123),o=i(r),a=n(126),s=i(a),l=n(129),c=i(l),u=n(131),d=i(u),h=n(133),f=i(h),p=n(135),g=i(p),m=n(161),v=i(m),b=n(163),y=i(b),_=n(165),w=i(_),x=n(167),C=i(x),S=n(169),k=i(S),O=n(174),M=i(O),D=n(176),E=i(D),T=n(178),L=i(T),I=n(180),A=i(I),N=n(182),P=i(N),R=n(186),F=i(R),j=n(188),B=i(j),z=n(190),V=i(z),$=n(192),W=i($),H=n(194),U=i(H),q=n(196),G=i(q),K=n(198),Y=i(K),X=n(200),Z=i(X),Q=n(202),J=i(Q),ee=n(204),te=i(ee),ne=n(206),ie=i(ne),re=n(208),oe=i(re),ae=n(210),se=i(ae),le=n(212),ce=i(le),ue=n(214),de=i(ue),he=n(216),fe=i(he),pe=n(218),ge=i(pe),me=n(220),ve=i(me),be=n(225),ye=i(be),_e=n(227),we=i(_e),xe=n(229),Ce=i(xe),Se=n(234),ke=i(Se),Oe=n(236),Me=i(Oe),De=n(238),Ee=i(De),Te=n(240),Le=i(Te),Ie=n(242),Ae=i(Ie),Ne=n(244),Pe=i(Ne),Re=n(246),Fe=i(Re),je=n(248),Be=i(je),ze=n(250),Ve=i(ze),$e=n(253),We=i($e),He=n(255),Ue=i(He),qe=n(257),Ge=i(qe),Ke=n(6),Ye=i(Ke),Xe=n(259),Ze=i(Xe),Qe=n(286),Je=i(Qe);window.Element||Ye.default.logs("element-ui"),t.default=Object.assign(Ze.default,Je.default,{Arrays:Ue.default,Affix:o.default,Avatar:c.default,Article:d.default,Carousel:f.default,Crud:g.default,Code:y.default,Card:v.default,Chat:w.default,Comment:C.default,Form:k.default,Checkbox:M.default,Date:E.default,CountUp:s.default,Draggable:L.default,Empty:A.default,Flow:P.default,Notice:F.default,License:B.default,Progress:V.default,Time:W.default,Input:U.default,Radio:G.default,Select:Y.default,Cascader:Z.default,InputColor:J.default,InputNumber:te.default,InputTree:ie.default,InputIcon:se.default,InputMap:oe.default,InputTable:ce.default,Switchs:fe.default,Rate:ge.default,Upload:ve.default,Slider:we.default,Keyboard:Ce.default,Group:ke.default,Tree:Me.default,Title:Ee.default,Search:Le.default,Tabs:Pe.default,Queue:Be.default,Dynamic:Fe.default,Video:Ve.default,Verifys:de.default,textEllipsis:Ge.default,Skeleton:Ae.default,Sign:ye.default,Login:We.default})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(125),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e,t,n){return t?e+n+t:e},r=function e(t,n){if("string"==typeof n)return i(t,n,"--");if(Array.isArray(n))return n.map((function(n){return e(t,n)}));var r={};return Object.keys(n||{}).forEach((function(e){r[t+"--"+e]=n[e]})),r};t.default={methods:{b:function(e,t){var n=this.$options.name;return e&&"string"!=typeof e&&(t=e,e=""),e=i(n,e,"__"),t?[e,r(e,t)]:e}}}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{ref:"point",class:{"avue-affix":e.affix},style:e.styles},[e._t("default")],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.slot,expression:"slot"}],style:e.slotStyle})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(128),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){var i,r;!function(o,a){i=a,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(0,(function(e,t,n){return function(e,t,n,i,r,o){function a(e){var t,n,i,r,o,a,s=e<0;if(e=Math.abs(e).toFixed(c.decimals),e+="",t=e.split("."),n=t[0],i=t.length>1?c.options.decimal+t[1]:"",c.options.useGrouping){for(r="",o=0,a=n.length;o<a;++o)0!==o&&o%3==0&&(r=c.options.separator+r),r=n[a-o-1]+r;n=r}return c.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return c.options.numerals[+e]})),i=i.replace(/[0-9]/g,(function(e){return c.options.numerals[+e]}))),(s?"-":"")+c.options.prefix+n+i+c.options.suffix}function s(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t}function l(e){return"number"==typeof e&&!isNaN(e)}var c=this;if(c.version=function(){return"1.9.3"},c.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:s,formattingFn:a,prefix:"",suffix:"",numerals:[]},o&&"object"==typeof o)for(var u in c.options)o.hasOwnProperty(u)&&null!==o[u]&&(c.options[u]=o[u]);""===c.options.separator?c.options.useGrouping=!1:c.options.separator=""+c.options.separator;for(var d=0,h=["webkit","moz","ms","o"],f=0;f<h.length&&!window.requestAnimationFrame;++f)window.requestAnimationFrame=window[h[f]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[h[f]+"CancelAnimationFrame"]||window[h[f]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,t){var n=(new Date).getTime(),i=Math.max(0,16-(n-d)),r=window.setTimeout((function(){e(n+i)}),i);return d=n+i,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),c.initialize=function(){return!(!c.initialized&&(c.error="",c.d="string"==typeof e?document.getElementById(e):e,c.d?(c.startVal=Number(t),c.endVal=Number(n),l(c.startVal)&&l(c.endVal)?(c.decimals=Math.max(0,i||0),c.dec=Math.pow(10,c.decimals),c.duration=1e3*Number(r)||2e3,c.countDown=c.startVal>c.endVal,c.frameVal=c.startVal,c.initialized=!0,0):(c.error="[CountUp] startVal ("+t+") or endVal ("+n+") is not a number",1)):(c.error="[CountUp] target is null or undefined",1)))},c.printValue=function(e){var t=c.options.formattingFn(e);"INPUT"===c.d.tagName?this.d.value=t:"text"===c.d.tagName||"tspan"===c.d.tagName?this.d.textContent=t:this.d.innerHTML=t},c.count=function(e){c.startTime||(c.startTime=e),c.timestamp=e;var t=e-c.startTime;c.remaining=c.duration-t,c.options.useEasing?c.countDown?c.frameVal=c.startVal-c.options.easingFn(t,0,c.startVal-c.endVal,c.duration):c.frameVal=c.options.easingFn(t,c.startVal,c.endVal-c.startVal,c.duration):c.countDown?c.frameVal=c.startVal-(c.startVal-c.endVal)*(t/c.duration):c.frameVal=c.startVal+(c.endVal-c.startVal)*(t/c.duration),c.countDown?c.frameVal=c.frameVal<c.endVal?c.endVal:c.frameVal:c.frameVal=c.frameVal>c.endVal?c.endVal:c.frameVal,c.frameVal=Math.round(c.frameVal*c.dec)/c.dec,c.printValue(c.frameVal),t<c.duration?c.rAF=requestAnimationFrame(c.count):c.callback&&c.callback()},c.start=function(e){c.initialize()&&(c.callback=e,c.rAF=requestAnimationFrame(c.count))},c.pauseResume=function(){c.paused?(c.paused=!1,delete c.startTime,c.duration=c.remaining,c.startVal=c.frameVal,requestAnimationFrame(c.count)):(c.paused=!0,cancelAnimationFrame(c.rAF))},c.reset=function(){c.paused=!1,delete c.startTime,c.initialized=!1,c.initialize()&&(cancelAnimationFrame(c.rAF),c.printValue(c.startVal))},c.update=function(e){if(c.initialize()){if(e=Number(e),!l(e))return void(c.error="[CountUp] update() - new endVal is not a number: "+e);c.error="",e!==c.frameVal&&(cancelAnimationFrame(c.rAF),c.paused=!1,delete c.startTime,c.startVal=c.frameVal,c.endVal=e,c.countDown=c.startVal>c.endVal,c.rAF=requestAnimationFrame(c.count))}},c.initialize()&&c.printValue(c.startVal)}}))},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v(e._s(e.end))])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(130),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{class:[e.b(),e.sizeCls,e.b("icon")],style:e.sizeStyle},[e.src?n("img",{class:e.b("images"),attrs:{src:e.src,alt:""}}):e.icon?n("i",{class:e.icon}):n("span",{ref:"avatarChildren",class:e.b("string"),style:e.sizeChildrenStyle},[e._t("default")],2)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(21),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(132),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("div",{class:e.b("header")},[e.title?n("div",{class:e.b("title"),domProps:{textContent:e._s(e.title)}}):e._e(),e.meta?n("small",{class:e.b("meta"),domProps:{textContent:e._s(e.meta)}}):e._e()]),e.lead?n("div",{class:e.b("lead"),domProps:{textContent:e._s(e.lead)}}):e._e(),e.body?n("div",{class:e.b("body"),domProps:{innerHTML:e._s(e.body)}}):e._e()])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(134),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.b(),{"avue-carousel--fullscreen":e.option.fullscreen}]},[n("el-carousel",{attrs:{type:e.option.type,height:e.option.height+"px",autoplay:e.option.autoplay,interval:e.option.interval,"indicator-position":"outside"}},e._l(e.data,(function(t,i){return n("el-carousel-item",{key:i},[n("div",{class:e.b("item")},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target}},[n("div",{class:e.b("img"),style:{backgroundImage:"url("+t.src+")"}}),t.title?n("div",{class:e.b("title")},[e._v(e._s(t.title))]):e._e()])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(160),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(){return n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},n.apply(this,arguments)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return s=a()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=Function.bind.apply(e,i),a=new r;return n&&o(a,n.prototype),a},s.apply(null,arguments)}function l(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){function n(){return s(e,arguments,r(this).constructor)}if(null===e||!l(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,e)})(e)}function u(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"==typeof r)return r.apply(null,t.slice(1));if("string"==typeof r){for(var a=String(r).replace(W,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}})),s=t[i];i<o;s=t[++i])a+=" "+s;return a}return r}function h(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function f(e,t){return void 0===e||null===e||!("array"!==t||!Array.isArray(e)||e.length)||!(!h(t)||"string"!=typeof e||e)}function p(e,t,n){function i(e){r.push.apply(r,e),++o===a&&n(r)}var r=[],o=0,a=e.length;e.forEach((function(e){t(e,i)}))}function g(e,t,n){function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}var r=0,o=e.length;i([])}function m(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function v(e,t,n,i){if(t.first){var r=new Promise((function(t,r){var o=function(e){return i(e),e.length?r(new U(e,u(e))):t()};g(m(e),n,o)}));return r.catch((function(e){return e})),r}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var a=Object.keys(e),s=a.length,l=0,c=[],d=new Promise((function(t,r){var d=function(e){if(c.push.apply(c,e),++l===s)return i(c),c.length?r(new U(c,u(c))):t()};a.length||(i(c),t()),a.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?g(i,n,d):p(i,n,d)}))}));return d.catch((function(e){return e})),d}function b(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}}function y(e,t){if(t)for(var i in t)if(t.hasOwnProperty(i)){var r=t[i];"object"==typeof r&&"object"==typeof e[i]?e[i]=n(n({},e[i]),r):e[i]=r}return e}function _(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!f(t,o||e.type)||i.push(d(r.messages.required,e.fullField))}function w(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(d(r.messages.whitespace,e.fullField))}function x(e,t,n,i,r){if(e.required&&void 0===t)_(e,t,n,i,r);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?G[a](t)||i.push(d(r.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&i.push(d(r.messages.types[a],e.fullField,e.type))}}function C(e,t,n,i,r){var o="number"==typeof e.len,a="number"==typeof e.min,s="number"==typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=t,u=null,h="number"==typeof t,f="string"==typeof t,p=Array.isArray(t);if(h?u="number":f?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),f&&(c=t.replace(l,"_").length),o?c!==e.len&&i.push(d(r.messages[u].len,e.fullField,e.len)):a&&!s&&c<e.min?i.push(d(r.messages[u].min,e.fullField,e.min)):s&&!a&&c>e.max?i.push(d(r.messages[u].max,e.fullField,e.max)):a&&s&&(c<e.min||c>e.max)&&i.push(d(r.messages[u].range,e.fullField,e.min,e.max))}function S(e,t,n,i,r){e[K]=Array.isArray(e[K])?e[K]:[],-1===e[K].indexOf(t)&&i.push(d(r.messages[K],e.fullField,e[K].join(", ")))}function k(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(d(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(d(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}function O(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();Y.required(e,t,i,o,r,"string"),f(t,"string")||(Y.type(e,t,i,o,r),Y.range(e,t,i,o,r),Y.pattern(e,t,i,o,r),!0===e.whitespace&&Y.whitespace(e,t,i,o,r))}n(o)}function M(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&Y.type(e,t,i,o,r)}n(o)}function D(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(""===t&&(t=void 0),f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&(Y.type(e,t,i,o,r),Y.range(e,t,i,o,r))}n(o)}function E(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&Y.type(e,t,i,o,r)}n(o)}function T(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),f(t)||Y.type(e,t,i,o,r)}n(o)}function L(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&(Y.type(e,t,i,o,r),Y.range(e,t,i,o,r))}n(o)}function I(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&(Y.type(e,t,i,o,r),Y.range(e,t,i,o,r))}n(o)}function A(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t,"array")&&!e.required)return n();Y.required(e,t,i,o,r,"array"),f(t,"array")||(Y.type(e,t,i,o,r),Y.range(e,t,i,o,r))}n(o)}function N(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&Y.type(e,t,i,o,r)}n(o)}function P(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r),void 0!==t&&Y[X](e,t,i,o,r)}n(o)}function R(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t,"string")&&!e.required)return n();Y.required(e,t,i,o,r),f(t,"string")||Y.pattern(e,t,i,o,r)}n(o)}function F(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();var a;if(Y.required(e,t,i,o,r),!f(t))a="number"==typeof t?new Date(t):t,Y.type(e,a,i,o,r),a&&Y.range(e,a.getTime(),i,o,r)}n(o)}function j(e,t,n,i,r){var o=[],a=Array.isArray(t)?"array":typeof t;Y.required(e,t,i,o,r,a),n(o)}function B(e,t,n,i,r){var o=e.type,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t,o)&&!e.required)return n();Y.required(e,t,i,a,r,o),f(t,o)||Y.type(e,t,i,a,r)}n(a)}function z(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(f(t)&&!e.required)return n();Y.required(e,t,i,o,r)}n(o)}function V(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}function $(e){this.rules=null,this._messages=Q,this.define(e)}var W=/%[sdj%]/g,H=function(){};void 0!==e&&e.env&&"production"!==e.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(H=function(e,t){"undefined"!=typeof console&&console.warn&&t.every((function(e){return"string"==typeof e}))&&console.warn(e,t)});var U=function(e){function t(t,n){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=t,i.fields=n,i}return i(t,e),t}(c(Error)),q={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},G={integer:function(e){return G.number(e)&&parseInt(e,10)===e},float:function(e){return G.number(e)&&!G.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!G.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(q.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(q.url)},hex:function(e){return"string"==typeof e&&!!e.match(q.hex)}},K="enum",Y={required:_,whitespace:w,type:x,range:C,enum:S,pattern:k},X="enum",Z={string:O,method:M,number:D,boolean:E,regexp:T,integer:L,float:I,array:A,object:N,enum:P,pattern:R,date:F,url:B,hex:B,email:B,required:j,any:z},Q=V();$.prototype={messages:function(e){return e&&(this._messages=y(V(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,i){function r(e){var t,n=[],i={};for(t=0;t<e.length;t++)!function(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}(e[t]);n.length?i=u(n):(n=null,i=null),l(n,i)}var o=this;void 0===t&&(t={}),void 0===i&&(i=function(){});var a=e,s=t,l=i;if("function"==typeof s&&(l=s,s={}),!this.rules||0===Object.keys(this.rules).length)return l&&l(),Promise.resolve();if(s.messages){var c=this.messages();c===Q&&(c=V()),y(c,s.messages),s.messages=c}else s.messages=this.messages();var h,f,p={};(s.keys||Object.keys(this.rules)).forEach((function(t){h=o.rules[t],f=a[t],h.forEach((function(i){var r=i;"function"==typeof r.transform&&(a===e&&(a=n({},a)),f=a[t]=r.transform(f)),r="function"==typeof r?{validator:r}:n({},r),r.validator=o.getValidationMethod(r),r.field=t,r.fullField=r.fullField||t,r.type=o.getType(r),r.validator&&(p[t]=p[t]||[],p[t].push({rule:r,value:f,source:a,field:t}))}))}));var g={};return v(p,s,(function(e,t){function i(e,t){return n(n({},t),{},{fullField:a.fullField+"."+e})}function r(r){void 0===r&&(r=[]);var o=r;if(Array.isArray(o)||(o=[o]),!s.suppressWarning&&o.length&&$.warning("async-validator:",o),o.length&&a.message&&(o=[].concat(a.message)),o=o.map(b(a)),s.first&&o.length)return g[a.field]=1,t(o);if(l){if(a.required&&!e.value)return a.message?o=[].concat(a.message).map(b(a)):s.error&&(o=[s.error(a,d(s.messages.required,a.field))]),t(o);var c={};if(a.defaultField)for(var u in e.value)e.value.hasOwnProperty(u)&&(c[u]=a.defaultField);for(var h in c=n(n({},c),e.rule.fields),c)if(c.hasOwnProperty(h)){var f=Array.isArray(c[h])?c[h]:[c[h]];c[h]=f.map(i.bind(null,h))}var p=new $(c);p.messages(s.messages),e.rule.options&&(e.rule.options.messages=s.messages,e.rule.options.error=s.error),p.validate(e.value,e.rule.options||s,(function(e){var n=[];o&&o.length&&n.push.apply(n,o),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(o)}var o,a=e.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!=typeof a.fields&&"object"!=typeof a.defaultField);l=l&&(a.required||!a.required&&e.value),a.field=e.field,a.asyncValidator?o=a.asyncValidator(a,e.value,r,e.source,s):a.validator&&(o=a.validator(a,e.value,r,e.source,s),!0===o?r():!1===o?r(a.message||a.field+" fails"):o instanceof Array?r(o):o instanceof Error&&r(o.message)),o&&o.then&&o.then((function(){return r()}),(function(e){return r(e)}))}),(function(e){r(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!Z.hasOwnProperty(e.type))throw new Error(d("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Z.required:Z[this.getType(e)]||!1}},$.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Z[e]=t},$.warning=H,$.messages=Q,$.validators=Z,t.default=$}.call(t,n(137))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(e){if(u===setTimeout)return setTimeout(e,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(e,0);try{return u(e,0)}catch(t){try{return u.call(null,e,0)}catch(t){return u.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){g&&f&&(g=!1,f.length?p=f.concat(p):m=-1,p.length&&s())}function s(){if(!g){var e=r(a);g=!0;for(var t=p.length;t;){for(f=p,p=[];++m<t;)f&&f[m].run();m=-1,t=p.length}f=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function c(){}var u,d,h=e.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(e){u=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(e){d=i}}();var f,p=[],g=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new l(e,t)),1!==p.length||g||r(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(139),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b("pagination")},[n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.pageFlag,expression:"pageFlag"}],attrs:{small:e.crud.isMobile,disabled:e.defaultPage.disabled,"hide-on-single-page":e.vaildData(e.crud.tableOption.simplePage,e.config.simplePage),"pager-count":e.defaultPage.pagerCount,"current-page":e.defaultPage.currentPage,background:e.vaildData(e.defaultPage.background,e.config.pageBackground),"page-size":e.defaultPage.pageSize,"page-sizes":e.defaultPage.pageSizes,layout:e.defaultPage.layout,total:e.defaultPage.total},on:{"update:currentPage":function(t){return e.$set(e.defaultPage,"currentPage",t)},"update:current-page":function(t){return e.$set(e.defaultPage,"currentPage",t)},"size-change":e.sizeChange,"prev-click":e.prevClick,"next-click":e.nextClick,"current-change":e.currentChange}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(145),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={common:{condition:"条件",display:"显示",hide:"隐藏"},tip:{select:"请选择",input:"请输入"},upload:{upload:"点击上传",tip:"将文件拖到此处,或"},date:{start:"开始日期",end:"结束日期",tip:"至",t:"今日",y:"昨日",n:"近7天",a:"全部"},form:{printBtn:"打 印",mockBtn:"模 拟",submit:"提 交",empty:"清 空"},crud:{summary:{count:"计数:",avg:"平均:",sum:"合计:"},filter:{addBtn:"新增条件",clearBtn:"清空数据",resetBtn:"清空条件",cancelBtn:"取 消",submitBtn:"确 定"},tipStartTitle:"当前表格已选择",tipEndTitle:"项",editTitle:"编 辑",copyTitle:"复 制",addTitle:"新 增",viewTitle:"查 看",filterTitle:"过滤条件",showTitle:"列显隐",menu:"操作",addBtn:"新 增",show:"显 示",hide:"隐 藏",showBtn:"显 隐",filterBtn:"过 滤",refreshBtn:"刷 新",printBtn:"打 印",excelBtn:"导 出",updateBtn:"修 改",cancelBtn:"取 消",searchBtn:"搜 索",emptyBtn:"清 空",menuBtn:"功 能",saveBtn:"保 存",viewBtn:"查 看",editBtn:"编 辑",copyBtn:"复 制",delBtn:"删 除"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={common:{condition:"condition",display:"display",hide:"hide"},tip:{select:"please select",input:"please input"},upload:{upload:"upload",tip:"Drag files here,/"},date:{start:"Start date",end:"End date",tip:"to",t:"today",y:"yesterday",n:"nearly 7",a:"whole"},form:{printBtn:"print",mockBtn:"mock",submit:"submit",empty:"empty"},crud:{summary:{count:"count:",avg:"avg:",sum:"sum:"},filter:{addBtn:"add",clearBtn:"clear",resetBtn:"reset",cancelBtn:"cancel",submitBtn:"submit"},tipStartTitle:"Currently selected",tipEndTitle:"term",editTitle:"edit",copyTitle:"copy",addTitle:"add",viewTitle:"view",filterTitle:"filter",showTitle:"showTitle",menu:"menu",addBtn:"add",show:"show",hide:"hide",showBtn:"show",filterBtn:"filter",refreshBtn:"refresh",printBtn:"print",excelBtn:"excel",updateBtn:"update",cancelBtn:"cancel",searchBtn:"search",emptyBtn:"empty",menuBtn:"menu",saveBtn:"save",viewBtn:"view",editBtn:"edit",copyBtn:"copy",delBtn:"del"}}},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e){return!!e&&"object"==typeof e}function t(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||n(e)}function n(e){return e.$$typeof===f}function i(e){return Array.isArray(e)?[]:{}}function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u(i(e),e,t):e}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function a(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}function s(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}function l(e){return Object.keys(e).concat(s(e))}function c(e,t,n){var i={};return n.isMergeableObject(e)&&l(e).forEach((function(t){i[t]=r(e[t],n)})),l(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?i[o]=a(o,n)(e[o],t[o],n):i[o]=r(t[o],n)})),i}function u(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||o,n.isMergeableObject=n.isMergeableObject||d;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):c(e,t,n):r(t,n)}var d=function(n){return e(n)&&!t(n)},h="function"==typeof Symbol&&Symbol.for,f=h?Symbol.for("react.element"):60103;return u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})},u}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){function t(){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return 1===t.length&&"object"===i(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),a.replace(o,(function(e,n,i,o){var s=void 0;return"{"===a[o-1]&&"}"===a[o+e.length]?i:(s=(0,r.hasOwn)(t,i)?t[i]:null,null===s||void 0===s?"":s)}))}return t};var r=n(5),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-collapse-transition",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchShow&&e.searchFlag,expression:"searchShow && searchFlag"}],class:e.b()},[e.flag?n("avue-form",{ref:"form",attrs:{option:e.option},on:{submit:e.searchChange,"reset-change":e.resetChange},scopedSlots:e._u([{key:"menuForm",fn:function(t){var n=t.size;return[e._t("searchMenu",null,{row:e.searchForm,size:n})]}},e._l(e.columnOption,(function(t){return{key:t.prop,fn:function(n){return[t.searchslot?e._t(t.prop,null,{value:n.value,column:n.column,dic:n.dic,size:n.size,label:n.label,disabled:n.disabled,row:e.searchForm}):e._e()]}}})),{key:"search",fn:function(t){return[e._t("search",null,{row:e.searchForm,size:e.crud.controlSize})]}}],null,!0),model:{value:e.searchForm,callback:function(t){e.searchForm=t},expression:"searchForm"}}):e._e()],1)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(150),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(149),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.getComponent(e.column.type,e.column.component),e._g(e._b({ref:"temp",tag:"component",attrs:{column:Object.assign(e.column,e.params),dic:e.dic,disabled:e.column.disabled||e.disabled,readonly:e.column.readonly||e.readonly,placeholder:e.getPlaceholder(e.column),props:e.column.props||e.props,propsHttp:e.column.propsHttp||e.propsHttp,size:e.column.size||e.size,type:e.type||e.column.type},on:{change:e.handleChange},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.enterChange(t)}},scopedSlots:e._u([{key:e.column.prop+"Type",fn:function(t){var n=t.item,i=t.label,r=t.value,o=t.node,a=t.data;return e.column.typeslot?[e._t(e.column.prop+"Type",null,{item:n,node:o,data:a,value:r,label:i})]:void 0}},e._l(e.columnOption,(function(t){return{key:t.prop,fn:function(n){return[t.slot?e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label}):e._e()]}}}))],null,!0),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},"component",Object.assign(e.column,e.$uploadFun()),!1),e.event),[e.params.html?n("span",{domProps:{innerHTML:e._s(e.params.html)}}):e._e()])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-table-column",{attrs:{label:e.columnOption.label,"min-width":e.columnOption.minWidth,width:e.columnOption.width,"render-header":e.columnOption.renderHeader,align:e.columnOption.align||e.crud.tableOption.align,"header-align":e.columnOption.headerAlign||e.crud.tableOption.headerAlign,prop:e.columnOption.key}},[e._l(e.columnOption.children,(function(t){return[t.children&&t.children.length?n("dynamic-column",{key:t.label,attrs:{columnOption:t},scopedSlots:e._u([e._l(e.crud.propOption,(function(t,n){return{key:t.prop,fn:function(n){return[e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label})]}}}))],null,!0)}):["dynamic"].includes(t.type)?e._e():[e.vaildColumn(t)?n("el-table-column",{key:t.prop,attrs:{prop:t.prop,label:t.label,"filter-placement":"bottom-end",filters:e.handleFilters(t),"filter-method":t.filter?e.handleFiltersMethod:void 0,"filter-multiple":e.vaildData(t.filterMultiple,!0),"show-overflow-tooltip":t.overHidden,"min-width":t.minWidth,sortable:t.sortable,"render-header":t.renderHeader,align:t.align||e.crud.tableOption.align,"header-align":t.headerAlign||e.crud.tableOption.headerAlign,width:t.width,fixed:!e.crud.isMobile&&t.fixed},scopedSlots:e._u([{key:"default",fn:function(i){return n("span",{},[e.cellEditFlag(i.row,t)?n("form-temp",e._b({attrs:{column:t,size:"mini",dic:(e.crud.cascaderDIC[i.row.$index]||{})[t.prop]||e.crud.DIC[t.prop],t:e.t,props:t.props||e.crud.tableOption.props,readonly:t.readonly,disabled:e.crud.disabled||e.crud.tableOption.disabled||t.disabled||e.crud.btnDisabledList[i.row.$index],clearable:e.vaildData(t.clearable,!1)},on:{change:function(n){t.cascader&&e.handleChange(e.index,i.row)}},model:{value:i.row[t.prop],callback:function(n){e.$set(i.row,t.prop,n)},expression:"scope.row[column.prop]"}},"form-temp",e.$uploadFun(e.crud),!1)):t.slot?e._t(t.prop,null,{row:i.row,dic:e.crud.DIC[t.prop],size:e.crud.isMediumSize,label:e.handleShowLabel(i.row,t,e.crud.DIC[t.prop])}):[t.parentProp?n("span",{domProps:{innerHTML:e._s(e.handleDetail(i.row,t,(e.crud.cascaderDIC[i.row.$index]||{})[t.prop]))}}):["img","upload"].includes(t.type)?n("span",[n("div",{staticClass:"avue-crud__img"},e._l(e.getImgList(i,t),(function(r,o){return n("img",{key:o,attrs:{src:r},on:{click:function(n){e.openImg(e.getImgList(i,t),o)}}})})),0)]):["url"].includes(t.type)?n("span",e._l(e.corArray(i.row[t.prop],t.separator),(function(i,r){return n("el-link",{key:r,attrs:{type:"primary",href:i,target:t.target||"_blank"}},[e._v(e._s(i))])})),1):["rate"].includes(t.type)?n("span",[n("avue-rate",{attrs:{disabled:""},model:{value:i.row[t.prop],callback:function(n){e.$set(i.row,t.prop,n)},expression:"scope.row[column.prop]"}})],1):n("span",{domProps:{innerHTML:e._s(e.handleDetail(i.row,t,e.crud.DIC[t.prop]))}},[e._v("1")])]],2)}}],null,!0)}):e._e()]]}))],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._l(e.list,(function(t,i){return[t.children&&t.children.length?n("dynamic-column",{key:t.label,attrs:{columnOption:t},scopedSlots:e._u([e._l(e.crud.propOption,(function(t,n){return{key:t.prop,fn:function(n){return[e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label})]}}}))],null,!0)}):["dynamic"].includes(t.type)?e._e():[e.vaildColumn(t)?n("el-table-column",{key:t.prop,attrs:{prop:t.prop,label:t.label,"filter-placement":"bottom-end",filters:e.handleFilters(t),"filter-method":t.filter?e.handleFiltersMethod:void 0,"filter-multiple":e.vaildData(t.filterMultiple,!0),"show-overflow-tooltip":t.overHidden,"min-width":t.minWidth,sortable:t.sortable,"render-header":t.renderHeader,align:t.align||e.crud.tableOption.align,"header-align":t.headerAlign||e.crud.tableOption.headerAlign,width:t.width,fixed:!e.crud.isMobile&&t.fixed},scopedSlots:e._u([{key:"default",fn:function(r){return n("span",{},[e.cellEditFlag(r.row,t)?n("form-temp",e._b({attrs:{column:t,size:e.crud.isMediumSize,dic:(e.crud.cascaderDIC[r.row.$index]||{})[t.prop]||e.crud.DIC[t.prop],t:e.t,props:t.props||e.crud.tableOption.props,readonly:t.readonly,disabled:e.crud.disabled||e.crud.tableOption.disabled||t.disabled||e.crud.btnDisabledList[r.row.$index],clearable:e.vaildData(t.clearable,!1)},on:{change:function(n){t.cascader&&e.handleChange(i,r.row)}},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[column.prop]"}},"form-temp",e.$uploadFun(e.crud),!1)):t.slot?e._t(t.prop,null,{row:r.row,dic:e.crud.DIC[t.prop],size:e.crud.isMediumSize,label:e.handleShowLabel(r.row,t,e.crud.DIC[t.prop])}):[t.parentProp?n("span",[e._v(e._s(e.handleDetail(r.row,t,(e.crud.cascaderDIC[r.row.$index]||{})[t.prop])))]):["img","upload"].includes(t.type)?n("span",[n("div",{staticClass:"avue-crud__img"},e._l(e.getImgList(r,t),(function(i,o){return n("img",{key:o,attrs:{src:i},on:{click:function(n){e.openImg(e.getImgList(r,t),o)}}})})),0)]):["url"].includes(t.type)?n("span",e._l(e.corArray(r.row[t.prop],t.separator),(function(i,r){return n("el-link",{key:r,attrs:{type:"primary",href:i,target:t.target||"_blank"}},[e._v(e._s(i))])})),1):["rate"].includes(t.type)?n("span",[n("avue-rate",{attrs:{disabled:""},model:{value:r.row[t.prop],callback:function(n){e.$set(r.row,t.prop,n)},expression:"scope.row[column.prop]"}})],1):n("span",{domProps:{innerHTML:e._s(e.handleDetail(r.row,t,e.crud.DIC[t.prop]))}})]],2)}}],null,!0)}):e._e()]]}))],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(33),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(152),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b("menu")},[n("div",{class:e.b("left")},[e.vaildData(e.crud.tableOption.addBtn,e.config.addBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addBtn"),expression:"crud.getPermission('addBtn')"}],attrs:{type:"primary",icon:e.config.addBtnIcon,size:e.crud.isMediumSize},on:{click:e.crud.rowAdd}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("addBtn"))+"\n ")]],2):e._e(),e.vaildData(e.crud.tableOption.addRowBtn,e.config.addRowBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("addRowBtn"),expression:"crud.getPermission('addRowBtn')"}],attrs:{type:"primary",icon:e.config.addBtnIcon,size:e.crud.isMediumSize},on:{click:e.crud.rowCellAdd}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("addBtn"))+"\n ")]],2):e._e(),e.vaildData(e.crud.tableOption.printBtn,e.config.printBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("printBtn"),expression:"crud.getPermission('printBtn')"}],attrs:{type:"primary",icon:e.config.printBtnIcon,size:e.crud.isMediumSize},on:{click:e.rowPrint}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("printBtn"))+"\n ")]],2):e._e(),e.vaildData(e.crud.tableOption.excelBtn,e.config.excelBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("excelBtn"),expression:"crud.getPermission('excelBtn')"}],attrs:{type:"primary",icon:e.config.excelBtnIcon,size:e.crud.isMediumSize},on:{click:e.rowExcel}},[e.crud.isIconMenu?e._e():[e._v("\n "+e._s(e.crud.menuIcon("excelBtn"))+"\n ")]],2):e._e(),e._t("menuLeft")],2),n("div",{class:e.b("right")},[e._t("menuRight"),e.vaildData(e.crud.tableOption.dateBtn,e.config.dateBtn)?n("avue-date",{staticStyle:{display:"inline-block","margin-right":"20px"},attrs:{type:"datetimerange","value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",pickerOptions:e.pickerOptions,size:e.crud.isMediumSize},on:{change:e.dateChange}}):e._e(),n("el-tooltip",{attrs:{effect:"dark",content:e.t("crud.refreshBtn"),placement:"top"}},[e.vaildData(e.crud.tableOption.refreshBtn,e.config.refreshBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("refreshBtn"),expression:"crud.getPermission('refreshBtn')"}],attrs:{icon:e.config.refreshBtnIcon,circle:"",size:e.crud.isMediumSize},on:{click:e.crud.refreshChange}}):e._e()],1),n("el-tooltip",{attrs:{effect:"dark",content:e.t("crud.showBtn"),placement:"top"}},[e.vaildData(e.crud.tableOption.columnBtn,e.config.columnBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("columnBtn"),expression:"crud.getPermission('columnBtn')"}],attrs:{icon:e.config.columnBtnIcon,circle:"",size:e.crud.isMediumSize},on:{click:function(t){e.crud.$refs.dialogColumn.columnBox=!0}}}):e._e()],1),n("el-tooltip",{attrs:{effect:"dark",content:e.t("crud.searchBtn"),placement:"top"}},[(e.crud.$refs.headerSearch||{}).searchFlag?n("el-button",{attrs:{icon:e.config.searchBtnIcon,circle:"",size:e.crud.isMediumSize},on:{click:function(t){return e.crud.$refs.headerSearch.handleSearchShow()}}}):e._e()],1),n("el-tooltip",{attrs:{effect:"dark",content:e.t("crud.filterBtn"),placement:"top"}},[e.vaildData(e.crud.tableOption.filterBtn,e.config.filterBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.crud.getPermission("filterBtn"),expression:"crud.getPermission('filterBtn')"}],attrs:{icon:e.config.filterBtnIcon,circle:"",size:e.crud.isMediumSize},on:{click:function(t){e.crud.$refs.dialogFilter.box=!0}}}):e._e()],1)],2)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(154),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{staticClass:"avue-dialog",class:[e.b("dialog"),e.b("column")],attrs:{"lock-scroll":"","modal-append-to-body":!1,"append-to-body":"",title:e.t("crud.showTitle"),size:e.crud.isMobile?"100%":"50%",visible:e.columnBox},on:{"update:visible":function(t){e.columnBox=t}}},[n("el-transfer",{ref:"transfer",attrs:{titles:[e.t("crud.hide"),e.t("crud.show")],filterable:"",data:e.columnList},model:{value:e.columnIndex,callback:function(t){e.columnIndex=t},expression:"columnIndex"}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(35),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(156),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-drawer",{staticClass:"avue-dialog",class:[e.b("dialog"),e.b("filter")],attrs:{"lock-scroll":"","modal-append-to-body":!1,"append-to-body":"",title:e.t("crud.filterTitle"),size:e.crud.isMobile?"100%":"60%",visible:e.box},on:{"update:visible":function(t){e.box=t}}},[n("el-row",{attrs:{span:24}},[n("div",{class:e.b("filter-menu")},[n("el-button-group",[n("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleAdd}},[e._v(e._s(e.t("crud.filter.addBtn")))]),n("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleClear}},[e._v(e._s(e.t("crud.filter.resetBtn")))]),n("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleValueClear}},[e._v(e._s(e.t("crud.filter.clearBtn")))])],1)],1),e._l(e.list,(function(t,i){return n("el-col",{key:i,class:e.b("filter-item"),attrs:{md:12,xs:24,sm:12}},[n("avue-select",{class:e.b("filter-label"),attrs:{dic:e.columnOption,props:e.columnProps,clearable:!1,size:e.crud.isMediumSize},on:{change:function(n){return e.handleChange(t.text,i)}},model:{value:t.text,callback:function(n){e.$set(t,"text",n)},expression:"column.text"}}),n("avue-select",{class:e.b("filter-symbol"),attrs:{dic:e.symbolDic,clearable:!1,size:e.crud.isMediumSize},model:{value:t.symbol,callback:function(n){e.$set(t,"symbol",n)},expression:"column.symbol"}}),n("form-temp",{class:e.b("filter-value"),attrs:{column:e.getColumnByIndex(e.columnList[i]),size:e.crud.isMediumSize,dic:e.crud.DIC[e.columnList[i].prop],t:e.t,props:e.columnList[i].props||e.crud.tableOption.props},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"column.value"}}),n("el-button",{class:e.b("filter-icon"),attrs:{type:"danger",size:"mini",circle:"",icon:"el-icon-minus"},on:{click:function(t){return e.handleDelete(i)}}})],1)})),n("el-col",{staticClass:"avue-form__menu avue-form__menu--right",attrs:{span:24}},[n("el-button",{attrs:{type:"primary",size:e.crud.isMediumSize},on:{click:e.handleSubmit}},[e._v(e._s(e.t("crud.filter.submitBtn")))]),n("el-button",{attrs:{size:e.crud.isMediumSize},on:{click:function(t){e.box=!1}}},[e._v(e._s(e.t("crud.filter.cancelBtn")))])],1)],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(36),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(158),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.dialogType,{directives:[{name:"dialogdrag",rawName:"v-dialogdrag",value:e.vaildData(e.crud.tableOption.dialogDrag,e.config.dialogDrag),expression:"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)"}],tag:"component",staticClass:"avue-dialog",class:e.b("dialog",{fullscreen:e.fullscreen}),attrs:{"lock-scroll":"","destroy-on-close":e.crud.tableOption.dialogDestroy,wrapperClosable:e.crud.tableOption.dialogClickModal,direction:e.direction,"custom-class":e.vaildData(e.crud.tableOption.customClass,e.config.customClass),fullscreen:e.fullscreen?e.fullscreen:!!e.crud.isMobile||e.crud.tableOption.dialogFullscreen,"modal-append-to-body":!1,"append-to-body":"",top:e.setPx(e.dialogTop),title:e.dialogTitle,"close-on-press-escape":e.crud.tableOption.dialogEscape,"close-on-click-modal":e.crud.tableOption.dialogClickModal,modal:e.crud.tableOption.dialogModal,"show-close":e.crud.tableOption.dialogCloseBtn,visible:e.boxVisible,size:e.size?e.size:e.width,width:e.setPx(e.width),"before-close":e.hide},on:{"update:visible":function(t){e.boxVisible=t}}},[n("div",{class:e.b("dialog__header"),attrs:{slot:"title"},slot:"title"},[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.dialogTitle))]),n("div",{class:e.b("dialog__menu")},[n("i",{staticClass:"el-dialog__close el-icon-full-screen",on:{click:e.handleFullScreen}})])]),n("el-scrollbar",{style:e.styleName},[e.boxVisible?n("avue-form",e._b({ref:"tableForm",attrs:{reset:!1,option:e.formOption},on:{submit:e.handleSubmit,"tab-click":e.handleTabClick,error:e.handleError,"reset-change":e.hide},scopedSlots:e._u([e._l(e.crud.columnFormOption,(function(t){return{key:t.prop,fn:function(n){return[t.formslot?e._t(t.prop,null,null,Object.assign(n,{row:t.dynamic?n.row:e.tableForm,index:t.dynamic?n.row.$index:e.crud.tableIndex})):e._e()]}}})),e._l(e.crud.columnFormOption,(function(t){return{key:t.prop+"Error",fn:function(n){return[t.errorslot?e._t(t.prop+"Error",null,null,Object.assign(n,{row:e.tableForm,index:e.crud.tableIndex})):e._e()]}}})),e._l(e.crud.columnFormOption,(function(t){return{key:t.prop+"Type",fn:function(n){return[t.typeslot?e._t(t.prop+"Type",null,null,Object.assign(n,{row:e.tableForm,index:e.crud.tableIndex})):e._e()]}}})),e._l(e.crud.columnFormOption,(function(t){return{key:t.prop+"Label",fn:function(n){return[t.labelslot?e._t(t.prop+"Label",null,null,Object.assign(n,{row:e.tableForm,index:e.crud.tableIndex})):e._e()]}}})),{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,Object.assign(t,{type:e.boxType}))]}}],null,!0),model:{value:e.tableForm,callback:function(t){e.tableForm=t},expression:"tableForm"}},"avue-form",e.$uploadFun(e.crud),!1)):e._e()],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return t.forEach((function(t,r){if(e.$set(t,"_index",r),n.push(t),t.children&&t.children.length>0){var o=i(e,t.children);n=n.concat(o)}})),n}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.parent,o=void 0===i?null:i,a=n.preIndex,s=void 0!==a&&a,l=n.level,c=void 0===l?1:l,u=n.expandLevel,d=void 0===u?0:u,h=n.expand,f=void 0!==h&&h,p=n.show,g=void 0===p||p;t.forEach((function(t,n){var i=(s?s+"-"+n:n)+"";e.$set(t,"_id",i),e.$set(t,"_level",c),e.$set(t,"_expand",function(){return!!f||0!==d&&c<d}()),e.$set(t,"_parent",o),e.$set(t,"_show",g),t.children&&t.children.length>0&&r(e,t.children,{parent:t,level:c+1,expand:f,expandLevel:d,preIndex:i,status:status})}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,t.addAttrs=r},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("header-search",{ref:"headerSearch",attrs:{search:e.search},scopedSlots:e._u([{key:"search",fn:function(t){var n=t.size,i=t.row;return[e._t("search",null,{row:i,size:n})]}},{key:"searchMenu",fn:function(t){var n=t.size,i=t.row;return[e._t("searchMenu",null,{row:i,size:n})]}},e._l(e.columnOption,(function(t){return{key:t.prop,fn:function(n){var i=n.value,r=n.column,o=n.dic,a=n.size,s=n.label,l=n.disabled;return[t.searchslot?e._t(t.prop+"Search",null,{value:i,column:r,dic:o,size:a,label:s,disabled:l,row:e.search}):e._e()]}}}))],null,!0)}),e.vaildData(e.tableOption.header,!0)?n("header-menu",{ref:"headerMenu"},[n("template",{slot:"menuLeft"},[e._t("menuLeft")],2),n("template",{slot:"menuRight"},[e._t("menuRight")],2)],2):e._e(),e.vaildData(e.tableOption.tip,e.config.tip)&&e.tableOption.selection?n("el-tag",{staticClass:"avue-crud__tip"},[n("span",{staticClass:"avue-crud__tip-name"},[e._v("\n "+e._s(e.t("crud.tipStartTitle"))+"\n "),n("span",{staticClass:"avue-crud__tip-count"},[e._v(e._s(e.selectLen))]),e._v("\n "+e._s(e.t("crud.tipEndTitle"))+"\n ")]),e.vaildData(e.tableOption.selectClearBtn,e.config.selectClearBtn)&&e.tableOption.selection?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("selectClearBtn"),expression:"getPermission('selectClearBtn')"}],attrs:{type:"text",size:"small"},on:{click:e.selectClear}},[e._v(e._s(e.t("crud.emptyBtn")))]):e._e(),e._t("tip")],2):e._e(),e._t("header"),e.reload?n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableLoading,expression:"tableLoading"}],ref:"table",class:{"avue-crud--indeterminate":e.vaildData(e.tableOption.indeterminate,!1)},attrs:{data:e.list,"row-key":e.handleGetRowKeys,size:e.$AVUE.tableSize||e.controlSize,lazy:e.vaildData(e.tableOption.lazy,!1),load:e.treeLoad,"tree-props":e.tableOption.treeProps||{},"expand-row-keys":e.tableOption.expandRowKeys,"default-expand-all":e.tableOption.defaultExpandAll,"highlight-current-row":e.tableOption.highlightCurrentRow,"show-summary":e.tableOption.showSummary,"summary-method":e.tableSummaryMethod,"span-method":e.tableSpanMethod,stripe:e.tableOption.stripe,"show-header":e.tableOption.showHeader,"default-sort":e.tableOption.defaultSort,"row-class-name":e.rowClassName,"cell-class-name":e.cellClassName,"row-style":e.rowStyle,"cell-style":e.cellStyle,"sort-method":e.sortMethod,"sort-orders":e.sortOrders,"sort-by":e.sortBy,fit:e.tableOption.fit,"header-cell-class-name":e.headerCellClassName,"max-height":e.tableOption.maxHeight,height:e.tableHeight,width:e.setPx(e.tableOption.width,e.config.width),border:e.tableOption.border},on:{"current-change":e.currentRowChange,"expand-change":e.expandChange,"header-dragend":e.headerDragend,"row-click":e.rowClick,"row-dblclick":e.rowDblclick,"cell-mouse-enter":e.cellMouseEnter,"cell-mouse-leave":e.cellMouseLeave,"cell-click":e.cellClick,"header-click":e.headerClick,"row-contextmenu":e.rowContextmenu,"header-contextmenu":e.headerContextmenu,"cell-dblclick":e.cellDblclick,"selection-change":e.selectionChange,select:e.select,"select-all":e.selectAll,"sort-change":e.sortChange}},[n("template",{slot:"empty"},[n("div",{class:e.b("empty")},[e.$slots.empty?e._t("empty"):n("avue-empty",{attrs:{size:"50",image:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K",desc:e.tableOption.emptyText||e.暂无数据}})],2)]),e.tableOption.expand?n("el-table-column",{attrs:{type:"expand",width:e.tableOption.expandWidth||e.config.expandWidth,fixed:e.vaildData(e.tableOption.expandFixed,e.config.expandFixed),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._t("expand",null,{row:t.row})]}}],null,!0)}):e._e(),e.tableOption.sortable&&e.tableOption.dragHandler?n("el-table-column",{attrs:{width:e.tableOption.sortableWidth||e.config.sortableWidth,fixed:e.vaildData(e.tableOption.sortableFixed,e.config.sortableFixed),align:"center"},scopedSlots:e._u([{key:"header",fn:function(e){return[n("i",{staticClass:"el-icon-sort"})]}},{key:"default",fn:function(e){return[n("span",{staticClass:"avue-crud__drag-handler"},[n("i",{staticClass:"el-icon-rank"})])]}}],null,!1,1088768483)}):e._e(),e.tableOption.selection?n("el-table-column",{attrs:{type:"selection",selectable:e.tableOption.selectable,"reserve-selection":e.vaildData(e.tableOption.reserveSelection,!1),width:e.tableOption.selectionWidth||e.config.selectionWidth,fixed:e.vaildData(e.tableOption.selectionFixed,e.config.selectionFixed),align:"center"}}):e._e(),this.vaildData(e.tableOption.index,!1)?n("el-table-column",{attrs:{label:e.tableOption.indexLabel||e.config.indexLabel,type:"index",width:e.tableOption.indexWidth||e.config.indexWidth,index:e.indexMethod,fixed:e.vaildData(e.tableOption.indexFixed,e.config.indexFixed),align:"center"}}):e._e(),n("el-table-column",{attrs:{width:"1px"}}),n("column",{attrs:{columnOption:e.columnOption},scopedSlots:e._u([e._l(e.propOption,(function(t,n){return{key:t.prop,fn:function(n){return[e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label})]}}}))],null,!0)}),e.vaildData(e.tableOption.menu,e.config.menu)&&e.getPermission("menu")?n("el-table-column",{class:e.b("btn"),attrs:{fixed:e.vaildData(e.tableOption.menuFixed,e.config.menuFixed),label:e.tableOption.menuTitle||e.t("crud.menu"),align:e.tableOption.menuAlign||e.config.menuAlign,"header-align":e.tableOption.menuHeaderAlign||e.config.menuHeaderAlign,width:e.isMobile?e.tableOption.menuXsWidth||e.config.menuXsWidth:e.tableOption.menuWidth||e.config.menuWidth},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isMenu?n("el-dropdown",{staticStyle:{"margin-right":"9px"},attrs:{size:e.isMediumSize}},[n("el-button",{attrs:{type:"primary",size:e.isMediumSize}},[e._v("\n "+e._s(e.tableOption.menuBtnTitle||e.t("crud.menuBtn"))+"\n "),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.vaildData(e.tableOption.viewBtn,e.config.viewBtn)?n("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("viewBtn",t.row,t.$index),expression:"getPermission('viewBtn',scope.row,scope.$index)"}],nativeOn:{click:function(n){return e.rowView(t.row,t.$index)}}},[e._v(e._s(e.t("crud.viewBtn")))]):e._e(),e.vaildData(e.tableOption.editBtn,e.config.editBtn)?n("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("editBtn",t.row,t.$index),expression:"getPermission('editBtn',scope.row,scope.$index)"}],attrs:{divided:""},nativeOn:{click:function(n){return e.rowEdit(t.row,t.$index)}}},[e._v(e._s(e.t("crud.editBtn")))]):e._e(),e.vaildData(e.tableOption.copyBtn,e.config.copyBtn)?n("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("copyBtn",t.row,t.$index),expression:"getPermission('copyBtn',scope.row,scope.$index)"}],attrs:{divided:""},nativeOn:{click:function(n){return e.rowCopy(t.row)}}},[e._v(e._s(e.t("crud.copyBtn")))]):e._e(),e.vaildData(e.tableOption.delBtn,e.config.delBtn)?n("el-dropdown-item",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("delBtn",t.row,t.$index),expression:"getPermission('delBtn',scope.row,scope.$index)"}],attrs:{divided:""},nativeOn:{click:function(n){return e.rowDel(t.row,t.$index)}}},[e._v(e._s(e.t("crud.delBtn")))]):e._e(),e._t("menuBtn",null,{row:t.row,dic:t.dic,label:t.label,index:t.$index})],2)],1):["button","text","icon"].includes(e.menuType)?[e.vaildData(e.tableOption.cellBtn,e.config.cellBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("cellBtn",t.row,t.$index),expression:"getPermission('cellBtn',scope.row,scope.$index)"}],attrs:{type:e.menuText("primary"),icon:t.row.$cellEdit?e.config.saveBtnIcon:e.config.editBtnIcon,size:e.isMediumSize,disabled:e.btnDisabledList[t.$index]},on:{click:function(n){return n.stopPropagation(),e.rowCell(t.row,t.$index)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon(t.row.$cellEdit?"saveBtn":"editBtn"))+"\n ")]],2):e._e(),t.row.$cellEdit&&e.vaildData(e.tableOption.cancelBtn,e.config.cancelBtn)?n("el-button",{attrs:{type:e.menuText("danger"),icon:e.config.cancelBtnIcon,size:e.isMediumSize,disabled:e.btnDisabledList[t.$index]},on:{click:function(n){return n.stopPropagation(),e.rowCancel(t.row,t.$index)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon("cancelBtn"))+"\n ")]],2):e._e(),e.vaildData(e.tableOption.viewBtn,e.config.viewBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("viewBtn",t.row,t.$index),expression:"getPermission('viewBtn',scope.row,scope.$index)"}],attrs:{type:e.menuText("success"),icon:e.config.viewBtnIcon,size:e.isMediumSize,disabled:e.btnDisabled},on:{click:function(n){return n.stopPropagation(),e.rowView(t.row,t.$index)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon("viewBtn"))+"\n ")]],2):e._e(),e.vaildData(e.tableOption.editBtn,e.config.editBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("editBtn",t.row,t.$index),expression:"getPermission('editBtn',scope.row,scope.$index)"}],attrs:{type:e.menuText("primary"),icon:e.config.editBtnIcon,size:e.isMediumSize,disabled:e.btnDisabled},on:{click:function(n){return n.stopPropagation(),e.rowEdit(t.row,t.$index)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon("editBtn"))+"\n ")]],2):e._e(),e.vaildData(e.tableOption.copyBtn,e.config.copyBtn)?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("copyBtn",t.row,t.$index),expression:"getPermission('copyBtn',scope.row,scope.$index)"}],attrs:{type:e.menuText("primary"),icon:e.config.copyBtnIcon,size:e.isMediumSize,disabled:e.btnDisabled},on:{click:function(n){return n.stopPropagation(),e.rowCopy(t.row)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon("copyBtn"))+"\n ")]],2):e._e(),e.vaildData(e.tableOption.delBtn,e.config.delBtn)&&!t.row.$cellEdit?n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:e.getPermission("delBtn",t.row,t.$index),expression:"getPermission('delBtn',scope.row,scope.$index)"}],attrs:{type:e.menuText("danger"),icon:e.config.delBtnIcon,size:e.isMediumSize,disabled:e.btnDisabled},on:{click:function(n){return n.stopPropagation(),e.rowDel(t.row,t.$index)}}},[e.isIconMenu?e._e():[e._v("\n "+e._s(e.menuIcon("delBtn"))+"\n ")]],2):e._e()]:e._e(),e._t("menu",null,{row:t.row,type:e.menuText("primary"),disabled:e.btnDisabled,size:e.isMediumSize,index:t.$index})]}}],null,!0)}):e._e()],2):e._e(),e.vaildData(e.tableOption.page,!0)?n("table-page",{ref:"tablePage",attrs:{page:e.page}}):e._e(),n("dialog-form",{ref:"dialogForm",scopedSlots:e._u([e._l(e.columnFormOption,(function(t){return{key:t.prop,fn:function(n){return[t.formslot?e._t(t.prop+"Form",null,null,Object.assign(n,{row:t.dynamic?n.row:e.tableForm,index:t.dynamic?n.row.$index:e.tableIndex})):e._e()]}}})),e._l(e.columnFormOption,(function(t){return{key:t.prop+"Label",fn:function(n){return[t.labelslot?e._t(t.prop+"Label",null,null,Object.assign(n,{row:e.tableForm,index:e.tableIndex})):e._e()]}}})),e._l(e.columnFormOption,(function(t){return{key:t.prop+"Error",fn:function(n){return[t.errorslot?e._t(t.prop+"Error",null,null,Object.assign(n,{row:e.tableForm,index:e.tableIndex})):e._e()]}}})),e._l(e.columnFormOption,(function(t){return{key:t.prop+"Type",fn:function(n){return[t.typeslot?e._t(t.prop+"Type",null,null,Object.assign(n,{row:e.tableForm,index:e.tableIndex})):e._e()]}}})),{key:"menuForm",fn:function(t){var n=(t.tableForm,t.type),i=t.size,r=t.disabled;return[e._t("menuForm",null,{size:i,disabled:r,type:n})]}}],null,!0),model:{value:e.tableForm,callback:function(t){e.tableForm=t},expression:"tableForm"}}),n("dialog-column",{ref:"dialogColumn",attrs:{"show-column":e.showColumn}}),n("keep-alive",[n("dialog-filter",{ref:"dialogFilter"})],1)],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(37),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(162),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-row",{attrs:{span:24,gutter:e.gutter}},[e.vaildData(e.option.addBtn,!0)?n("el-col",{attrs:{span:e.span}},[n("div",{class:e.b("item",{add:!0}),on:{click:function(t){return e.rowAdd()}}},[n("i",{staticClass:"el-icon-plus"}),n("span",[e._v("添加")])])]):e._e(),e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{span:e.span}},[n("div",{class:e.b("item"),on:{click:function(n){return e.rowClick(t,i)}}},[n("div",{class:e.b("body")},[n("div",{class:e.b("avatar")},[n("img",{attrs:{src:t[e.imgKey],alt:""}})]),n("div",{class:e.b("detail")},[n("div",{class:e.b("title")},[e._v(e._s(t[e.titleKey]))]),n("div",{class:e.b("info")},[e._v(e._s(t[e.infoKey]))])])]),n("div",{class:e.b("menu")},[e._t("menu",null,{index:i,row:t})],2)])])}))],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(164),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-scrollbar",{style:e.styleName},[n("pre",[e._v(" "),n("code",{ref:"container",class:e.syntax},[e._v("\n "),e._t("default"),e._v("\n ")],2),e._v("\n ")])])],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(166),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.heightStyleName,on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend(t)}}},[n("audio",{ref:"chatAudio"},[n("source",{attrs:{src:e.audio[0],type:"audio/ogg"}}),n("source",{attrs:{src:e.audio[1],type:"audio/mpeg"}}),n("source",{attrs:{src:e.audio[2],type:"audio/wav"}})]),n("div",{staticClass:"web__logo"},[n("img",{staticClass:"web__logo-img",attrs:{src:e.config.img,alt:""}}),n("div",{staticClass:"web__logo-info"},[n("p",{staticClass:"web__logo-name"},[e._v(e._s(e.config.name))]),n("p",{staticClass:"web__logo-dept"},[e._v(e._s(e.config.dept))])]),e._t("header")],2),n("div",{staticClass:"web__content"},[n("div",{style:e.widthStyleName},[n("div",{ref:"main",staticClass:"web__main"},e._l(e.list,(function(t,i){return n("div",{key:i,staticClass:"web__main-item",class:{"web__main-item--mine":t.mine}},[n("div",{staticClass:"web__main-user"},[n("img",{attrs:{src:t.img}}),n("cite",[e._v("\n "+e._s(t.name)+"\n "),n("i",[e._v(e._s(t.date))])])]),n("div",{staticClass:"web__main-text"},[n("div",{staticClass:"web__main-arrow"}),n("span",{ref:"content",refInFor:!0,domProps:{innerHTML:e._s(e.handleDetail(t.text.text))}}),e.validatenull(t.text.list)?e._e():n("ul",{staticClass:" web__main-list"},e._l(t.text.list,(function(t,i){return n("li",{key:i,on:{click:function(n){return e.handleItemMsg(t)}}},[e._v(e._s(t.text))])})),0)])])})),0),n("div",{staticClass:"web__footer",style:e.widthStyleName},[n("div",{staticClass:"web__tools"},[e.tools.img?n("i",{staticClass:"el-icon-picture-outline",on:{click:function(t){return e.handleUpload("img")}}}):e._e(),e.tools.video?n("i",{staticClass:"el-icon-video-camera",on:{click:function(t){return e.handleUpload("video")}}}):e._e(),e.tools.file?n("i",{staticClass:"el-icon-folder-opened",on:{click:function(t){return e.handleUpload("file")}}}):e._e()]),n("div",{staticClass:"web__msg"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.msg,expression:"msg"}],staticClass:"web__msg-input",attrs:{rows:"2",placeholder:e.placeholder},domProps:{value:e.msg},on:{input:function(t){t.target.composing||(e.msg=t.target.value)}}}),n("div",{staticClass:"web__msg-menu"},[n("el-dropdown",{staticClass:"web__msg-submit",attrs:{"split-button":"",type:"primary",size:"mini",trigger:"click"},on:{click:e.handleSend}},[e._v("\n 发送\n "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",[n("el-popover",{attrs:{placement:"top",width:"160"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:3,"show-word-limit":"",maxlength:"100",placeholder:"请输入快捷回复语",type:"textarea"},model:{value:e.keys,callback:function(t){e.keys=t},expression:"keys"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e.visible=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addKey}},[e._v("确定")])],1),n("el-button",{attrs:{slot:"reference",type:"text",icon:"el-icon-plus"},slot:"reference"})],1)],1),n("el-scrollbar",{staticStyle:{height:"100px"}},e._l(e.keylist,(function(t,i){return n("el-dropdown-item",{key:i,nativeOn:{click:function(n){return e.sendKey(t)}}},[n("el-tooltip",{attrs:{effect:"dark",content:t,placement:"top"}},[n("span",[e._v(" "+e._s(t.substr(0,10))+e._s(t.length>10?"...":""))])])],1)})),1)],1)],1)],1)])])]),e._t("default")],2),n("el-dialog",{attrs:{title:e.upload.title,"append-to-body":"",visible:e.upload.box,width:"30%"},on:{"update:visible":function(t){return e.$set(e.upload,"box",t)}}},[n("el-form",{ref:"form",attrs:{model:e.upload}},[n("el-form-item",{attrs:{prop:"src",rules:[{required:!0,message:"地址不能为空"}]}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",rows:4,"show-word-limit":"",maxlength:"100",placeholder:"请输入地址",type:"textarea"},model:{value:e.upload.src,callback:function(t){e.$set(e.upload,"src",t)},expression:"upload.src"}})],1)],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(t){e.upload.box=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.uploadSubmit}},[e._v("确 定")])],1)],1),n("el-dialog",{staticClass:"web__dialog",attrs:{visible:e.show,width:"40%","append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.show=t}}},[e.imgSrc?n("img",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.imgSrc}}):e._e(),e.videoSrc?n("video",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.videoSrc,controls:"controls"}}):e._e(),e.audioSrc?n("audio",{staticStyle:{width:"100%","object-fit":"cover"},attrs:{src:e.audioSrc,controls:"controls"}}):e._e()])],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(168),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b({reverse:e.reverse})},[n("img",{class:e.b("avatar"),attrs:{src:e.avatar,alt:""}}),n("div",{class:e.b("main")},[n("div",{class:e.b("header")},[e.author?n("div",{class:e.b("author"),domProps:{textContent:e._s(e.author)}}):e._e(),e._t("default")],2),e.body?n("div",{class:e.b("body"),domProps:{innerHTML:e._s(e.body)}}):e._e()])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(41),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(173),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n,r){function a(e){return e.en?p.name(!0):p.cname()}function s(e){var t=e.max,n=e.min,i=e.precision;if(i){var r=p.float(n,t,i)+"",o=r.indexOf(".")+1;return Number(r.substring(0,o+i))}return p.integer(n,t)}function l(e){var t=e.header,n=(e.footer,p.url()),i=n.indexOf("://");return!1===t?n.substring(i+3):"http://"+n.substring(i+3)}function c(e){var t=e.format;return e.now?p.now(t):p.datetime(t)}function u(e){var t=e.min,n=e.max;return p.csentence(t,n)}function d(){return p.county(!0)}function h(e){var t=e.dic,n=e.props,i=e.columnType,r=e.multiple,o=n.value||"value",a=t.length;if(["checkbox"].includes(i)||r){for(var l=s({min:1,max:a}),c=[],u=0;u<l;u++)for(var d=!0;d;){var h=s({min:0,max:a-1}),f=t[h][o];c.includes(f)||(c.push(f),d=!1)}return c}return t[s({min:0,max:a-1})][o]}if(r){if(!window.Mock)return void o.default.logs("mock");var f=window.Mock,p=(f||{}).Random,g={};return function(){Object.keys(e).forEach((function(r){var o=e[r];if(o.mock&&"object"===i(o.mock)){var f=o.mock;switch(f.dic="string"==typeof o.dicData?t[o.dicData]:o.dicData||[],f.props=o.props||{},f.columnType=o.type,f.multiple=o.multiple,f.type){case"name":g[o.prop]=a(f);break;case"number":g[o.prop]=s(f);break;case"datetime":g[o.prop]=c(f);break;case"word":g[o.prop]=u(f);break;case"url":g[o.prop]=l(f);break;case"county":g[o.prop]=d(f);break;case"dic":g[o.prop]=h(f)}}else o.mock instanceof Function&&(g[o.prop]=o.mock(n))}))}(),g}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(42),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(172),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.vaildData(e.formSafe.parentOption.menuBtn,!0)?n("el-col",{class:e.formSafe.b("menu",[e.formSafe.menuPosition]),style:e.styleName,attrs:{span:e.menuSpan}},[n("el-form-item",{attrs:{"label-width":"0px"}},[e.formSafe.isMock?n("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-edit-outline",loading:e.formSafe.allDisabled},on:{click:e.formSafe.handleMock}},[e._v(e._s(e.t("form.mockBtn")))]):e._e(),e.formSafe.isPrint?n("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:"el-icon-printer",loading:e.formSafe.allDisabled},on:{click:e.formSafe.handlePrint}},[e._v(e._s(e.t("form.printBtn")))]):e._e(),e.vaildData(e.formSafe.parentOption.submitBtn,!0)?n("el-button",{attrs:{type:"primary",size:e.formSafe.controlSize,icon:e.formSafe.parentOption.submitIcon||"el-icon-check",loading:e.formSafe.allDisabled},on:{click:e.formSafe.submit}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.submitText,e.t("form.submit"))))]):e._e(),e.vaildData(e.formSafe.parentOption.emptyBtn,!0)?n("el-button",{attrs:{icon:e.formSafe.parentOption.emptyIcon||"el-icon-delete",size:e.formSafe.controlSize,loading:e.formSafe.allDisabled},on:{click:e.formSafe.resetForm}},[e._v(e._s(e.vaildData(e.formSafe.parentOption.emptyText,e.t("form.empty"))))]):e._e(),e._t("menuForm",null,{disabled:e.formSafe.allDisabled,size:e.formSafe.controlSize})],2)],1):e._e()},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.b(),{"avue--view":e.isView,"avue--detail":e.isDetail}],style:{width:e.setPx(e.parentOption.formWidth,"100%")}},[n("el-form",{ref:"form",attrs:{"status-icon":"",model:e.form,"label-suffix":e.parentOption.labelSuffix||":",size:e.$AVUE.formSize||e.controlSize,"label-width":e.setPx(e.parentOption.labelWidth,e.labelWidth),rules:e.formRules},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-row",{class:{"avue-form__tabs":e.isTabs},attrs:{span:24}},[e._l(e.columnOption,(function(t,i){return n("avue-group",{key:t.prop,attrs:{tabs:e.isTabs,arrow:t.arrow,collapse:t.collapse,display:t.display,icon:t.icon,index:i,header:!e.isTabs,active:e.activeName,card:e.parentOption.card,label:t.label}},[e.isTabs&&1==i?n("el-tabs",{class:e.b("tabs"),attrs:{slot:"tabs",type:e.tabsType},on:{"tab-click":e.handleTabClick},slot:"tabs",model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.columnOption,(function(t,i){return t.display||0==i?e._e():n("el-tab-pane",{key:i,attrs:{name:i+""}},[n("span",{attrs:{slot:"label"},slot:"label"},[e.$slots[t.prop+"Header"]?e._t(t.prop+"Header"):[n("i",{class:t.icon},[e._v(" ")]),e._v("\n "+e._s(t.label)+"\n ")]],2)])})),1):e._e(),e.$slots[t.prop+"Header"]?n("template",{slot:"header"},[e._t(t.prop+"Header")],2):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isGroupShow(t,i),expression:"isGroupShow(item,index)"}],class:e.b("group",{flex:e.vaildData(t.flex,!0)})},[e._l(t.column,(function(i,r){return e.vaildDisplay(i)?[n("el-col",{key:i.prop,class:[e.b("row"),{"avue--detail":e.vaildDetail(i)}],style:{paddingLeft:e.setPx((e.parentOption.gutter||20)/2),paddingRight:e.setPx((e.parentOption.gutter||20)/2)},attrs:{span:e.getSpan(i),md:e.getSpan(i),sm:12,xs:24,offset:i.offset||0}},[n("el-form-item",{class:e.b("item--"+(i.labelPosition||t.labelPosition||"")),attrs:{prop:i.prop,label:i.label,"label-position":i.labelPosition||t.labelPosition||e.parentOption.labelPosition,"label-width":e.getLabelWidth(i,t)},scopedSlots:e._u([{key:"error",fn:function(t){var n=t.error;return i.errorslot?[e._t(i.prop+"Error",null,{column:i,error:n,value:e.form[i.prop],readonly:e.readonly||i.readonly,disabled:e.getDisabled(i),size:i.size||e.controlSize,dic:e.DIC[i.prop]})]:void 0}}],null,!0)},[i.labelslot?n("template",{slot:"label"},[e._t(i.prop+"Label",null,{column:i,value:e.form[i.prop],readonly:e.readonly||i.readonly,disabled:e.getDisabled(i),size:i.size||e.controlSize,dic:e.DIC[i.prop]})],2):e._e(),n("el-tooltip",{attrs:{disabled:!i.tip||"upload"===i.type,content:e.vaildData(i.tip,e.getPlaceholder(i)),placement:i.tipPlacement}},[i.formslot?e._t(i.prop,null,{value:e.form[i.prop],column:i,label:e.form["$"+i.prop],size:i.size||e.controlSize,readonly:e.readonly||i.readonly,disabled:e.getDisabled(i),dic:e.DIC[i.prop]}):n("form-temp",e._b({ref:i.prop,refInFor:!0,class:i.className,attrs:{column:i,dic:e.DIC[i.prop],t:e.t,props:e.parentOption.props,propsHttp:e.parentOption.propsHttp,disabled:e.getDisabled(i),readonly:e.readonly,enter:e.parentOption.enter,size:e.parentOption.size},on:{enter:e.submit,change:function(n){return e.propChange(t.column,i)}},scopedSlots:e._u([e._l((i.children||{}).column||[],(function(t){return{key:t.prop,fn:function(n){return[t.slot?e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label}):e._e()]}}})),{key:i.prop+"Type",fn:function(t){var n=t.item,r=t.label,o=t.value,a=t.node,s=t.data;return i.typeslot?[e._t(i.prop+"Type",null,{item:n,node:a,data:s,value:o,label:r})]:void 0}}],null,!0),model:{value:e.form[i.prop],callback:function(t){e.$set(e.form,i.prop,t)},expression:"form[column.prop]"}},"form-temp",e.$uploadFun(),!1))],2)],2)],1),i.row&&24!==i.span&&i.count?n("div",{key:r,class:e.b("line"),style:{width:i.count/24*100+"%"}}):e._e()]:e._e()})),e._t("search"),e.isDetail||e.isMenu?e._e():n("form-menu",{scopedSlots:e._u([{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,t)]}}],null,!0)})],2)],2)})),!e.isDetail&&e.isMenu?n("form-menu",{scopedSlots:e._u([{key:"menuForm",fn:function(t){return[e._t("menuForm",null,null,t)]}}],null,!0)}):e._e()],2)],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(175),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e.all?[n("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAll},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")]),n("div",{staticStyle:{margin:"5px 0"}})]:e._e(),n("el-checkbox-group",{attrs:{disabled:e.disabled,size:e.size,min:e.min,max:e.max},on:{change:e.handleCheckChange},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},e._l(e.dic,(function(t,i){return n(e.componentName,{key:i,tag:"component",attrs:{label:t[e.valueKey],border:e.border,size:e.size,readonly:e.readonly,disabled:t[e.disabledKey]}},[e._v(e._s(t[e.labelKey])+"\n ")])})),1)],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(177),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-date-picker",{attrs:{type:e.type,size:e.size,"unlink-panels":e.unlinkPanels,readonly:e.readonly,"default-value":e.defaultValue,"default-time":e.defaultTime,"range-separator":e.rangeSeparator||e.t("date.tip"),"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,format:e.format,clearable:!e.disabled&&e.clearable,"picker-options":e.pickerOptions,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},on:{blur:e.handleBlur,focus:e.handleFocus},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(45),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(179),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b({active:(e.active||e.overActive)&&!e.readonly,move:e.moveActive,click:e.disabled}),style:e.styleName,on:{mousedown:function(t){return t.stopPropagation(),e.handleMove(t)},mouseover:function(t){return t.stopPropagation(),e.handleOver(t)},mouseout:function(t){return t.stopPropagation(),e.handleOut(t)}}},[n("div",{ref:"wrapper",class:e.b("wrapper")},[(e.active||e.overActive||e.moveActive)&&!e.readonly?[n("div",{class:e.b("line",["left"]),style:e.styleLineName}),n("div",{class:e.b("line",["top"]),style:e.styleLineName}),n("div",{class:e.b("line",["label"]),style:e.styleLabelName},[e._v(e._s(e.baseLeft)+","+e._s(e.baseTop))])]:e._e(),e._l(e.rangeList,(function(t,i){return e.readonly?e._e():[e.active?n("div",{key:i,class:e.b("range",[t.classname]),style:[e.styleRangeName,e.getRangeStyle(t.classname)],on:{mousedown:function(n){return n.stopPropagation(),e.rangeMove(n,t.classname)}}}):e._e()]})),n("div",{directives:[{name:"show",rawName:"v-show",value:e.active||e.overActive,expression:"active || overActive"}],class:e.b("menu"),style:e.styleMenuName},[e._t("menu",null,{zIndex:e.zIndex,index:e.index})],2),n("div",{ref:"item",class:e.b("item")},[e._t("default")],2),!e.disabled&&e.mask?n("div",{class:e.b("mask")}):e._e()],2)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(46),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(181),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("div",{class:e.b("image"),style:{height:e.setPx(e.size)}},[n("img",{attrs:{src:e.image,alt:""}})]),n("p",{class:e.b("desc")},[e._v(e._s(e.desc))]),e._t("default")],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(47),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(185),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(48),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(184),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"node",style:e.flowNodeContainer,attrs:{left:e.node.left,top:e.node.top,disabled:"",mask:!1},on:{mouseenter:e.showDelete,mouseleave:e.hideDelete,mouseup:e.changeNodeSite}},[n("div",{class:e.b("node",{active:e.active===e.node.id})},[n("div",{class:e.b("node-header")},[n("i",{staticClass:"el-icon-rank",class:e.b("node-drag")}),e._t("header",null,{node:e.node})],2),n("div",{class:e.b("node-body")},[e._t("default",null,{node:e.node})],2)])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleName},[n("div",{style:e.styleName,attrs:{id:e.id}},[n("div",{staticClass:"avue-grid"}),e._l(e.option.nodeList,(function(t,i){return t.display?e._e():n("flow-node",{key:i,attrs:{node:t,id:t.id,index:i,active:e.active},on:{changeNodeSite:e.changeNodeSite},nativeOn:{click:function(n){return e.handleClick(t)}},scopedSlots:e._u([{key:"header",fn:function(t){var n=t.node;return[e._t("header",null,{node:n})]}}],null,!0)},[e._t("default",null,{node:t})],2)}))],2)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(49),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(187),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e._l(e.data,(function(t,i){return n("div",{key:i,class:e.b("item"),on:{click:function(n){return e.click(t)}}},[t[e.imgKey]?n("div",{class:e.b("img")},[n("img",{attrs:{src:t[e.imgKey],alt:""}})]):e._e(),n("div",{class:e.b("content")},[n("div",{class:e.b("title")},[n("span",{class:e.b("name")},[e._v(e._s(t[e.titleKey]))]),t[e.tagKey]?n("span",{class:e.b("tag")},[n("el-tag",{attrs:{size:"small",type:e.getType(t[e.statusKey])}},[e._v(e._s(t[e.tagKey]))])],1):e._e()]),n("div",{class:e.b("subtitle")},[e._v(e._s(t[e.subtitleKey]))])])])})),n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],class:e.b("more"),on:{click:e.handleClick}},[e._v("\n 加载更多\n ")])],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(189),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),staticStyle:{position:"relative"}},[n("canvas",{ref:"canvas",attrs:{id:"canvas"+e.id}}),e._t("default")],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(51),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(191),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-progress",{attrs:{type:e.type,color:e.color,width:e.width,"text-inside":"","show-text":e.showText,"stroke-width":e.strokeWidth,percentage:e.percentage}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(52),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(193),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-time-picker",{attrs:{"is-range":e.isRange,size:e.size,"default-value":e.defaultValue,"range-separator":e.rangeSeparator||e.t("date.tip"),"arrow-control":e.arrowControl,"start-placeholder":e.startPlaceholder,"end-placeholder":e.endPlaceholder,format:e.format,readonly:e.readonly,clearable:!e.disabled&&e.clearable,"value-format":e.valueFormat,placeholder:e.placeholder,disabled:e.disabled},on:{change:e.handleChange},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(195),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-input",{class:e.b(),attrs:{size:e.size,clearable:!e.disabled&&e.clearable,type:e.typeParam,maxlength:e.maxlength,minlength:e.minlength,"show-password":"password"==e.typeParam&&e.showPassword,autosize:{minRows:e.minRows,maxRows:e.maxRows},"prefix-icon":e.prefixIcon,"suffix-icon":e.suffixIcon,readonly:e.readonly,placeholder:e.placeholder,"show-word-limit":e.showWordLimit,disabled:e.disabled,autocomplete:e.autocomplete},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.isSearch&&e.appendClick()},focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[e.prepend?n("template",{slot:"prepend"},[n("span",{on:{click:function(t){return e.prependClick()}}},[e._v(e._s(e.prepend))])]):e._e(),e.append?n("template",{slot:"append"},[n("span",{on:{click:function(t){return e.appendClick()}}},[e._v(e._s(e.append))])]):e.isSearch?n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.appendClick()}},slot:"append"}):e._e()],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(54),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(197),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-radio-group",{attrs:{size:e.size,disabled:e.disabled},on:{change:e.handleChange},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},e._l(e.dic,(function(t,i){return n(e.componentName,{key:i,tag:"component",attrs:{label:t[e.valueKey],border:e.border,readonly:e.readonly,disabled:t[e.disabledKey]}},[e._v(e._s(t[e.labelKey]))])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(55),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(199),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{ref:"main",class:e.b(),attrs:{size:e.size,loading:e.loading,"loading-text":e.loadingText,multiple:e.multiple,filterable:!!e.remote||e.filterable,remote:e.remote,readonly:e.readonly,"no-match-text":e.noMatchText,"no-data-text":e.noDataText,"remote-method":e.handleRemoteMethod,"collapse-tags":e.tags,clearable:!e.disabled&&e.clearable,placeholder:e.placeholder,"multiple-limit":e.limit,"allow-create":e.allowCreate,"default-first-option":e.defaultFirstOption,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[e.group?e._l(e.netDic,(function(t,i){return n("el-option-group",{key:i,attrs:{label:e.getLabelText(t)}},e._l(t[e.groupsKey],(function(i,r){return n("el-option",{key:r,attrs:{disabled:i[e.disabledKey],label:e.getLabelText(i),value:i[e.valueKey]}},[e.$scopedSlots[e.prop+"Type"]?e._t(e.prop+"Type",null,{label:e.labelKey,value:e.valueKey,item:i}):e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:t}):e._e()],2)})),1)})):e._l(e.netDic,(function(t,i){return n("el-option",{key:i,attrs:{disabled:t[e.disabledKey],label:e.getLabelText(t),value:t[e.valueKey]}},[e.typeslot?e._t(e.prop+"Type",null,{label:e.labelKey,value:e.valueKey,item:t}):e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:t}):e._e()],2)}))],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(201),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-cascader",{attrs:{options:e.dic,placeholder:e.placeholder,props:e.allProps,size:e.size,"emit-path":e.emitPath,"change-on-select":e.changeOnSelect,clearable:!e.disabled&&e.clearable,"expand-trigger":e.expandTrigger,"show-all-levels":e.showAllLevels,filterable:e.filterable,separator:e.separator,disabled:e.disabled,"collapse-tags":e.tags},nativeOn:{click:function(t){return e.handleClick(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,r=t.data;return[e.typeslot?e._t(e.prop+"Type",null,{data:r,node:i}):n("span",[e._v(e._s(r[e.labelKey]))])]}}],null,!0),model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(203),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-input",{ref:"main",attrs:{placeholder:e.placeholder,size:e.size,readonly:e.readonly,clearable:!e.disabled&&e.clearable,disabled:e.disabled},on:{change:e.handleChange},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[n("template",{slot:"append"},[n("el-color-picker",{attrs:{size:"mini",disabled:e.disabled,"show-alpha":"",predefine:e.predefineColors},on:{change:e.handleChange},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})],1)],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(58),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(205),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-input-number",{class:e.b(),attrs:{precision:e.precision,placeholder:e.placeholder,size:e.size,min:e.minRows,max:e.maxRows,step:e.step,clearable:!e.disabled&&e.clearable,readonly:e.readonly,"controls-position":e.controlsPosition,controls:e.controls,label:e.placeholder,disabled:e.disabled},on:{focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=e._n(t)},expression:"text"}})},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(59),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(207),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-select",{ref:"main",class:e.b(),attrs:{size:e.size,value:e.labelShow,clearable:!e.disabled&&e.clearable,placeholder:e.placeholder,disabled:e.disabled},on:{change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur},nativeOn:{click:function(t){return e.initScroll(t)}}},[e.filter?n("div",{staticStyle:{padding:"0 10px",margin:"5px 0 0 0"}},[n("el-input",{attrs:{size:"mini",placeholder:"输入关键字进行过滤"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}})],1):e._e(),n("el-option",{attrs:{value:e.text}},[n("el-tree",{ref:"tree",staticClass:"tree-option",staticStyle:{padding:"10px 0"},attrs:{data:e.dicList,lazy:e.lazy,load:e.handleTreeLoad,"node-key":e.valueKey,accordion:e.accordion,"icon-class":e.iconClass,"show-checkbox":e.multiple,"expand-on-click-node":e.expandOnClickNode,props:e.treeProps,"check-strictly":e.checkStrictly,"highlight-current":!e.multiple,"current-node-key":e.multiple?"":e.text,"filter-node-method":e.filterNode,"default-expanded-keys":e.defaultExpandedKeys?e.defaultExpandedKeys:e.defaultExpandAll?[]:e.keysList,"default-checked-keys":e.defaultCheckedKeys?e.defaultCheckedKeys:e.keysList,"default-expand-all":e.defaultExpandAll},on:{check:e.checkChange,"node-click":function(t){return t.target!==t.currentTarget?null:e.handleNodeClick(t)}},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data;return n("div",{staticStyle:{width:"100%","padding-right":"10px"}},[e.typeslot?e._t(e.prop+"Type",null,{label:e.labelKey,value:e.valueKey,item:i}):e.$scopedSlots.default?e._t("default",null,{label:e.labelKey,value:e.valueKey,item:i}):n("span",{class:{"avue--disabled":i[e.disabledKey]}},[e._v(e._s(i[e.labelKey]))])],2)}}],null,!0)})],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(209),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-input",{ref:"main",attrs:{size:e.size,clearable:!e.disabled&&e.clearable,disabled:e.disabled,placeholder:e.placeholder},on:{clear:e.handleClear},nativeOn:{click:function(t){return e.handleShow(t)}},model:{value:e.address,callback:function(t){e.address=t},expression:"address"}}),n("el-dialog",{staticClass:"avue-dialog",attrs:{width:"80%","append-to-body":"",title:e.placeholder,visible:e.box},on:{close:e.handleClose,"update:visible":function(t){e.box=t}}},[e.box?n("div",{class:e.b("content")},[n("el-input",{class:e.b("content-input"),attrs:{id:"map__input",size:e.size,readonly:e.disabled,clearable:"",placeholder:"输入关键字选取地点"},on:{clear:e.clear},model:{value:e.formattedAddress,callback:function(t){e.formattedAddress=t},expression:"formattedAddress"}}),n("div",{class:e.b("content-box")},[n("div",{class:e.b("content-container"),attrs:{id:"map__container",tabindex:"0"}}),n("div",{class:e.b("content-result"),attrs:{id:"map__result"}})])],1):e._e(),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.disabled||e.readonly?e._e():n("el-button",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.handleSubmit}},[e._v("确 定")])],1)])],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(61),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(211),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-input",{ref:"main",attrs:{placeholder:e.placeholder,size:e.size,clearable:!e.disabled&&e.clearable,disabled:e.disabled},on:{change:e.handleChange,focus:e.handleShow},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}},[n("span",{attrs:{slot:"append"},on:{click:e.handleShow},slot:"append"},[n("i",{staticClass:"avue-crud__icon--small",class:e.text})])]),n("el-dialog",{staticClass:"avue-dialog",attrs:{title:e.placeholder,"append-to-body":"",visible:e.box,width:"80%"},on:{"update:visible":function(t){e.box=t}}},[n("el-scrollbar",{staticStyle:{height:"400px","overflow-x":"hidden"}},[n("avue-tabs",{attrs:{option:e.option},on:{change:e.handleTabs}}),n("div",{class:e.b("list")},e._l(e.list,(function(t,i){return n("div",{key:i,class:e.b("item",{active:e.text===t})},[n("i",{class:[e.b("icon"),t.value],on:{click:function(n){return e.handleSubmit(t.value)}}}),t.label?n("p",[e._v(e._s(t.label))]):e._e()])})),0)],1)],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(62),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(213),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-input",{ref:"main",attrs:{size:e.size,value:e.labelShow,clearable:!e.disabled&&e.clearable,placeholder:e.placeholder,disabled:e.disabled},on:{clear:e.handleClear,focus:e.handleShow}}),n("el-dialog",{staticClass:"avue-dialog",attrs:{width:"80%","append-to-body":"",title:e.placeholder,visible:e.box},on:{"update:visible":function(t){e.box=t}}},[n("avue-crud",{ref:"crud",class:e.b("crud"),attrs:{option:e.option,data:e.data,page:e.page},on:{"on-load":e.onList,"search-change":e.handleSearchChange,"search-reset":e.handleSearchChange,"current-row-change":e.handleCurrentRowChange,"update:page":function(t){e.page=t}}}),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:e.size,icon:"el-icon-check"},on:{click:e.setVal}},[e._v("确 定")])],1)],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(63),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(215),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},e._l(e.list,(function(t,i){return n("span",{key:i,class:e.b("item"),style:e.styleName},[e._v("\n "+e._s(t)+"\n ")])})),0)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(217),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-switch",{attrs:{"active-text":e.active[e.labelKey],"active-value":e.active[e.valueKey],"inactive-value":e.inactive[e.valueKey],"inactive-text":e.inactive[e.labelKey],"active-icon-class":e.activeIconClass,"inactive-icon-class":e.inactiveIconClass,"active-color":e.activeColor,"inactive-color":e.inactiveColor,width:e.len,disabled:e.disabled,readonly:e.readonly,size:e.size},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(219),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-rate",{staticStyle:{"margin-top":"10px"},attrs:{max:e.max,readonly:e.readonly,texts:e.texts,"show-text":e.showText,"icon-classes":e.iconClasses,"void-icon-class":e.voidIconClass,disabled:e.disabled,colors:e.colors},on:{change:e.handleChange},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(66),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(224),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(5),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.CONTAINERID=(0,o.randomId)(),this.drawCanvas=this.drawCanvas.bind(this),this.parentObserver=this.parentObserver.bind(this),this.Repaint=this.Repaint.bind(this),this.isOberserve=!1,this.init(t),this.drawCanvas(),this.parentObserver()}return r(e,[{key:"init",value:function(e){this.option={},this.option.text=e.text||"avue商用通用无敌大水印",this.option.font=e.font||"30px 黑体",this.option.canvasWidth=e.canvasWidth||500,this.option.canvasHeight=e.canvasHeight||200,this.option.textAlign=e.textAlign||"center",this.option.textStyle=e.textStyle||"rgba(100,100,100,0.15)",this.option.degree=e.degree||-20}},{key:"drawCanvas",value:function(){this.isOberserve=!0;var e=document.createElement("div"),t=document.createElement("canvas"),n=t.getContext("2d");e.id=this.CONTAINERID,t.width=this.option.canvasWidth,t.height=this.option.canvasHeight,n.font=this.option.font,n.textAlign=this.option.textAlign,n.fillStyle=this.option.textStyle,n.translate(t.width/2,t.height/2),n.rotate(this.option.degree*Math.PI/180),n.fillText(this.option.text,0,0);var i=t.toDataURL("image/png");this.styleStr="\n position:fixed;\n top:0;\n left:0;\n width:100%;\n height:100%;\n z-index:9999;\n pointer-events:none;\n background-repeat:repeat;\n background-image:url('"+i+"')",e.setAttribute("style",this.styleStr),document.body.appendChild(e),this.wmObserver(e),this.isOberserve=!1}},{key:"wmObserver",value:function(e){var t=this,n={attributes:!0,childList:!0,characterData:!0},i=new MutationObserver((function(e){if(!t.isOberserve){var n=e[0].target;n.setAttribute("style",t.styleStr),n.setAttribute("id",t.CONTAINERID),i.takeRecords()}}));i.observe(e,n)}},{key:"parentObserver",value:function(){var e=this;new MutationObserver((function(){if(!e.isOberserve){var t=document.querySelector("#"+e.CONTAINERID);t?t.getAttribute("style")!==e.styleStr&&t.setAttribute("style",e.styleStr):e.drawCanvas()}})).observe(document.querySelector("#"+this.CONTAINERID).parentNode,{childList:!0})}},{key:"Repaint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.remove(),this.init(e),this.drawCanvas()}},{key:"remove",value:function(){this.isOberserve=!0;var e=document.querySelector("#"+this.CONTAINERID);e.parentNode.removeChild(e)}}]),e}();t.default=a},function(e,t,n){"use strict";function i(e){var t,n,i,r;for(t="",i=e.length,n=0;n<i;n++)r=e.charCodeAt(n),r>=1&&r<=127?t+=e.charAt(n):r>2047?(t+=String.fromCharCode(224|r>>12&15),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r>>0&63)):(t+=String.fromCharCode(192|r>>6&31),t+=String.fromCharCode(128|r>>0&63));return t}function r(e){var t,n,i,r,a,s;for(i=e.length,n=0,t="";n<i;){if(r=255&e.charCodeAt(n++),n==i){t+=o.charAt(r>>2),t+=o.charAt((3&r)<<4),t+="==";break}if(a=e.charCodeAt(n++),n==i){t+=o.charAt(r>>2),t+=o.charAt((3&r)<<4|(240&a)>>4),t+=o.charAt((15&a)<<2),t+="=";break}s=e.charCodeAt(n++),t+=o.charAt(r>>2),t+=o.charAt((3&r)<<4|(240&a)>>4),t+=o.charAt((15&a)<<2|(192&s)>>6),t+=o.charAt(63&s)}return t}Object.defineProperty(t,"__esModule",{value:!0});var o=(t.getToken=function(e,t,n){var o=JSON.stringify(n),s=r(i(o)),l=CryptoJS.HmacSHA1(s,t),c=l.toString(CryptoJS.enc.Base64),u=e+":"+a(c)+":"+s;return u},"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),a=(new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),function(e){return e=e.replace(/\+/g,"-"),e.replace(/\//g,"_")})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClient=function(e){return new OSS(e)}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading.lock",value:e.loading,expression:"loading",modifiers:{lock:!0}}],class:e.b()},[n("el-upload",{class:e.b({list:"picture-img"==e.listType,upload:e.disabled}),attrs:{action:e.action,"on-remove":e.handleRemove,accept:e.acceptList,"before-remove":e.beforeRemove,multiple:e.multiple,"on-preview":e.handlePreview,limit:e.limit,"http-request":e.httpRequest,drag:e.drag,readonly:e.readonly,"show-file-list":!e.isPictureImg&&e.showFileList,"list-type":e.listType,"on-change":e.handleFileChange,"on-exceed":e.handleExceed,disabled:e.disabled,"file-list":e.fileList},nativeOn:{click:function(t){return e.handleClick(t)}}},["picture-card"==e.listType?[n("i",{staticClass:"el-icon-plus"})]:"picture-img"==e.listType?[e.imgUrl?n("el-image",e._b({class:e.b("avatar"),attrs:{src:e.imgUrl,"preview-src-list":[e.imgUrl]},on:{mouseover:function(t){e.menu=!0}}},"el-image",e.allParams,!1)):n("i",{staticClass:"el-icon-plus",class:e.b("icon")}),e.menu?n("div",{staticClass:"el-upload-list__item-actions",class:e.b("menu"),on:{mouseover:function(t){e.menu=!0},mouseout:function(t){e.menu=!1},click:function(e){return e.stopPropagation(),!1}}},[n("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return t.stopPropagation(),e.handlePreview({url:e.imgUrl})}}}),e.disabled?e._e():n("i",{staticClass:"el-icon-delete",on:{click:function(t){return t.stopPropagation(),e.handleDelete(e.imgUrl)}}})]):e._e()]:e.drag?[n("i",{staticClass:"el-icon-upload"}),n("div",{staticClass:"el-upload__text"},[e._v("\n "+e._s(e.t("upload.tip"))+"\n "),n("em",[e._v(e._s(e.t("upload.upload")))])])]:[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v(e._s(e.t("upload.upload")))])],n("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s(e.tip))])],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(68),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(226),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("canvas",{ref:"canvas",class:e.b("canvas"),attrs:{width:e.width,height:e.height}})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(228),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-slider",{attrs:{disabled:e.disabled,step:e.step,min:e.min,max:e.max,range:e.range,"show-stops":e.showStops,"show-input":e.showInput,"format-tooltip":e.formatTooltip},on:{change:e.handleChange},nativeOn:{click:function(t){return e.handleClick(t)}},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}})},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(70),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(233),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){if(i(this,e),"object"===(void 0===t?"undefined":r(t))){this.obj=t;var n=document.querySelector(t.el),o="";if("object"===r(t.style))for(var a in t.style)o+=a+": "+t.style[a]+";";for(var s='<div class="akeyboard-keyboard'+(t.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":"")+'" style="'+o+'">',l=[],c=1;c<10;c++)l.push(c.toString());l.push("0");for(var u=t.keys||[["`"].concat(l).concat(["-","=","Delete"]),["Tab","q","w","e","r","t","y","u","i","o","p","[","]","\\"],["Caps","a","s","d","f","g","h","j","k","l",";","'","Enter"],["Shift","z","x","c","v","b","n","m",",",".","/","Shift"],["Space"]],d=void 0,h=[],f=[],p=0;p<u.length;p++){h.push([]),f.push([]),d=u[p];for(var g=0;g<d.length;g++)if(1!==d[g].length)h[p].push(d[g]),f[p].push(d[g]);else{switch(f[p].push(d[g].toUpperCase()),d[g]){case"`":h[p].push("~");continue;case"1":h[p].push("!");continue;case"2":h[p].push("@");continue;case"3":h[p].push("#");continue;case"4":h[p].push("$");continue;case"5":h[p].push("%");continue;case"6":h[p].push("^");continue;case"7":h[p].push("&");continue;case"8":h[p].push("*");continue;case"9":h[p].push("(");continue;case"0":h[p].push(")");continue;case"-":h[p].push("_");continue;case"=":h[p].push("+");continue;case"[":h[p].push("{");continue;case"]":h[p].push("}");continue;case"\\":h[p].push("|");continue;case";":h[p].push(":");continue;case"'":h[p].push('"');continue;case",":h[p].push("<");continue;case".":h[p].push(">");continue;case"/":h[p].push("?");continue}h[p].push(d[g].toUpperCase())}}for(var m=0;m<u.length;m++){d=u[m],s+='<div class="akeyboard-keyboard-innerKeys">';for(var v=0;v<d.length;v++)s+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-'+d[v]+'">'+d[v]+"</div>";s+="</div>"}s+="</div>",n.innerHTML=s;var b=!1;u.forEach((function(e){e.includes("Shift")&&(b=!0)})),b&&document.querySelectorAll(t.el+" .akeyboard-keyboard-keys-Shift").forEach((function(e){e.onclick=function(){if(this.isShift){e.isShift=!1,e.innerHTML="Shift",this.classList.remove("keyboard-keyboard-keys-focus");for(var n=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),i=void 0,r=0;r<n.length;r++){i=n[r];for(var o=0;o<i.childNodes.length;o++)i.childNodes[o].innerHTML=u[r][o]}}else{var a=document.querySelector(t.el+" .akeyboard-keyboard-keys-Caps");if(a&&a.isCaps)return;e.isShift=!0,e.innerHTML="SHIFT",this.classList.add("keyboard-keyboard-keys-focus");for(var s=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),l=void 0,c=0;c<s.length;c++){l=s[c];for(var d=0;d<l.childNodes.length;d++)"Shift"!==h[c][d]&&(l.childNodes[d].innerHTML=h[c][d])}}}}));var y=!1;u.forEach((function(e){e.includes("Caps")&&(y=!0)})),y&&document.querySelectorAll(t.el+" .akeyboard-keyboard-keys-Caps").forEach((function(e){e.onclick=function(){if(this.isCaps){this.isCaps=!1,this.classList.remove("keyboard-keyboard-keys-focus");for(var e=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),n=void 0,i=0;i<e.length;i++){n=e[i];for(var r=0;r<n.childNodes.length;r++)n.childNodes[r].innerHTML=u[i][r]}}else{var o=document.querySelector(t.el+" .akeyboard-keyboard-keys-Shift");if(o&&o.isShift)return;this.isCaps=!0,this.classList.add("keyboard-keyboard-keys-focus");for(var a=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),s=void 0,l=0;l<a.length;l++){s=a[l];for(var c=0;c<s.childNodes.length;c++)s.childNodes[c].innerHTML=f[l][c]}}}}))}else console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">')}return o(e,[{key:"inputOn",value:function(e,t,n,i){if("string"==typeof e)if("string"==typeof t)for(var o=document.querySelector(e),a=document.querySelectorAll(this.obj.el+" .akeyboard-keyboard-keys"),s=0;s<a.length;s++)["Shift","Caps"].includes(a[s].innerHTML)||("Delete"!==a[s].innerHTML?"Tab"!==a[s].innerHTML?"Enter"!==a[s].innerHTML?"Space"!==a[s].innerHTML?i&&"object"===(void 0===i?"undefined":r(i))&&Object.keys(i).length>0&&i[a[s].innerHTML]?a[s].onclick=i[a[s].innerHTML]:a[s].onclick=function(){o[t]+=this.innerText,n(this.innerText,o[t])}:a[s].onclick=function(){o[t]+=" ",n("Space",o[t])}:a[s].onclick=function(){o[t]+="\n",n("Enter",o[t])}:a[s].onclick=function(){o[t]+=" ",n("Tab",o[t])}:a[s].onclick=function(){o[t]=o[t].substr(0,o[t].length-1),n("Delete",o[t])});else console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');else console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">')}},{key:"onclick",value:function(e,t){if("string"==typeof e)if("function"==typeof t){var n=document.querySelector(this.obj.el+" .akeyboard-keyboard-keys-"+e);n?n.onclick=t:console.error("Can not find key: "+e)}else console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');else console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">')}}]),e}();t.default=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){if(i(this,e),"object"===(void 0===t?"undefined":r(t))){this.obj=t;var n=document.querySelector(t.el),o="";if("object"===r(t.style))for(var a in t.style)o+=a+": "+t.style[a]+";";var s='<div class="akeyboard-numberKeyboard'+(t.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":"")+'" style="'+o+'">';s+='<div class="akeyboard-keyboard-innerKeys">';for(var l=1;l<10;l++)s+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-'+l+'">'+l+"</div>",l%3==0&&(s+='</div><div class="akeyboard-keyboard-innerKeys">');s+='<div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-0">0</div><div class="akeyboard-keyboard-keys akeyboard-keyboard-keys-Delete">Delete</div></div><div class="akeyboard-keyboard-innerKeys"><div class="akeyboard-keyboard-keys akeyboard-numberKeyboard-keys-Enter">Enter</div></div>',s+="</div>",n.innerHTML=s}else console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">')}return o(e,[{key:"inputOn",value:function(e,t,n,i){if("string"==typeof e)if("string"==typeof t)for(var o=document.querySelector(e),a=document.querySelectorAll(this.obj.el+" .akeyboard-keyboard-keys"),s=0;s<a.length;s++)"Delete"!==a[s].innerHTML?"Enter"!==a[s].innerHTML?i&&"object"===(void 0===i?"undefined":r(i))&&Object.keys(i).length>0&&i[a[s].innerHTML]?a[s].onclick=i[a[s].innerHTML]:a[s].onclick=function(){o[t]+=this.innerText,n(this.innerText,o[t])}:a[s].onclick=function(){o[t]+="\n",n("Enter",o[t])}:a[s].onclick=function(){o[t]=o[t].substr(0,o[t].length-1),n("Delete",o[t])};else console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');else console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">')}},{key:"onclick",value:function(e,t){if("string"==typeof e)if("function"==typeof t){var n=document.querySelector(this.obj.el+" .akeyboard-keyboard-keys-"+e);n?n.onclick=t:console.error("Can not find key: "+e)}else console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');else console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">')}}]),e}();t.default=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){if(i(this,e),"object"===(void 0===t?"undefined":r(t))){this.obj=t;var n=document.querySelector(t.el),o="";if("object"===r(t.style))for(var a in t.style)o+=a+": "+t.style[a]+";";for(var s='<div class="akeyboard-mobileKeyboard'+(t.fixedBottomCenter?" akeyboard-keyboard-fixedBottomCenter":"")+'" style="'+o+'">',l=[],c=1;c<10;c++)l.push(c.toString());l.push("0");for(var u=t.keys||[["`"].concat(l).concat(["-","="]),["q","w","e","r","t","y","u","i","o","p","[","]","\\"],["a","s","d","f","g","h","j","k","l",";","'"],["⇧","z","x","c","v","b","n","m",",",".","/","⇦"],["Space","Enter"]],d=void 0,h=[],f=0;f<u.length;f++){h.push([]),d=u[f];for(var p=0;p<d.length;p++)if(1!==d[p].length)h[f].push(d[p]);else{switch(d[p]){case"`":h[f].push("~");continue;case"1":h[f].push("!");continue;case"2":h[f].push("@");continue;case"3":h[f].push("#");continue;case"4":h[f].push("$");continue;case"5":h[f].push("%");continue;case"6":h[f].push("^");continue;case"7":h[f].push("&");continue;case"8":h[f].push("*");continue;case"9":h[f].push("(");continue;case"0":h[f].push(")");continue;case"-":h[f].push("_");continue;case"=":h[f].push("+");continue;case"[":h[f].push("{");continue;case"]":h[f].push("}");continue;case"\\":h[f].push("|");continue;case";":h[f].push(":");continue;case"'":h[f].push('"');continue;case",":h[f].push("<");continue;case".":h[f].push(">");continue;case"/":h[f].push("?");continue}h[f].push(d[p].toUpperCase())}}for(var g=0;g<u.length;g++){d=u[g],s+='<div class="akeyboard-keyboard-innerKeys">';for(var m=0;m<d.length;m++)s+='<div class="akeyboard-mobileKeyboard-keys akeyboard-mobileKeyboard-keys-'+d[m]+'">'+d[m]+"</div>";s+="</div>"}s+="</div>",n.innerHTML=s;var v=!1;u.forEach((function(e){(e.includes("Shift")||e.includes("⇧"))&&(v=!0)})),v&&document.querySelectorAll(t.el+" .akeyboard-mobileKeyboard-keys-⇧").forEach((function(e){e.onclick=function(){if(this.isShift){e.isShift=!1,e.classList.remove("akeyboard-mobileKeyboard-keys-focus");for(var n=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),i=void 0,r=0;r<n.length;r++){i=n[r];for(var o=0;o<i.childNodes.length;o++)i.childNodes[o].innerHTML=u[r][o]}}else{e.classList.add("akeyboard-mobileKeyboard-keys-focus"),e.isShift=!0;for(var a=document.querySelectorAll(t.el+" .akeyboard-keyboard-innerKeys"),s=void 0,l=0;l<a.length;l++){s=a[l];for(var c=0;c<s.childNodes.length;c++)s.childNodes[c].innerHTML=h[l][c]}}}}))}else console.error('aKeyboard: The obj parameter needs to be an object <In "new aKeyboard()">')}return o(e,[{key:"inputOn",value:function(e,t,n,i){if("string"==typeof e)if("string"==typeof t)for(var o=document.querySelector(e),a=document.querySelectorAll(this.obj.el+" .akeyboard-mobileKeyboard-keys"),s=0;s<a.length;s++){switch(a[s].innerHTML){case"⇧":continue;case"⇦":a[s].onclick=function(){o[t]=o[t].substr(0,o[t].length-1),n("Delete",o[t])};continue;case"Enter":a[s].onclick=function(){o[t]+="\n",n("Enter",o[t])};continue;case"Space":a[s].onclick=function(){o[t]+=" ",n("Space",o[t])};continue}i&&"object"==(void 0===i?"undefined":r(i))&&Object.keys(i).length>0&&i[a[s].innerHTML]?a[s].onclick=i[a[s].innerHTML]:a[s].onclick=function(){o[t]+=this.innerText,n(this.innerText,o[t])}}else console.error('aKeyboard: The type parameter needs to be a string <In "aKeyboard.inputOn()">');else console.error('aKeyboard: The inputEle parameter needs to be a string <In "aKeyboard.inputOn()">')}},{key:"onclick",value:function(e,t){if("string"==typeof e)if("function"==typeof t){var n=document.querySelector(this.obj.el+" .akeyboard-mobileKeyboard-keys-"+e);n?n.onclick=t:console.error("Can not find key: "+e)}else console.error('aKeyboard: The fn parameter needs to be a function <In "aKeyboard.onclick()">');else console.error('aKeyboard: The btn parameter needs to be a string <In "aKeyboard.onclick()">')}}]),e}();t.default=a},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.b(),e.className]},[n("div",{attrs:{id:"keyboard"}})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(71),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(235),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.display?n("div",{class:[e.b({card:e.card,header:!e.isHeader,arrow:!e.arrow})]},[e._t("tabs"),n("el-collapse",{attrs:{value:e.text}},[n("el-collapse-item",{attrs:{name:1,disabled:!e.arrow}},[e.$slots.header&&e.header?n("div",{class:e.b("header"),attrs:{slot:"title"},slot:"title"},[e._t("header")],2):(e.label||e.icon)&&e.header?n("div",{class:e.b("header"),attrs:{slot:"title"},slot:"title"},[e.icon?n("i",{class:[e.icon,e.b("icon")]}):e._e(),e.label?n("h1",{class:e.b("title")},[e._v(e._s(e.label))]):e._e()]):e._e(),e._t("default")],2)],1)],2):e._e()},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(72),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(237),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e.vaildData(e.option.filter,!0)?n("div",{class:e.b("filter")},[n("el-input",{attrs:{placeholder:"输入关键字进行过滤",size:e.size},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}},[e.vaildData(e.option.addBtn,!0)?n("el-button",{attrs:{slot:"append",size:e.size,icon:"el-icon-plus"},on:{click:e.parentAdd},slot:"append"}):e._e()],1)],1):e._e(),n("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tree",attrs:{data:e.data,lazy:e.lazy,load:e.treeLoad,props:e.treeProps,"icon-class":e.iconClass,"highlight-current":!e.multiple,"show-checkbox":e.multiple,accordion:e.accordion,"node-key":e.props.value,"check-strictly":e.checkStrictly,"filter-node-method":e.filterNode,"expand-on-click-node":e.expandOnClickNode,"default-expand-all":e.defaultExpandAll},on:{"check-change":e.handleCheckChange,"node-click":e.nodeClick,"node-contextmenu":e.nodeContextmenu},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,r=t.data;return e.$scopedSlots.default?n("span",{},[e._t("default",null,{node:i,data:r})],2):n("span",{staticClass:"el-tree-node__label"},[n("span",[e._v(e._s(i.label))])])}}],null,!0)}),e.client.show&&e.menu?n("div",{staticClass:"el-cascader-panel is-bordered",class:e.b("menu"),style:e.styleName,on:{click:function(t){e.client.show=!1}}},[e.vaildData(e.option.addBtn,!0)?n("div",{class:e.b("item"),on:{click:e.rowAdd}},[e._v("新增")]):e._e(),e.vaildData(e.option.editBtn,!0)?n("div",{class:e.b("item"),on:{click:e.rowEdit}},[e._v("修改")]):e._e(),e.vaildData(e.option.delBtn,!0)?n("div",{class:e.b("item"),on:{click:e.rowRemove}},[e._v("删除")]):e._e(),e._t("menu",null,{node:e.node})],2):e._e(),n("el-dialog",{staticClass:"avue-dialog",class:e.b("dialog"),attrs:{title:e.node[e.labelKey]||e.title,visible:e.box,"modal-append-to-body":"","append-to-body":"",width:e.vaildData(e.option.dialogWidth,"50%")},on:{"update:visible":function(t){e.box=t},close:e.hide}},[n("avue-form",{ref:"form",attrs:{option:e.formOption},on:{submit:e.handleSubmit},model:{value:e.form,callback:function(t){e.form=t},expression:"form"}})],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(239),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("p",{style:e.styles},[e._v(e._s(e.text))])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(74),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(241),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-row",{class:[e.b(),{"avue--card":e.isCard}],attrs:{span:24}},e._l(e.columnOption,(function(t,i){return n("el-col",{key:t.prop,class:e.b("item"),attrs:{span:t.span||24}},[n("p",{class:e.b("title")},[e._v(e._s(t.label)+":")]),n("div",{class:e.b("content")},[t.slot?e._t(t.prop,null,{dic:e.DIC[t.prop]}):e._l(e.DIC[t.prop],(function(i){return n("span",{key:e.getKey(i,t.props,"value"),class:[e.b("tags"),{"avue-search__tags--active":e.getActive(i,t)}],on:{click:function(n){return e.handleClick(t,i)}}},[e._v(e._s(e.getKey(i,t.props,"label")))])}))],2)])})),1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(75),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(243),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},e._l(e.number,(function(t,i){return e.loading?n("div",{key:i,class:e.b("item")},[n("div",{class:e.b("header")},[e.avatar?n("span",{class:[e.b("avatar"),e.className]}):e._e()]),n("div",{class:e.b("content")},[n("h3",{class:[e.b("title"),e.className]}),n("div",{class:e.b("list")},e._l(e.rows,(function(t,i){return n("li",{key:i,class:[e.b("li"),e.className],style:e.styleName})})),0)])]):n("div",[e._t("default")],2)})),0)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(76),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(245),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-tabs",{attrs:{"tab-position":e.parentOption.position,type:e.parentOption.type},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},e._l(e.columnOption,(function(t,i){return n("el-tab-pane",{key:i,attrs:{name:i+"",disabled:t.disabled}},[n("span",{attrs:{slot:"label"},slot:"label"},[n("i",{class:t.icon}),e._v(" \n "+e._s(t.label)+"\n ")]),e.tabsObjOption?n("avue-form",{ref:"form",refInFor:!0,attrs:{"upload-before":e.uploadBefore,"upload-after":e.uploadAfter,option:e.tabsObjOption},scopedSlots:e._u([e._l(e.tabsPropOptiom,(function(t){return{key:t.prop,fn:function(n){return[t.formslot?e._t(t.prop,null,{value:n.value,column:n.column,dic:n.dic,size:n.size,type:n.type}):e._e()]}}})),{key:"menuForm",fn:function(t){var i=t.size;return[e.vaildData(e.parentOption.submitBtn,!0)?n("el-button",{attrs:{type:"primary",size:i,icon:"el-icon-check"},on:{click:e.submit}},[e._v(e._s(e.vaildData(e.parentOption.submitText,"提 交")))]):e._e(),e.vaildData(e.parentOption.emptyBtn,!0)?n("el-button",{attrs:{icon:"el-icon-delete",size:i},on:{click:e.resetForm}},[e._v(e._s(e.vaildData(e.parentOption.emptyText,"清 空")))]):e._e(),e._t("menuForm")]}}],null,!0),model:{value:e.form,callback:function(t){e.form=t},expression:"form"}}):e._e()],1)})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(77),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(247),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e.isForm?[n("div",{class:e.b("header")},[e.readonly||e.disabled||e.addBtn?e._e():n("el-button",{attrs:{size:"mini",circle:"",disabled:e.disabled,type:"primary",icon:"el-icon-plus"},on:{click:e.addRow}})],1),n("div",e._l(e.text,(function(t,i){return n("div",{class:e.b("row"),on:{mouseenter:function(t){return e.cellMouseenter({$index:i})},mouseleave:function(t){return e.cellMouseLeave({$index:i})}}},[e.readonly||e.disabled||e.delBtn||!e.hoverList[i]?e._e():n("el-button",{class:e.b("menu"),attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(n){return e.delRow(t.$index)}}}),n("avue-form",{key:i,attrs:{option:e.option},scopedSlots:e._u([{key:"_index",fn:function(i){return n("div",{},[n("span",[e._v(e._s(t.$index+1))])])}},e._l(e.columnOption,(function(t){return{key:t.prop,fn:function(n){return[e._t(t.prop,null,{row:e.text[i],dic:n.dic,size:n.size,label:n.label})]}}}))],null,!0),model:{value:e.text[i],callback:function(t){e.$set(e.text,i,t)},expression:"text[index]"}})],1)})),0)]:e.isCrud?n("avue-crud",{ref:"crud",attrs:{option:e.option,disabled:e.disabled,data:e.text},on:{"cell-mouse-enter":e.cellMouseenter,"cell-mouse-leave":e.cellMouseLeave,"selection-change":e.handleSelectionChange},scopedSlots:e._u([{key:"_index",fn:function(t){return[e.readonly||e.disabled||e.delBtn||!e.hoverList[t.row.$index]?n("div",[e._v(e._s(t.row.$index+1))]):n("el-button",{attrs:{type:"danger",size:"mini",disabled:e.disabled,icon:"el-icon-delete",circle:""},on:{click:function(n){return e.delRow(t.row.$index)}}})]}},e._l(e.columnOption,(function(t,n){return{key:t.prop,fn:function(n){return[e._t(t.prop,null,{row:n.row,dic:n.dic,size:n.size,label:n.label})]}}}))],null,!0)}):e._e()],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(78),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(249),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.b(),{"avue-queue--block":e.block}]},[n("div",{ref:"queue",staticClass:"animated",class:e.animate},[e._t("default")],2)])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(79),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(252),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t){i(this,e),this.video=t,this.mediaRecorder=null,this.chunks=[]}return r(e,[{key:"init",value:function(){var e=this;return new Promise((function(t,n){navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then((function(n){"srcObject"in e.video?e.video.srcObject=n:e.video.src=window.URL.createObjectURL(n),e.video.addEventListener("loadmetadata",(function(){e.video.play()})),e.mediaRecorder=new MediaRecorder(n),e.mediaRecorder.addEventListener("dataavailable",(function(t){e.chunks.push(t.data)})),t()})).catch((function(e){n(e)}))}))}},{key:"startRecord",value:function(){"inactive"===this.mediaRecorder.state&&this.mediaRecorder.start()}},{key:"stopRecord",value:function(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop()}},{key:"isSupport",value:function(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return!0}}]),e}();t.default=o},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleName},[n("div",{class:e.b("border")},[n("span",{style:e.borderStyleName}),n("span",{style:e.borderStyleName}),n("span",{style:e.borderStyleName}),n("span",{style:e.borderStyleName})]),n("img",{class:e.b("img"),style:e.imgStyleName,attrs:{src:e.background}}),n("video",{ref:"main",class:e.b("main"),attrs:{autoplay:"",muted:""},domProps:{muted:!0}})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(80),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(254),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:{width:e.setPx(e.width)}},[n("el-form",{ref:"form",attrs:{model:e.form,"label-suffix":":","label-width":e.setPx(e.labelWidth)}},[e.username.hide?e._e():n("el-form-item",{attrs:{label:e.username.label||"用户名",rules:e.username.rules,"label-width":e.setPx(e.username.labelWidth),prop:"username"}},[n("el-tooltip",{attrs:{content:e.username.tip,disabled:void 0===e.username.tip,placement:"top-start"}},[n("el-input",{attrs:{size:"small","prefix-icon":e.username.prefixIcon||"el-icon-user",placeholder:e.username.placeholder||"请输入用户名",autocomplete:e.username.autocomplete},model:{value:e.form.username,callback:function(t){e.$set(e.form,"username",t)},expression:"form.username"}})],1)],1),e.password.hide?e._e():n("el-form-item",{attrs:{label:e.password.label||"密码",rules:e.password.rules,"label-width":e.setPx(e.password.labelWidth),prop:"password"}},[n("el-tooltip",{attrs:{content:e.password.tip,disabled:void 0===e.password.tip,placement:"top-start"}},[n("el-input",{attrs:{type:"password",size:"small","prefix-icon":e.password.prefixIcon||"el-icon-unlock",placeholder:e.password.placeholder||"请输入密码","show-password":"",autocomplete:e.password.autocomplete},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1)],1),e.code.hide?e._e():n("el-form-item",{attrs:{label:e.code.label||"验证码",rules:e.code.rules,"label-width":e.setPx(e.code.labelWidth),prop:"code"}},[n("el-tooltip",{attrs:{content:e.code.tip,disabled:void 0===e.code.tip,placement:"top-start"}},[n("el-input",{attrs:{size:"small","prefix-icon":e.code.prefixIcon||"el-icon-c-scale-to-original",placeholder:e.code.placeholder||"请输入验证码",autocomplete:e.code.autocomplete},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code",t)},expression:"form.code"}},[n("template",{slot:"append"},[e.isPhone?n("el-button",{class:e.b("send"),attrs:{type:"primary",disabled:e.sendDisabled},on:{click:e.onSend}},[e._v(e._s(e.text))]):e._e(),e.isImg?n("span",[n("img",{attrs:{src:e.codesrc,alt:"",width:"80",height:"25"},on:{click:e.onRefresh}})]):e._e()],1)],2)],1)],1),n("el-form-item",[n("el-button",{class:e.b("submit"),attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("登录")])],1)],1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(81),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(256),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},e._l(e.text,(function(t,i){return n("div",{key:i,class:e.b("item")},[n("div",{class:e.b("input")},[n("el-tooltip",{attrs:{placement:"bottom",disabled:!e.isImg&&!e.isUrl||e.validatenull(t)}},[n("div",{attrs:{slot:"content"},slot:"content"},[e.isImg?n("el-image",{staticStyle:{width:"150px"},attrs:{src:t,fit:"cover"},on:{click:function(t){return e.openImg(i)}}}):e.isUrl?n("el-link",{attrs:{type:"primary",href:t,target:e.target}},[e._v(e._s(t))]):e._e()],1),n("el-input",{attrs:{placeholder:e.placeholder,disabled:e.disabled},model:{value:e.text[i],callback:function(t){e.$set(e.text,i,t)},expression:"text[index]"}})],1),e.disabled||e.readonly||e.alone?e._e():[n("el-button",0===i?{attrs:{type:"primary",icon:"el-icon-plus",circle:"",size:e.size},on:{click:function(t){return e.add()}}}:{attrs:{type:"danger",icon:"el-icon-minus",circle:"",size:e.size},on:{click:function(t){return e.remove(i)}}})]],2)])})),0)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(82),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(258),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:{width:e.setPx(e.width,"100%")}},[e._t("before"),n("el-tooltip",{attrs:{content:e.text,disabled:!(e.useTooltip&&e.isHide),placement:e.placement}},[n("span",[n("span",{key:e.keyIndex,ref:"text",class:e.b("text")},[e._v(e._s(e.text))])])]),n("span",{ref:"more",class:e.b("more")},[e._t("more")],2),e._t("after")],2)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(260),o=i(r),a=n(262),s=i(a),l=n(264),c=i(l),u=n(266),d=i(u),h=n(268),f=i(h),p=n(270),g=i(p),m=n(272),v=i(m),b=n(274),y=i(b),_=n(276),w=i(_),x=n(278),C=i(x),S=n(280),k=i(S),O=n(282),M=i(O),D=n(284),E=i(D);t.default={DataTabs:o.default,DataCardText:s.default,DataBox:c.default,DataProgress:d.default,DataIcons:f.default,DataCard:g.default,DataDisplay:v.default,DataImgText:y.default,DataOperaText:w.default,DataRotate:C.default,DataPay:k.default,DataPrice:M.default,DataPanel:E.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(83),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(261),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-tabs"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{background:t.color}},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-header"},[n("p",[e._v(e._s(t.title))]),n("span",[e._v(e._s(t.subtitle))])]),n("div",{staticClass:"item-body"},[n("avue-count-up",{staticClass:"h2",attrs:{decimals:e.decimals,animation:e.animation,end:t.count}})],1),n("div",{staticClass:"item-footer"},[n("span",[e._v(e._s(t.allcount))]),n("p",[e._v(e._s(t.text))])]),n("p",{staticClass:"item-tip"},[e._v(e._s(t.key))])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(84),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(263),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-cardText"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:t.href||"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-header"},[n("i",{class:t.icon||"el-icon-bell",style:{color:t.color||"red"}}),n("a",{},[e._v(e._s(t.title))])]),n("div",{staticClass:"item-content"},[e._v(e._s(t.content))]),n("div",{staticClass:"item-footer"},[n("span",[e._v(e._s(t.name))]),n("span",[e._v(e._s(t.date))])])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(85),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(265),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"data-box"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-icon",style:{backgroundColor:t.color}},[n("i",{class:t.icon})]),n("div",{staticClass:"item-info"},[n("avue-count-up",{staticClass:"title",style:{color:t.color},attrs:{animation:e.animation,decimals:e.decimals,end:t.count}}),n("div",{staticClass:"info"},[e._v(e._s(t.title))])],1)])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(86),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(267),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"data-progress"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-header"},[n("avue-count-up",{staticClass:"item-count",attrs:{animation:e.animation,decimals:e.decimals,end:t.count}}),n("div",{staticClass:"item-title",domProps:{textContent:e._s(t.title)}})],1),n("el-progress",{attrs:{"stroke-width":15,percentage:t.count,color:t.color,"show-text":!1}})],1)])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(87),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(269),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"data-icons"},[n("el-row",{attrs:{span:24}},[e._l(e.data,(function(t,i){return[n("el-col",{key:i,attrs:{xs:12,sm:6,md:e.span}},[n("div",{staticClass:"item",class:[{"item--easy":e.discount}]},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-icon",style:{color:e.color}},[n("i",{class:t.icon})]),n("div",{staticClass:"item-info"},[n("span",[e._v(e._s(t.title))]),n("avue-count-up",{staticClass:"count",style:{color:e.color},attrs:{animation:e.animation,decimals:e.decimals,end:t.count}})],1)])])])]}))],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(88),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(271),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"data-card"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("img",{staticClass:"item-img",attrs:{src:t.src}}),n("div",{staticClass:"item-text",style:{backgroundColor:e.bgText}},[n("h3",{style:{color:e.colorText}},[e._v(e._s(t.name))]),n("p",{style:{color:e.colorText}},[e._v(e._s(t.text))])])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(89),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(273),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-display"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:12,sm:12}},[n("div",{staticClass:"item",style:{color:e.color}},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("avue-count-up",{staticClass:"count",attrs:{animation:e.animation,decimals:e.decimals,end:t.count}}),n("span",{staticClass:"splitLine"}),n("div",{staticClass:"title"},[e._v(e._s(t.title))])],1)])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(275),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-imgtext"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{color:e.color}},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-header"},[n("img",{attrs:{src:t.imgsrc,alt:""}})]),n("div",{staticClass:"item-content"},[n("span",[e._v(e._s(t.title))]),n("p",[e._v(e._s(t.content))])]),n("div",{staticClass:"item-footer"},[n("div",{staticClass:"time"},[n("span",[e._v(e._s(t.time))])]),n("div",{staticClass:"imgs"},[n("ul",e._l(t.headimg,(function(e,t){return n("li",{key:t},[n("el-tooltip",{attrs:{effect:"dark",content:e.name,placement:"top-start"}},[n("img",{attrs:{src:e.src,alt:""}})])],1)})),0)])])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(91),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(277),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-operatext"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);"},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item-header",style:{backgroundColor:t.color,backgroundImage:"url("+t.colorImg+")"}},[n("span",{staticClass:"item-title"},[e._v(e._s(t.title))]),n("span",{staticClass:"item-subtitle"},[e._v(e._s(t.subtitle))])]),n("div",{staticClass:"item-content"},[n("div",{staticClass:"item-img"},[n("img",{attrs:{src:t.img,alt:""}})]),n("div",{staticClass:"item-list"},e._l(t.list,(function(t,i){return n("div",{key:i,staticClass:"item-row"},[n("span",{staticClass:"item-label"},[e._v(e._s(t.label))]),n("span",{staticClass:"item-value"},[e._v(e._s(t.value))])])})),0)])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(92),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(279),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-rotate"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item",style:{backgroundColor:t.color}},[n("div",{staticClass:"item-box"},[n("avue-count-up",{staticClass:"item-count",attrs:{decimals:e.decimals,animation:e.animation,end:t.count}}),n("span",{staticClass:"item-title"},[e._v(e._s(t.title))]),n("i",{staticClass:"item-icon",class:t.icon})],1),n("a",{attrs:{href:t.href?t.href:"javascript:void(0);"},on:{click:function(e){t.click&&t.click(t)}}},[n("p",{staticClass:"item-more"},[e._v("更多"),n("i",{staticClass:"el-icon-arrow-right"})])])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(93),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(281),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("div",{staticClass:"item"},[n("div",{staticClass:"top",style:{backgroundColor:t.color}}),n("div",{staticClass:"header"},[n("p",{staticClass:"title"},[e._v(e._s(t.title))]),n("img",{staticClass:"img",attrs:{src:t.src,alt:""}}),t.subtitle?[n("p",{staticClass:"subtitle",style:{color:t.color}},[e._v(e._s(t.subtitle))])]:e._e(),t.money||t.dismoney?[n("p",{staticClass:"money",style:{color:t.color}},[n("span",[e._v("¥")]),n("avue-count-up",{staticClass:"b",attrs:{decimals:e.decimals,animation:e.animation,end:t.dismoney}}),n("s",[e._v(e._s(t.money))]),n("em",[e._v(e._s(t.tip))])],1)]:e._e(),n("div",{staticClass:"line"}),n("a",{staticClass:"btn",style:{backgroundColor:t.color},attrs:{href:t.href?t.href:"javascript:void(0);"},on:{click:function(e){t.click&&t.click(t)}}},[e._v(e._s(t.subtext))])],2),n("div",{staticClass:"list"},e._l(t.list,(function(i,r){return n("div",{staticClass:"list-item"},[i.check?n("i",{staticClass:"list-item-icon list-item--check",style:{color:t.color}},[e._v("√")]):n("i",{staticClass:"list-item-icon list-item--no"},[e._v("x")]),n("a",{attrs:{href:i.href?i.href:"javascript:void(0);"}},[n("el-tooltip",{attrs:{effect:"dark",disabled:!i.tip,placement:"top"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(i.tip)},slot:"content"}),n("span",{class:{"list-item--link":i.href}},[e._v(e._s(i.title))])])],1)])})),0)])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(94),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(283),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"data-price"},[n("el-row",{attrs:{span:24}},[e._l(e.data,(function(t,i){return[n("el-col",{key:i,attrs:{xs:12,sm:6,md:e.span}},[n("div",{staticClass:"item item--active"},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);",target:t.target},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"title"},[e._v("\n "+e._s(t.title)+"\n ")]),n("div",{staticClass:"body"},[n("span",{staticClass:"price"},[e._v(e._s(t.price))]),n("span",{staticClass:"append"},[e._v(e._s(t.append))])]),n("div",{staticClass:"list"},e._l(t.list,(function(t,i){return n("p",{key:i},[e._v("\n "+e._s(t)+"\n ")])})),0)])])])]}))],2)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(95),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(285),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avue-data-panel"},[n("el-row",{attrs:{span:24}},e._l(e.data,(function(t,i){return n("el-col",{key:i,attrs:{md:e.span,xs:24,sm:12}},[n("a",{attrs:{href:t.href?t.href:"javascript:void(0);"},on:{click:function(e){t.click&&t.click(t)}}},[n("div",{staticClass:"item"},[n("div",{staticClass:"item-icon"},[n("i",{class:t.icon,style:{color:t.color}})]),n("div",{staticClass:"item-info"},[n("div",{staticClass:"item-title"},[e._v(e._s(t.title))]),n("avue-count-up",{staticClass:"item-count",attrs:{animation:e.animation,decimals:e.decimals,end:t.count}})],1)])])])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(287),o=i(r),a=n(291),s=i(a),l=n(293),c=i(l),u=n(295),d=i(u),h=n(297),f=i(h),p=n(299),g=i(p),m=n(301),v=i(m),b=n(303),y=i(b),_=n(305),w=i(_),x=n(307),C=i(x),S=n(309),k=i(S),O=n(311),M=i(O),D=n(313),E=i(D),T=n(315),L=i(T),I=n(317),A=i(I),N=n(319),P=i(N),R=n(321),F=i(R),j=n(323),B=i(j),z=n(325),V=i(z),$=n(327),W=i($),H=n(329),U=i(H),q=n(331),G=i(q),K=n(333),Y=i(K);t.default={EchartRadar:W.default,EchartScatter:G.default,EchartFunnel:U.default,EchartSlide:B.default,EchartTabs:F.default,EchartVideo:C.default,EchartWordCloud:k.default,EchartPictorialBar:V.default,EchartMaps:L.default,EchartImg:A.default,EchartImgBorder:P.default,EchartBar:o.default,EchartGauge:M.default,EchartIframe:w.default,EchartSwiper:y.default,EchartTable:d.default,EchartPie:s.default,EchartText:v.default,EchartLine:c.default,EchartFlop:f.default,EchartDatetime:g.default,EchartProgress:E.default,EchartCommon:Y.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(96),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(290),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(289),a=i(o),s=n(6),l=i(s);t.default=function(){return{props:{click:Function,dataFormatter:Function,titleFormatter:Function,labelFormatter:Function,clickFormatter:Function,formatter:Function,echartFormatter:Function,width:{type:[Number,String],default:600},height:{type:[Number,String],default:600},theme:{type:String},animation:{type:Boolean,default:!0},child:{type:Object,default:function(){return{}}},time:{type:Number,default:0},url:{type:String},disabled:{type:Boolean,default:!0},dataType:{type:Number,default:0},dataQuery:{type:Object,default:function(){return{}}},homeUrl:{type:String},dataAppend:{type:Boolean,default:!1},dataMethod:{type:String,default:"get"},id:{type:String,default:"main_"+(new Date).getTime()},data:{type:[Object,String,Array]},component:{type:Object,default:function(){return{}}},option:{type:Object,default:function(){return{}}}},data:function(){return{propQuery:{},dataCount:0,headerHeight:"",checkChart:"",myChart:"",dataChart:[],dataUrl:"",key:!1,isChart:!0}},watch:{echartFormatter:function(){this.updateChart()},styleChartName:function(){var e=this;this.$nextTick((function(){e.myChart&&e.myChart.resize()}))},url:{handler:function(e){this.dataUrl=e||""},deep:!0,immediate:!0},data:{handler:function(){this.updateData()},deep:!0,immediate:!0},width:function(){this.updateData()},height:function(){this.updateData()},theme:function(){this.myChart.dispose(),this.init(),this.updateData()},option:{handler:function(){this.myChart&&this.isChart&&this.updateData()},deep:!0,immediate:!0}},computed:{dataChartLen:function(){return(this.dataChart||[]).length},switchTheme:function(){return this.vaildData(this.option.switchTheme,!1)},name:function(){return this.$el.className.replace(a.default.name,"")},minWidth:function(){var e=this.option.minWidth;if(e>this.width)return e},isApi:function(){return 1===this.dataType},style:function(){return this.component.style||{}},styleChartName:function(){return{width:(0,r.setPx)(this.minWidth||this.width),height:(0,r.setPx)(this.height)}},styleSizeName:function(){var e=this;return Object.assign({width:(0,r.setPx)(this.width),height:(0,r.setPx)(this.height)},function(){return e.minWidth?{overflowX:"auto",overflowY:"hidden"}:{}}())}},mounted:function(){this.init()},methods:{init:function(){if(window.echarts){var e=this.$refs[this.id];e&&(this.isChart=a.default.echart.includes(this.name),this.isChart&&(this.myChart=window.echarts.init(e,this.theme)))}else l.default.logs("echarts")},updateUrl:function(e){this.dataUrl=e,this.updateData()},updateData:function(){var e=this;if(this.resetData&&this.resetData(),!this.key){this.key=!0;var t=function(){if(e.key=!1,e.isApi){var t=e.dataUrl.replace(a.default.homeurl,e.homeUrl),n=function(t){var n=function(){return"function"==typeof e.dataFormatter?e.dataFormatter(t.data):t.data||{}}();e.dataAppend?n.forEach((function(t){e.dataCount++,setTimeout((function(){e.dataChart.unshift(t)}),1500*e.dataCount)})):e.dataChart=n,e.isChart&&e.myChart&&(e.myChart.clear(),e.updateChart(),e.bindClick())},i=(0,r.getUrlParams)(t),o=i.url,s=Object.assign(i.params,e.dataQuery,e.propQuery);if(!window.axios)return void l.default.logs("axios");e.$axios[e.dataMethod](o,function(){return"get"===e.dataMethod?{params:s}:"post"===e.dataMethod?s:void 0}()).then((function(e){n(e)}))}else"function"==typeof e.dataFormatter?e.dataChart=e.dataFormatter(e.data):e.dataChart=e.data,e.isChart&&e.myChart&&(e.myChart.clear(),e.updateChart(),e.bindClick())};this.$nextTick((function(){t(),clearInterval(e.checkChart),0!==e.time&&e.disabled&&(e.checkChart=setInterval((function(){t()}),e.time))}))}},getLabelFormatter:function(e){return this.labelFormatter?this.labelFormatter(e,this.dataChart):e.value},bindClick:function(){var e=this;this.myChart.off("click"),this.myChart.on("click",(function(t){t.marker&&e.clickFormatter&&e.clickFormatter({type:e.name,name:t.name,value:t.value[2]||t.value,data:e.dataChart})}))},getColor:function(e,t){var n=this.option.barColor||[];if(n[e]){var i=n[e].color1,r=n[e].color2,o=.01*(n[e].postion||.9);return t?i:r?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:i},{offset:o,color:r}],global:!1}:i}},ishasprop:function(e,t,n){return Object.assign(function(){return e?t:{}}(),n)}}}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8);t.default={name:i.KEY_COMPONENT_NAME+i.KEY_ECHART_NAME,homeurl:"${HOME_URL}",echart:["common","map","pictorialbar","wordcloud","scatter","bar","line","pie","gauge","funnel","radar"]}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(97),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(292),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{class:e.b("title"),domProps:{innerHTML:e._s(e.titleFormatter&&e.titleFormatter(e.dataChart))}}),n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(98),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(294),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(99),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(296),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:[e.styleSizeName,{overflow:e.scroll?"hidden":"inherit"}]},[n("el-dialog",{attrs:{visible:e.visible,"modal-append-to-body":"","append-to-body":"",title:"数据显隐",width:"30%"},on:{"update:visible":function(t){e.visible=t}}},[n("avue-checkbox",{attrs:{dic:e.columnList},model:{value:e.columnData,callback:function(t){e.columnData=t},expression:"columnData"}})],1),n("el-dialog",{class:e.b("allview"),attrs:{visible:e.listVisible,"modal-append-to-body":"",title:"详细数据","append-to-body":"",width:"80%"},on:{"update:visible":function(t){e.listVisible=t}}},[n("avue-crud",{attrs:{option:e.listOption,data:e.dataTabel}})],1),n("div",{class:e.b("menu"),style:e.styleMenuName},[e.columnShow?n("i",{staticClass:"el-icon-menu",on:{click:function(t){e.visible=!0}}}):e._e(),e.columnListShow?n("i",{staticClass:"el-icon-view",on:{click:function(t){e.listVisible=!0}}}):e._e()]),n("div",{class:e.b("table"),style:e.styleTdName},[n("div",{class:e.b("tr")},[e.index?n("div",{class:e.b("td"),style:[e.styleThName,{width:e.setPx(e.indexWidth)}]},[e._v("\n "+e._s(e.indexLabel)+"\n ")]):e._e(),e._l(e.columnOption,(function(t,i){return[e.columnData.includes(t.prop)?n("div",{key:i,class:e.b("td"),style:[e.styleThName,e.styleWidth(t)],on:{click:function(n){return e.handleSortable(t.prop)}}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()]}))],2),e.totalFlag?n("div",{class:e.b("tr")},[e.index?n("div",{class:e.b("td"),style:[{width:e.setPx(e.indexWidth)}]},[e._v("\n 合计\n ")]):e._e(),e._l(e.columnOption,(function(t,i){return[e.columnData.includes(t.prop)?n("div",{key:i,class:e.b("td"),style:[e.styleWidth(t)]},[e._v("\n "+e._s(e.totalData[t.prop])+"\n ")]):e._e()]}))],2):e._e(),n("div",{ref:"body",class:e.b("body"),style:e.styleSizeName},[n("transition-group",{attrs:{"enter-active-class":e.option.enterActiveClass,"leave-active-class":e.option.leaveActiveClass,tag:"div"}},e._l(e.dataTabel,(function(t,i){return n("div",{key:e.dataTabelLen-i,class:e.b("tr",["line"]),style:[e.styleTrName(i),{top:e.setPx(i*e.lineHeight+e.top)}],on:{click:function(n){return e.rowClick(t,i)}}},[e.index?n("div",{key:e.index,class:e.b("td"),style:[e.styleWidth(t)]},[n("div",{class:e.b("index",[i+1+""])},[e._v(" "+e._s(i+1))])]):e._e(),e._l(e.columnOption,(function(i,r){return[e.columnData.includes(i.prop)?n("div",{key:r,class:e.b("td"),style:[e.styleTdName,e.styleWidth(i)]},[n("span",{domProps:{innerHTML:e._s(t[i.prop])}})]):e._e()]}))],2)})),0)],1)])],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(100),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(298),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},e._l(e.listData,(function(t,i){return n("div",{key:i,style:e.styleParentSize},[n("el-tooltip",{style:[e.styleParentName,{backgroundColor:t.backgroundColor||e.option.backgroundColor}],attrs:{disabled:!t.formatter,placement:"top-start"}},[n("div",{attrs:{slot:"content"},domProps:{innerHTML:e._s(t.formatter&&t.formatter())},slot:"content"}),n("div",{class:e.b("item",{none:e.statusDIC.includes(t)||""===e.type,whole:e.isWhole,img:e.isWhole&&(e.isImg||e.isBorder)}),style:e.isWhole?e.styleName:"",on:{click:function(n){return e.handleClick(t,i)}}},[e.getValByArray(t,"prefixText")?n("div",{style:e.prefixStyle},[e._v(e._s(e.getValByArray(t,"prefixText")))]):e._e(),e.isWhole?n("avue-count-up",{attrs:{decimals:e.decimals,end:t.data||t.value}}):n("div",{class:e.b("count")},e._l((t.data||t.value)+"".split(","),(function(t,i){return n("div",{key:i,class:e.b("item",{none:e.statusDIC.includes(t)||""===e.type,img:e.isImg}),style:e.styleName,on:{click:function(n){return e.handleClick(t,i)}}},[e.statusDIC.includes(t)?n("div",[e._v(e._s(t))]):n("avue-count-up",{attrs:{decimals:e.decimals,end:t}})],1)})),0),e.getValByArray(t,"suffixText")?n("div",{style:e.suffixStyle},[e._v(e._s(e.getValByArray(t,"suffixText")))]):e._e()],1)])],1)})),0)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(101),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(300),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("p",{style:e.styleName},[e._v(e._s(e.nowDate))])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(102),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(302),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("div",{ref:"box",class:e.b("box")},[n("a",{ref:"text",class:e.b("text"),style:e.styleName,attrs:{href:e.linkHref,target:e.linkTarget}},[e._v(e._s(e.dataChart.value))])])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(103),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(304),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName},[n("el-carousel",{attrs:{type:e.type,"indicator-position":e.indicator,interval:e.interval,height:e.height}},e._l(e.dataChart,(function(t){return n("el-carousel-item",{key:t,on:{click:function(n){return e.handleClick(t,e.index)}}},[n("img",{style:e.styleName,attrs:{src:t.value,draggable:"false"}})])})),1)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(104),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(306),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("iframe",{attrs:{src:e.dataChart.value,draggable:"false"}})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(105),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(308),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("video",{staticStyle:{"object-fit":"fill"},attrs:{controls:"",autoplay:"",loop:"",width:e.width,height:e.height}},[n("source",{attrs:{src:e.dataChart.value}})])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(106),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(310),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(107),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(312),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(108),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(314),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("div",{class:e.b("text",{line:"line"===e.type,circle:"circle"===e.type})},[n("p",{style:e.styleSuffixName},[e._v(e._s(e.dataChart.label))]),n("p",{style:e.styleName},[e.dataChart.value?n("avue-count-up",{attrs:{end:Number(e.dataChart.value)}}):e._e()],1)]),n("avue-progress",{attrs:{color:e.color,width:e.width,showText:!1,strokeWidth:e.strokeWidth,percentage:e.dataChart.data,type:e.type}})],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(109),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(316),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName,on:{mousewheel:function(t){return t.preventDefault(),e.handleMousewheel(t)}}},[e.isEchart?n("div",{ref:e.id,style:e.styleChartName}):n("div",{class:e.b("map")},[n("div",{class:e.b("box"),style:e.styleImgName,on:{mousedown:function(t){!e.disabled&&e.handleMouseDown(t)},mousemove:function(t){!e.disabled&&e.handleMouseMove(t)},mouseup:function(t){!e.disabled&&e.handleMouseUp(t)}}},[n("img",{ref:"img",class:e.b("bg"),attrs:{src:e.img,draggable:"false"}}),e._l(e.location,(function(t,i){return n("span",{class:e.b("location"),style:{left:e.setPx(t.x),top:e.setPx(t.y)}})}))],2)])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(110),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(318),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName,on:{click:e.handleClick}},[n("img",{class:e.b({rotate:e.rotate}),style:[e.styleImgName,e.styleSizeName],attrs:{src:e.dataChart.value,draggable:"false"}})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(320),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{style:e.styleImgName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(112),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(322),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"main",class:e.b(),style:e.styleSizeName},[e.isSelect?n("avue-select",{style:e.styleSelectName,attrs:{dic:"string"==typeof e.dataChart?[]:e.dataChart},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}}):n("div",{class:e.b("list")},e._l(e.dataChart,(function(t,i){return n("div",{key:i,class:e.b("item"),style:[e.styleName,e.styleActiveName(t)],on:{click:function(n){return e.handleClick(t.value)}}},[t.icon?n("div",{class:e.b("icon"),style:[e.styleIconName,e.styleIconBgName(t),e.styleIconActiveName(t)]}):e._e(),n("span",[e._v(e._s(t.label))])])})),0)],1)},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(113),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(324),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{staticClass:"swiper-container"},[e.reload?n("div",{staticClass:"swiper-wrapper"},[e._t("default")],2):e._e(),n("div",{staticClass:"swiper-pagination"})])])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(114),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(326),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(115),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(328),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(116),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(330),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(117),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(332),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(118),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(334),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b(),style:e.styleSizeName},[n("div",{ref:e.id,style:e.styleChartName})])},r=[],o={render:i,staticRenderFns:r};t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={bind:function(e,t,n,i){if(0!=t.value){var r=e.querySelector(".el-dialog__header"),o=e.querySelector(".el-dialog");r.style.cursor="move";var a=o.currentStyle||window.getComputedStyle(o,null);o.style.position="absolute",o.style.top=""+o.style.marginTop,o.style.marginTop=0;var s=o.style.width;s=s.includes("%")?+document.body.clientWidth*(+s.replace(/\%/g,"")/100):+s.replace(/\px/g,""),o.style.left=(document.body.clientWidth-s)/2+"px",r.onmousedown=function(e){var t=e.clientX-r.offsetLeft,n=e.clientY-r.offsetTop,i=void 0,s=void 0;a.left.includes("%")?(i=+document.body.clientWidth*(+a.left.replace(/\%/g,"")/100),s=+document.body.clientHeight*(+a.top.replace(/\%/g,"")/100)):(i=+a.left.replace(/\px/g,""),s=+a.top.replace(/\px/g,"")),document.onmousemove=function(e){var r=e.clientX-t,a=e.clientY-n,l=r+i,c=a+s;o.style.left=l+"px",o.style.top=c+"px"},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(337),r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),o=n(5),a=n(6),s=function(e){return e&&e.__esModule?e:{default:e}}(a);t.default={install:function(e,t){e.prototype.$export={excel:function(e){return window.saveAs&&window.XLSX?new Promise((function(t,n){var i={columns:[],data:[],title:"table",header:null,merges:[]},a=Object.assign({},i,e),s=a.columns.map((function(e){return e.label})),l=a.data.map((function(e){return a.columns.map((function(t){var n=e[t.prop];return(0,o.isJson)(n)&&(n=JSON.stringify(n)),n}))}));r.export_json_to_excel(s,l,a.title,{merges:a.merges,header:a.header}),t()})):(s.default.logs("file-saver"),void s.default.logs("xlsx"))},xlsx:function(e){if(!window.saveAs||!window.XLSX)return s.default.logs("file-saver"),void s.default.logs("xlsx");var t=window.XLSX;return new Promise((function(n,i){var r=new FileReader,o=function(e){for(var t="",n=0,i=10240;n<e.byteLength/i;++n)t+=String.fromCharCode.apply(null,new Uint8Array(e.slice(n*i,n*i+i)));return t+String.fromCharCode.apply(null,new Uint8Array(e.slice(n*i)))},a=function(e){var n=[],i=t.utils.decode_range(e["!ref"]),r=void 0,o=i.s.r;for(r=i.s.c;r<=i.e.c;++r){var a=e[t.utils.encode_cell({c:r,r:o})],s="UNKNOWN "+r;a&&a.t&&(s=t.utils.format_cell(a)),n.push(s)}return n};r.onload=function(e){var i=e.target.result,r=o(i),s=t.read(btoa(r),{type:"base64"}),l=s.SheetNames[0],c=s.Sheets[l],u=a(c),d=t.utils.sheet_to_json(c);n({header:u,results:d})},r.readAsArrayBuffer(e)}))}}}}},function(e,t,n){"use strict";function i(e){for(var t=[],n=e.querySelectorAll("tr"),i=[],r=0;r<n.length;++r){for(var o=[],a=n[r],s=a.querySelectorAll("td"),l=0;l<s.length;++l){var c=s[l],u=c.getAttribute("colspan"),d=c.getAttribute("rowspan"),h=c.innerText;if(""!==h&&h==+h&&(h=+h),i.forEach((function(e){if(r>=e.s.r&&r<=e.e.r&&o.length>=e.s.c&&o.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)o.push(null)})),(d||u)&&(d=d||1,u=u||1,i.push({s:{r:r,c:o.length},e:{r:r+d-1,c:o.length+u-1}})),o.push(""!==h?h:null),u)for(var f=0;f<u-1;++f)o.push(null)}t.push(o)}return[t,i]}function r(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function o(e,t){for(var n={},i={s:{c:1e7,r:1e7},e:{c:0,r:0}},o=0;o!=e.length;++o)for(var a=0;a!=e[o].length;++a){i.s.r>o&&(i.s.r=o),i.s.c>a&&(i.s.c=a),i.e.r<o&&(i.e.r=o),i.e.c<a&&(i.e.c=a);var s={v:e[o][a]};if(null!=s.v){var l=d.utils.encode_cell({c:a,r:o});"number"==typeof s.v?s.t="n":"boolean"==typeof s.v?s.t="b":s.v instanceof Date?(s.t="n",s.z=d.SSF._table[14],s.v=r(s.v)):s.t="s",n[l]=s}}return i.s.c<1e7&&(n["!ref"]=d.utils.encode_range(i)),n}function a(){if(!(this instanceof a))return new a;this.SheetNames=[],this.Sheets={}}function s(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}function l(e){var t=document.getElementById(e);console.log("a");var n=i(t),r=n[1],l=n[0];console.log(l);var c=new a,h=o(l);h["!merges"]=r,c.SheetNames.push("SheetJS"),c.Sheets.SheetJS=h;var f=d.write(c,{bookType:"xlsx",bookSST:!1,type:"binary"});u(new Blob([s(f)],{type:"application/octet-stream"}),"test.xlsx")}function c(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{merges:[],header:null},r=t;r.unshift(e),i.header&&r.unshift([i.header]);var l=new a,c=o(r),h=i.merges;"string"==typeof h[0]&&2==h.length&&(h=[h]),h=h.map((function(e){return e instanceof Array?{s:e[0],e:e[1]}:e})),c["!merges"]=h,l.SheetNames.push("SheetJS"),l.Sheets.SheetJS=c;var f=d.write(l,{bookType:"xlsx",bookSST:!1,type:"binary"}),p=n||"列表";u(new Blob([s(f)],{type:"application/octet-stream"}),p+".xlsx")}Object.defineProperty(t,"__esModule",{value:!0}),t.export_table_to_excel=l,t.export_json_to_excel=c,n(338);var u=window.saveAs,d=window.XLSX},function(e,t,n){"use strict";/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(e){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},i=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},r=n.prototype,o=i.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=e.URL||e.webkitURL||e,d=u.createObjectURL,h=u.revokeObjectURL,f=u,p=e.btoa,g=e.atob,m=e.ArrayBuffer,v=e.Uint8Array;for(i.fake=o.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(f=e.URL={}),f.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof i?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):p?t+";base64,"+p(e.data):t+","+encodeURIComponent(e.data)):d?d.call(u,e):void 0},f.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(u,e)},r.append=function(e){var n=this.data;if(v&&(e instanceof m||e instanceof v)){for(var r="",o=new v(e),l=0,c=o.length;l<c;l++)r+=String.fromCharCode(o[l]);n.push(r)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(e))}else e instanceof i?"base64"===e.encoding&&g?n.push(g(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},r.getBlob=function(e){return arguments.length||(e=null),new i(this.data.join(""),e,"raw")},r.toString=function(){return"[object BlobBuilder]"},o.slice=function(e,t,n){var r=arguments.length;return r<3&&(n=null),new i(this.data.slice(e,r>1?t:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=this.data.length=0},n}(e);e.Blob=function(e,n){var i=n&&n.type||"",r=new t;if(e)for(var o=0,a=e.length;o<a;o++)r.append(e[o]);return r.getBlob(i)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0)},function(e,t,n){"use strict";Array.prototype.includes||(Array.prototype.includes=function(e,t){if(null===this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0,r=arguments,o=0|t,a=0;if(0===i)return!1;for(a=Math.max(o>=0?o:i-Math.abs(o),0);a<i;){if(String(n[a])===String(r[0]))return!0;a++}return!1})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return window.html2canvas?window.html2canvas(e,t):void r.default.logs("Screenshot")};var i=n(6),r=function(e){return e&&e.__esModule?e:{default:e}}(i)},function(e,t,n){"use strict";function i(e){var t=void 0;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.text;return new Promise((function(e,n){var r=document.body,o="rtl"==document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[o?"right":"left"]="-9999px";var s=window.pageYOffset||document.documentElement.scrollTop;a.style.top=s+"px",a.setAttribute("readonly",""),a.value=t,r.appendChild(a),i(a);try{document.execCommand("copy"),e()}catch(e){n()}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.id,n=e.html,i="",r=document.documentElement.innerHTML,o=r.substr(0,r.indexOf("<body"));if(o+="<body >\n <style>\n body{\n min-width:1000px;\n }\n .avue-form__menu,.el-table__fixed-right,.avue-crud__search,.avue-crud__menu, .avue-crud__pagination,.avue-crud__tip{\n display: none;\n }\n .el-select,\n .el-date-editor.el-input,\n .el-date-editor.el-input__inner,\n .el-cascader,\n .avue-input-number {\n width: 100% !important;\n }\n </style >\n ",t){if(!document.getElementById(t))return!1;i=o+document.getElementById(t).innerHTML+"</body>"}else n&&(i=o+n+"</body>");var a=window.open("","Avue打印插件");a.document.open(),a.document.write(i),setTimeout((function(){a.window.print(),a.close()}),100)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(344),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default},function(e,t,n){var i,r;!function(o,a){i=a,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r)}(0,(function(){function e(e,t,n){return e<t?t:e>n?n:e}function t(e){return 100*(-1+e)}function n(e,n,i){var r;return r="translate3d"===c.positionUsing?{transform:"translate3d("+t(e)+"%,0,0)"}:"translate"===c.positionUsing?{transform:"translate("+t(e)+"%,0)"}:{"margin-left":t(e)+"%"},r.transition="all "+n+"ms "+i,r}function i(e,t){return("string"==typeof e?e:a(e)).indexOf(" "+t+" ")>=0}function r(e,t){var n=a(e),r=n+t;i(n,t)||(e.className=r.substring(1))}function o(e,t){var n,r=a(e);i(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function a(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function s(e){e&&e.parentNode&&e.parentNode.removeChild(e)}var l={version:"0.2.0"},c=l.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};l.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(c[t]=n);return this},l.status=null,l.set=function(t){var i=l.isStarted();t=e(t,c.minimum,1),l.status=1===t?null:t;var r=l.render(!i),o=r.querySelector(c.barSelector),a=c.speed,s=c.easing;return r.offsetWidth,u((function(e){""===c.positionUsing&&(c.positionUsing=l.getPositioningCSS()),d(o,n(t,a,s)),1===t?(d(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout((function(){d(r,{transition:"all "+a+"ms linear",opacity:0}),setTimeout((function(){l.remove(),e()}),a)}),a)):setTimeout(e,a)})),this},l.isStarted=function(){return"number"==typeof l.status},l.start=function(){l.status||l.set(0);var e=function(){setTimeout((function(){l.status&&(l.trickle(),e())}),c.trickleSpeed)};return c.trickle&&e(),this},l.done=function(e){return e||l.status?l.inc(.3+.5*Math.random()).set(1):this},l.inc=function(t){var n=l.status;return n?("number"!=typeof t&&(t=(1-n)*e(Math.random()*n,.1,.95)),n=e(n+t,0,.994),l.set(n)):l.start()},l.trickle=function(){return l.inc(Math.random()*c.trickleRate)},function(){var e=0,t=0;l.promise=function(n){return n&&"resolved"!==n.state()?(0===t&&l.start(),e++,t++,n.always((function(){t--,0===t?(e=0,l.done()):l.set((e-t)/e)})),this):this}}(),l.render=function(e){if(l.isRendered())return document.getElementById("nprogress");r(document.documentElement,"nprogress-busy");var n=document.createElement("div");n.id="nprogress",n.innerHTML=c.template;var i,o=n.querySelector(c.barSelector),a=e?"-100":t(l.status||0),u=document.querySelector(c.parent);return d(o,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),c.showSpinner||(i=n.querySelector(c.spinnerSelector))&&s(i),u!=document.body&&r(u,"nprogress-custom-parent"),u.appendChild(n),n},l.remove=function(){o(document.documentElement,"nprogress-busy"),o(document.querySelector(c.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&s(e)},l.isRendered=function(){return!!document.getElementById("nprogress")},l.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var u=function(){function e(){var n=t.shift();n&&n(e)}var t=[];return function(n){t.push(n),1==t.length&&e()}}(),d=function(){function e(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function t(e){var t=document.body.style;if(e in t)return e;for(var n,i=r.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((n=r[i]+o)in t)return n;return e}function n(n){return n=e(n),o[n]||(o[n]=t(n))}function i(e,t,i){t=n(t),e.style[t]=i}var r=["Webkit","O","Moz","ms"],o={};return function(e,t){var n,r,o=arguments;if(2==o.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&i(e,n,r);else i(e,o[1],o[2])}}();return l}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(346),r=function(e){return e&&e.__esModule?e:{default:e}}(i),o=n(18),a=void 0,s=[],l=1,c=function(e){var t=e.extend(r.default),n=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r="imagePreview_"+l++,c={datas:n,index:i},u=c.onClose;return a=new t({data:c}),c.onClose=function(){e.close(r,u)},a.id=r,(0,o.isVNode)(a.message)&&(a.$slots.default=[a.message],a.message=null),a.vm=a.$mount(),document.body.appendChild(a.vm.$el),a.vm.isShow=!0,a.dom=a.vm.$el,s.push(a),a.vm};return n.close=function(e,t){for(var n=0,i=s.length;n<i;n++)if(e===s[n].id){"function"==typeof t&&t(s[n]),s.splice(n,1);break}},n};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(119),r=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(347),s=n(0),l=s(r.a,a.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isShow?n("div",{class:e.b()},[n("div",{class:e.b("mask")}),n("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.close}},[n("i",{staticClass:"el-icon-circle-close"})]),e.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",on:{click:function(t){return e.$refs.carousel.prev()}}},[n("i",{staticClass:"el-icon-arrow-left"})]):e._e(),e.isRrrow?n("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",on:{click:function(t){return e.$refs.carousel.next()}}},[n("i",{staticClass:"el-icon-arrow-right"})]):e._e(),n("div",{ref:"box",class:e.b("box"),style:e.styleBoxName},[n("el-carousel",{ref:"carousel",attrs:{"initial-index":e.index,interval:0,arrow:"never","indicator-position":"none",height:e.height},on:{change:e.handleChange}},e._l(e.datas,(function(t,i){return n("el-carousel-item",{key:i},[n("img",e._b({style:e.styleName,attrs:{src:t.url,controls:"controls",ondragstart:"return false"},on:{mousedown:e.move}},"img",e.getIsVideo(t),!1))])})),1)],1),n("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[n("div",{staticClass:"el-image-viewer__actions__inner"},[n("i",{staticClass:"el-icon-zoom-out",on:{click:e.subScale}}),n("i",{staticClass:"el-icon-zoom-in",on:{click:e.addScale}}),n("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){e.rotate=e.rotate-90}}}),n("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){e.rotate=e.rotate+90}}})])])]):e._e()},r=[],o={render:i,staticRenderFns:r};t.a=o}])}))},"80fa":function(e,t,n){var i=n("1b14"),r=n("da13"),o=n("1877");function a(e){return!o(e)&&!isNaN(e)&&!i(e)&&!r(e)}e.exports=a},8122:function(e,t,n){"use strict";t.__esModule=!0,t.isMac=t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.noop=c,t.hasOwn=u,t.toObject=h,t.getPropByPath=f,t.rafThrottle=b,t.objToArray=y;var r=n("2b0e"),o=s(r),a=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var l=Object.prototype.hasOwnProperty;function c(){}function u(e,t){return l.call(e,t)}function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),i=e,r=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!i)break;if(o===a-1){r=i[s];break}i=i[s]}return r};function f(e,t,n){var i=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var r=t.split("."),o=0,a=r.length;o<a-1;++o){if(!i&&!n)break;var s=r[o];if(!(s in i)){if(n)throw new Error("please transfer a valid prop path to form item!");break}i=i[s]}return{o:i,k:r[o],v:i?i[r[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},g=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":i(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var i=e[t];t&&i&&n.forEach((function(n){e[n+t]=i}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),i=(0,a.isObject)(t);return n&&i?JSON.stringify(e)===JSON.stringify(t):!n&&!i&&String(e)===String(t)}),m=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g(e[n],t[n]))return!1;return!0},v=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?m(e,t):g(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function b(e){var t=!1;return function(){for(var n=this,i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(i){e.apply(n,r),t=!1})))}}function y(e){return Array.isArray(e)?e:v(e)?[]:[e]}t.isMac=function(){return!o.default.prototype.$isServer&&/macintosh|mac os x/i.test(navigator.userAgent)}},"81bf":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB}))},8261:function(e,t,n){},8378:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},8381:function(e,t,n){"use strict";var i=n("cb7c"),r=n("6a99"),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return r(i(this),e!=o)}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"83b4":function(e,t,n){var i=n("6d87"),r=typeof WeakSet!==i;function o(e){return r&&e instanceof WeakSet}e.exports=o},8436:function(e,t){e.exports=function(){}},8449:function(e,t,n){"use strict";n("386b")("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=97)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},97:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},r=[];i._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),l=Object(s["a"])(a,i,r,!1,null,null,null);l.options.__file="packages/button/src/button-group.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},8478:function(e,t,n){var i=n("5ca1");i(i.S,"Object",{create:n("2aeb")})},"84a5":function(e,t,n){var i=n("3535"),r=n("969d"),o=n("47fc");function a(e,t){var n=o(e),a=o(t),s=r(n),l=r(a);return parseInt(s.replace(".",""))*parseInt(l.replace(".",""))/Math.pow(10,i(s)+i(l))}e.exports=a},"84b4":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},"84cd":function(e,t,n){},"84f2":function(e,t){e.exports={}},"85c4":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("9523")),o=i(n("448a")),a=i(n("970b")),s=i(n("a870")),l=i(n("050c")),c=n("5557"),u=i(n("b06d")),d=i(n("eb53"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function e(t){if((0,a["default"])(this,e),t){var n=t.getContext("2d"),i=t.clientWidth,r=t.clientHeight,o=[i,r];t.setAttribute("width",i),t.setAttribute("height",r),this.ctx=n,this.area=o,this.animationStatus=!1,this.graphs=[],this.color=s["default"],this.bezierCurve=l["default"],t.addEventListener("mousedown",v.bind(this)),t.addEventListener("mousemove",b.bind(this)),t.addEventListener("mouseup",y.bind(this))}else console.error("CRender Missing parameters!")};function g(e,t){var n=this.graphs;m(n)?(n.forEach((function(e){return e.turnNextAnimationFrame(t)})),this.drawAllGraph(),requestAnimationFrame(g.bind(this,e,t))):e()}function m(e){return e.find((function(e){return!e.animationPause&&e.animationFrameState.length}))}function v(e){var t=this.graphs,n=t.find((function(e){return"hover"===e.status}));n&&(n.status="active")}function b(e){var t=e.offsetX,n=e.offsetY,i=[t,n],r=this.graphs,o=r.find((function(e){return"active"===e.status||"drag"===e.status}));if(o){if(!o.drag)return;return"function"!==typeof o.move?void console.error("No move method is provided, cannot be dragged!"):(o.moveProcessor(e),void(o.status="drag"))}var a=r.find((function(e){return"hover"===e.status})),s=r.filter((function(e){return e.hover&&("function"===typeof e.hoverCheck||e.hoverRect)})),l=s.find((function(e){return e.hoverCheckProcessor(i,e)}));document.body.style.cursor=l?l.style.hoverCursor:"default";var c=!1,u=!1;if(a&&(c="function"===typeof a.mouseOuter),l&&(u="function"===typeof l.mouseEnter),l||a){if(!l&&a)return c&&a.mouseOuter(e,a),void(a.status="static");if(!l||l!==a)return l&&!a?(u&&l.mouseEnter(e,l),void(l.status="hover")):void(l&&a&&l!==a&&(c&&a.mouseOuter(e,a),a.status="static",u&&l.mouseEnter(e,l),l.status="hover"))}}function y(e){var t=this.graphs,n=t.find((function(e){return"active"===e.status})),i=t.find((function(e){return"drag"===e.status}));n&&"function"===typeof n.click&&n.click(e,n),t.forEach((function(e){return e&&(e.status="static")})),n&&(n.status="hover"),i&&(i.status="hover")}t["default"]=p,p.prototype.clearArea=function(){var e,t=this.area;(e=this.ctx).clearRect.apply(e,[0,0].concat((0,o["default"])(t)))},p.prototype.add=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;if(t){var n=u["default"].get(t);if(n){var i=new d["default"](n,e);if(i.validator(i))return i.render=this,this.graphs.push(i),this.sortGraphsByIndex(),this.drawAllGraph(),i}else console.warn("No corresponding graph configuration found!")}else console.error("add Missing parameters!")},p.prototype.sortGraphsByIndex=function(){var e=this.graphs;e.sort((function(e,t){return e.index>t.index?1:e.index===t.index?0:e.index<t.index?-1:void 0}))},p.prototype.delGraph=function(e){"function"===typeof e.delProcessor&&(e.delProcessor(this),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph())},p.prototype.delAllGraph=function(){var e=this;this.graphs.forEach((function(t){return t.delProcessor(e)})),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph()},p.prototype.drawAllGraph=function(){var e=this;this.clearArea(),this.graphs.filter((function(e){return e&&e.visible})).forEach((function(t){return t.drawProcessor(e,t)}))},p.prototype.launchAnimation=function(){var e=this,t=this.animationStatus;if(!t)return this.animationStatus=!0,new Promise((function(t){g.call(e,(function(){e.animationStatus=!1,t()}),Date.now())}))},p.prototype.clone=function(e){var t=e.style.getStyle(),n=f({},e,{style:t});return delete n.render,n=(0,c.deepClone)(n,!0),this.add(n)}},8615:function(e,t,n){var i=n("5ca1"),r=n("504c")(!1);i(i.S,"Object",{values:function(e){return r(e)}})},"86cc":function(e,t,n){var i=n("cb7c"),r=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"873c":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.title=c;var r=i(n("278c")),o=n("18ad"),a=n("5557"),s=n("9d85"),l=n("becb");function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];t.title&&(n[0]=(0,l.deepMerge)((0,a.deepClone)(s.titleConfig,!0),t.title)),(0,o.doUpdate)({chart:e,series:n,key:"title",getGraphConfig:u})}function u(e,t){var n=s.titleConfig.animationCurve,i=s.titleConfig.animationFrame,r=s.titleConfig.rLevel,o=d(e,t),a=h(e);return[{name:"text",index:r,visible:e.show,animationCurve:n,animationFrame:i,shape:o,style:a}]}function d(e,t){var n=e.offset,i=e.text,o=t.chart.gridArea,a=o.x,s=o.y,l=o.w,c=(0,r["default"])(n,2),u=c[0],d=c[1];return{content:i,position:[a+l/2+u,s+d]}}function h(e){var t=e.style;return t}},"87b3":function(e,t,n){var i=Date.prototype,r="Invalid Date",o="toString",a=i[o],s=i.getTime;new Date(NaN)+""!=r&&n("2aba")(i,o,(function(){var e=s.call(this);return e===e?a.call(this):r}))},"87bb":function(e,t,n){var i=n("604a");function r(e,t,n){if(e)for(var r in e)i(e,r)&&t.call(n,e[r],r,e)}e.exports=r},"87f3":function(e,t,n){var i=n("5ca1");i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},"887c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfig=void 0;var i={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.titleConfig=i},"88ca":function(e,t,n){var i=n("86cc"),r=n("5ca1"),o=n("cb7c"),a=n("6a99");r(r.S+r.F*n("79e5")((function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return i.f(e,t,n),!0}catch(r){return!1}}})},8965:function(e,t){var n=parseInt;e.exports=n},"896f":function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=n("38fd"),a=i.has,s=i.key,l=function(e,t,n){var i=a(e,t,n);if(i)return!0;var r=o(t);return null!==r&&l(e,r,n)};i.exp({hasMetadata:function(e,t){return l(e,r(t),arguments.length<3?void 0:s(arguments[2]))}})},"8a1d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeColor=a;var i=n("9d85"),r=n("5557"),o=n("becb");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.deepClone)(i.colorConfig,!0),a=t.color,s=t.series;if(s||(s=[]),a||(a=[]),t.color=a=(0,o.deepMerge)(n,a),s.length){var l=a.length;s.forEach((function(e,t){e.color||(e.color=a[t%l])}));var c=s.filter((function(e){var t=e.type;return"pie"===t}));c.forEach((function(e){return e.data.forEach((function(e,t){return e.color=a[t%l]}))}));var u=s.filter((function(e){var t=e.type;return"gauge"===t}));u.forEach((function(e){return e.data.forEach((function(e,t){return e.color=a[t%l]}))}));var d=s.filter((function(e){var t=e.type,n=e.independentColor;return"bar"===t&&n}));d.forEach((function(e){e.independentColors||(e.independentColors=a)}))}}},"8a5c":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{umulh:function(e,t){var n=65535,i=+e,r=+t,o=i&n,a=r&n,s=i>>>16,l=r>>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>>16)+((o*l>>>0)+(c&n)>>>16)}})},"8a81":function(e,t,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("9e1e"),a=n("5ca1"),s=n("2aba"),l=n("67ab").KEY,c=n("79e5"),u=n("5537"),d=n("7f20"),h=n("ca5a"),f=n("2b4c"),p=n("37c8"),g=n("3a72"),m=n("d4c0"),v=n("1169"),b=n("cb7c"),y=n("d3f4"),_=n("4bf8"),w=n("6821"),x=n("6a99"),C=n("4630"),S=n("2aeb"),k=n("7bbc"),O=n("11e9"),M=n("2621"),D=n("86cc"),E=n("0d58"),T=O.f,L=D.f,I=k.f,A=i.Symbol,N=i.JSON,P=N&&N.stringify,R="prototype",F=f("_hidden"),j=f("toPrimitive"),B={}.propertyIsEnumerable,z=u("symbol-registry"),V=u("symbols"),$=u("op-symbols"),W=Object[R],H="function"==typeof A&&!!M.f,U=i.QObject,q=!U||!U[R]||!U[R].findChild,G=o&&c((function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=T(W,t);i&&delete W[t],L(e,t,n),i&&e!==W&&L(W,t,i)}:L,K=function(e){var t=V[e]=S(A[R]);return t._k=e,t},Y=H&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},X=function(e,t,n){return e===W&&X($,t,n),b(e),t=x(t,!0),b(n),r(V,t)?(n.enumerable?(r(e,F)&&e[F][t]&&(e[F][t]=!1),n=S(n,{enumerable:C(0,!1)})):(r(e,F)||L(e,F,C(1,{})),e[F][t]=!0),G(e,t,n)):L(e,t,n)},Z=function(e,t){b(e);var n,i=m(t=w(t)),r=0,o=i.length;while(o>r)X(e,n=i[r++],t[n]);return e},Q=function(e,t){return void 0===t?S(e):Z(S(e),t)},J=function(e){var t=B.call(this,e=x(e,!0));return!(this===W&&r(V,e)&&!r($,e))&&(!(t||!r(this,e)||!r(V,e)||r(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=w(e),t=x(t,!0),e!==W||!r(V,t)||r($,t)){var n=T(e,t);return!n||!r(V,t)||r(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){var t,n=I(w(e)),i=[],o=0;while(n.length>o)r(V,t=n[o++])||t==F||t==l||i.push(t);return i},ne=function(e){var t,n=e===W,i=I(n?$:w(e)),o=[],a=0;while(i.length>a)!r(V,t=i[a++])||n&&!r(W,t)||o.push(V[t]);return o};H||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call($,n),r(this,F)&&r(this[F],e)&&(this[F][e]=!1),G(this,e,C(1,n))};return o&&q&&G(W,e,{configurable:!0,set:t}),K(e)},s(A[R],"toString",(function(){return this._k})),O.f=ee,D.f=X,n("9093").f=k.f=te,n("52a7").f=J,M.f=ne,o&&!n("2d00")&&s(W,"propertyIsEnumerable",J,!0),p.f=function(e){return K(f(e))}),a(a.G+a.W+a.F*!H,{Symbol:A});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)f(ie[re++]);for(var oe=E(f.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!H,"Symbol",{for:function(e){return r(z,e+="")?z[e]:z[e]=A(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!H,"Object",{create:Q,defineProperty:X,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){M.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return M.f(_(e))}}),N&&a(a.S+a.F*(!H||c((function(){var e=A();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,P.apply(N,i)}}),A[R][j]||n("32e9")(A[R],j,A[R].valueOf),d(A,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"8b97":function(e,t,n){var i=n("d3f4"),r=n("cb7c"),o=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{i=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),i(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:o}},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},132:function(e,t,n){"use strict";n.r(t);var i,r,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,i=this.hit,r=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",r?"el-tag--"+r:"",i&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},a=o,s=n(0),l=Object(s["a"])(a,i,r,!1,null,null,null);l.options.__file="packages/tag/src/tag.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},"8c4f":function(e,t,n){"use strict";function i(e,t){for(var n in t)e[n]=t[n];return e}n.d(t,"a",(function(){return xt}));var r=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(r,o).replace(a,",")};function l(e){try{return decodeURIComponent(e)}catch(t){0}return e}function c(e,t,n){void 0===t&&(t={});var i,r=n||d;try{i=r(e||"")}catch(s){i={}}for(var o in t){var a=t[o];i[o]=Array.isArray(a)?a.map(u):u(a)}return i}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=l(n.shift()),r=n.length>0?l(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(s(t)):i.push(s(t)+"="+s(e)))})),i.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=g(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,r),matched:e?v(e):[]};return n&&(a.redirectedFrom=b(n,r)),Object.freeze(a)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var m=p(null,{path:"/"});function v(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var o=t||h;return(n||"/")+o(i)+r}function y(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&_(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&_(e.query,t.query)&&_(e.params,t.params))))}function _(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var o=e[n],a=i[r];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?_(o,s):String(o)===String(s)}))}function w(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&x(e.query,t.query)}function x(e,t){for(var n in t)if(!(n in e))return!1;return!0}function C(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],o=n.enteredCbs[i];if(r&&o){delete n.enteredCbs[i];for(var a=0;a<o.length;a++)r._isBeingDestroyed||o[a](r)}}}}var S={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,o=t.parent,a=t.data;a.routerView=!0;var s=o.$createElement,l=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&d++,f.keepAlive&&o._directInactive&&o._inactive&&(h=!0),o=o.$parent}if(a.routerViewDepth=d,h){var p=u[l],g=p&&p.component;return g?(p.configProps&&k(g,a,p.route,p.configProps),s(g,a,r)):s()}var m=c.matched[d],v=m&&m.components[l];if(!m||!v)return u[l]=null,s();u[l]={component:v},a.registerRouteInstance=function(e,t){var n=m.instances[l];(t&&n!==e||!t&&n===e)&&(m.instances[l]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){m.instances[l]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[l]&&(m.instances[l]=e.componentInstance),C(c)};var b=m.props&&m.props[l];return b&&(i(u[l],{route:c,configProps:b}),k(v,a,c,b)),s(v,a,r)}};function k(e,t,n,r){var o=t.props=O(n,r);if(o){o=t.props=i({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function O(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function M(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function D(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function E(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var T=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},L=X,I=F,A=j,N=V,P=Y,R=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,i=[],r=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=R.exec(e))){var l=n[0],c=n[1],u=n.index;if(a+=e.slice(o,u),o=u+l.length,c)a+=c[1];else{var d=e[o],h=n[2],f=n[3],p=n[4],g=n[5],m=n[6],v=n[7];a&&(i.push(a),a="");var b=null!=h&&null!=d&&d!==h,y="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||s,x=p||g;i.push({name:f||r++,prefix:h||"",delimiter:w,optional:_,repeat:y,partial:b,asterisk:!!v,pattern:x?W(x):v?".*":"[^"+$(w)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&i.push(a),i}function j(e,t){return V(F(e,t),t)}function B(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function z(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",U(t)));return function(t,i){for(var r="",o=t||{},a=i||{},s=a.pretty?B:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var u,d=o[c.name];if(null==d){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(T(d)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(u=s(d[h]),!n[l].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===h?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?z(d):s(d),!n[l].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');r+=c.prefix+u}}else r+=c}return r}}function $(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function W(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function H(e,t){return e.keys=t,e}function U(e){return e&&e.sensitive?"":"i"}function q(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return H(e,t)}function G(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(X(e[r],t,n).source);var o=new RegExp("(?:"+i.join("|")+")",U(n));return H(o,t)}function K(e,t,n){return Y(F(e,n),t,n)}function Y(e,t,n){T(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=$(s);else{var l=$(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+l+c+")*"),c=s.optional?s.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",o+=c}}var u=$(n.delimiter||"/"),d=o.slice(-u.length)===u;return i||(o=(d?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":i&&d?"":"(?="+u+"|$)",H(new RegExp("^"+o,U(n)),t)}function X(e,t,n){return T(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?q(e,t):T(e)?G(e,t,n):K(e,t,n)}L.parse=I,L.compile=A,L.tokensToFunction=N,L.tokensToRegExp=P;var Z=Object.create(null);function Q(e,t,n){t=t||{};try{var i=Z[e]||(Z[e]=L.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function J(e,t,n,r){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=i({},e);var a=o.params;return a&&"object"===typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&t){o=i({},o),o._normalized=!0;var s=i(i({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;o.path=Q(l,s,"path "+t.path)}else 0;return o}var u=D(o.path||""),d=t&&t.path||"/",h=u.path?M(u.path,d,n||o.append):d,f=c(u.query,o.query,r&&r.options.parseQuery),p=o.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:h,query:f,hash:p}}var ee,te=[String,Object],ne=[String,Array],ie=function(){},re={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,l=o.href,c={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==u?"router-link-active":u,f=null==d?"router-link-exact-active":d,g=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?f:this.exactActiveClass,v=s.redirectedFrom?p(null,J(s.redirectedFrom),null,n):s;c[m]=y(r,v,this.exactPath),c[g]=this.exact||this.exactPath?c[m]:w(r,v);var b=c[m]?this.ariaCurrentValue:null,_=function(e){oe(e)&&(t.replace?n.replace(a,ie):n.push(a,ie))},x={click:oe};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=_})):x[this.event]=_;var C={class:c},S=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:_,isActive:c[g],isExactActive:c[m]});if(S){if(1===S.length)return S[0];if(S.length>1||!S.length)return 0===S.length?e():e("span",{},S)}if("a"===this.tag)C.on=x,C.attrs={href:l,"aria-current":b};else{var k=ae(this.$slots.default);if(k){k.isStatic=!1;var O=k.data=i({},k.data);for(var M in O.on=O.on||{},O.on){var D=O.on[M];M in x&&(O.on[M]=Array.isArray(D)?D:[D])}for(var E in x)E in O.on?O.on[E].push(x[E]):O.on[E]=_;var T=k.data.attrs=i({},k.data.attrs);T.href=l,T["aria-current"]=b}else C.on=x}return e(this.tag,C,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function se(e){if(!se.installed||ee!==e){se.installed=!0,ee=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",S),e.component("RouterLink",re);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var le="undefined"!==typeof window;function ce(e,t,n,i,r){var o=t||[],a=n||Object.create(null),s=i||Object.create(null);e.forEach((function(e){ue(o,a,s,e,r)}));for(var l=0,c=o.length;l<c;l++)"*"===o[l]&&(o.push(o.splice(l,1)[0]),c--,l--);return{pathList:o,pathMap:a,nameMap:s}}function ue(e,t,n,i,r,o){var a=i.path,s=i.name;var l=i.pathToRegexpOptions||{},c=he(a,r,l.strict);"boolean"===typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var u={path:c,regex:de(c,l),components:i.components||{default:i.component},alias:i.alias?"string"===typeof i.alias?[i.alias]:i.alias:[],instances:{},enteredCbs:{},name:s,parent:r,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=o?E(o+"/"+i.path):void 0;ue(e,t,n,i,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==i.alias)for(var d=Array.isArray(i.alias)?i.alias:[i.alias],h=0;h<d.length;++h){var f=d[h];0;var p={path:f,children:i.children};ue(e,t,n,p,r,u.path||"/")}s&&(n[s]||(n[s]=u))}function de(e,t){var n=L(e,[],t);return n}function he(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:E(t.path+"/"+e)}function fe(e,t){var n=ce(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function a(e){ce(e,i,r,o)}function s(e,t){var n="object"!==typeof e?o[e]:void 0;ce([t||e],i,r,o,n),n&&n.alias.length&&ce(n.alias.map((function(e){return{path:e,children:[t]}})),i,r,o,n)}function l(){return i.map((function(e){return r[e]}))}function c(e,n,a){var s=J(e,n,!1,t),l=s.name;if(l){var c=o[l];if(!c)return h(null,s);var u=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&u.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Q(c.path,s.params,'named route "'+l+'"'),h(c,s,a)}if(s.path){s.params={};for(var f=0;f<i.length;f++){var p=i[f],g=r[p];if(pe(g.regex,s.path,s.params))return h(g,s,a)}}return h(null,s)}function u(e,n){var i=e.redirect,r="function"===typeof i?i(p(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return h(null,n);var a=r,s=a.name,l=a.path,u=n.query,d=n.hash,f=n.params;if(u=a.hasOwnProperty("query")?a.query:u,d=a.hasOwnProperty("hash")?a.hash:d,f=a.hasOwnProperty("params")?a.params:f,s){o[s];return c({_normalized:!0,name:s,query:u,hash:d,params:f},void 0,n)}if(l){var g=ge(l,e),m=Q(g,f,'redirect route with path "'+g+'"');return c({_normalized:!0,path:m,query:u,hash:d},void 0,n)}return h(null,n)}function d(e,t,n){var i=Q(n,t.params,'aliased route with path "'+n+'"'),r=c({_normalized:!0,path:i});if(r){var o=r.matched,a=o[o.length-1];return t.params=r.params,h(a,t)}return h(null,t)}function h(e,n,i){return e&&e.redirect?u(e,i||n):e&&e.matchAs?d(e,n,e.matchAs):p(e,n,i,t)}return{match:c,addRoute:s,getRoutes:l,addRoutes:a}}function pe(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var a=e.keys[r-1];a&&(n[a.name||"pathMatch"]="string"===typeof i[r]?l(i[r]):i[r])}return!0}function ge(e,t){return M(e,t.parent?t.parent.path:"/",!0)}var me=le&&window.performance&&window.performance.now?window.performance:Date;function ve(){return me.now().toFixed(3)}var be=ve();function ye(){return be}function _e(e){return be=e}var we=Object.create(null);function xe(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=i({},window.history.state);return n.key=ye(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ke),function(){window.removeEventListener("popstate",ke)}}function Ce(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=Oe(),a=r.call(e,t,n,i?o:null);a&&("function"===typeof a.then?a.then((function(e){Ae(e,o)})).catch((function(e){0})):Ae(a,o))}))}}function Se(){var e=ye();e&&(we[e]={x:window.pageXOffset,y:window.pageYOffset})}function ke(e){Se(),e.state&&e.state.key&&_e(e.state.key)}function Oe(){var e=ye();if(e)return we[e]}function Me(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function De(e){return Le(e.x)||Le(e.y)}function Ee(e){return{x:Le(e.x)?e.x:window.pageXOffset,y:Le(e.y)?e.y:window.pageYOffset}}function Te(e){return{x:Le(e.x)?e.x:0,y:Le(e.y)?e.y:0}}function Le(e){return"number"===typeof e}var Ie=/^#\d/;function Ae(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=Ie.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=Te(r),t=Me(i,r)}else De(e)&&(t=Ee(e))}else n&&De(e)&&(t=Ee(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Ne=le&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Pe(e,t){Se();var n=window.history;try{if(t){var r=i({},n.state);r.key=ye(),n.replaceState(r,"",e)}else n.pushState({key:_e(ve())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Re(e){Pe(e,!0)}var Fe={redirected:2,aborted:4,cancelled:8,duplicated:16};function je(e,t){return $e(e,t,Fe.redirected,'Redirected when going from "'+e.fullPath+'" to "'+He(t)+'" via a navigation guard.')}function Be(e,t){var n=$e(e,t,Fe.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function ze(e,t){return $e(e,t,Fe.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ve(e,t){return $e(e,t,Fe.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function $e(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var We=["params","query","hash"];function He(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return We.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ue(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function qe(e,t){return Ue(e)&&e._isRouter&&(null==t||e.type===t)}function Ge(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function Ke(e){return function(t,n,i){var r=!1,o=0,a=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){r=!0,o++;var l,c=Je((function(t){Qe(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&i()})),u=Je((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=Ue(e)?e:new Error(t),i(a))}));try{l=e(c,u)}catch(h){u(h)}if(l)if("function"===typeof l.then)l.then(c,u);else{var d=l.component;d&&"function"===typeof d.then&&d.then(c,u)}}})),r||i()}}function Ye(e,t){return Xe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Xe(e){return Array.prototype.concat.apply([],e)}var Ze="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Qe(e){return e.__esModule||Ze&&"Module"===e[Symbol.toStringTag]}function Je(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(le){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function it(e,t,n,i){var r=Ye(e,(function(e,i,r,o){var a=rt(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,i,r,o)})):n(a,i,r,o)}));return Xe(i?r.reverse():r)}function rt(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function ot(e){return it(e,"beforeRouteLeave",st,!0)}function at(e){return it(e,"beforeRouteUpdate",st)}function st(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e){return it(e,"beforeRouteEnter",(function(e,t,n,i){return ct(e,n,i)}))}function ct(e,t,n){return function(i,r,o){return e(i,r,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(qe(e,Fe.redirected)&&o===m||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var i=this,r=this.current;this.pending=e;var o=function(e){!qe(e)&&Ue(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},a=e.matched.length-1,s=r.matched.length-1;if(y(e,r)&&a===s&&e.matched[a]===r.matched[s])return this.ensureURL(),e.hash&&Ce(this.router,r,e,!1),o(Be(r,e));var l=nt(this.current.matched,e.matched),c=l.updated,u=l.deactivated,d=l.activated,h=[].concat(ot(u),this.router.beforeHooks,at(c),d.map((function(e){return e.beforeEnter})),Ke(d)),f=function(t,n){if(i.pending!==e)return o(ze(r,e));try{t(e,r,(function(t){!1===t?(i.ensureURL(!0),o(Ve(r,e))):Ue(t)?(i.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(je(r,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(a){o(a)}};Ge(h,f,(function(){var n=lt(d),a=n.concat(i.router.resolveHooks);Ge(a,f,(function(){if(i.pending!==e)return o(ze(r,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){C(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=m,this.pending=null};var ut=function(e){function t(t,n){e.call(this,t,n),this._startLocation=dt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Ne&&n;i&&this.listeners.push(xe());var r=function(){var n=e.current,r=dt(e.base);e.current===m&&r===e._startLocation||e.transitionTo(r,(function(e){i&&Ce(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){Pe(E(i.base+e.fullPath)),Ce(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){Re(E(i.base+e.fullPath)),Ce(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=E(this.base+this.current.fullPath);e?Pe(t):Re(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(et);function dt(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(E(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,i){e.call(this,t,n),i&&ft(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Ne&&n;i&&this.listeners.push(xe());var r=function(){var t=e.current;pt()&&e.transitionTo(gt(),(function(n){i&&Ce(e.router,n,t,!0),Ne||bt(n.fullPath)}))},o=Ne?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){vt(e.fullPath),Ce(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){bt(e.fullPath),Ce(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?vt(t):bt(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(et);function ft(e){var t=dt(e);if(!/^\/#/.test(t))return window.location.replace(E(e+"/#"+t)),!0}function pt(){var e=gt();return"/"===e.charAt(0)||(bt("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function mt(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function vt(e){Ne?Pe(mt(e)):window.location.hash=e}function bt(e){Ne?Re(mt(e)):window.location.replace(mt(e))}var yt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){qe(e,Fe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),_t=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ne&&!1!==e.fallback,this.fallback&&(t="hash"),le||(t="abstract"),this.mode=t,t){case"history":this.history=new ut(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new yt(this,e.base);break;default:0}},wt={currentRoute:{configurable:!0}};_t.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},wt.currentRoute.get=function(){return this.history&&this.history.current},_t.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ut||n instanceof ht){var i=function(e){var i=n.current,r=t.options.scrollBehavior,o=Ne&&r;o&&"fullPath"in e&&Ce(t,e,i,!1)},r=function(e){n.setupListeners(),i(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},_t.prototype.beforeEach=function(e){return Ct(this.beforeHooks,e)},_t.prototype.beforeResolve=function(e){return Ct(this.resolveHooks,e)},_t.prototype.afterEach=function(e){return Ct(this.afterHooks,e)},_t.prototype.onReady=function(e,t){this.history.onReady(e,t)},_t.prototype.onError=function(e){this.history.onError(e)},_t.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},_t.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},_t.prototype.go=function(e){this.history.go(e)},_t.prototype.back=function(){this.go(-1)},_t.prototype.forward=function(){this.go(1)},_t.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},_t.prototype.resolve=function(e,t,n){t=t||this.history.current;var i=J(e,t,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath,a=this.history.base,s=St(a,o,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},_t.prototype.getRoutes=function(){return this.matcher.getRoutes()},_t.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},_t.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(_t.prototype,wt);var xt=_t;function Ct(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function St(e,t,n){var i="hash"===n?"#"+t:t;return e?E(e+"/"+i):i}_t.install=se,_t.version="3.6.5",_t.isNavigationFailure=qe,_t.NavigationFailureType=Fe,_t.START_LOCATION=m,le&&window.Vue&&window.Vue.use(_t)},"8c84":function(e,t,n){var i=n("3466");function r(e){return function(t){return"[object "+e+"]"===i.call(t)}}e.exports=r},"8cef":function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}))},"8d17":function(e,t,n){var i=n("e440");function r(e,t,n){if(e){var r,o,a=0,s=null,l=n,c=arguments.length>2,u=i(e);if(e.length&&e.reduce)return o=function(){return t.apply(s,arguments)},c?e.reduce(o,l):e.reduce(o);for(c&&(a=1,l=e[u[0]]),r=u.length;a<r;a++)l=t.call(s,l,e[u[a]],a,e);return l}}e.exports=r},"8d35":function(e,t,n){var i=n("3535"),r=n("969d"),o=n("84a5");function a(e,t){var n=r(e),a=r(t),s=i(n),l=i(a),c=l-s,u=c<0,d=Math.pow(10,u?Math.abs(c):c);return o(n.replace(".","")/a.replace(".",""),u?1/d:d)}e.exports=a},"8d5f":function(e,t,n){var i=n("a227"),r=n("22ff"),o=n("604a"),a=n("9bd2"),s=n("10d6");function l(e,t,n){if(s(e))return n;var i=u(e,t);return a(i)?n:i}function c(e,t){var n=t?t.match(i):"";return n?n[1]?e[n[1]]?e[n[1]][n[2]]:void 0:e[n[2]]:e[t]}function u(e,t){if(e){var n,i,a,l=0;if(e[t]||o(e,t))return e[t];if(i=r(t),a=i.length,a)for(n=e;l<a;l++)if(n=c(n,i[l]),s(n))return l===a-1?n:void 0;return n}}e.exports=l},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"8e0f":function(e,t,n){var i=n("9a44");function r(e){return e&&e.trimLeft?e.trimLeft():i(e).replace(/^[\s\uFEFF\xA0]+/g,"")}e.exports=r},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var i=n("5ca1"),r=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");i(i.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,i=o(e),l=a.f,c=r(i),u={},d=0;while(c.length>d)n=l(i,t=c[d++]),void 0!==n&&s(u,t,n);return u}})},"8ea5":function(e,t,n){var i=n("5ca1"),r=n("8ed0");i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},"8eb7":function(e,t){var n,i,r,o,a,s,l,c,u,d,h,f,p,g,m,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);s=y?parseFloat(y[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=i=r=a=o=NaN;if(b){if(b[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;c=!!b[2],u=!!b[3]}else l=c=u=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||s>n},ie64:function(){return y.ie()&&h},firefox:function(){return b()||i},opera:function(){return b()||r},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||c},osx:function(){return b()||l},linux:function(){return b()||u},iphone:function(){return b()||f},mobile:function(){return b()||f||p||d||m},nativeApp:function(){return b()||g},android:function(){return b()||d},ipad:function(){return b()||p}};e.exports=y},"8ed0":function(e,t,n){"use strict";var i=n("79e5"),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!i((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},"8f47":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.transition=l,t.injectNewCurve=w,t["default"]=void 0;var r=i(n("278c")),o=i(n("7037")),a=i(n("df83")),s="linear";function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!c.apply(void 0,arguments))return!1;try{var o=u(e),a=d(o,i);return r&&"number"!==typeof n?_(t,n,a):m(t,n,a)}catch(s){return console.warn("Transition parameter may be abnormal!"),[n]}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;if(!e||!1===t||!1===n||!i)return console.error("transition: Missing Parameters!"),!1;if((0,o["default"])(t)!==(0,o["default"])(n))return console.error("transition: Inconsistent Status Types!"),!1;var r=(0,o["default"])(n);return"string"!==r&&"boolean"!==r&&e.length?(a["default"].has(e)||e instanceof Array||console.warn("transition: Transition curve not found, default curve will be used!"),!0):(console.error("transition: Unsupported Data Type of State!"),!1)}function u(e){var t="";return t=a["default"].has(e)?a["default"].get(e):e instanceof Array?e:a["default"].get(s),t}function d(e,t){var n=1/(t-1),i=new Array(t).fill(0).map((function(e,t){return t*n})),r=i.map((function(t){return h(e,t)}));return r}function h(e,t){var n=f(e,t),i=p(n,t);return g(n,i)}function f(e,t){var n=e.length-1,i="",r="";e.findIndex((function(o,a){if(a!==n){i=o,r=e[a+1];var s=i[0][0],l=r[0][0];return t>=s&&t<l}}));var o=i[0],a=i[2]||i[0],s=r[1]||r[0],l=r[0];return[o,a,s,l]}function p(e,t){var n=e[0][0],i=e[3][0],r=i-n,o=t-n;return o/r}function g(e,t){var n=(0,r["default"])(e,4),i=(0,r["default"])(n[0],2),o=i[1],a=(0,r["default"])(n[1],2),s=a[1],l=(0,r["default"])(n[2],2),c=l[1],u=(0,r["default"])(n[3],2),d=u[1],h=Math.pow,f=1-t,p=o*h(f,3),g=3*s*t*h(f,2),m=3*c*h(t,2)*f,v=d*h(t,3);return 1-(p+g+m+v)}function m(e,t,n){var i="object";return"number"===typeof e&&(i="number"),e instanceof Array&&(i="array"),"number"===i?v(e,t,n):"array"===i?b(e,t,n):"object"===i?y(e,t,n):n.map((function(e){return t}))}function v(e,t,n){var i=t-e;return n.map((function(t){return e+i*t}))}function b(e,t,n){var i=t.map((function(t,n){return"number"===typeof t&&t-e[n]}));return n.map((function(n){return i.map((function(i,r){return!1===i?t[r]:e[r]+i*n}))}))}function y(e,t,n){var i=Object.keys(t),r=i.map((function(t){return e[t]})),o=i.map((function(e){return t[e]})),a=b(r,o,n);return a.map((function(e){var t={};return e.forEach((function(e,n){return t[i[n]]=e})),t}))}function _(e,t,n){var i=m(e,t,n),r=function(r){var a=e[r],s=t[r];if("object"!==(0,o["default"])(s))return"continue";var l=_(a,s,n);i.forEach((function(e,t){return e[r]=l[t]}))};for(var a in t)r(a);return i}function w(e,t){e&&t?a["default"].set(e,t):console.error("InjectNewCurve Missing Parameters!")}var x=l;t["default"]=x},"8f60":function(e,t,n){"use strict";var i=n("a159"),r=n("aebd"),o=n("45f2"),a={};n("35e8")(a,n("5168")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},9003:function(e,t,n){var i=n("6b4c");e.exports=Array.isArray||function(e){return"Array"==i(e)}},9093:function(e,t,n){var i=n("ce10"),r=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},"90e4":function(e,t,n){var i=n("abaf"),r=i("values",0);e.exports=r},9138:function(e,t,n){e.exports=n("35e8")},9152:function(e,t){
  96. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  97. t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),o-=c}return(f?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,l,c=8*o-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(a=a<<r|s,c+=r;c>0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*g}},"91ca":function(e,t,n){var i=n("96fb"),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),l=r(2,-126),c=function(e){return e+1/o-1/o};e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),u=i(e);return r<l?u*c(r/l/a)*l*a:(t=(1+a/o)*r,n=t-(t-r),n>s||n!=n?u*(1/0):u*n)}},9229:function(e,t,n){var i=n("2c38"),r=n("9d13"),o=n("7523"),a=n("eb8b"),s=n("3f90"),l=n("f514"),c=n("a7ca");function u(e){var t,n,d=s(e);return c(d)?(t=a(d,0,r),n=l(t,0,1),n<t&&(n=l(t,1,1)),d>=n?Math.floor((o(d)-o(n))/i)+1:u(l(d,0,1))):NaN}e.exports=u},9253:function(e,t,n){var i=n("86cc"),r=n("11e9"),o=n("38fd"),a=n("69a8"),s=n("5ca1"),l=n("4630"),c=n("cb7c"),u=n("d3f4");function d(e,t,n){var s,h,f=arguments.length<4?e:arguments[3],p=r.f(c(e),t);if(!p){if(u(h=o(e)))return d(h,t,n,f);p=l(0)}if(a(p,"value")){if(!1===p.writable||!u(f))return!1;if(s=r.f(f,t)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,i.f(f,t,s)}else i.f(f,t,l(0,n));return!0}return void 0!==p.set&&(p.set.call(f,n),!0)}s(s.S,"Reflect",{set:d})},9275:function(e,t,n){var i=n("5ca1"),r=n("8b97");r&&i(i.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(n){return!1}}})},9278:function(e,t,n){var i=n("5ca1");i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var r,o,a,s,l;for(a in t)if(r=e[a],o=t[a],r&&n.test(a))if("class"===a&&("string"===typeof r&&(l=r,e[a]=r={},r[l]=!0),"string"===typeof o&&(l=o,t[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)r[s]=i(r[s],o[s]);else if(Array.isArray(r))e[a]=r.concat(o);else if(Array.isArray(o))e[a]=[r].concat(o);else for(s in o)r[s]=o[s];else e[a]=t[a];return e}),{})}},9306:function(e,t,n){"use strict";var i=n("8e60"),r=n("c3a1"),o=n("9aa9"),a=n("355d"),s=n("241e"),l=n("335c"),c=Object.assign;e.exports=!c||n("294c")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=s(e),c=arguments.length,u=1,d=o.f,h=a.f;while(c>u){var f,p=l(arguments[u++]),g=d?r(p).concat(d(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:c},9398:function(e,t,n){"use strict";var i="yyyy-MM-dd HH:mm:ss",r={treeOptions:{parentKey:"parentId",key:"id",children:"children"},formatDate:i+".SSSZ",formatString:i,dateDiffRules:[["yyyy",31536e6],["MM",2592e6],["dd",864e5],["HH",36e5],["mm",6e4],["ss",1e3],["S",0]]};e.exports=r},"946e":function(e,t){function n(e){return JSON.stringify(e)||""}e.exports=n},"94f8":function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.algo,s=[],l=[];(function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}var i=2,r=0;while(r<64)e(i)&&(r<8&&(s[r]=n(t.pow(i,.5))),l[r]=n(t.pow(i,1/3)),r++),i++})();var c=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var p=c[f-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,m=c[f-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;c[f]=g+c[f-7]+v+c[f-16]}var b=s&u^~s&d,y=i&r^i&o^r&o,_=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),x=h+w+b+l[f]+c[f],C=_+y;h=d,d=u,u=s,s=a+x|0,a=o,o=r,r=i,i=x+C|0}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=t.floor(i/4294967296),n[15+(r+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(u),n.HmacSHA256=o._createHmacHelper(u)}(Math),e.SHA256}))},9523:function(e,t,n){var i=n("a395");function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},9619:function(e,t,n){var i=n("597f"),r=n("0e15");e.exports={throttle:i,debounce:r}},"969d":function(e,t,n){var i=n("f1d9"),r=n("ab05");function o(e){var t=""+e,n=t.match(/^([-+]?)((\d+)|((\d+)?[.](\d+)?))e([-+]{1})([0-9]+)$/);if(n){var o=e<0,a=o?"-":"",s=n[3]||"",l=n[5]||"",c=n[6]||"",u=n[7],d=n[8],h=d-c.length,f=d-s.length,p=d-l.length;return"+"===u?s?a+s+i("0",d):h>0?a+l+c+i("0",h):a+l+r(c,d):s?f>0?a+"0."+i("0",Math.abs(f))+s:a+r(s,f):p>0?a+"0."+i("0",Math.abs(p))+l+c:a+r(l,p)+c}return t}e.exports=o},"96cf":function(e,t,n){var i=function(e){"use strict";var t,n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(A){c=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new T(i||[]);return r(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function b(){}function y(){}var _={};c(_,a,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&i.call(x,a)&&(_=x);var C=y.prototype=v.prototype=Object.create(_);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(r,o,a,s){var l=d(e[r],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;function a(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}r(this,"_invoke",{value:a})}function O(e,t,n){var i=h;return function(r,o){if(i===p)throw new Error("Generator is already running");if(i===g){if("throw"===r)throw o;return I()}n.method=r,n.arg=o;while(1){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=d(e,t,n);if("normal"===l.type){if(i=n.done?g:f,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=g,n.method="throw",n.arg=l.arg)}}}function M(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator["return"]&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m;var o=d(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function L(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){while(++r<e.length)if(i.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:I}}function I(){return{value:t,done:!0}}return b.prototype=y,r(C,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},S(k.prototype),c(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var a=new k(u(t,n,i,r),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){while(n.length){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=L,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(i,r){return s.type="throw",s.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:L(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},"96fb":function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},"970b":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"972b":function(e,t,n){var i=n("7fff"),r=n("6c36");function o(e,t){return r(i(e,t),t)}e.exports=o},9744:function(e,t,n){"use strict";var i=n("4588"),r=n("be13");e.exports=function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"97b9":function(e,t){function n(e){return!!e&&e.constructor===Object}e.exports=n},9865:function(e,t,n){"use strict";var i=n("5ca1"),r=n("6821"),o=n("4588"),a=n("9def"),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n("2f21")(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=r(this),n=a(t.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}})},9886:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CRender",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"extendNewGraph",{enumerable:!0,get:function(){return o.extendNewGraph}}),t["default"]=void 0;var r=i(n("85c4")),o=n("b06d"),a=r["default"];t["default"]=a},"988d":function(e,t,n){"use strict";var i=n("5ca1"),r=n("be13"),o=n("9def"),a=n("aae3"),s=n("0bfb"),l=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n("41a0")(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),i(i.P,"String",{matchAll:function(e){if(r(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),i=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=o(e.lastIndex),new c(i,t)}})},"990b":function(e,t,n){var i=n("9093"),r=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=i.f(o(e)),n=r.f;return n?t.concat(n(e)):t}},9927:function(e,t,n){var i=n("44c5"),r=n("3f90"),o=n("1eba");function a(e){var t,n=e?r(e):o();return!!i(n)&&(t=n.getFullYear(),t%4===0&&(t%100!==0||t%400===0))}e.exports=a},9986:function(e,t,n){var i=n("6821"),r=n("11e9").f;n("5eda")("getOwnPropertyDescriptor",(function(){return function(e,t){return r(i(e),t)}}))},"99c5":function(e,t,n){n("c6a15")("Set")},"99ea":function(e,t,n){var i=n("681d"),r=i("",0,2,!0);e.exports=r},"99f4":function(e,t,n){var i=n("c6fd"),r=n("bfb8");function o(e,t){return i(e,t,r)}e.exports=o},"9a1a":function(e,t,n){var i=n("d9a1"),r=n("4323"),o=r(i);e.exports=o},"9a44":function(e,t,n){var i=n("10d6"),r=n("4c7b"),o=n("969d");function a(e){return r(e)?o(e):""+(i(e)?"":e)}e.exports=a},"9aa9":function(e,t){t.f=Object.getOwnPropertySymbols},"9ab4":function(e,t,n){},"9aea":function(e,t,n){var i=n("d3f4"),r=n("67ab").onFreeze;n("5eda")("preventExtensions",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},"9afc":function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&i(e)?f(c(e),e,t):e}function d(e,t,n){var r=e.slice();return t.forEach((function(t,o){"undefined"===typeof r[o]?r[o]=u(t,n):i(t)?r[o]=f(e[o],t,n):-1===e.indexOf(t)&&r.push(u(t,n))})),r}function h(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){i(t[o])&&e[o]?r[o]=f(e[o],t[o],n):r[o]=u(t[o],n)})),r}function f(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:d},a=i===r;if(a){if(i){var s=o.arrayMerge||d;return s(e,t,n)}return h(e,t,n)}return u(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"9b06":function(e,t,n){},"9b42":function(e,t){function n(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(c)throw r}}return s}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9b43":function(e,t,n){var i=n("d8e8");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9b8c":function(e,t,n){"use strict";var i=n("a1cf"),r=n("fcd1"),o=n("c07e"),a=n("87bb"),s=n("4248"),l=n("bd39"),c=n("bd6e"),u=n("edb5"),d=n("dab2"),h=n("6299"),f=n("bf19"),p=n("c6a1"),g=n("eb26"),m=n("4fd9"),v=n("16cd"),b=n("b1d2"),y=n("7184"),_=n("eecc"),w=n("6dcd"),x=n("1935"),C=n("2a2f"),S=n("47ea"),k=n("99ea"),O=n("2b81"),M=n("d076"),D=n("5d34"),E=n("8d17"),T=n("1196"),L=n("5ba5"),I=n("5ff6"),A=n("79ac"),N=n("c0fd"),P=n("b5a3"),R=n("6cff"),F=n("1d15"),j=n("7764"),B=n("4de0"),z=n("4f8e"),V=n("ce92"),$=n("5a88"),W=n("f2f6"),H=n("40ab"),U=n("edad"),q=n("519c"),G=n("358a"),K=n("604a"),Y=n("1b14"),X=n("1877"),Z=n("3696"),Q=n("9bd2"),J=n("e095"),ee=n("a20e"),te=n("2c63"),ne=n("97b9"),ie=n("9927"),re=n("44c5"),oe=n("10d6"),ae=n("d074"),se=n("2850"),le=n("c909"),ce=n("1fdd"),ue=n("b22f"),de=n("e440"),he=n("90e4"),fe=n("6229"),pe=n("4b99"),ge=n("38b3"),me=n("b871"),ve=n("3cbd"),be=n("42ce"),ye=n("80fa"),_e=n("da13"),we=n("bf78"),xe=n("4c7b"),Ce=n("36d5"),Se=n("bbd3"),ke=n("d188"),Oe=n("b552"),Me=n("4910"),De=n("3e20"),Ee=n("6657"),Te=n("e97f"),Le=n("f081"),Ie=n("af60"),Ae=n("f6aa"),Ne=n("f5cc"),Pe=n("1f48"),Re=n("83b4"),Fe=n("1884"),je=n("99f4"),Be=n("7819"),ze=n("46f4"),Ve=n("71ba"),$e=n("ba84"),We=n("3819"),He=n("644d"),Ue=n("946e"),qe=n("41fa"),Ge=n("6bd0"),Ke=n("0e9c"),Ye=n("c1be"),Xe=n("f99c"),Ze=n("0a0f"),Qe=n("8d5f"),Je=n("a0c5"),et=n("2c64"),tt=n("2c87"),nt=n("c8c6"),it=n("f117"),rt=n("bcdc"),ot=n("5986"),at=n("b9fd"),st=n("3660"),lt=n("a58e"),ct=n("e4e5"),ut=n("7fff"),dt=n("6c36"),ht=n("972b"),ft=n("d309"),pt=n("3490"),gt=n("47fc"),mt=n("969d"),vt=n("7271"),bt=n("1b69"),yt=n("84a5"),_t=n("2a59"),wt=n("e9c4"),xt=n("aef4"),Ct=n("b099"),St=n("eb8b"),kt=n("0e9b"),Ot=n("3f90"),Mt=n("a786"),Dt=n("6a30"),Et=n("dc4c"),Tt=n("a7ca"),Lt=n("73bb"),It=n("f514"),At=n("e42d"),Nt=n("248c"),Pt=n("9229"),Rt=n("f796"),Ft=n("503a"),jt=n("9f66"),Bt=n("a1aa"),zt=n("8035"),Vt=n("519a"),$t=n("d266"),Wt=n("f31b"),Ht=n("8e0f"),Ut=n("9a1a"),qt=n("d81a"),Gt=n("0ac3"),Kt=n("ed87"),Yt=n("01ab"),Xt=n("30e3"),Zt=n("9ecc"),Qt=n("a2d1"),Jt=n("9a44"),en=n("bb8b"),tn=n("2610"),nn=n("b163"),rn=n("50c0"),on=n("49a1"),an=n("0271"),sn=n("c259"),ln=n("5964"),cn=n("7bad"),un=n("b977"),dn=n("2aa4"),hn=n("4100"),fn=n("7c12"),pn=n("0a28"),gn=n("d23a"),mn=n("32a9");r(i,{assign:r,extend:o,objectEach:a,lastObjectEach:s,objectMap:l,merge:c,uniq:m,union:v,sortBy:y,orderBy:_,shuffle:w,sample:x,some:d,every:h,slice:C,filter:S,find:M,findLast:D,findKey:k,includes:O,arrayIndexOf:q,arrayLastIndexOf:G,map:u,reduce:E,copyWithin:T,chunk:L,zip:I,unzip:A,zipObject:N,flatten:P,toArray:b,includeArrays:f,pluck:R,invoke:F,invokeMap:j,arrayEach:p,lastArrayEach:g,toArrayTree:B,toTreeArray:z,findTree:V,eachTree:$,mapTree:W,filterTree:H,searchTree:U,hasOwnProp:K,eqNull:oe,isNaN:Z,isFinite:be,isUndefined:Q,isArray:Y,isFloat:ye,isInteger:_e,isFunction:J,isBoolean:we,isString:te,isNumber:xe,isRegExp:Ce,isObject:ee,isPlainObject:ne,isDate:re,isError:Se,isTypeError:ke,isEmpty:Oe,isNull:X,isSymbol:Me,isArguments:De,isElement:Ee,isDocument:Te,isWindow:Le,isFormData:Ie,isMap:Ae,isWeakMap:Ne,isSet:Pe,isWeakSet:Re,isLeapYear:ie,isMatch:Fe,isEqual:je,isEqualWith:Be,getType:ze,uniqueId:Ve,getSize:pe,indexOf:ce,lastIndexOf:ue,findIndexOf:$e,findLastIndexOf:We,toStringJSON:He,toJSONString:Ue,keys:de,values:he,entries:qe,pick:Ge,omit:Ke,first:Ye,last:Xe,each:ae,forOf:se,lastForOf:le,lastEach:ge,has:Ze,get:Qe,set:Je,groupBy:et,countBy:tt,clone:fe,clear:ve,remove:me,range:nt,destructuring:it,random:rt,min:at,max:ot,commafy:st,round:lt,ceil:ct,floor:ut,toFixed:dt,toFixedString:ht,toFixedNumber:ft,toNumber:gt,toNumberString:mt,toInteger:pt,add:vt,subtract:bt,multiply:yt,divide:_t,sum:wt,mean:xt,now:Dt,timestamp:Et,isValidDate:Tt,isDateSame:Lt,toStringDate:Ot,toDateString:Mt,getWhatYear:Ct,getWhatMonth:St,getWhatWeek:It,getWhatDay:kt,getYearDay:At,getYearWeek:Nt,getMonthWeek:Pt,getDayOfYear:Rt,getDayOfMonth:Ft,getDateDiff:jt,trim:$t,trimLeft:Ht,trimRight:Wt,escape:Ut,unescape:qt,camelCase:Gt,kebabCase:Kt,repeat:Vt,padStart:zt,padEnd:Bt,startsWith:Yt,endsWith:Xt,template:Zt,toFormatString:Qt,toString:Jt,noop:en,property:tn,bind:nn,once:rn,after:on,before:an,throttle:sn,debounce:ln,delay:cn,unserialize:un,serialize:dn,parseUrl:hn,getBaseURL:fn,locat:pn,browse:mn,cookie:gn}),e.exports=i},"9bd2":function(e,t,n){var i=n("6d87"),r=n("d388"),o=r(i);e.exports=o},"9c00":function(e,t,n){var i=n("5ca1");i(i.S,"Math",{iaddh:function(e,t,n,i){var r=e>>>0,o=t>>>0,a=n>>>0;return o+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},"9c12":function(e,t,n){var i=n("d3f4"),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},"9c29":function(e,t,n){n("ec30")("Uint32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},"9c6c":function(e,t,n){var i=n("2b4c")("unscopables"),r=Array.prototype;void 0==r[i]&&n("32e9")(r,i,{}),e.exports=function(e){r[i][e]=!0}},"9c80":function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},"9c86":function(e,t,n){"use strict";n("386b")("big",(function(e){return function(){return e(this,"big","","")}}))},"9d13":function(e,t){var n="first";e.exports=n},"9d7e":function(e,t,n){"use strict";t.__esModule=!0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===i(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,(function(t,i,o,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?o:(s=(0,r.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)}))}return t};var r=n("8122"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9d85":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=m,Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return i.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return r.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return c.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return u.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return d.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return h.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),t.keys=void 0;var i=n("f3cb"),r=n("49bc"),o=n("c930"),a=n("887c"),s=n("6eb9"),l=n("f111"),c=n("222a"),u=n("0cd4"),d=n("3938"),h=n("cc6d"),f=n("60f1"),p=n("becb"),g={colorConfig:i.colorConfig,gridConfig:r.gridConfig,xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig,titleConfig:a.titleConfig,lineConfig:s.lineConfig,barConfig:l.barConfig,pieConfig:c.pieConfig,radarAxisConfig:u.radarAxisConfig,radarConfig:d.radarConfig,gaugeConfig:h.gaugeConfig,legendConfig:f.legendConfig};function m(e,t){g["".concat(e,"Config")]?(0,p.deepMerge)(g["".concat(e,"Config")],t):console.warn("Change default config Error - Invalid key!")}var v=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];t.keys=v},"9def":function(e,t,n){var i=n("4588"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"9e6a":function(e,t,n){"use strict";var i=n("d233"),r=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:i.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var n={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),l=0;l<s.length;++l){var c,u,d=s[l],h=d.indexOf("]="),f=-1===h?d.indexOf("="):h+1;-1===f?(c=t.decoder(d,o.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,f),o.decoder),u=t.decoder(d.slice(f+1),o.decoder)),r.call(n,c)?n[c]=[].concat(n[c]).concat(u):n[c]=u}return n},s=function(e,t,n){for(var i=t,r=e.length-1;r>=0;--r){var o,a=e[r];if("[]"===a&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);n.parseArrays||""!==s?!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[],o[l]=i):"__proto__"!==s&&(o[s]=i):o={0:i}}i=o}return i},l=function(e,t,n){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=o.exec(i),c=l?i.slice(0,l.index):i,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var d=0;while(null!==(l=a.exec(i))&&d<n.depth){if(d+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+i.slice(l.index)+"]"),s(u,t,n)}};e.exports=function(e,t){var n=t?i.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||i.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"===typeof n.depth?n.depth:o.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var r="string"===typeof e?a(e,n):e,s=n.plainObjects?Object.create(null):{},c=Object.keys(r),u=0;u<c.length;++u){var d=c[u],h=l(d,r[d],n);s=i.merge(s,h,n)}return i.compact(s)}},"9ec8":function(e,t,n){"use strict";n("386b")("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},"9ecc":function(e,t,n){var i=n("9398"),r=n("9a44"),o=n("d266"),a=n("8d5f");function s(e,t,n){return r(e).replace((n||i).tmplRE||/\{{2}([.\w[\]\s]+)\}{2}/g,(function(e,n){return a(t,o(n))}))}e.exports=s},"9f3c":function(e,t,n){var i=n("5ca1"),r=n("2d5c");i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},"9f66":function(e,t,n){var i=n("9398"),r=n("4e80"),o=n("1eba"),a=n("3f90"),s=n("a7ca");function l(e,t,n){var l,c,u,d,h,f,p,g={done:!1,time:0};if(e=a(e),t=t?a(t):o(),s(e)&&s(t)&&(l=r(e),c=r(t),l<c))for(d=g.time=c-l,h=n&&n.length>0?n:i.dateDiffRules,g.done=!0,p=0,f=h.length;p<f;p++)u=h[p],d>=u[1]?p===f-1?g[u[0]]=d||0:(g[u[0]]=Math.floor(d/u[1]),d-=g[u[0]]*u[1]):g[u[0]]=0;return g}e.exports=l},a032:function(e,t,n){"use strict";var i=n("5ca1"),r=n("02f4")(!1);i(i.P,"String",{codePointAt:function(e){return r(this,e)}})},a0c5:function(e,t,n){var i=n("8965"),r=n("22ff"),o=n("604a"),a=/(.+)\[(\d+)\]$/;function s(e,t,n,r){if(!e[t]){var o,s=t?t.match(a):null,l=n?r:{};return s?(o=i(s[2]),e[s[1]]||(e[s[1]]=new Array(o+1)),e[s[1]][o]=l):e[t]=l,l}return n&&(e[t]=r),e[t]}function l(e,t,n){if(e)if(e[t]||o(e,t))e[t]=n;else for(var i=e,a=r(t),l=a.length,c=0;c<l;c++)i=s(i,a[c],c===l-1,n);return e}e.exports=l},a11b:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.Iso10126={pad:function(t,n){var i=4*n,r=i-t.sigBytes%i;t.concat(e.lib.WordArray.random(r-1)).concat(e.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}))},a143:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxis=f;var r=i(n("278c")),o=i(n("9523")),a=i(n("448a")),s=n("18ad"),l=n("9d85"),c=n("5557"),u=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.radar,i=[];n&&(i=p(n),i=g(i,e),i=m(i,e),i=v(i),i=b(i),i=y(i),i=[i]);var r=i;i.length&&!i[0].show&&(r=[]),(0,s.doUpdate)({chart:e,series:r,key:"radarAxisSplitArea",getGraphConfig:_,beforeUpdate:C,beforeChange:S}),(0,s.doUpdate)({chart:e,series:r,key:"radarAxisSplitLine",getGraphConfig:k,beforeUpdate:D,beforeChange:E}),(0,s.doUpdate)({chart:e,series:r,key:"radarAxisLine",getGraphConfig:T}),(0,s.doUpdate)({chart:e,series:r,key:"radarAxisLable",getGraphConfig:A}),e.radarAxis=i[0]}function p(e){return(0,u.deepMerge)((0,c.deepClone)(l.radarAxisConfig),e)}function g(e,t){var n=t.render.area,i=e.center;return e.centerPos=i.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e}function m(e,t){var n=t.render.area,i=e.splitNum,r=e.radius,o=Math.min.apply(Math,(0,a["default"])(n))/2;"number"!==typeof r&&(r=parseInt(r)/100*o);var s=r/i;return e.ringRadius=new Array(i).fill(0).map((function(e,t){return s*(t+1)})),e.radius=r,e}function v(e){var t=e.indicator,n=e.centerPos,i=e.radius,r=e.startAngle,o=2*Math.PI,s=t.length,l=o/s,u=new Array(s).fill(0).map((function(e,t){return l*t+r}));return e.axisLineAngles=u,e.axisLinePosition=u.map((function(e){return c.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([i,e]))})),e}function b(e){var t=e.ringRadius,n=t[0]/2;return e.areaRadius=t.map((function(e){return e-n})),e}function y(e){var t=e.axisLineAngles,n=e.centerPos,i=e.radius,r=e.axisLabel;return i+=r.labelGap,e.axisLabelPosition=t.map((function(e){return c.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([i,e]))})),e}function _(e){var t=e.areaRadius,n=e.polygon,i=e.animationCurve,r=e.animationFrame,o=e.rLevel,a=n?"regPolygon":"ring";return t.map((function(t,n){return{name:a,index:o,visible:e.splitArea.show,animationCurve:i,animationFrame:r,shape:w(e,n),style:x(e,n)}}))}function w(e,t){var n=e.polygon,i=e.areaRadius,r=e.indicator,o=e.centerPos,a=r.length,s={rx:o[0],ry:o[1],r:i[t]};return n&&(s.side=a),s}function x(e,t){var n=e.splitArea,i=e.ringRadius,r=e.axisLineAngles,o=e.polygon,s=e.centerPos,l=n.color,d=n.style;d=h({fill:"rgba(0, 0, 0, 0)"},d);var f=i[0]-0;if(o){var p=c.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([i[0],r[0]])),g=c.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([i[0],r[1]]));f=(0,u.getPointToLineDistance)(s,p,g)}if(d=(0,u.deepMerge)((0,c.deepClone)(d,!0),{lineWidth:f}),!l.length)return d;var m=l.length;return(0,u.deepMerge)(d,{stroke:l[t%m]})}function C(e,t,n,i){var r=e[n];if(r){var o=i.chart.render,a=t.polygon,s=r[0].name,l=a?"regPolygon":"ring",c=l!==s;c&&(r.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function S(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function k(e){var t=e.ringRadius,n=e.polygon,i=e.animationCurve,r=e.animationFrame,o=e.rLevel,a=n?"regPolygon":"ring";return t.map((function(t,n){return{name:a,index:o,animationCurve:i,animationFrame:r,visible:e.splitLine.show,shape:O(e,n),style:M(e,n)}}))}function O(e,t){var n=e.ringRadius,i=e.centerPos,r=e.indicator,o=e.polygon,a={rx:i[0],ry:i[1],r:n[t]},s=r.length;return o&&(a.side=s),a}function M(e,t){var n=e.splitLine,i=n.color,r=n.style;if(r=h({fill:"rgba(0, 0, 0, 0)"},r),!i.length)return r;var o=i.length;return(0,u.deepMerge)(r,{stroke:i[t%o]})}function D(e,t,n,i){var r=e[n];if(r){var o=i.chart.render,a=t.polygon,s=r[0].name,l=a?"regPolygon":"ring",c=l!==s;c&&(r.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function E(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function T(e){var t=e.axisLinePosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:r,visible:e.axisLine.show,animationCurve:n,animationFrame:i,shape:L(e,o),style:I(e,o)}}))}function L(e,t){var n=e.centerPos,i=e.axisLinePosition,r=[n,i[t]];return{points:r}}function I(e,t){var n=e.axisLine,i=n.color,r=n.style;if(!i.length)return r;var o=i.length;return(0,u.deepMerge)(r,{stroke:i[t%o]})}function A(e){var t=e.axisLabelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:n,animationFrame:i,shape:N(e,o),style:P(e,o)}}))}function N(e,t){var n=e.axisLabelPosition,i=e.indicator;return{content:i[t].name,position:n[t]}}function P(e,t){var n=e.axisLabel,i=(0,r["default"])(e.centerPos,2),o=i[0],a=i[1],s=e.axisLabelPosition,l=n.color,c=n.style,d=(0,r["default"])(s[t],2),h=d[0],f=d[1],p=h>o?"left":"right",g=f>a?"top":"bottom";if(c=(0,u.deepMerge)({textAlign:p,textBaseline:g},c),!l.length)return c;var m=l.length;return(0,u.deepMerge)(c,{fill:l[t%m]})}},a157:function(e,t,n){},a159:function(e,t,n){var i=n("e4ae"),r=n("7e90"),o=n("1691"),a=n("5559")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("1ec9")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("32fc").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),c=e.F;while(i--)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},a19f:function(e,t,n){var i=n("5ca1"),r=n("cb7c"),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(e){r(e);try{return o&&o(e),!0}catch(t){return!1}}})},a1aa:function(e,t,n){var i=n("9a44"),r=n("9bd2"),o=n("f1d9");function a(e,t,n){var a=i(e);return t>>=0,n=r(n)?" ":""+n,a.padEnd?a.padEnd(t,n):t>a.length?(t-=a.length,t>n.length&&(n+=o(n,t/n.length)),a+n.slice(0,t)):a}e.exports=a},a1cf:function(e,t,n){"use strict";var i=n("9398"),r=n("c6a1"),o=n("d074"),a=n("e095"),s=n("fcd1");function l(){r(arguments,(function(e){o(e,(function(e,t){u[t]=a(e)?function(){var t=e.apply(u.$context,arguments);return u.$context=null,t}:e}))}))}function c(e){return s(i,e)}function u(){}u.v="v2",u.mixin=l,u.setup=c,e.exports=u},a20e:function(e,t,n){var i=n("d388"),r=i("object");e.exports=r},a227:function(e,t){var n=/(.+)?\[(\d+)\]$/;e.exports=n},a234:function(e,t,n){var i=n("5ca1");i(i.S,"System",{global:n("7726")})},a25f:function(e,t,n){var i=n("7726"),r=i.navigator;e.exports=r&&r.userAgent||""},a2d1:function(e,t,n){var i=n("9ecc");function r(e,t){return i(e,t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}e.exports=r},a34a:function(e,t,n){var i=n("7ec2")();e.exports=i;try{regeneratorRuntime=i}catch(r){"object"===typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},a388:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var i=n("1c0b");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var i=n("fc6a"),r=n("241c").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"06cf":function(e,t,n){var i=n("83ab"),r=n("d1e7"),o=n("5c6c"),a=n("fc6a"),s=n("c04e"),l=n("5135"),c=n("0cfb"),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(n){}if(l(e,t))return o(!r.f.call(e,t),e[t])}},"0ccb":function(e,t,n){var i=n("50c4"),r=n("1148"),o=n("1d80"),a=Math.ceil,s=function(e){return function(t,n,s){var l,c,u=String(o(t)),d=u.length,h=void 0===s?" ":String(s),f=i(n);return f<=d||""==h?u:(l=f-d,c=r.call(h,a(l/h.length)),c.length>l&&(c=c.slice(0,l)),e?u+c:c+u)}};e.exports={start:s(!1),end:s(!0)}},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d3b":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),a=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},1148:function(e,t,n){"use strict";var i=n("a691"),r=n("1d80");e.exports="".repeat||function(e){var t=String(r(this)),n="",o=i(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},1276:function(e,t,n){"use strict";var i=n("d784"),r=n("44e7"),o=n("825a"),a=n("1d80"),s=n("4840"),l=n("8aa5"),c=n("50c4"),u=n("14c3"),d=n("9263"),h=n("d039"),f=[].push,p=Math.min,g=4294967295,m=!h((function(){return!RegExp(g,"y")}));i("split",2,(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(a(this)),o=void 0===n?g:n>>>0;if(0===o)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,o);var s,l,c,u=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,m=new RegExp(e.source,h+"g");while(s=d.call(m,i)){if(l=m.lastIndex,l>p&&(u.push(i.slice(p,s.index)),s.length>1&&s.index<i.length&&f.apply(u,s.slice(1)),c=s[0].length,p=l,u.length>=o))break;m.lastIndex===s.index&&m.lastIndex++}return p===i.length?!c&&m.test("")||u.push(""):u.push(i.slice(p)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=a(this),o=void 0==t?void 0:t[e];return void 0!==o?o.call(t,r,n):i.call(String(r),t,n)},function(e,r){var a=n(i,e,this,r,i!==t);if(a.done)return a.value;var d=o(e),h=String(this),f=s(d,RegExp),v=d.unicode,b=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(m?"y":"g"),y=new f(m?d:"^(?:"+d.source+")",b),_=void 0===r?g:r>>>0;if(0===_)return[];if(0===h.length)return null===u(y,h)?[h]:[];var w=0,x=0,C=[];while(x<h.length){y.lastIndex=m?x:0;var S,k=u(y,m?h:h.slice(x));if(null===k||(S=p(c(y.lastIndex+(m?0:x)),h.length))===w)x=l(h,x,v);else{if(C.push(h.slice(w,x)),C.length===_)return C;for(var O=1;O<=k.length-1;O++)if(C.push(k[O]),C.length===_)return C;x=w=S}}return C.push(h.slice(w)),C}]}),!m)},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),a=n("ae40"),s=n("2d00"),l=n("605d"),c=o("reduce"),u=a("reduce",{1:0}),d=!l&&s>79&&s<83;i({target:"Array",proto:!0,forced:!c||!u||d},{reduce:function(e){return r(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var i=n("c6b6"),r=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(e))throw TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("17c2"),a=n("9112");for(var s in r){var l=i[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{a(c,"forEach",o)}catch(u){c.forEach=o}}},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=n("ae40"),a=r("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"1a97":function(e,t,n){},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[r]=function(){return this},Array.from(s,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),a=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},2266:function(e,t,n){var i=n("825a"),r=n("e95a"),o=n("50c4"),a=n("0366"),s=n("35a1"),l=n("2a62"),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var u,d,h,f,p,g,m,v=n&&n.that,b=!(!n||!n.AS_ENTRIES),y=!(!n||!n.IS_ITERATOR),_=!(!n||!n.INTERRUPTED),w=a(t,v,1+b+_),x=function(e){return u&&l(u),new c(!0,e)},C=function(e){return b?(i(e),_?w(e[0],e[1],x):w(e[0],e[1])):_?w(e,x):w(e)};if(y)u=e;else{if(d=s(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(r(d)){for(h=0,f=o(e.length);f>h;h++)if(p=C(e[h]),p&&p instanceof c)return p;return new c(!1)}u=d.call(e)}g=u.next;while(!(m=g.call(u)).done){try{p=C(m.value)}catch(S){throw l(u),S}if("object"==typeof p&&p&&p instanceof c)return p}return new c(!1)}},"23cb":function(e,t,n){var i=n("a691"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||s(g,{}):(i[g]||{}).prototype,u)for(d in t){if(f=t[d],e.noTargetGet?(p=r(u,d),h=p&&p.value):h=u[d],n=c(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f===typeof h)continue;l(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(u,d,f,e)}}},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("5a34"),o=n("1d80"),a=n("ab13");i({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~String(o(this)).indexOf(r(e),arguments.length>1?arguments[1]:void 0)}})},"25f0":function(e,t,n){"use strict";var i=n("6eeb"),r=n("825a"),o=n("d039"),a=n("ad6d"),s="toString",l=RegExp.prototype,c=l[s],u=o((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=c.name!=s;(u||d)&&i(RegExp.prototype,s,(function(){var e=r(this),t=String(e.source),n=e.flags,i=String(void 0===n&&e instanceof RegExp&&!("flags"in l)?a.call(e):n);return"/"+t+"/"+i}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=i(e),n=r.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"2a62":function(e,t,n){var i=n("825a");e.exports=function(e){var t=e["return"];if(void 0!==t)return i(t.call(e)).value}},"2b3d":function(e,t,n){"use strict";n("3ca3");var i,r=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),l=n("37e8"),c=n("6eeb"),u=n("19aa"),d=n("5135"),h=n("60da"),f=n("4df4"),p=n("6547").codeAt,g=n("5fb2"),m=n("d44e"),v=n("9861"),b=n("69f3"),y=s.URL,_=v.URLSearchParams,w=v.getState,x=b.set,C=b.getterFor("URL"),S=Math.floor,k=Math.pow,O="Invalid authority",M="Invalid scheme",D="Invalid host",E="Invalid port",T=/[A-Za-z]/,L=/[\d+-.A-Za-z]/,I=/\d/,A=/^(0x|0X)/,N=/^[0-7]+$/,P=/^\d+$/,R=/^[\dA-Fa-f]+$/,F=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,j=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,B=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,z=/[\u0009\u000A\u000D]/g,V=function(e,t){var n,i,r;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return D;if(n=W(t.slice(1,-1)),!n)return D;e.host=n}else if(Q(e)){if(t=g(t),F.test(t))return D;if(n=$(t),null===n)return D;e.host=n}else{if(j.test(t))return D;for(n="",i=f(t),r=0;r<i.length;r++)n+=X(i[r],q);e.host=n}},$=function(e){var t,n,i,r,o,a,s,l=e.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),t=l.length,t>4)return e;for(n=[],i=0;i<t;i++){if(r=l[i],""==r)return e;if(o=10,r.length>1&&"0"==r.charAt(0)&&(o=A.test(r)?16:8,r=r.slice(8==o?1:2)),""===r)a=0;else{if(!(10==o?P:8==o?N:R).test(r))return e;a=parseInt(r,o)}n.push(a)}for(i=0;i<t;i++)if(a=n[i],i==t-1){if(a>=k(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),i=0;i<n.length;i++)s+=n[i]*k(256,3-i);return s},W=function(e){var t,n,i,r,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,c++,u=c}while(h()){if(8==c)return;if(":"!=h()){t=n=0;while(n<4&&R.test(h()))t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,c>6)return;i=0;while(h()){if(r=null,i>0){if(!("."==h()&&i<4))return;d++}if(!I.test(h()))return;while(I.test(h())){if(o=parseInt(h(),10),null===r)r=o;else{if(0==r)return;r=10*r+o}if(r>255)return;d++}l[c]=256*l[c]+r,i++,2!=i&&4!=i||c++}if(4!=i)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;l[c++]=t}else{if(null!==u)return;d++,c++,u=c}}if(null!==u){a=c-u,c=7;while(0!=c&&a>0)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s}else if(8!=c)return;return l},H=function(e){for(var t=null,n=1,i=null,r=0,o=0;o<8;o++)0!==e[o]?(r>n&&(t=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n&&(t=i,n=r),t},U=function(e){var t,n,i,r;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=S(e/256);return t.join(".")}if("object"==typeof e){for(t="",i=H(e),n=0;n<8;n++)r&&0===e[n]||(r&&(r=!1),i===n?(t+=n?":":"::",r=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},q={},G=h({},q,{" ":1,'"':1,"<":1,">":1,"`":1}),K=h({},G,{"#":1,"?":1,"{":1,"}":1}),Y=h({},K,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(Z,e.scheme)},J=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&T.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},ie=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},re=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ae={},se={},le={},ce={},ue={},de={},he={},fe={},pe={},ge={},me={},ve={},be={},ye={},_e={},we={},xe={},Ce={},Se={},ke={},Oe={},Me=function(e,t,n,r){var o,a,s,l,c=n||ae,u=0,h="",p=!1,g=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(B,"")),t=t.replace(z,""),o=f(t);while(u<=o.length){switch(a=o[u],c){case ae:if(!a||!T.test(a)){if(n)return M;c=le;continue}h+=a.toLowerCase(),c=se;break;case se:if(a&&(L.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return M;h="",c=le,u=0;continue}if(n&&(Q(e)!=d(Z,h)||"file"==h&&(J(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(Q(e)&&Z[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?c=ye:Q(e)&&r&&r.scheme==e.scheme?c=ce:Q(e)?c=fe:"/"==o[u+1]?(c=ue,u++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Se)}break;case le:if(!r||r.cannotBeABaseURL&&"#"!=a)return M;if(r.cannotBeABaseURL&&"#"==a){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,c=Oe;break}c="file"==r.scheme?ye:de;continue;case ce:if("/"!=a||"/"!=o[u+1]){c=de;continue}c=pe,u++;break;case ue:if("/"==a){c=ge;break}c=Ce;continue;case de:if(e.scheme=r.scheme,a==i)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query;else if("/"==a||"\\"==a&&Q(e))c=he;else if("?"==a)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",c=ke;else{if("#"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),c=Ce;continue}e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Oe}break;case he:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,c=Ce;continue}c=ge}else c=pe;break;case fe:if(c=pe,"/"!=a||"/"!=h.charAt(u+1))continue;u++;break;case pe:if("/"!=a&&"\\"!=a){c=ge;continue}break;case ge:if("@"==a){p&&(h="%40"+h),p=!0,s=f(h);for(var v=0;v<s.length;v++){var b=s[v];if(":"!=b||m){var y=X(b,Y);m?e.password+=y:e.username+=y}else m=!0}h=""}else if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(p&&""==h)return O;u-=f(h).length+1,h="",c=me}else h+=a;break;case me:case ve:if(n&&"file"==e.scheme){c=we;continue}if(":"!=a||g){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==h)return D;if(n&&""==h&&(J(e)||null!==e.port))return;if(l=V(e,h),l)return l;if(h="",c=xe,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),h+=a}else{if(""==h)return D;if(l=V(e,h),l)return l;if(h="",c=be,n==ve)return}break;case be:if(!I.test(a)){if(a==i||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=h){var _=parseInt(h,10);if(_>65535)return E;e.port=Q(e)&&_===Z[e.scheme]?null:_,h=""}if(n)return;c=xe;continue}return E}h+=a;break;case ye:if(e.scheme="file","/"==a||"\\"==a)c=_e;else{if(!r||"file"!=r.scheme){c=Ce;continue}if(a==i)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==a)e.host=r.host,e.path=r.path.slice(),e.query="",c=ke;else{if("#"!=a){ne(o.slice(u).join(""))||(e.host=r.host,e.path=r.path.slice(),ie(e)),c=Ce;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",c=Oe}}break;case _e:if("/"==a||"\\"==a){c=we;break}r&&"file"==r.scheme&&!ne(o.slice(u).join(""))&&(te(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),c=Ce;continue;case we:if(a==i||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&te(h))c=Ce;else if(""==h){if(e.host="",n)return;c=xe}else{if(l=V(e,h),l)return l;if("localhost"==e.host&&(e.host=""),n)return;h="",c=xe}continue}h+=a;break;case xe:if(Q(e)){if(c=Ce,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=i&&(c=Ce,"/"!=a))continue}else e.fragment="",c=Oe;else e.query="",c=ke;break;case Ce:if(a==i||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(oe(h)?(ie(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):re(h)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==i||"?"==a||"#"==a))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==a?(e.query="",c=ke):"#"==a&&(e.fragment="",c=Oe)}else h+=X(a,K);break;case Se:"?"==a?(e.query="",c=ke):"#"==a?(e.fragment="",c=Oe):a!=i&&(e.path[0]+=X(a,q));break;case ke:n||"#"!=a?a!=i&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":X(a,q)):(e.fragment="",c=Oe);break;case Oe:a!=i&&(e.fragment+=X(a,G));break}u++}},De=function(e){var t,n,i=u(this,De,"URL"),r=arguments.length>1?arguments[1]:void 0,a=String(e),s=x(i,{type:"URL"});if(void 0!==r)if(r instanceof De)t=C(r);else if(n=Me(t={},String(r)),n)throw TypeError(n);if(n=Me(s,a,null,t),n)throw TypeError(n);var l=s.searchParams=new _,c=w(l);c.updateSearchParams(s.query),c.updateURL=function(){s.query=String(l)||null},o||(i.href=Te.call(i),i.origin=Le.call(i),i.protocol=Ie.call(i),i.username=Ae.call(i),i.password=Ne.call(i),i.host=Pe.call(i),i.hostname=Re.call(i),i.port=Fe.call(i),i.pathname=je.call(i),i.search=Be.call(i),i.searchParams=ze.call(i),i.hash=Ve.call(i))},Ee=De.prototype,Te=function(){var e=C(this),t=e.scheme,n=e.username,i=e.password,r=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==r?(c+="//",J(e)&&(c+=n+(i?":"+i:"")+"@"),c+=U(r),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},Le=function(){var e=C(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(i){return"null"}return"file"!=t&&Q(e)?t+"://"+U(e.host)+(null!==n?":"+n:""):"null"},Ie=function(){return C(this).scheme+":"},Ae=function(){return C(this).username},Ne=function(){return C(this).password},Pe=function(){var e=C(this),t=e.host,n=e.port;return null===t?"":null===n?U(t):U(t)+":"+n},Re=function(){var e=C(this).host;return null===e?"":U(e)},Fe=function(){var e=C(this).port;return null===e?"":String(e)},je=function(){var e=C(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Be=function(){var e=C(this).query;return e?"?"+e:""},ze=function(){return C(this).searchParams},Ve=function(){var e=C(this).fragment;return e?"#"+e:""},$e=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&l(Ee,{href:$e(Te,(function(e){var t=C(this),n=String(e),i=Me(t,n);if(i)throw TypeError(i);w(t.searchParams).updateSearchParams(t.query)})),origin:$e(Le),protocol:$e(Ie,(function(e){var t=C(this);Me(t,String(e)+":",ae)})),username:$e(Ae,(function(e){var t=C(this),n=f(String(e));if(!ee(t)){t.username="";for(var i=0;i<n.length;i++)t.username+=X(n[i],Y)}})),password:$e(Ne,(function(e){var t=C(this),n=f(String(e));if(!ee(t)){t.password="";for(var i=0;i<n.length;i++)t.password+=X(n[i],Y)}})),host:$e(Pe,(function(e){var t=C(this);t.cannotBeABaseURL||Me(t,String(e),me)})),hostname:$e(Re,(function(e){var t=C(this);t.cannotBeABaseURL||Me(t,String(e),ve)})),port:$e(Fe,(function(e){var t=C(this);ee(t)||(e=String(e),""==e?t.port=null:Me(t,e,be))})),pathname:$e(je,(function(e){var t=C(this);t.cannotBeABaseURL||(t.path=[],Me(t,e+"",xe))})),search:$e(Be,(function(e){var t=C(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Me(t,e,ke)),w(t.searchParams).updateSearchParams(t.query)})),searchParams:$e(ze),hash:$e(Ve,(function(e){var t=C(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Me(t,e,Oe)):t.fragment=null}))}),c(Ee,"toJSON",(function(){return Te.call(this)}),{enumerable:!0}),c(Ee,"toString",(function(){return Te.call(this)}),{enumerable:!0}),y){var We=y.createObjectURL,He=y.revokeObjectURL;We&&c(De,"createObjectURL",(function(e){return We.apply(y,arguments)})),He&&c(De,"revokeObjectURL",(function(e){return He.apply(y,arguments)}))}m(De,"URL"),r({global:!0,forced:!a,sham:!o},{URL:De})},"2d00":function(e,t,n){var i,r,o=n("da84"),a=n("342f"),s=o.process,l=s&&s.versions,c=l&&l.v8;c?(i=c.split("."),r=i[0]+i[1]):a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=i[1]))),e.exports=r&&+r},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},"35a1":function(e,t,n){var i=n("f5df"),r=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||r[i(e)]}},"37e8":function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("825a"),a=n("df75");e.exports=i?Object.defineProperties:function(e,t){o(e);var n,i=a(t),s=i.length,l=0;while(s>l)r.f(e,n=i[l++],t[n]);return e}},"3bbe":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("69f3"),o=n("7dd0"),a="String Iterator",s=r.set,l=r.getterFor(a);o(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=l(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},"408a":function(e,t,n){var i=n("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=i(e))throw TypeError("Incorrect invocation");return+e}},4160:function(e,t,n){"use strict";var i=n("23e7"),r=n("17c2");i({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"44ad":function(e,t,n){var i=n("d039"),r=n("c6b6"),o="".split;e.exports=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==r(e)?o.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2"),a=i("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},"45fc":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").some,o=n("a640"),a=n("ae40"),s=o("some"),l=a("some");i({target:"Array",proto:!0,forced:!s||!l},{some:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"466d":function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),o=n("50c4"),a=n("1d80"),s=n("8aa5"),l=n("14c3");i("match",1,(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:t[e];return void 0!==i?i.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var a=r(e),c=String(this);if(!a.global)return l(a,c);var u=a.unicode;a.lastIndex=0;var d,h=[],f=0;while(null!==(d=l(a,c))){var p=String(d[0]);h[f]=p,""===p&&(a.lastIndex=s(c,o(a.lastIndex),u)),f++}return 0===f?null:h}]}))},4840:function(e,t,n){var i=n("825a"),r=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},4930:function(e,t,n){var i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())}))},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,o=n("c8d2");i({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,l=n("241c").f,c=n("44e7"),u=n("ad6d"),d=n("9f7f"),h=n("6eeb"),f=n("d039"),p=n("69f3").set,g=n("2626"),m=n("b622"),v=m("match"),b=r.RegExp,y=b.prototype,_=/a/g,w=/a/g,x=new b(_)!==_,C=d.UNSUPPORTED_Y,S=i&&o("RegExp",!x||C||f((function(){return w[v]=!1,b(_)!=_||b(w)==w||"/a/i"!=b(_,"i")})));if(S){var k=function(e,t){var n,i=this instanceof k,r=c(e),o=void 0===t;if(!i&&r&&e.constructor===k&&o)return e;x?r&&!o&&(e=e.source):e instanceof k&&(o&&(t=u.call(e)),e=e.source),C&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(x?new b(e,t):b(e,t),i?this:y,k);return C&&n&&p(s,{sticky:n}),s},O=function(e){e in k||s(k,e,{configurable:!0,get:function(){return b[e]},set:function(t){b[e]=t}})},M=l(b),D=0;while(M.length>D)O(M[D++]);y.constructor=k,k.prototype=y,h(r,"RegExp",k)}g("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d90":function(e,t,n){"use strict";var i=n("23e7"),r=n("0ccb").start,o=n("9a0c");i({target:"String",proto:!0,forced:o},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),a=n("ae40"),s=o("filter"),l=a("filter");i({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("7b0b"),o=n("9bdd"),a=n("e95a"),s=n("50c4"),l=n("8418"),c=n("35a1");e.exports=function(e){var t,n,u,d,h,f,p=r(e),g="function"==typeof this?this:Array,m=arguments.length,v=m>1?arguments[1]:void 0,b=void 0!==v,y=c(p),_=0;if(b&&(v=i(v,m>2?arguments[2]:void 0,2)),void 0==y||g==Array&&a(y))for(t=s(p.length),n=new g(t);t>_;_++)f=b?v(p[_],_):p[_],l(n,_,f);else for(d=y.call(p),h=d.next,n=new g;!(u=h.call(d)).done;_++)f=b?o(d,v,[u.value,_],!0):u.value,l(n,_,f);return n.length=_,n}},"4ec9":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"50c4":function(e,t,n){var i=n("a691"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){"use strict";var i=n("d784"),r=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),l=n("1d80"),c=n("8aa5"),u=n("14c3"),d=Math.max,h=Math.min,f=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};i("replace",2,(function(e,t,n,i){var v=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,b=i.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(n,i){var r=l(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):t.call(String(r),n,i)},function(e,i){if(!v&&b||"string"===typeof i&&-1===i.indexOf(y)){var o=n(t,e,this,i);if(o.done)return o.value}var l=r(e),f=String(this),p="function"===typeof i;p||(i=String(i));var g=l.global;if(g){var w=l.unicode;l.lastIndex=0}var x=[];while(1){var C=u(l,f);if(null===C)break;if(x.push(C),!g)break;var S=String(C[0]);""===S&&(l.lastIndex=c(f,a(l.lastIndex),w))}for(var k="",O=0,M=0;M<x.length;M++){C=x[M];for(var D=String(C[0]),E=d(h(s(C.index),f.length),0),T=[],L=1;L<C.length;L++)T.push(m(C[L]));var I=C.groups;if(p){var A=[D].concat(T,E,f);void 0!==I&&A.push(I);var N=String(i.apply(void 0,A))}else N=_(D,f,E,T,I,i);E>=O&&(k+=f.slice(O,E)+N,O=E+D.length)}return k+f.slice(O)}];function _(e,n,i,r,a,s){var l=i+e.length,c=r.length,u=g;return void 0!==a&&(a=o(a),u=p),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,i);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===r[d-1]?o.charAt(1):r[d-1]+o.charAt(1):t}s=r[u-1]}return void 0===s?"":s}))}}))},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.8.1",mode:i?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var i=n("d066"),r=n("241c"),o=n("7418"),a=n("825a");e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("1d80"),r=n("5899"),o="["+r+"]",a=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),l=function(e){return function(t){var n=String(i(t));return 1&e&&(n=n.replace(a,"")),2&e&&(n=n.replace(s,"")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},"5a34":function(e,t,n){var i=n("44e7");e.exports=function(e){if(i(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5fb2":function(e,t,n){"use strict";var i=2147483647,r=36,o=1,a=26,s=38,l=700,c=72,u=128,d="-",h=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",g=r-o,m=Math.floor,v=String.fromCharCode,b=function(e){var t=[],n=0,i=e.length;while(n<i){var r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&r)<<10)+(1023&o)+65536):(t.push(r),n--)}else t.push(r)}return t},y=function(e){return e+22+75*(e<26)},_=function(e,t,n){var i=0;for(e=n?m(e/l):e>>1,e+=m(e/t);e>g*a>>1;i+=r)e=m(e/g);return m(i+(g+1)*e/(e+s))},w=function(e){var t=[];e=b(e);var n,s,l=e.length,h=u,f=0,g=c;for(n=0;n<e.length;n++)s=e[n],s<128&&t.push(v(s));var w=t.length,x=w;w&&t.push(d);while(x<l){var C=i;for(n=0;n<e.length;n++)s=e[n],s>=h&&s<C&&(C=s);var S=x+1;if(C-h>m((i-f)/S))throw RangeError(p);for(f+=(C-h)*S,h=C,n=0;n<e.length;n++){if(s=e[n],s<h&&++f>i)throw RangeError(p);if(s==h){for(var k=f,O=r;;O+=r){var M=O<=g?o:O>=g+a?a:O-g;if(k<M)break;var D=k-M,E=r-M;t.push(v(y(M+D%E))),k=m(D/E)}t.push(v(y(k))),g=_(f,S,x==w),f=0,++x}}++f,++h}return t.join("")};e.exports=function(e){var t,n,i=[],r=e.toLowerCase().replace(f,".").split(".");for(t=0;t<r.length;t++)n=r[t],i.push(h.test(n)?"xn--"+w(n):n);return i.join(".")}},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),l=n("7b0b"),c=n("44ad"),u=Object.assign,d=Object.defineProperty;e.exports=!u||r((function(){if(i&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=r}))?function(e,t){var n=l(e),r=arguments.length,u=1,d=a.f,h=s.f;while(r>u){var f,p=c(arguments[u++]),g=d?o(p).concat(d(p)):o(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!h.call(p,f)||(n[f]=p[f])}return n}:u},6547:function(e,t,n){var i=n("a691"),r=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("e2cc"),a=n("0366"),s=n("19aa"),l=n("2266"),c=n("7dd0"),u=n("2626"),d=n("83ab"),h=n("f183").fastKey,f=n("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=i&&l(i,e[c],{that:e,AS_ENTRIES:n})})),f=g(t),m=function(e,t,n){var i,r,o=f(e),a=v(e,t);return a?a.value=n:(o.last=a={index:r=h(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=a),i&&(i.next=a),d?o.size++:e.size++,"F"!==r&&(o.index[r]=a)),e},v=function(e,t){var n,i=f(e),r=h(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){var e=this,t=f(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=f(t),i=v(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),d?n.size--:t.size--}return!!i},forEach:function(e){var t,n=f(this),i=a(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&i(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,n){var i=t+" Iterator",r=g(t),o=g(i);c(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),u(t)}}},"65f0":function(e,t,n){var i=n("861d"),r=n("e8b5"),o=n("b622"),a=o("species");e.exports=function(e,t){var n;return r(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)?i(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var i,r,o,a=n("7f9a"),s=n("da84"),l=n("861d"),c=n("9112"),u=n("5135"),d=n("c6cd"),h=n("f772"),f=n("d012"),p=s.WeakMap,g=function(e){return o(e)?r(e):i(e,{})},m=function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(a){var v=d.state||(d.state=new p),b=v.get,y=v.has,_=v.set;i=function(e,t){return t.facade=e,_.call(v,e,t),t},r=function(e){return b.call(v,e)||{}},o=function(e){return y.call(v,e)}}else{var w=h("state");f[w]=!0,i=function(e,t){return t.facade=e,c(e,w,t),t},r=function(e){return u(e,w)?e[w]:{}},o=function(e){return u(e,w)}}e.exports={set:i,get:r,has:o,enforce:g,getterFor:m}},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("f183"),l=n("2266"),c=n("19aa"),u=n("861d"),d=n("d039"),h=n("1c7e"),f=n("d44e"),p=n("7156");e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),v=g?"set":"add",b=r[e],y=b&&b.prototype,_=b,w={},x=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))_=n.getConstructor(t,e,g,v),s.REQUIRED=!0;else if(o(e,!0)){var C=new _,S=C[v](m?{}:-0,1)!=C,k=d((function(){C.has(1)})),O=h((function(e){new b(e)})),M=!m&&d((function(){var e=new b,t=5;while(t--)e[v](t,t);return!e.has(-0)}));O||(_=t((function(t,n){c(t,_,e);var i=p(new b,t,_);return void 0!=n&&l(n,i[v],{that:i,AS_ENTRIES:g}),i})),_.prototype=y,y.constructor=_),(k||M)&&(x("delete"),x("has"),g&&x("get")),(M||S)&&x(v),m&&y.clear&&delete y.clear}return w[e]=_,i({global:!0,forced:_!=b},w),f(_,e),m||n.setStrong(_,e,g),_}},"6eeb":function(e,t,n){var i=n("da84"),r=n("9112"),o=n("5135"),a=n("ce4e"),s=n("8925"),l=n("69f3"),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||r(n,"name",t),l=u(n),l.source||(l.source=d.join("string"==typeof t?t:""))),e!==i?(c?!f&&e[t]&&(h=!0):delete e[t],h?e[t]=n:r(e,t,n)):h?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},7156:function(e,t,n){var i=n("861d"),r=n("d2bb");e.exports=function(e,t,n){var o,a;return r&&"function"==typeof(o=t.constructor)&&o!==n&&i(a=o.prototype)&&a!==n.prototype&&r(e,a),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var i=n("428f"),r=n("5135"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||a(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var i=n("1d80");e.exports=function(e){return Object(i(e))}},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),d=">",h="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}_=i?b(i):y();var e=a.length;while(e--)delete _[f][a[e]];return _()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=_(),void 0===t?n:o(n,t)}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,o=n("44d2"),a=n("ae40"),s="find",l=!0,c=a(s);s in[]&&Array(1)[s]((function(){l=!1})),i({target:"Array",proto:!0,forced:l||!c},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7dd0":function(e,t,n){"use strict";var i=n("23e7"),r=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),l=n("9112"),c=n("6eeb"),u=n("b622"),d=n("c430"),h=n("3f8c"),f=n("ae93"),p=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=u("iterator"),v="keys",b="values",y="entries",_=function(){return this};e.exports=function(e,t,n,u,f,w,x){r(n,t,u);var C,S,k,O=function(e){if(e===f&&L)return L;if(!g&&e in E)return E[e];switch(e){case v:return function(){return new n(this,e)};case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",D=!1,E=e.prototype,T=E[m]||E["@@iterator"]||f&&E[f],L=!g&&T||O(f),I="Array"==t&&E.entries||T;if(I&&(C=o(I.call(new e)),p!==Object.prototype&&C.next&&(d||o(C)===p||(a?a(C,p):"function"!=typeof C[m]&&l(C,m,_)),s(C,M,!0,!0),d&&(h[M]=_))),f==b&&T&&T.name!==b&&(D=!0,L=function(){return T.call(this)}),d&&!x||E[m]===L||l(E,m,L),h[t]=L,f)if(S={values:O(b),keys:w?L:O(v),entries:O(y)},x)for(k in S)(g||D||!(k in E))&&c(E,k,S[k]);else i({target:t,proto:!0,forced:g||D},S);return S}},"7f9a":function(e,t,n){var i=n("da84"),r=n("8925"),o=i.WeakMap;e.exports="function"===typeof o&&/native code/.test(r(o))},"7fd6":function(e,t){e.exports=n("d3f7")},"825a":function(e,t,n){var i=n("861d");e.exports=function(e){if(!i(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){"use strict";var i=n("c04e"),r=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=i(t);a in e?r.f(e,a,o(0,n)):e[a]=n}},"857a":function(e,t,n){var i=n("1d80"),r=/"/g;e.exports=function(e,t,n,o){var a=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(r,"&quot;")+'"'),s+">"+a+"</"+t+">"}},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var i,r,o;(function(n,a){r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,i,r,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||a.exec(f.stack),l=s&&s[1]||!1,c=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),d=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),r=n.replace(i,"$1").trim());for(var h=0;h<d.length;h++){if("interactive"===d[h].readyState)return d[h];if(d[h].src===l)return d[h];if(l===u&&d[h].innerHTML&&d[h].innerHTML.trim()===r)return d[h]}return null}}return e}))},8925:function(e,t,n){var i=n("c6cd"),r=Function.toString;"function"!=typeof i.inspectSource&&(i.inspectSource=function(e){return r.call(e)}),e.exports=i.inspectSource},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"90e3":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){"use strict";var i=n("ad6d"),r=n("9f7f"),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,l=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),c=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],d=l||u||c;d&&(s=function(e){var t,n,r,s,d=this,h=c&&d.sticky,f=i.call(d),p=d.source,g=0,m=e;return h&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),m=String(e).slice(d.lastIndex),d.lastIndex>0&&(!d.multiline||d.multiline&&"\n"!==e[d.lastIndex-1])&&(p="(?: "+p+")",m=" "+m,g++),n=new RegExp("^(?:"+p+")",f)),u&&(n=new RegExp("^"+p+"$(?!\\s)",f)),l&&(t=d.lastIndex),r=o.call(h?n:d,m),h?r?(r.input=r.input.slice(g),r[0]=r[0].slice(g),r.index=d.lastIndex,d.lastIndex+=r[0].length):d.lastIndex=0:l&&r&&(d.lastIndex=d.global?r.index+r[0].length:t),u&&r&&r.length>1&&a.call(r[0],n,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),e.exports=s},"94ca":function(e,t,n){var i=n("d039"),r=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?i(t):!!t)},a=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},9861:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("d066"),o=n("0d3b"),a=n("6eeb"),s=n("e2cc"),l=n("d44e"),c=n("9ed3"),u=n("69f3"),d=n("19aa"),h=n("5135"),f=n("0366"),p=n("f5df"),g=n("825a"),m=n("861d"),v=n("7c73"),b=n("5c6c"),y=n("9a1f"),_=n("35a1"),w=n("b622"),x=r("fetch"),C=r("Headers"),S=w("iterator"),k="URLSearchParams",O=k+"Iterator",M=u.set,D=u.getterFor(k),E=u.getterFor(O),T=/\+/g,L=Array(4),I=function(e){return L[e-1]||(L[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},A=function(e){try{return decodeURIComponent(e)}catch(t){return e}},N=function(e){var t=e.replace(T," "),n=4;try{return decodeURIComponent(t)}catch(i){while(n)t=t.replace(I(n--),A);return t}},P=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},F=function(e){return R[e]},j=function(e){return encodeURIComponent(e).replace(P,F)},B=function(e,t){if(t){var n,i,r=t.split("&"),o=0;while(o<r.length)n=r[o++],n.length&&(i=n.split("="),e.push({key:N(i.shift()),value:N(i.join("="))}))}},z=function(e){this.entries.length=0,B(this.entries,e)},V=function(e,t){if(e<t)throw TypeError("Not enough arguments")},$=c((function(e,t){M(this,{type:O,iterator:y(D(e).entries),kind:t})}),"Iterator",(function(){var e=E(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n})),W=function(){d(this,W,k);var e,t,n,i,r,o,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=this,f=[];if(M(u,{type:k,entries:f,updateURL:function(){},updateSearchParams:z}),void 0!==c)if(m(c))if(e=_(c),"function"===typeof e){t=e.call(c),n=t.next;while(!(i=n.call(t)).done){if(r=y(g(i.value)),o=r.next,(a=o.call(r)).done||(s=o.call(r)).done||!o.call(r).done)throw TypeError("Expected sequence with length 2");f.push({key:a.value+"",value:s.value+""})}}else for(l in c)h(c,l)&&f.push({key:l,value:c[l]+""});else B(f,"string"===typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},H=W.prototype;s(H,{append:function(e,t){V(arguments.length,2);var n=D(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){V(arguments.length,1);var t=D(this),n=t.entries,i=e+"",r=0;while(r<n.length)n[r].key===i?n.splice(r,1):r++;t.updateURL()},get:function(e){V(arguments.length,1);for(var t=D(this).entries,n=e+"",i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){V(arguments.length,1);for(var t=D(this).entries,n=e+"",i=[],r=0;r<t.length;r++)t[r].key===n&&i.push(t[r].value);return i},has:function(e){V(arguments.length,1);var t=D(this).entries,n=e+"",i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){V(arguments.length,1);for(var n,i=D(this),r=i.entries,o=!1,a=e+"",s=t+"",l=0;l<r.length;l++)n=r[l],n.key===a&&(o?r.splice(l--,1):(o=!0,n.value=s));o||r.push({key:a,value:s}),i.updateURL()},sort:function(){var e,t,n,i=D(this),r=i.entries,o=r.slice();for(r.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(r[t].key>e.key){r.splice(t,0,e);break}t===n&&r.push(e)}i.updateURL()},forEach:function(e){var t,n=D(this).entries,i=f(e,arguments.length>1?arguments[1]:void 0,3),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new $(this,"keys")},values:function(){return new $(this,"values")},entries:function(){return new $(this,"entries")}},{enumerable:!0}),a(H,S,H.entries),a(H,"toString",(function(){var e,t=D(this).entries,n=[],i=0;while(i<t.length)e=t[i++],n.push(j(e.key)+"="+j(e.value));return n.join("&")}),{enumerable:!0}),l(W,k),i({global:!0,forced:!o},{URLSearchParams:W}),o||"function"!=typeof x||"function"!=typeof C||i({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,i,r=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,p(n)===k&&(i=t.headers?new C(t.headers):new C,i.has("content-type")||i.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:b(0,String(n)),headers:b(0,i)}))),r.push(t)),x.apply(this,r)}}),e.exports={URLSearchParams:W,getState:D}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("50c4"),c=n("8418"),u=n("65f0"),d=n("1dde"),h=n("b622"),f=n("2d00"),p=h("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",v=f>=51||!r((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),b=d("concat"),y=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:o(e)},_=!v||!b;i({target:"Array",proto:!0,forced:_},{concat:function(e){var t,n,i,r,o,a=s(this),d=u(a,0),h=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?a:arguments[t],y(o)){if(r=l(o.length),h+r>g)throw TypeError(m);for(n=0;n<r;n++,h++)n in o&&c(d,h,o[n])}else{if(h>=g)throw TypeError(m);c(d,h++,o)}return d.length=h,d}})},"9a0c":function(e,t,n){var i=n("342f");e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},"9a1f":function(e,t,n){var i=n("825a"),r=n("35a1");e.exports=function(e){var t=r(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return i(t.call(e))}},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(a){throw r(e),a}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),o=n("825a"),a=n("c04e"),s=Object.defineProperty;t.f=i?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),r)try{return s(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=r(i,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},"9f7f":function(e,t,n){"use strict";var i=n("d039");function r(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=i((function(){var e=r("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=i((function(){var e=r("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("44ad"),o=n("fc6a"),a=n("a640"),s=[].join,l=r!=Object,c=a("join",",");i({target:"Array",proto:!0,forced:l||!c},{join:function(e){return s.call(o(this),void 0===e?",":e)}})},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("23cb"),o=n("a691"),a=n("50c4"),s=n("7b0b"),l=n("65f0"),c=n("8418"),u=n("1dde"),d=n("ae40"),h=u("splice"),f=d("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!h||!f},{splice:function(e,t){var n,i,u,d,h,f,b=s(this),y=a(b.length),_=r(e,y),w=arguments.length;if(0===w?n=i=0:1===w?(n=0,i=y-_):(n=w-2,i=g(p(o(t),0),y-_)),y+n-i>m)throw TypeError(v);for(u=l(b,i),d=0;d<i;d++)h=_+d,h in b&&c(u,d,b[h]);if(u.length=i,n<i){for(d=_;d<y-i;d++)h=d+i,f=d+n,h in b?b[f]=b[h]:delete b[f];for(d=y;d>y-i+n;d--)delete b[d-1]}else if(n>i)for(d=y-i;d>_;d--)h=d+i-1,f=d+n-1,h in b?b[f]=b[h]:delete b[f];for(d=0;d<n;d++)b[d+_]=arguments[d+2];return b.length=y-i+n,u}})},a4d3:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("d066"),a=n("c430"),s=n("83ab"),l=n("4930"),c=n("fdbf"),u=n("d039"),d=n("5135"),h=n("e8b5"),f=n("861d"),p=n("825a"),g=n("7b0b"),m=n("fc6a"),v=n("c04e"),b=n("5c6c"),y=n("7c73"),_=n("df75"),w=n("241c"),x=n("057f"),C=n("7418"),S=n("06cf"),k=n("9bf2"),O=n("d1e7"),M=n("9112"),D=n("6eeb"),E=n("5692"),T=n("f772"),L=n("d012"),I=n("90e3"),A=n("b622"),N=n("e538"),P=n("746f"),R=n("d44e"),F=n("69f3"),j=n("b727").forEach,B=T("hidden"),z="Symbol",V="prototype",$=A("toPrimitive"),W=F.set,H=F.getterFor(z),U=Object[V],q=r.Symbol,G=o("JSON","stringify"),K=S.f,Y=k.f,X=x.f,Z=O.f,Q=E("symbols"),J=E("op-symbols"),ee=E("string-to-symbol-registry"),te=E("symbol-to-string-registry"),ne=E("wks"),ie=r.QObject,re=!ie||!ie[V]||!ie[V].findChild,oe=s&&u((function(){return 7!=y(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=K(U,t);i&&delete U[t],Y(e,t,n),i&&e!==U&&Y(U,t,i)}:Y,ae=function(e,t){var n=Q[e]=y(q[V]);return W(n,{type:z,tag:e,description:t}),s||(n.description=t),n},se=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},le=function(e,t,n){e===U&&le(J,t,n),p(e);var i=v(t,!0);return p(n),d(Q,i)?(n.enumerable?(d(e,B)&&e[B][i]&&(e[B][i]=!1),n=y(n,{enumerable:b(0,!1)})):(d(e,B)||Y(e,B,b(1,{})),e[B][i]=!0),oe(e,i,n)):Y(e,i,n)},ce=function(e,t){p(e);var n=m(t),i=_(n).concat(pe(n));return j(i,(function(t){s&&!de.call(n,t)||le(e,t,n[t])})),e},ue=function(e,t){return void 0===t?y(e):ce(y(e),t)},de=function(e){var t=v(e,!0),n=Z.call(this,t);return!(this===U&&d(Q,t)&&!d(J,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,B)&&this[B][t])||n)},he=function(e,t){var n=m(e),i=v(t,!0);if(n!==U||!d(Q,i)||d(J,i)){var r=K(n,i);return!r||!d(Q,i)||d(n,B)&&n[B][i]||(r.enumerable=!0),r}},fe=function(e){var t=X(m(e)),n=[];return j(t,(function(e){d(Q,e)||d(L,e)||n.push(e)})),n},pe=function(e){var t=e===U,n=X(t?J:m(e)),i=[];return j(n,(function(e){!d(Q,e)||t&&!d(U,e)||i.push(Q[e])})),i};if(l||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=I(e),n=function(e){this===U&&n.call(J,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),oe(this,t,b(1,e))};return s&&re&&oe(U,t,{configurable:!0,set:n}),ae(t,e)},D(q[V],"toString",(function(){return H(this).tag})),D(q,"withoutSetter",(function(e){return ae(I(e),e)})),O.f=de,k.f=le,S.f=he,w.f=x.f=fe,C.f=pe,N.f=function(e){return ae(A(e),e)},s&&(Y(q[V],"description",{configurable:!0,get:function(){return H(this).description}}),a||D(U,"propertyIsEnumerable",de,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),j(_(ne),(function(e){P(e)})),i({target:z,stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(ee,t))return ee[t];var n=q(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!se(e))throw TypeError(e+" is not a symbol");if(d(te,e))return te[e]},useSetter:function(){re=!0},useSimple:function(){re=!1}}),i({target:"Object",stat:!0,forced:!l,sham:!s},{create:ue,defineProperty:le,defineProperties:ce,getOwnPropertyDescriptor:he}),i({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),i({target:"Object",stat:!0,forced:u((function(){C.f(1)}))},{getOwnPropertySymbols:function(e){return C.f(g(e))}}),G){var ge=!l||u((function(){var e=q();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));i({target:"JSON",stat:!0,forced:ge},{stringify:function(e,t,n){var i,r=[e],o=1;while(arguments.length>o)r.push(arguments[o++]);if(i=t,(f(t)||void 0!==e)&&!se(e))return h(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!se(t))return t}),r[1]=t,G.apply(null,r)}})}q[V][$]||M(q[V],$,q[V].valueOf),R(q,z),L[B]=!0},a623:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").every,o=n("a640"),a=n("ae40"),s=o("every"),l=a("every");i({target:"Array",proto:!0,forced:!s||!l},{every:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:a},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("94ca"),a=n("6eeb"),s=n("5135"),l=n("c6b6"),c=n("7156"),u=n("c04e"),d=n("d039"),h=n("7c73"),f=n("241c").f,p=n("06cf").f,g=n("9bf2").f,m=n("58a8").trim,v="Number",b=r[v],y=b.prototype,_=l(h(y))==v,w=function(e){var t,n,i,r,o,a,s,l,c=u(e,!1);if("string"==typeof c&&c.length>2)if(c=m(c),t=c.charCodeAt(0),43===t||45===t){if(n=c.charCodeAt(2),88===n||120===n)return NaN}else if(48===t){switch(c.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=c.slice(2),a=o.length,s=0;s<a;s++)if(l=o.charCodeAt(s),l<48||l>r)return NaN;return parseInt(o,i)}return+c};if(o(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,C=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof C&&(_?d((function(){y.valueOf.call(n)})):l(n)!=v)?c(new b(w(t)),n,C):w(t)},S=i?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),k=0;S.length>k;k++)s(b,x=S[k])&&!s(C,x)&&g(C,x,p(b,x));C.prototype=y,y.constructor=C,a(r,v,C)}},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("5135"),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!r((function(){if(c&&!i)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},ae93:function(e,t,n){"use strict";var i,r,o,a=n("e163"),s=n("9112"),l=n("5135"),c=n("b622"),u=n("c430"),d=c("iterator"),h=!1,f=function(){return this};[].keys&&(o=[].keys(),"next"in o?(r=a(a(o)),r!==Object.prototype&&(i=r)):h=!0),void 0==i&&(i={}),u||l(i,d)||s(i,d,f),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:h}},af03:function(e,t,n){var i=n("d039");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b0c0:function(e,t,n){var i=n("83ab"),r=n("9bf2").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,l="name";i&&!(l in o)&&r(o,l,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},b622:function(e,t,n){var i=n("da84"),r=n("5692"),o=n("5135"),a=n("90e3"),s=n("4930"),l=n("fdbf"),c=r("wks"),u=i.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));i({target:"Object",stat:!0,forced:s},{keys:function(e){return o(r(e))}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("a691"),o=n("408a"),a=n("1148"),s=n("d039"),l=1..toFixed,c=Math.floor,u=function(e,t,n){return 0===t?n:t%2===1?u(e,t-1,n*e):u(e*e,t/2,n)},d=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},h=l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}));i({target:"Number",proto:!0,forced:h},{toFixed:function(e){var t,n,i,s,l=o(this),h=r(e),f=[0,0,0,0,0,0],p="",g="0",m=function(e,t){var n=-1,i=t;while(++n<6)i+=e*f[n],f[n]=i%1e7,i=c(i/1e7)},v=function(e){var t=6,n=0;while(--t>=0)n+=f[t],f[t]=c(n/e),n=n%e*1e7},b=function(){var e=6,t="";while(--e>=0)if(""!==t||0===e||0!==f[e]){var n=String(f[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t};if(h<0||h>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(p="-",l=-l),l>1e-21)if(t=d(l*u(2,69,1))-69,n=t<0?l*u(2,-t,1):l/u(2,t,1),n*=4503599627370496,t=52-t,t>0){m(0,n),i=h;while(i>=7)m(1e7,0),i-=7;m(u(10,i,1),0),i=t-1;while(i>=23)v(1<<23),i-=23;v(1<<i),m(1,1),v(2),g=b()}else m(0,n),m(1<<-t,0),g=b()+a.call("0",h);return h>0?(s=g.length,g=p+(s<=h?"0."+a.call("0",h-s)+g:g.slice(0,s-h)+"."+g.slice(s-h))):g=p+g,g}})},b727:function(e,t,n){var i=n("0366"),r=n("44ad"),o=n("7b0b"),a=n("50c4"),s=n("65f0"),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,g,m,v){for(var b,y,_=o(p),w=r(_),x=i(g,m,3),C=a(w.length),S=0,k=v||s,O=t?k(p,C):n||h?k(p,0):void 0;C>S;S++)if((f||S in w)&&(b=w[S],y=x(b,S,_),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:l.call(O,b)}else switch(e){case 4:return!1;case 7:l.call(O,b)}return d?-1:c||u?u:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterOut:c(7)}},baa5:function(e,t,n){var i=n("23e7"),r=n("e58c");i({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r})},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},c04e:function(e,t,n){var i=n("861d");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("ce4e"),o="__core-js_shared__",a=i[o]||r(o,{});e.exports=a},c7cd:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),o=n("af03");i({target:"String",proto:!0,forced:o("fixed")},{fixed:function(){return r(this,"tt","","")}})},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("d039"),r=n("5899"),o="​…᠎";e.exports=function(e){return i((function(){return!!r[e]()||o[e]()!=o||r[e].name!==e}))}},c975:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").indexOf,o=n("a640"),a=n("ae40"),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:r(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var i=n("5135"),r=n("fc6a"),o=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)!i(a,n)&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,o=n("44d2"),a=n("ae40"),s=a("indexOf",{ACCESSORS:!0,1:0});i({target:"Array",proto:!0,forced:!s},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),o=i.document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},ce4e:function(e,t,n){var i=n("da84"),r=n("9112");e.exports=function(e,t){try{r(i,e,t)}catch(n){i[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("428f"),r=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e])||o(r[e]):i[e]&&i[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d28b:function(e,t,n){var i=n("746f");i("iterator")},d2bb:function(e,t,n){var i=n("825a"),r=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return i(n),r(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d3b7:function(e,t,n){var i=n("00ee"),r=n("6eeb"),o=n("b041");i||r(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var i=n("9bf2").f,r=n("5135"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},d58f:function(e,t,n){var i=n("1c0b"),r=n("7b0b"),o=n("44ad"),a=n("50c4"),s=function(e){return function(t,n,s,l){i(n);var c=r(t),u=o(c),d=a(c.length),h=e?d-1:0,f=e?-1:1;if(s<2)while(1){if(h in u){l=u[h],h+=f;break}if(h+=f,e?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;e?h>=0:d>h;h+=f)h in u&&(l=n(l,u[h],h,c));return l}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var i=n("6eeb"),r=n("d039"),o=n("b622"),a=n("9263"),s=n("9112"),l=o("species"),c=!r((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),u=function(){return"$0"==="a".replace(/./,"$0")}(),d=o("replace"),h=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),f=!r((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var p=o(e),g=!r((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),m=g&&!r((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[l]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!g||!m||"replace"===e&&(!c||!u||h)||"split"===e&&!f){var v=/./[p],b=n(p,""[e],(function(e,t,n,i,r){return t.exec===a?g&&!r?{done:!0,value:v.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),y=b[0],_=b[1];i(String.prototype,e,y),i(RegExp.prototype,p,2==t?function(e,t){return _.call(e,this,t)}:function(e){return _.call(e,this)})}d&&s(RegExp.prototype[p],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),a=n("ae40"),s=o("map"),l=a("map");i({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=a(e),r=s.f,c=o(i),u={},d=0;while(c.length>d)n=r(i,t=c[d++]),void 0!==n&&l(u,t,n);return u}})},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("e260"),a=n("9112"),s=n("b622"),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in r){var h=i[d],f=h&&h.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(g){f[l]=u}if(f[c]||a(f,c,d),r[d])for(var p in o)if(f[p]!==o[p])try{a(f,p,o[p])}catch(g){f[p]=o[p]}}}},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),a=n("5135"),s=n("861d"),l=n("9bf2").f,c=n("e893"),u=o.Symbol;if(r&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof h?new u(e):void 0===e?u():u(e);return""===e&&(d[t]=!0),t};c(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,g="Symbol(test)"==String(u("test")),m=/^Symbol\((.*)\)[^)]+$/;l(f,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:h})}},e163:function(e,t,n){var i=n("5135"),r=n("7b0b"),o=n("f772"),a=n("e177"),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=r(e),i(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("7dd0"),l="Array Iterator",c=a.set,u=a.getterFor(l);e.exports=s(Array,"Array",(function(e,t){c(this,{type:l,target:i(e),index:0,kind:t})}),(function(){var e=u(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:t[i],done:!1}:{value:[i,t[i]],done:!1}}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e2cc:function(e,t,n){var i=n("6eeb");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=r((function(){a(1)})),c=!s||l;i({target:"Object",stat:!0,forced:c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e538:function(e,t,n){var i=n("b622");t.f=i},e58c:function(e,t,n){"use strict";var i=n("fc6a"),r=n("a691"),o=n("50c4"),a=n("a640"),s=n("ae40"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0}),f=u||!d||!h;e.exports=f?function(e){if(u)return c.apply(this,arguments)||0;var t=i(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=l(a,r(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},e893:function(e,t,n){var i=n("5135"),r=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=r(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];i(e,u)||s(e,u,l(t,u))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),o=i("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[o]===e)}},f183:function(e,t,n){var i=n("d012"),r=n("861d"),o=n("5135"),a=n("9bf2").f,s=n("90e3"),l=n("bb2f"),c=s("meta"),u=0,d=Object.isExtensible||function(){return!0},h=function(e){a(e,c,{value:{objectID:"O"+ ++u,weakData:{}}})},f=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,c)){if(!d(e))return"F";if(!t)return"E";h(e)}return e[c].objectID},p=function(e,t){if(!o(e,c)){if(!d(e))return!0;if(!t)return!1;h(e)}return e[c].weakData},g=function(e){return l&&m.REQUIRED&&d(e)&&!o(e,c)&&h(e),e},m=e.exports={REQUIRED:!1,fastKey:f,getWeakData:p,onFreeze:g};i[c]=!0},f5df:function(e,t,n){var i=n("00ee"),r=n("c6b6"),o=n("b622"),a=o("toStringTag"),s="Arguments"==r(function(){return arguments}()),l=function(e,t){try{return e[t]}catch(n){}};e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=l(t=Object(e),a))?n:s?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"VXETable",(function(){return tt})),n.d(t,"Column",(function(){return cn})),n.d(t,"Header",(function(){return gn})),n.d(t,"Body",(function(){return bt})),n.d(t,"Footer",(function(){return _n})),n.d(t,"Filter",(function(){return Sn})),n.d(t,"Loading",(function(){return Mn})),n.d(t,"Grid",(function(){return zn})),n.d(t,"Menu",(function(){return Hn})),n.d(t,"Toolbar",(function(){return Xn})),n.d(t,"Pager",(function(){return Jn})),n.d(t,"Checkbox",(function(){return ii})),n.d(t,"Radio",(function(){return li})),n.d(t,"Input",(function(){return Fi})),n.d(t,"Textarea",(function(){return zi})),n.d(t,"Button",(function(){return Wi})),n.d(t,"ModalController",(function(){return ir})),n.d(t,"Modal",(function(){return ar})),n.d(t,"Tooltip",(function(){return ur})),n.d(t,"Form",(function(){return wr})),n.d(t,"Select",(function(){return Xr})),n.d(t,"Switch",(function(){return eo})),n.d(t,"List",(function(){return io})),n.d(t,"Pulldown",(function(){return ao})),n.d(t,"Edit",(function(){return co})),n.d(t,"Export",(function(){return Qo})),n.d(t,"Keyboard",(function(){return ra})),n.d(t,"Validator",(function(){return la})),n.d(t,"Resize",(function(){return ua})),n.d(t,"Table",(function(){return nn})),"undefined"!==typeof window){var i=window.document.currentScript,r=n("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r});var o=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("1a97"),n("d81d");var a=n("7fd6"),s=n.n(a),l=(n("c975"),"vxe-icon--"),c={zIndex:999,version:0,emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,validConfig:{showMessage:!0,message:"default"},sortConfig:{showIcon:!0},filterConfig:{showIcon:!0},treeConfig:{children:"children",hasChild:"hasChild",indent:20,showIcon:!0},keyboardConfig:{isChecked:!0},expandConfig:{showIcon:!0},editConfig:{showIcon:!0,showAsterisk:!0},importConfig:{modes:["insert","covering"]},exportConfig:{modes:["current","selected"]},mouseConfig:{extension:!0},areaConfig:{selectCellByHeader:!0},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},scrollX:{enabled:!0,gt:60},scrollY:{enabled:!0,gt:100}},export:{types:{}},icon:{TABLE_SORT_ASC:l+"caret-top",TABLE_SORT_DESC:l+"caret-bottom",TABLE_FILTER_NONE:l+"funnel",TABLE_FILTER_MATCH:l+"funnel",TABLE_EDIT:l+"edit-outline",TABLE_HELP:l+"question",TABLE_TREE_LOADED:l+"refresh roll",TABLE_TREE_OPEN:l+"caret-right rotate90",TABLE_TREE_CLOSE:l+"caret-right",TABLE_EXPAND_LOADED:l+"refresh roll",TABLE_EXPAND_OPEN:l+"arrow-right rotate90",TABLE_EXPAND_CLOSE:l+"arrow-right",BUTTON_DROPDOWN:l+"arrow-bottom",BUTTON_LOADING:l+"refresh roll",SELECT_LOADED:l+"refresh roll",SELECT_OPEN:l+"caret-bottom rotate180",SELECT_CLOSE:l+"caret-bottom",PAGER_JUMP_PREV:l+"d-arrow-left",PAGER_JUMP_NEXT:l+"d-arrow-right",PAGER_PREV_PAGE:l+"arrow-left",PAGER_NEXT_PAGE:l+"arrow-right",PAGER_JUMP_MORE:l+"more",INPUT_CLEAR:l+"close",INPUT_PWD:l+"eye-slash",INPUT_SHOW_PWD:l+"eye",INPUT_PREV_NUM:l+"caret-top",INPUT_NEXT_NUM:l+"caret-bottom",INPUT_DATE:l+"calendar",INPUT_SEARCH:l+"search",MODAL_ZOOM_IN:l+"square",MODAL_ZOOM_OUT:l+"zoomout",MODAL_CLOSE:l+"close",MODAL_INFO:l+"info",MODAL_SUCCESS:l+"success",MODAL_WARNING:l+"warning",MODAL_ERROR:l+"error",MODAL_QUESTION:l+"question",MODAL_LOADING:l+"refresh roll",TOOLBAR_TOOLS_REFRESH:l+"refresh",TOOLBAR_TOOLS_REFRESH_LOADING:l+"refresh roll",TOOLBAR_TOOLS_IMPORT:l+"upload",TOOLBAR_TOOLS_EXPORT:l+"download",TOOLBAR_TOOLS_PRINT:l+"print",TOOLBAR_TOOLS_ZOOM_IN:l+"zoomin",TOOLBAR_TOOLS_ZOOM_OUT:l+"zoomout",TOOLBAR_TOOLS_CUSTOM:l+"menu",FORM_PREFIX:l+"info",FORM_SUFFIX:l+"info",FORM_FOLDING:l+"arrow-top rotate180",FORM_UNFOLDING:l+"arrow-top"},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,message:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},tooltip:{trigger:"hover",theme:"dark",leaveDelay:300},pager:{},form:{validConfig:{showMessage:!0,autoPos:!0},titleAsterisk:!0},input:{minDate:new Date(1900,0,1),maxDate:new Date(2100,0,1),startDay:1,selectDay:1,digits:2,controls:!0},textarea:{},select:{multiCharOverflow:8},toolbar:{},button:{},radio:{},checkbox:{},switch:{},modal:{top:15,showHeader:!0,minWidth:340,minHeight:140,lockView:!0,mask:!0,duration:3e3,marginSize:0,dblclickZoom:!0,showTitleOverflow:!0,animat:!0,showClose:!0,storageKey:"VXE_MODAL_POSITION"},list:{scrollY:{enabled:!0,gt:100}},i18n:function(e){return e}},u=c;n("d3b7"),n("ac1f"),n("25f0"),n("5319"),n("1276");function d(e){return s.a.toString(e).replace("_","").toLowerCase()}var h="created,mounted,activated,beforeDestroy,destroyed,event.clearActived,event.clearFilter,event.clearAreas,event.showMenu,event.keydown,event.export,event.import".split(",").map(d),f={},p={mixin:function(e){return s.a.each(e,(function(e,t){return p.add(t,e)})),p},get:function(e){return f[d(e)]||[]},add:function(e,t){if(e=d(e),t&&h.indexOf(e)>-1){var n=f[e];n||(n=f[e]=[]),n.push(t)}return p},delete:function(e,t){var n=f[d(e)];return n&&s.a.remove(n,(function(e){return e===t})),p}},g=p;n("99af"),n("7db0"),n("a15b"),n("b0c0"),n("b680"),n("4160"),n("baa5"),n("a434"),n("c7cd"),n("159b");function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function v(e){if(Array.isArray(e))return m(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("3ca3"),n("ddb0");function b(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n("fb6a");function y(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function _(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function w(e){return v(e)||b(e)||y(e)||_()}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function S(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}var k=function(){function e(){x(this,e),this.store={}}return S(e,[{key:"mixin",value:function(t){return Object.assign(this.store,t),e}},{key:"get",value:function(e){return this.store[e]}},{key:"add",value:function(t,n){return this.store[t]=n,e}},{key:"delete",value:function(t){return delete this.store[t],e}}]),e}(),O=k,M=new O,D=M,E=0,T=1;function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return e?t:0}var I=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.renderHeader,o=i.renderCell,a=i.renderFooter,l=i.renderData;x(this,e);var c=t.$xegrid,u=c?c.proxyOpts:null,d=n.formatter,h=!s.a.isBoolean(n.visible)||n.visible;if(n.cellRender&&n.editRender&&N.warn("vxe.error.errConflicts",["column.cell-render","column.edit-render"]),n.editRender&&"visible"===n.editRender.type&&N.warn("vxe.error.delProp",["column.edit-render.type","column.cell-render"]),n.prop&&N.warn("vxe.error.delProp",["column.prop","column.field"]),n.label&&N.warn("vxe.error.delProp",["column.label","column.title"]),n.class&&N.warn("vxe.error.delProp",["column.class","column.className"]),"index"===n.type?N.warn("vxe.error.delProp",["column.type=index","column.type=seq"]):"selection"===n.type?N.warn("vxe.error.delProp",["column.type=selection","column.type=checkbox"]):"expand"===n.type&&(t.treeConfig&&t.treeOpts.line&&N.error("vxe.error.errConflicts",["tree-config.line","column.type=expand"]),n.slots&&!n.slots.content&&n.slots.default&&N.error("vxe.error.expandContent")),(s.a.isBoolean(n.cellRender)||n.cellRender&&!s.a.isObject(n.cellRender))&&N.warn("vxe.error.errProp",["column.cell-render=".concat(n.cellRender),"column.cell-render={}"]),(s.a.isBoolean(n.editRender)||n.editRender&&!s.a.isObject(n.editRender))&&N.warn("vxe.error.errProp",["column.edit-render=".concat(n.editRender),"column.edit-render={}"]),n.remoteSort&&N.warn("vxe.error.delProp",["column.remote-sort","sort-config.remote"]),n.sortMethod&&N.warn("vxe.error.delProp",["column.sort-method","sort-config.sortMethod"]),n.sortBy&&!s.a.isString(n.sortBy)&&N.warn("vxe.error.errProp",["column.sort-by=".concat(JSON.stringify(n.sortBy)),'column.sort-by="'.concat(n.sortBy[0],'"')]),d)if(s.a.isString(d)){var f=D.get(d);!f&&s.a[d]&&(f=s.a[d],N.warn("vxe.error.errFormat",[d])),s.a.isFunction(f)||N.error("vxe.error.notFunc",[d])}else if(s.a.isArray(d)){var p=D.get(d[0]);!p&&s.a[d[0]]&&(p=s.a[d[0]],N.warn("vxe.error.errFormat",[d[0]])),s.a.isFunction(p)||N.error("vxe.error.notFunc",[d[0]])}Object.assign(this,{type:n.type,prop:n.prop,property:n.field||n.prop,title:n.title,label:n.label,width:n.width,minWidth:n.minWidth,resizable:n.resizable,fixed:n.fixed,align:n.align,headerAlign:n.headerAlign,footerAlign:n.footerAlign,showOverflow:n.showOverflow,showHeaderOverflow:n.showHeaderOverflow,showFooterOverflow:n.showFooterOverflow,className:n.class||n.className,headerClassName:n.headerClassName,footerClassName:n.footerClassName,indexMethod:n.indexMethod,seqMethod:n.seqMethod,formatter:d,sortable:n.sortable,sortBy:n.sortBy,sortType:n.sortType,sortMethod:n.sortMethod,remoteSort:n.remoteSort,filters:N.getFilters(n.filters),filterMultiple:!s.a.isBoolean(n.filterMultiple)||n.filterMultiple,filterMethod:n.filterMethod,filterResetMethod:n.filterResetMethod,filterRecoverMethod:n.filterRecoverMethod,filterRender:n.filterRender,treeNode:n.treeNode,cellType:n.cellType,cellRender:n.cellRender,editRender:n.editRender,contentRender:n.contentRender,exportMethod:n.exportMethod,footerExportMethod:n.footerExportMethod,titleHelp:n.titleHelp,params:n.params,id:n.colId||s.a.uniqueId("col_"),parentId:null,visible:h,halfVisible:!1,defaultVisible:h,checked:!1,halfChecked:!1,disabled:!1,level:1,rowSpan:1,colSpan:1,order:null,sortTime:0,renderWidth:0,renderHeight:0,resizeWidth:0,renderLeft:0,renderArgs:[],model:{},renderHeader:r||n.renderHeader,renderCell:o||n.renderCell,renderFooter:a||n.renderFooter,renderData:l,slots:n.slots,_own:n}),u&&u.beforeColumn&&u.beforeColumn({$grid:c,column:this})}return S(e,[{key:"getTitle",value:function(){return N.getFuncText(this.title||this.label||("seq"===this.type||"index"===this.type?u.i18n("vxe.table.seqTitle"):""))}},{key:"getKey",value:function(){return this.property||(this.type?"type=".concat(this.type):null)}},{key:"getMinWidth",value:function(){var e=this.type,t=this.filters,n=this.sortable,i=this.remoteSort,r=this.sortOpts,o=this.editRender,a=this.editOpts,s=this.titleHelp;return 40+L("checkbox"===e||"selection"===e,18)+L(s,18)+L(t)+L((n||i)&&r.showIcon)+L(o&&a.showIcon,32)}},{key:"update",value:function(e,t){"filters"!==e&&(this[e]=t,"field"===e&&(this.property=t))}},{key:"own",get:function(){return console.warn('[vxe-table] This is an internal attribute "column.own". Please pay attention to locking the version number to avoid errors caused by upgrade.'),this._own}}]),e}();function A(e){return function(t,n){var i=N.getLog(t,n);return console[e](i),i}}var N={warn:A("warn"),error:A("error"),getLog:function(e,t){return"[vxe-table] ".concat(u.i18n(e,t))},getFuncText:function(e){return s.a.isFunction(e)?e():u.translate?u.translate(e):e},nextZIndex:function(){return T=u.zIndex+E++,T},getLastZIndex:function(){return T},getRowkey:function(e){return e.rowId||"_XID"},getRowid:function(e,t){var n=s.a.get(t,N.getRowkey(e));return s.a.eqNull(n)?"":encodeURIComponent(n)},getColumnList:function(e){var t=[];return e.forEach((function(e){t.push.apply(t,w(e.children&&e.children.length?N.getColumnList(e.children):[e]))})),t},getClass:function(e,t){return e?s.a.isFunction(e)?e(t):e:""},getFilters:function(e){return e&&s.a.isArray(e)?e.map((function(e){var t=e.label,n=e.value,i=e.data,r=e.resetValue,o=e.checked;return{label:t,value:n,data:i,resetValue:r,checked:!!o,_checked:!!o}})):e},formatText:function(e,t){return""+(""===e||null===e||void 0===e?t?u.emptyCell:"":e)},getCellValue:function(e,t){return s.a.get(e,t.property)},setCellValue:function(e,t,n){return s.a.set(e,t.property,n)},isColumn:function(e){return e instanceof I},getColumnConfig:function(e,t,n){return N.isColumn(t)?t:new I(e,t,n)},assemColumn:function(e){var t=e.$el,n=e.$xetable,i=e.$xecolumn,r=e.columnConfig,o=i?i.columnConfig:null;r.slots=e.$scopedSlots,o?("vxe-table-column"===i.$options._componentTag?N.warn("vxe.error.groupTag",["<vxe-table-colgroup title=".concat(i.title," ...>"),"<vxe-table-column title=".concat(i.title," ...>")]):"vxe-column"===i.$options._componentTag&&N.warn("vxe.error.groupTag",["<vxe-colgroup title=".concat(i.title," ...>"),"<vxe-column title=".concat(i.title," ...>")]),o.children||(o.children=[]),o.children.splice([].indexOf.call(i.$el.children,t),0,r)):n.collectColumn.splice([].indexOf.call(n.$refs.hideColumn.children,t),0,r)},destroyColumn:function(e){var t=e.$xetable,n=e.columnConfig,i=s.a.findTree(t.collectColumn,(function(e){return e===n}));i&&i.items.splice(i.index,1)},hasChildrenList:function(e){return e&&e.children&&e.children.length>0},getColMinWidth:function(e){var t=e.$table,n=e.column,i=t.showHeaderOverflow,r=t.resizableOpts,o=t.sortOpts,a=t.filterOpts,l=t.editOpts,c=n.type,u=n.showHeaderOverflow,d=n.filters,h=n.sortable,f=n.remoteSort,p=n.titleHelp,g=n.editRender,m=r.minWidth;if(m){var v=s.a.isFunction(m)?m(e):m;if("auto"!==v)return Math.max(1,s.a.toNumber(v))}var b=s.a.isUndefined(u)||s.a.isNull(u)?i:u,y="ellipsis"===b,_="title"===b,w=!0===b||"tooltip"===b,x=_||w||y,C=40;return x&&(C+=L("checkbox"===c||"selection"===c,18)+L(p,18)+L(d&&a.showIcon)+L((h||f)&&o.showIcon)+L(N.isEnableConf(g)&&l.showIcon,32)),C},parseFile:function(e){var t=e.name,n=s.a.lastIndexOf(t,"."),i=t.substring(n+1,t.length),r=t.substring(0,n);return{filename:r,type:i}},isNumVal:function(e){return!isNaN(parseFloat(""+e))},isEnableConf:function(e){return e&&!1!==e.enabled},eqEmptyValue:function(e){return""===e||s.a.eqNull(e)}},P=N,R=(n("4d63"),n("466d"),s.a.browse()),F=R.isDoc?document.querySelector("html"):0,j=R.isDoc?document.body:0,B={};function z(e){return B[e]||(B[e]=new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g")),B[e]}function V(e,t,n){if(e){var i=e.parentNode;if(n.top+=e.offsetTop,n.left+=e.offsetLeft,i&&i!==F&&i!==j&&(n.top-=i.scrollTop,n.left-=i.scrollLeft),(!t||e!==t&&e.offsetParent!==t)&&e.offsetParent)return V(e.offsetParent,t,n)}return n}var $={browse:R,isPx:function(e){return e&&/^\d+(px)?$/.test(e)},isScale:function(e){return e&&/^\d+%$/.test(e)},hasClass:function(e,t){return e&&e.className&&e.className.match&&e.className.match(z(t))},removeClass:function(e,t){e&&$.hasClass(e,t)&&(e.className=e.className.replace(z(t),""))},addClass:function(e,t){e&&!$.hasClass(e,t)&&($.removeClass(e,t),e.className="".concat(e.className," ").concat(t))},updateCellTitle:function(e,t){var n="html"===t.type?e.innerText:e.textContent;e.getAttribute("title")!==n&&e.setAttribute("title",n)},rowToVisible:function(e,t){var n=e.$refs.tableBody.$el,i=n.querySelector('[data-rowid="'.concat(P.getRowid(e,t),'"]'));if(i){var r=n.clientHeight,o=n.scrollTop,a=i.offsetTop+(i.offsetParent?i.offsetParent.offsetTop:0),s=i.clientHeight;if(a<o||a>o+r)return e.scrollTo(null,a);if(a+s>=r+o)return e.scrollTo(null,o+s)}else if(e.scrollYLoad)return e.scrollTo(null,(e.afterFullData.indexOf(t)-1)*e.scrollYStore.rowHeight);return Promise.resolve()},colToVisible:function(e,t){var n=e.$refs.tableBody.$el,i=n.querySelector(".".concat(t.id));if(i){var r=n.clientWidth,o=n.scrollLeft,a=i.offsetLeft+(i.offsetParent?i.offsetParent.offsetLeft:0),s=i.clientWidth;if(a<o||a>o+r)return e.scrollTo(a);if(a+s>=r+o)return e.scrollTo(o+s)}else if(e.scrollXLoad){for(var l=e.visibleColumn,c=0,u=0;u<l.length;u++){if(l[u]===t)break;c+=l[u].renderWidth}return e.scrollTo(c)}return Promise.resolve()},getDomNode:function(){var e=document.documentElement,t=document.body;return{scrollTop:e.scrollTop||t.scrollTop,scrollLeft:e.scrollLeft||t.scrollLeft,visibleHeight:e.clientHeight||t.clientHeight,visibleWidth:e.clientWidth||t.clientWidth}},getEventTargetNode:function(e,t,n,i){var r,o=e.target;while(o&&o.nodeType&&o!==document){if(n&&$.hasClass(o,n)&&(!i||i(o)))r=o;else if(o===t)return{flag:!n||!!r,container:t,targetElem:r};o=o.parentNode}return{flag:!1}},getOffsetPos:function(e,t){return V(e,t,{left:0,top:0})},getAbsolutePos:function(e){var t=e.getBoundingClientRect(),n=t.top,i=t.left,r=$.getDomNode(),o=r.scrollTop,a=r.scrollLeft,s=r.visibleHeight,l=r.visibleWidth;return{boundingTop:n,top:o+n,boundingLeft:i,left:a+i,visibleHeight:s,visibleWidth:l}},getCellNodeIndex:function(e){var t=e.parentNode,n=s.a.arrayIndexOf(t.children,e),i=s.a.arrayIndexOf(t.parentNode.children,t);return{columnIndex:n,rowIndex:i}},getRowNodes:function(e,t,n){for(var i=t.columnIndex,r=t.rowIndex,o=n.columnIndex,a=n.rowIndex,s=[],l=Math.min(r,a),c=Math.max(r,a);l<=c;l++){for(var u=[],d=e[l],h=Math.min(i,o),f=Math.max(i,o);h<=f;h++){var p=d.children[h];u.push(p)}s.push(u)}return s},getCellIndexs:function(e){var t=e.parentNode,n=t.getAttribute("data-rowid"),i=[].indexOf.call(t.children,e),r=[].indexOf.call(t.parentNode.children,t);return{rowid:n,rowIndex:r,columnIndex:i}},toView:function(e){var t="scrollIntoViewIfNeeded",n="scrollIntoView";e&&(e[t]?e[t]():e[n]&&e[n]())},triggerEvent:function(e,t){var n;"function"===typeof Event?n=new Event(t):(n=document.createEvent("Event"),n.initEvent(t,!0,!0)),e.dispatchEvent(n)},calcHeight:function(e,t){var n=e[t],i=0;return n&&("auto"===n?i=e.parentHeight:(i=$.isScale(n)?Math.floor(parseInt(n)/100*e.parentHeight):s.a.toNumber(n),i-=e.getExcludeHeight())),i}},W=$,H=W.browse,U=H.firefox?"DOMMouseScroll":"mousewheel",q=[],G={on:function(e,t,n){n&&q.push({comp:e,type:t,cb:n})},off:function(e,t){s.a.remove(q,(function(n){return n.comp===e&&n.type===t}))},trigger:function(e){var t=e.type===U;q.forEach((function(n){var i=n.comp,r=n.type,o=n.cb;(r===e.type||t&&"mousewheel"===r)&&o.call(i,e)}))},eqKeypad:function(e,t){var n=e.key;return t.toLowerCase()===n.toLowerCase()}};H.isDoc&&(H.msie||(document.addEventListener("copy",G.trigger,!1),document.addEventListener("cut",G.trigger,!1),document.addEventListener("paste",G.trigger,!1)),document.addEventListener("keydown",G.trigger,!1),document.addEventListener("contextmenu",G.trigger,!1),window.addEventListener("mousedown",G.trigger,!1),window.addEventListener("blur",G.trigger,!1),window.addEventListener("resize",G.trigger,!1),window.addEventListener(U,s.a.throttle(G.trigger,100,{leading:!0,trailing:!1}),!1));n("45fc");var K,Y=[],X=500;function Z(){Y.length&&(Y.forEach((function(e){e.tarList.forEach((function(t){var n=t.target,i=t.width,r=t.heighe,o=n.clientWidth,a=n.clientHeight,s=o&&i!==o,l=a&&r!==a;(s||l)&&(t.width=o,t.heighe=a,requestAnimationFrame(e.callback))}))})),Q())}function Q(){clearTimeout(K),K=setTimeout(Z,u.resizeInterval||X)}var J=function(){function e(t){x(this,e),this.tarList=[],this.callback=t}return S(e,[{key:"observe",value:function(e){var t=this;e&&(this.tarList.some((function(t){return t.target===e}))||this.tarList.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),Y.length||Q(),Y.some((function(e){return e===t}))||Y.push(this))}},{key:"unobserve",value:function(e){s.a.remove(Y,(function(t){return t.tarList.some((function(t){return t.target===e}))}))}},{key:"disconnect",value:function(){var e=this;s.a.remove(Y,(function(t){return t===e}))}}]),e}(),ee=W.browse.isDoc&&window.ResizeObserver||J,te=["input","textarea","$input","$textarea"],ne={transfer:!0};function ie(e){return null===e||void 0===e||""===e}function re(e){return te.indexOf(e.name)>-1?"input":"change"}function oe(e,t){return e&&t.valueFormat?s.a.toStringDate(e,t.valueFormat):e}function ae(e,t,n){var i=t.dateConfig,r=void 0===i?{}:i;return s.a.toDateString(oe(e,t),r.labelFormat||n)}function se(e,t){return ae(e,t,u.i18n("vxe.input.date.labelFormat.".concat(t.type)))}function le(e){var t=e.name;return"vxe-".concat(t.replace("$",""))}function ce(e,t,n){var i=e.$panel;i.changeOption({},t,n)}function ue(e){var t=e.name,n=e.attrs;return"input"===t&&(n=Object.assign({type:"text"},n)),n}function de(e,t,n,i){var r=t.$table.vSize;return s.a.assign(r?{size:r}:{},ne,i,e.props,{value:n})}function he(e,t,n,i){var r=t.$form.vSize;return s.a.assign(r?{size:r}:{},ne,i,e.props,{value:n})}function fe(e,t,n,i){var r=t.placeholder;return[e("span",{class:"vxe-cell--label"},r&&ie(i)?[e("span",{class:"vxe-cell--placeholder"},N.formatText(N.getFuncText(r),1))]:N.formatText(i,1))]}function pe(e,t){var n=e.nativeEvents,i={};return s.a.objectEach(n,(function(e,n){i[n]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(void 0,[t].concat(i))}})),i}function ge(e,t,n,i){var r=e.events,o="input",a=re(e),l=a===o,c={};return s.a.objectEach(r,(function(e,n){c[n]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(void 0,[t].concat(i))}})),n&&(c[o]=function(e){n(e),r&&r[o]&&r[o](t,e),l&&i&&i(e)}),!l&&i&&(c[a]=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];i.apply(void 0,n),r&&r[a]&&r[a].apply(r,[t].concat(n))}),c}function me(e,t){var n=t.$table,i=t.row,r=t.column;return ge(e,t,(function(e){s.a.set(i,r.property,e)}),(function(){n.updateStatus(t)}))}function ve(e,t,n){return ge(e,t,(function(e){n.data=e}),(function(){ce(t,!s.a.eqNull(n.data),n)}))}function be(e,t){var n=t.$form,i=t.data,r=t.property;return ge(e,t,(function(e){s.a.set(i,r,e)}),(function(){n.updateStatus(t)}))}function ye(e,t){return e.immediate||"visible"===e.type||"cell"===t.$type}function _e(e,t){var n=t.$table,i=t.row,r=t.column,o=r.model;return ge(e,t,(function(n){var a=n.target.value;ye(e,t)?N.setCellValue(i,r,a):(o.update=!0,o.value=a)}),(function(e){var i=e.target.value;n.updateStatus(t,i)}))}function we(e,t,n){return ge(e,t,(function(e){n.data=e.target.value}),(function(){ce(t,!s.a.eqNull(n.data),n)}))}function xe(e,t){var n=t.$form,i=t.data,r=t.property;return ge(e,t,(function(e){var t=e.target.value;s.a.set(i,r,t)}),(function(){n.updateStatus(t)}))}function Ce(e,t,n){var i=n.row,r=n.column,o=t.name,a=ue(t),s=ye(t,n)?N.getCellValue(i,r):r.model.value;return[e(o,{class:"vxe-default-".concat(o),attrs:a,domProps:{value:s},on:_e(t,n)})]}function Se(e,t,n){var i=n.row,r=n.column,o=N.getCellValue(i,r);return[e(le(t),{props:de(t,n,o),on:me(t,n),nativeOn:pe(t,n)})]}function ke(e,t,n){return[e("vxe-button",{props:de(t,n),on:ge(t,n),nativeOn:pe(t,n)})]}function Oe(e,t,n){return t.children.map((function(t){return ke(e,t,n)[0]}))}function Me(e,t,n,i){var r=t.optionGroups,o=t.optionGroupProps,a=void 0===o?{}:o,s=a.options||"options",l=a.label||"label";return r.map((function(r,o){return e("optgroup",{key:o,domProps:{label:r[l]}},i(e,r[s],t,n))}))}function De(e,t,n,i){var r=n.optionProps,o=void 0===r?{}:r,a=i.row,s=i.column,l=o.label||"label",c=o.value||"value",u=o.disabled||"disabled",d=ye(n,i)?N.getCellValue(a,s):s.model.value;return t.map((function(t,n){return e("option",{key:n,attrs:{value:t[c],disabled:t[u]},domProps:{selected:t[c]==d}},t[l])}))}function Ee(e,t,n){var i=n.column,r=t.name,o=ue(t);return i.filters.map((function(i,a){return e(r,{key:a,class:"vxe-default-".concat(r),attrs:o,domProps:{value:i.data},on:we(t,n,i)})}))}function Te(e,t,n){var i=n.column;return i.filters.map((function(i,r){var o=i.data;return e(le(t),{key:r,props:de(t,t,o),on:ve(t,n,i)})}))}function Le(e){var t=e.option,n=e.row,i=e.column,r=t.data,o=s.a.get(n,i.property);return o==r}function Ie(e,t,n){return[e("select",{class:"vxe-default-select",attrs:ue(t),on:_e(t,n)},t.optionGroups?Me(e,t,n,De):De(e,t.options,t,n))]}function Ae(e,t,n){var i=n.row,r=n.column,o=t.options,a=t.optionProps,s=t.optionGroups,l=t.optionGroupProps,c=N.getCellValue(i,r);return[e(le(t),{props:de(t,n,c,{options:o,optionProps:a,optionGroups:s,optionGroupProps:l}),on:me(t,n)})]}function Ne(e,t){var n,i=t.row,r=t.column,o=e.props,a=void 0===o?{}:o,l=e.options,c=e.optionGroups,u=e.optionProps,d=void 0===u?{}:u,h=e.optionGroupProps,f=void 0===h?{}:h,p=s.a.get(i,r.property),g=d.label||"label",m=d.value||"value";return ie(p)?null:s.a.map(a.multiple?p:[p],c?function(e){for(var t=f.options||"options",i=0;i<c.length;i++)if(n=s.a.find(c[i][t],(function(t){return t[m]==e})),n)break;return n?n[g]:e}:function(e){return n=s.a.find(l,(function(t){return t[m]==e})),n?n[g]:e}).join(", ")}function Pe(e,t,n){var i=n.data,r=n.property,o=t.name,a=ue(t),l=s.a.get(i,r);return[e(o,{class:"vxe-default-".concat(o),attrs:a,domProps:!a||"input"!==o||"submit"!==a.type&&"reset"!==a.type?{value:l}:null,on:xe(t,n)})]}function Re(e,t,n){var i=n.data,r=n.property,o=s.a.get(i,r);return[e(le(t),{props:he(t,n,o),on:be(t,n),nativeOn:pe(t,n)})]}function Fe(e,t,n){return[e("vxe-button",{props:he(t,n),on:ge(t,n),nativeOn:pe(t,n)})]}function je(e,t,n){return t.children.map((function(t){return Fe(e,t,n)[0]}))}function Be(e,t,n,i){var r=i.data,o=i.property,a=n.optionProps,l=void 0===a?{}:a,c=l.label||"label",u=l.value||"value",d=l.disabled||"disabled",h=s.a.get(r,o);return t.map((function(t,n){return e("option",{key:n,attrs:{value:t[u],disabled:t[d]},domProps:{selected:t[u]==h}},t[c])}))}function ze(e){var t=e.row,n=e.column,i=e.options;return i.original?N.getCellValue(t,n):Ne(n.editRender||n.cellRender,e)}function Ve(e,t,n){var i=t.options,r=t.optionProps,o=void 0===r?{}:r,a=n.data,l=n.property,c=o.label||"label",u=o.value||"value",d=o.disabled||"disabled",h=s.a.get(a,l),f=le(t);return i?[e("".concat(f,"-group"),{props:he(t,n,h),on:be(t,n),nativeOn:pe(t,n)},i.map((function(t,n){return e(f,{key:n,props:{label:t[u],content:t[c],disabled:t[d]}})})))]:[e(f,{props:he(t,n,h),on:be(t,n),nativeOn:pe(t,n)})]}var $e={input:{autofocus:"input",renderEdit:Ce,renderDefault:Ce,renderFilter:Ee,filterMethod:Le,renderItemContent:Pe},textarea:{autofocus:"textarea",renderEdit:Ce,renderItemContent:Pe},select:{renderEdit:Ie,renderDefault:Ie,renderCell:function(e,t,n){return fe(e,t,n,Ne(t,n))},renderFilter:function(e,t,n){var i=n.column;return i.filters.map((function(i,r){return e("select",{key:r,class:"vxe-default-select",attrs:ue(t),on:we(t,n,i)},t.optionGroups?Me(e,t,n,De):De(e,t.options,t,n))}))},filterMethod:Le,renderItemContent:function(e,t,n){return[e("select",{class:"vxe-default-select",attrs:ue(t),on:xe(t,n)},t.optionGroups?Me(e,t,n,Be):Be(e,t.options,t,n))]},cellExportMethod:ze},$input:{autofocus:".vxe-input--inner",renderEdit:Se,renderCell:function(e,t,n){var i=t.props,r=void 0===i?{}:i,o=n.row,a=n.column,l=r.digits||u.input.digits,c=s.a.get(o,a.property);if(c)switch(r.type){case"date":case"week":case"month":case"year":c=se(c,r);break;case"float":c=s.a.toFixed(s.a.floor(c,l),l);break}return fe(e,t,n,c)},renderDefault:Se,renderFilter:Te,filterMethod:Le,renderItemContent:Re},$textarea:{autofocus:".vxe-textarea--inner",renderItemContent:Re},$button:{renderDefault:ke,renderItemContent:Fe},$buttons:{renderDefault:Oe,renderItemContent:je},$select:{autofocus:".vxe-input--inner",renderEdit:Ae,renderDefault:Ae,renderCell:function(e,t,n){return fe(e,t,n,Ne(t,n))},renderFilter:function(e,t,n){var i=n.column,r=t.options,o=t.optionProps,a=t.optionGroups,s=t.optionGroupProps,l=pe(t,n);return i.filters.map((function(i,c){var u=i.data;return e(le(t),{key:c,props:de(t,n,u,{options:r,optionProps:o,optionGroups:a,optionGroupProps:s}),on:ve(t,n,i),nativeOn:l})}))},filterMethod:Le,renderItemContent:function(e,t,n){var i=n.data,r=n.property,o=t.options,a=t.optionProps,l=t.optionGroups,c=t.optionGroupProps,u=s.a.get(i,r);return[e(le(t),{props:he(t,n,u,{options:o,optionProps:a,optionGroups:l,optionGroupProps:c}),on:be(t,n),nativeOn:pe(t,n)})]},cellExportMethod:ze},$radio:{autofocus:".vxe-radio--input",renderItemContent:Ve},$checkbox:{autofocus:".vxe-checkbox--input",renderItemContent:Ve},$switch:{autofocus:".vxe-switch--button",renderEdit:Se,renderDefault:Se,renderItemContent:Re}},We={mixin:function(e){return s.a.each(e,(function(e,t){return We.add(t,e)})),We},get:function(e){return $e[e]||null},add:function(e,t){if(e&&t){var n=$e[e];n?Object.assign(n,t):$e[e]=t}return We},delete:function(e){return delete $e[e],We}},He=We,Ue=new O,qe=Ue,Ge=new O,Ke=Ge;function Ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!e.menu||e.menuConfig||e.contextMenu||(e.contextMenu=e.menu,e.menuConfig=e.menu,console.warn('[vxe-table] parameter "menu" has been replaced by "menuConfig"')),s.a.merge(u,e)}var Xe=Ye,Ze=[];function Qe(e,t){return e&&e.install&&-1===Ze.indexOf(e)&&(e.install(tt,t),Ze.push(e)),tt}function Je(e){tt.Table&&N.error("vxe.error.useErr",[e]),tt["_".concat(e)]=1}function et(e,t){return e?s.a.toValueString(u.translate?u.translate(e,t):e):""}var tt={t:function(e,t){return u.i18n(e,t)},_t:et,v:"v2",reg:Je,use:Qe,types:{},setup:Xe,interceptor:g,renderer:He,commands:qe,formats:D,menus:Ke};function nt(e,t){var n=[];return s.a.objectEach(e,(function(e,i){0!==e&&e!==t||n.push(i)})),n}Object.defineProperty(tt,"buttons",{get:function(){return N.warn("vxe.error.delProp",["buttons","commands"]),qe}}),Object.defineProperty(tt,"zIndex",{get:N.getLastZIndex}),Object.defineProperty(tt,"nextZIndex",{get:N.nextZIndex}),Object.defineProperty(tt,"exportTypes",{get:function(){return nt(u.export.types,1)}}),Object.defineProperty(tt,"importTypes",{get:function(){return nt(u.export.types,2)}});var it=tt;n("a623"),n("4ec9"),n("a9e3");function rt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ot,at="body";function st(e){return e._isResize||e.lastScrollTime&&Date.now()<e.lastScrollTime+e.delayHover}function lt(e,t){var n=t.$table,i=e[n.treeOpts.children],r=1;if(n.isTreeExpandByRow(e))for(var o=0;o<i.length;o++)r+=lt(i[o],t);return r}function ct(e){switch(e.vSize){case"mini":return 3;case"small":return 2;case"medium":return 1}return 0}function ut(e,t){var n=e.$table,i=e.$rowIndex,r=1;return i&&(r=lt(t[i-1],e)),n.rowHeight*r-(i?1:12-ct(n))}function dt(e,t,n,i,r,o){var a=o.column,s=n.treeOpts,l=n.treeConfig;return a.slots&&a.slots.line?a.slots.line.call(n,o,e):a.treeNode&&l&&s.line?[e("div",{class:"vxe-tree--line-wrapper"},[e("div",{class:"vxe-tree--line",style:{height:"".concat(ut(o,r),"px"),left:"".concat(i*s.indent+(i?2-ct(n):0)+16,"px")}})])]:[]}function ht(e,t){return e("div",{class:"vxe-table-".concat(t,"ed-borders"),ref:"".concat(t,"Borders")},[e("span",{class:"vxe-table-border-top",ref:"".concat(t,"Top")}),e("span",{class:"vxe-table-border-right",ref:"".concat(t,"Right")}),e("span",{class:"vxe-table-border-bottom",ref:"".concat(t,"Bottom")}),e("span",{class:"vxe-table-border-left",ref:"".concat(t,"Left")})])}function ft(e,t,n){for(var i=0;i<e.length;i++){var r=e[i],o=r.row,a=r.col,s=r.rowspan,l=r.colspan;if(a>-1&&o>-1&&s&&l){if(o===t&&a===n)return{rowspan:s,colspan:l};if(t>=o&&t<o+s&&n>=a&&n<a+l)return{rowspan:0,colspan:0}}}}function pt(e,t,n,i,r,o,a,l,c,u,d,h,f,p,g,m){var v,b,y=n._e,_=n.$listeners,w=n.afterFullData,x=n.tableData,C=n.height,S=n.columnKey,k=n.overflowX,O=n.scrollXLoad,M=n.scrollYLoad,D=n.highlightCurrentRow,E=n.showOverflow,T=n.align,L=n.currentColumn,I=n.cellClassName,A=n.cellStyle,P=n.mergeList,R=n.spanMethod,F=n.radioOpts,j=n.checkboxOpts,B=n.expandOpts,z=n.treeOpts,V=n.tooltipOpts,W=n.mouseConfig,H=n.editConfig,U=n.editOpts,q=n.editRules,G=n.validOpts,K=n.editStore,Y=n.validStore,X=f.cellRender,Z=f.editRender,Q=f.align,J=f.showOverflow,ee=f.className,te=f.treeNode,ne=K.actived,ie=V.showAll||V.enabled,re=n.getColumnIndex(f),oe=n.getVTColumnIndex(f),ae=N.isEnableConf(Z),se=a?f.fixed!==a:f.fixed&&k,le=s.a.isUndefined(J)||s.a.isNull(J)?E:J,ce="ellipsis"===le,ue="title"===le,de=!0===le||"tooltip"===le,he=ue||de||ce,fe={},pe=Q||T,ge=Y.row===c&&Y.column===f,me=q&&G.showMessage&&("default"===G.message?C||x.length>1:"inline"===G.message),ve={"data-colid":f.id},be=_["cell-mouseenter"],ye=_["cell-mouseleave"],_e=Z&&H&&"dblclick"===U.trigger,we={$table:n,$seq:i,seq:r,rowid:o,row:c,rowIndex:u,$rowIndex:d,_rowIndex:h,column:f,columnIndex:re,$columnIndex:p,_columnIndex:oe,fixed:a,type:at,isHidden:se,level:l,visibleData:w,data:x,items:m};if(!O&&!M||he||(ce=he=!0),(ue||de||ie||be)&&(fe.mouseenter=function(e){st(n)||(ue?$.updateCellTitle(e.currentTarget,f):(de||ie)&&n.triggerBodyTooltipEvent(e,we),be&&n.emitEvent("cell-mouseenter",Object.assign({cell:e.currentTarget},we),e))}),(de||ie||ye)&&(fe.mouseleave=function(e){st(n)||((de||ie)&&n.handleTargetLeaveEvent(e),ye&&n.emitEvent("cell-mouseleave",Object.assign({cell:e.currentTarget},we),e))}),(j.range||W)&&(fe.mousedown=function(e){n.triggerCellMousedownEvent(e,we)}),(D||W||_["cell-click"]||Z&&H||"row"===B.trigger||"cell"===B.trigger||"row"===F.trigger||"radio"===f.type&&"cell"===F.trigger||"row"===j.trigger||("checkbox"===f.type||"selection"===f.type)&&"cell"===j.trigger||"row"===z.trigger||f.treeNode&&"cell"===z.trigger)&&(fe.click=function(e){n.triggerCellClickEvent(e,we)}),(_e||_["cell-dblclick"])&&(fe.dblclick=function(e){n.triggerCellDBLClickEvent(e,we)}),P.length){var xe=ft(P,h,oe);if(xe){var Ce=xe.rowspan,Se=xe.colspan;if(!Ce||!Se)return null;Ce>1&&(ve.rowspan=Ce),Se>1&&(ve.colspan=Se)}}else if(R){var ke=R(we)||{},Oe=ke.rowspan,Me=void 0===Oe?1:Oe,De=ke.colspan,Ee=void 0===De?1:De;if(!Me||!Ee)return null;Me>1&&(ve.rowspan=Me),Ee>1&&(ve.colspan=Ee)}se&&P&&(ve.colspan>1||ve.rowspan>1)&&(se=!1),!se&&H&&(Z||X)&&(U.showStatus||U.showUpdateStatus)&&(b=n.isUpdateByRow(c,f.property));var Te="seq"===f.type||"index"===f.type?"seq":f.type;return e("td",{class:["vxe-body--column",f.id,(v={},rt(v,"col--".concat(pe),pe),rt(v,"col--".concat(Te),Te),rt(v,"col--last",p===g.length-1),rt(v,"col--tree-node",te),rt(v,"col--edit",ae),rt(v,"col--ellipsis",he),rt(v,"fixed--hidden",se),rt(v,"col--dirty",b),rt(v,"col--actived",H&&ae&&ne.row===c&&(ne.column===f||"row"===U.mode)),rt(v,"col--valid-error",ge),rt(v,"col--current",L===f),v),N.getClass(ee,we),N.getClass(I,we)],key:S?f.id:p,attrs:ve,style:A?s.a.isFunction(A)?A(we):A:null,on:fe},E&&se?[e("div",{class:["vxe-cell",{"c--title":ue,"c--tooltip":de,"c--ellipsis":ce}]})]:dt(e,t,n,l,m,we).concat([e("div",{class:["vxe-cell",{"c--title":ue,"c--tooltip":de,"c--ellipsis":ce}],attrs:{title:ue?n.getCellLabel(c,f):null}},f.renderCell(e,we)),me?ge?e("div",{class:"vxe-cell--valid",style:Y.rule&&Y.rule.maxWidth?{width:"".concat(Y.rule.maxWidth,"px")}:null},[e("span",{class:"vxe-cell--valid-msg"},Y.content)]):y():null]))}function gt(e,t,n,i,r,o,a,l){var c=n.stripe,u=n.rowKey,d=n.highlightHoverRow,h=n.rowClassName,f=n.rowStyle,p=n.showOverflow,g=n.treeConfig,m=n.treeOpts,v=n.treeExpandeds,b=n.scrollYLoad,y=n.scrollYStore,_=n.editStore,x=n.rowExpandeds,C=n.radioOpts,S=n.checkboxOpts,k=n.expandColumn,O=[];return a.forEach((function(M,D){var E={},T=D,L=T+1;b&&(L+=y.startIndex);var I=n.getVTRowIndex(M);T=n.getRowIndex(M),d&&(E.mouseenter=function(e){st(n)||n.triggerHoverEvent(e,{row:M,rowIndex:T})},E.mouseleave=function(){st(n)||n.clearHoverRow()});var A=N.getRowid(n,M),P={$table:n,$seq:i,seq:L,rowid:A,fixed:o,type:at,level:r,row:M,rowIndex:T,$rowIndex:D};if(O.push(e("tr",{class:["vxe-body--row",{"row--stripe":c&&(n.getVTRowIndex(M)+1)%2===0,"is--new":_.insertList.indexOf(M)>-1,"row--radio":C.highlight&&n.selectRow===M,"row--checked":S.highlight&&n.isCheckedByCheckboxRow(M)},h?s.a.isFunction(h)?h(P):h:""],attrs:{"data-rowid":A},style:f?s.a.isFunction(f)?f(P):f:null,key:u||g?A:D,on:E},l.map((function(s,c){return pt(e,t,n,i,L,A,o,r,M,T,D,I,s,c,l,a)})))),k&&x.length&&x.indexOf(M)>-1){var R,F=n.getColumnIndex(k);g&&(R={paddingLeft:"".concat(r*m.indent+30,"px")});var j=k.showOverflow,B=s.a.isUndefined(j)||s.a.isNull(j)?p:j,z={$table:n,$seq:i,seq:L,column:k,columnIndex:F,fixed:o,type:at,level:r,row:M,rowIndex:T,$rowIndex:D};O.push(e("tr",{class:"vxe-body--expanded-row",key:"expand_".concat(A),style:f?s.a.isFunction(f)?f(z):f:null,on:E},[e("td",{class:["vxe-body--expanded-column",{"fixed--hidden":o,"col--ellipsis":B}],attrs:{colspan:l.length}},[e("div",{class:"vxe-body--expanded-cell",style:R},[k.renderData(e,z)])])]))}if(g&&v.length){var V=M[m.children];V&&V.length&&v.indexOf(M)>-1&&O.push.apply(O,w(gt(e,t,n,i?"".concat(i,".").concat(L):"".concat(L),r+1,o,V,l)))}})),O}function mt(e,t,n){(t||n)&&(t&&(t.onscroll=null,t.scrollTop=e),n&&(n.onscroll=null,n.scrollTop=e),clearTimeout(ot),ot=setTimeout((function(){t&&(t.onscroll=t._onscroll),n&&(n.onscroll=n._onscroll)}),300))}var vt={name:"VxeTableBody",props:{tableData:Array,tableColumn:Array,visibleColumn:Array,fixedColumn:Array,size:String,fixedType:String,isGroup:Boolean},mounted:function(){var e=this.$parent,t=this.$el,n=this.$refs,i=this.fixedType,r=e.elemStore,o="".concat(i||"main","-body-");r["".concat(o,"wrapper")]=t,r["".concat(o,"table")]=n.table,r["".concat(o,"colgroup")]=n.colgroup,r["".concat(o,"list")]=n.tbody,r["".concat(o,"xSpace")]=n.xSpace,r["".concat(o,"ySpace")]=n.ySpace,r["".concat(o,"emptyBlock")]=n.emptyBlock,this.$el.onscroll=this.scrollEvent,this.$el._onscroll=this.scrollEvent},beforeDestroy:function(){this.$el._onscroll=null,this.$el.onscroll=null},render:function(e){var t,n=this._e,i=this.$parent,r=this.fixedColumn,o=this.fixedType,a=i.$scopedSlots,s=i.tId,l=i.tableData,c=i.tableColumn,d=i.showOverflow,h=i.mergeList,f=i.spanMethod,p=i.scrollXLoad,g=i.mouseConfig,m=i.mouseOpts,v=i.emptyRender,b=i.emptyOpts,y=i.keyboardConfig,_=i.keyboardOpts,w=g&&m.checked;if(h.length||f||y&&_.isMerge||(o&&d||p&&o)&&(c=r),a.empty)t=a.empty.call(this,{$table:i},e);else{var x=v?it.renderer.get(b.name):null;t=x&&x.renderEmpty?x.renderEmpty.call(this,e,b,{$table:i},{$table:i}):i.emptyText||u.i18n("vxe.table.emptyText")}return e("div",{class:["vxe-table--body-wrapper",o?"fixed-".concat(o,"--wrapper"):"body--wrapper"],attrs:{"data-tid":s}},[o?n():e("div",{class:"vxe-body--x-space",ref:"xSpace"}),e("div",{class:"vxe-body--y-space",ref:"ySpace"}),e("table",{class:"vxe-table--body",attrs:{"data-tid":s,cellspacing:0,cellpadding:0,border:0},ref:"table"},[e("colgroup",{ref:"colgroup"},c.map((function(t,n){return e("col",{attrs:{name:t.id},key:n})}))),e("tbody",{ref:"tbody"},gt(e,this,i,"",0,o,l,c))]),o||!w&&!_.isCut?null:e("div",{class:"vxe-table--borders"},[w?ht(e,"check"):null,_.isCut?ht(e,"copy"):null]),e("div",{class:"vxe-table--checkbox-range"}),g&&m.area?e("div",{class:"vxe-table--cell-area"},[e("span",{class:"vxe-table--cell-main-area"},m.extension?[e("span",{class:"vxe-table--cell-main-area-btn",on:{mousedown:function(e){i.triggerCellExtendMousedownEvent(e,{$table:i,fixed:o,type:at})}}})]:null),e("span",{class:"vxe-table--cell-copy-area"}),e("span",{class:"vxe-table--cell-extend-area"}),e("span",{class:"vxe-table--cell-multi-area"}),e("span",{class:"vxe-table--cell-active-area"})]):null,o?null:e("div",{class:"vxe-table--empty-block",ref:"emptyBlock"},[e("div",{class:"vxe-table--empty-content"},t)])])},methods:{scrollEvent:function(e){var t=this.$el,n=this.$parent,i=this.fixedType,r=n.$refs,o=n.highlightHoverRow,a=n.scrollXLoad,s=n.scrollYLoad,l=n.lastScrollTop,c=n.lastScrollLeft,u=r.tableHeader,d=r.tableBody,h=r.leftBody,f=r.rightBody,p=r.tableFooter,g=r.validTip,m=u?u.$el:null,v=p?p.$el:null,b=d.$el,y=h?h.$el:null,_=f?f.$el:null,w=t.scrollTop,x=b.scrollLeft,C=x!==c,S=w!==l;n.lastScrollTop=w,n.lastScrollLeft=x,n.lastScrollTime=Date.now(),o&&n.clearHoverRow(),y&&"left"===i?(w=y.scrollTop,mt(w,b,_)):_&&"right"===i?(w=_.scrollTop,mt(w,b,y)):(C&&(m&&(m.scrollLeft=b.scrollLeft),v&&(v.scrollLeft=b.scrollLeft)),(y||_)&&(n.checkScrolling(),S&&mt(w,y,_))),a&&C&&(n.triggerScrollXEvent(e),m&&x+b.clientWidth>=b.scrollWidth-80&&this.$nextTick((function(){b.scrollLeft!==m.scrollLeft&&(m.scrollLeft=b.scrollLeft)}))),s&&S&&n.triggerScrollYEvent(e),C&&g&&g.visible&&g.updatePlacement(),n.emitEvent("scroll",{type:at,fixed:i,scrollTop:w,scrollLeft:x,isX:C,isY:S},e)}},install:function(e){e.component(vt.name,vt)}},bt=vt,yt=vt;n("4de4"),n("13d5"),n("b64b"),n("498a");function _t(e,t){var n=t.$table,i=t.column,r=i.titleHelp;return r?[e("i",{class:["vxe-cell-help-icon",r.icon||u.icon.TABLE_HELP],on:{mouseenter:function(e){n.triggerHeaderHelpEvent(e,t)},mouseleave:function(e){n.handleTargetLeaveEvent(e)}}})]:[]}function wt(e,t,n){var i=t.$table,r=t.column,o=r.showHeaderOverflow,a=i.showHeaderOverflow,l=i.tooltipOpts,c=l.showAll||l.enabled,u=s.a.isUndefined(o)||s.a.isNull(o)?a:o,d="title"===u,h=!0===u||"tooltip"===u,f={};return(d||h||c)&&(f.mouseenter=function(e){i._isResize||(d?$.updateCellTitle(e.currentTarget,r):(h||c)&&i.triggerHeaderTooltipEvent(e,t))}),(h||c)&&(f.mouseleave=function(e){i._isResize||(h||c)&&i.handleTargetLeaveEvent(e)}),[e("span",{class:"vxe-cell--title",on:f},n)]}function xt(e,t){var n=t.$table,i=t.column,r=t._columnIndex,o=t.items,a=i.slots,s=i.editRender,l=i.cellRender,c=s||l;if(a&&a.footer)return a.footer.call(n,t,e);if(c){var u=it.renderer.get(c.name);if(u&&u.renderFooter)return u.renderFooter.call(n,e,c,t,{$grid:n.$xegrid,$excel:n.$parent,$table:n})}return[N.formatText(o[r],1)]}function Ct(e){var t=e.$table,n=e.row,i=e.column;return N.formatText(t.getCellLabel(n,i),1)}var St={createColumn:function(e,t){var n=t.type,i=t.sortable,r=t.remoteSort,o=t.filters,a=t.editRender,s=t.treeNode,l=e.editConfig,c=e.editOpts,u=e.checkboxOpts,d={renderHeader:this.renderDefaultHeader,renderCell:s?this.renderTreeCell:this.renderDefaultCell,renderFooter:this.renderDefaultFooter};switch(n){case"seq":case"index":d.renderHeader=this.renderIndexHeader,d.renderCell=s?this.renderTreeIndexCell:this.renderIndexCell;break;case"radio":d.renderHeader=this.renderRadioHeader,d.renderCell=s?this.renderTreeRadioCell:this.renderRadioCell;break;case"checkbox":case"selection":d.renderHeader=this.renderSelectionHeader,d.renderCell=u.checkField?s?this.renderTreeSelectionCellByProp:this.renderSelectionCellByProp:s?this.renderTreeSelectionCell:this.renderSelectionCell;break;case"expand":d.renderCell=this.renderExpandCell,d.renderData=this.renderExpandData;break;case"html":d.renderCell=s?this.renderTreeHTMLCell:this.renderHTMLCell,o&&(i||r)?d.renderHeader=this.renderSortAndFilterHeader:i||r?d.renderHeader=this.renderSortHeader:o&&(d.renderHeader=this.renderFilterHeader);break;default:l&&a?(d.renderHeader=this.renderEditHeader,d.renderCell="cell"===c.mode?s?this.renderTreeCellEdit:this.renderCellEdit:s?this.renderTreeRowEdit:this.renderRowEdit):o&&(i||r)?d.renderHeader=this.renderSortAndFilterHeader:i||r?d.renderHeader=this.renderSortHeader:o&&(d.renderHeader=this.renderFilterHeader)}return N.getColumnConfig(e,t,d)},renderHeaderTitle:function(e,t){var n=t.$table,i=t.column,r=i.slots,o=i.editRender,a=i.cellRender,s=o||a;if(r&&r.header)return wt(e,t,r.header.call(n,t,e));if(s){var l=it.renderer.get(s.name);if(l&&l.renderHeader)return wt(e,t,l.renderHeader.call(n,e,s,t,{$grid:n.$xegrid,$excel:n.$parent,$table:n}))}return wt(e,t,N.formatText(i.getTitle(),1))},renderDefaultHeader:function(e,t){return _t(e,t).concat(St.renderHeaderTitle(e,t))},renderDefaultCell:function(e,t){var n=t.$table,i=t.row,r=t.column,o=r.slots,a=r.editRender,l=r.cellRender,c=a||l;if(o&&o.default)return o.default.call(n,t,e);if(c){var u=a?"renderCell":"renderDefault",d=it.renderer.get(c.name);if(d&&d[u])return d[u].call(n,e,c,Object.assign({$type:a?"edit":"cell",isEdit:!!a},t),{$type:a?"edit":"cell",$grid:n.$xegrid,$excel:n.$parent,$table:n})}var h=n.getCellLabel(i,r),f=a?a.placeholder:"";return[e("span",{class:"vxe-cell--label"},a&&(""===h||s.a.eqNull(h))?[e("span",{class:"vxe-cell--placeholder"},N.formatText(N.getFuncText(f),1))]:N.formatText(h,1))]},renderTreeCell:function(e,t){return St.renderTreeIcon(e,t,St.renderDefaultCell.call(this,e,t))},renderDefaultFooter:function(e,t){return[e("span",{class:"vxe-cell--item"},xt(e,t))]},renderTreeIcon:function(e,t,n){var i=t.$table,r=t.isHidden,o=i.treeOpts,a=i.treeExpandeds,s=i.treeLazyLoadeds,l=t.row,c=t.column,d=t.level,h=c.slots,f=o.children,p=o.hasChild,g=o.indent,m=o.lazy,v=o.trigger,b=o.iconLoaded,y=o.showIcon,_=o.iconOpen,w=o.iconClose,x=l[f],C=!1,S=!1,k=!1,O={};return h&&h.icon?h.icon.call(i,t,e,n):(r||(S=a.indexOf(l)>-1,m&&(k=s.indexOf(l)>-1,C=l[p])),v&&"default"!==v||(O.click=function(e){return i.triggerTreeExpandEvent(e,t)}),[e("div",{class:["vxe-cell--tree-node",{"is--active":S}],style:{paddingLeft:"".concat(d*g,"px")}},[y&&(x&&x.length||C)?[e("div",{class:"vxe-tree--btn-wrapper",on:O},[e("i",{class:["vxe-tree--node-btn",k?b||u.icon.TABLE_TREE_LOADED:S?_||u.icon.TABLE_TREE_OPEN:w||u.icon.TABLE_TREE_CLOSE]})])]:null,e("div",{class:"vxe-tree-cell"},n)])])},renderIndexHeader:function(e,t){var n=t.$table,i=t.column,r=i.slots;return wt(e,t,r&&r.header?r.header.call(n,t,e):N.formatText(i.getTitle(),1))},renderIndexCell:function(e,t){var n=t.$table,i=t.column,r=n.seqOpts,o=n.startIndex,a=i.slots;if(a&&a.default)return a.default.call(n,t,e);var s=t.$seq,l=t.seq,c=t.level,u=r.seqMethod||i.seqMethod||i.indexMethod;return[N.formatText(u?u(t):c?"".concat(s,".").concat(l):(r.startIndex||o)+l,1)]},renderTreeIndexCell:function(e,t){return St.renderTreeIcon(e,t,St.renderIndexCell(e,t))},renderRadioHeader:function(e,t){var n=t.$table,i=t.column,r=i.slots;return wt(e,t,r&&r.header?r.header.call(n,t,e):[e("span",{class:"vxe-radio--label"},N.formatText(i.getTitle(),1))])},renderRadioCell:function(e,t){var n,i=t.$table,r=t.column,o=t.isHidden,a=i.radioOpts,l=i.selectRow,c=r.slots,u=a.labelField,d=a.checkMethod,h=t.row,f=h===l,p=!!d;return o||(n={click:function(e){p||i.triggerRadioRowEvent(e,t)}},d&&(p=!d(t))),[e("span",{class:["vxe-cell--radio",{"is--checked":f,"is--disabled":p}],on:n},[e("span",{class:"vxe-radio--icon vxe-radio--checked-icon"}),e("span",{class:"vxe-radio--icon vxe-radio--unchecked-icon"})].concat(c&&c.default?c.default.call(i,t,e):u?[e("span",{class:"vxe-radio--label"},s.a.get(h,u))]:[]))]},renderTreeRadioCell:function(e,t){return St.renderTreeIcon(e,t,St.renderRadioCell(e,t))},renderSelectionHeader:function(e,t){var n,i=t.$table,r=t.column,o=t.isHidden,a=i.isIndeterminate,s=i.isAllCheckboxDisabled,l=r.slots,c=r.title,d=r.label,h=i.checkboxOpts,f=c||d,p=!1;return(h.checkStrictly?h.showHeader:!1!==h.showHeader)?(o||(p=!s&&i.isAllSelected,n={click:function(e){s||i.triggerCheckAllEvent(e,!p)}}),wt(e,t,[e("span",{class:["vxe-cell--checkbox",{"is--checked":p,"is--disabled":s,"is--indeterminate":a}],attrs:{title:u.i18n("vxe.table.allTitle")},on:n},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"})].concat(l&&l.header?l.header.call(i,t,e):f?[e("span",{class:"vxe-checkbox--label"},f)]:[]))])):wt(e,t,l&&l.header?l.header.call(i,t,e):[e("span",{class:"vxe-checkbox--label"},f)])},renderSelectionCell:function(e,t){var n,i=t.$table,r=t.row,o=t.column,a=t.isHidden,l=i.treeConfig,c=i.treeIndeterminates,u=i.checkboxOpts,d=u.labelField,h=u.checkMethod,f=o.slots,p=!1,g=!1,m=!!h;return a||(g=i.selection.indexOf(r)>-1,n={click:function(e){m||i.triggerCheckRowEvent(e,t,!g)}},h&&(m=!h(t)),l&&(p=c.indexOf(r)>-1)),[e("span",{class:["vxe-cell--checkbox",{"is--checked":g,"is--disabled":m,"is--indeterminate":p}],on:n},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"})].concat(f&&f.default?f.default.call(i,t,e):d?[e("span",{class:"vxe-checkbox--label"},s.a.get(r,d))]:[]))]},renderTreeSelectionCell:function(e,t){return St.renderTreeIcon(e,t,St.renderSelectionCell(e,t))},renderSelectionCellByProp:function(e,t){var n,i=t.$table,r=t.row,o=t.column,a=t.isHidden,l=i.treeConfig,c=i.treeIndeterminates,u=i.checkboxOpts,d=u.labelField,h=u.checkField,f=u.halfField,p=u.checkMethod,g=o.slots,m=!1,v=!1,b=!!p;return a||(v=s.a.get(r,h),n={click:function(e){b||i.triggerCheckRowEvent(e,t,!v)}},p&&(b=!p(t)),l&&(m=c.indexOf(r)>-1)),[e("span",{class:["vxe-cell--checkbox",{"is--checked":v,"is--disabled":b,"is--indeterminate":f&&!v?r[f]:m}],on:n},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"})].concat(g&&g.default?g.default.call(i,t,e):d?[e("span",{class:"vxe-checkbox--label"},s.a.get(r,d))]:[]))]},renderTreeSelectionCellByProp:function(e,t){return St.renderTreeIcon(e,t,St.renderSelectionCellByProp(e,t))},renderExpandCell:function(e,t){var n=t.$table,i=t.isHidden,r=t.row,o=t.column,a=n.expandOpts,l=n.rowExpandeds,c=n.expandLazyLoadeds,d=a.lazy,h=a.labelField,f=a.iconLoaded,p=a.showIcon,g=a.iconOpen,m=a.iconClose,v=a.visibleMethod,b=o.slots,y=!1,_=!1;return b&&b.icon?b.icon.call(n,t,e):(i||(y=l.indexOf(t.row)>-1,d&&(_=c.indexOf(r)>-1)),[!p||v&&!v(t)?null:e("span",{class:["vxe-table--expanded",{"is--active":y}],on:{click:function(e){n.triggerRowExpandEvent(e,t)}}},[e("i",{class:["vxe-table--expand-btn",_?f||u.icon.TABLE_EXPAND_LOADED:y?g||u.icon.TABLE_EXPAND_OPEN:m||u.icon.TABLE_EXPAND_CLOSE]})]),b&&b.default||h?e("span",{class:"vxe-table--expand-label"},b.default?b.default.call(n,t,e):s.a.get(r,h)):null])},renderExpandData:function(e,t){var n=t.$table,i=t.column,r=i.slots,o=i.contentRender;if(r){if(r.content)return r.content.call(n,t,e);if(r.default)return r.default.call(n,t,e)}if(o){var a=it.renderer.get(o.name);if(a&&a.renderExpand)return a.renderExpand.call(n,e,o,t,{$grid:n.$xegrid,$table:n})}return[]},renderHTMLCell:function(e,t){var n=t.$table,i=t.column,r=i.slots;return r&&r.default?r.default.call(n,t,e):[e("span",{class:"vxe-cell--html",domProps:{innerHTML:Ct(t)}})]},renderTreeHTMLCell:function(e,t){return St.renderTreeIcon(e,t,St.renderHTMLCell(e,t))},renderSortAndFilterHeader:function(e,t){return St.renderDefaultHeader(e,t).concat(St.renderSortIcon(e,t)).concat(St.renderFilterIcon(e,t))},renderSortHeader:function(e,t){return St.renderDefaultHeader(e,t).concat(St.renderSortIcon(e,t))},renderSortIcon:function(e,t){var n=t.$table,i=t.column,r=n.sortOpts,o=r.showIcon,a=r.iconAsc,s=r.iconDesc;return o?[e("span",{class:"vxe-cell--sort"},[e("i",{class:["vxe-sort--asc-btn",a||u.icon.TABLE_SORT_ASC,{"sort--active":"asc"===i.order}],attrs:{title:u.i18n("vxe.table.sortAsc")},on:{click:function(e){n.triggerSortEvent(e,i,"asc")}}}),e("i",{class:["vxe-sort--desc-btn",s||u.icon.TABLE_SORT_DESC,{"sort--active":"desc"===i.order}],attrs:{title:u.i18n("vxe.table.sortDesc")},on:{click:function(e){n.triggerSortEvent(e,i,"desc")}}})])]:[]},renderFilterHeader:function(e,t){return St.renderDefaultHeader(e,t).concat(St.renderFilterIcon(e,t))},renderFilterIcon:function(e,t){var n=t.$table,i=t.column,r=t.hasFilter,o=n.filterStore,a=n.filterOpts,s=a.showIcon,l=a.iconNone,c=a.iconMatch;return s?[e("span",{class:["vxe-cell--filter",{"is--active":o.visible&&o.column===i}]},[e("i",{class:["vxe-filter--btn",r?c||u.icon.TABLE_FILTER_MATCH:l||u.icon.TABLE_FILTER_NONE],attrs:{title:u.i18n("vxe.table.filter")},on:{click:function(e){n.triggerFilterEvent(e,t.column,t)}}})])]:[]},renderEditHeader:function(e,t){var n,i=t.$table,r=t.column,o=i.editRules,a=i.editOpts,l=r.sortable,c=r.remoteSort,d=r.editRender,h=r.filters;if(o){var f=s.a.get(o,t.column.property);f&&(n=f.some((function(e){return e.required})))}return[n&&a.showAsterisk?e("i",{class:"vxe-cell--required-icon"}):null,N.isEnableConf(d)&&a.showIcon?e("i",{class:["vxe-cell--edit-icon",a.icon||u.icon.TABLE_EDIT]}):null].concat(St.renderDefaultHeader(e,t)).concat(l||c?St.renderSortIcon(e,t):[]).concat(h?St.renderFilterIcon(e,t):[])},renderRowEdit:function(e,t){var n=t.$table,i=t.column,r=i.editRender,o=n.editStore.actived;return St.runRenderer(e,t,this,N.isEnableConf(r)&&o&&o.row===t.row)},renderTreeRowEdit:function(e,t){return St.renderTreeIcon(e,t,St.renderRowEdit(e,t))},renderCellEdit:function(e,t){var n=t.$table,i=t.column,r=i.editRender,o=n.editStore.actived;return St.runRenderer(e,t,this,N.isEnableConf(r)&&o&&o.row===t.row&&o.column===t.column)},renderTreeCellEdit:function(e,t){return St.renderTreeIcon(e,t,St.renderCellEdit(e,t))},runRenderer:function(e,t,n,i){var r=t.$table,o=t.column,a=o.slots,s=o.editRender,l=o.formatter,c=it.renderer.get(s.name);return"visible"===s.type||i?a&&a.edit?a.edit.call(r,t,e):c&&c.renderEdit?c.renderEdit.call(r,e,s,Object.assign({$type:"edit",isEdit:!0},t),{$type:"edit",$grid:r.$xegrid,$excel:r.$parent,$table:r}):[]:a&&a.default?a.default.call(r,t,e):l?[e("span",{class:"vxe-cell--label"},[Ct(t)])]:St.renderDefaultCell.call(n,e,t)}},kt=St,Ot=kt,Mt=N.getRowid,Dt=N.getRowkey,Et=N.setCellValue,Tt=N.hasChildrenList,Lt=$.browse,It=$.calcHeight,At=$.hasClass,Nt=$.addClass,Pt=$.removeClass,Rt=$.getEventTargetNode,Ft=Lt["-webkit"]&&!Lt.edge,jt=Lt.msie?40:20,Bt="VXE_TABLE_CUSTOM_COLUMN_WIDTH",zt="VXE_TABLE_CUSTOM_COLUMN_VISIBLE";function Vt(){return s.a.uniqueId("row_")}function $t(e){return""===e||s.a.eqNull(e)}function Wt(e,t,n){var i=s.a.get(e,n),r=s.a.get(t,n);return!(!$t(i)||!$t(r))||(s.a.isString(i)||s.a.isNumber(i)?i==r:s.a.isEqual(i,r))}function Ht(e,t){var n=e.sortOpts.orders,i=t.order||null,r=n.indexOf(i)+1;return n[r<n.length?r:0]}function Ut(e){var t=u.version,n=s.a.toStringJSON(localStorage.getItem(e));return n&&n._v===t?n:{_v:t}}function qt(e,t){var n=e.fullAllDataRowMap;return t.filter((function(e){return n.has(e)}))}function Gt(e,t){var n=e.fullDataRowIdData,i=[];return s.a.each(t,(function(e,t){n[t]&&-1===i.indexOf(n[t].row)&&i.push(n[t].row)})),i}function Kt(e,t,n,i){if(t){var r=e.treeConfig,o=e.visibleColumn;if(r)throw new Error(N.getLog("vxe.error.noTree",["merge-footer-items"]));s.a.isArray(t)||(t=[t]),t.forEach((function(e){var t=e.row,r=e.col,a=e.rowspan,l=e.colspan;if(i&&s.a.isNumber(t)&&(t=i[t]),s.a.isNumber(r)&&(r=o[r]),(i?t:s.a.isNumber(t))&&r&&(a||l)&&(a=s.a.toNumber(a)||1,l=s.a.toNumber(l)||1,a>1||l>1)){var c=s.a.findIndexOf(n,(function(e){return e._row===t&&e._col===r})),u=n[c];if(u)u.rowspan=a,u.colspan=l,u._rowspan=a,u._colspan=l;else{var d=i?i.indexOf(t):t,h=o.indexOf(r);n.push({row:d,col:h,rowspan:a,colspan:l,_row:t,_col:r,_rowspan:a,_colspan:l})}}}))}}function Yt(e,t,n,i){var r=[];if(t){var o=e.treeConfig,a=e.visibleColumn;if(o)throw new Error(N.getLog("vxe.error.noTree",["merge-cells"]));s.a.isArray(t)||(t=[t]),t.forEach((function(e){var t=e.row,o=e.col;i&&s.a.isNumber(t)&&(t=i[t]),s.a.isNumber(o)&&(o=a[o]);var l=s.a.findIndexOf(n,(function(e){return e._row===t&&e._col===o}));if(l>-1){var c=n.splice(l,1);r.push(c[0])}}))}return r}function Xt(e,t){var n=t.sortBy,i=t.sortType;return n&&s.a.isArray(n)?n:function(r){var o;return o=n?s.a.isFunction(n)?n({row:r,column:t}):s.a.get(r,n):e.getCellLabel(r,t),i&&"auto"!==i?"number"===i?s.a.toNumber(o):"string"===i?s.a.toValueString(o):o:isNaN(o)?o:s.a.toNumber(o)}}var Zt={getParentElem:function(){return this.$xegrid?this.$xegrid.$el.parentNode:this.$el.parentNode},getParentHeight:function(){return this.$xegrid?this.$xegrid.getParentHeight():this.getParentElem().clientHeight},getExcludeHeight:function(){return this.$xegrid?this.$xegrid.getExcludeHeight():0},clearAll:function(){return this.inited=!1,this.clearSort(),this.clearCurrentRow(),this.clearCurrentColumn(),this.clearRadioRow(),this.clearRadioReserve(),this.clearCheckboxRow(),this.clearCheckboxReserve(),this.clearRowExpand(),this.clearRowExpandReserve(),this.clearTreeExpand(),this.clearTreeExpandReserve(),it._edit&&this.clearActived(),it._filter&&this.clearFilter(),(this.keyboardConfig||this.mouseConfig)&&(this.clearIndexChecked(),this.clearHeaderChecked(),this.clearChecked(),this.clearSelected(),this.clearCopyed()),this.mouseConfig&&(this.clearCellAreas(),this.clearCopyCellArea()),this.clearScroll()},refreshData:function(){return N.warn("vxe.error.delFunc",["refreshData","syncData"]),this.syncData()},syncData:function(){var e=this;return this.$nextTick().then((function(){return e.tableData=[],e.$nextTick().then((function(){return e.loadTableData(e.tableFullData)}))}))},updateData:function(){return this.handleTableData(!0).then(this.updateFooter).then(this.recalculate)},handleTableData:function(e){var t=this.scrollYLoad,n=this.scrollYStore,i=e?this.updateAfterFullData():this.afterFullData;return this.tableData=t?i.slice(n.startIndex,Math.max(n.startIndex+n.renderSize,1)):i.slice(0),this.$nextTick()},loadTableData:function(e){var t=this,n=this.keepSource,i=this.treeConfig,r=this.editStore,o=this.sYOpts,a=this.scrollYStore,l=e?e.slice(0):[],c=!i&&o.enabled&&o.gt>-1&&o.gt<l.length;return a.startIndex=0,a.visibleIndex=0,a.renderSize=1,r.insertList=[],r.removeList=[],this.tableFullData=l,this.updateCache(!0),this.tableSynchData=e,n&&(this.tableSourceData=s.a.clone(l,!0)),this.scrollYLoad=c,c&&(this.height||this.maxHeight||N.error("vxe.error.reqProp",["height | max-height"]),this.showOverflow||N.warn("vxe.error.reqProp",["show-overflow"]),this.spanMethod&&N.warn("vxe.error.scrollErrProp",["span-method"])),this.clearMergeCells(),this.clearMergeFooterItems(),this.handleTableData(!0),this.updateFooter(),this.computeScrollLoad().then((function(){return t.isLoadData=!0,t.computeRowHeight(),t.handleReserveStatus(),t.checkSelectionStatus(),t.$nextTick().then(t.recalculate).then(t.refreshScroll)}))},loadData:function(e){return this.inited=!0,this.loadTableData(e).then(this.recalculate)},reloadData:function(e){var t=this;return this.clearAll().then((function(){return t.inited=!0,t.loadTableData(e)})).then(this.handleDefaults)},reloadRow:function(e,t,n){var i=this.tableSourceData,r=this.tableData;if(!this.keepSource)return N.warn("vxe.error.reqProp",["keep-source"]),this.$nextTick();var o=this.getRowIndex(e),a=i[o];return a&&e&&(n?s.a.set(a,n,s.a.get(t||e,n)):t?(i[o]=t,s.a.clear(e,void 0),Object.assign(e,this.defineField(Object.assign({},t))),this.updateCache(!0)):s.a.destructuring(a,s.a.clone(e,!0))),this.tableData=r.slice(0),this.$nextTick()},loadColumn:function(e){var t=this;return this.collectColumn=s.a.mapTree(e,(function(e){return Ot.createColumn(t,e)})),this.$nextTick()},reloadColumn:function(e){var t=this;return this.clearAll().then((function(){return t.loadColumn(e)}))},updateCache:function(e){var t=this,n=this.treeConfig,i=this.treeOpts,r=this.tableFullData,o=this.fullDataRowMap,a=this.fullAllDataRowMap,l=this.fullDataRowIdData,c=this.fullAllDataRowIdData,u=Dt(this),d=n&&i.lazy,h=function(r,h,f,p,g){var m=Mt(t,r);N.eqEmptyValue(m)&&(m=Vt(),s.a.set(r,u,m)),d&&r[i.hasChild]&&s.a.isUndefined(r[i.children])&&(r[i.children]=null);var v={row:r,rowid:m,index:n&&g?-1:h,items:f,parent:g};e&&(l[m]=v,o.set(r,v)),c[m]=v,a.set(r,v)};e&&(l=this.fullDataRowIdData={},o.clear()),c=this.fullAllDataRowIdData={},a.clear(),n?s.a.eachTree(r,h,i):r.forEach(h)},loadChildren:function(e,t){var n=this;return this.createData(t).then((function(t){var i=n.keepSource,r=n.tableSourceData,o=n.treeOpts,a=n.fullDataRowIdData,l=n.fullDataRowMap,c=n.fullAllDataRowMap,u=n.fullAllDataRowIdData,d=o.children;if(i){var h=Mt(n,e),f=s.a.findTree(r,(function(e){return h===Mt(n,e)}),o);f&&(f.item[d]=s.a.clone(t,!0))}return s.a.eachTree(t,(function(e,t,i,r,o){var s=Mt(n,e),d={row:e,rowid:s,index:-1,items:i,parent:o};a[s]=d,l.set(e,d),u[s]=d,c.set(e,d)}),o),e[d]=t,t}))},cacheColumnMap:function(){var e,t,n,i,r,o=this.isGroup,a=this.tableFullColumn,l=this.collectColumn,c=this.fullColumnMap,u=this.fullColumnIdData={},d=this.fullColumnFieldData={},h=function(o,a,s,l,h){var f=o.id,p=o.property,g=o.fixed,m=o.type,v=o.treeNode,b={column:o,colid:f,index:a,items:s,parent:h};p&&(d[p]&&N.warn("vxe.error.colRepet",["field",p]),d[p]=b),!r&&g&&(r=g),v?(t&&N.warn("vxe.error.colRepet",["tree-node",v]),t||(t=o)):"expand"===m&&(e&&N.warn("vxe.error.colRepet",["type",m]),e||(e=o)),"checkbox"===m?(n&&N.warn("vxe.error.colRepet",["type",m]),n||(n=o)):"radio"===m&&(i&&N.warn("vxe.error.colRepet",["type",m]),i||(i=o)),u[f]&&N.error("vxe.error.colRepet",["colId",f]),u[f]=b,c.set(o,b)};c.clear(),o?s.a.eachTree(l,(function(e,t,n,i,r,o){e.level=o.length,h(e,t,n,i,r)})):a.forEach(h),e&&r&&N.warn("vxe.error.errConflicts",["column.fixed","column.type=expand"]),e&&this.mouseOpts.area&&N.error("vxe.error.errConflicts",["mouse-config.area","column.type=expand"]),this.treeNodeColumn=t,this.expandColumn=e},getRowNode:function(e){if(e){var t=this.fullAllDataRowIdData,n=e.getAttribute("data-rowid"),i=t[n];if(i)return{rowid:i.rowid,item:i.row,index:i.index,items:i.items,parent:i.parent}}return null},getColumnNode:function(e){if(e){var t=this.fullColumnIdData,n=e.getAttribute("data-colid"),i=t[n];if(i)return{colid:i.colid,item:i.column,index:i.index,items:i.items,parent:i.parent}}return null},getRowIndex:function(e){return this.fullDataRowMap.has(e)?this.fullDataRowMap.get(e).index:-1},getVTRowIndex:function(e){return this.afterFullData.indexOf(e)},_getRowIndex:function(e){return N.warn("vxe.error.delFunc",["_getRowIndex","getVTRowIndex"]),this.getVTRowIndex(e)},getVMRowIndex:function(e){return this.tableData.indexOf(e)},$getRowIndex:function(e){return N.warn("vxe.error.delFunc",["$getRowIndex","getVMRowIndex"]),this.getVMRowIndex(e)},getColumnIndex:function(e){return this.fullColumnMap.has(e)?this.fullColumnMap.get(e).index:-1},getVTColumnIndex:function(e){return this.visibleColumn.indexOf(e)},_getColumnIndex:function(e){return N.warn("vxe.error.delFunc",["_getColumnIndex","getVTColumnIndex"]),this.getVTColumnIndex(e)},getVMColumnIndex:function(e){return this.tableColumn.indexOf(e)},$getColumnIndex:function(e){return N.warn("vxe.error.delFunc",["$getColumnIndex","getVMColumnIndex"]),this.getVMColumnIndex(e)},isSeqColumn:function(e){return e&&("seq"===e.type||"index"===e.type)},defineField:function(e){var t=this.radioOpts,n=this.checkboxOpts,i=this.treeConfig,r=this.treeOpts,o=this.expandOpts,a=Dt(this);this.visibleColumn.forEach((function(t){var n=t.property,i=t.editRender;n&&!s.a.has(e,n)&&s.a.set(e,n,i&&!s.a.isUndefined(i.defaultValue)?i.defaultValue:null)}));var l=[t.labelField,n.checkField,n.labelField,o.labelField];return l.forEach((function(t){t&&N.eqEmptyValue(s.a.get(e,t))&&s.a.set(e,t,null)})),i&&r.lazy&&s.a.isUndefined(e[r.children])&&(e[r.children]=null),N.eqEmptyValue(s.a.get(e,a))&&s.a.set(e,a,Vt()),e},createData:function(e){var t=this,n=this.treeConfig,i=this.treeOpts,r=function(e){return t.defineField(Object.assign({},e))},o=n?s.a.mapTree(e,r,i):e.map(r);return this.$nextTick().then((function(){return o}))},createRow:function(e){var t=this,n=s.a.isArray(e);return n||(e=[e]),this.$nextTick().then((function(){return t.createData(e).then((function(e){return n?e:e[0]}))}))},revert:function(){return N.warn("vxe.error.delFunc",["revert","revertData"]),this.revertData.apply(this,arguments)},revertData:function(e,t){var n=this,i=this.tableSourceData,r=this.treeConfig;if(!this.keepSource)return N.warn("vxe.error.reqProp",["keep-source"]),this.$nextTick();var o=e;return e?s.a.isArray(e)||(o=[e]):o=s.a.toArray(this.getUpdateRecords()),o.length&&o.forEach((function(e){if(!n.isInsertByRow(e)){var o=n.getRowIndex(e);if(r&&-1===o)throw new Error(N.getLog("vxe.error.noTree",["revertData"]));var a=i[o];a&&e&&(t?s.a.set(e,t,s.a.clone(s.a.get(a,t),!0)):s.a.destructuring(e,s.a.clone(a,!0)))}})),e?this.$nextTick():this.reloadData(i)},clearData:function(e,t){var n=this.tableFullData,i=this.visibleColumn;return arguments.length?e&&!s.a.isArray(e)&&(e=[e]):e=n,t?e.forEach((function(e){return s.a.set(e,t,null)})):e.forEach((function(e){i.forEach((function(t){t.property&&Et(e,t,null)}))})),this.$nextTick()},isInsertByRow:function(e){return this.editStore.insertList.indexOf(e)>-1},hasRowChange:function(e,t){return N.warn("vxe.error.delFunc",["hasRowChange","isUpdateByRow"]),this.isUpdateByRow(e,t)},isUpdateByRow:function(e,t){var n=this,i=this.visibleColumn,r=this.keepSource,o=this.treeConfig,a=this.treeOpts,l=this.tableSourceData,c=this.fullDataRowIdData;if(r){var u,d,h=Mt(this,e);if(!c[h])return!1;if(o){var f=a.children,p=s.a.findTree(l,(function(e){return h===Mt(n,e)}),a);e=Object.assign({},e,rt({},f,null)),p&&(u=Object.assign({},p.item,rt({},f,null)))}else{var g=c[h].index;u=l[g]}if(u){if(arguments.length>1)return!Wt(u,e,t);for(var m=0,v=i.length;m<v;m++)if(d=i[m].property,d&&!Wt(u,e,d))return!0}}return!1},getColumns:function(e){var t=this.visibleColumn;return arguments.length?t[e]:t.slice(0)},getColumnById:function(e){var t=this.fullColumnIdData;return t[e]?t[e].column:null},getColumnByField:function(e){var t=this.fullColumnFieldData;return t[e]?t[e].column:null},getTableColumn:function(){return{collectColumn:this.collectColumn.slice(0),fullColumn:this.tableFullColumn.slice(0),visibleColumn:this.visibleColumn.slice(0),tableColumn:this.tableColumn.slice(0)}},getRecords:function(){return N.warn("vxe.error.delFunc",["getRecords","getData"]),this.getData.apply(this,arguments)},getData:function(e){var t=this.data||this.tableSynchData;return arguments.length?t[e]:t.slice(0)},getAllRecords:function(){return N.warn("vxe.error.delFunc",["getAllRecords","getRecordset"]),this.getRecordset()},getSelectRecords:function(){return N.warn("vxe.error.delFunc",["getSelectRecords","getCheckboxRecords"]),this.getCheckboxRecords()},getCheckboxRecords:function(){var e=this.tableFullData,t=this.treeConfig,n=this.treeOpts,i=this.checkboxOpts,r=i.checkField,o=[];if(r)o=t?s.a.filterTree(e,(function(e){return s.a.get(e,r)}),n):e.filter((function(e){return s.a.get(e,r)}));else{var a=this.selection;o=t?s.a.filterTree(e,(function(e){return a.indexOf(e)>-1}),n):e.filter((function(e){return a.indexOf(e)>-1}))}return o},updateAfterFullData:function(){var e=this,t=this.tableFullColumn,n=this.tableFullData,i=this.remoteSort,r=this.remoteFilter,o=this.filterOpts,a=this.sortOpts,l=n.slice(0),c=s.a.find(t,(function(e){return e.order})),u=[],d=[];if(t.forEach((function(e){if(e.filters&&e.filters.length){var t=[],n=[];e.filters.forEach((function(e){e.checked&&(n.push(e),t.push(e.value))})),u.push({column:e,valueList:t,itemList:n})}e.sortable&&e.order&&d.push({column:e,sortBy:e.sortBy,property:e.property,order:e.order})})),u.length&&(l=l.filter((function(t){return u.every((function(n){var i=n.column,a=n.valueList,l=n.itemList;if(a.length&&!o.remote&&!r){var c=i.filterRender,u=i.property,d=i.filterMethod,h=o.filterMethod,f=c?it.renderer.get(c.name):null,p=f&&f.renderFilter?f.filterMethod:null,g=f?f.defaultFilterMethod:null,m=N.getCellValue(t,i);return d?l.some((function(n){return d({value:n.value,option:n,cellValue:m,row:t,column:i,$table:e})})):p?l.some((function(n){return p({value:n.value,option:n,cellValue:m,row:t,column:i,$table:e})})):h?h({options:l,values:a,cellValue:m,row:t,column:i}):g?l.some((function(n){return g({value:n.value,option:n,cellValue:m,row:t,column:i,$table:e})})):a.indexOf(s.a.get(t,u))>-1}return!0}))}))),c&&c.order){var h=a.sortMethod||this.sortMethod,f=s.a.isBoolean(c.remoteSort)?c.remoteSort:a.remote||i;if(!f)if(h)l=h({data:l,column:c,property:c.property,order:c.order,sortList:d,$table:this})||l;else{var p=c.sortMethod?l.sort(c.sortMethod):s.a.orderBy(l,Xt(this,c));l="desc"===c.order?p.reverse():p}}return this.afterFullData=l,l},getRowById:function(e){var t=this.fullDataRowIdData;return t[e]?t[e].row:null},getRowid:function(e){var t=this.fullAllDataRowMap;return t.has(e)?t.get(e).rowid:null},getTableData:function(){var e=this.tableFullData,t=this.afterFullData,n=this.tableData,i=this.footerTableData;return{fullData:e.slice(0),visibleData:t.slice(0),tableData:n.slice(0),footerData:i.slice(0)}},handleDefaults:function(){var e=this,t=this.checkboxConfig||this.selectConfig;t&&this.handleDefaultSelectionChecked(),this.radioConfig&&this.handleDefaultRadioChecked(),this.sortConfig&&this.handleDefaultSort(),this.expandConfig&&this.handleDefaultRowExpand(),this.treeConfig&&this.handleDefaultTreeExpand(),this.mergeCells&&this.handleDefaultMergeCells(),this.mergeFooterItems&&this.handleDefaultMergeFooterItems(),this.$nextTick((function(){return setTimeout(e.recalculate)}))},mergeCustomColumn:function(e){var t=this.tableFullColumn;this.isUpdateCustoms=!0,e.length&&t.forEach((function(t){var n=s.a.find(e,(function(e){return t.property&&(e.field||e.prop)===t.property}));n&&(s.a.isNumber(n.resizeWidth)&&(t.resizeWidth=n.resizeWidth),s.a.isBoolean(n.visible)&&(t.visible=n.visible))})),this.emitEvent("update:customs",t)},resetAll:function(){N.warn("vxe.error.delFunc",["resetAll","resetColumn"]),this.resetColumn(!0)},hideColumn:function(e){return e.visible=!1,this.handleCustom()},showColumn:function(e){return e.visible=!0,this.handleCustom()},resetColumn:function(e){var t=this.customOpts,n=t.checkMethod,i=Object.assign({visible:!0,resizable:!0===e},e);return this.tableFullColumn.forEach((function(e){i.resizable&&(e.resizeWidth=0),n&&!n({column:e})||(e.visible=e.defaultVisible)})),i.resizable&&this.saveCustomResizable(!0),this.handleCustom()},handleCustom:function(){return this.saveCustomVisible(),this.analyColumnWidth(),this.refreshColumn()},resetResizable:function(){return N.warn("vxe.error.delFunc",["resetResizable","resetColumn"]),this.resetColumn()},reloadCustoms:function(e){var t=this;return N.warn("vxe.error.delFunc",["reloadCustoms","column.visible & refreshColumn"]),this.$nextTick().then((function(){return t.mergeCustomColumn(e),t.refreshColumn().then((function(){return t.tableFullColumn}))}))},restoreCustomStorage:function(){var e=this.$toolbar,t=this.collectColumn,n=this.customConfig,i=this.customOpts,r=i.storage,o=!0===i.storage,a=o||r&&r.resizable||e&&e.resizableOpts.storage,l=o||r&&r.visible||e&&e.customOpts.storage;if((n||e)&&(a||l)){var c=n?this.id:e?e.id:null,u={};if(!c)return void N.error("vxe.error.reqProp",["id"]);if(a){var d=Ut(Bt)[c];d&&s.a.each(d,(function(e,t){u[t]={field:t,resizeWidth:e}}))}if(l){var h=Ut(zt)[c];if(h){var f=h.split("|"),p=f[0]?f[0].split(","):[],g=f[1]?f[1].split(","):[];p.forEach((function(e){u[e]?u[e].visible=!1:u[e]={field:e,visible:!1}})),g.forEach((function(e){u[e]?u[e].visible=!0:u[e]={field:e,visible:!0}}))}}var m={};s.a.eachTree(t,(function(e){var t=e.getKey();t&&(m[t]=e)})),s.a.each(u,(function(e,t){var n=e.visible,i=e.resizeWidth,r=m[t];r&&(s.a.isNumber(i)&&(r.resizeWidth=i),s.a.isBoolean(n)&&(r.visible=n))}))}},saveCustomVisible:function(){var e=this.$toolbar,t=this.collectColumn,n=this.customConfig,i=this.customOpts,r=i.checkMethod,o=i.storage,a=!0===i.storage,l=a||o&&o.visible||e&&e.customOpts.storage;if((n||e)&&l){var c=n?this.id:e?e.id:null,u=Ut(zt),d=[],h=[];if(!c)return void N.error("vxe.error.reqProp",["id"]);s.a.eachTree(t,(function(e){if(!r||r({column:e}))if(!e.visible&&e.defaultVisible){var t=e.getKey();t&&d.push(t)}else if(e.visible&&!e.defaultVisible){var n=e.getKey();n&&h.push(n)}})),u[c]=[d.join(",")].concat(h.length?[h.join(",")]:[]).join("|")||void 0,localStorage.setItem(zt,s.a.toJSONString(u))}},saveCustomResizable:function(e){var t=this.$toolbar,n=this.collectColumn,i=this.customConfig,r=this.customOpts,o=r.storage,a=!0===r.storage,l=a||o&&o.resizable||t&&t.resizableOpts.storage;if((i||t)&&l){var c,u=i?this.id:t?t.id:null,d=Ut(Bt);if(!u)return void N.error("vxe.error.reqProp",["id"]);e||(c=s.a.isPlainObject(d[u])?d[u]:{},s.a.eachTree(n,(function(e){if(e.resizeWidth){var t=e.getKey();t&&(c[t]=e.renderWidth)}}))),d[u]=s.a.isEmpty(c)?void 0:c,localStorage.setItem(Bt,s.a.toJSONString(d))}},refreshColumn:function(){var e=this,t=[],n=[],i=[],r=this.collectColumn,o=this.tableFullColumn,a=this.isGroup,l=this.columnStore,c=this.sXOpts,u=this.scrollXStore;if(a){var d=[],h=[],f=[];s.a.eachTree(r,(function(e,r,o,a,l){var c=Tt(e);l&&l.fixed&&(e.fixed=l.fixed),l&&e.fixed!==l.fixed&&N.error("vxe.error.groupFixed"),c?e.visible=!!s.a.findTree(e.children,(function(e){return Tt(e)?null:e.visible})):e.visible&&("left"===e.fixed?t.push(e):"right"===e.fixed?i.push(e):n.push(e))})),r.forEach((function(e){e.visible&&("left"===e.fixed?d.push(e):"right"===e.fixed?f.push(e):h.push(e))})),this.tableGroupColumn=d.concat(h).concat(f)}else o.forEach((function(e){e.visible&&("left"===e.fixed?t.push(e):"right"===e.fixed?i.push(e):n.push(e))}));var p=t.concat(n).concat(i),g=p,m=c.enabled&&c.gt>-1&&c.gt<o.length;return Object.assign(l,{leftList:t,centerList:n,rightList:i}),m&&a&&(m=!1,N.warn("vxe.error.scrollXNotGroup")),m&&(this.showHeader&&!this.showHeaderOverflow&&N.warn("vxe.error.reqProp",["show-header-overflow"]),this.showFooter&&!this.showFooterOverflow&&N.warn("vxe.error.reqProp",["show-footer-overflow"]),this.spanMethod&&N.warn("vxe.error.scrollErrProp",["span-method"]),this.footerSpanMethod&&N.warn("vxe.error.scrollErrProp",["footer-span-method"]),Object.assign(u,{startIndex:0,visibleIndex:0}),g=p.slice(u.startIndex,u.startIndex+u.renderSize)),p.length===this.visibleColumn.length&&this.visibleColumn.every((function(e,t){return e===p[t]}))||(this.clearMergeCells(),this.clearMergeFooterItems()),this.scrollXLoad=m,this.tableColumn=g,this.visibleColumn=p,this.$nextTick().then((function(){return e.updateFooter(),e.recalculate(!0)})).then((function(){return e.updateCellAreas(),e.$nextTick().then((function(){return e.recalculate()}))}))},analyColumnWidth:function(){var e=this.columnWidth,t=this.columnMinWidth,n=this.columnOpts,i=n.width||e,r=n.minWidth||t,o=[],a=[],s=[],l=[],c=[],u=[];this.tableFullColumn.forEach((function(e){i&&!e.width&&(e.width=i),r&&!e.minWidth&&(e.minWidth=r),e.visible&&(e.resizeWidth?o.push(e):$.isPx(e.width)?a.push(e):$.isScale(e.width)?l.push(e):$.isPx(e.minWidth)?s.push(e):$.isScale(e.minWidth)?c.push(e):u.push(e))})),Object.assign(this.columnStore,{resizeList:o,pxList:a,pxMinList:s,scaleList:l,scaleMinList:c,autoList:u})},refreshScroll:function(){var e=this,t=this.lastScrollLeft,n=this.lastScrollTop;return this.clearScroll().then((function(){if(t||n)return e.lastScrollLeft=0,e.lastScrollTop=0,e.scrollTo(t,n)}))},recalculate:function(e){var t=this,n=this.$refs,i=n.tableBody,r=n.tableHeader,o=n.tableFooter,a=i?i.$el:null,s=r?r.$el:null,l=o?o.$el:null;return a&&(this.autoCellWidth(s,a,l),!0===e)?this.computeScrollLoad().then((function(){t.autoCellWidth(s,a,l),t.computeScrollLoad()})):this.computeScrollLoad()},autoCellWidth:function(e,t,n){var i=0,r=40,o=t.clientWidth,a=o,s=a/100,l=this.fit,c=this.columnStore,u=c.resizeList,d=c.pxMinList,h=c.pxList,f=c.scaleList,p=c.scaleMinList,g=c.autoList;if(d.forEach((function(e){var t=parseInt(e.minWidth);i+=t,e.renderWidth=t})),p.forEach((function(e){var t=Math.floor(parseInt(e.minWidth)*s);i+=t,e.renderWidth=t})),f.forEach((function(e){var t=Math.floor(parseInt(e.width)*s);i+=t,e.renderWidth=t})),h.forEach((function(e){var t=parseInt(e.width);i+=t,e.renderWidth=t})),u.forEach((function(e){var t=parseInt(e.resizeWidth);i+=t,e.renderWidth=t})),a-=i,s=a>0?Math.floor(a/(p.length+d.length+g.length)):0,l?a>0&&p.concat(d).forEach((function(e){i+=s,e.renderWidth+=s})):s=r,g.forEach((function(e){var t=Math.max(s,r);e.renderWidth=t,i+=t})),l){var m=f.concat(p).concat(d).concat(g),v=m.length-1;if(v>0){var b=o-i;if(b>0){while(b>0&&v>=0)b--,m[v--].renderWidth++;i=o}}}var y=t.offsetHeight,_=t.scrollHeight>t.clientHeight;if(this.scrollbarWidth=_?t.offsetWidth-o:0,this.overflowY=_,this.tableWidth=i,this.tableHeight=y,e?(this.headerHeight=e.clientHeight,e.scrollLeft!==t.scrollLeft&&(e.scrollLeft=t.scrollLeft)):this.headerHeight=0,n){var w=n.offsetHeight;this.scrollbarHeight=Math.max(w-n.clientHeight,0),this.overflowX=i>n.clientWidth,this.footerHeight=w}else this.footerHeight=0,this.scrollbarHeight=Math.max(y-t.clientHeight,0),this.overflowX=i>o;this.customHeight=It(this,"height"),this.customMaxHeight=It(this,"maxHeight"),this.parentHeight=Math.max(this.headerHeight+this.footerHeight+20,this.getParentHeight()),this.overflowX&&this.checkScrolling()},updateStyle:function(){var e=this,t=this.$refs,n=this.isGroup,i=this.fullColumnIdData,r=this.tableColumn,o=this.customHeight,a=this.customMaxHeight,l=this.border,c=this.headerHeight,u=this.showFooter,d=this.showOverflow,h=this.showHeaderOverflow,f=this.showFooterOverflow,p=this.footerHeight,g=this.tableHeight,m=this.tableWidth,v=this.scrollbarHeight,b=this.scrollbarWidth,y=this.scrollXLoad,_=this.scrollYLoad,w=this.cellOffsetWidth,x=this.columnStore,C=this.elemStore,S=this.editStore,k=this.currentRow,O=this.mouseConfig,M=["main","left","right"],D=t.emptyPlaceholder,E=C["main-body-wrapper"];return D&&(D.style.top="".concat(c,"px"),D.style.height=E?"".concat(E.offsetHeight-v,"px"):""),o>0&&u&&(o+=v),M.forEach((function(S,k){var O=k>0?S:"",M=["header","body","footer"],D=x["".concat(O,"List")],E=t["".concat(O,"Container")];M.forEach((function(t){var k=C["".concat(S,"-").concat(t,"-wrapper")],M=C["".concat(S,"-").concat(t,"-table")];if("header"===t){var T=m;y&&(O&&(r=D),T=r.reduce((function(e,t){return e+t.renderWidth}),0)),M&&(M.style.width=T?"".concat(T+b,"px"):"",Lt.msie&&s.a.arrayEach(M.querySelectorAll(".vxe-resizable"),(function(e){e.style.height="".concat(e.parentNode.offsetHeight,"px")})));var L=C["".concat(S,"-").concat(t,"-repair")];L&&(L.style.width="".concat(m,"px"));var I=C["".concat(S,"-").concat(t,"-list")];n&&I&&s.a.arrayEach(I.querySelectorAll(".col--group"),(function(t){var n=e.getColumnNode(t);if(n){var i=n.item,r=i.showHeaderOverflow,o=s.a.isBoolean(r)?r:h,a="ellipsis"===o,c="title"===o,u=!0===o||"tooltip"===o,d=c||u||a,f=0,p=0;d&&s.a.eachTree(i.children,(function(e){e.children&&i.children.length||p++,f+=e.renderWidth})),t.style.width=d?"".concat(f-p-(l?2:0),"px"):""}}))}else if("body"===t){var A=C["".concat(S,"-").concat(t,"-emptyBlock")];if(k&&(a>0?k.style.maxHeight="".concat(O?a-c-(u?0:v):a-c,"px"):k.style.height=o>0?"".concat(O?(o>0?o-c-p:g)-(u?0:v):o-c-p,"px"):""),E){var N="right"===O,P=x["".concat(O,"List")];k&&(k.style.top="".concat(c,"px")),E.style.height="".concat((o>0?o-c-p:g)+c+p-v*(u?2:1),"px"),E.style.width="".concat(P.reduce((function(e,t){return e+t.renderWidth}),N?b:0),"px")}var R=m;O&&d?(r=D,R=r.reduce((function(e,t){return e+t.renderWidth}),0)):y&&(O&&(r=D),R=r.reduce((function(e,t){return e+t.renderWidth}),0)),M&&(M.style.width=R?"".concat(R,"px"):"",M.style.paddingRight=b&&O&&(Lt["-moz"]||Lt.safari)?"".concat(b,"px"):""),A&&(A.style.width=R?"".concat(R,"px"):"")}else if("footer"===t){var F=m;O&&d?(r=D,F=r.reduce((function(e,t){return e+t.renderWidth}),0)):y&&(O&&(r=D),F=r.reduce((function(e,t){return e+t.renderWidth}),0)),k&&(E&&(k.style.top="".concat(o>0?o-p:g+c,"px")),k.style.marginTop="".concat(-v,"px")),M&&(M.style.width=F?"".concat(F+b,"px"):"")}var j=C["".concat(S,"-").concat(t,"-colgroup")];j&&s.a.arrayEach(j.children,(function(n){var r=n.getAttribute("name");if("col_gutter"===r&&(n.style.width="".concat(b,"px")),i[r]){var o,a=i[r].column,l=a.showHeaderOverflow,c=a.showFooterOverflow,u=a.showOverflow;n.style.width="".concat(a.renderWidth,"px"),o="header"===t?s.a.isUndefined(l)||s.a.isNull(l)?h:l:"footer"===t?s.a.isUndefined(c)||s.a.isNull(c)?f:c:s.a.isUndefined(u)||s.a.isNull(u)?d:u;var p="ellipsis"===o,g="title"===o,m=!0===o||"tooltip"===o,v=g||m||p,x=C["".concat(S,"-").concat(t,"-list")];"header"===t||"footer"===t?y&&!v&&(v=!0):!y&&!_||v||(v=!0),x&&s.a.arrayEach(x.querySelectorAll(".".concat(a.id)),(function(t){var n=parseInt(t.getAttribute("colspan")||1),i=t.querySelector(".vxe-cell"),r=a.renderWidth;if(i){if(n>1)for(var o=e.getColumnIndex(a),s=1;s<n;s++){var l=e.getColumns(o+s);l&&(r+=l.renderWidth)}i.style.width=v?"".concat(r-w*n,"px"):""}}))}}))}))})),k&&this.setCurrentRow(k),O&&O.selected&&S.selected.row&&S.selected.column&&this.addColSdCls(),this.$nextTick()},checkScrolling:function(){var e=this.$refs,t=e.tableBody,n=e.leftContainer,i=e.rightContainer,r=t?t.$el:null;r&&(n&&$[r.scrollLeft>0?"addClass":"removeClass"](n,"scrolling--middle"),i&&$[r.clientWidth<r.scrollWidth-Math.ceil(r.scrollLeft)?"addClass":"removeClass"](i,"scrolling--middle"))},preventEvent:function(e,t,n,i,r){var o,a=this,s=it.interceptor.get(t);return s.some((function(t){return!1===t(Object.assign({$grid:a.$xegrid,$table:a,$event:e},n),e,a)}))||i&&(o=i()),r&&r(),o},handleGlobalMousedownEvent:function(e){var t=this,n=this.$el,i=this.$refs,r=this.$xegrid,o=this.$toolbar,a=this.mouseConfig,s=this.mouseOpts,l=this.editStore,c=this.ctxMenuStore,u=this.editOpts,d=this.filterStore,h=this.getRowNode,f=l.actived,p=i.filterWrapper,g=i.validTip,m=a&&s.checked;if(p&&(Rt(e,n,"vxe-cell--filter").flag||Rt(e,p.$el).flag||Rt(e,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(e,"event.clearFilter",d.args,this.closeFilter)),f.row){if(!1!==u.autoClear){var v=f.args.cell;v&&Rt(e,v).flag||g&&Rt(e,g.$el).flag||(!this.lastCallTime||this.lastCallTime+50<Date.now())&&(Rt(e,document.body,"vxe-table--ignore-clear").flag||this.preventEvent(e,"event.clearActived",f.args,(function(){var i;if("row"===u.mode){var r=Rt(e,n,"vxe-body--row");i=!!r.flag&&h(r.targetElem).item!==f.args.row}else i=!Rt(e,n,"col--edit").flag;if(i||(i=Rt(e,n,"vxe-header--row").flag),i||(i=Rt(e,n,"vxe-footer--row").flag),!i&&t.height&&!t.overflowY){var o=e.target;At(o,"vxe-table--body-wrapper")&&(i=e.offsetY<o.clientHeight)}!i&&Rt(e,n).flag||setTimeout((function(){return t.clearActived(e)}))})))}}else a&&(Rt(e,n).flag||r&&Rt(e,r.$el).flag||Rt(e,i.tableWrapper).flag||o&&Rt(e,o.$el).flag||(m&&(this.clearIndexChecked(),this.clearHeaderChecked(),this.clearChecked()),this.clearSelected(),Rt(e,document.body,"vxe-table--ignore-areas-clear").flag||this.preventEvent(e,"event.clearAreas",{},(function(){t.clearCellAreas(),t.clearCopyCellArea()}))));c.visible&&this.$refs.ctxWrapper&&!Rt(e,this.$refs.ctxWrapper.$el).flag&&this.closeMenu(),this.isActivated=Rt(e,(r||this).$el).flag},handleGlobalBlurEvent:function(){this.closeFilter(),this.closeMenu()},handleGlobalMousewheelEvent:function(){this.closeTooltip(),this.closeMenu()},handleGlobalKeydownEvent:function(e){var t=this;this.isActivated&&this.preventEvent(e,"event.keydown",null,(function(){var n,i=t.filterStore,r=t.isCtxMenu,o=t.ctxMenuStore,a=t.editStore,l=t.editOpts,c=t.editConfig,u=t.mouseConfig,d=t.mouseOpts,h=t.keyboardConfig,f=t.keyboardOpts,p=t.treeConfig,g=t.treeOpts,m=t.highlightCurrentRow,v=t.currentRow,b=t.bodyCtxMenu,y=a.selected,_=a.actived,w=e.keyCode,x=8===w,C=9===w,S=13===w,k=27===w,O=32===w,M=37===w,D=38===w,E=39===w,T=40===w,L=46===w,I=65===w,A=113===w,P=93===w,R=e.metaKey,F=e.ctrlKey,j=e.shiftKey,B=M||D||E||T,z=r&&o.visible&&(S||O||B),V=c&&_.column&&_.row;if(i.visible)k&&t.closeFilter();else{if(z)e.preventDefault(),o.showChild&&Tt(o.selected)?t.moveCtxMenu(e,w,o,"selectChild",37,!1,o.selected.children):t.moveCtxMenu(e,w,o,"selected",39,!0,t.ctxMenuList);else if(h&&u&&d.area&&t.handleKeyboardEvent)t.handleKeyboardEvent(e);else if(O&&h&&f.isChecked&&y.row&&y.column&&("checkbox"===y.column.type||"selection"===y.column.type||"radio"===y.column.type))e.preventDefault(),"checkbox"===y.column.type||"selection"===y.column.type?t.handleToggleCheckRowEvent(e,y.args):t.triggerRadioRowEvent(e,y.args);else if(k)t.closeMenu(),t.closeFilter(),_.row&&(n=_.args,t.clearActived(e),u&&d.selected&&t.$nextTick((function(){return t.handleSelected(n,e)})));else if(A)V||y.row&&y.column&&(e.preventDefault(),t.handleActived(y.args,e));else if(P)t._keyCtx=y.row&&y.column&&b.length,clearTimeout(t.keyCtxTimeout),t.keyCtxTimeout=setTimeout((function(){t._keyCtx=!1}),1e3);else if(S&&h&&f.isEnter&&(y.row||_.row||p&&m&&v)){if(F)_.row&&(n=_.args,t.clearActived(e),u&&d.selected&&t.$nextTick((function(){return t.handleSelected(n,e)})));else if(y.row||_.row){var $=y.row?y.args:_.args;j?f.enterToTab?t.moveTabSelected($,j,e):t.moveSelected($,M,!0,E,!1,e):f.enterToTab?t.moveTabSelected($,j,e):t.moveSelected($,M,!1,E,!0,e)}else if(p&&m&&v){var W=v[g.children];if(W&&W.length){e.preventDefault();var H=W[0];n={$table:t,row:H},t.setTreeExpand(v,!0).then((function(){return t.scrollToRow(H)})).then((function(){return t.triggerCurrentRowEvent(e,n)}))}}}else if(B&&h&&f.isArrow)V||(y.row&&y.column?t.moveSelected(y.args,M,D,E,T,e):(D||T)&&m&&t.moveCurrentRow(D,T,e));else if(C&&h&&f.isTab)y.row||y.column?t.moveTabSelected(y.args,j,e):(_.row||_.column)&&t.moveTabSelected(_.args,j,e);else if(h&&(L||(p&&m&&v?x&&f.isArrow:x))){if(!V){var U=f.delMethod,q=f.backMethod;if(f.isDel&&(y.row||y.column))U?U({row:y.row,rowIndex:t.getRowIndex(y.row),column:y.column,columnIndex:t.getColumnIndex(y.column),$table:t}):Et(y.row,y.column,null),x?q?q({row:y.row,rowIndex:t.getRowIndex(y.row),column:y.column,columnIndex:t.getColumnIndex(y.column),$table:t}):t.handleActived(y.args,e):L&&t.updateFooter();else if(x&&f.isArrow&&p&&m&&v){var G=s.a.findTree(t.afterFullData,(function(e){return e===v}),g),K=G.parent;K&&(e.preventDefault(),n={$table:t,row:K},t.setTreeExpand(K,!1).then((function(){return t.scrollToRow(K)})).then((function(){return t.triggerCurrentRowEvent(e,n)})))}}}else if(h&&F&&I)V||f.isCut&&u&&d.checked&&t.handleAllChecked(e);else if(h&&f.isEdit&&!F&&!R&&(O||w>=48&&w<=57||w>=65&&w<=90||w>=96&&w<=111||w>=186&&w<=192||w>=219&&w<=222)){var Y=f.editMethod;y.column&&y.row&&N.isEnableConf(y.column.editRender)&&(l.activeMethod&&!l.activeMethod(y.args)||(Y?Y({row:y.row,rowIndex:t.getRowIndex(y.row),column:y.column,columnIndex:t.getColumnIndex(y.column),$table:t}):(Et(y.row,y.column,null),t.handleActived(y.args,e))))}t.emitEvent("keydown",{},e)}}))},handleGlobalPasteEvent:function(e){var t=this.isActivated,n=this.keyboardConfig,i=this.keyboardOpts,r=this.mouseConfig,o=this.mouseOpts,a=this.editStore,s=this.filterStore,l=a.actived;t&&!s.visible&&(l.row||l.column||(n&&i.isClip&&r&&o.area&&this.handlePasteCellAreaEvent?this.handlePasteCellAreaEvent(e):n&&i.isCut&&r&&o.checked&&this.handlePaste(e)),this.emitEvent("paste",{},e))},handleGlobalCopyEvent:function(e){var t=this.isActivated,n=this.keyboardConfig,i=this.keyboardOpts,r=this.mouseConfig,o=this.mouseOpts,a=this.editStore,s=this.filterStore,l=a.actived;t&&!s.visible&&(l.row||l.column||(n&&i.isClip&&r&&o.area&&this.handleCopyCellAreaEvent?this.handleCopyCellAreaEvent(e):n&&i.isCut&&r&&o.checked&&this.handleCopyed(!1,e)),this.emitEvent("copy",{},e))},handleGlobalCutEvent:function(e){var t=this.isActivated,n=this.keyboardConfig,i=this.keyboardOpts,r=this.mouseConfig,o=this.mouseOpts,a=this.editStore,s=this.filterStore,l=a.actived;t&&!s.visible&&(l.row||l.column||(n&&i.isClip&&r&&o.area&&this.handleCutCellAreaEvent?this.handleCutCellAreaEvent(e):n&&i.isCut&&r&&o.checked&&this.handleCopyed(!0,e)),this.emitEvent("cut",{},e))},handleGlobalResizeEvent:function(){this.closeMenu(),this.recalculate(!0),this.updateCellAreas()},handleTooltipLeaveEvent:function(){var e=this,t=this.tooltipOpts;setTimeout((function(){e.tooltipActive||e.closeTooltip()}),t.leaveDelay)},handleTargetEnterEvent:function(){clearTimeout(this.tooltipTimeout),this.tooltipActive=!0,this.closeTooltip()},handleTargetLeaveEvent:function(){var e=this,t=this.tooltipOpts;this.tooltipActive=!1,t.enterable?this.tooltipTimeout=setTimeout((function(){var t=e.$refs.tooltip;t&&!t.isHover&&e.closeTooltip()}),t.leaveDelay):this.closeTooltip()},triggerHeaderHelpEvent:function(e,t){var n=t.column,i=n.titleHelp;if(i.content||i.message){var r=this.$refs,o=this.tooltipStore,a=r.tooltip,s=N.getFuncText(i.content||i.message);this.handleTargetEnterEvent(),o.visible=!0,a&&a.open(e.currentTarget,s)}},triggerHeaderTooltipEvent:function(e,t){var n=this.tooltipStore,i=t.column,r=e.currentTarget;this.handleTargetEnterEvent(),n.column===i&&n.visible||this.handleTooltip(e,r,r,null,t)},triggerBodyTooltipEvent:function(e,t){var n,i,r=this.editConfig,o=this.editOpts,a=this.editStore,s=this.tooltipStore,l=a.actived,c=t.row,u=t.column,d=e.currentTarget;(this.handleTargetEnterEvent(),r&&("row"===o.mode&&l.row===c||l.row===c&&l.column===u))||(s.column===u&&s.row===c&&s.visible||(u.treeNode?(n=d.querySelector(".vxe-tree-cell"),"html"===u.type&&(i=d.querySelector(".vxe-cell--html"))):i=d.querySelector("html"===u.type?".vxe-cell--html":".vxe-cell--label"),this.handleTooltip(e,d,n||d.children[0],i,t)))},triggerFooterTooltipEvent:function(e,t){var n=this.tooltipStore,i=t.column,r=e.currentTarget;this.handleTargetEnterEvent(),n.column===i&&n.visible||this.handleTooltip(e,r,r.querySelector(".vxe-cell--item")||r.children[0],null,t)},handleTooltip:function(e,t,n,i,r){r.cell=t;var o=this.$refs,a=this.tooltipOpts,l=this.tooltipStore,c=r.column,u=r.row,d=a.showAll,h=a.enabled,f=a.contentMethod,p=o.tooltip,g=f?f(r):null,m=f&&!s.a.eqNull(g),v=m?g:("html"===c.type?n.innerText:n.textContent).trim(),b=n.scrollWidth>n.clientWidth;return v&&(d||h||m||b)&&(Object.assign(l,{row:u,column:c,visible:!0}),p&&p.open(b?n:i||n,N.formatText(v))),this.$nextTick()},openTooltip:function(e,t){var n=this.$refs,i=n.commTip;return i?i.open(e,t):this.$nextTick()},closeTooltip:function(){var e=this.$refs.tooltip,t=this.$refs.commTip;return Object.assign(this.tooltipStore,{row:null,column:null,content:null,visible:!1}),e&&e.close(),t&&t.close(),this.$nextTick()},isAllCheckboxChecked:function(){return this.isAllSelected},isAllCheckboxIndeterminate:function(){return!this.isAllSelected&&this.isIndeterminate},isCheckboxIndeterminate:function(){return N.warn("vxe.error.delFunc",["isCheckboxIndeterminate","isAllCheckboxIndeterminate"]),this.isAllCheckboxIndeterminate()},getCheckboxIndeterminateRecords:function(){var e=this.treeConfig,t=this.treeIndeterminates;return e?t.slice(0):[]},handleDefaultSelectionChecked:function(){var e=this.fullDataRowIdData,t=this.checkboxOpts,n=t.checkAll,i=t.checkRowKeys;if(n)this.setAllCheckboxRow(!0);else if(i){var r=[];i.forEach((function(t){e[t]&&r.push(e[t].row)})),this.setCheckboxRow(r,!0)}},setSelection:function(e,t){return N.warn("vxe.error.delFunc",["setSelection","setCheckboxRow"]),this.setCheckboxRow(e,t)},setCheckboxRow:function(e,t){var n=this;return e&&!s.a.isArray(e)&&(e=[e]),e.forEach((function(e){return n.handleSelectRow({row:e},!!t)})),this.$nextTick()},isCheckedByRow:function(e){return N.warn("vxe.error.delFunc",["isCheckedByRow","isCheckedByCheckboxRow"]),this.isCheckedByCheckboxRow(e)},isCheckedByCheckboxRow:function(e){var t=this.checkboxOpts.checkField;return t?s.a.get(e,t):this.selection.indexOf(e)>-1},handleSelectRow:function(e,t){var n=this,i=e.row,r=this.selection,o=this.afterFullData,a=this.treeConfig,l=this.treeOpts,c=this.treeIndeterminates,u=this.checkboxOpts,d=u.checkField,h=u.checkStrictly,f=u.checkMethod;if(d)if(a&&!h){-1===t?(-1===c.indexOf(i)&&c.push(i),s.a.set(i,d,!1)):s.a.eachTree([i],(function(e){i!==e&&f&&!f({row:e})||(s.a.set(e,d,t),s.a.remove(c,(function(t){return t===e})),n.handleCheckboxReserveRow(i,t))}),l);var p=s.a.findTree(o,(function(e){return e===i}),l);if(p&&p.parent){var g,m=f?p.items.filter((function(e){return f({row:e})})):p.items,v=s.a.find(p.items,(function(e){return c.indexOf(e)>-1}));if(v)g=-1;else{var b=p.items.filter((function(e){return s.a.get(e,d)}));g=b.filter((function(e){return m.indexOf(e)>-1})).length===m.length||!(!b.length&&-1!==t)&&-1}return this.handleSelectRow({row:p.parent},g)}}else f&&!f({row:i})||(s.a.set(i,d,t),this.handleCheckboxReserveRow(i,t));else if(a&&!h){-1===t?(-1===c.indexOf(i)&&c.push(i),s.a.remove(r,(function(e){return e===i}))):s.a.eachTree([i],(function(e){i!==e&&f&&!f({row:e})||(t?r.push(e):s.a.remove(r,(function(t){return t===e})),s.a.remove(c,(function(t){return t===e})),n.handleCheckboxReserveRow(i,t))}),l);var y=s.a.findTree(o,(function(e){return e===i}),l);if(y&&y.parent){var _,w=f?y.items.filter((function(e){return f({row:e})})):y.items,x=s.a.find(y.items,(function(e){return c.indexOf(e)>-1}));if(x)_=-1;else{var C=y.items.filter((function(e){return r.indexOf(e)>-1}));_=C.filter((function(e){return w.indexOf(e)>-1})).length===w.length||!(!C.length&&-1!==t)&&-1}return this.handleSelectRow({row:y.parent},_)}}else f&&!f({row:i})||(t?-1===r.indexOf(i)&&r.push(i):s.a.remove(r,(function(e){return e===i})),this.handleCheckboxReserveRow(i,t));this.checkSelectionStatus()},handleToggleCheckRowEvent:function(e,t){var n=this.selection,i=this.checkboxOpts,r=i.checkField,o=t.row,a=r?!s.a.get(o,r):-1===n.indexOf(o);e?this.triggerCheckRowEvent(e,t,a):this.handleSelectRow(t,a)},triggerCheckRowEvent:function(e,t,n){var i=this.checkboxOpts.checkMethod;if(!i||i({row:t.row})){this.handleSelectRow(t,n);var r=this.getCheckboxRecords();this.$listeners["select-change"]?(N.warn("vxe.error.delEvent",["select-change","checkbox-change"]),this.emitEvent("select-change",Object.assign({records:r,selection:r,reserves:this.getCheckboxReserveRecords(),checked:n},t),e)):this.emitEvent("checkbox-change",Object.assign({records:r,selection:r,reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:n},t),e)}},toggleRowSelection:function(e){return N.warn("vxe.error.delFunc",["toggleRowSelection","toggleCheckboxRow"]),this.toggleCheckboxRow(e)},toggleCheckboxRow:function(e){return this.handleToggleCheckRowEvent(null,{row:e}),this.$nextTick()},setAllSelection:function(e){return N.warn("vxe.error.delFunc",["setAllSelection","setAllCheckboxRow"]),this.setAllCheckboxRow(e)},setAllCheckboxRow:function(e){var t=this,n=this.afterFullData,i=this.treeConfig,r=this.treeOpts,o=this.selection,a=this.checkboxReserveRowMap,l=this.checkboxOpts,c=l.checkField,u=l.reserve,d=l.checkStrictly,h=l.checkMethod,f=[],p=i?[]:o.filter((function(e){return-1===n.indexOf(e)}));if(d)this.isAllSelected=e;else{if(c){var g=function(t){h&&!h({row:t})||(e&&f.push(t),s.a.set(t,c,e))};i?s.a.eachTree(n,g,r):n.forEach(g)}else i?e?s.a.eachTree(n,(function(e){h&&!h({row:e})||f.push(e)}),r):h&&s.a.eachTree(n,(function(e){!h({row:e})&&o.indexOf(e)>-1&&f.push(e)}),r):e?f=h?n.filter((function(e){return o.indexOf(e)>-1||h({row:e})})):n.slice(0):h&&(f=n.filter((function(e){return h({row:e})?0:o.indexOf(e)>-1})));u&&(e?f.forEach((function(e){a[Mt(t,e)]=e})):n.forEach((function(e){return t.handleCheckboxReserveRow(e,!1)}))),this.selection=c?[]:p.concat(f)}this.treeIndeterminates=[],this.checkSelectionStatus()},checkSelectionStatus:function(){var e=this.afterFullData,t=this.selection,n=this.treeIndeterminates,i=this.checkboxOpts,r=this.treeConfig,o=i.checkField,a=i.halfField,l=i.checkStrictly,c=i.checkMethod;if(!l){var u=!1,d=!1;o?(u=e.length&&e.every(c?function(e){return!c({row:e})||s.a.get(e,o)}:function(e){return s.a.get(e,o)}),d=r?a?!u&&e.some((function(e){return s.a.get(e,o)||s.a.get(e,a)||n.indexOf(e)>-1})):!u&&e.some((function(e){return s.a.get(e,o)||n.indexOf(e)>-1})):a?!u&&e.some((function(e){return s.a.get(e,o)||s.a.get(e,a)})):!u&&e.some((function(e){return s.a.get(e,o)}))):(u=e.length&&e.every(c?function(e){return!c({row:e})||t.indexOf(e)>-1}:function(e){return t.indexOf(e)>-1}),d=r?!u&&e.some((function(e){return n.indexOf(e)>-1||t.indexOf(e)>-1})):!u&&e.some((function(e){return t.indexOf(e)>-1}))),this.isAllSelected=u,this.isIndeterminate=d}},handleReserveStatus:function(){var e=this.expandColumn,t=this.treeOpts,n=this.treeConfig,i=this.fullDataRowIdData,r=this.fullAllDataRowMap,o=this.currentRow,a=this.selectRow,s=this.radioReserveRow,l=this.radioOpts,c=this.checkboxOpts,u=this.selection,d=this.rowExpandeds,h=this.treeExpandeds,f=this.expandOpts;if(a&&!r.has(a)&&(this.selectRow=null),l.reserve&&s){var p=Mt(this,s);i[p]&&this.setRadioRow(i[p].row)}this.selection=qt(this,u),c.reserve&&this.setCheckboxRow(Gt(this,this.checkboxReserveRowMap),!0),o&&!r.has(o)&&(this.currentRow=null),this.rowExpandeds=e?qt(this,d):[],e&&f.reserve&&this.setRowExpand(Gt(this,this.rowExpandedReserveRowMap),!0),this.treeExpandeds=n?qt(this,h):[],n&&t.reserve&&this.setTreeExpand(Gt(this,this.treeExpandedReserveRowMap),!0)},getRadioReserveRecord:function(){var e=this.fullDataRowIdData,t=this.radioReserveRow,n=this.radioOpts;return n.reserve&&t&&!e[Mt(this,t)]?t:null},clearRadioReserve:function(){return this.radioReserveRow=null,this.$nextTick()},handleRadioReserveRow:function(e){var t=this.radioOpts;t.reserve&&(this.radioReserveRow=e)},getSelectReserveRecords:function(){return N.warn("vxe.error.delFunc",["getSelectReserveRecords","getCheckboxReserveRecords"]),this.getCheckboxReserveRecords()},getCheckboxReserveRecords:function(){var e=this.fullDataRowIdData,t=this.checkboxReserveRowMap,n=this.checkboxOpts,i=[];return n.reserve&&Object.keys(t).forEach((function(n){e[n]||i.push(t[n])})),i},clearSelectReserve:function(){return N.warn("vxe.error.delFunc",["clearSelectReserve","clearCheckboxReserve"]),this.clearCheckboxReserve()},clearCheckboxReserve:function(){return this.checkboxReserveRowMap={},this.$nextTick()},handleCheckboxReserveRow:function(e,t){var n=this.checkboxReserveRowMap,i=this.checkboxOpts;if(i.reserve){var r=Mt(this,e);t?n[r]=e:n[r]&&delete n[r]}},triggerCheckAllEvent:function(e,t){this.setAllCheckboxRow(t);var n=this.getCheckboxRecords();this.$listeners["select-all"]?(N.warn("vxe.error.delEvent",["select-all","checkbox-all"]),this.emitEvent("select-all",{records:n,selection:n,reserves:this.getCheckboxReserveRecords(),checked:t},e)):this.emitEvent("checkbox-all",{records:n,selection:n,reserves:this.getCheckboxReserveRecords(),indeterminates:this.getCheckboxIndeterminateRecords(),checked:t},e)},toggleAllSelection:function(){return N.warn("vxe.error.delFunc",["toggleAllSelection","toggleAllCheckboxRow"]),this.toggleAllCheckboxRow()},toggleAllCheckboxRow:function(){return this.triggerCheckAllEvent(null,!this.isAllSelected),this.$nextTick()},clearSelection:function(){return N.warn("vxe.error.delFunc",["clearSelection","clearCheckboxRow"]),this.clearCheckboxRow()},clearCheckboxRow:function(){var e=this,t=this.tableFullData,n=this.treeConfig,i=this.treeOpts,r=this.checkboxOpts,o=r.checkField,a=r.reserve;return o&&(n?s.a.eachTree(t,(function(e){return s.a.set(e,o,!1)}),i):t.forEach((function(e){return s.a.set(e,o,!1)}))),a&&t.forEach((function(t){return e.handleCheckboxReserveRow(t,!1)})),this.isAllSelected=!1,this.isIndeterminate=!1,this.selection=[],this.treeIndeterminates=[],this.$nextTick()},handleDefaultRadioChecked:function(){var e=this.radioOpts,t=this.fullDataRowIdData,n=e.checkRowKey,i=e.reserve;if(n&&(t[n]&&this.setRadioRow(t[n].row),i)){var r=Dt(this);this.radioReserveRow=rt({},r,n)}},triggerRadioRowEvent:function(e,t){var n=this.selectRow!==t.row;this.setRadioRow(t.row),n&&this.emitEvent("radio-change",t,e)},triggerCurrentRowEvent:function(e,t){var n=this.currentRow!==t.row;this.setCurrentRow(t.row),n&&this.emitEvent("current-change",t,e)},setCurrentRow:function(e){return this.clearCurrentRow(),this.clearCurrentColumn(),this.currentRow=e,this.highlightCurrentRow&&s.a.arrayEach(this.$el.querySelectorAll('[data-rowid="'.concat(Mt(this,e),'"]')),(function(e){return Nt(e,"row--current")})),this.$nextTick()},isCheckedByRadioRow:function(e){return this.selectRow===e},setRadioRow:function(e){var t=this.radioOpts,n=t.checkMethod;return!e||n&&!n({row:e})||(this.selectRow=e,this.handleRadioReserveRow(e)),this.$nextTick()},clearCurrentRow:function(){return this.currentRow=null,this.hoverRow=null,s.a.arrayEach(this.$el.querySelectorAll(".row--current"),(function(e){return Pt(e,"row--current")})),this.$nextTick()},clearRadioRow:function(){return this.selectRow=null,this.$nextTick()},getCurrentRow:function(){return N.warn("vxe.error.delFunc",["getCurrentRow","getCurrentRecord"]),this.getCurrentRecord()},getCurrentRecord:function(){return this.highlightCurrentRow?this.currentRow:null},getRadioRow:function(){return N.warn("vxe.error.delFunc",["getRadioRow","getRadioRecord"]),this.getRadioRecord()},getRadioRecord:function(){return this.selectRow},triggerHoverEvent:function(e,t){var n=t.row;this.setHoverRow(n)},setHoverRow:function(e){var t=Mt(this,e);this.clearHoverRow(),s.a.arrayEach(this.$el.querySelectorAll('[data-rowid="'.concat(t,'"]')),(function(e){return Nt(e,"row--hover")})),this.hoverRow=e},clearHoverRow:function(){s.a.arrayEach(this.$el.querySelectorAll(".vxe-body--row.row--hover"),(function(e){return Pt(e,"row--hover")})),this.hoverRow=null},triggerHeaderCellClickEvent:function(e,t){var n=this._lastResizeTime,i=this.sortOpts,r=t.column,o=e.currentTarget,a=n&&n>Date.now()-300,s=Rt(e,o,"vxe-cell--sort").flag,l=Rt(e,o,"vxe-cell--filter").flag;return"cell"!==i.trigger||a||s||l||this.triggerSortEvent(e,r,Ht(this,r)),this.emitEvent("header-cell-click",Object.assign({triggerResizable:a,triggerSort:s,triggerFilter:l,cell:o},t),e),this.highlightCurrentColumn?this.setCurrentColumn(r):this.$nextTick()},triggerHeaderCellDBLClickEvent:function(e,t){this.emitEvent("header-cell-dblclick",Object.assign({cell:e.currentTarget},t),e)},getCurrentColumn:function(){return this.highlightCurrentColumn?this.currentColumn:null},setCurrentColumn:function(e){return this.clearCurrentRow(),this.clearCurrentColumn(),this.currentColumn=e,this.$nextTick()},clearCurrentColumn:function(){return this.currentColumn=null,this.$nextTick()},checkValidate:function(e){return it._valid?this.triggerValidate(e):this.$nextTick()},handleChangeCell:function(e,t){var n=this;this.checkValidate("blur").catch((function(e){return e})).then((function(){n.handleActived(t,e).then((function(){return n.checkValidate("change")})).catch((function(e){return e}))}))},triggerCellClickEvent:function(e,t){var n=this.highlightCurrentRow,i=this.editStore,r=this.radioOpts,o=this.expandOpts,a=this.treeOpts,s=this.editConfig,l=this.editOpts,c=this.checkboxOpts,u=this.mouseConfig,d=this.mouseOpts,h=i.actived,f=t,p=f.row,g=f.column,m=g.type,v=g.treeNode,b="radio"===m,y="checkbox"===m||"selection"===m,_="expand"===m,w=e.currentTarget,x=b&&Rt(e,w,"vxe-cell--radio").flag,C=y&&Rt(e,w,"vxe-cell--checkbox").flag,S=v&&Rt(e,w,"vxe-tree--btn-wrapper").flag,k=_&&Rt(e,w,"vxe-table--expanded").flag;t=Object.assign({cell:w,triggerRadio:x,triggerCheckbox:C,triggerTreeNode:S,triggerExpandNode:k},t);var O=u&&d.checked;!k&&("row"===o.trigger||_&&"cell"===o.trigger)&&this.triggerRowExpandEvent(e,t),("row"===a.trigger||v&&"cell"===a.trigger)&&this.triggerTreeExpandEvent(e,t),S||(k||(n&&(C||x||this.triggerCurrentRowEvent(e,t)),!x&&("row"===r.trigger||b&&"cell"===r.trigger)&&this.triggerRadioRowEvent(e,t),!C&&("row"===c.trigger||y&&"cell"===c.trigger)&&this.handleToggleCheckRowEvent(e,t)),O||s&&("manual"===l.trigger?h.args&&h.row===p&&g!==h.column&&this.handleChangeCell(e,t):h.args&&p===h.row&&g===h.column||("click"===l.trigger||"dblclick"===l.trigger&&"row"===l.mode&&h.row===p)&&this.handleChangeCell(e,t))),this.emitEvent("cell-click",t,e)},triggerCellDBLClickEvent:function(e,t){var n=this,i=this.editStore,r=this.editConfig,o=this.editOpts,a=i.actived,s=e.currentTarget;t.cell=s,r&&"dblclick"===o.trigger&&(a.args&&e.currentTarget===a.args.cell||("row"===o.mode?this.checkValidate("blur").catch((function(e){return e})).then((function(){n.handleActived(t,e).then((function(){return n.checkValidate("change")})).catch((function(e){return e}))})):"cell"===o.mode&&this.handleActived(t,e).then((function(){return n.checkValidate("change")})).catch((function(e){return e})))),this.emitEvent("cell-dblclick",t,e)},handleDefaultSort:function(){var e=this.sortOpts.defaultSort;if(e){var t=e.field,n=e.order;if(t&&n){var i=s.a.find(this.tableFullColumn,(function(e){return e.property===t}));i&&!i.order&&this.sort(t,n)}}},triggerSortEvent:function(e,t,n){var i=t.property;if(t.sortable||t.remoteSort){n&&t.order!==n?this.sort(i,n):this.clearSort();var r={column:t,property:i,order:t.order,sortBy:t.sortBy,sortList:this.getSortColumns()};this.emitEvent("sort-change",r,e)}},sort:function(e,t){var n=this.tableFullColumn,i=this.sortOpts,r=this.getColumnByField(e);if(r){var o=s.a.isBoolean(r.remoteSort)?r.remoteSort:i.remote;if(r.sortable||r.remoteSort)return arguments.length<=1&&(t=Ht(this,r)),r.order!==t&&(n.forEach((function(e){e.order=null})),r.order=t,o||this.handleTableData(!0)),this.$nextTick().then(this.updateStyle)}return this.$nextTick()},clearSort:function(){return this.tableFullColumn.forEach((function(e){e.order=null})),this.handleTableData(!0)},getSortColumn:function(){return s.a.find(this.tableFullColumn,(function(e){return(e.sortable||e.remoteSort)&&e.order}))},isSort:function(e){if(e){var t=this.getColumnByField(e);return t&&(t.sortable||t.remoteSort)&&t.order}return this.getSortColumns().length>0},getSortColumns:function(){var e=[];return this.tableFullColumn.forEach((function(t){var n=t.order;(t.sortable||t.remoteSort)&&n&&e.push({column:t,sortBy:t.sortBy,property:t.property,order:n})})),e},closeFilter:function(){return Object.assign(this.filterStore,{isAllSelected:!1,isIndeterminate:!1,options:[],visible:!1}),this.$nextTick()},isFilter:function(e){var t=s.a.isString(e)?this.getColumnByField(e):e;return t?t.filters&&t.filters.some((function(e){return e.checked})):this.visibleColumn.some((function(e){return e.filters&&e.filters.some((function(e){return e.checked}))}))},isRowExpandLoaded:function(e){var t=this.fullAllDataRowMap.get(e);return t&&t.expandLoaded},clearRowExpandLoaded:function(e){var t=this.expandOpts,n=this.expandLazyLoadeds,i=this.fullAllDataRowMap,r=t.lazy,o=i.get(e);return r&&o&&(o.expandLoaded=!1,s.a.remove(n,(function(t){return e===t}))),this.$nextTick()},reloadExpandContent:function(e){var t=this,n=this.expandOpts,i=this.expandLazyLoadeds,r=n.lazy;return r&&-1===i.indexOf(e)&&this.clearRowExpandLoaded(e).then((function(){return t.handleAsyncRowExpand(e)})),this.$nextTick()},triggerRowExpandEvent:function(e,t){var n=this.$listeners,i=this.expandOpts,r=this.expandLazyLoadeds,o=this.expandColumn,a=t.row,s=i.lazy;if(!s||-1===r.indexOf(a)){var l=!this.isExpandByRow(a),c=this.getColumnIndex(o),u=this.getVMColumnIndex(o);this.setRowExpand(a,l),n["toggle-expand-change"]?(N.warn("vxe.error.delEvent",["toggle-expand-change","toggle-row-expand"]),this.emitEvent("toggle-expand-change",{expanded:l,column:o,columnIndex:c,$columnIndex:u,row:a,rowIndex:this.getRowIndex(a),$rowIndex:this.getVMRowIndex(a)},e)):this.emitEvent("toggle-row-expand",{expanded:l,column:o,columnIndex:c,$columnIndex:u,row:a,rowIndex:this.getRowIndex(a),$rowIndex:this.getVMRowIndex(a)},e)}},toggleRowExpansion:function(e){return N.warn("vxe.error.delFunc",["toggleRowExpansion","toggleRowExpand"]),this.toggleRowExpand(e)},toggleRowExpand:function(e){return this.setRowExpand(e,!this.isExpandByRow(e))},handleDefaultRowExpand:function(){var e=this.expandOpts,t=this.fullDataRowIdData,n=e.expandAll,i=e.expandRowKeys;if(n)this.setAllRowExpand(!0);else if(i){var r=[];i.forEach((function(e){t[e]&&r.push(t[e].row)})),this.setRowExpand(r,!0)}},setAllRowExpansion:function(e){return N.warn("vxe.error.delFunc",["setAllRowExpansion","setAllRowExpand"]),this.setAllRowExpand(e)},setAllRowExpand:function(e){return this.setRowExpand(this.expandOpts.lazy?this.tableData:this.tableFullData,e)},handleAsyncRowExpand:function(e){var t=this,n=this.fullAllDataRowMap.get(e);return new Promise((function(i){t.expandLazyLoadeds.push(e),t.expandOpts.loadMethod({$table:t,row:e,rowIndex:t.getRowIndex(e),$rowIndex:t.getVMRowIndex(e)}).catch((function(e){return e})).then((function(){n.expandLoaded=!0,s.a.remove(t.expandLazyLoadeds,(function(t){return t===e})),t.rowExpandeds.push(e),i(t.$nextTick().then(t.recalculate))}))}))},setRowExpansion:function(e,t){return N.warn("vxe.error.delFunc",["setRowExpansion","setRowExpand"]),this.setRowExpand(e,t)},setRowExpand:function(e,t){var n=this,i=this.fullAllDataRowMap,r=this.expandLazyLoadeds,o=this.expandOpts,a=this.expandColumn,l=this.rowExpandeds,c=o.reserve,u=o.lazy,d=o.accordion,h=o.toggleMethod,f=[],p=this.getColumnIndex(a),g=this.getVMColumnIndex(a);if(e){s.a.isArray(e)||(e=[e]),d&&(l=[],e=e.slice(e.length-1,e.length));var m=h?e.filter((function(e){return h({expanded:t,column:a,columnIndex:p,$columnIndex:g,row:e,rowIndex:n.getRowIndex(e),$rowIndex:n.getVMRowIndex(e)})})):e;t?m.forEach((function(e){if(-1===l.indexOf(e)){var t=i.get(e),o=u&&!t.expandLoaded&&-1===r.indexOf(e);o?f.push(n.handleAsyncRowExpand(e)):l.push(e)}})):s.a.remove(l,(function(e){return m.indexOf(e)>-1})),c&&m.forEach((function(e){return n.handleRowExpandReserve(e,t)}))}return this.rowExpandeds=l,Promise.all(f).then(this.recalculate)},hasRowExpand:function(e){return N.warn("vxe.error.delFunc",["hasRowExpand","isExpandByRow"]),this.isExpandByRow(e)},isExpandByRow:function(e){return this.rowExpandeds.indexOf(e)>-1},clearRowExpand:function(){var e=this,t=this.expandOpts,n=this.rowExpandeds,i=this.tableFullData,r=t.reserve,o=n.length;return this.rowExpandeds=[],r&&i.forEach((function(t){return e.handleRowExpandReserve(t,!1)})),this.$nextTick().then((function(){o&&e.recalculate()}))},clearRowExpandReserve:function(){return this.rowExpandedReserveRowMap={},this.$nextTick()},handleRowExpandReserve:function(e,t){var n=this.rowExpandedReserveRowMap,i=this.expandOpts;if(i.reserve){var r=Mt(this,e);t?n[r]=e:n[r]&&delete n[r]}},getRowExpandRecords:function(){return this.rowExpandeds.slice(0)},getTreeExpandRecords:function(){return this.treeExpandeds.slice(0)},getTreeStatus:function(){return this.treeConfig?{config:this.treeOpts,rowExpandeds:this.getTreeExpandRecords()}:null},isTreeExpandLoaded:function(e){var t=this.fullAllDataRowMap.get(e);return t&&t.treeLoaded},clearTreeExpandLoaded:function(e){var t=this.treeOpts,n=this.treeExpandeds,i=this.fullAllDataRowMap,r=t.lazy,o=i.get(e);return r&&o&&(o.treeLoaded=!1,s.a.remove(n,(function(t){return e===t}))),this.$nextTick()},reloadTreeChilds:function(e){var t=this,n=this.treeOpts,i=this.treeLazyLoadeds,r=n.lazy,o=n.hasChild;return r&&e[o]&&-1===i.indexOf(e)&&this.clearTreeExpandLoaded(e).then((function(){return t.handleAsyncTreeExpandChilds(e)})),this.$nextTick()},triggerTreeExpandEvent:function(e,t){var n=this.$listeners,i=this.treeOpts,r=this.treeLazyLoadeds,o=t.row,a=t.column,s=i.lazy;if(!s||-1===r.indexOf(o)){var l=!this.isTreeExpandByRow(o),c=this.getColumnIndex(a),u=this.getVMColumnIndex(a);this.setTreeExpand(o,l),n["toggle-tree-change"]?(N.warn("vxe.error.delEvent",["toggle-tree-change","toggle-tree-expand"]),this.emitEvent("toggle-tree-change",{expanded:l,column:a,columnIndex:c,$columnIndex:u,row:o},e)):this.emitEvent("toggle-tree-expand",{expanded:l,column:a,columnIndex:c,$columnIndex:u,row:o},e)}},toggleTreeExpansion:function(e){return N.warn("vxe.error.delFunc",["toggleTreeExpansion","toggleTreeExpand"]),this.toggleTreeExpand(e)},toggleTreeExpand:function(e){return this.setTreeExpand(e,!this.isTreeExpandByRow(e))},handleDefaultTreeExpand:function(){var e=this.treeConfig,t=this.treeOpts,n=this.tableFullData;if(e){var i=t.expandAll,r=t.expandRowKeys;if(i)this.setAllTreeExpand(!0);else if(r){var o=[],a=Dt(this);r.forEach((function(e){var i=s.a.findTree(n,(function(t){return e===s.a.get(t,a)}),t);i&&o.push(i.item)})),this.setTreeExpand(o,!0)}}},handleAsyncTreeExpandChilds:function(e){var t=this,n=this.fullAllDataRowMap,i=this.treeExpandeds,r=this.treeOpts,o=this.treeLazyLoadeds,a=this.checkboxOpts,l=r.loadMethod,c=a.checkStrictly,u=n.get(e);return new Promise((function(n){o.push(e),l({$table:t,row:e}).catch((function(){return[]})).then((function(r){u.treeLoaded=!0,s.a.remove(o,(function(t){return t===e})),s.a.isArray(r)||(r=[]),r&&t.loadChildren(e,r).then((function(n){n.length&&-1===i.indexOf(e)&&i.push(e),!c&&t.isCheckedByCheckboxRow(e)&&t.setCheckboxRow(n,!0)})),n(t.$nextTick().then(t.recalculate))}))}))},setAllTreeExpansion:function(e){return N.warn("vxe.error.delFunc",["setAllTreeExpansion","setAllTreeExpand"]),this.setAllTreeExpand(e)},setAllTreeExpand:function(e){var t=this.tableFullData,n=this.treeOpts,i=n.lazy,r=n.children,o=[];return s.a.eachTree(t,(function(e){var t=e[r];(i||t&&t.length)&&o.push(e)}),n),this.setTreeExpand(o,e)},setTreeExpansion:function(e,t){return N.warn("vxe.error.delFunc",["setTreeExpansion","setTreeExpand"]),this.setTreeExpand(e,t)},setTreeExpand:function(e,t){var n=this,i=this.fullAllDataRowMap,r=this.tableFullData,o=this.treeExpandeds,a=this.treeOpts,l=this.treeLazyLoadeds,c=this.treeNodeColumn,u=a.reserve,d=a.lazy,h=a.hasChild,f=a.children,p=a.accordion,g=a.toggleMethod,m=[],v=this.getColumnIndex(c),b=this.getVMColumnIndex(c);if(e&&(s.a.isArray(e)||(e=[e]),e.length)){var y=g?e.filter((function(e){return g({expanded:t,column:c,columnIndex:v,$columnIndex:b,row:e})})):e;if(p){y=y.length?[y[y.length-1]]:[];var _=s.a.findTree(r,(function(e){return e===y[0]}),a);_&&s.a.remove(o,(function(e){return _.items.indexOf(e)>-1}))}return t?y.forEach((function(e){if(-1===o.indexOf(e)){var t=i.get(e),r=d&&e[h]&&!t.treeLoaded&&-1===l.indexOf(e);r?m.push(n.handleAsyncTreeExpandChilds(e)):e[f]&&e[f].length&&o.push(e)}})):s.a.remove(o,(function(e){return y.indexOf(e)>-1})),u&&y.forEach((function(e){return n.handleTreeExpandReserve(e,t)})),Promise.all(m).then(this.recalculate)}return this.$nextTick()},hasTreeExpand:function(e){return N.warn("vxe.error.delFunc",["hasTreeExpand","isTreeExpandByRow"]),this.isTreeExpandByRow(e)},isTreeExpandByRow:function(e){return this.treeExpandeds.indexOf(e)>-1},clearTreeExpand:function(){var e=this,t=this.treeOpts,n=this.treeExpandeds,i=this.tableFullData,r=t.reserve,o=n.length;return this.treeExpandeds=[],r&&s.a.eachTree(i,(function(t){return e.handleTreeExpandReserve(t,!1)}),t),this.$nextTick().then((function(){o&&e.recalculate()}))},clearTreeExpandReserve:function(){return this.treeExpandedReserveRowMap={},this.$nextTick()},handleTreeExpandReserve:function(e,t){var n=this.treeExpandedReserveRowMap,i=this.treeOpts;if(i.reserve){var r=Mt(this,e);t?n[r]=e:n[r]&&delete n[r]}},getVirtualScroller:function(){return N.warn("vxe.error.delFunc",["getVirtualScroller","getScroll"]),this.getScroll()},getTableScroll:function(){return N.warn("vxe.error.delFunc",["getTableScroll","getScroll"]),this.getScroll()},getScroll:function(){var e=this.$refs,t=this.scrollXLoad,n=this.scrollYLoad,i=e.tableBody.$el;return{virtualX:t,virtualY:n,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}},triggerScrollXEvent:function(){this.loadScrollXData()},loadScrollXData:function(e){for(var t=this.$refs,n=this.visibleColumn,i=this.scrollXStore,r=i.startIndex,o=i.renderSize,a=i.offsetSize,s=i.visibleSize,l=t.tableBody.$el,c=l.scrollLeft,u=0,d=0,h=e||!1,f=n.length,p=0;p<f;p++)if(d+=n[p].renderWidth,c<d){u=p;break}if(e||i.visibleIndex!==u){var g=Math.min(Math.floor((o-s)/2),s);i.visibleIndex===u?i.startIndex=u:i.visibleIndex>u?(h=u-a<=r,h&&(i.startIndex=Math.max(0,Math.max(0,u-g)))):(h=u+s+a>=r+o,h&&(i.startIndex=Math.max(0,Math.min(n.length-o,u-g)))),h&&this.updateScrollXData(),i.visibleIndex=u}this.closeTooltip()},triggerScrollYEvent:function(e){var t=this.scrollYStore,n=t.adaptive,i=t.offsetSize,r=t.visibleSize;Ft&&n&&2*i+r<=80?this.loadScrollYData(e):this.debounceScrollY(e)},debounceScrollY:s.a.debounce((function(e){this.loadScrollYData(e)}),jt,{leading:!1,trailing:!0}),loadScrollYData:function(e){var t=this.afterFullData,n=this.scrollYStore,i=this.isLoadData,r=n.startIndex,o=n.renderSize,a=n.offsetSize,s=n.visibleSize,l=n.rowHeight,c=e.target,u=c.scrollTop,d=Math.ceil(u/l),h=!1;if(i||n.visibleIndex!==d){var f=Math.min(Math.floor((o-s)/2),s);n.visibleIndex>d?(h=d-a<=r,h&&(n.startIndex=Math.max(0,d-Math.max(f,o-s)))):(h=d+s+a>=r+o,h&&(n.startIndex=Math.max(0,Math.min(t.length-o,d-f)))),h&&this.updateScrollYData(),n.visibleIndex=d,this.isLoadData=!1}},computeRowHeight:function(){var e,t=this.$refs.tableBody,n=t?t.$el:null,i=this.$refs.tableHeader;if(n){var r=n.querySelector("tbody>tr");!r&&i&&(r=i.$el.querySelector("thead>tr")),r&&(e=r.clientHeight)}e||(e=this.rowHeightMaps[this.vSize||"default"]),this.rowHeight=e},computeScrollLoad:function(){var e=this;return this.$nextTick().then((function(){var t=e.vSize,n=e.scrollXLoad,i=e.scrollYLoad,r=e.sYOpts,o=e.scrollYStore,a=e.sXOpts,l=e.scrollXStore,c=e.visibleColumn,u=e.rowHeightMaps,d=e.$refs.tableBody,h=d?d.$el:null,f=e.$refs.tableHeader;if(h){if(n){var p=h.clientWidth,g=s.a.toNumber(a.vSize);if(!a.vSize)for(var m,v=g=c.length,b=0,y=0;y<v;y++)if(m=c[y],b+=m.renderWidth,b>p){g=y+1;break}l.visibleSize=g,a.oSize||(l.offsetSize=g),a.rSize||(l.renderSize=Math.max(8,g+6)),e.updateScrollXData()}else e.updateScrollXSpace();if(i){var _;if(r.rHeight)_=r.rHeight;else{var w=h.querySelector("tbody>tr");!w&&f&&(w=f.$el.querySelector("thead>tr")),w&&(_=w.clientHeight)}_||(_=u[t||"default"]);var x=s.a.toNumber(r.vSize||Math.ceil(h.clientHeight/_));o.visibleSize=x,o.rowHeight=_,r.oSize||(o.offsetSize=x),r.rSize||(o.renderSize=Math.max(6,Lt.edge?10*x:Ft?x+2:6*x)),e.updateScrollYData()}else e.updateScrollYSpace()}e.$nextTick(e.updateStyle)}))},updateScrollXData:function(){var e=this.visibleColumn,t=this.scrollXStore;this.tableColumn=e.slice(t.startIndex,t.startIndex+t.renderSize),this.updateScrollXSpace()},updateScrollXSpace:function(){var e=this.$refs,t=this.elemStore,n=this.visibleColumn,i=this.scrollXStore,r=this.scrollXLoad,o=this.tableWidth,a=this.scrollbarWidth,s=e.tableHeader,l=e.tableBody,c=e.tableFooter,u=s?s.$el.querySelector(".vxe-table--header"):null,d=l.$el.querySelector(".vxe-table--body"),h=c?c.$el.querySelector(".vxe-table--footer"):null,f=n.slice(0,i.startIndex).reduce((function(e,t){return e+t.renderWidth}),0),p="";r&&(p="".concat(f,"px")),u&&(u.style.marginLeft=p),d.style.marginLeft=p,h&&(h.style.marginLeft=p);var g=["main"];g.forEach((function(e){var n=["header","body","footer"];n.forEach((function(n){var i=t["".concat(e,"-").concat(n,"-xSpace")];i&&(i.style.width=r?"".concat(o+("header"===n?a:0),"px"):"")}))})),this.$nextTick(this.updateStyle)},updateScrollYData:function(){this.handleTableData(),this.updateScrollYSpace()},updateScrollYSpace:function(){var e=this.elemStore,t=this.scrollYStore,n=this.scrollYLoad,i=this.afterFullData,r=i.length*t.rowHeight,o=Math.max(t.startIndex*t.rowHeight,0),a=["main","left","right"],s="",l="";n&&(s="".concat(o,"px"),l="".concat(r,"px")),a.forEach((function(t){var n=["header","body","footer"],i=e["".concat(t,"-body-table")];i&&(i.style.marginTop=s),n.forEach((function(n){var i=e["".concat(t,"-").concat(n,"-ySpace")];i&&(i.style.height=l)}))})),this.$nextTick(this.updateStyle)},scrollTo:function(e,t){var n=this,i=this.$refs,r=i.tableBody,o=i.rightBody,a=i.tableFooter,l=r?r.$el:null,c=o?o.$el:null,u=c||l,d=a?a.$el:null,h=d||l;return s.a.isNumber(e)&&(h.scrollLeft=e),s.a.isNumber(t)&&(u.scrollTop=t),this.scrollXLoad||this.scrollYLoad?new Promise((function(e){return setTimeout((function(){return e(n.$nextTick())}),50)})):this.$nextTick()},scrollToRow:function(e,t){var n=[];return e&&(this.treeConfig?n.push(this.scrollToTreeRow(e)):n.push($.rowToVisible(this,e))),t&&n.push(this.scrollToColumn(t)),Promise.all(n)},scrollToColumn:function(e){return e&&this.fullColumnMap.has(e)?$.colToVisible(this,e):this.$nextTick()},scrollToTreeRow:function(e){var t=this,n=this.tableFullData,i=this.treeConfig,r=this.treeOpts,o=[];if(i){var a=s.a.findTree(n,(function(t){return t===e}),r);if(a){var l=a.nodes;l.forEach((function(e,n){n<l.length-1&&!t.isTreeExpandByRow(e)&&o.push(t.setTreeExpand(e,!0))}))}}return Promise.all(o).then((function(){return $.rowToVisible(t,e)}))},clearScroll:function(){var e=this.$refs,t=e.tableBody,n=e.rightBody,i=e.tableFooter,r=t?t.$el:null,o=n?n.$el:null,a=i?i.$el:null;return o&&(o.scrollTop=0),a&&(a.scrollLeft=0),r&&(r.scrollTop=0,r.scrollLeft=0),this.$nextTick()},updateFooter:function(){var e=this.showFooter,t=this.visibleColumn,n=this.footerMethod;return e&&n&&(this.footerTableData=t.length?n({columns:t,data:this.afterFullData,$table:this,$grid:this.$xegrid}):[]),this.$nextTick()},updateStatus:function(e,t){var n=this,i=!s.a.isUndefined(t);return this.$nextTick().then((function(){var r=n.$refs,o=n.editRules,a=n.validStore;if(e&&r.tableBody&&o){var s=e.row,l=e.column,c="change";if(n.hasCellRules(c,s,l)){var u=n.getCell(s,l);if(u)return n.validCellRules(c,s,l,t).then((function(){i&&a.visible&&Et(s,l,t),n.clearValidate()})).catch((function(e){var r=e.rule;i&&Et(s,l,t),n.showValidTooltip({rule:r,row:s,column:l,cell:u})}))}}}))},handleDefaultMergeCells:function(){this.setMergeCells(this.mergeCells)},setMergeCells:function(e){var t=this;return this.spanMethod&&N.error("vxe.error.errConflicts",["merge-cells","span-method"]),Kt(this,e,this.mergeList,this.afterFullData),this.$nextTick().then((function(){return t.updateCellAreas()}))},removeMergeCells:function(e){var t=this;this.spanMethod&&N.error("vxe.error.errConflicts",["merge-cells","span-method"]);var n=Yt(this,e,this.mergeList,this.afterFullData);return this.$nextTick().then((function(){return t.updateCellAreas(),n}))},getMergeCells:function(){return this.mergeList.slice(0)},clearMergeCells:function(){return this.mergeList=[],this.$nextTick()},handleDefaultMergeFooterItems:function(){this.setMergeFooterItems(this.mergeFooterItems)},setMergeFooterItems:function(e){var t=this;return this.footerSpanMethod&&N.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]),Kt(this,e,this.mergeFooterList,null),this.$nextTick().then((function(){return t.updateCellAreas()}))},removeMergeFooterItems:function(e){var t=this;this.footerSpanMethod&&N.error("vxe.error.errConflicts",["merge-footer-items","footer-span-method"]);var n=Yt(this,e,this.mergeFooterList,null);return this.$nextTick().then((function(){return t.updateCellAreas(),n}))},getMergeFooterItems:function(){return this.mergeFooterList.slice(0)},clearMergeFooterItems:function(){return this.mergeFooterList=[],this.$nextTick()},updateZindex:function(){this.zIndex?this.tZindex=this.zIndex:this.tZindex<N.getLastZIndex()&&(this.tZindex=N.nextZIndex())},updateCellAreas:function(){this.mouseConfig&&this.mouseOpts.area&&this.handleUpdateCellAreas&&this.handleUpdateCellAreas()},emitEvent:function(e,t,n){this.$emit(e,Object.assign({$table:this,$grid:this.$xegrid,$event:n},t),n)},focus:function(){return this.isActivated=!0,this.$nextTick()},blur:function(){return this.isActivated=!1,this.$nextTick()},connect:function(e){return e&&e.syncUpdate?(e.syncUpdate({collectColumn:this.collectColumn,$table:this}),this.$toolbar=e):N.error("vxe.error.barUnableLink"),this.$nextTick()},getEventTargetNode:Rt,getCell:function(e,t){var n=this.$refs,i=Mt(this,e),r=n["".concat(t.fixed||"table","Body")]||n.tableBody;return r&&r.$el?r.$el.querySelector('.vxe-body--row[data-rowid="'.concat(i,'"] .').concat(t.id)):null},getCellLabel:function(e,t){var n=t.formatter,i=N.getCellValue(e,t),r=i;if(n){var o,a,l=t.id,c=this.fullAllDataRowMap,u=c.has(e);if(u&&(o=c.get(e),a=o.formatData,a||(a=c.get(e).formatData={}),o&&a[l]&&a[l].value===i))return a[l].label;var d={cellValue:i,row:e,rowIndex:this.getRowIndex(e),column:t,columnIndex:this.getColumnIndex(t)};r=s.a.isString(n)?s.a[n]?s.a[n](i):D.get(n)?D.get(n)(d):"":s.a.isArray(n)?s.a[n[0]]?s.a[n[0]].apply(s.a,[i].concat(w(n.slice(1)))):D.get(n[0])?D.get(n[0]).apply(void 0,[d].concat(w(n.slice(1)))):"":n(d),a&&(a[l]={value:i,label:r})}return r}},Qt="setFilter,filter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,clearCopyCellArea,setCellAreas,openFind,openReplace,getMouseSelecteds,getMouseCheckeds,getSelectedCell,getSelectedRanges,clearCopyed,clearChecked,clearHeaderChecked,clearIndexChecked,clearSelected,insert,insertAt,remove,removeSelecteds,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearActived,getActiveRecord,getActiveRow,hasActiveRow,isActiveByRow,setActiveRow,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,exportCsv,openExport,exportData,openImport,importData,saveFile,readFile,importByFile,print".split(",");Qt.forEach((function(e){Zt[e]=function(){return this["_".concat(e)]?this["_".concat(e)].apply(this,arguments):null}}));var Jt=Zt;function en(e,t,n){var i=t.tableData,r=t.tableColumn,o=t.visibleColumn,a=t.tableGroupColumn,s=t.isGroup,l=t.vSize,c=t.showHeader,u=t.showFooter,d=t.columnStore,h=t.footerTableData,f=d["".concat(n,"List")];return e("div",{class:"vxe-table--fixed-".concat(n,"-wrapper"),ref:"".concat(n,"Container")},[c?e("vxe-table-header",{props:{fixedType:n,tableData:i,tableColumn:r,visibleColumn:o,tableGroupColumn:a,size:l,fixedColumn:f,isGroup:s},ref:"".concat(n,"Header")}):null,e("vxe-table-body",{props:{fixedType:n,tableData:i,tableColumn:r,visibleColumn:o,fixedColumn:f,size:l,isGroup:s},ref:"".concat(n,"Body")}),u&&h?e("vxe-table-footer",{props:{footerTableData:h,tableColumn:r,visibleColumn:o,fixedColumn:f,fixedType:n,size:l},ref:"".concat(n,"Footer")}):null])}var tn={name:"VxeTable",props:{id:String,data:Array,customs:Array,height:[Number,String],maxHeight:[Number,String],resizable:{type:Boolean,default:function(){return u.table.resizable}},stripe:{type:Boolean,default:function(){return u.table.stripe}},border:{type:[Boolean,String],default:function(){return u.table.border}},round:{type:Boolean,default:function(){return u.table.round}},size:{type:String,default:function(){return u.table.size||u.size}},fit:{type:Boolean,default:function(){return u.table.fit}},loading:Boolean,align:{type:String,default:function(){return u.table.align}},headerAlign:{type:String,default:function(){return u.table.headerAlign}},footerAlign:{type:String,default:function(){return u.table.footerAlign}},showHeader:{type:Boolean,default:function(){return u.table.showHeader}},startIndex:{type:Number,default:0},highlightCurrentRow:{type:Boolean,default:function(){return u.table.highlightCurrentRow}},highlightHoverRow:{type:Boolean,default:function(){return u.table.highlightHoverRow}},highlightCurrentColumn:{type:Boolean,default:function(){return u.table.highlightCurrentColumn}},highlightHoverColumn:{type:Boolean,default:function(){return u.table.highlightHoverColumn}},highlightCell:Boolean,showFooter:Boolean,footerMethod:{type:Function,default:u.table.footerMethod},rowClassName:[String,Function],cellClassName:[String,Function],headerRowClassName:[String,Function],headerCellClassName:[String,Function],footerRowClassName:[String,Function],footerCellClassName:[String,Function],cellStyle:[Object,Function],headerCellStyle:[Object,Function],footerCellStyle:[Object,Function],rowStyle:[Object,Function],headerRowStyle:[Object,Function],footerRowStyle:[Object,Function],mergeCells:Array,mergeFooterItems:Array,spanMethod:Function,footerSpanMethod:Function,showOverflow:{type:[Boolean,String],default:function(){return u.table.showOverflow}},showHeaderOverflow:{type:[Boolean,String],default:function(){return u.table.showHeaderOverflow}},showFooterOverflow:{type:[Boolean,String],default:function(){return u.table.showFooterOverflow}},remoteFilter:Boolean,remoteSort:Boolean,sortMethod:Function,columnWidth:[Number,String],columnMinWidth:[Number,String],columnKey:Boolean,rowKey:Boolean,rowId:{type:String,default:function(){return u.table.rowId}},zIndex:Number,emptyText:{type:String,default:function(){return u.table.emptyText}},keepSource:{type:Boolean,default:function(){return u.table.keepSource}},autoResize:{type:Boolean,default:function(){return u.table.autoResize}},syncResize:[Boolean,String,Number],columnConfig:Object,resizableConfig:Object,seqConfig:Object,sortConfig:Object,filterConfig:Object,radioConfig:Object,selectConfig:Object,checkboxConfig:Object,tooltipConfig:Object,exportConfig:[Boolean,Object],importConfig:[Boolean,Object],printConfig:Object,expandConfig:Object,treeConfig:[Boolean,Object],menuConfig:[Boolean,Object],contextMenu:[Boolean,Object],mouseConfig:Object,areaConfig:Object,keyboardConfig:Object,clipConfig:Object,fnrConfig:Object,editConfig:[Boolean,Object],validConfig:Object,editRules:Object,emptyRender:[Boolean,Object],customConfig:[Boolean,Object],scrollX:Object,scrollY:Object,cloak:{type:Boolean,default:function(){return u.table.cloak}},animat:{type:Boolean,default:function(){return u.table.animat}},delayHover:{type:Number,default:function(){return u.table.delayHover}},optimization:Object,params:Object},components:{VxeTableBody:yt},provide:function(){return{$xetable:this,xecolgroup:null}},inject:{$xegrid:{default:null}},mixins:[],data:function(){return{tId:"".concat(s.a.uniqueId()),isCloak:!1,collectColumn:[],tableGroupColumn:[],tableFullColumn:[],visibleColumn:[],tableColumn:[],tableData:[],scrollXLoad:!1,scrollYLoad:!1,overflowY:!0,overflowX:!1,scrollbarWidth:0,scrollbarHeight:0,rowHeight:0,parentHeight:0,isAllSelected:!1,isIndeterminate:!1,selection:[],currentRow:null,currentColumn:null,selectRow:null,footerTableData:[],expandColumn:null,treeNodeColumn:null,rowExpandeds:[],expandLazyLoadeds:[],treeExpandeds:[],treeLazyLoadeds:[],treeIndeterminates:[],mergeList:[],mergeFooterList:[],hasFilterPanel:!1,filterStore:{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1},columnStore:{leftList:[],centerList:[],rightList:[],resizeList:[],pxList:[],pxMinList:[],scaleList:[],scaleMinList:[],autoList:[]},ctxMenuStore:{selected:null,visible:!1,showChild:!1,selectChild:null,list:[],style:null},editStore:{indexs:{columns:[]},titles:{columns:[]},checked:{rows:[],columns:[],tRows:[],tColumns:[]},selected:{row:null,column:null},copyed:{cut:!1,rows:[],columns:[]},actived:{row:null,column:null},insertList:[],removeList:[]},validStore:{visible:!1,row:null,column:null,content:"",rule:null,isArrow:!1},importStore:{file:null,type:"",modeList:[],typeList:[],filename:"",visible:!1},importParams:{mode:"",types:null,message:!0},exportStore:{name:"",modeList:[],typeList:[],columns:[],hasFooter:!1,visible:!1},exportParams:{filename:"",sheetName:"",mode:"",type:"",original:!1,message:!0,isHeader:!1,isFooter:!1}}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},validOpts:function(){return Object.assign({message:"default"},u.table.validConfig,this.validConfig)},sXOpts:function(){return Object.assign({},u.table.scrollX,this.optimizeOpts.scrollX,this.scrollX)},sYOpts:function(){return Object.assign({},u.table.scrollY,this.optimizeOpts.scrollY,this.scrollY)},optimizeOpts:function(){return Object.assign({},u.table.optimization,this.optimization)},rowHeightMaps:function(){return{default:48,medium:44,small:40,mini:36}},columnOpts:function(){return Object.assign({},this.columnConfig)},resizableOpts:function(){return Object.assign({},u.table.resizableConfig,this.resizableConfig)},seqOpts:function(){return Object.assign({startIndex:0},u.table.seqConfig,this.seqConfig)},radioOpts:function(){return Object.assign({},u.table.radioConfig,this.radioConfig)},checkboxOpts:function(){return Object.assign({},u.table.checkboxConfig,this.checkboxConfig||this.selectConfig)},tooltipOpts:function(){return Object.assign({size:this.vSize,leaveDelay:300},u.table.tooltipConfig,this.tooltipConfig)},validTipOpts:function(){return Object.assign({isArrow:!1},this.tooltipOpts)},editOpts:function(){return Object.assign({},u.table.editConfig,this.editConfig)},sortOpts:function(){return Object.assign({orders:["asc","desc",null]},u.table.sortConfig,this.sortConfig)},filterOpts:function(){return Object.assign({},u.table.filterConfig,this.filterConfig)},mouseOpts:function(){return Object.assign({},u.table.mouseConfig,this.mouseConfig)},areaOpts:function(){return Object.assign({},u.table.areaConfig,this.areaConfig)},keyboardOpts:function(){return Object.assign({},u.table.keyboardConfig,this.keyboardConfig)},clipOpts:function(){return Object.assign({},u.table.clipConfig,this.clipConfig)},fnrOpts:function(){return Object.assign({},u.table.fnrConfig,this.fnrConfig)},isGroup:function(){return this.collectColumn.some(N.hasChildrenList)},hasTip:function(){return it._tooltip},isResizable:function(){return this.resizable||this.tableFullColumn.some((function(e){return e.resizable}))},headerCtxMenu:function(){var e=this.ctxMenuOpts.header;return e&&e.options?e.options:[]},bodyCtxMenu:function(){var e=this.ctxMenuOpts.body;return e&&e.options?e.options:[]},footerCtxMenu:function(){var e=this.ctxMenuOpts.footer;return e&&e.options?e.options:[]},isCtxMenu:function(){return(this.contextMenu||this.menuConfig)&&N.isEnableConf(this.ctxMenuOpts)&&(this.headerCtxMenu.length||this.bodyCtxMenu.length||this.footerCtxMenu.length)},ctxMenuOpts:function(){return Object.assign({},u.table.contextMenu,u.table.menuConfig,this.contextMenu,this.menuConfig)},ctxMenuList:function(){var e=[];return this.ctxMenuStore.list.forEach((function(t){t.forEach((function(t){e.push(t)}))})),e},exportOpts:function(){return Object.assign({},u.table.exportConfig,this.exportConfig)},importOpts:function(){return Object.assign({},u.table.importConfig,this.importConfig)},printOpts:function(){return Object.assign({},u.table.printConfig,this.printConfig)},expandOpts:function(){return Object.assign({},u.table.expandConfig,this.expandConfig)},treeOpts:function(){return Object.assign({},u.table.treeConfig,this.treeConfig)},emptyOpts:function(){return Object.assign({},u.table.emptyRender,this.emptyRender)},cellOffsetWidth:function(){return this.border?Math.max(2,Math.ceil(this.scrollbarWidth/this.tableColumn.length)):1},customOpts:function(){return Object.assign({},u.table.customConfig,this.customConfig)},tableBorder:function(){var e=this.border;return!0===e?"full":e||"default"},isAllCheckboxDisabled:function(){var e=this.tableFullData,t=(this.treeConfig,this.checkboxOpts),n=t.strict,i=t.checkMethod;return!!n&&(!e.length||!!i&&e.every((function(e){return!i({row:e})})))}},watch:{data:function(e){var t=this;this.loadTableData(e).then((function(){t.inited||(t.inited=!0,t.handleDefaults()),(t.scrollXLoad||t.scrollYLoad)&&t.expandColumn&&N.warn("vxe.error.scrollErrProp",["column.type=expand"])}))},customs:function(e){this.isUpdateCustoms||this.mergeCustomColumn(e),this.isUpdateCustoms=!1},collectColumn:function(e){var t=this,n=N.getColumnList(e);this.tableFullColumn=n,this.clearMergeCells(),this.clearMergeFooterItems(),this.cacheColumnMap(),this.customs&&this.mergeCustomColumn(this.customs),this.customConfig&&this.restoreCustomStorage(),this.refreshColumn().then((function(){t.scrollXLoad&&t.loadScrollXData(!0)})),this.handleTableData(!0),(this.scrollXLoad||this.scrollYLoad)&&this.expandColumn&&N.warn("vxe.error.scrollErrProp",["column.type=expand"]),this.isGroup&&this.mouseConfig&&this.mouseOpts.checked&&N.error("vxe.error.groupMouseRange",["mouse-config.checked"]),this.$nextTick((function(){t.$toolbar&&(t.$toolbar.syncUpdate({collectColumn:e,$table:t}),t.customConfig||(t.restoreCustomStorage(),t.analyColumnWidth(),t.refreshColumn()))}))},tableColumn:function(){this.analyColumnWidth()},showHeader:function(){var e=this;this.$nextTick((function(){e.recalculate(!0).then((function(){return e.refreshScroll()}))}))},showFooter:function(){var e=this;this.$nextTick((function(){e.recalculate(!0).then((function(){return e.refreshScroll()}))}))},height:function(){var e=this;this.$nextTick((function(){return e.recalculate(!0)}))},maxHeight:function(){var e=this;this.$nextTick((function(){return e.recalculate(!0)}))},syncResize:function(e){var t=this;if(e){var n=this.$el;n.clientWidth&&n.clientHeight&&this.recalculate(),this.$nextTick((function(){setTimeout((function(){n.clientWidth&&n.clientHeight&&t.recalculate(!0)}))}))}},mergeCells:function(e){this.clearMergeCells(),this.setMergeCells(e)},mergeFooterItems:function(e){this.clearMergeFooterItems(),this.setMergeFooterItems(e)}},created:function(){var e=this,t=Object.assign(this,{tZindex:0,elemStore:{},scrollXStore:{},scrollYStore:{},tooltipStore:{},tableWidth:0,tableHeight:0,headerHeight:0,footerHeight:0,lastScrollLeft:0,lastScrollTop:0,radioReserveRow:null,checkboxReserveRowMap:{},rowExpandedReserveRowMap:{},treeExpandedReserveRowMap:{},tableFullData:[],afterFullData:[],fullAllDataRowMap:new Map,fullAllDataRowIdData:{},fullDataRowMap:new Map,fullDataRowIdData:{},fullColumnMap:new Map,fullColumnIdData:{},fullColumnFieldData:{}}),n=t.sXOpts,i=t.scrollXStore,r=t.sYOpts,o=t.scrollYStore,a=t.mouseOpts,l=t.data,c=t.editOpts,u=t.treeOpts,d=t.treeConfig,h=t.showOverflow;if(!this.rowId&&(this.checkboxOpts.reserve||this.checkboxOpts.checkRowKeys||this.radioOpts.reserve||this.radioOpts.checkRowKey||this.expandOpts.expandRowKeys||this.treeOpts.expandRowKeys)&&N.warn("vxe.error.reqProp",["row-id"]),this.columnWidth&&N.warn("vxe.error.delProp",["column-width","column-config.width"]),this.columnMinWidth&&N.warn("vxe.error.delProp",["column-min-width","column-config.minWidth"]),this.startIndex&&N.warn("vxe.error.delProp",["start-index","seq-config.startIndex"]),this.selectConfig&&N.warn("vxe.error.delProp",["select-config","checkbox-config"]),this.editConfig&&c.showStatus&&!this.keepSource&&N.warn("vxe.error.reqProp",["keep-source"]),!d||!u.line||this.rowKey&&h||N.warn("vxe.error.reqProp",["row-key | show-overflow"]),this.showFooter&&!this.footerMethod&&N.warn("vxe.error.reqProp",["footer-method"]),this.customs&&N.warn("vxe.error.removeProp",["customs"]),this.sortMethod&&N.warn("vxe.error.delProp",["sort-method","sort-config.sortMethod"]),this.remoteSort&&N.warn("vxe.error.delProp",["remote-sort","sort-config.remote"]),this.remoteFilter&&N.warn("vxe.error.delProp",["remote-filter","filter-config.remote"]),this.handleUpdateCellAreas||(this.clipConfig&&N.warn("vxe.error.notProp",["clip-config"]),this.fnrConfig&&N.warn("vxe.error.notProp",["fnr-config"]),!this.mouseOpts.area)){a.selected&&a.area&&N.error("vxe.error.errConflicts",["mouse-config.area","mouse-config.selected"]),a.checked&&a.area&&N.error("vxe.error.errConflicts",["mouse-config.checked","mouse-config.area"]),this.contextMenu&&(N.warn("vxe.error.delProp",["context-menu","menu-config"]),s.a.isObject(this.contextMenu)||N.warn("vxe.error.errProp",["table.context-menu=".concat(this.contextMenu),"table.context-menu={}"])),this.menuConfig&&!s.a.isObject(this.menuConfig)&&N.warn("vxe.error.errProp",["table.menu-config=".concat(this.menuConfig),"table.menu-config={}"]),this.exportConfig&&!s.a.isObject(this.exportConfig)&&N.warn("vxe.error.errProp",["table.export-config=".concat(this.exportConfig),"table.export-config={}"]),this.importConfig&&!s.a.isObject(this.importConfig)&&N.warn("vxe.error.errProp",["table.import-config=".concat(this.importConfig),"table.import-config={}"]),this.printConfig&&!s.a.isObject(this.printConfig)&&N.warn("vxe.error.errProp",["table.print-config=".concat(this.printConfig),"table.print-config={}"]),this.treeConfig&&!s.a.isObject(this.treeConfig)&&N.warn("vxe.error.errProp",["table.tree-config=".concat(this.treeConfig),"table.tree-config={}"]),this.customConfig&&!s.a.isObject(this.customConfig)&&N.warn("vxe.error.errProp",["table.custom-config=".concat(this.customConfig),"table.custom-config={}"]),this.editConfig&&!s.a.isObject(this.editConfig)&&N.warn("vxe.error.errProp",["table.edit-config=".concat(this.editConfig),"table.edit-config={}"]),this.emptyRender&&!s.a.isObject(this.emptyRender)&&N.warn("vxe.error.errProp",["table.empty-render=".concat(this.emptyRender),"table.empty-render={}"]),this.mouseConfig&&this.editConfig&&a.checked&&"dblclick"!==c.trigger&&N.warn("vxe.error.errProp",["mouse-config.checked","edit-config.trigger=dblclick"]),this.mouseOpts.area&&this.checkboxOpts.range&&N.error("vxe.error.errConflicts",["mouse-config.area","checkbox-config.range"]),d&&this.stripe&&N.warn("vxe.error.noTree",["stripe"]),this.optimization&&N.warn("vxe.error.removeProp",["optimization"]),this.optimizeOpts.cloak&&N.warn("vxe.error.delProp",["optimization.cloak","cloak"]),this.optimizeOpts.animat&&N.warn("vxe.error.delProp",["optimization.animat","animat"]),this.optimizeOpts.delayHover&&N.warn("vxe.error.delProp",["optimization.delayHover","delay-hover"]),this.optimizeOpts.scrollX&&N.warn("vxe.error.delProp",["optimization.scrollX","scroll-x"]),this.optimizeOpts.scrollY&&N.warn("vxe.error.delProp",["optimization.scrollY","scroll-y"]);var f,p=this.customOpts;if(!this.id&&this.customConfig&&(!0===p.storage||p.storage&&p.storage.resizable||p.storage&&p.storage.visible)&&N.error("vxe.error.reqProp",["id"]),this.treeConfig&&this.checkboxOpts.range&&N.error("vxe.error.noTree",["checkbox-config.range"]),this.treeConfig&&this.mouseOpts.area&&N.error("vxe.error.noTree",["mouse-config.area"]),!it._edit&&this.editConfig?f="Edit":!it._valid&&this.editRules?f="Validator":!it._keyboard&&(this.checkboxOpts.range||this.keyboardConfig||this.mouseConfig)?f="Keyboard":it._export||!this.importConfig&&!this.exportConfig||(f="Export"),f)throw new Error(N.getLog("vxe.error.reqModule",[f]));Object.assign(o,{startIndex:0,visibleIndex:0,adaptive:!1!==r.adaptive,renderSize:s.a.toNumber(r.rSize),offsetSize:s.a.toNumber(r.oSize)}),Object.assign(i,{startIndex:0,visibleIndex:0,renderSize:s.a.toNumber(n.rSize),offsetSize:s.a.toNumber(n.oSize)}),this.cloak&&(this.isCloak=!0,setTimeout((function(){e.isCloak=!1}),$.browse?500:300)),this.loadTableData(l).then((function(){l&&l.length&&(e.inited=!0,e.handleDefaults()),e.updateStyle(),e.recalculate()})),G.on(this,"paste",this.handleGlobalPasteEvent),G.on(this,"copy",this.handleGlobalCopyEvent),G.on(this,"cut",this.handleGlobalCutEvent),G.on(this,"mousedown",this.handleGlobalMousedownEvent),G.on(this,"blur",this.handleGlobalBlurEvent),G.on(this,"mousewheel",this.handleGlobalMousewheelEvent),G.on(this,"keydown",this.handleGlobalKeydownEvent),G.on(this,"resize",this.handleGlobalResizeEvent),G.on(this,"contextmenu",this.handleGlobalContextmenuEvent),this.preventEvent(null,"created")}else N.error("vxe.error.notProp",["mouse-config.area"])},mounted:function(){var e=this,t=this.$listeners;if(!this.menuConfig&&(t["menu-click"]||t["cell-menu"]||t["header-cell-menu"]||t["footer-cell-menu"])&&N.warn("vxe.error.reqProp",["menu-config"]),this.tooltipConfig||!t["cell-mouseenter"]&&!t["cell-mouseleave"]||N.warn("vxe.error.reqProp",["tooltip-config"]),this.tooltipConfig||!this.$listeners["cell-mouseenter"]&&!this.$listeners["cell-mouseleave"]||N.warn("vxe.error.reqProp",["tooltip-config"]),this.autoResize){var n=new ee((function(){return e.recalculate(!0)}));n.observe(this.$el),n.observe(this.getParentElem()),this.$resize=n}!this.$xegrid&&this.customs&&N.warn("vxe.error.removeProp",["customs"]),document.body.appendChild(this.$refs.tableWrapper),this.preventEvent(null,"mounted")},activated:function(){var e=this;this.recalculate().then((function(){return e.refreshScroll()})),this.preventEvent(null,"activated")},deactivated:function(){this.preventEvent(null,"deactivated")},beforeDestroy:function(){var e=this.$refs.tableWrapper;e&&e.parentNode&&e.parentNode.removeChild(e),this.$resize&&this.$resize.disconnect(),this.closeFilter(),this.closeMenu(),this.preventEvent(null,"beforeDestroy")},destroyed:function(){G.off(this,"paste"),G.off(this,"copy"),G.off(this,"cut"),G.off(this,"mousedown"),G.off(this,"blur"),G.off(this,"mousewheel"),G.off(this,"keydown"),G.off(this,"resize"),G.off(this,"contextmenu"),this.preventEvent(null,"destroyed")},render:function(e){var t,n=this._e,i=this.$scopedSlots,r=this.tId,o=this.tableData,a=this.tableColumn,s=this.visibleColumn,l=this.tableGroupColumn,c=this.isGroup,d=this.isResizable,h=this.isCtxMenu,f=this.loading,p=this.isCloak,g=this.stripe,m=this.showHeader,v=this.height,b=this.tableBorder,y=this.treeOpts,_=this.treeConfig,w=this.mouseConfig,x=this.mouseOpts,C=this.vSize,S=this.validOpts,k=this.editRules,O=this.showFooter,M=this.overflowX,D=this.overflowY,E=this.scrollXLoad,T=this.scrollYLoad,L=this.scrollbarHeight,I=this.highlightCell,A=this.highlightHoverRow,N=this.highlightHoverColumn,P=this.editConfig,R=this.checkboxOpts,F=this.validTipOpts,j=this.tooltipOpts,B=this.columnStore,z=this.filterStore,V=this.ctxMenuStore,$=this.ctxMenuOpts,W=this.footerTableData,H=this.hasTip,U=this.emptyRender,q=this.emptyOpts,G=B.leftList,K=B.rightList;if(i.empty)t=i.empty.call(this,{$table:this},e);else{var Y=U?it.renderer.get(q.name):null;t=Y?Y.renderEmpty.call(this,e,q,{$table:this},{$table:this}):this.emptyText||u.i18n("vxe.table.emptyText")}return e("div",{class:["vxe-table","vxe-table--render-default","tid_".concat(r),C?"size--".concat(C):"","border--".concat(b),{"vxe-editable":!!P,"show--head":m,"show--foot":O,"is--group":c,"has--height":v,"has--tree-line":_&&y.line,"fixed--left":G.length,"fixed--right":K.length,"c--highlight":I,"t--animat":!!this.animat,"is--round":this.round,"t--stripe":!_&&g,"t--selected":w&&x.selected,"t--checked":w&&x.checked,"is--area":w&&x.area,"row--highlight":A,"column--highlight":N,"is--loading":p||f,"is--empty":!f&&!o.length,"scroll--y":D,"scroll--x":M,"virtual--x":E,"virtual--y":T}],attrs:{"x-cloak":p}},[e("div",{class:"vxe-table-slots",ref:"hideColumn"},this.$slots.default),e("div",{class:"vxe-table--main-wrapper"},[m?e("vxe-table-header",{ref:"tableHeader",props:{tableData:o,tableColumn:a,visibleColumn:s,tableGroupColumn:l,size:C,isGroup:c}}):n(),e("vxe-table-body",{ref:"tableBody",props:{tableData:o,tableColumn:a,visibleColumn:s,size:C,isGroup:c}}),O?e("vxe-table-footer",{props:{footerTableData:W,tableColumn:a,visibleColumn:s,size:C},ref:"tableFooter"}):null]),G&&G.length&&M?en(e,this,"left"):n(),K&&K.length&&M?en(e,this,"right"):n(),e("div",{ref:"emptyPlaceholder",class:"vxe-table--empty-placeholder"},[e("div",{class:"vxe-table--empty-content"},t)]),e("div",{class:"vxe-table--border-line"}),d?e("div",{class:"vxe-table--resizable-bar",style:M?{"padding-bottom":"".concat(L,"px")}:null,ref:"resizeBar"}):n(),e("div",{class:["vxe-table--loading vxe-loading",{"is--visible":p||f}]},[e("div",{class:"vxe-loading--spinner"})]),this.hasFilterPanel?e("vxe-table-filter",{props:{filterStore:z},ref:"filterWrapper"}):n(),this.importConfig?e("vxe-import-panel",{props:{defaultOptions:this.importParams,storeData:this.importStore}}):n(),this.exportConfig||this.printConfig?e("vxe-export-panel",{props:{defaultOptions:this.exportParams,storeData:this.exportStore}}):n(),e("div",{class:"vxe-table".concat(r,"-wrapper ").concat(this.$vnode.data.staticClass||""),ref:"tableWrapper"},[R.range?e("div",{class:"vxe-table--checkbox-range",ref:"checkboxRange"}):n(),h?e("vxe-table-context-menu",{props:{ctxMenuStore:V,ctxMenuOpts:$},ref:"ctxWrapper"}):n(),H?e("vxe-tooltip",{key:"cTip",ref:"commTip",props:{isArrow:!1,enterable:!1}}):n(),H?e("vxe-tooltip",{ref:"tooltip",props:j,on:j.enterable?{leave:this.handleTooltipLeaveEvent}:null}):n(),H&&k&&S.showMessage&&("default"===S.message?!v:"tooltip"===S.message)?e("vxe-tooltip",{class:"vxe-table--valid-error",props:"tooltip"===S.message||1===o.length?F:null,ref:"validTip"}):n()])])},methods:Jt,install:function(e){"undefined"!==typeof window&&window.VXETableMixin&&(tn.mixins.push(window.VXETableMixin),delete window.VXETableMixin),it.Vue=e,it.Table=tn,it.TableComponent=tn,e.prototype.$vxe?(e.prototype.$vxe.t=it.t,e.prototype.$vxe._t=it._t):e.prototype.$vxe={t:it.t,_t:it._t},e.component(tn.name,tn)}},nn=tn,rn=tn,on={colId:[String,Number],type:String,prop:String,label:String,field:String,title:String,width:[Number,String],minWidth:[Number,String],resizable:{type:Boolean,default:null},fixed:String,align:String,headerAlign:String,footerAlign:String,showOverflow:{type:[Boolean,String],default:null},showHeaderOverflow:{type:[Boolean,String],default:null},showFooterOverflow:{type:[Boolean,String],default:null},className:[String,Function],headerClassName:[String,Function],footerClassName:[String,Function],formatter:[Function,Array,String],seqMethod:Function,indexMethod:Function,sortable:Boolean,remoteSort:{type:Boolean,default:null},sortBy:[String,Array],sortType:String,sortMethod:Function,filters:{type:Array,default:null},filterMultiple:{type:Boolean,default:!0},filterMethod:Function,filterResetMethod:Function,filterRecoverMethod:Function,filterRender:Object,treeNode:Boolean,visible:{type:Boolean,default:null},exportMethod:Function,footerExportMethod:Function,titleHelp:Object,cellType:String,cellRender:Object,editRender:Object,contentRender:Object,params:Object},an={};Object.keys(on).forEach((function(e){an[e]=function(t){this.columnConfig.update(e,t)}}));var sn={name:"VxeColumn",props:on,provide:function(){return{$xecolumn:this}},inject:{$xetable:{default:null},$xecolumn:{default:null}},watch:an,created:function(){this.$xetable.isSC=!0,this.columnConfig=this.createColumn(this.$xetable,this)},mounted:function(){N.assemColumn(this),"expand"===this.type&&!this.$scopedSlots.content&&this.$scopedSlots.default&&N.warn("vxe.error.expandContent")},destroyed:function(){N.destroyColumn(this)},render:function(e){return e("div",this.$slots.default)},methods:Ot},ln={name:"VxeColgroup",extends:sn,provide:function(){return{xecolgroup:this}}};sn.install=function(e){e.component(sn.name,sn),e.component("VxeTableColumn",sn),e.component(ln.name,ln),e.component("VxeTableColgroup",ln)};var cn=sn,un=sn,dn=function e(t,n){var i=[];return t.forEach((function(t){t.parentId=n?n.id:null,t.visible&&(t.children&&t.children.length&&t.children.some((function(e){return e.visible}))?(i.push(t),i.push.apply(i,w(e(t.children,t)))):i.push(t))})),i},hn=function(e){var t=1,n=function e(n,i){if(i&&(n.level=i.level+1,t<n.level&&(t=n.level)),n.children&&n.children.length&&n.children.some((function(e){return e.visible}))){var r=0;n.children.forEach((function(t){t.visible&&(e(t,n),r+=t.colSpan)})),n.colSpan=r}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var i=[],r=0;r<t;r++)i.push([]);var o=dn(e);return o.forEach((function(e){e.children&&e.children.length&&e.children.some((function(e){return e.visible}))?e.rowSpan=1:e.rowSpan=t-e.level+1,i[e.level-1].push(e)})),i},fn="header",pn={name:"VxeTableHeader",props:{tableData:Array,tableColumn:Array,visibleColumn:Array,tableGroupColumn:Array,fixedColumn:Array,size:String,fixedType:String,isGroup:Boolean},data:function(){return{headerColumn:[]}},watch:{tableColumn:function(){this.uploadColumn()}},created:function(){this.uploadColumn()},mounted:function(){var e=this.$parent,t=this.$el,n=this.$refs,i=this.fixedType,r=e.elemStore,o="".concat(i||"main","-header-");r["".concat(o,"wrapper")]=t,r["".concat(o,"table")]=n.table,r["".concat(o,"colgroup")]=n.colgroup,r["".concat(o,"list")]=n.thead,r["".concat(o,"xSpace")]=n.xSpace,r["".concat(o,"repair")]=n.repair},render:function(e){var t=this,n=this._e,i=this.$parent,r=this.fixedType,o=this.headerColumn,a=this.fixedColumn,l=this.tableColumn,c=i.$listeners,u=i.tId,d=i.resizable,h=i.border,f=i.columnKey,p=i.headerRowClassName,g=i.headerCellClassName,m=i.headerRowStyle,v=i.headerCellStyle,b=i.showHeaderOverflow,y=i.headerAlign,_=i.align,w=i.highlightCurrentColumn,x=i.currentColumn,C=i.mouseConfig,S=i.scrollXLoad,k=i.overflowX,O=i.scrollbarWidth,M=i.getColumnIndex,D=i.sortOpts;return S&&r&&(l=a),e("div",{class:["vxe-table--header-wrapper",r?"fixed-".concat(r,"--wrapper"):"body--wrapper"],attrs:{"data-tid":u}},[r?n():e("div",{class:"vxe-body--x-space",ref:"xSpace"}),e("table",{class:"vxe-table--header",attrs:{"data-tid":u,cellspacing:0,cellpadding:0,border:0},ref:"table"},[e("colgroup",{ref:"colgroup"},l.map((function(t,n){return e("col",{attrs:{name:t.id},key:n})})).concat(O?[e("col",{attrs:{name:"col_gutter"}})]:[])),e("thead",{ref:"thead"},o.map((function(n,o){return e("tr",{class:["vxe-header--row",p?s.a.isFunction(p)?p({$table:i,$rowIndex:o,fixed:r,type:fn}):p:""],style:m?s.a.isFunction(m)?m({$table:i,$rowIndex:o,fixed:r,type:fn}):m:null},n.map((function(a,l){var u,p=a.showHeaderOverflow,m=a.headerAlign,O=a.align,E=a.headerClassName,T=a.children&&a.children.length,L=r?a.fixed!==r&&!T:a.fixed&&k,I=s.a.isUndefined(p)||s.a.isNull(p)?b:p,A=m||O||y||_,P="ellipsis"===I,R="title"===I,F=!0===I||"tooltip"===I,j=R||F||P,B={},z=a.filters&&a.filters.some((function(e){return e.checked})),V=M(a),$=i.getVTColumnIndex(a),W={$table:i,$rowIndex:o,column:a,columnIndex:V,$columnIndex:l,_columnIndex:$,fixed:r,type:fn,isHidden:L,hasFilter:z};S&&!j&&(P=j=!0),(w||c["header-cell-click"]||C||"cell"===D.trigger)&&(B.click=function(e){return i.triggerHeaderCellClickEvent(e,W)}),c["header-cell-dblclick"]&&(B.dblclick=function(e){return i.triggerHeaderCellDBLClickEvent(e,W)}),C&&(B.mousedown=function(e){return i.triggerHeaderCellMousedownEvent(e,W)});var H="seq"===a.type||"index"===a.type?"seq":a.type;return e("th",{class:["vxe-header--column",a.id,(u={},rt(u,"col--".concat(A),A),rt(u,"col--".concat(H),H),rt(u,"col--last",l===n.length-1),rt(u,"col--fixed",a.fixed),rt(u,"col--group",T),rt(u,"col--ellipsis",j),rt(u,"fixed--hidden",L),rt(u,"is--sortable",a.sortable),rt(u,"is--filter",!!a.filters),rt(u,"filter--active",z),rt(u,"col--current",x===a),u),N.getClass(E,W),N.getClass(g,W)],attrs:{"data-colid":a.id,colspan:a.colSpan>1?a.colSpan:null,rowspan:a.rowSpan>1?a.rowSpan:null},style:v?s.a.isFunction(v)?v(W):v:null,on:B,key:f||T?a.id:l},[e("div",{class:["vxe-cell",{"c--title":R,"c--tooltip":F,"c--ellipsis":P}]},a.renderHeader(e,W)),L||T||!(s.a.isBoolean(a.resizable)?a.resizable:d)?null:e("div",{class:["vxe-resizable",{"is--line":!h||"none"===h}],on:{mousedown:function(e){return t.resizeMousedown(e,W)}}})])})).concat(O?[e("th",{class:"vxe-header--gutter col--gutter"})]:[]))})))]),e("div",{class:"vxe-table--header-border-line",ref:"repair"})])},methods:{uploadColumn:function(){this.headerColumn=this.isGroup?hn(this.tableGroupColumn):[this.$parent.scrollXLoad&&this.fixedType?this.fixedColumn:this.tableColumn]},resizeMousedown:function(e,t){var n=t.column,i=this.$parent,r=this.$el,o=this.fixedType,a=i.$refs,s=a.tableBody,l=a.leftContainer,c=a.rightContainer,u=a.resizeBar,d=e.target,h=e.clientX,f=t.cell=d.parentNode,p=0,g=s.$el,m=$.getOffsetPos(d,r),v=d.clientWidth,b=Math.floor(v/2),y=N.getColMinWidth(t)-b,_=m.left-f.clientWidth+v+y,w=m.left+b,x=document.onmousemove,C=document.onmouseup,S="left"===o,k="right"===o,O=0;if(S||k){var M=S?"nextElementSibling":"previousElementSibling",D=f[M];while(D){if($.hasClass(D,"fixed--hidden"))break;$.hasClass(D,"col--group")||(O+=D.offsetWidth),D=D[M]}k&&c&&(w=c.offsetLeft+O)}var E=function(e){e.stopPropagation(),e.preventDefault();var t=e.clientX-h,n=w+t,i=o?0:g.scrollLeft;S?n=Math.min(n,(c?c.offsetLeft:g.clientWidth)-O-y):k?(_=(l?l.clientWidth:0)+O+y,n=Math.min(n,w+f.clientWidth-y)):_=Math.max(g.scrollLeft,_),p=Math.max(n,_),u.style.left="".concat(p-i,"px")};i._isResize=!0,$.addClass(i.$el,"drag--resize"),u.style.display="block",document.onmousemove=E,document.onmouseup=function(){document.onmousemove=x,document.onmouseup=C,n.resizeWidth=n.renderWidth+(k?w-p:p-w),u.style.display="none",i._isResize=!1,i._lastResizeTime=Date.now(),i.analyColumnWidth(),i.recalculate(!0).then((function(){i.saveCustomResizable(),i.updateCellAreas(),i.emitEvent("resizable-change",t,e)})),$.removeClass(i.$el,"drag--resize")},E(e),i.closeMenu()}},install:function(e){e.component(pn.name,pn)}},gn=pn,mn=pn,vn="footer";function bn(e,t,n){for(var i=0;i<e.length;i++){var r=e[i],o=r.row,a=r.col,s=r.rowspan,l=r.colspan;if(a>-1&&o>-1&&s&&l){if(o===t&&a===n)return{rowspan:s,colspan:l};if(t>=o&&t<o+s&&n>=a&&n<a+l)return{rowspan:0,colspan:0}}}}var yn={name:"VxeTableFooter",props:{footerTableData:Array,tableColumn:Array,visibleColumn:Array,fixedColumn:Array,size:String,fixedType:String},mounted:function(){var e=this.$parent,t=this.$el,n=this.$refs,i=this.fixedType,r=e.elemStore,o="".concat(i||"main","-footer-");r["".concat(o,"wrapper")]=t,r["".concat(o,"table")]=n.table,r["".concat(o,"colgroup")]=n.colgroup,r["".concat(o,"list")]=n.tfoot,r["".concat(o,"xSpace")]=n.xSpace},render:function(e){var t=this._e,n=this.$parent,i=this.fixedType,r=this.fixedColumn,o=this.tableColumn,a=this.footerTableData,l=n.$listeners,c=n.tId,u=n.footerRowClassName,d=n.footerCellClassName,h=n.footerRowStyle,f=n.footerCellStyle,p=n.footerAlign,g=n.mergeFooterList,m=n.footerSpanMethod,v=n.align,b=n.scrollXLoad,y=n.columnKey,_=n.showFooterOverflow,w=n.currentColumn,x=n.overflowX,C=n.scrollbarWidth,S=n.tooltipOpts;return g.length&&m||(i&&_||b&&i)&&(o=r),e("div",{class:["vxe-table--footer-wrapper",i?"fixed-".concat(i,"--wrapper"):"body--wrapper"],attrs:{"data-tid":c},on:{scroll:this.scrollEvent}},[i?t():e("div",{class:"vxe-body--x-space",ref:"xSpace"}),e("table",{class:"vxe-table--footer",attrs:{"data-tid":c,cellspacing:0,cellpadding:0,border:0},ref:"table"},[e("colgroup",{ref:"colgroup"},o.map((function(t,n){return e("col",{attrs:{name:t.id},key:n})})).concat(C?[e("col",{attrs:{name:"col_gutter"}})]:[])),e("tfoot",{ref:"tfoot"},a.map((function(t,r){var c=r;return e("tr",{class:["vxe-footer--row",u?s.a.isFunction(u)?u({$table:n,_rowIndex:r,$rowIndex:c,fixed:i,type:vn}):u:""],style:h?s.a.isFunction(h)?h({$table:n,_rowIndex:r,$rowIndex:c,fixed:i,type:vn}):h:null},o.map((function(u,h){var C,k=u.showFooterOverflow,O=u.footerAlign,M=u.align,D=u.footerClassName,E=S.showAll||S.enabled,T=u.children&&u.children.length,L=i?u.fixed!==i&&!T:u.fixed&&x,I=s.a.isUndefined(k)||s.a.isNull(k)?_:k,A=O||M||p||v,P="ellipsis"===I,R="title"===I,F=!0===I||"tooltip"===I,j=R||F||P,B={"data-colid":u.id},z={},V=n.getColumnIndex(u),W=n.getVTColumnIndex(u),H=W,U={$table:n,_rowIndex:r,$rowIndex:c,column:u,columnIndex:V,$columnIndex:h,_columnIndex:W,itemIndex:H,items:t,fixed:i,type:vn,data:a};if(b&&!j&&(P=j=!0),(R||F||E)&&(z.mouseenter=function(e){R?$.updateCellTitle(e.currentTarget,u):(F||E)&&n.triggerFooterTooltipEvent(e,U)}),(F||E)&&(z.mouseleave=function(e){(F||E)&&n.handleTargetLeaveEvent(e)}),l["footer-cell-click"]&&(z.click=function(e){n.emitEvent("footer-cell-click",Object.assign({cell:e.currentTarget},U),e)}),l["footer-cell-dblclick"]&&(z.dblclick=function(e){n.emitEvent("footer-cell-dblclick",Object.assign({cell:e.currentTarget},U),e)}),g.length){var q=bn(g,r,W);if(q){var G=q.rowspan,K=q.colspan;if(!G||!K)return null;G>1&&(B.rowspan=G),K>1&&(B.colspan=K)}}else if(m){var Y=m(U)||{},X=Y.rowspan,Z=void 0===X?1:X,Q=Y.colspan,J=void 0===Q?1:Q;if(!Z||!J)return null;Z>1&&(B.rowspan=Z),J>1&&(B.colspan=J)}var ee="seq"===u.type||"index"===u.type?"seq":u.type;return e("td",{class:["vxe-footer--column",u.id,(C={},rt(C,"col--".concat(A),A),rt(C,"col--".concat(ee),ee),rt(C,"col--last",h===o.length-1),rt(C,"fixed--hidden",L),rt(C,"col--ellipsis",j),rt(C,"col--current",w===u),C),N.getClass(D,U),N.getClass(d,U)],attrs:B,style:f?s.a.isFunction(f)?f(U):f:null,on:z,key:y?u.id:h},[e("div",{class:["vxe-cell",{"c--title":R,"c--tooltip":F,"c--ellipsis":P}]},u.renderFooter(e,U))])})).concat(C?[e("td",{class:"vxe-footer--gutter col--gutter"})]:[]))})))])])},methods:{scrollEvent:function(e){var t=this.$parent,n=this.fixedType,i=t.$refs,r=t.scrollXLoad,o=t.triggerScrollXEvent,a=t.lastScrollLeft,s=i.tableHeader,l=i.tableBody,c=i.tableFooter,u=i.validTip,d=s?s.$el:null,h=c?c.$el:null,f=l.$el,p=h.scrollLeft,g=p!==a;t.lastScrollLeft=p,t.lastScrollTime=Date.now(),d&&(d.scrollLeft=p),f&&(f.scrollLeft=p),r&&g&&o(e),g&&u&&u.visible&&u.updatePlacement(),t.emitEvent("scroll",{type:vn,fixed:n,scrollTop:f.scrollTop,scrollLeft:p,isX:g,isY:!1},e)}},install:function(e){e.component(yn.name,yn)}},_n=yn,wn=yn,xn={name:"VxeTableFilter",props:{filterStore:Object},computed:{hasCheckOption:function(){var e=this.filterStore;return e&&e.options.some((function(e){return e.checked}))}},render:function(e){var t=this.$parent,n=this.filterStore,i=n.column,r=i?i.filterRender:null,o=r?it.renderer.get(r.name):null;return e("div",{class:["vxe-table--filter-wrapper","filter--prevent-default",o&&o.className?o.className:"",{"t--animat":t.animat,"is--multiple":n.multiple,"filter--active":n.visible}],style:n.style},n.visible?this.renderOptions(e,r,o).concat(this.renderFooter(e)):[])},methods:{renderOptions:function(e,t,n){var i=this,r=this.$parent,o=this.filterStore,a=o.args,s=o.column,l=o.multiple,c=s.slots;return c&&c.filter?[e("div",{class:"vxe-table--filter-template"},c.filter.call(r,Object.assign({$panel:this,context:this},a),e))]:n&&n.renderFilter?[e("div",{class:"vxe-table--filter-template"},n.renderFilter.call(r,e,t,Object.assign({$panel:this,context:this},a),this))]:[e("ul",{class:"vxe-table--filter-header"},[e("li",{class:["vxe-table--filter-option",{"is--checked":l?o.isAllSelected:!o.options.some((function(e){return e._checked})),"is--indeterminate":l&&o.isIndeterminate}],attrs:{title:u.i18n(l?"vxe.table.allTitle":"vxe.table.allFilter")},on:{click:function(e){i.changeAllOption(e,!o.isAllSelected)}}},(l?[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"})]:[]).concat([e("span",{class:"vxe-checkbox--label"},u.i18n("vxe.table.allFilter"))]))]),e("ul",{class:"vxe-table--filter-body"},o.options.map((function(t){return e("li",{class:["vxe-table--filter-option",{"is--checked":t._checked}],attrs:{title:t.label},on:{click:function(e){i.changeOption(e,!t._checked,t)}}},(l?[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"})]:[]).concat([e("span",{class:"vxe-checkbox--label"},N.formatText(t.label,1))]))})))]},renderFooter:function(e){var t=this.hasCheckOption,n=this.filterStore,i=n.column,r=n.multiple,o=i.filterRender,a=o?it.renderer.get(o.name):null,l=!t&&!n.isAllSelected&&!n.isIndeterminate;return!r||a&&(s.a.isBoolean(a.showFilterFooter)?!1===a.showFilterFooter:!1===a.isFooter)?[]:[e("div",{class:"vxe-table--filter-footer"},[e("button",{class:{"is--disabled":l},attrs:{disabled:l},on:{click:this.confirmFilter}},u.i18n("vxe.table.confirmFilter")),e("button",{on:{click:this.resetFilter}},u.i18n("vxe.table.resetFilter"))])]},filterCheckAllEvent:function(e,t){var n=this.filterStore;n.options.forEach((function(e){e._checked=t,e.checked=t})),n.isAllSelected=t,n.isIndeterminate=!1},changeRadioOption:function(e,t,n){var i=this.$parent,r=this.filterStore;r.options.forEach((function(e){e._checked=!1})),n._checked=t,i.checkFilterOptions(),this.confirmFilter(e)},changeMultipleOption:function(e,t,n){var i=this.$parent;n._checked=t,i.checkFilterOptions()},changeAllOption:function(e,t){this.filterStore.multiple?this.filterCheckAllEvent(e,t):this.resetFilter(e)},changeOption:function(e,t,n){this.filterStore.multiple?this.changeMultipleOption(e,t,n):this.changeRadioOption(e,t,n)},confirmFilter:function(e){var t=this.$parent,n=this.filterStore;n.options.forEach((function(e){e.checked=e._checked})),t.confirmFilterEvent(e)},resetFilter:function(e){var t=this.$parent;t.resetFilterEvent(e)}}},Cn={methods:{_filter:function(e,t){N.warn("vxe.error.delFunc",["filter","setFilter"]);var n=this.getColumnByField(e);if(n){var i=n.filters;if(i&&t){var r=t(i);return s.a.isArray(r)&&(n.filters=N.getFilters(r)),this.$nextTick().then((function(){return i}))}}return this.$nextTick()},_setFilter:function(e,t){return e.filters&&t&&(e.filters=N.getFilters(t)),this.$nextTick()},checkFilterOptions:function(){var e=this.filterStore;e.isAllSelected=e.options.every((function(e){return e._checked})),e.isIndeterminate=!e.isAllSelected&&e.options.some((function(e){return e._checked}))},triggerFilterEvent:function(e,t,n){var i=this,r=this.$refs,o=this.filterStore;if(o.column===t&&o.visible)o.visible=!1;else{var a=r.tableBody.$el,s=e.target,l=e.pageX,c=t.filters,u=t.filterMultiple,d=t.filterRender,h=d?it.renderer.get(d.name):null,f=t.filterRecoverMethod||(h?h.filterRecoverMethod:null),p=$.getDomNode(),g=p.visibleWidth;Object.assign(o,{args:n,multiple:u,options:c,column:t,style:null,visible:!0}),o.options.forEach((function(e){var n=e._checked,r=e.checked;e._checked=r,r||n===r||f&&f({option:e,column:t,$table:i})})),this.checkFilterOptions(),this.hasFilterPanel=!0,this.$nextTick((function(){var e,n,i=r.filterWrapper.$el,c=i.offsetWidth,u=c/2,d=32,h={top:"".concat(s.offsetTop+s.offsetParent.offsetTop+s.offsetHeight+8,"px")};if("left"===t.fixed?e=s.offsetLeft+s.offsetParent.offsetLeft-u:"right"===t.fixed?n=s.offsetParent.offsetWidth-s.offsetLeft+(s.offsetParent.offsetParent.offsetWidth-s.offsetParent.offsetLeft)-t.renderWidth-u:e=s.offsetLeft+s.offsetParent.offsetLeft-u-a.scrollLeft,e){var f=l+c-u+d-g;f>0&&(e-=f),h.left="".concat(Math.max(d,e),"px")}else if(n){var p=l+c-u+d-g;p>0&&(n+=p),h.right="".concat(n,"px")}o.style=h}))}},_getCheckedFilters:function(){var e=this.tableFullColumn,t=[];return e.filter((function(e){var n=e.property,i=e.filters,r=[],o=[];i&&i.length&&(i.forEach((function(e){e.checked&&(r.push(e.value),o.push(e.data))})),r.length&&t.push({column:e,property:n,values:r,datas:o}))})),t},confirmFilterEvent:function(e){var t=this,n=this.filterStore,i=this.remoteFilter,r=this.filterOpts,o=this.scrollXLoad,a=this.scrollYLoad,s=n.column,l=s.property,c=[],u=[];s.filters.forEach((function(e){e.checked&&(c.push(e.value),u.push(e.data))})),n.visible=!1;var d=this.getCheckedFilters();r.remote||i||(this.handleTableData(!0),this.checkSelectionStatus()),this.emitEvent("filter-change",{column:s,property:l,field:l,prop:l,values:c,datas:u,filters:d,filterList:d},e),this.updateFooter(),(o||a)&&(this.clearScroll(),a&&this.updateScrollYSpace()),this.closeFilter(),this.$nextTick((function(){t.recalculate(),t.updateCellAreas()}))},handleClearFilter:function(e){if(e){var t=e.filters,n=e.filterRender;if(t){var i=n?it.renderer.get(n.name):null,r=e.filterResetMethod||(i?i.filterResetMethod:null);t.forEach((function(e){e._checked=!1,e.checked=!1,r||(e.data=s.a.clone(e.resetValue,!0))})),r&&r({options:t,column:e,$table:this})}}},resetFilterEvent:function(e){this.handleClearFilter(this.filterStore.column),this.confirmFilterEvent(e)},_clearFilter:function(e){arguments.length&&s.a.isString(e)&&(e=this.getColumnByField(e));var t=this.filterStore;return e?this.handleClearFilter(e):this.visibleColumn.forEach(this.handleClearFilter),e&&e===t.column||Object.assign(t,{isAllSelected:!1,isIndeterminate:!1,style:null,options:[],column:null,multiple:!1,visible:!1}),this.updateData()}}};xn.install=function(e){it.reg("filter"),rn.mixins.push(Cn),e.component(xn.name,xn)};var Sn=xn,kn=xn,On={install:function(){}},Mn=On,Dn=On;n("e439"),n("dbb4");function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach((function(t){rt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ln={},In=Object.keys(rn.props);function An(e){return e?e.offsetHeight:0}function Nn(e){var t=getComputedStyle(e),n=s.a.toNumber(t.paddingTop),i=s.a.toNumber(t.paddingBottom);return n+i}function Pn(e,t){var n=t.proxyConfig,i=t.proxyOpts,r=t.formData,o=t.formConfig,a=t.formOpts;return a.items&&a.items.length?(a.inited||(a.inited=!0,i&&i.beforeItem&&a.items.forEach((function(e){i.beforeItem.apply(t,[{$grid:t,item:e}])}))),[e("vxe-form",{props:Object.assign({},a,{data:n&&i.form?r:o.data}),on:{submit:t.submitEvent,reset:t.resetEvent,"submit-invalid":t.submitInvalidEvent,"toggle-collapse":t.togglCollapseEvent},ref:"form"})]):[]}function Rn(e){var t=e.$scopedSlots,n=e.toolbarOpts,i=n.slots,r=t.buttons,o=t.tools;!r||i&&"buttons"===i.buttons||N.warn("vxe.error.reqProp",["toolbar-config.slots.buttons"]),!o||i&&"tools"===i.tools||N.warn("vxe.error.reqProp",["toolbar-config.slots.tools"]);var a={};return i&&(r||(r=i.buttons),o||(o=i.tools),r&&t[r]&&(r=t[r]),o&&t[o]&&(o=t[o])),r&&(a.buttons=r),o&&(a.tools=o),a}function Fn(e){var t,n,i=e.$scopedSlots,r=e.pagerOpts,o=r.slots,a={};return o&&(t=o.left,n=o.right,t&&i[t]&&(t=i[t]),n&&i[n]&&(n=i[n])),t&&(a.left=t),n&&(a.right=n),a}function jn(e){var t=e.$listeners,n=e.proxyConfig,i=e.proxyOpts,r={};return s.a.each(t,(function(t,n){r[n]=function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];e.$emit.apply(e,[n].concat(i))}})),n&&(i.sort&&(r["sort-change"]=e.sortChangeEvent),i.filter&&(r["filter-change"]=e.filterChangeEvent)),r}Object.keys(rn.methods).forEach((function(e){Ln[e]=function(){var t;return this.$refs.xTable&&(t=this.$refs.xTable)[e].apply(t,arguments)}}));var Bn={name:"VxeGrid",props:Tn(Tn({},rn.props),{},{columns:Array,pagerConfig:[Boolean,Object],proxyConfig:Object,toolbar:[Boolean,Object],toolbarConfig:[Boolean,Object],formConfig:[Boolean,Object],size:{type:String,default:function(){return u.grid.size||u.size}}}),provide:function(){return{$xegrid:this}},data:function(){return{isCloak:!1,tableLoading:!1,isZMax:!1,tableData:[],pendingRecords:[],filterData:[],formData:{},sortData:{},tZindex:0,tablePage:{total:0,pageSize:10,currentPage:1}}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isMsg:function(){return!1!==this.proxyOpts.message},proxyOpts:function(){return Object.assign({},u.grid.proxyConfig,this.proxyConfig)},pagerOpts:function(){return Object.assign({},u.grid.pagerConfig,this.pagerConfig)},formOpts:function(){return Object.assign({},u.grid.formConfig,this.formConfig)},toolbarOpts:function(){return Object.assign({},u.grid.toolbarConfig,this.toolbarConfig||this.toolbar)},zoomOpts:function(){return Object.assign({},u.grid.zoomConfig,this.zoomConfig)},renderStyle:function(){return this.isZMax?{zIndex:this.tZindex}:null},tableExtendProps:function(){var e=this,t={};return In.forEach((function(n){t[n]=e[n]})),t},tableProps:function(){var e=this.isZMax,t=this.seqConfig,n=this.pagerConfig,i=this.loading,r=this.isCloak,o=this.editConfig,a=this.proxyConfig,s=this.proxyOpts,l=this.tableExtendProps,c=this.tableLoading,u=this.tablePage,d=this.tableData,h=Object.assign({},l);return e&&(l.maxHeight?h.maxHeight="auto":h.height="auto"),a&&(Object.assign(h,{loading:r||i||c,data:d,rowClassName:this.handleRowClassName}),(s.seq||s.index)&&N.isEnableConf(n)&&(h.seqConfig=Object.assign({},t,{startIndex:(u.currentPage-1)*u.pageSize}))),o&&(h.editConfig=Object.assign({},o,{activeMethod:this.handleActiveMethod})),h},pagerProps:function(){return Object.assign({},this.pagerOpts,this.proxyConfig?this.tablePage:{})}},watch:{columns:function(e){var t=this;this.$nextTick((function(){return t.loadColumn(e)}))},toolbar:function(e){e&&this.initToolbar()},toolbarConfig:function(e){e&&this.initToolbar()},proxyConfig:function(){this.initProxy()},pagerConfig:function(){this.initPages()}},created:function(){var e=this,t=this.customs,n=this.data,i=this.formOpts,r=this.proxyConfig,o=this.proxyOpts,a=o.props;t&&N.warn("vxe.error.removeProp",["customs"]),r&&(n||o.form&&i.data)&&console.warn("[vxe-grid] There is a conflict between the props proxy-config and data."),o.index&&N.warn("vxe.error.delProp",["proxy-config.index","proxy-config.seq"]),a&&a.data&&N.warn("vxe.error.delProp",["proxy-config.props.data","proxy-config.props.result"]),this.cloak&&(this.isCloak=!0,setTimeout((function(){e.isCloak=!1}),$.browse?500:300)),this.$nextTick((function(){var t=e.$refs.xTable;t&&t.isSC&&N.warn("vxe.error.errProp",["<vxe-table-column ...>","columns"])})),G.on(this,"keydown",this.handleGlobalKeydownEvent)},mounted:function(){this.columns&&this.columns.length&&this.loadColumn(this.columns),this.initToolbar(),this.initPages(),this.initProxy()},destroyed:function(){G.off(this,"keydown")},render:function(e){var t,n=this.$scopedSlots,i=this.vSize,r=this.isZMax,o=!(!n.form&&!N.isEnableConf(this.formConfig)),a=!!(n.toolbar||N.isEnableConf(this.toolbarConfig)||this.toolbar),s=!!n.top,l=!!n.bottom,c=!(!n.pager&&!N.isEnableConf(this.pagerConfig));return e("div",{class:["vxe-grid",(t={},rt(t,"size--".concat(i),i),rt(t,"t--animat",!!this.animat),rt(t,"is--round",this.round),rt(t,"is--maximize",r),rt(t,"is--loading",this.isCloak||this.loading||this.tableLoading),t)],style:this.renderStyle},[o?e("div",{ref:"formWrapper",class:"vxe-grid--form-wrapper"},n.form?n.form.call(this,{$grid:this},e):Pn(e,this)):null,a?e("div",{ref:"toolbarWrapper",class:"vxe-grid--toolbar-wrapper"},n.toolbar?n.toolbar.call(this,{$grid:this},e):[e("vxe-toolbar",{props:this.toolbarOpts,ref:"xToolbar",scopedSlots:Rn(this)})]):null,s?e("div",{ref:"topWrapper",class:"vxe-grid--top-wrapper"},n.top.call(this,{$grid:this},e)):null,e("vxe-table",{props:this.tableProps,on:jn(this),scopedSlots:n,ref:"xTable"},this.$slots.default),l?e("div",{ref:"bottomWrapper",class:"vxe-grid--bottom-wrapper"},n.bottom.call(this,{$grid:this},e)):null,c?e("div",{ref:"pagerWrapper",class:"vxe-grid--pager-wrapper"},n.pager?n.pager.call(this,{$grid:this},e):[e("vxe-pager",{props:this.pagerProps,on:{"page-change":this.pageChangeEvent},scopedSlots:Fn(this)})]):null])},methods:Tn(Tn({},Ln),{},{getParentHeight:function(){return(this.isZMax?$.getDomNode().visibleHeight:this.$el.parentNode.clientHeight)-this.getExcludeHeight()},getExcludeHeight:function(){var e=this.$refs,t=this.$el,n=this.isZMax,i=this.height,r=e.formWrapper,o=e.toolbarWrapper,a=e.topWrapper,s=e.bottomWrapper,l=e.pagerWrapper,c=n||"auto"!==i?0:Nn(t.parentNode);return c+Nn(t)+An(r)+An(o)+An(a)+An(s)+An(l)},handleRowClassName:function(e){var t=this.rowClassName,n=[];return this.pendingRecords.some((function(t){return t===e.row}))&&n.push("row--pending"),n.push(t?s.a.isFunction(t)?t(e):t:""),n},handleActiveMethod:function(e){var t=this.editConfig.activeMethod;return-1===this.pendingRecords.indexOf(e.row)&&(!t||t(e))},loadColumn:function(e){var t=this.$scopedSlots;return s.a.eachTree(e,(function(e){e.slots&&s.a.each(e.slots,(function(e,n,i){s.a.isFunction(e)||(t[e]?i[n]=t[e]:(i[n]=null,N.error("vxe.error.notSlot",[e])))}))})),this.$refs.xTable.loadColumn(e)},reloadColumn:function(e){return this.clearAll(),this.loadColumn(e)},initToolbar:function(){var e=this;this.$nextTick((function(){var t=e.$refs,n=t.xTable,i=t.xToolbar;n&&i&&n.connect(i)}))},initPages:function(){var e=this.tablePage,t=this.pagerConfig,n=this.pagerOpts,i=n.currentPage,r=n.pageSize;t&&(i&&(e.currentPage=i),r&&(e.pageSize=r))},initProxy:function(){var e=this,t=this.proxyInited,n=this.proxyConfig,i=this.proxyOpts,r=this.formConfig,o=this.formOpts;if(n){if(N.isEnableConf(r)&&i.form&&o.items){var a={};o.items.forEach((function(e){var t=e.field,n=e.itemRender;t&&(a[t]=n&&!s.a.isUndefined(n.defaultValue)?n.defaultValue:void 0)})),this.formData=a}t||!1===i.autoLoad||(this.proxyInited=!0,this.$nextTick((function(){return e.initLoad()})))}},initLoad:function(){var e=this.$refs,t=e.xTable,n=t.sortOpts.defaultSort,i={};n&&(i={property:n.field,order:n.order}),this.sortData=i,this.filterData=[],this.pendingRecords=[],this.commitProxy("query")},handleGlobalKeydownEvent:function(e){var t=27===e.keyCode;t&&this.isZMax&&!1!==this.zoomOpts.escRestore&&this.triggerZoomEvent(e)},commitProxy:function(e){var t,n=this,i=this.$refs,r=this.toolbar,o=this.toolbarConfig,a=this.toolbarOpts,l=this.proxyOpts,c=this.tablePage,d=this.pagerConfig,h=this.sortData,f=this.filterData,p=this.formData,g=this.isMsg,m=l.beforeQuery,v=l.afterQuery,b=l.beforeDelete,y=l.afterDelete,_=l.beforeSave,x=l.afterSave,C=l.ajax,S=void 0===C?{}:C,k=l.props,O=void 0===k?{}:k,M=i.xTable;if(s.a.isString(e)){var D=o||r?s.a.findTree(a.buttons,(function(t){return t.code===e}),{children:"dropdowns"}):null;t=D?D.item:null}else t=e,e=t.code;for(var E=t?t.params:null,T=arguments.length,L=new Array(T>1?T-1:0),I=1;I<T;I++)L[I-1]=arguments[I];switch(e){case"insert":this.insert();break;case"insert_actived":this.insert().then((function(e){var t=e.row;return n.setActiveRow(t)}));break;case"mark_cancel":this.triggerPendingEvent(e);break;case"remove_selection":case"remove":this.handleDeleteRow(e,"vxe.grid.removeSelectRecord",(function(){return n.removeCheckboxRow()}));break;case"import":this.importData(E);break;case"open_import":this.openImport(E);break;case"export":this.exportData(E);break;case"open_export":this.openExport(E);break;case"reset_custom":this.resetColumn(!0);break;case"init":case"reload":case"query":var A="init"===e,P="reload"===e,R=S.query;if(R){var F={code:e,button:t,$grid:this,sort:h,sorts:l.sort&&h&&(h.property||h.order)?[h]:[],filters:f,form:p,options:R};if(d&&(P&&(c.currentPage=1),N.isEnableConf(d)&&(F.page=c)),A||P){var j=M.sortOpts.defaultSort,B={};P&&(c.currentPage=1),j&&(B={property:j.field,order:j.order}),this.sortData=F.sort=B,this.filterData=F.filters=[],this.pendingRecords=[],l.sort&&(F.sorts=B&&(B.property||B.order)?[B]:[]),this.clearAll()}var z=[F].concat(L);return this.tableLoading=!0,Promise.resolve((m||R).apply(this,z)).catch((function(e){return e})).then((function(e){if(n.tableLoading=!1,e)if(N.isEnableConf(d)){var t=s.a.get(e,O.total||"page.total")||0;c.total=t,n.tableData=s.a.get(e,O.result||O.data||"result")||[];var i=Math.max(Math.ceil(t/c.pageSize),1);c.currentPage>i&&(c.currentPage=i)}else n.tableData=(O.list?s.a.get(e,O.list):e)||[];else n.tableData=[];v&&v.apply(void 0,w(z))}))}N.error("vxe.error.notFunc",["query"]);break;case"delete_selection":case"delete":var V=S.delete;if(V){var $=M.getCheckboxRecords(),W=$.filter((function(e){return!M.isInsertByRow(e)})),H={removeRecords:W},U=[{$grid:this,code:e,button:t,body:H,options:V}].concat(L);if($.length)return this.handleDeleteRow(e,"vxe.grid.deleteSelectRecord",(function(){return W.length?(n.tableLoading=!0,Promise.resolve((b||V).apply(n,U)).then((function(e){n.tableLoading=!1,n.pendingRecords=n.pendingRecords.filter((function(e){return-1===W.indexOf(e)})),g&&it.modal.message({message:n.getRespMsg(e,"vxe.grid.delSuccess"),status:"success"}),y?y.apply(void 0,w(U)):n.commitProxy("query")})).catch((function(t){n.tableLoading=!1,g&&it.modal.message({id:e,message:n.getRespMsg(t,"vxe.grid.operError"),status:"error"})}))):M.remove($)}));g&&it.modal.message({id:e,message:u.i18n("vxe.grid.selectOneRecord"),status:"warning"})}else N.error("vxe.error.notFunc",[e]);break;case"save":var q=S.save;if(q){var G=Object.assign({pendingRecords:this.pendingRecords},this.getRecordset()),K=G.insertRecords,Y=G.removeRecords,X=G.updateRecords,Z=G.pendingRecords,Q=[{$grid:this,code:e,button:t,body:G,options:q}].concat(L);return K.length&&(G.pendingRecords=Z.filter((function(e){return-1===K.indexOf(e)}))),Z.length&&(G.insertRecords=K.filter((function(e){return-1===Z.indexOf(e)}))),this.validate(G.insertRecords.concat(X)).then((function(){if(G.insertRecords.length||Y.length||X.length||G.pendingRecords.length)return n.tableLoading=!0,Promise.resolve((_||q).apply(n,Q)).then((function(e){n.tableLoading=!1,n.pendingRecords=[],g&&it.modal.message({message:n.getRespMsg(e,"vxe.grid.saveSuccess"),status:"success"}),x?x.apply(void 0,w(Q)):n.commitProxy("query")})).catch((function(t){n.tableLoading=!1,g&&it.modal.message({id:e,message:n.getRespMsg(t,"vxe.grid.operError"),status:"error"})}));g&&it.modal.message({id:e,message:u.i18n("vxe.grid.dataUnchanged"),status:"info"})})).catch((function(e){return e}))}N.error("vxe.error.notFunc",[e]);break;default:var J=it.commands.get(e);J&&J.apply(this,[{code:e,button:t,$grid:this,$table:M}].concat(L))}return this.$nextTick()},getRespMsg:function(e,t){var n,i=this.proxyOpts.props,r=void 0===i?{}:i;return e&&r.message&&(n=s.a.get(e,r.message)),n||u.i18n(t)},handleDeleteRow:function(e,t,n){var i=this.getCheckboxRecords();if(this.isMsg){if(i.length)return it.modal.confirm({id:"cfm_".concat(e),message:u.i18n(t),escClosable:!0}).then((function(e){"confirm"===e&&n()}));it.modal.message({id:"msg_".concat(e),message:u.i18n("vxe.grid.selectOneRecord"),status:"warning"})}else i.length&&n()},getFormItems:function(e){var t=this.formConfig,n=N.isEnableConf(t)&&t.items?t.items:[];return arguments.length?n[e]:n},getPendingRecords:function(){return this.pendingRecords},triggerToolbarBtnEvent:function(e,t){this.commitProxy(e,t),this.$emit("toolbar-button-click",{code:e.code,button:e,$grid:this,$event:t},t)},triggerPendingEvent:function(e){var t=this.pendingRecords,n=this.isMsg,i=this.getCheckboxRecords();if(i.length){var r=[],o=[];i.forEach((function(e){t.some((function(t){return e===t}))?o.push(e):r.push(e)})),o.length?this.pendingRecords=t.filter((function(e){return-1===o.indexOf(e)})).concat(r):r.length&&(this.pendingRecords=t.concat(r)),this.clearCheckboxRow()}else n&&it.modal.message({id:e,message:u.i18n("vxe.grid.selectOneRecord"),status:"warning"})},pageChangeEvent:function(e){var t=this.proxyConfig,n=this.tablePage,i=e.currentPage,r=e.pageSize;n.currentPage=i,n.pageSize=r,"current-change"===e.type?this.$listeners["current-page-change"]&&(N.warn("vxe.error.delEvent",["current-page-change","page-change"]),this.$emit("current-page-change",i)):this.$listeners["page-size-change"]&&(N.warn("vxe.error.delEvent",["page-size-change","page-change"]),this.$emit("page-size-change",r)),this.$emit("page-change",Object.assign({$grid:this},e)),t&&this.commitProxy("query")},sortChangeEvent:function(e){var t=this.remoteSort,n=e.$table,i=e.column,r=s.a.isBoolean(i.remoteSort)?i.remoteSort:n.sortOpts.remote||t,o=e.order?e.property:null;r&&(this.sortData=o?{property:o,field:o,prop:o,order:e.order,sortBy:e.sortBy}:{},this.proxyConfig&&(this.tablePage.currentPage=1,this.commitProxy("query"))),this.$emit("sort-change",Object.assign({$grid:this},e))},filterChangeEvent:function(e){var t=e.$table,n=e.filterList;(t.filterOpts.remote||this.remoteFilter)&&(this.filterData=n,this.proxyConfig&&(this.tablePage.currentPage=1,this.commitProxy("query"))),this.$emit("filter-change",Object.assign({$grid:this},e))},submitEvent:function(e,t){var n=this.proxyConfig;n&&this.commitProxy("reload"),this.$emit("form-submit",Object.assign({$grid:this},e),t)},resetEvent:function(e,t){var n=this.proxyConfig;n&&this.commitProxy("reload"),this.$emit("form-reset",Object.assign({$grid:this},e),t)},submitInvalidEvent:function(e,t){this.$emit("form-submit-invalid",Object.assign({$grid:this},e),t)},togglCollapseEvent:function(e,t){var n=this;this.$nextTick((function(){return n.recalculate(!0)})),this.$emit("form-toggle-collapse",Object.assign({$grid:this},e),t)},triggerZoomEvent:function(e){this.zoom(),this.$emit("zoom",{$grid:this,maximize:this.isZMax,type:this.isZMax?"max":"revert",$event:e})},zoom:function(){return this[this.isZMax?"revert":"maximize"]()},isMaximized:function(){return this.isZMax},maximize:function(){return this.handleZoom(!0)},revert:function(){return this.handleZoom()},handleZoom:function(e){var t=this,n=this.isZMax;return(e?!n:n)&&(this.isZMax=!n,this.tZindex<N.getLastZIndex()&&(this.tZindex=N.nextZIndex())),this.$nextTick().then((function(){return t.recalculate(!0)})).then((function(){return t.isZMax}))},getProxyInfo:function(){return this.proxyConfig?{data:this.tableData,filter:this.filterData,form:this.formData,sort:this.sortData,sorts:this.proxyOpts.sort?[this.sortData]:[],pager:this.tablePage,pendingRecords:this.pendingRecords}:null}}),install:function(e){it.Grid=Bn,it.GridComponent=Bn,e.component(Bn.name,Bn)}},zn=Bn,Vn=Bn,$n={name:"VxeTableContextMenu",props:{ctxMenuStore:Object,ctxMenuOpts:Object},render:function(e){var t=this.$parent,n=this._e,i=this.ctxMenuOpts,r=this.ctxMenuStore;return e("div",{class:["vxe-table--context-menu-wrapper",i.className,{"is--show":r.visible}],style:r.style},r.list.map((function(i,o){return i.every((function(e){return!1===e.visible}))?n():e("ul",{class:"vxe-context-menu--option-wrapper",key:o},i.map((function(i,a){var s=i.children&&i.children.some((function(e){return!1!==e.visible}));return!1===i.visible?n():e("li",{class:[i.className,{"link--disabled":i.disabled,"link--active":i===r.selected}],key:"".concat(o,"_").concat(a)},[e("a",{class:"vxe-context-menu--link",on:{click:function(e){t.ctxMenuLinkEvent(e,i)},mouseover:function(e){t.ctxMenuMouseoverEvent(e,i)},mouseout:function(e){t.ctxMenuMouseoutEvent(e,i)}}},[e("i",{class:["vxe-context-menu--link-prefix",i.prefixIcon]}),e("span",{class:"vxe-context-menu--link-content"},N.getFuncText(i.name)),e("i",{class:["vxe-context-menu--link-suffix",s?i.suffixIcon||"suffix--haschild":i.suffixIcon]})]),s?e("ul",{class:["vxe-table--context-menu-clild-wrapper",{"is--show":i===r.selected&&r.showChild}]},i.children.map((function(s,l){return!1===s.visible?n():e("li",{class:[s.className,{"link--disabled":s.disabled,"link--active":s===r.selectChild}],key:"".concat(o,"_").concat(a,"_").concat(l)},[e("a",{class:"vxe-context-menu--link",on:{click:function(e){t.ctxMenuLinkEvent(e,s)},mouseover:function(e){t.ctxMenuMouseoverEvent(e,i,s)},mouseout:function(e){t.ctxMenuMouseoutEvent(e,i,s)}}},[e("i",{class:["vxe-context-menu--link-prefix",s.prefixIcon]}),e("span",{class:"vxe-context-menu--link-content"},N.getFuncText(s.name))])])}))):n()])})))})))}},Wn={methods:{_closeMenu:function(){return Object.assign(this.ctxMenuStore,{visible:!1,selected:null,selectChild:null,showChild:!1}),this.$nextTick()},moveCtxMenu:function(e,t,n,i,r,o,a){var l,c=s.a.findIndexOf(a,(function(e){return n[i]===e}));if(t===r)o&&N.hasChildrenList(n.selected)?n.showChild=!0:(n.showChild=!1,n.selectChild=null);else if(38===t){for(var u=c-1;u>=0;u--)if(!1!==a[u].visible){l=a[u];break}n[i]=l||a[a.length-1]}else if(40===t){for(var d=c+1;d<a.length;d++)if(!1!==a[d].visible){l=a[d];break}n[i]=l||a[0]}else!n[i]||13!==t&&32!==t||this.ctxMenuLinkEvent(e,n[i])},handleGlobalContextmenuEvent:function(e){var t=this.$refs,n=this.tId,i=this.editStore,r=this.menuConfig,o=this.contextMenu,a=this.ctxMenuStore,s=this.ctxMenuOpts,l=this.mouseConfig,c=this.mouseOpts,u=i.selected,d=["header","body","footer"];if(r||o){if(a.visible&&t.ctxWrapper&&$.getEventTargetNode(e,t.ctxWrapper.$el).flag)return void e.preventDefault();if(this._keyCtx){var h="body",f={type:h,$grid:this.$xegrid,$table:this,keyboard:!0,columns:this.visibleColumn.slice(0),$event:e};if(l&&c.area){var p=this.getActiveCellArea();if(p&&p.row&&p.column)return f.row=p.row,f.column=p.column,void this.openContextMenu(e,h,f)}else if(l&&c.selected&&u.row&&u.column)return f.row=u.row,f.column=u.column,void this.openContextMenu(e,h,f)}for(var g=0;g<d.length;g++){var m=d[g],v=$.getEventTargetNode(e,this.$el,"vxe-".concat(m,"--column"),(function(e){return e.parentNode.parentNode.parentNode.getAttribute("data-tid")===n})),b={type:m,$grid:this.$xegrid,$table:this,columns:this.visibleColumn.slice(0),$event:e};if(v.flag){var y=v.targetElem,_=this.getColumnNode(y).item,w="".concat(m,"-");if(Object.assign(b,{column:_,columnIndex:this.getColumnIndex(_),cell:y}),"body"===m){var x=this.getRowNode(y.parentNode).item;w="",b.row=x,b.rowIndex=this.getRowIndex(x)}return this.openContextMenu(e,m,b),void(this.$listeners["".concat(w,"cell-context-menu")]?(N.warn("vxe.error.delEvent",["".concat(w,"cell-context-menu"),"".concat(w,"cell-menu")]),this.emitEvent("".concat(w,"cell-context-menu"),b,e)):this.emitEvent("".concat(w,"cell-menu"),b,e))}if($.getEventTargetNode(e,this.$el,"vxe-table--".concat(m,"-wrapper"),(function(e){return e.getAttribute("data-tid")===n})).flag)return void("cell"===s.trigger?e.preventDefault():this.openContextMenu(e,m,b))}}t.filterWrapper&&!$.getEventTargetNode(e,t.filterWrapper.$el).flag&&this.closeFilter(),this.closeMenu()},openContextMenu:function(e,t,n){var i=this,r=this.isCtxMenu,o=this.ctxMenuStore,a=this.ctxMenuOpts,s=a[t],l=a.visibleMethod;if(s){var c=s.options,u=s.disabled;u?e.preventDefault():r&&c&&c.length&&(n.options=c,this.preventEvent(e,"event.showMenu",n,(function(){if(!l||l(n,e)){e.preventDefault(),i.updateZindex();var t=$.getDomNode(),r=t.scrollTop,a=t.scrollLeft,s=t.visibleHeight,u=t.visibleWidth,d=e.clientY+r,h=e.clientX+a,f=function(){Object.assign(o,{args:n,visible:!0,list:c,selected:null,selectChild:null,showChild:!1,style:{zIndex:i.tZindex,top:"".concat(d,"px"),left:"".concat(h,"px")}}),i.$nextTick((function(){var e=i.$refs.ctxWrapper.$el,t=e.clientHeight,n=e.clientWidth,l=$.getAbsolutePos(e),c=l.boundingTop,f=l.boundingLeft,p=c+t-s,g=f+n-u;p>-10&&(o.style.top="".concat(Math.max(r+2,d-t-2),"px")),g>-10&&(o.style.left="".concat(Math.max(a+2,h-n-2),"px"))}))},p=n.keyboard,g=n.row,m=n.column;p&&g&&m?i.scrollToRow(g,m).then((function(){var e=i.getCell(g,m),t=$.getAbsolutePos(e),n=t.boundingTop,o=t.boundingLeft;d=n+r+Math.floor(e.offsetHeight/2),h=o+a+Math.floor(e.offsetWidth/2),f()})):f()}else i.closeMenu()})))}this.closeFilter()},ctxMenuMouseoverEvent:function(e,t,n){var i=e.currentTarget,r=this.ctxMenuStore;e.preventDefault(),e.stopPropagation(),r.selected=t,r.selectChild=n,n||(r.showChild=N.hasChildrenList(t),r.showChild&&this.$nextTick((function(){var e=i.nextElementSibling;if(e){var t=$.getAbsolutePos(i),n=t.boundingTop,r=t.boundingLeft,o=t.visibleHeight,a=t.visibleWidth,s=n+i.offsetHeight,l=r+i.offsetWidth,c="",u="";l+e.offsetWidth>a-10&&(c="auto",u="".concat(i.offsetWidth,"px"));var d="",h="";s+e.offsetHeight>o-10&&(d="auto",h="0"),e.style.left=c,e.style.right=u,e.style.top=d,e.style.bottom=h}})))},ctxMenuMouseoutEvent:function(e,t){var n=this.ctxMenuStore;t.children||(n.selected=null),n.selectChild=null},ctxMenuLinkEvent:function(e,t){if(!t.disabled&&(t.code||!t.children||!t.children.length)){var n=it.menus.get(t.code),i=Object.assign({menu:t,$grid:this.$xegrid,$table:this,$event:e},this.ctxMenuStore.args);n&&n.call(this,i,e),this.$listeners["context-menu-click"]?(N.warn("vxe.error.delEvent",["context-menu-click","menu-click"]),this.emitEvent("context-menu-click",i,e)):this.emitEvent("menu-click",i,e),this.closeMenu()}}}};$n.install=function(e){it.reg("menu"),rn.mixins.push(Wn),e.component($n.name,$n)};var Hn=$n,Un=$n;function qn(e,t){var n=t._e,i=t.$scopedSlots,r=t.$xegrid,o=t.$xetable,a=t.buttons,s=void 0===a?[]:a;return i.buttons?i.buttons.call(t,{$grid:r,$table:o},e):s.map((function(i){var a=i.name,s=i.visible,l=i.dropdowns,c=i.buttonRender,u=c?it.renderer.get(c.name):null;if(!1===s)return n();if(u){var d=u.renderToolbarButton||u.renderButton;if(d)return e("span",{class:"vxe-button--item"},d.call(t,e,c,{$grid:r,$table:o,button:i},{$grid:r,$table:o}))}return e("vxe-button",{on:{click:function(e){return t.btnEvent(e,i)}},props:{disabled:i.disabled,loading:i.loading,type:i.type,icon:i.icon,circle:i.circle,round:i.round,status:i.status,destroyOnClose:i.destroyOnClose,placement:i.placement,transfer:i.transfer},scopedSlots:l&&l.length?{default:function(){return N.getFuncText(a)},dropdowns:function(){return l.map((function(i){return!1===i.visible?n():e("vxe-button",{on:{click:function(e){return t.btnEvent(e,i)}},props:{disabled:i.disabled,loading:i.loading,type:i.type,icon:i.icon,circle:i.circle,round:i.round,status:i.status}},N.getFuncText(i.name))}))}}:null},N.getFuncText(a))}))}function Gn(e,t){var n=t.$scopedSlots,i=t.$xegrid,r=t.$xetable;return n.tools?n.tools.call(t,{$grid:i,$table:r},e):[]}function Kn(e,t){var n=t.$xetable,i=t.customStore,r=t.customOpts,o=t.columns,a=[],l={},c={},d=(n&&n.customOpts?n.customOpts.checkMethod:null)||r.checkMethod;return"manual"===r.trigger||("hover"===r.trigger?(l.mouseenter=t.handleMouseenterSettingEvent,l.mouseleave=t.handleMouseleaveSettingEvent,c.mouseenter=t.handleWrapperMouseenterEvent,c.mouseleave=t.handleWrapperMouseleaveEvent):l.click=t.handleClickSettingEvent),s.a.eachTree(o,(function(n){var i=N.formatText(n.getTitle(),1),r=n.getKey(),o=n.children&&n.children.length,s=!!d&&!d({column:n});(o||r)&&a.push(e("li",{class:["vxe-custom--option","level--".concat(n.level),{"is--group":o,"is--checked":n.visible,"is--indeterminate":n.halfVisible,"is--disabled":s}],attrs:{title:i},on:{click:function(){s||t.changeCustomOption(n)}}},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"}),e("span",{class:"vxe-checkbox--label"},i)]))})),e("div",{class:["vxe-custom--wrapper",{"is--active":i.visible}],ref:"customWrapper"},[e("vxe-button",{props:{circle:!0,icon:r.icon||u.icon.TOOLBAR_TOOLS_CUSTOM},attrs:{title:u.i18n("vxe.toolbar.custom")},on:l}),e("div",{class:"vxe-custom--option-wrapper"},[e("ul",{class:"vxe-custom--header"},[e("li",{class:["vxe-custom--option",{"is--checked":i.isAll,"is--indeterminate":i.isIndeterminate}],attrs:{title:u.i18n("vxe.table.allTitle")},on:{click:t.allCustomEvent}},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"}),e("span",{class:"vxe-checkbox--label"},u.i18n("vxe.toolbar.customAll"))])]),e("ul",{class:"vxe-custom--body",on:c},a),!1===r.isFooter?null:e("div",{class:"vxe-custom--footer"},[e("button",{class:"btn--confirm",on:{click:t.confirmCustomEvent}},u.i18n("vxe.toolbar.customConfirm")),e("button",{class:"btn--reset",on:{click:t.resetCustomEvent}},u.i18n("vxe.toolbar.customRestore"))])])])}var Yn={name:"VxeToolbar",props:{id:String,loading:Boolean,resizable:[Boolean,Object],refresh:[Boolean,Object],import:[Boolean,Object],export:[Boolean,Object],print:[Boolean,Object],zoom:[Boolean,Object],setting:[Boolean,Object],custom:[Boolean,Object],buttons:{type:Array,default:function(){return u.toolbar.buttons}},perfect:{type:Boolean,default:function(){return u.toolbar.perfect}},size:{type:String,default:function(){return u.toolbar.size||u.size}}},inject:{$xegrid:{default:null}},data:function(){return{$xetable:null,isRefresh:!1,columns:[],customStore:{isAll:!1,isIndeterminate:!1,visible:!1}}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},refreshOpts:function(){return Object.assign({},u.toolbar.refresh,this.refresh)},importOpts:function(){return Object.assign({},u.toolbar.import,this.import)},exportOpts:function(){return Object.assign({},u.toolbar.export,this.export)},printOpts:function(){return Object.assign({},u.toolbar.print,this.print)},resizableOpts:function(){return Object.assign({},u.toolbar.resizable,this.resizable)},zoomOpts:function(){return Object.assign({},u.toolbar.zoom,this.zoom)},customOpts:function(){return Object.assign({},u.toolbar.custom,this.custom)}},created:function(){var e=this,t=this.customOpts,n=this.refresh,i=this.resizable,r=this.setting,o=this.id,a=this.refreshOpts;if(t.storage&&!o)return N.error("vxe.error.reqProp",["toolbar.id"]);o&&N.warn("vxe.error.removeProp",["toolbar.id"]),r&&N.warn("vxe.error.delProp",["toolbar.setting","toolbar.custom"]),it._export||!this.export&&!this.import||N.error("vxe.error.reqModule",["Export"]),i&&N.warn("vxe.error.delProp",["toolbar.resizable","custom-config.storage"]),t.storage&&N.warn("vxe.error.delProp",["toolbar.custom.storage","custom-config.storage"]),this.$nextTick((function(){var t=e.fintTable();!n||e.$xegrid||a.query||N.warn("vxe.error.notFunc",["query"]),t&&t.connect(e)})),G.on(this,"mousedown",this.handleGlobalMousedownEvent),G.on(this,"blur",this.handleGlobalBlurEvent)},destroyed:function(){G.off(this,"mousedown"),G.off(this,"blur")},render:function(e){var t,n=this.$xegrid,i=this.perfect,r=this.loading,o=this.importOpts,a=this.exportOpts,s=this.refresh,l=this.refreshOpts,c=this.zoom,d=this.zoomOpts,h=this.custom,f=this.setting,p=this.vSize;return e("div",{class:["vxe-toolbar",(t={},rt(t,"size--".concat(p),p),rt(t,"is--perfect",i),rt(t,"is--loading",r),t)]},[e("div",{class:"vxe-buttons--wrapper"},qn(e,this)),e("div",{class:"vxe-tools--wrapper"},Gn(e,this)),e("div",{class:"vxe-tools--operate"},[this.import?e("vxe-button",{props:{circle:!0,icon:o.icon||u.icon.TOOLBAR_TOOLS_IMPORT},attrs:{title:u.i18n("vxe.toolbar.import")},on:{click:this.importEvent}}):null,this.export?e("vxe-button",{props:{circle:!0,icon:a.icon||u.icon.TOOLBAR_TOOLS_EXPORT},attrs:{title:u.i18n("vxe.toolbar.export")},on:{click:this.exportEvent}}):null,this.print?e("vxe-button",{props:{circle:!0,icon:this.printOpts.icon||u.icon.TOOLBAR_TOOLS_PRINT},attrs:{title:u.i18n("vxe.toolbar.print")},on:{click:this.printEvent}}):null,s?e("vxe-button",{props:{circle:!0,icon:this.isRefresh?l.iconLoading||u.icon.TOOLBAR_TOOLS_REFRESH_LOADING:l.icon||u.icon.TOOLBAR_TOOLS_REFRESH},attrs:{title:u.i18n("vxe.toolbar.refresh")},on:{click:this.refreshEvent}}):null,c&&n?e("vxe-button",{props:{circle:!0,icon:n.isMaximized()?d.iconOut||u.icon.TOOLBAR_TOOLS_ZOOM_OUT:d.iconIn||u.icon.TOOLBAR_TOOLS_ZOOM_IN},attrs:{title:u.i18n("vxe.toolbar.zoom".concat(n.isMaximized()?"Out":"In"))},on:{click:n.triggerZoomEvent}}):null,h||f?Kn(e,this):null])])},methods:{syncUpdate:function(e){var t=e.collectColumn,n=e.$table;this.$xetable=n,this.columns=t},fintTable:function(){var e=this.$parent.$children,t=e.indexOf(this);return s.a.find(e,(function(e,n){return e&&e.refreshColumn&&n>t&&"vxe-table"===e.$vnode.componentOptions.tag}))},checkTable:function(){if(this.$xetable)return!0;N.error("vxe.error.barUnableLink")},showCustom:function(){this.customStore.visible=!0,this.checkCustomStatus()},closeCustom:function(){var e=this.custom,t=this.setting,n=this.customStore;n.visible&&(n.visible=!1,!e&&!t||n.immediate||this.handleCustoms())},confirmCustomEvent:function(e){this.closeCustom(),this.emitCustomEvent("confirm",e)},customOpenEvent:function(e){var t=this.customStore;this.checkTable()&&(t.visible||(this.showCustom(),this.emitCustomEvent("open",e)))},customColseEvent:function(e){var t=this.customStore;t.visible&&(this.closeCustom(),this.emitCustomEvent("close",e))},resetCustomEvent:function(e){var t=this.$xetable,n=this.columns,i=this.customOpts,r=t.customOpts.checkMethod||i.checkMethod;s.a.eachTree(n,(function(e){r&&!r({column:e})||(e.visible=e.defaultVisible,e.halfVisible=!1),e.resizeWidth=0})),t.saveCustomResizable(!0),this.closeCustom(),this.emitCustomEvent("reset",e)},emitCustomEvent:function(e,t){var n=this.$xetable,i=this.$xegrid,r=i||n;r.$emit("custom",{type:e,$table:n,$grid:i,$event:t},t)},changeCustomOption:function(e){var t=!e.visible;s.a.eachTree([e],(function(e){e.visible=t,e.halfVisible=!1})),this.handleOptionCheck(e),this.custom&&this.customOpts.immediate&&this.handleCustoms(),this.checkCustomStatus()},handleOptionCheck:function(e){var t=s.a.findTree(this.columns,(function(t){return t===e}));if(t&&t.parent){var n=t.parent;n.children&&n.children.length&&(n.visible=n.children.every((function(e){return e.visible})),n.halfVisible=!n.visible&&n.children.some((function(e){return e.visible||e.halfVisible})),this.handleOptionCheck(n))}},handleCustoms:function(){var e=this.$xetable;e.saveCustomVisible(),e.analyColumnWidth(),e.refreshColumn()},checkCustomStatus:function(){var e=this.$xetable,t=this.columns,n=this.customOpts,i=e.customOpts.checkMethod||n.checkMethod;this.customStore.isAll=t.every((function(e){return!!i&&!i({column:e})||e.visible})),this.customStore.isIndeterminate=!this.customStore.isAll&&t.some((function(e){return(!i||i({column:e}))&&(e.visible||e.halfVisible)}))},allCustomEvent:function(){var e=this.$xetable,t=this.columns,n=this.customOpts,i=this.customStore,r=e.customOpts.checkMethod||n.checkMethod,o=!i.isAll;s.a.eachTree(t,(function(e){r&&!r({column:e})||(e.visible=o,e.halfVisible=!1)})),i.isAll=o,this.checkCustomStatus()},handleGlobalMousedownEvent:function(e){$.getEventTargetNode(e,this.$refs.customWrapper).flag||this.customColseEvent(e)},handleGlobalBlurEvent:function(e){this.customColseEvent(e)},handleClickSettingEvent:function(e){this.customStore.visible?this.customColseEvent(e):this.customOpenEvent(e)},handleMouseenterSettingEvent:function(e){this.customStore.activeBtn=!0,this.customOpenEvent(e)},handleMouseleaveSettingEvent:function(e){var t=this,n=this.customStore;n.activeBtn=!1,setTimeout((function(){n.activeBtn||n.activeWrapper||t.customColseEvent(e)}),300)},handleWrapperMouseenterEvent:function(e){this.customStore.activeWrapper=!0,this.customOpenEvent(e)},handleWrapperMouseleaveEvent:function(e){var t=this,n=this.customStore;n.activeWrapper=!1,setTimeout((function(){n.activeBtn||n.activeWrapper||t.customColseEvent(e)}),300)},refreshEvent:function(){var e=this,t=this.$xegrid,n=this.refreshOpts,i=this.isRefresh;if(!i)if(n.query){this.isRefresh=!0;try{Promise.resolve(n.query()).catch((function(e){return e})).then((function(){e.isRefresh=!1}))}catch(r){this.isRefresh=!1}}else t&&(this.isRefresh=!0,t.commitProxy("reload").catch((function(e){return e})).then((function(){e.isRefresh=!1})))},btnEvent:function(e,t){var n=this.$xegrid,i=this.$xetable,r=t.code;if(r)if(n)n.triggerToolbarBtnEvent(t,e);else{var o=it.commands.get(r),a={code:r,button:t,$xegrid:n,$table:i,$event:e};o&&o.call(this,a,e),this.$emit("button-click",a,e)}},importEvent:function(){this.checkTable()&&this.$xetable.openImport(this.importOpts)},exportEvent:function(){this.checkTable()&&this.$xetable.openExport(this.exportOpts)},printEvent:function(){this.checkTable()&&this.$xetable.print(this.printOpts)}},install:function(e){e.component(Yn.name,Yn)}},Xn=Yn,Zn=Yn,Qn={name:"VxePager",props:{size:{type:String,default:function(){return u.pager.size||u.size}},layouts:{type:Array,default:function(){return u.pager.layouts||["PrevJump","PrevPage","Jump","PageCount","NextPage","NextJump","Sizes","Total"]}},currentPage:{type:Number,default:1},loading:Boolean,pageSize:{type:Number,default:function(){return u.pager.pageSize||10}},total:{type:Number,default:0},pagerCount:{type:Number,default:function(){return u.pager.pagerCount||7}},pageSizes:{type:Array,default:function(){return u.pager.pageSizes||[10,15,20,50,100]}},align:{type:String,default:function(){return u.pager.align}},border:{type:Boolean,default:function(){return u.pager.border}},background:{type:Boolean,default:function(){return u.pager.background}},perfect:{type:Boolean,default:function(){return u.pager.perfect}},autoHidden:{type:Boolean,default:function(){return u.pager.autoHidden}},transfer:{type:Boolean,default:function(){return u.pager.transfer}},iconPrevPage:String,iconJumpPrev:String,iconJumpNext:String,iconNextPage:String,iconJumpMore:String},inject:{$xegrid:{default:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isSizes:function(){return this.layouts.some((function(e){return"Sizes"===e}))},pageCount:function(){return this.getPageCount(this.total,this.pageSize)},numList:function(){for(var e=this.pageCount>this.pagerCount?this.pagerCount-2:this.pagerCount,t=[],n=0;n<e;n++)t.push(n);return t},offsetNumber:function(){return Math.floor((this.pagerCount-2)/2)},sizeList:function(){return this.pageSizes.map((function(e){return s.a.isNumber(e)?{value:e,label:"".concat(u.i18n("vxe.pager.pagesize",[e]))}:Tn({value:"",label:""},e)}))}},render:function(e){var t,n=this,i=this.$scopedSlots,r=this.$xegrid,o=this.vSize,a=this.align,s=[];return i.left&&s.push(e("span",{class:"vxe-pager--left-wrapper"},[i.left.call(this,{$grid:r})])),this.layouts.forEach((function(t){s.push(n["render".concat(t)](e))})),i.right&&s.push(e("span",{class:"vxe-pager--right-wrapper"},[i.right.call(this,{$grid:r})])),e("div",{class:["vxe-pager",(t={},rt(t,"size--".concat(o),o),rt(t,"align--".concat(a),a),rt(t,"is--border",this.border),rt(t,"is--background",this.background),rt(t,"is--perfect",this.perfect),rt(t,"is--hidden",this.autoHidden&&1===this.pageCount),rt(t,"is--loading",this.loading),t)]},[e("div",{class:"vxe-pager--wrapper"},s)])},methods:{renderPrevPage:function(e){return e("span",{class:["vxe-pager--prev-btn",{"is--disabled":this.currentPage<=1}],attrs:{title:u.i18n("vxe.pager.prevPage")},on:{click:this.prevPage}},[e("i",{class:["vxe-pager--btn-icon",this.iconPrevPage||u.icon.PAGER_PREV_PAGE]})])},renderPrevJump:function(e,t){return e(t||"span",{class:["vxe-pager--jump-prev",{"is--fixed":!t,"is--disabled":this.currentPage<=1}],attrs:{title:u.i18n("vxe.pager.prevJump")},on:{click:this.prevJump}},[t?e("i",{class:["vxe-pager--jump-more-icon",this.iconJumpMore||u.icon.PAGER_JUMP_MORE]}):null,e("i",{class:["vxe-pager--jump-icon",this.iconJumpPrev||u.icon.PAGER_JUMP_PREV]})])},renderNumber:function(e){return e("ul",{class:"vxe-pager--btn-wrapper"},this.renderPageBtn(e))},renderJumpNumber:function(e){return e("ul",{class:"vxe-pager--btn-wrapper"},this.renderPageBtn(e,!0))},renderNextJump:function(e,t){return e(t||"span",{class:["vxe-pager--jump-next",{"is--fixed":!t,"is--disabled":this.currentPage>=this.pageCount}],attrs:{title:u.i18n("vxe.pager.nextJump")},on:{click:this.nextJump}},[t?e("i",{class:["vxe-pager--jump-more-icon",this.iconJumpMore||u.icon.PAGER_JUMP_MORE]}):null,e("i",{class:["vxe-pager--jump-icon",this.iconJumpNext||u.icon.PAGER_JUMP_NEXT]})])},renderNextPage:function(e){return e("span",{class:["vxe-pager--next-btn",{"is--disabled":this.currentPage>=this.pageCount}],attrs:{title:u.i18n("vxe.pager.nextPage")},on:{click:this.nextPage}},[e("i",{class:["vxe-pager--btn-icon",this.iconNextPage||u.icon.PAGER_NEXT_PAGE]})])},renderSizes:function(e){var t=this;return e("vxe-select",{class:"vxe-pager--sizes",props:{value:this.pageSize,placement:"top",transfer:this.transfer,options:this.sizeList},on:{change:function(e){var n=e.value;t.pageSizeEvent(n)}}})},renderFullJump:function(e){return this.renderJump(e,!0)},renderJump:function(e,t){return e("span",{class:"vxe-pager--jump"},[t?e("span",{class:"vxe-pager--goto-text"},u.i18n("vxe.pager.goto")):null,e("input",{class:"vxe-pager--goto",domProps:{value:this.currentPage},attrs:{type:"text",autocomplete:"off"},on:{keydown:this.jumpKeydownEvent,blur:this.triggerJumpEvent}}),t?e("span",{class:"vxe-pager--classifier-text"},u.i18n("vxe.pager.pageClassifier")):null])},renderPageCount:function(e){return e("span",{class:"vxe-pager--count"},[e("span",{class:"vxe-pager--separator"}),e("span",this.pageCount)])},renderTotal:function(e){return e("span",{class:"vxe-pager--total"},u.i18n("vxe.pager.total",[this.total]))},renderPageBtn:function(e,t){var n=this,i=this.numList,r=this.currentPage,o=this.pageCount,a=this.pagerCount,s=this.offsetNumber,l=[],c=o>a,u=c&&r>s+1,d=c&&r<o-s,h=1;return c&&(h=r>=o-s?Math.max(o-i.length+1,1):Math.max(r-s,1)),t&&u&&l.push(e("li",{class:"vxe-pager--num-btn",on:{click:function(){return n.jumpPage(1)}}},1),this.renderPrevJump(e,"li")),i.forEach((function(t,i){var a=h+i;a<=o&&l.push(e("li",{class:["vxe-pager--num-btn",{"is--active":r===a}],on:{click:function(){return n.jumpPage(a)}},key:a},a))})),t&&d&&l.push(this.renderNextJump(e,"li"),e("li",{class:"vxe-pager--num-btn",on:{click:function(){return n.jumpPage(o)}}},o)),l},getPageCount:function(e,t){return Math.max(Math.ceil(e/t),1)},prevPage:function(){var e=this.currentPage,t=this.pageCount;e>1&&this.jumpPage(Math.min(t,Math.max(e-1,1)))},nextPage:function(){var e=this.currentPage,t=this.pageCount;e<t&&this.jumpPage(Math.min(t,e+1))},prevJump:function(){this.jumpPage(Math.max(this.currentPage-this.numList.length,1))},nextJump:function(){this.jumpPage(Math.min(this.currentPage+this.numList.length,this.pageCount))},jumpPage:function(e){e!==this.currentPage&&(this.$emit("update:currentPage",e),this.$listeners["current-change"]&&(N.warn("vxe.error.delEvent",["current-change","page-change"]),this.$emit("current-change",e)),this.$emit("page-change",{type:"current",pageSize:this.pageSize,currentPage:e,$event:{type:"current"}}))},pageSizeEvent:function(e){this.changePageSize(e)},changePageSize:function(e){e!==this.pageSize&&(this.$emit("update:pageSize",e),this.$listeners["size-change"]&&(N.warn("vxe.error.delEvent",["size-change","page-change"]),this.$emit("size-change",e)),this.$emit("page-change",{type:"size",pageSize:e,currentPage:Math.min(this.currentPage,this.getPageCount(this.total,e)),$event:{type:"size"}}))},jumpKeydownEvent:function(e){13===e.keyCode?this.triggerJumpEvent(e):38===e.keyCode?(e.preventDefault(),this.nextPage()):40===e.keyCode&&(e.preventDefault(),this.prevPage())},triggerJumpEvent:function(e){var t=s.a.toNumber(e.target.value),n=t<=0?1:t>=this.pageCount?this.pageCount:t;e.target.value=n,this.jumpPage(n)}},install:function(e){e.component(Qn.name,Qn)}},Jn=Qn,ei=Qn,ti={name:"VxeCheckbox",props:{value:[String,Number,Boolean],label:[String,Number],indeterminate:Boolean,title:[String,Number],content:[String,Number],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},disabled:Boolean,size:{type:String,default:function(){return u.checkbox.size||u.size}}},inject:{$xegroup:{default:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isGroup:function(){return this.$xegroup},isDisabled:function(){return this.disabled||this.isGroup&&this.$xegroup.disabled}},render:function(e){var t,n=this,i=this.$slots,r=this.$xegroup,o=this.isGroup,a=this.isDisabled,s=this.title,l=this.vSize,c=this.indeterminate,u=this.value,d=this.label,h=this.content,f=this.checkedValue,p=this.uncheckedValue,g={};return s&&(g.title=s),e("label",{class:["vxe-checkbox",(t={},rt(t,"size--".concat(l),l),rt(t,"is--indeterminate",c),rt(t,"is--disabled",a),t)],attrs:g},[e("input",{class:"vxe-checkbox--input",attrs:{type:"checkbox",disabled:a},domProps:{checked:o?r.value&&r.value.some((function(e){return e===d})):u===f},on:{change:function(e){if(!a){var t=e.target.checked,i=t?f:p,s={checked:t,value:i,label:d,$event:e};o?r.handleChecked(s,e):(n.$emit("input",i),n.$emit("change",s,e))}}}}),e("span",{class:"vxe-checkbox--icon"}),e("span",{class:"vxe-checkbox--label"},i.default||[N.getFuncText(h)])])}},ni={name:"VxeCheckboxGroup",props:{value:Array,disabled:Boolean,size:{type:String,default:function(){return u.checkbox.size||u.size}}},provide:function(){return{$xegroup:this}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize}},render:function(e){return e("div",{class:"vxe-checkbox-group"},this.$slots.default)},methods:{handleChecked:function(e,t){var n=e.checked,i=e.label,r=this.value||[],o=r.indexOf(i);n?-1===o&&r.push(i):r.splice(o,1),this.$emit("input",r),this.$emit("change",Object.assign({checklist:r},e),t)}}};ti.install=function(e){e.component(ti.name,ti),e.component(ni.name,ni)};var ii=ti,ri=ti,oi={name:"VxeRadio",props:{value:[String,Number],label:[String,Number],title:[String,Number],content:[String,Number],disabled:Boolean,name:String,size:{type:String,default:function(){return u.radio.size||u.size}}},inject:{$xegroup:{default:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isGroup:function(){return this.$xegroup},isDisabled:function(){return this.disabled||this.isGroup&&this.$xegroup.disabled}},render:function(e){var t,n=this,i=this.$slots,r=this.$xegroup,o=this.isGroup,a=this.isDisabled,s=this.title,l=this.vSize,c=this.value,u=this.label,d=this.name,h=this.content,f={};return s&&(f.title=s),e("label",{class:["vxe-radio",(t={},rt(t,"size--".concat(l),l),rt(t,"is--disabled",a),t)],attrs:f},[e("input",{class:"vxe-radio--input",attrs:{type:"radio",name:o?r.name:d,disabled:a},domProps:{checked:o?r.value===u:c===u},on:{change:function(e){if(!a){var t={label:u,$event:e};o?r.handleChecked(t,e):(n.$emit("input",u),n.$emit("change",t,e))}}}}),e("span",{class:"vxe-radio--icon"}),e("span",{class:"vxe-radio--label"},i.default||[N.getFuncText(h)])])}},ai={name:"VxeRadioButton",props:{label:[String,Number],title:[String,Number],content:[String,Number],disabled:Boolean,size:{type:String,default:function(){return u.radio.size||u.size}}},inject:{$xegroup:{default:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isGroup:function(){return this.$xegroup},isDisabled:function(){return this.disabled||this.isGroup&&this.$xegroup.disabled}},render:function(e){var t,n=this.$slots,i=this.$xegroup,r=this.isGroup,o=this.isDisabled,a=this.title,s=this.vSize,l=this.label,c=this.content,u={};return a&&(u.title=a),e("label",{class:["vxe-radio","vxe-radio-button",(t={},rt(t,"size--".concat(s),s),rt(t,"is--disabled",o),t)],attrs:u},[e("input",{class:"vxe-radio--input",attrs:{type:"radio",name:r?i.name:null,disabled:o},domProps:{checked:r&&i.value===l},on:{change:function(e){o||r&&i.handleChecked({label:l,$event:e})}}}),e("span",{class:"vxe-radio--label"},n.default||[N.getFuncText(c)])])}},si={name:"VxeRadioGroup",props:{value:[String,Number],disabled:Boolean,size:{type:String,default:function(){return u.radio.size||u.size}}},provide:function(){return{$xegroup:this}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize}},data:function(){return{name:s.a.uniqueId("xegroup_")}},render:function(e){return e("div",{class:"vxe-radio-group"},this.$slots.default)},methods:{handleChecked:function(e,t){this.$emit("input",e.label),this.$emit("change",e,t)}}};oi.install=function(e){e.component(oi.name,oi),e.component(ai.name,ai),e.component(si.name,si)};var li=oi,ci=oi,ui=(n("4d90"),$.browse),di=ui.firefox?"DOMMouseScroll":"mousewheel",hi=20,fi=20;function pi(e){if(e){var t,n,i,r=new Date;if(s.a.isDate(e))t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();else{e=s.a.toString(e);var o=e.match(/^(\d{1,2})(:(\d{1,2}))?(:(\d{1,2}))?/);o&&(t=o[1],n=o[3],i=o[5])}return r.setHours(t||0),r.setMinutes(n||0),r.setSeconds(i||0),r}return new Date("")}function gi(e,t){return/^-/.test(""+e)?s.a.toFixed(s.a.ceil(e,t),t):s.a.toFixed(s.a.floor(e,t),t)}function mi(e,t){var n=t.inpAttrs,i=t.inpEvents,r=t.value;return e("input",{ref:"input",class:"vxe-input--inner",domProps:{value:r},attrs:n,on:i})}function vi(e,t){var n=t.inpAttrs,i=t.inpEvents,r=t.inputValue;return e("input",{ref:"input",class:"vxe-input--inner",domProps:{value:r},attrs:n,on:i})}function bi(e,t,n,i){var r=t.festivalMethod;if(r){var o=r(Tn({$input:t,type:t.datePanelType,viewType:t.datePanelType},n)),a=o?s.a.isString(o)?{label:o}:o:{},l=a.extra?s.a.isString(a.extra)?{label:a.extra}:a.extra:null,c=[e("span",{class:["vxe-input--date-label",{"is-notice":a.notice}]},l&&l.label?[e("span",i),e("span",{class:["vxe-input--date-label--extra",l.important?"is-important":"",l.className],style:l.style},s.a.toString(l.label))]:i)],u=a.label;if(u){var d=s.a.toString(u).split(",");c.push(e("span",{class:["vxe-input--date-festival",a.important?"is-important":"",a.className],style:a.style},[d.length>1?e("span",{class:["vxe-input--date-festival--overlap","overlap--".concat(d.length)]},d.map((function(t){return e("span",t.substring(0,3))}))):e("span",{class:"vxe-input--date-festival--label"},d[0].substring(0,3))]))}return c}return i}function yi(e,t){var n=e.disabledMethod||e.dateOpts.disabledMethod;return n&&n({$input:e,type:e.datePanelType,viewType:e.datePanelType,date:t.date})}function _i(e,t){var n=t.datePanelType,i=t.dateValue,r=t.datePanelValue,o=t.dateHeaders,a=t.dayDatas,l="yyyy-MM-dd";return[e("table",{class:"vxe-input--date-".concat(n,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[e("thead",[e("tr",o.map((function(t){return e("th",t.label)})))]),e("tbody",a.map((function(n){return e("tr",n.map((function(n){return e("td",{class:{"is--prev":n.isPrev,"is--current":n.isCurrent,"is--now":n.isNow,"is--next":n.isNext,"is--disabled":yi(t,n),"is--selected":s.a.isDateSame(i,n.date,l),"is--hover":s.a.isDateSame(r,n.date,l)},on:{click:function(){return t.dateSelectEvent(n)},mouseenter:function(){return t.dateMouseenterEvent(n)}}},bi(e,t,n,n.label))})))})))])]}function wi(e,t){var n=t.datePanelType,i=t.dateValue,r=t.datePanelValue,o=t.weekHeaders,a=t.weekDates,l="yyyy-MM-dd";return[e("table",{class:"vxe-input--date-".concat(n,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[e("thead",[e("tr",o.map((function(t){return e("th",t.label)})))]),e("tbody",a.map((function(n){var o=n.some((function(e){return s.a.isDateSame(i,e.date,l)})),a=n.some((function(e){return s.a.isDateSame(r,e.date,l)}));return e("tr",n.map((function(n){return e("td",{class:{"is--prev":n.isPrev,"is--current":n.isCurrent,"is--now":n.isNow,"is--next":n.isNext,"is--disabled":yi(t,n),"is--selected":o,"is--hover":a},on:{click:function(){return t.dateSelectEvent(n)},mouseenter:function(){return t.dateMouseenterEvent(n)}}},bi(e,t,n,n.label))})))})))])]}function xi(e,t){var n=t.dateValue,i=t.datePanelType,r=t.monthDatas,o=t.datePanelValue,a="yyyy-MM";return[e("table",{class:"vxe-input--date-".concat(i,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",r.map((function(i){return e("tr",i.map((function(i){return e("td",{class:{"is--prev":i.isPrev,"is--current":i.isCurrent,"is--now":i.isNow,"is--next":i.isNext,"is--disabled":yi(t,i),"is--selected":s.a.isDateSame(n,i.date,a),"is--hover":s.a.isDateSame(o,i.date,a)},on:{click:function(){return t.dateSelectEvent(i)},mouseenter:function(){return t.dateMouseenterEvent(i)}}},bi(e,t,i,u.i18n("vxe.input.date.months.m".concat(i.month))))})))})))])]}function Ci(e,t){var n=t.dateValue,i=t.datePanelType,r=t.yearDatas,o=t.datePanelValue,a="yyyy";return[e("table",{class:"vxe-input--date-".concat(i,"-view"),attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",r.map((function(i){return e("tr",i.map((function(i){return e("td",{class:{"is--disabled":yi(t,i),"is--current":i.isCurrent,"is--now":i.isNow,"is--selected":s.a.isDateSame(n,i.date,a),"is--hover":s.a.isDateSame(o,i.date,a)},on:{click:function(){return t.dateSelectEvent(i)},mouseenter:function(){return t.dateMouseenterEvent(i)}}},bi(e,t,i,i.year))})))})))])]}function Si(e,t){var n=t.datePanelType;switch(n){case"week":return wi(e,t);case"month":return xi(e,t);case"year":return Ci(e,t)}return _i(e,t)}function ki(e,t){var n=t.datePanelType,i=t.selectDatePanelLabel,r=t.isDisabledPrevDateBtn,o=t.isDisabledNextDateBtn;return[e("div",{class:"vxe-input--date-picker-header"},[e("div",{class:"vxe-input--date-picker-type-wrapper"},[e("span","year"===n?{class:"vxe-input--date-picker-label"}:{class:"vxe-input--date-picker-btn",on:{click:t.dateToggleTypeEvent}},i)]),e("div",{class:"vxe-input--date-picker-btn-wrapper"},[e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-prev-btn",{"is--disabled":r}],on:{click:t.datePrevEvent}},[e("i",{class:"vxe-icon--caret-left"})]),e("span",{class:"vxe-input--date-picker-btn vxe-input--date-picker-current-btn",on:{click:t.dateTodayMonthEvent}},[e("i",{class:"vxe-icon--dot"})]),e("span",{class:["vxe-input--date-picker-btn vxe-input--date-picker-next-btn",{"is--disabled":o}],on:{click:t.dateNextEvent}},[e("i",{class:"vxe-icon--caret-right"})])])]),e("div",{class:"vxe-input--date-picker-body"},Si(e,t))]}function Oi(e,t){var n=t.dateTimeLabel,i=t.datetimePanelValue,r=t.hourList,o=t.minuteList,a=t.secondList;return[e("div",{class:"vxe-input--time-picker-header"},[e("span",{class:"vxe-input--time-picker-title"},n),e("button",{class:"vxe-input--time-picker-confirm",attrs:{type:"button"},on:{click:t.dateConfirmEvent}},u.i18n("vxe.button.confirm"))]),e("div",{ref:"timeBody",class:"vxe-input--time-picker-body"},[e("ul",{class:"vxe-input--time-picker-hour-list"},r.map((function(n,r){return e("li",{key:r,class:{"is--selected":i&&i.getHours()===n.value},on:{click:function(e){return t.dateHourEvent(e,n)}}},n.label)}))),e("ul",{class:"vxe-input--time-picker-minute-list"},o.map((function(n,r){return e("li",{key:r,class:{"is--selected":i&&i.getMinutes()===n.value},on:{click:function(e){return t.dateMinuteEvent(e,n)}}},n.label)}))),e("ul",{class:"vxe-input--time-picker-second-list"},a.map((function(n,r){return e("li",{key:r,class:{"is--selected":i&&i.getSeconds()===n.value},on:{click:function(e){return t.dateSecondEvent(e,n)}}},n.label)})))])]}function Mi(e,t){var n,i=t.type,r=t.vSize,o=t.isDatePicker,a=t.transfer,s=t.animatVisible,l=t.visiblePanel,c=t.panelPlacement,u=t.panelStyle,d=[];return o?("datetime"===i?d.push(e("div",{class:"vxe-input--panel-layout-wrapper"},[e("div",{class:"vxe-input--panel-left-wrapper"},ki(e,t)),e("div",{class:"vxe-input--panel-right-wrapper"},Oi(e,t))])):"time"===i?d.push(e("div",{class:"vxe-input--panel-wrapper"},Oi(e,t))):d.push(e("div",{class:"vxe-input--panel-wrapper"},ki(e,t))),e("div",{ref:"panel",class:["vxe-table--ignore-clear vxe-input--panel","type--".concat(i),(n={},rt(n,"size--".concat(r),r),rt(n,"is--transfer",a),rt(n,"animat--leave",s),rt(n,"animat--enter",l),n)],attrs:{"data-placement":c},style:u},d)):null}function Di(e,t){return e("span",{class:"vxe-input--number-suffix"},[e("span",{class:"vxe-input--number-prev is--prev",on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-prev-icon",u.icon.INPUT_PREV_NUM]})]),e("span",{class:"vxe-input--number-next is--next",on:{mousedown:t.numberMousedownEvent,mouseup:t.numberStopDown,mouseleave:t.numberStopDown}},[e("i",{class:["vxe-input--number-next-icon",u.icon.INPUT_NEXT_NUM]})])])}function Ei(e,t){return e("span",{class:"vxe-input--date-picker-suffix",on:{click:t.datePickerOpenEvent}},[e("i",{class:["vxe-input--date-picker-icon",u.icon.INPUT_DATE]})])}function Ti(e,t){return e("span",{class:"vxe-input--search-suffix",on:{click:t.searchEvent}},[e("i",{class:["vxe-input--search-icon",u.icon.INPUT_SEARCH]})])}function Li(e,t){var n=t.showPwd;return e("span",{class:"vxe-input--password-suffix",on:{click:t.passwordToggleEvent}},[e("i",{class:["vxe-input--password-icon",n?u.icon.INPUT_SHOW_PWD:u.icon.INPUT_PWD]})])}function Ii(e,t){var n=t.$scopedSlots,i=t.prefixIcon,r=[];return n.prefix?r.push(e("span",{class:"vxe-input--prefix-icon"},n.prefix.call(this,{},e))):i&&r.push(e("i",{class:["vxe-input--prefix-icon",i]})),r.length?e("span",{class:"vxe-input--prefix",on:{click:t.clickPrefixEvent}},r):null}function Ai(e,t){var n=t.$scopedSlots,i=t.value,r=t.isClearable,o=t.disabled,a=t.suffixIcon,l=[];return n.suffix?l.push(e("span",{class:"vxe-input--suffix-icon"},n.suffix.call(this,{},e))):a&&l.push(e("i",{class:["vxe-input--suffix-icon",a]})),r&&l.push(e("i",{class:["vxe-input--clear-icon",u.icon.INPUT_CLEAR]})),l.length?e("span",{class:["vxe-input--suffix",{"is--clear":r&&!o&&!(""===i||s.a.eqNull(i))}],on:{click:t.clickSuffixEvent}},l):null}function Ni(e,t){var n,i=t.controls,r=t.isPassword,o=t.isNumber,a=t.isDatePicker,s=t.isSearch;return r?n=Li(e,t):o?i&&(n=Di(e,t)):a?n=Ei(e,t):s&&(n=Ti(e,t)),n?e("span",{class:"vxe-input--extra-suffix"},[n]):null}var Pi,Ri={name:"VxeInput",props:{value:[String,Number,Date],name:String,type:{type:String,default:"text"},clearable:{type:Boolean,default:function(){return u.input.clearable}},readonly:Boolean,disabled:Boolean,placeholder:String,maxlength:[String,Number],autocomplete:{type:String,default:"off"},align:String,form:String,size:{type:String,default:function(){return u.input.size||u.size}},min:{type:[String,Number],default:null},max:{type:[String,Number],default:null},step:[String,Number],controls:{type:Boolean,default:function(){return u.input.controls}},digits:{type:[String,Number],default:function(){return u.input.digits}},dateConfig:Object,minDate:{type:[String,Number,Date],default:function(){return u.input.minDate}},maxDate:{type:[String,Number,Date],default:function(){return u.input.maxDate}},startWeek:Number,startDay:{type:[String,Number],default:function(){return u.input.startDay}},labelFormat:{type:String,default:function(){return u.input.labelFormat}},parseFormat:{type:String,default:function(){return u.input.parseFormat}},valueFormat:{type:String,default:function(){return u.input.valueFormat}},editable:{type:Boolean,default:!0},festivalMethod:{type:Function,default:function(){return u.input.festivalMethod}},disabledMethod:{type:Function,default:function(){return u.input.disabledMethod}},prefixIcon:String,suffixIcon:String,placement:String,transfer:{type:Boolean,default:function(){return u.input.transfer}}},data:function(){return{panelIndex:0,showPwd:!1,visiblePanel:!1,animatVisible:!1,panelStyle:null,panelPlacement:null,isActivated:!1,inputValue:"",datetimePanelValue:null,datePanelValue:null,datePanelLabel:"",datePanelType:"day",selectMonth:null,currentDate:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isNumber:function(){return["number","integer","float"].indexOf(this.type)>-1},isDatePicker:function(){return this.hasTime||["date","week","month","year"].indexOf(this.type)>-1},hasTime:function(){var e=this.type;return"time"===e||"datetime"===e},isPassword:function(){return"password"===this.type},isSearch:function(){return"search"===this.type},stepValue:function(){var e=this.type,t=this.step;return"integer"===e?s.a.toInteger(t)||1:"float"===e?s.a.toNumber(t)||1/Math.pow(10,this.digitsValue):s.a.toNumber(t)||1},digitsValue:function(){return s.a.toInteger(this.digits)||1},isClearable:function(){return this.clearable&&(this.isPassword||this.isNumber||this.isDatePicker||"text"===this.type||"search"===this.type)},isDisabledPrevDateBtn:function(){var e=this.selectMonth,t=this.dateMinTime;return!!e&&e<=t},isDisabledNextDateBtn:function(){var e=this.selectMonth,t=this.dateMaxTime;return!!e&&e>=t},dateMinTime:function(){return this.minDate?s.a.toStringDate(this.minDate):null},dateMaxTime:function(){return this.maxDate?s.a.toStringDate(this.maxDate):null},dateValue:function(){var e,t=this.value,n=this.isDatePicker,i=this.type,r=this.dateValueFormat,o=null;t&&n&&(e="time"===i?pi(t):s.a.toStringDate(t,r),s.a.isValidDate(e)&&(o=e));return o},dateTimeLabel:function(){var e=this.datetimePanelValue;return e?s.a.toDateString(e,"HH:mm:ss"):""},hmsTime:function(){var e=this.dateValue;return e&&this.hasTime?1e3*(3600*e.getHours()+60*e.getMinutes()+e.getSeconds()):0},dateLabelFormat:function(){return this.isDatePicker?this.labelFormat||this.dateOpts.labelFormat||u.i18n("vxe.input.date.labelFormat.".concat(this.type)):null},dateValueFormat:function(){var e=this.type;return"time"===e?"HH:mm:ss":this.valueFormat||this.dateOpts.valueFormat||("datetime"===e?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd")},selectDatePanelLabel:function(){if(this.isDatePicker){var e,t=this.datePanelType,n=this.selectMonth,i=this.yearList,r="";return n&&(r=n.getFullYear(),e=n.getMonth()+1),"month"===t?u.i18n("vxe.input.date.monthLabel",[r]):"year"===t?i.length?"".concat(i[0].year," - ").concat(i[i.length-1].year):"":u.i18n("vxe.input.date.dayLabel",[r,e?u.i18n("vxe.input.date.m".concat(e)):"-"])}return""},weekDatas:function(){var e=[];if(this.isDatePicker){var t=this.startDay,n=this.startWeek,i=s.a.toNumber(s.a.isNumber(t)||s.a.isString(t)?t:s.a.isNumber(n)?n:this.dateOpts.startWeek);e.push(i);for(var r=0;r<6;r++)i>=6?i=0:i++,e.push(i)}return e},dateHeaders:function(){return this.isDatePicker?this.weekDatas.map((function(e){return{value:e,label:u.i18n("vxe.input.date.weeks.w".concat(e))}})):[]},weekHeaders:function(){return this.isDatePicker?[{label:u.i18n("vxe.input.date.weeks.w")}].concat(this.dateHeaders):[]},yearList:function(){var e=this.selectMonth,t=this.currentDate,n=[];if(e&&t)for(var i=t.getFullYear(),r=new Date((""+e.getFullYear()).replace(/\d{1}$/,"0"),0,1),o=-10;o<hi-10;o++){var a=s.a.getWhatYear(r,o,"first"),l=a.getFullYear();n.push({date:a,isCurrent:!0,isNow:i===l,year:l})}return n},yearDatas:function(){return s.a.chunk(this.yearList,4)},monthList:function(){var e=this.selectMonth,t=this.currentDate,n=[];if(e&&t)for(var i=t.getFullYear(),r=t.getMonth(),o=s.a.getWhatYear(e,0,"first").getFullYear(),a=-4;a<fi-4;a++){var l=s.a.getWhatYear(e,0,a),c=l.getFullYear(),u=l.getMonth(),d=c<o;n.push({date:l,isPrev:d,isCurrent:c===o,isNow:c===i&&u===r,isNext:!d&&c>o,month:u})}return n},monthDatas:function(){return s.a.chunk(this.monthList,4)},dayList:function(){var e=this.weekDatas,t=this.selectMonth,n=this.currentDate,i=this.hmsTime,r=[];if(t&&n)for(var o=n.getFullYear(),a=n.getMonth(),l=n.getDate(),c=t.getFullYear(),u=t.getMonth(),d=t.getDay(),h=-e.indexOf(d),f=new Date(s.a.getWhatDay(t,h).getTime()+i),p=0;p<42;p++){var g=s.a.getWhatDay(f,p),m=g.getFullYear(),v=g.getMonth(),b=g.getDate(),y=g<t;r.push({date:g,isPrev:y,isCurrent:m===c&&v===u,isNow:m===o&&v===a&&b===l,isNext:!y&&u!==v,label:b})}return r},dayDatas:function(){return s.a.chunk(this.dayList,7)},weekDates:function(){return this.dayDatas.map((function(e){var t=e[0],n={date:t.date,isWeekNumber:!0,isPrev:!1,isCurrent:!1,isNow:!1,isNext:!1,label:s.a.getYearWeek(t.date)};return[n].concat(e)}))},dateOpts:function(){return Object.assign({},this.dateConfig,u.input.dateConfig)},hourList:function(){var e=[];if(this.hasTime)for(var t=0;t<24;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},minuteList:function(){var e=[];if(this.hasTime)for(var t=0;t<60;t++)e.push({value:t,label:(""+t).padStart(2,0)});return e},secondList:function(){return this.minuteList},inpAttrs:function(){var e=this.isDatePicker,t=this.isNumber,n=this.isPassword,i=this.type,r=this.name,o=this.placeholder,a=this.readonly,l=this.disabled,c=this.maxlength,u=this.form,d=this.autocomplete,h=this.showPwd,f=this.editable,p=i;(e||t||n&&h||"number"===i)&&(p="text");var g={name:r,form:u,type:p,placeholder:o,maxlength:t&&!s.a.toNumber(c)?16:c,readonly:a||"week"===i||!f||!1===this.dateOpts.editable,disabled:l,autocomplete:d};return o&&(g.placeholder=N.getFuncText(o)),g},inpEvents:function(){var e=this,t={};return s.a.each(this.$listeners,(function(n,i){-1===["change","clear","prefix-click","suffix-click"].indexOf(i)&&(t[i]=e.triggerEvent)})),this.isNumber?(t.keydown=this.keydownEvent,t[di]=this.mousewheelEvent):this.isDatePicker&&(t.click=this.clickEvent),t.input=this.inputEvent,t.focus=this.focusEvent,t.blur=this.blurEvent,t}},watch:{value:function(){this.changeValue()},dateLabelFormat:function(){this.dateParseValue(this.datePanelValue),this.inputValue=this.datePanelLabel}},created:function(){this.initValue(),G.on(this,"mousewheel",this.handleGlobalMousewheelEvent),G.on(this,"mousedown",this.handleGlobalMousedownEvent),G.on(this,"keydown",this.handleGlobalKeydownEvent),G.on(this,"blur",this.handleGlobalBlurEvent)},mounted:function(){this.dateConfig&&N.warn("vxe.error.removeProp",["date-config"]),this.isDatePicker&&this.transfer&&document.body.appendChild(this.$refs.panel)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){this.numberStopDown(),G.off(this,"mousewheel"),G.off(this,"mousedown"),G.off(this,"keydown"),G.off(this,"blur")},render:function(e){var t,n=this.controls,i=this.isDatePicker,r=this.visiblePanel,o=this.isActivated,a=this.vSize,s=this.type,l=this.align,c=this.readonly,u=this.disabled,d=[],h=Ii(e,this),f=Ai(e,this);return h&&d.push(h),d.push(i?vi(e,this):mi(e,this)),f&&d.push(f),d.push(Ni(e,this)),i&&d.push(Mi(e,this)),e("div",{class:["vxe-input","type--".concat(s),(t={},rt(t,"size--".concat(a),a),rt(t,"is--".concat(l),l),rt(t,"is--controls",n),rt(t,"is--prefix",!!h),rt(t,"is--suffix",!!f),rt(t,"is--readonly",c),rt(t,"is--visivle",r),rt(t,"is--disabled",u),rt(t,"is--active",o),t)]},d)},methods:{focus:function(){return this.isActivated=!0,this.$refs.input.focus(),this.$nextTick()},blur:function(){return this.$refs.input.blur(),this.isActivated=!1,this.$nextTick()},triggerEvent:function(e){var t=this.$refs,n=this.value;this.$emit(e.type,{$panel:t.panel,value:n,$event:e},e)},emitUpdate:function(e,t){this.$emit("input",e),s.a.toString(this.value)!==e&&this.$emit("change",{value:e,$event:t})},inputEvent:function(e){var t=this.isDatePicker,n=e.target.value;this.inputValue=n,t||this.emitUpdate(n,e)},focusEvent:function(e){this.isActivated=!0,this.triggerEvent(e)},blurEvent:function(e){this.afterCheckValue(),this.visiblePanel||(this.isActivated=!1),this.triggerEvent(e)},keydownEvent:function(e){if(this.isNumber){var t=e.ctrlKey,n=e.shiftKey,i=e.altKey,r=e.keyCode;t||n||i||!(32===r||r>=65&&r<=90||r>=186&&r<=188||r>=191)||e.preventDefault(),this.numberKeydownEvent(e)}this.triggerEvent(e)},mousewheelEvent:function(e){if(this.isNumber&&this.controls&&this.isActivated){var t=-e.wheelDelta||e.detail;t>0?this.numberNextEvent(e):t<0&&this.numberPrevEvent(e),e.preventDefault()}},clickEvent:function(e){var t=this.isDatePicker;t&&this.datePickerOpenEvent(e),this.triggerEvent(e)},clickPrefixEvent:function(e){var t=this.$refs,n=this.disabled,i=this.value;n||this.$emit("prefix-click",{$panel:t.panel,value:i,$event:e},e)},clickSuffixEvent:function(e){var t=this.$refs,n=this.disabled,i=this.value;n||($.hasClass(e.currentTarget,"is--clear")?(this.emitUpdate("",e),this.clearValueEvent(e,"")):this.$emit("suffix-click",{$panel:t.panel,value:i,$event:e},e))},clearValueEvent:function(e,t){var n=this.$refs,i=this.type,r=this.isNumber;this.isDatePicker&&this.hidePanel(),(r||["text","password"].indexOf(i)>-1)&&this.focus(),this.$emit("clear",{$panel:n.panel,value:t,$event:e},e)},initValue:function(){var e=this.type,t=this.isDatePicker,n=this.value,i=this.digitsValue;if(t)this.changeValue();else if("float"===e&&n){var r=gi(n,i);n!==r&&this.emitUpdate(r,{type:"init"})}},changeValue:function(){this.isDatePicker&&(this.dateParseValue(this.value),this.inputValue=this.datePanelLabel)},afterCheckValue:function(){var e=this.type,t=this.inpAttrs,n=this.value,i=this.inputValue,r=this.isDatePicker,o=this.isNumber,a=this.datetimePanelValue,l=this.dateLabelFormat,c=this.min,u=this.max,d=this.digitsValue;if(!t.readonly)if(o){if(n){var h="integer"===e?s.a.toInteger(n):s.a.toNumber(n);this.vaildMinNum(h)?this.vaildMaxNum(h)||(h=u):h=c,this.emitUpdate("float"===e?gi(h,d):s.a.toString(h),{type:"check"})}}else if(r){var f=i;f?(f="time"===e?pi(f,l):s.a.toStringDate(f,l),s.a.isValidDate(f)?"time"===e?(f=s.a.toDateString(f,l),n!==f&&this.emitUpdate(f,{type:"check"}),this.inputValue=f):s.a.isDateSame(n,f,l)?this.inputValue=s.a.toDateString(n,l):("datetime"===e&&(a.setHours(f.getHours()),a.setMinutes(f.getMinutes()),a.setSeconds(f.getSeconds())),this.dateChange(f)):this.dateRevert()):this.emitUpdate("",{type:"check"})}},passwordToggleEvent:function(e){var t=this.disabled,n=this.readonly,i=this.showPwd;t||n||(this.showPwd=!i),this.$emit("toggle-visible",{visible:this.showPwd,$event:e})},searchEvent:function(e){this.$emit("search-click",{$event:e})},vaildMinNum:function(e){return null===this.min||e>=s.a.toNumber(this.min)},vaildMaxNum:function(e){return null===this.max||e<=s.a.toNumber(this.max)},numberStopDown:function(){clearTimeout(this.downbumTimeout)},numberDownPrevEvent:function(e){var t=this;this.downbumTimeout=setTimeout((function(){t.numberPrevEvent(e),t.numberDownPrevEvent(e)}),60)},numberDownNextEvent:function(e){var t=this;this.downbumTimeout=setTimeout((function(){t.numberNextEvent(e),t.numberDownNextEvent(e)}),60)},numberKeydownEvent:function(e){var t=e.keyCode,n=38===t,i=40===t;(n||i)&&(e.preventDefault(),n?this.numberPrevEvent(e):this.numberNextEvent(e))},numberMousedownEvent:function(e){var t=this;if(this.numberStopDown(),0===e.button){var n=$.hasClass(e.currentTarget,"is--prev");n?this.numberPrevEvent(e):this.numberNextEvent(e),this.downbumTimeout=setTimeout((function(){n?t.numberDownPrevEvent(e):t.numberDownNextEvent(e)}),500)}},numberPrevEvent:function(e){var t=this.disabled,n=this.readonly;clearTimeout(this.downbumTimeout),t||n||this.numberChange(!0,e),this.$emit("prev-number",{$event:e})},numberNextEvent:function(e){var t=this.disabled,n=this.readonly;clearTimeout(this.downbumTimeout),t||n||this.numberChange(!1,e),this.$emit("next-number",{$event:e})},numberChange:function(e,t){var n=this.type,i=this.digitsValue,r=this.value,o=this.stepValue,a="integer"===n?s.a.toInteger(r):s.a.toNumber(r),l=e?s.a.add(a,o):s.a.subtract(a,o);this.vaildMinNum(l)&&this.vaildMaxNum(l)&&this.emitUpdate("float"===n?gi(l,i):s.a.toString(l),t)},datePickerOpenEvent:function(e){var t=this.readonly;t||(e.preventDefault(),this.showPanel())},dateMonthHandle:function(e,t){this.selectMonth=s.a.getWhatMonth(e,t,"first")},dateNowHandle:function(){var e=s.a.getWhatDay(Date.now(),0,"first");this.currentDate=e,this.dateMonthHandle(e,0)},dateToggleTypeEvent:function(){var e=this.datePanelType;e="month"===e?"year":"month",this.datePanelType=e},datePrevEvent:function(e){var t=this.isDisabledPrevDateBtn,n=this.type,i=this.datePanelType;t||(this.selectMonth="year"===n?s.a.getWhatYear(this.selectMonth,-hi,"first"):"month"===n?"year"===i?s.a.getWhatYear(this.selectMonth,-hi,"first"):s.a.getWhatYear(this.selectMonth,-1,"first"):"year"===i?s.a.getWhatYear(this.selectMonth,-hi,"first"):"month"===i?s.a.getWhatYear(this.selectMonth,-1,"first"):s.a.getWhatMonth(this.selectMonth,-1,"first"),this.$emit("date-prev",{type:n,$event:e}))},dateTodayMonthEvent:function(e){this.dateNowHandle(),this.dateChange(this.currentDate),this.hidePanel(),this.$emit("date-today",{type:this.type,$event:e})},dateNextEvent:function(e){var t=this.isDisabledNextDateBtn,n=this.type,i=this.datePanelType;t||(this.selectMonth="year"===n?s.a.getWhatYear(this.selectMonth,hi,"first"):"month"===n?"year"===i?s.a.getWhatYear(this.selectMonth,hi,"first"):s.a.getWhatYear(this.selectMonth,1,"first"):"year"===i?s.a.getWhatYear(this.selectMonth,hi,"first"):"month"===i?s.a.getWhatYear(this.selectMonth,1,"first"):s.a.getWhatMonth(this.selectMonth,1,"first"),this.$emit("date-prev",{type:n,$event:e}))},dateSelectEvent:function(e){yi(this,e)||this.dateSelectItem(e.date)},dateSelectItem:function(e){var t=this.type,n=this.datePanelType;"month"===t?"year"===n?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),this.hidePanel()):"year"===t?(this.hidePanel(),this.dateChange(e)):"month"===n?(this.datePanelType="week"===t?t:"day",this.dateCheckMonth(e)):"year"===n?(this.datePanelType="month",this.dateCheckMonth(e)):(this.dateChange(e),this.hidePanel())},dateMouseenterEvent:function(e){if(!yi(this,e)){var t=this.datePanelType;"month"===t?this.dateMoveMonth(e.date):"year"===t?this.dateMoveYear(e.date):this.dateMoveDay(e.date)}},dateHourEvent:function(e,t){this.datetimePanelValue.setHours(t.value),this.dateTimeChangeEvent(e)},dateConfirmEvent:function(){this.dateChange(this.dateValue||this.currentDate),this.hidePanel()},dateMinuteEvent:function(e,t){this.datetimePanelValue.setMinutes(t.value),this.dateTimeChangeEvent(e)},dateSecondEvent:function(e,t){this.datetimePanelValue.setSeconds(t.value),this.dateTimeChangeEvent(e)},dateTimeChangeEvent:function(e){this.datetimePanelValue=new Date(this.datetimePanelValue.getTime()),this.updateTimePos(e.currentTarget)},updateTimePos:function(e){if(e){var t=e.offsetHeight;e.parentNode.scrollTop=e.offsetTop-4*t}},dateMoveDay:function(e){yi(this,{date:e})||(this.dayList.some((function(t){return s.a.isDateSame(t.date,e,"yyyy-MM-dd")}))||this.dateCheckMonth(e),this.dateParseValue(e))},dateMoveMonth:function(e){yi(this,{date:e})||(this.monthList.some((function(t){return s.a.isDateSame(t.date,e,"yyyy-MM")}))||this.dateCheckMonth(e),this.dateParseValue(e))},dateMoveYear:function(e){yi(this,{date:e})||(this.yearList.some((function(t){return s.a.isDateSame(t.date,e,"yyyy")}))||this.dateCheckMonth(e),this.dateParseValue(e))},dateParseValue:function(e){var t=this.type,n=this.dateLabelFormat,i=this.valueFormat,r=this.parseFormat,o=null,a="";e&&(o="time"===t?pi(e,i||r||this.dateOpts.parseFormat):s.a.toStringDate(e,i||r||this.dateOpts.parseFormat)),s.a.isValidDate(o)?a=s.a.toDateString(o,n):o=null,this.datePanelValue=o,this.datePanelLabel=a},dateOffsetEvent:function(e){var t=this.isActivated,n=this.datePanelValue,i=this.datePanelType;if(t){e.preventDefault();var r=e.keyCode,o=37===r,a=38===r,l=39===r,c=40===r;if("year"===i){var u=s.a.getWhatYear(n||Date.now(),0,"first");o?u=s.a.getWhatYear(u,-1):a?u=s.a.getWhatYear(u,-4):l?u=s.a.getWhatYear(u,1):c&&(u=s.a.getWhatYear(u,4)),this.dateMoveYear(u)}else if("month"===i){var d=s.a.getWhatMonth(n||Date.now(),0,"first");o?d=s.a.getWhatMonth(d,-1):a?d=s.a.getWhatMonth(d,-4):l?d=s.a.getWhatMonth(d,1):c&&(d=s.a.getWhatMonth(d,4)),this.dateMoveMonth(d)}else{var h=n||s.a.getWhatDay(Date.now(),0,"first");o?h=s.a.getWhatDay(h,-1):a?h=s.a.getWhatWeek(h,-1):l?h=s.a.getWhatDay(h,1):c&&(h=s.a.getWhatWeek(h,1)),this.dateMoveDay(h)}}},datePgOffsetEvent:function(e){var t=this.isActivated;if(t){var n=33===e.keyCode;e.preventDefault(),n?this.datePrevEvent(e):this.dateNextEvent(e)}},dateChange:function(e){var t=this.value,n=this.datetimePanelValue,i=this.dateValueFormat;if("week"===this.type){var r=s.a.toNumber(s.a.isNumber(this.startWeek)?this.startWeek:this.dateOpts.startWeek);e=s.a.getWhatWeek(e,0,r)}else this.hasTime&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(n.getSeconds()));var o=s.a.toDateString(e,i);this.dateCheckMonth(e),s.a.isEqual(t,o)||this.emitUpdate(o,{type:"update"})},dateCheckMonth:function(e){var t=s.a.getWhatMonth(e,0,"first");s.a.isEqual(t,this.selectMonth)||(this.selectMonth=t)},dateOpenPanel:function(){var e=this,t=this.type,n=this.dateValue;["year","month","week"].indexOf(t)>-1?this.datePanelType=t:this.datePanelType="day",this.currentDate=s.a.getWhatDay(Date.now(),0,"first"),n?(this.dateMonthHandle(n,0),this.dateParseValue(n)):this.dateNowHandle(),this.hasTime&&(this.datetimePanelValue=this.datePanelValue||s.a.getWhatDay(Date.now(),0,"first"),this.$nextTick((function(){s.a.arrayEach(e.$refs.timeBody.querySelectorAll("li.is--selected"),e.updateTimePos)})))},dateRevert:function(){this.inputValue=this.datePanelLabel},updateZindex:function(){this.panelIndex<N.getLastZIndex()&&(this.panelIndex=N.nextZIndex())},showPanel:function(){var e=this,t=this.disabled,n=this.visiblePanel,i=this.isDatePicker;t||n||(clearTimeout(this.hidePanelTimeout),this.isActivated=!0,this.animatVisible=!0,i&&this.dateOpenPanel(),setTimeout((function(){e.visiblePanel=!0}),10),this.updateZindex(),this.updatePlacement())},hidePanel:function(){var e=this;this.visiblePanel=!1,this.hidePanelTimeout=setTimeout((function(){e.animatVisible=!1}),350)},updatePlacement:function(){var e=this;return this.$nextTick().then((function(){var t=e.$refs,n=e.transfer,i=e.placement,r=e.panelIndex,o=t.input,a=t.panel;if(o&&a){var s=o.offsetHeight,l=o.offsetWidth,c=a.offsetHeight,u=a.offsetWidth,d=5,h={zIndex:r},f=$.getAbsolutePos(o),p=f.boundingTop,g=f.boundingLeft,m=f.visibleHeight,v=f.visibleWidth,b="bottom";if(n){var y=g,_=p+s;"top"===i?(b="top",_=p-c):i||(_+c+d>m&&(b="top",_=p-c),_<d&&(b="bottom",_=p+s)),y+u+d>v&&(y-=y+u+d-v),y<d&&(y=d),Object.assign(h,{left:"".concat(y,"px"),top:"".concat(_,"px"),minWidth:"".concat(l,"px")})}else"top"===i?(b="top",h.bottom="".concat(s,"px")):i||p+s+c>m&&p-s-c>d&&(b="top",h.bottom="".concat(s,"px"));return e.panelStyle=h,e.panelPlacement=b,e.$nextTick()}}))},handleGlobalMousedownEvent:function(e){var t=this.$refs,n=this.$el,i=this.disabled,r=this.visiblePanel,o=this.isActivated;!i&&o&&(this.isActivated=$.getEventTargetNode(e,n).flag||$.getEventTargetNode(e,t.panel).flag,this.isActivated||(this.isDatePicker?r&&(this.hidePanel(),this.afterCheckValue()):this.afterCheckValue()))},handleGlobalKeydownEvent:function(e){var t=this.isDatePicker,n=this.visiblePanel,i=this.clearable,r=this.disabled;if(!r){var o=e.keyCode,a=9===o,s=46===o,l=27===o,c=13===o,u=37===o,d=38===o,h=39===o,f=40===o,p=33===o,g=34===o,m=u||d||h||f,v=this.isActivated;a?(v&&this.afterCheckValue(),v=!1,this.isActivated=v):m?t&&v&&(n?this.dateOffsetEvent(e):(d||f)&&this.datePickerOpenEvent(e)):c?t&&(n?this.datePanelValue?this.dateSelectItem(this.datePanelValue):this.hidePanel():v&&this.datePickerOpenEvent(e)):(p||g)&&t&&v&&this.datePgOffsetEvent(e),a||l?n&&this.hidePanel():s&&i&&v&&this.clearValueEvent(e,null)}},handleGlobalMousewheelEvent:function(e){var t=this.$refs,n=this.disabled,i=this.visiblePanel;n||i&&($.getEventTargetNode(e,t.panel).flag?this.updatePlacement():(this.hidePanel(),this.afterCheckValue()))},handleGlobalBlurEvent:function(){var e=this.isActivated,t=this.visiblePanel;t?(this.hidePanel(),this.afterCheckValue()):e&&this.afterCheckValue()}},install:function(e){e.component(Ri.name,Ri)}},Fi=Ri,ji=Ri,Bi={name:"VxeTextarea",props:{value:[String,Number],name:String,readonly:Boolean,disabled:Boolean,placeholder:String,maxlength:[String,Number],rows:{type:[String,Number],default:2},showWordCount:Boolean,autosize:[Boolean,Object],form:String,resize:{type:String,default:function(){return u.textarea.resize}},size:{type:String,default:function(){return u.textarea.size||u.size}}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},inputCount:function(){return s.a.getSize(this.value)},isCountError:function(){return this.maxlength&&this.inputCount>s.a.toNumber(this.maxlength)},defaultEvents:function(){var e=this,t={};return s.a.each(this.$listeners,(function(n,i){-1===["change"].indexOf(i)&&(t[i]=e.triggerEvent)})),t.input=this.inputEvent,t},sizeOpts:function(){return Object.assign({minRows:1,maxRows:10},u.textarea.autosize,this.autosize)}},watch:{value:function(){this.updateAutoTxt()}},created:function(){Pi||(Pi=document.createElement("div"),document.body.appendChild(Pi))},mounted:function(){this.updateAutoTxt(),this.handleResize()},render:function(e){var t,n=this.defaultEvents,i=this.value,r=this.vSize,o=this.name,a=this.form,s=this.resize,l=this.placeholder,c=this.readonly,u=this.disabled,d=this.maxlength,h=this.autosize,f=this.showWordCount,p={name:o,form:a,placeholder:l,maxlength:d,readonly:c,disabled:u};return l&&(p.placeholder=N.getFuncText(l)),e("div",{class:["vxe-textarea",(t={},rt(t,"size--".concat(r),r),rt(t,"is--autosize",h),rt(t,"is--disabled",u),t)]},[e("textarea",{ref:"textarea",class:"vxe-textarea--inner",domProps:{value:i},attrs:p,style:s?{resize:s}:null,on:n}),f?e("span",{class:["vxe-textarea--count",{"is--error":this.isCountError}]},"".concat(this.inputCount).concat(d?"/".concat(d):"")):null])},methods:{focus:function(){return this.$refs.textarea.focus(),this.$nextTick()},blur:function(){return this.$refs.textarea.blur(),this.$nextTick()},triggerEvent:function(e){var t=this.value;this.$emit(e.type,{value:t,$event:e},e)},emitUpdate:function(e,t){this.value!==e&&(this.$emit("input",e),this.$emit("change",{value:e,$event:t}))},inputEvent:function(e){this.emitUpdate(e.target.value,e),this.handleResize()},updateAutoTxt:function(){var e=this.$refs,t=this.value,n=this.size,i=this.autosize;if(i){var r=e.textarea,o=getComputedStyle(r);Pi.className=["vxe-textarea--autosize",n?"size--".concat(n):""].join(" "),Pi.style.width="".concat(r.clientWidth,"px"),Pi.style.padding=o.padding,Pi.innerHTML=(""+(t||" ")).replace(/\n$/,"\n ")}},handleResize:function(){var e=this;this.autosize&&this.$nextTick((function(){var t=e.$refs,n=e.sizeOpts,i=n.minRows,r=n.maxRows,o=t.textarea,a=Pi.clientHeight,l=getComputedStyle(o),c=s.a.toNumber(l.lineHeight),u=s.a.toNumber(l.paddingTop),d=s.a.toNumber(l.paddingBottom),h=s.a.toNumber(l.borderTopWidth),f=s.a.toNumber(l.borderBottomWidth),p=u+d+h+f,g=(a-p)/c,m=g&&/[0-9]/.test(g)?g:Math.floor(g)+1,v=m;m<i?v=i:m>r&&(v=r),o.style.height="".concat(v*c+p,"px")}))}},install:function(e){e.component(Bi.name,Bi)}},zi=Bi,Vi=Bi,$i={name:"VxeButton",props:{type:String,size:{type:String,default:function(){return u.button.size||u.size}},name:[String,Number],content:String,placement:String,status:String,icon:String,round:Boolean,circle:Boolean,disabled:Boolean,loading:Boolean,destroyOnClose:Boolean,transfer:{type:Boolean,default:function(){return u.button.transfer}}},data:function(){return{inited:!1,showPanel:!1,animatVisible:!1,panelIndex:0,panelStyle:null,panelPlacement:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isText:function(){return"text"===this.type},isFormBtn:function(){return["submit","reset","button"].indexOf(this.type)>-1},btnType:function(){return this.isText?this.type:"button"},btnStatus:function(){return this.status||("primary"===this.type?this.type:null)}},created:function(){"primary"===this.type&&N.warn("vxe.error.delProp",["type=primary","status=primary"]),G.on(this,"mousewheel",this.handleGlobalMousewheelEvent)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){G.off(this,"mousewheel")},render:function(e){var t,n,i,r,o=this,a=this.$scopedSlots,l=this.$listeners,c=this.inited,d=this.type,h=this.destroyOnClose,f=this.isFormBtn,p=this.btnStatus,g=this.btnType,m=this.vSize,v=this.name,b=this.disabled,y=this.loading,_=this.showPanel,w=this.animatVisible,x=this.panelPlacement,C=a.dropdowns;return C?e("div",{class:["vxe-button--dropdown",(t={},rt(t,"size--".concat(m),m),rt(t,"is--active",_),t)]},[e("button",{ref:"btn",class:["vxe-button","type--".concat(g),(n={},rt(n,"size--".concat(m),m),rt(n,"theme--".concat(p),p),rt(n,"is--round",this.round),rt(n,"is--circle",this.circle),rt(n,"is--disabled",b||y),rt(n,"is--loading",y),n)],attrs:{name:v,type:f?d:"button",disabled:b||y},on:Object.assign({mouseenter:this.mouseenterTargetEvent,mouseleave:this.mouseleaveEvent},s.a.objectMap(l,(function(e,t){return function(e){return o.$emit(t,{$event:e},e)}})))},this.renderContent(e).concat([e("i",{class:"vxe-button--dropdown-arrow ".concat(u.icon.BUTTON_DROPDOWN)})])),e("div",{ref:"panel",class:["vxe-button--dropdown-panel",(i={},rt(i,"size--".concat(m),m),rt(i,"animat--leave",w),rt(i,"animat--enter",_),i)],attrs:{"data-placement":x},style:this.panelStyle},c?[e("div",{class:"vxe-button--dropdown-wrapper",on:{click:this.clickDropdownEvent,mouseenter:this.mouseenterEvent,mouseleave:this.mouseleaveEvent}},h&&!_?[]:C.call(this,{},e))]:null)]):e("button",{ref:"btn",class:["vxe-button","type--".concat(g),(r={},rt(r,"size--".concat(m),m),rt(r,"theme--".concat(p),p),rt(r,"is--round",this.round),rt(r,"is--circle",this.circle),rt(r,"is--disabled",b||y),rt(r,"is--loading",y),r)],attrs:{name:v,type:f?d:"button",disabled:b||y},on:s.a.objectMap(l,(function(e,t){return function(e){return o.$emit(t,{$event:e},e)}}))},this.renderContent(e))},methods:{renderContent:function(e){var t=this.$scopedSlots,n=this.content,i=this.icon,r=this.loading,o=[];return r?o.push(e("i",{class:["vxe-button--loading-icon",u.icon.BUTTON_LOADING]})):i&&o.push(e("i",{class:["vxe-button--icon",i]})),t.default?o.push(e("span",{class:"vxe-button--content"},t.default.call(this))):n&&o.push(e("span",{class:"vxe-button--content"},[N.getFuncText(n)])),o},handleGlobalMousewheelEvent:function(e){this.showPanel&&!$.getEventTargetNode(e,this.$refs.panel).flag&&this.closePanel()},updateZindex:function(){this.panelIndex<N.getLastZIndex()&&(this.panelIndex=N.nextZIndex())},clickDropdownEvent:function(e){var t=this,n=e.currentTarget,i=this.$refs.panel,r=$.getEventTargetNode(e,n,"vxe-button"),o=r.flag,a=r.targetElem;o&&(i&&(i.dataset.active="N"),this.showPanel=!1,setTimeout((function(){i&&"Y"===i.dataset.active||(t.animatVisible=!1)}),350),this.$emit("dropdown-click",{name:a.getAttribute("name"),$event:e},e))},mouseenterTargetEvent:function(){var e=this,t=this.$refs.panel;t.dataset.active="Y",this.inited||(this.inited=!0,this.transfer&&document.body.appendChild(t)),this.showTime=setTimeout((function(){"Y"===t.dataset.active?e.mouseenterEvent():e.animatVisible=!1}),250)},mouseenterEvent:function(){var e=this,t=this.$refs.panel;t.dataset.active="Y",this.animatVisible=!0,setTimeout((function(){"Y"===t.dataset.active&&(e.showPanel=!0,e.updateZindex(),e.updatePlacement(),setTimeout((function(){e.showPanel&&e.updatePlacement()}),50))}),20)},mouseleaveEvent:function(){this.closePanel()},closePanel:function(){var e=this,t=this.$refs.panel;clearTimeout(this.showTime),t?(t.dataset.active="N",setTimeout((function(){"Y"!==t.dataset.active&&(e.showPanel=!1,setTimeout((function(){"Y"!==t.dataset.active&&(e.animatVisible=!1)}),350))}),100)):(this.animatVisible=!1,this.showPanel=!1)},updatePlacement:function(){var e=this;return this.$nextTick().then((function(){var t=e.$refs,n=e.transfer,i=e.placement,r=e.panelIndex,o=t.btn,a=t.panel;if(a&&o){var s=o.offsetHeight,l=o.offsetWidth,c=a.offsetHeight,u=a.offsetWidth,d=5,h={zIndex:r},f=$.getAbsolutePos(o),p=f.boundingTop,g=f.boundingLeft,m=f.visibleHeight,v=f.visibleWidth,b="bottom";if(n){var y=g,_=p+s;"top"===i?(b="top",_=p-c):i||(_+c+d>m&&(b="top",_=p-c),_<d&&(b="bottom",_=p+s)),y+u+d>v&&(y-=y+u+d-v),y<d&&(y=d),Object.assign(h,{left:"".concat(y,"px"),top:"".concat(_,"px"),minWidth:"".concat(l,"px")})}else"top"===i?(b="top",h.bottom="".concat(s,"px")):i||p+s+c>m&&p-s-c>d&&(b="top",h.bottom="".concat(s,"px"));return e.panelStyle=h,e.panelPlacement=b,e.$nextTick()}}))},focus:function(){return this.$el.focus(),this.$nextTick()},blur:function(){return this.$el.blur(),this.$nextTick()}},install:function(e){e.component($i.name,$i)}},Wi=$i,Hi=$i;function Ui(e){if(Array.isArray(e))return e}function qi(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function Gi(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ki(e,t){return Ui(e)||qi(e,t)||y(e,t)||Gi()}var Yi=[],Xi=Yi,Zi=[],Qi=Zi,Ji=[],er={name:"VxeModal",props:{value:Boolean,id:String,type:{type:String,default:"modal"},loading:{type:Boolean,default:null},status:String,iconStatus:String,className:String,top:{type:[Number,String],default:function(){return u.modal.top}},position:[String,Object],title:String,duration:{type:[Number,String],default:function(){return u.modal.duration}},message:[String,Function],content:[String,Function],cancelButtonText:{type:String,default:function(){return u.modal.cancelButtonText}},confirmButtonText:{type:String,default:function(){return u.modal.confirmButtonText}},lockView:{type:Boolean,default:function(){return u.modal.lockView}},lockScroll:Boolean,mask:{type:Boolean,default:function(){return u.modal.mask}},maskClosable:{type:Boolean,default:function(){return u.modal.maskClosable}},escClosable:{type:Boolean,default:function(){return u.modal.escClosable}},resize:{type:Boolean,default:function(){return u.modal.resize}},showHeader:{type:Boolean,default:function(){return u.modal.showHeader}},showFooter:{type:Boolean,default:function(){return u.modal.showFooter}},showZoom:{type:Boolean,default:null},dblclickZoom:{type:Boolean,default:function(){return u.modal.dblclickZoom}},width:[Number,String],height:[Number,String],minWidth:{type:[Number,String],default:function(){return u.modal.minWidth}},minHeight:{type:[Number,String],default:function(){return u.modal.minHeight}},zIndex:Number,marginSize:{type:[Number,String],default:u.modal.marginSize},fullscreen:Boolean,remember:{type:Boolean,default:function(){return u.modal.remember}},destroyOnClose:{type:Boolean,default:function(){return u.modal.destroyOnClose}},showTitleOverflow:{type:Boolean,default:function(){return u.modal.showTitleOverflow}},transfer:{type:Boolean,default:function(){return u.modal.transfer}},storage:{type:Boolean,default:function(){return u.modal.storage}},storageKey:{type:String,default:function(){return u.modal.storageKey}},animat:{type:Boolean,default:function(){return u.modal.animat}},size:{type:String,default:function(){return u.modal.size||u.size}},beforeHideMethod:{type:Function,default:function(){return u.modal.beforeHideMethod}},slots:Object,events:Object},data:function(){return{inited:!1,visible:!1,contentVisible:!1,modalTop:0,modalZindex:0,zoomLocat:null,firstOpen:!1}},computed:{vSize:function(){return this.size||this.$parent&&(this.$parent.size||this.$parent.vSize)},isMsg:function(){return"message"===this.type}},watch:{width:function(){this.recalculate()},height:function(){this.recalculate()},value:function(e){this[e?"open":"close"]()}},created:function(){this.storage&&!this.id&&N.error("vxe.error.reqProp",["modal.id"]),Ji.push(this)},mounted:function(){var e=this.$listeners,t=this.events,n=void 0===t?{}:t;this.value&&this.open(),this.recalculate(),this.escClosable&&G.on(this,"keydown",this.handleGlobalKeydownEvent);var i="inserted",r={type:i,$modal:this,$event:{type:i}};e.inserted?this.$emit("inserted",r):n.inserted&&n.inserted.call(this,r)},beforeDestroy:function(){var e=this,t=this.$el;G.off(this,"keydown"),this.removeMsgQueue(),t.parentNode===document.body&&t.parentNode.removeChild(t),s.a.remove(Ji,(function(t){return t===e}))},render:function(e){var t,n=this,i=this.$scopedSlots,r=this.slots,o=void 0===r?{}:r,a=this.inited,s=this.vSize,l=this.className,c=this.type,d=this.resize,h=this.showZoom,f=this.animat,p=this.loading,g=this.status,m=this.iconStatus,v=this.showFooter,b=this.zoomLocat,y=this.modalTop,_=this.dblclickZoom,w=this.contentVisible,x=this.visible,C=this.title,S=this.lockScroll,k=this.lockView,O=this.mask,M=this.isMsg,D=this.showTitleOverflow,E=this.destroyOnClose,T=this.content||this.message,L=i.default||o.default,I=i.footer||o.footer,A=i.header||o.header,P=i.title||o.title,R={mousedown:this.mousedownEvent};return(null===h?d:h)&&_&&"modal"===c&&(R.dblclick=this.toggleZoomEvent),e("div",{class:["vxe-modal--wrapper","type--".concat(c),l,(t={},rt(t,"size--".concat(s),s),rt(t,"status--".concat(g),g),rt(t,"is--animat",f),rt(t,"lock--scroll",S),rt(t,"lock--view",k),rt(t,"is--resize",d),rt(t,"is--mask",O),rt(t,"is--maximize",b),rt(t,"is--visible",w),rt(t,"is--active",x),rt(t,"is--loading",p),t)],style:{zIndex:this.modalZindex,top:y?"".concat(y,"px"):null},on:{click:this.selfClickEvent}},[e("div",{class:"vxe-modal--box",on:{mousedown:this.boxMousedownEvent},ref:"modalBox"},[this.showHeader?e("div",{class:["vxe-modal--header",!M&&D?"is--ellipsis":""],on:R},A?!a||E&&!x?[]:A.call(this,{$modal:this},e):[P?P.call(this,{$modal:this},e):e("span",{class:"vxe-modal--title"},C?N.getFuncText(C):u.i18n("vxe.alert.title")),(null===h?d:h)?e("i",{class:["vxe-modal--zoom-btn","trigger--btn",b?u.icon.MODAL_ZOOM_OUT:u.icon.MODAL_ZOOM_IN],attrs:{title:u.i18n("vxe.modal.zoom".concat(b?"Out":"In"))},on:{click:this.toggleZoomEvent}}):null,e("i",{class:["vxe-modal--close-btn","trigger--btn",u.icon.MODAL_CLOSE],attrs:{title:u.i18n("vxe.modal.close")},on:{click:this.closeEvent}})]):null,e("div",{class:"vxe-modal--body"},[g?e("div",{class:"vxe-modal--status-wrapper"},[e("i",{class:["vxe-modal--status-icon",m||u.icon["MODAL_".concat(g).toLocaleUpperCase()]]})]):null,e("div",{class:"vxe-modal--content"},L?!a||E&&!x?[]:L.call(this,{$modal:this},e):N.getFuncText(T)),M?null:e("div",{class:["vxe-loading",{"is--visible":p}]},[e("div",{class:"vxe-loading--spinner"})])]),v?e("div",{class:"vxe-modal--footer"},I?!a||E&&!x?[]:I.call(this,{$modal:this},e):["confirm"===c?e("vxe-button",{ref:"cancelBtn",on:{click:this.cancelEvent}},this.cancelButtonText||u.i18n("vxe.button.cancel")):null,e("vxe-button",{ref:"confirmBtn",props:{status:"primary"},on:{click:this.confirmEvent}},this.confirmButtonText||u.i18n("vxe.button.confirm"))]):null,!M&&d?e("span",{class:"vxe-modal--resize"},["wl","wr","swst","sest","st","swlb","selb","sb"].map((function(t){return e("span",{class:"".concat(t,"-resize"),attrs:{"data-type":t},on:{mousedown:n.dragEvent}})}))):null])])},methods:{recalculate:function(){var e=this.width,t=this.height,n=this.getBox();return n.style.width=e?isNaN(e)?e:"".concat(e,"px"):null,n.style.height=t?isNaN(t)?t:"".concat(t,"px"):null,this.$nextTick()},selfClickEvent:function(e){if(this.maskClosable&&e.target===this.$el){var t="mask";this.close(t)}},updateZindex:function(){var e=this.zIndex,t=this.modalZindex;e?this.modalZindex=e:t<N.getLastZIndex()&&(this.modalZindex=N.nextZIndex())},closeEvent:function(e){var t="close";this.$emit(t,{type:t,$modal:this,$event:e},e),this.close(t)},confirmEvent:function(e){var t="confirm";this.$emit(t,{type:t,$modal:this,$event:e},e),this.close(t)},cancelEvent:function(e){var t="cancel";this.$emit(t,{type:t,$modal:this,$event:e},e),this.close(t)},open:function(){var e=this,t=this.$refs,n=this.events,i=void 0===n?{}:n,r=this.inited,o=this.duration,a=this.visible,l=this.isMsg,c=this.remember,u=this.showFooter;if(r||(this.inited=!0,this.transfer&&document.body.appendChild(this.$el)),!a){var d="show",h={type:d,$modal:this,$event:{type:d}};c||this.recalculate(),this.visible=!0,this.contentVisible=!1,this.updateZindex(),Qi.push(this),this.$emit("activated",h),setTimeout((function(){e.contentVisible=!0,e.$nextTick((function(){if(u){var n=t.confirmBtn||t.cancelBtn;n&&n.focus()}i.show?i.show.call(e,h):(e.$emit("input",!0),e.$emit("show",h))}))}),10),l?(this.addMsgQueue(),-1!==o&&setTimeout(this.close,s.a.toNumber(o))):this.$nextTick((function(){var t=e.firstOpen,n=e.fullscreen;c&&t||e.updatePosition().then((function(){setTimeout((function(){return e.updatePosition()}),20)})),t||(e.firstOpen=!0,e.hasPosStorage()?e.restorePosStorage():n&&e.$nextTick((function(){return e.maximize()})))}))}},addMsgQueue:function(){-1===Xi.indexOf(this)&&Xi.push(this),this.updateStyle()},removeMsgQueue:function(){var e=this;Xi.indexOf(this)>-1&&s.a.remove(Xi,(function(t){return t===e})),this.updateStyle()},updateStyle:function(){this.$nextTick((function(){var e=0;Xi.forEach((function(t){e+=s.a.toNumber(t.top),t.modalTop=e,e+=t.$refs.modalBox.clientHeight}))}))},updatePosition:function(){var e=this;return this.$nextTick().then((function(){var t=e.marginSize,n=e.position,i=e.getBox(),r=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,a="center"===n,s=a?{top:n,left:n}:Object.assign({},n),l=s.top,c=s.left,u=a||"center"===l,d=a||"center"===c,h="",f="";f=c&&!d?isNaN(c)?c:"".concat(c,"px"):"".concat(Math.max(t,r/2-i.offsetWidth/2),"px"),h=l&&!u?isNaN(l)?l:"".concat(l,"px"):"".concat(Math.max(t,o/2-i.offsetHeight/2),"px"),i.style.top=h,i.style.left=f}))},close:function(e){var t=this,n=this.events,i=void 0===n?{}:n,r=this.remember,o=this.visible,a=this.isMsg,l=this.beforeHideMethod,c={type:e,$modal:this,$event:{type:e}};o&&Promise.resolve(l?l(c):null).then((function(e){s.a.isError(e)||(a&&t.removeMsgQueue(),t.contentVisible=!1,r||(t.zoomLocat=null),t.$emit("deactivated",c),s.a.remove(Qi,(function(e){return e===t})),setTimeout((function(){t.visible=!1,i.hide?i.hide.call(t,c):(t.$emit("input",!1),t.$emit("hide",c))}),200))})).catch((function(e){return e}))},handleGlobalKeydownEvent:function(e){var t=this;if(27===e.keyCode){var n=s.a.max(Qi,(function(e){return e.modalZindex}));n&&setTimeout((function(){n===t&&n.escClosable&&t.close()}),10)}},getBox:function(){return this.$refs.modalBox},isMaximized:function(){return!!this.zoomLocat},maximize:function(){var e=this;return this.$nextTick().then((function(){var t=e.zoomLocat;if(!t){var n=e.marginSize,i=e.getBox(),r=$.getDomNode(),o=r.visibleHeight,a=r.visibleWidth;e.zoomLocat={top:i.offsetTop,left:i.offsetLeft,width:i.offsetWidth+(i.style.width?0:1),height:i.offsetHeight+(i.style.height?0:1)},Object.assign(i.style,{top:"".concat(n,"px"),left:"".concat(n,"px"),width:"".concat(a-2*n,"px"),height:"".concat(o-2*n,"px")}),e.savePosStorage()}}))},revert:function(){var e=this;return this.$nextTick().then((function(){var t=e.zoomLocat;if(t){var n=e.getBox();e.zoomLocat=null,Object.assign(n.style,{top:"".concat(t.top,"px"),left:"".concat(t.left,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}),e.savePosStorage()}}))},zoom:function(){var e=this;return this[this.zoomLocat?"revert":"maximize"]().then((function(){return e.isMaximized()}))},toggleZoomEvent:function(e){var t=this,n=this.$listeners,i=this.zoomLocat,r=this.events,o=void 0===r?{}:r,a={type:i?"revert":"max",$modal:this,$event:e};return this.zoom().then((function(){n.zoom?t.$emit("zoom",a,e):o.zoom&&o.zoom.call(t,a,e)}))},getPosition:function(){if(!this.isMsg){var e=this.getBox();if(e)return{top:e.offsetTop,left:e.offsetLeft}}return null},setPosition:function(e,t){if(!this.isMsg){var n=this.getBox();s.a.isNumber(e)&&(n.style.top="".concat(e,"px")),s.a.isNumber(t)&&(n.style.left="".concat(t,"px"))}return this.$nextTick()},boxMousedownEvent:function(){var e=this.modalZindex;Ji.some((function(t){return t.visible&&t.modalZindex>e}))&&this.updateZindex()},mousedownEvent:function(e){var t=this,n=this.remember,i=this.storage,r=this.marginSize,o=this.zoomLocat,a=this.getBox();if(!o&&0===e.button&&!$.getEventTargetNode(e,a,"trigger--btn").flag){e.preventDefault();var s=document.onmousemove,l=document.onmouseup,c=e.clientX-a.offsetLeft,u=e.clientY-a.offsetTop,d=$.getDomNode(),h=d.visibleHeight,f=d.visibleWidth;document.onmousemove=function(e){e.preventDefault();var t=a.offsetWidth,n=a.offsetHeight,i=r,o=f-t-r-1,s=r,l=h-n-r-1,d=e.clientX-c,p=e.clientY-u;d>o&&(d=o),d<i&&(d=i),p>l&&(p=l),p<s&&(p=s),a.style.left="".concat(d,"px"),a.style.top="".concat(p,"px")},document.onmouseup=function(){document.onmousemove=s,document.onmouseup=l,n&&i&&t.$nextTick((function(){t.savePosStorage()}))}}},dragEvent:function(e){var t=this;e.preventDefault();var n=this.$listeners,i=this.marginSize,r=this.events,o=void 0===r?{}:r,a=this.remember,l=this.storage,c=$.getDomNode(),u=c.visibleHeight,d=c.visibleWidth,h=e.target.dataset.type,f=s.a.toNumber(this.minWidth),p=s.a.toNumber(this.minHeight),g=d,m=u,v=this.getBox(),b=document.onmousemove,y=document.onmouseup,_=v.clientWidth,w=v.clientHeight,x=e.clientX,C=e.clientY,S=v.offsetTop,k=v.offsetLeft,O={type:"resize",$modal:this};document.onmousemove=function(e){var r,s,c,b;switch(e.preventDefault(),h){case"wl":r=x-e.clientX,c=r+_,k-r>i&&c>f&&(v.style.width="".concat(c<g?c:g,"px"),v.style.left="".concat(k-r,"px"));break;case"swst":r=x-e.clientX,s=C-e.clientY,c=r+_,b=s+w,k-r>i&&c>f&&(v.style.width="".concat(c<g?c:g,"px"),v.style.left="".concat(k-r,"px")),S-s>i&&b>p&&(v.style.height="".concat(b<m?b:m,"px"),v.style.top="".concat(S-s,"px"));break;case"swlb":r=x-e.clientX,s=e.clientY-C,c=r+_,b=s+w,k-r>i&&c>f&&(v.style.width="".concat(c<g?c:g,"px"),v.style.left="".concat(k-r,"px")),S+b+i<u&&b>p&&(v.style.height="".concat(b<m?b:m,"px"));break;case"st":s=C-e.clientY,b=w+s,S-s>i&&b>p&&(v.style.height="".concat(b<m?b:m,"px"),v.style.top="".concat(S-s,"px"));break;case"wr":r=e.clientX-x,c=r+_,k+c+i<d&&c>f&&(v.style.width="".concat(c<g?c:g,"px"));break;case"sest":r=e.clientX-x,s=C-e.clientY,c=r+_,b=s+w,k+c+i<d&&c>f&&(v.style.width="".concat(c<g?c:g,"px")),S-s>i&&b>p&&(v.style.height="".concat(b<m?b:m,"px"),v.style.top="".concat(S-s,"px"));break;case"selb":r=e.clientX-x,s=e.clientY-C,c=r+_,b=s+w,k+c+i<d&&c>f&&(v.style.width="".concat(c<g?c:g,"px")),S+b+i<u&&b>p&&(v.style.height="".concat(b<m?b:m,"px"));break;case"sb":s=e.clientY-C,b=s+w,S+b+i<u&&b>p&&(v.style.height="".concat(b<m?b:m,"px"));break}v.className=v.className.replace(/\s?is--drag/,"")+" is--drag",a&&l&&t.savePosStorage(),n.zoom?t.$emit("zoom",O,e):o.zoom&&o.zoom.call(t,O,e)},document.onmouseup=function(){t.zoomLocat=null,document.onmousemove=b,document.onmouseup=y,setTimeout((function(){v.className=v.className.replace(/\s?is--drag/,"")}),50)}},getStorageMap:function(e){var t=u.version,n=s.a.toStringJSON(localStorage.getItem(e));return n&&n._v===t?n:{_v:t}},hasPosStorage:function(){var e=this.id,t=this.remember,n=this.storage,i=this.storageKey;return!!(t&&n&&this.getStorageMap(i)[e])},restorePosStorage:function(){var e=this.id,t=this.remember,n=this.storage,i=this.storageKey;if(t&&n){var r=this.getStorageMap(i)[e];if(r){var o=this.getBox(),a=r.split(","),s=Ki(a,8),l=s[0],c=s[1],u=s[2],d=s[3],h=s[4],f=s[5],p=s[6],g=s[7];l&&(o.style.left="".concat(l,"px")),c&&(o.style.top="".concat(c,"px")),u&&(o.style.width="".concat(u,"px")),d&&(o.style.height="".concat(d,"px")),h&&f&&(this.zoomLocat={left:h,top:f,width:p,height:g})}}},savePosStorage:function(){var e=this.id,t=this.remember,n=this.storage,i=this.storageKey,r=this.zoomLocat;if(t&&n){var o=this.getBox(),a=this.getStorageMap(i);a[e]=[o.style.left,o.style.top,o.style.width,o.style.height].concat(r?[r.left,r.top,r.width,r.height]:[]).map((function(e){return e?s.a.toNumber(e):""})).join(","),localStorage.setItem(i,s.a.toJSONString(a))}}}},tr=null;function nr(e){var t=Object.assign({},e,{transfer:!0});return new Promise((function(e){if(t&&t.id&&Qi.some((function(e){return e.id===t.id})))e("exist");else{var n=t.events||{};t.events=Object.assign({},n,{hide:function(t){n.hide&&n.hide.call(this,t),setTimeout((function(){return i.$destroy()}),i.isMsg?500:100),e(t.type)}});var i=new tr({el:document.createElement("div"),propsData:t});setTimeout((function(){i.isDestroy?i.close():i.open()}))}}))}function ir(e){return N.warn("vxe.error.delFunc",["Modal","Modal.open"]),nr(e)}function rr(e){var t=arguments.length?[or(e)]:Qi;return t.forEach((function(e){e&&(e.isDestroy=!0,e.close("close"))})),Promise.resolve()}function or(e){return s.a.find(Qi,(function(t){return t.id===e}))}["alert","confirm","message"].forEach((function(e,t){var n=2===t?{mask:!1,lockView:!1,showHeader:!1}:{showFooter:!0};n.type=e,n.dblclickZoom=!1,1===t&&(n.status="question"),ir[e]=function(i,r,o){var a={};return s.a.isObject(i)?a=i:(r&&(a=2===t?{status:r}:{title:r}),a.content=s.a.toString(i)),nr(Object.assign({type:e},n,a,o))}})),ir.closeAll=function(){N.warn("vxe.error.delFunc",["closeAll","close"]),rr()},ir.get=or,ir.close=rr,ir.open=nr,ir.install=function(e){it._modal=1,e.component("vxe-message",er),e.component(er.name,er),tr=e.extend(er),e.prototype.$XMsg=ir,e.prototype.$XModal=ir,it.$modal=ir,it.modal=ir,e.prototype.$vxe?e.prototype.$vxe.modal=ir:e.prototype.$vxe={modal:ir}};var ar=ir,sr=ir;function lr(e){var t=e.$el,n=e.tipTarget,i=e.tipStore;if(n){var r=$.getDomNode(),o=r.scrollTop,a=r.scrollLeft,s=r.visibleWidth,l=$.getAbsolutePos(n),c=l.top,u=l.left,d=6,h=t.offsetHeight,f=t.offsetWidth,p=u,g=c-h-d;p=Math.max(d,u+Math.floor((n.offsetWidth-f)/2)),p+f+d>a+s&&(p=a+s-f-d),c-h<o+d&&(i.placement="bottom",g=c+n.offsetHeight+d),i.style.top="".concat(g,"px"),i.style.left="".concat(p,"px"),i.arrowStyle.left="".concat(u-p+n.offsetWidth/2,"px")}}var cr={name:"VxeTooltip",props:{value:Boolean,size:{type:String,default:function(){return u.tooltip.size||u.size}},trigger:{type:String,default:function(){return u.tooltip.trigger}},theme:{type:String,default:function(){return u.tooltip.theme}},content:[String,Function],zIndex:[String,Number],isArrow:{type:Boolean,default:!0},enterable:Boolean,leaveDelay:{type:Number,default:u.tooltip.leaveDelay}},data:function(){return{isUpdate:!1,isHover:!1,visible:!1,message:"",tipTarget:null,tipZindex:0,tipStore:{style:{},placement:"",arrowStyle:null}}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize}},watch:{content:function(e){this.message=e},value:function(e){this.isUpdate||this[e?"open":"close"](),this.isUpdate=!1}},mounted:function(){var e,t=this.$el,n=this.trigger,i=this.content,r=this.value,o=t.parentNode;this.message=i,this.tipZindex=N.nextZIndex(),s.a.arrayEach(t.children,(function(n,i){i>1&&(o.insertBefore(n,t),e||(e=n))})),o.removeChild(t),this.target=e,e&&("hover"===n?(e.onmouseleave=this.targetMouseleaveEvent,e.onmouseenter=this.targetMouseenterEvent):"click"===n&&(e.onclick=this.clickEvent)),r&&this.open()},beforeDestroy:function(){var e=this.$el,t=this.target,n=this.trigger,i=e.parentNode;i&&i.removeChild(e),t&&("hover"===n?(t.onmouseenter=null,t.onmouseleave=null):"click"===n&&(t.onclick=null))},render:function(e){var t,n,i=this.vSize,r=this.theme,o=this.message,a=this.isHover,s=this.isArrow,l=this.visible,c=this.tipStore,u=this.enterable;return u&&(n={mouseenter:this.wrapperMouseenterEvent,mouseleave:this.wrapperMouseleaveEvent}),e("div",{class:["vxe-table--tooltip-wrapper","theme--".concat(r),(t={},rt(t,"size--".concat(i),i),rt(t,"placement--".concat(c.placement),c.placement),rt(t,"is--enterable",u),rt(t,"is--visible",l),rt(t,"is--arrow",s),rt(t,"is--hover",a),t)],style:c.style,ref:"tipWrapper",on:n},[e("div",{class:"vxe-table--tooltip-content"},this.$slots.content||o),e("div",{class:"vxe-table--tooltip-arrow",style:c.arrowStyle})].concat(this.$slots.default))},methods:{show:function(e,t){return this.open(e,t)},open:function(e,t){return this.toVisible(e||this.target,t)},close:function(){return this.tipTarget=null,Object.assign(this.tipStore,{style:{},placement:"",arrowStyle:null}),this.update(!1),this.$nextTick()},update:function(e){e!==this.visible&&(this.visible=e,this.isUpdate=!0,this.$listeners.input&&this.$emit("input",this.visible))},updateZindex:function(){this.tipZindex<N.getLastZIndex()&&(this.tipZindex=N.nextZIndex())},toVisible:function(e,t){if(this.targetActive=!0,e){var n=this.$el,i=this.tipStore,r=this.zIndex,o=n.parentNode;return o||document.body.appendChild(n),t&&(this.message=t),this.tipTarget=e,this.update(!0),this.updateZindex(),i.placement="top",i.style={width:"auto",left:0,top:0,zIndex:r||this.tipZindex},i.arrowStyle={left:"50%"},this.updatePlacement()}return this.$nextTick()},updatePlacement:function(){var e=this;return this.$nextTick().then((function(){var t=e.$el,n=e.tipTarget;if(n&&t)return lr(e),e.$nextTick().then((function(){return lr(e)}))}))},clickEvent:function(){this[this.visible?"close":"open"]()},targetMouseenterEvent:function(){this.open()},targetMouseleaveEvent:function(){var e=this,t=this.trigger,n=this.enterable,i=this.leaveDelay;this.targetActive=!1,n&&"hover"===t?setTimeout((function(){e.isHover||e.close()}),i):this.close()},wrapperMouseenterEvent:function(){this.isHover=!0},wrapperMouseleaveEvent:function(e){var t=this,n=this.$listeners,i=this.trigger,r=this.enterable,o=this.leaveDelay;this.isHover=!1,n.leave?this.$emit("leave",{$event:e}):r&&"hover"===i&&setTimeout((function(){t.targetActive||t.close()}),o)}},install:function(e){it._tooltip=1,e.component(cr.name,cr)}},ur=cr,dr=cr,hr=function(){function e(t){x(this,e),Object.assign(this,{$options:t,required:t.required,min:t.min,max:t.min,type:t.type,pattern:t.pattern,validator:t.validator,trigger:t.trigger,maxWidth:t.maxWidth})}return S(e,[{key:"content",get:function(){return N.getFuncText(this.$options.content||this.$options.message)}},{key:"message",get:function(){return this.content}}]),e}();function fr(e,t){return s.a.isArray(e)&&(t=[]),t}function pr(e,t){var n,i=e.$scopedSlots,r=t.slots,o={};return r&&(n=r.default,n&&i[n]&&(n=i[n])),n&&(o.default=n),o}function gr(e,t){var n=t.items;return n?n.map((function(n){return e("vxe-form-item",{props:n,scopedSlots:pr(t,n)})})):[]}var mr={name:"VxeForm",props:{loading:Boolean,data:Object,size:{type:String,default:function(){return u.form.size||u.size}},span:[String,Number],align:{type:String,default:function(){return u.form.align}},titleAlign:{type:String,default:function(){return u.form.titleAlign}},titleWidth:[String,Number],titleColon:{type:Boolean,default:function(){return u.form.titleColon}},titleAsterisk:{type:Boolean,default:function(){return u.form.titleAsterisk}},titleOverflow:{type:[Boolean,String],default:null},items:Array,rules:Object,preventSubmit:{type:Boolean,default:function(){return u.form.preventSubmit}},validConfig:Object},data:function(){return{collapseAll:!0,invalids:[],tooltipTimeout:null,tooltipActive:!1,tooltipStore:{item:null,visible:!1}}},provide:function(){return{$vxeform:this}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},validOpts:function(){return Object.assign({},u.form.validConfig,this.validConfig)},tooltipOpts:function(){var e=Object.assign({leaveDelay:300},u.form.tooltipConfig,this.tooltipConfig);return e.enterable&&(e.leaveMethod=this.handleTooltipLeaveMethod),e}},render:function(e){var t,n=this._e,i=this.$slots,r=this.loading,o=this.vSize,a=this.tooltipOpts,s=it._tooltip;return e("form",{class:["vxe-form","vxe-row",(t={},rt(t,"size--".concat(o),o),rt(t,"is--colon",this.titleColon),rt(t,"is--asterisk",this.titleAsterisk),rt(t,"is--loading",r),t)],on:{submit:this.submitEvent,reset:this.resetEvent}},[].concat(i.default||gr(e,this)).concat([e("div",{class:["vxe-loading",{"is--visible":r}]},[e("div",{class:"vxe-loading--spinner"})]),s?e("vxe-tooltip",Tn({ref:"tooltip"},a)):n()]))},methods:{getItems:function(){return this.$children.map((function(e){var t=e.field,n=e.title,i=e.itemRender;return{field:t,title:n,itemRender:i}}))},toggleCollapse:function(){return this.collapseAll=!this.collapseAll,this.$nextTick()},submitEvent:function(e){var t=this;e.preventDefault(),this.preventSubmit||this.beginValidate().then((function(){t.$emit("submit",{data:t.data,$form:t,$event:e},e)})).catch((function(n){t.$emit("submit-invalid",{data:t.data,errMap:n,$form:t,$event:e},e)}))},reset:function(){var e=this,t=this.data;return t&&this.$children.forEach((function(n){var i=n.field,r=n.resetValue,o=n.itemRender;if(i){s.a.set(t,i,null===r?fr(s.a.get(t,i),void 0):r);var a=o?it.renderer.get(o.name):null;a&&a.itemResetMethod&&a.itemResetMethod({data:t,property:i,$form:e})}})),this.clearValidate()},resetEvent:function(e){e.preventDefault(),this.reset(),this.$emit("reset",{data:this.data,$form:this,$event:e},e)},handleTooltipLeaveMethod:function(){var e=this,t=this.tooltipOpts;return setTimeout((function(){e.tooltipActive||e.closeTooltip()}),t.leaveDelay),!1},closeTooltip:function(){var e=this.tooltipStore,t=this.$refs.tooltip;return e.visible&&(Object.assign(e,{item:null,visible:!1}),t&&t.close()),this.$nextTick()},triggerHeaderHelpEvent:function(e,t){var n=t.item,i=this.tooltipStore,r=this.$refs.tooltip,o=e.currentTarget,a=(o.textContent||"").trim(),s=o.scrollWidth>o.clientWidth;clearTimeout(this.tooltipTimeout),this.tooltipActive=!0,this.closeTooltip(),a&&s&&(Object.assign(i,{item:n,visible:!0}),r&&r.open(o,a))},handleTargetLeaveEvent:function(){var e=this,t=this.tooltipOpts;this.tooltipActive=!1,t.enterable?this.tooltipTimeout=setTimeout((function(){var t=e.$refs.tooltip;t&&!t.isHover&&e.closeTooltip()}),t.leaveDelay):this.closeTooltip()},clearValidate:function(e){return e?s.a.remove(this.invalids,(function(t){var n=t.property;return n===e})):this.invalids=[],this.$nextTick()},validate:function(e){return this.beginValidate("",e)},beginValidate:function(e,t){var n=this,i=this.data,r=this.rules,o=this.validOpts,a={},s=[],l=[];return this.clearValidate(),i&&r?(this.$children.forEach((function(t){var r=t.field;r&&l.push(n.validItemRules(e||"all",r).catch((function(e){var t=e.rule,o=e.rules,l={rule:t,rules:o,data:i,property:r,$form:n};return a[r]||(a[r]=[]),a[r].push(l),s.push(r),n.invalids.push(l),Promise.reject(l)})))})),Promise.all(l).then((function(){t&&t()})).catch((function(){return t&&t(a),o.autoPos&&n.$nextTick((function(){n.handleFocus(s)})),Promise.reject(a)}))):(t&&t(),Promise.resolve())},validItemRules:function(e,t,n){var i=this,r=this.data,o=this.rules,a=[],l=[];if(t&&o){var c=s.a.get(o,t);if(c){var u=s.a.isUndefined(n)?s.a.get(r,t):n;c.forEach((function(n){if("all"===e||!n.trigger||e===n.trigger)if(s.a.isFunction(n.validator)){var o=n.validator({itemValue:u,rule:n,rules:c,data:r,property:t,$form:i});o&&(s.a.isError(o)?a.push(new hr({type:"custom",trigger:n.trigger,message:o.message,rule:new hr(n)})):o.catch&&l.push(o.catch((function(e){a.push(new hr({type:"custom",trigger:n.trigger,message:e?e.message:n.content||n.message,rule:new hr(n)}))}))))}else{var d="number"===n.type,h=d?s.a.toNumber(u):s.a.getSize(u);null===u||void 0===u||""===u?n.required&&a.push(new hr(n)):(d&&isNaN(u)||!isNaN(n.min)&&h<parseFloat(n.min)||!isNaN(n.max)&&h>parseFloat(n.max)||n.pattern&&!(n.pattern.test?n.pattern:new RegExp(n.pattern)).test(u))&&a.push(new hr(n))}}))}}return Promise.all(l).then((function(){if(a.length){var e={rules:a,rule:a[0]};return Promise.reject(e)}}))},handleFocus:function(e){var t=this.$children;e.some((function(e){var n=s.a.find(t,(function(t){return t.field===e}));if(n&&n.itemRender){var i,r=n.$el,o=n.itemRender,a=it.renderer.get(o.name);if(o.autofocus&&(i=r.querySelector(o.autofocus)),!i&&a&&a.autofocus&&(i=r.querySelector(a.autofocus)),i){if(i.focus(),$.browse.msie){var l=i.createTextRange();l.collapse(!1),l.select()}return!0}}}))},updateStatus:function(e,t){var n=this,i=e.property;i&&this.validItemRules("change",i,t).then((function(){n.clearValidate(i)})).catch((function(e){var t=e.rule,r=e.rules,o=s.a.find(n.invalids,(function(e){return e.property===i}));o?(o.rule=t,o.rules=r):n.invalids.push({rule:t,rules:r,property:i})}))}}};function vr(e,t){return e("span",{class:"vxe-form--item-title-prefix"},[e("i",{class:t.icon||u.icon.FORM_PREFIX})])}function br(e,t){return e("span",{class:"vxe-form--item-title-suffix"},[e("i",{class:t.icon||u.icon.FORM_SUFFIX})])}function yr(e,t){var n=t.title,i=t.titlePrefix,r=t.titleSuffix,o=[];return i&&o.push(i.content||i.message?e("vxe-tooltip",{props:{content:N.getFuncText(i.content||i.message),enterable:i.enterable,theme:i.theme}},[vr(e,i)]):vr(e,i)),o.push(e("span",{class:"vxe-form--item-title-label"},N.getFuncText(n))),r&&o.push(r.content||r.message?e("vxe-tooltip",{props:{content:N.getFuncText(r.content||r.message),enterable:r.enterable,theme:r.theme}},[br(e,r)]):br(e,r)),o}var _r={name:"VxeFormItem",props:{title:String,field:String,size:String,span:[String,Number],align:String,titleAlign:String,titleWidth:[String,Number],className:[String,Function],titleOverflow:{type:[Boolean,String],default:null},titlePrefix:Object,titleSuffix:Object,resetValue:{default:null},visible:{type:Boolean,default:null},visibleMethod:Function,folding:Boolean,collapseNode:Boolean,itemRender:Object},inject:{$vxeform:{default:null}},data:function(){return{showError:!1,showRule:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isRequired:function(){var e=this.$vxeform,t=this.field;if(e&&e.rules){var n=e.rules[t];if(n)return n.some((function(e){return e.required}))}return!1},errRule:function(){var e=this.$vxeform,t=this.field;return e?s.a.find(e.invalids,(function(e){var n=e.property;return t===n})):null}},watch:{errRule:function(e){var t=this;clearTimeout(this.showErrTimeout),this.showError=!1,e?(this.showRule=e.rule,setTimeout((function(){t.showError=!0}),30)):this.showErrTimeout=setTimeout((function(){t.showRule=null}),350)}},render:function(e){var t=this._e,n=this.$scopedSlots,i=this.$vxeform,r=this.title,o=this.folding,a=this.visible,l=this.visibleMethod,c=this.field,d=this.className,h=this.collapseNode,f=this.itemRender,p=this.isRequired,g=this.showError,m=this.showRule,v=this.titleOverflow,b=f?it.renderer.get(f.name):null,y=this.span||i.span,_=this.align||i.align,w=this.titleAlign||i.titleAlign,x=this.titleWidth||i.titleWidth,C=i.collapseAll,S=l,k=s.a.isUndefined(v)||s.a.isNull(v)?i.titleOverflow:v,O="ellipsis"===k,M="title"===k,D=!0===k||"tooltip"===k,E=M||D||O,T={data:i.data,property:c,item:this,$form:i};if(!1===a)return t();!S&&b&&b.itemVisibleMethod&&(S=b.itemVisibleMethod);var L=[];b&&b.renderItemContent?L=b.renderItemContent.call(this,e,f,T):b&&b.renderItem?(N.warn("vxe.error.delFunc",["renderItem","renderItemContent"]),L=b.renderItem.call(this,e,f,T)):n&&n.default?L=n.default.call(this,T,e):c&&(L=["".concat(s.a.get(i.data,c))]);var I=D&&i?{mouseenter:function(e){i.triggerHeaderHelpEvent(e,T)},mouseleave:i.handleTargetLeaveEvent}:{};return e("div",{class:["vxe-form--item",y?"vxe-col--".concat(y," is--span"):null,d,{"is--title":r,"is--required":p,"is--hidden":o&&C,"is--active":!S||S(T),"is--error":g}]},[e("div",{class:"vxe-form--item-inner"},[r?e("div",{class:["vxe-form--item-title",w?"align--".concat(w):null,{"is--ellipsis":E}],style:x?{width:isNaN(x)?x:"".concat(x,"px")}:null,attrs:{title:M?N.getFuncText(r):null},on:I},yr(e,this)):null,e("div",{class:["vxe-form--item-content",_?"align--".concat(_):null]},L.concat([h?e("div",{class:"vxe-form--item-trigger-node",on:{click:this.toggleCollapseEvent}},[e("span",{class:"vxe-form--item-trigger-text"},C?u.i18n("vxe.form.unfolding"):u.i18n("vxe.form.folding")),e("i",{class:["vxe-form--item-trigger-icon",C?u.icon.FORM_FOLDING:u.icon.FORM_UNFOLDING]})]):null,m&&i.validOpts.showMessage?e("div",{class:"vxe-form--item-valid",style:m.maxWidth?{width:"".concat(m.maxWidth,"px")}:null},m.message):null]))])])},methods:{toggleCollapseEvent:function(e){var t=this.$vxeform;t.toggleCollapse(),t.$emit("toggle-collapse",{collapse:!t.collapseAll,data:t.data,$form:t,$event:e},e)}}};mr.install=function(e){e.component(mr.name,mr),e.component(_r.name,_r)};var wr=mr,xr=mr;function Cr(e){return!1!==e.visible}function Sr(){return s.a.uniqueId("opt_")}function kr(e){return e.optionId||e.optId||"_XID"}function Or(e,t){var n=t[kr(e)];return n?encodeURIComponent(n):""}function Mr(e,t,n){var i,r,o,a,s=e.isGroup,l=e.visibleOptionList,c=e.visibleGroupList,u=e.valueField,d=e.groupOptionsField;if(s)for(var h=0;h<c.length;h++){var f=c[h],p=f[d],g=f.disabled;if(p)for(var m=0;m<p.length;m++){var v=p[m],b=Cr(v),y=g||v.disabled;if(i||y||(i=v),a&&b&&!y&&(o=v,!n))return{offsetOption:o};if(t===v[u]){if(a=v,n)return{offsetOption:r}}else b&&!y&&(r=v)}}else for(var _=0;_<l.length;_++){var w=l[_],x=w.disabled;if(i||x||(i=w),a&&!x&&(o=w,!n))return{offsetOption:o};if(t===w[u]){if(a=w,n)return{offsetOption:r}}else x||(r=w)}return{firstOption:i}}function Dr(e,t){var n=e.isGroup,i=e.fullOptionList,r=e.fullGroupList,o=e.valueField;if(n)for(var a=0;a<r.length;a++){var s=r[a];if(s.options)for(var l=0;l<s.options.length;l++){var c=s.options[l];if(t===c[o])return c}}return i.find((function(e){return t===e[o]}))}function Er(e,t){var n=Dr(e,t);return s.a.toString(n?n[e.labelField]:t)}function Tr(e,t,n,i){var r=t.isGroup,o=t.labelField,a=t.valueField,s=t.optkey,l=t.optionKey,c=t.value,u=t.multiple,d=t.currentValue;return n.map((function(n,h){var f=!r||Cr(n),p=i&&i.disabled||n.disabled,g=n[a],m=Or(t,n);return f?e("div",{key:l||s?m:h,class:["vxe-select-option",{"is--disabled":p,"is--selected":u?c&&c.indexOf(g)>-1:c===g,"is--hover":d===g}],attrs:{"data-optid":m},on:{mousedown:function(e){var t=0===e.button;t&&e.stopPropagation()},click:function(e){p||t.changeOptionEvent(e,g)},mouseenter:function(){p||t.setCurrentOption(n)}}},N.formatText(N.getFuncText(n[o]))):null}))}function Lr(e,t){var n=t.optionKey,i=t.optkey,r=t.visibleGroupList,o=t.groupLabelField,a=t.groupOptionsField;return r.map((function(r,s){var l=Or(t,r),c=r.disabled;return e("div",{key:n||i?l:s,class:["vxe-optgroup",{"is--disabled":c}],attrs:{"data-optid":l}},[e("div",{class:"vxe-optgroup--title"},N.getFuncText(r[o])),e("div",{class:"vxe-optgroup--wrapper"},Tr(e,t,r[a],r))])}))}function Ir(e,t){var n=t.isGroup,i=t.visibleGroupList,r=t.visibleOptionList;if(n){if(i.length)return Lr(e,t)}else if(r.length)return Tr(e,t,r);return[e("div",{class:"vxe-select--empty-placeholder"},t.emptyText||u.i18n("vxe.select.emptyText"))]}var Ar={name:"VxeSelect",props:{value:null,clearable:Boolean,placeholder:String,disabled:Boolean,multiple:Boolean,multiCharOverflow:{type:[Number,String],default:function(){return u.select.multiCharOverflow}},prefixIcon:String,placement:String,options:Array,optionProps:Object,optionGroups:Array,optionGroupProps:Object,size:{type:String,default:function(){return u.select.size||u.size}},emptyText:String,optId:{type:String,default:function(){return u.select.optionId}},optionId:{type:String,default:function(){return u.select.optionId}},optKey:Boolean,optionKey:Boolean,transfer:{type:Boolean,default:function(){return u.select.transfer}}},components:{VxeInput:Ri},provide:function(){return{$xeselect:this}},data:function(){return{inited:!1,collectOption:[],fullGroupList:[],fullOptionList:[],visibleGroupList:[],visibleOptionList:[],panelIndex:0,panelStyle:null,panelPlacement:null,currentValue:null,visiblePanel:!1,animatVisible:!1,isActivated:!1}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},propsOpts:function(){return this.optionProps||{}},groupPropsOpts:function(){return this.optionGroupProps||{}},labelField:function(){return this.propsOpts.label||"label"},valueField:function(){return this.propsOpts.value||"value"},groupLabelField:function(){return this.groupPropsOpts.label||"label"},groupOptionsField:function(){return this.groupPropsOpts.options||"options"},isGroup:function(){return this.fullGroupList.some((function(e){return e.options&&e.options.length}))},multiMaxCharNum:function(){return s.a.toNumber(this.multiCharOverflow)},selectLabel:function(){var e=this,t=this.value,n=this.multiple,i=this.multiMaxCharNum;return t&&n?t.map((function(t){var n=Er(e,t);return i>0&&n.length>i?"".concat(n.substring(0,i),"..."):n})).join(", "):Er(this,t)}},watch:{collectOption:function(e){e.some((function(e){return e.options&&e.options.length}))?(this.fullOptionList=[],this.fullGroupList=e):(this.fullGroupList=[],this.fullOptionList=e),this.updateCache()},options:function(e){this.fullGroupList=[],this.fullOptionList=e,this.updateCache()},optionGroups:function(e){this.fullOptionList=[],this.fullGroupList=e,this.updateCache()}},created:function(){var e=this.options,t=this.optionGroups;t?this.fullGroupList=t:e&&(this.fullOptionList=e),this.updateCache(),G.on(this,"mousewheel",this.handleGlobalMousewheelEvent),G.on(this,"mousedown",this.handleGlobalMousedownEvent),G.on(this,"keydown",this.handleGlobalKeydownEvent),G.on(this,"blur",this.handleGlobalBlurEvent)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){G.off(this,"mousewheel"),G.off(this,"mousedown"),G.off(this,"keydown"),G.off(this,"blur")},render:function(e){var t,n,i=this.vSize,r=this.inited,o=this.loading,a=this.isActivated,s=this.disabled,l=this.visiblePanel;return e("div",{class:["vxe-select",(t={},rt(t,"size--".concat(i),i),rt(t,"is--visivle",l),rt(t,"is--disabled",s),rt(t,"is--loading",o),rt(t,"is--active",a),t)]},[e("div",{class:"vxe-select-slots",ref:"hideOption"},this.$slots.default),e("vxe-input",{ref:"input",props:{clearable:this.clearable,placeholder:this.placeholder,readonly:!0,disabled:s,type:"text",prefixIcon:this.prefixIcon,suffixIcon:l?u.icon.SELECT_OPEN:u.icon.SELECT_CLOSE,value:this.selectLabel},on:{clear:this.clearEvent,click:this.togglePanelEvent,focus:this.focusEvent,blur:this.blurEvent,"suffix-click":this.togglePanelEvent}}),e("div",{ref:"panel",class:["vxe-table--ignore-clear vxe-select--panel",(n={},rt(n,"size--".concat(i),i),rt(n,"is--transfer",this.transfer),rt(n,"animat--leave",this.animatVisible),rt(n,"animat--enter",l),n)],attrs:{"data-placement":this.panelPlacement},style:this.panelStyle},r?[e("div",{ref:"optWrapper",class:"vxe-select-option--wrapper"},Ir(e,this))]:[])])},methods:{updateCache:function(){var e=this,t=this.fullOptionList,n=this.fullGroupList,i=this.groupOptionsField,r=kr(this),o=function(t){Or(e,t)||(t[r]=Sr())};n.length?n.forEach((function(e){o(e),e[i]&&e[i].forEach(o)})):t.length&&t.forEach(o),this.refreshOption()},refreshOption:function(){var e=this.isGroup,t=this.fullOptionList,n=this.fullGroupList;return e?this.visibleGroupList=n.filter(Cr):this.visibleOptionList=t.filter(Cr),this.$nextTick()},setCurrentOption:function(e){e&&(this.currentValue=e[this.valueField])},scrollToOption:function(e,t){var n=this;return this.$nextTick().then((function(){if(e){var i=n.$refs,r=i.optWrapper,o=i.panel.querySelector("[data-optid='".concat(Or(n,e),"']"));if(r&&o){var a=r.offsetHeight,s=5;t?o.offsetTop+o.offsetHeight-r.scrollTop>a&&(r.scrollTop=o.offsetTop+o.offsetHeight-a):(o.offsetTop+s<r.scrollTop||o.offsetTop+s>r.scrollTop+r.clientHeight)&&(r.scrollTop=o.offsetTop-s)}}}))},clearEvent:function(e,t){this.clearValueEvent(t,null),this.hideOptionPanel()},clearValueEvent:function(e,t){this.changeEvent(e,t),this.$emit("clear",{value:t,$event:e},e)},changeEvent:function(e,t){t!==this.value&&(this.$emit("input",t),this.$emit("change",{value:t,$event:e},e))},changeOptionEvent:function(e,t){var n,i=this,r=this.value,o=this.multiple;o?(n=r?-1===r.indexOf(t)?r.concat([t]):r.filter((function(e){return e!==t})):[t],this.changeEvent(e,n)):(this.changeEvent(e,t),setTimeout((function(){i.hideOptionPanel()}),50))},handleGlobalMousewheelEvent:function(e){var t=this.$refs,n=this.disabled,i=this.visiblePanel;n||i&&($.getEventTargetNode(e,t.panel).flag?this.updatePlacement():this.hideOptionPanel())},handleGlobalMousedownEvent:function(e){var t=this.$refs,n=this.$el,i=this.disabled,r=this.visiblePanel;i||(this.isActivated=$.getEventTargetNode(e,n).flag||$.getEventTargetNode(e,t.panel).flag,r&&!this.isActivated&&this.hideOptionPanel())},handleGlobalKeydownEvent:function(e){var t=this.visiblePanel,n=this.currentValue,i=this.clearable,r=this.disabled;if(!r){var o=e.keyCode,a=9===o,s=13===o,l=27===o,c=38===o,u=40===o,d=46===o,h=32===o;if(a&&(this.isActivated=!1),t)if(l||a)this.hideOptionPanel();else if(s)e.preventDefault(),e.stopPropagation(),this.changeOptionEvent(e,n);else if(c||u){e.preventDefault();var f=Mr(this,n,c),p=f.firstOption,g=f.offsetOption;g||Dr(this,n)||(g=p),this.setCurrentOption(g),this.scrollToOption(g,u)}else h&&e.preventDefault();else(c||u||s||h)&&this.isActivated&&(e.preventDefault(),this.showOptionPanel());this.isActivated&&d&&i&&this.clearValueEvent(e,null)}},handleGlobalBlurEvent:function(){this.hideOptionPanel()},updateZindex:function(){this.panelIndex<N.getLastZIndex()&&(this.panelIndex=N.nextZIndex())},focusEvent:function(){this.disabled||(this.isActivated=!0)},blurEvent:function(){this.isActivated=!1},isPanelVisible:function(){return this.visiblePanel},togglePanelEvent:function(e){var t=e.$event;t.preventDefault(),this.visiblePanel?this.hideOptionPanel():this.showOptionPanel()},showOptionPanel:function(){var e=this;this.disabled||(clearTimeout(this.hidePanelTimeout),this.inited||(this.inited=!0,this.transfer&&document.body.appendChild(this.$refs.panel)),this.isActivated=!0,this.animatVisible=!0,setTimeout((function(){var t=e.value,n=e.multiple,i=Dr(e,n&&t?t[0]:t);e.visiblePanel=!0,i&&(e.setCurrentOption(i),e.scrollToOption(i))}),10),this.updateZindex(),this.updatePlacement())},hideOptionPanel:function(){var e=this;this.visiblePanel=!1,this.hidePanelTimeout=setTimeout((function(){e.animatVisible=!1}),350)},updatePlacement:function(){var e=this;return this.$nextTick().then((function(){var t=e.$refs,n=e.transfer,i=e.placement,r=e.panelIndex,o=t.input.$el,a=t.panel;if(a&&o){var s=o.offsetHeight,l=o.offsetWidth,c=a.offsetHeight,u=a.offsetWidth,d=5,h={zIndex:r},f=$.getAbsolutePos(o),p=f.boundingTop,g=f.boundingLeft,m=f.visibleHeight,v=f.visibleWidth,b="bottom";if(n){var y=g,_=p+s;"top"===i?(b="top",_=p-c):i||(_+c+d>m&&(b="top",_=p-c),_<d&&(b="bottom",_=p+s)),y+u+d>v&&(y-=y+u+d-v),y<d&&(y=d),Object.assign(h,{left:"".concat(y,"px"),top:"".concat(_,"px"),minWidth:"".concat(l,"px")})}else"top"===i?(b="top",h.bottom="".concat(s,"px")):i||p+s+c>m&&p-s-c>d&&(b="top",h.bottom="".concat(s,"px"));return e.panelStyle=h,e.panelPlacement=b,e.$nextTick()}}))},focus:function(){return this.isActivated=!0,this.$refs.input.focus(),this.$nextTick()},blur:function(){return this.$refs.input.blur(),this.isActivated=!1,this.$nextTick()}}},Nr=function(){function e(t,n){x(this,e),Object.assign(this,{value:n.value,label:n.label,visible:n.visible,disabled:n.disabled})}return S(e,[{key:"update",value:function(e,t){this[e]=t}}]),e}();function Pr(e){return e instanceof Nr}function Rr(e,t,n){return Pr(t)?t:new Nr(e,t,n)}function Fr(e,t){return Rr(e,t)}function jr(e){var t=e.$xeselect,n=e.optionConfig,i=s.a.findTree(t.collectOption,(function(e){return e===n}));i&&i.items.splice(i.index,1)}function Br(e){var t=e.$el,n=e.$xeselect,i=e.$xeoptgroup,r=e.optionConfig,o=i?i.optionConfig:null;r.slots=e.$scopedSlots,o?(o.options||(o.options=[]),o.options.splice([].indexOf.call(i.$el.children,t),0,r)):n.collectOption.splice([].indexOf.call(n.$refs.hideOption.children,t),0,r)}var zr={value:null,label:{type:[String,Number,Boolean],default:""},visible:{type:Boolean,default:null},disabled:Boolean},Vr={};Object.keys(zr).forEach((function(e){Vr[e]=function(t){this.optionConfig.update(e,t)}}));var $r={name:"VxeOption",props:zr,inject:{$xeselect:{default:null},$xeoptgroup:{default:null}},watch:Vr,mounted:function(){Br(this)},created:function(){this.optionConfig=Fr(this.$xeselect,this)},destroyed:function(){jr(this)},render:function(e){return e("div")}},Wr={label:{type:[String,Number,Boolean],default:""},visible:{type:Boolean,default:null},disabled:Boolean},Hr={};Object.keys(Wr).forEach((function(e){Hr[e]=function(t){this.optionConfig.update(e,t)}}));var Ur={name:"VxeOptgroup",props:Wr,provide:function(){return{$xeoptgroup:this}},inject:{$xeselect:{default:null}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize}},watch:Hr,mounted:function(){Br(this)},created:function(){this.optionConfig=Fr(this.$xeselect,this)},destroyed:function(){jr(this)},render:function(e){return e("div",this.$slots.default)}};Ar.install=function(e){e.component(Ar.name,Ar),e.component($r.name,$r),e.component(Ur.name,Ur)};var qr,Gr,Kr,Yr,Xr=Ar,Zr=Ar,Qr=$.browse,Jr={name:"VxeSwitch",props:{value:[String,Number,Boolean],disabled:Boolean,size:{type:String,default:function(){return u.switch.size||u.size}},openLabel:String,closeLabel:String,openValue:{type:[String,Number,Boolean],default:!0},closeValue:{type:[String,Number,Boolean],default:!1},openIcon:String,closeIcon:String,onLabel:String,offLabel:String,onValue:{type:[String,Number,Boolean],default:!0},offValue:{type:[String,Number,Boolean],default:!1},onIcon:String,offIcon:String},data:function(){return{isActivated:!1,hasAnimat:!1,offsetLeft:0}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},isChecked:function(){return s.a.isBoolean(this.onValue)?this.value===this.openValue:this.value===this.onValue},onShowLabel:function(){return N.getFuncText(this.openLabel||this.onLabel)},offShowLabel:function(){return N.getFuncText(this.closeLabel||this.offLabel)},styles:function(){return Qr.msie&&this.isChecked?{left:"".concat(this.offsetLeft,"px")}:null}},created:function(){var e=this,t=this.$options.propsData;t.onLabel&&N.warn("vxe.error.delProp",["on-label","open-label"]),t.offLabel&&N.warn("vxe.error.delProp",["off-label","close-label"]),t.onValue&&N.warn("vxe.error.delProp",["on-value","open-value"]),t.offValue&&N.warn("vxe.error.delProp",["off-value","close-value"]),t.onIcon&&N.warn("vxe.error.delProp",["on-icon","open-icon"]),t.offIcon&&N.warn("vxe.error.delProp",["off-icon","close-icon"]),Qr.msie&&this.$nextTick((function(){return e.updateStyle()}))},render:function(e){var t,n=this.isChecked,i=this.vSize,r=this.disabled,o=this.openIcon,a=this.onIcon,s=this.closeIcon,l=this.offIcon;return e("div",{class:["vxe-switch",n?"is--on":"is--off",(t={},rt(t,"size--".concat(i),i),rt(t,"is--disabled",r),rt(t,"is--animat",this.hasAnimat),t)]},[e("button",{ref:"btn",class:"vxe-switch--button",attrs:{type:"button",disabled:r},on:{click:this.clickEvent}},[e("span",{class:"vxe-switch--label vxe-switch--label-on"},[o||a?e("i",{class:["vxe-switch--label-icon",o||a]}):null,this.onShowLabel]),e("span",{class:"vxe-switch--label vxe-switch--label-off"},[s||l?e("i",{class:["vxe-switch--label-icon",s||l]}):null,this.offShowLabel]),e("span",{class:"vxe-switch--icon",style:this.styles})])])},methods:{updateStyle:function(){this.hasAnimat=!0,this.offsetLeft=this.$refs.btn.offsetWidth},clickEvent:function(e){var t=this;if(!this.disabled){clearTimeout(this.activeTimeout);var n=this.isChecked?s.a.isBoolean(this.offValue)?this.closeValue:this.offValue:s.a.isBoolean(this.onValue)?this.openValue:this.onValue;this.hasAnimat=!0,Qr.msie&&this.updateStyle(),this.$emit("input",n),this.$emit("change",{value:n,$event:e}),this.activeTimeout=setTimeout((function(){t.hasAnimat=!1}),400)}}},install:function(e){e.component(Jr.name,Jr)}},eo=Jr,to=Jr,no={name:"VxeList",props:{data:Array,height:[Number,String],maxHeight:[Number,String],loading:Boolean,size:{type:String,default:function(){return u.list.size||u.size}},autoResize:{type:Boolean,default:function(){return u.list.autoResize}},syncResize:[Boolean,String,Number],scrollY:Object},data:function(){return{scrollYLoad:!1,bodyHeight:0,topSpaceHeight:0,items:[]}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},sYOpts:function(){return Object.assign({},u.list.scrollY,this.scrollY)},styles:function(){var e=this.height,t=this.maxHeight,n={};return e?n.height=isNaN(e)?e:"".concat(e,"px"):t&&(n.height="auto",n.maxHeight=isNaN(t)?t:"".concat(t,"px")),n}},watch:{data:function(e){this.loadData(e)},syncResize:function(e){var t=this;e&&(this.recalculate(),this.$nextTick((function(){return setTimeout((function(){return t.recalculate()}))})))}},created:function(){Object.assign(this,{fullData:[],lastScrollLeft:0,lastScrollTop:0,scrollYStore:{startIndex:0,visibleIndex:0,renderSize:0}}),this.loadData(this.data),G.on(this,"resize",this.handleGlobalResizeEvent)},mounted:function(){var e=this;if(this.autoResize){var t=new ee((function(){return e.recalculate()}));t.observe(this.$el),this.$resize=t}},beforeDestroy:function(){this.$resize&&this.$resize.disconnect()},destroyed:function(){G.off(this,"resize")},render:function(e){var t=this.$scopedSlots,n=this.styles,i=this.bodyHeight,r=this.topSpaceHeight,o=this.items,a=this.loading;return e("div",{class:["vxe-list",{"is--loading":a}]},[e("div",{ref:"virtualWrapper",class:"vxe-list--virtual-wrapper",style:n,on:{scroll:this.scrollEvent}},[e("div",{ref:"ySpace",class:"vxe-list--y-space",style:{height:i?"".concat(i,"px"):""}}),e("div",{ref:"virtualBody",class:"vxe-list--body",style:{marginTop:r?"".concat(r,"px"):""}},t.default?t.default.call(this,{items:o,$list:this},e):[])]),e("div",{class:["vxe-list--loading vxe-loading",{"is--visible":a}]},[e("div",{class:"vxe-loading--spinner"})])])},methods:{getParentElem:function(){return this.$el.parentNode},loadData:function(e){var t=this,n=this.sYOpts,i=this.scrollYStore,r=e||[];return Object.assign(i,{startIndex:0,endIndex:1,visibleSize:0,visibleIndex:0}),this.fullData=r,this.scrollYLoad=n.enabled&&n.gt>-1&&r.length>n.gt,this.handleData(),this.computeScrollLoad().then((function(){t.refreshScroll()}))},reloadData:function(e){return this.clearScroll(),this.loadData(e)},handleData:function(){var e=this.fullData,t=this.scrollYLoad,n=this.scrollYStore;return this.items=t?e.slice(n.startIndex,Math.max(n.startIndex+n.renderSize,1)):e.slice(0),this.$nextTick()},recalculate:function(){var e=this.$el;return e.clientWidth&&e.clientHeight?this.computeScrollLoad():Promise.resolve()},clearScroll:function(){var e=this.$refs.virtualWrapper;return e&&(e.scrollTop=0),this.$nextTick()},refreshScroll:function(){var e=this,t=this.lastScrollLeft,n=this.lastScrollTop;return this.clearScroll(),this.$nextTick().then((function(){if(t||n)return e.lastScrollLeft=0,e.lastScrollTop=0,e.scrollTo(t,n)}))},scrollTo:function(e,t){var n=this,i=this.$refs.virtualWrapper;return s.a.isNumber(e)&&(i.scrollLeft=e),s.a.isNumber(t)&&(i.scrollTop=t),$.triggerEvent(i,"scroll"),this.scrollYLoad?new Promise((function(e){return setTimeout((function(){return e(n.$nextTick())}),50)})):this.$nextTick()},computeScrollLoad:function(){var e=this;return this.$nextTick().then((function(){var t=e.$refs,n=e.sYOpts,i=e.scrollYLoad,r=e.scrollYStore;if(i){var o,a=48;if(n.rHeight)a=n.rHeight;else t.virtualBody&&(n.sItem&&(o=t.virtualBody.querySelector(n.sItem)),o||(o=t.virtualBody.children[0])),o&&(a=o.offsetHeight);var l=s.a.toNumber(n.vSize||Math.ceil(t.virtualWrapper.clientHeight/a));r.visibleSize=l,r.rowHeight=a,n.oSize||(r.offsetSize=l),n.rSize||(r.renderSize=Math.max(6,l+2)),e.updateYData()}else e.updateYSpace()}))},scrollEvent:function(e){var t=e.target,n=t.scrollTop,i=t.scrollLeft,r=i!==this.lastScrollLeft,o=n!==this.lastScrollTop;this.lastScrollTop=n,this.lastScrollLeft=i,this.scrollYLoad&&this.loadYData(e),this.$emit("scroll",{scrollLeft:i,scrollTop:n,isX:r,isY:o,$event:e})},loadYData:function(e){var t=this.fullData,n=this.scrollYStore,i=this.isLoadData,r=n.startIndex,o=n.renderSize,a=n.offsetSize,s=n.visibleSize,l=n.rowHeight,c=e.target,u=c.scrollTop,d=Math.ceil(u/l),h=!1;if(i||n.visibleIndex!==d){var f=Math.min(Math.floor((o-s)/2),s);n.visibleIndex>d?(h=d-a<=r,h&&(n.startIndex=Math.max(0,d-Math.max(f,o-s)))):(h=d+s+a>=r+o,h&&(n.startIndex=Math.max(0,Math.min(t.length-o,d-f)))),h&&this.updateYData(),n.visibleIndex=d,this.isLoadData=!1}},updateYData:function(){this.handleData(),this.updateYSpace()},updateYSpace:function(){var e=this.scrollYStore,t=this.scrollYLoad,n=this.fullData;this.bodyHeight=t?n.length*e.rowHeight:0,this.topSpaceHeight=t?Math.max(e.startIndex*e.rowHeight,0):0},handleGlobalResizeEvent:function(){this.recalculate()}},install:function(e){e.component(no.name,no)}},io=no,ro=no,oo={name:"VxePulldown",props:{disabled:Boolean,placement:String,size:{type:String,default:function(){return u.size}},destroyOnClose:Boolean,transfer:Boolean},data:function(){return{inited:!1,panelIndex:0,panelStyle:null,panelPlacement:null,currentValue:null,visiblePanel:!1,animatVisible:!1,isActivated:!1}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize}},created:function(){G.on(this,"mousewheel",this.handleGlobalMousewheelEvent),G.on(this,"mousedown",this.handleGlobalMousedownEvent),G.on(this,"blur",this.handleGlobalBlurEvent)},beforeDestroy:function(){var e=this.$refs.panel;e&&e.parentNode&&e.parentNode.removeChild(e)},destroyed:function(){G.off(this,"mousewheel"),G.off(this,"mousedown"),G.off(this,"blur")},render:function(e){var t,n,i=this.$scopedSlots,r=this.inited,o=this.vSize,a=this.destroyOnClose,s=this.transfer,l=this.isActivated,c=this.disabled,u=this.animatVisible,d=this.visiblePanel,h=this.panelStyle,f=this.panelPlacement,p=i.default,g=i.dropdown;return e("div",{class:["vxe-pulldown",(t={},rt(t,"size--".concat(o),o),rt(t,"is--visivle",d),rt(t,"is--disabled",c),rt(t,"is--active",l),t)]},[e("div",{ref:"content",class:"vxe-pulldown--content"},p?p.call(this,{$pulldown:this},e):[]),e("div",{ref:"panel",class:["vxe-table--ignore-clear vxe-pulldown--panel",(n={},rt(n,"size--".concat(o),o),rt(n,"is--transfer",s),rt(n,"animat--leave",u),rt(n,"animat--enter",d),n)],attrs:{"data-placement":f},style:h},g?!r||a&&!d&&!u?[]:g.call(this,{$pulldown:this},e):[])])},methods:{handleGlobalMousewheelEvent:function(e){var t=this.$refs,n=this.disabled,i=this.visiblePanel;n||i&&($.getEventTargetNode(e,t.panel).flag?this.updatePlacement():(this.hidePanel(),this.$emit("hide-panel",{$event:e})))},handleGlobalMousedownEvent:function(e){var t=this.$refs,n=this.$el,i=this.disabled,r=this.visiblePanel;i||(this.isActivated=$.getEventTargetNode(e,n).flag||$.getEventTargetNode(e,t.panel).flag,r&&!this.isActivated&&(this.hidePanel(),this.$emit("hide-panel",{$event:e})))},handleGlobalBlurEvent:function(e){this.visiblePanel&&(this.hidePanel(),this.$emit("hide-panel",{$event:e}))},updateZindex:function(){this.panelIndex<N.getLastZIndex()&&(this.panelIndex=N.nextZIndex())},isPanelVisible:function(){return this.visiblePanel},togglePanel:function(){return this.visiblePanel?this.hidePanel():this.showPanel()},showPanel:function(){var e=this;return this.inited||(this.inited=!0,this.transfer&&document.body.appendChild(this.$refs.panel)),new Promise((function(t){e.disabled?t(e.$nextTick()):(clearTimeout(e.hidePanelTimeout),e.isActivated=!0,e.animatVisible=!0,setTimeout((function(){e.visiblePanel=!0,e.updatePlacement(),setTimeout((function(){t(e.updatePlacement())}),40)}),10),e.updateZindex())}))},hidePanel:function(){var e=this;return this.visiblePanel=!1,new Promise((function(t){e.animatVisible?e.hidePanelTimeout=setTimeout((function(){e.animatVisible=!1,t(e.$nextTick())}),350):t(e.$nextTick())}))},updatePlacement:function(){var e=this;return this.$nextTick().then((function(){var t=e.$refs,n=e.transfer,i=e.placement,r=e.panelIndex,o=e.visiblePanel;if(o){var a=t.panel,s=t.content;if(a&&s){var l=s.offsetHeight,c=s.offsetWidth,u=a.offsetHeight,d=a.offsetWidth,h=5,f={zIndex:r},p=$.getAbsolutePos(s),g=p.boundingTop,m=p.boundingLeft,v=p.visibleHeight,b=p.visibleWidth,y="bottom";if(n){var _=m,w=g+l;"top"===i?(y="top",w=g-u):i||(w+u+h>v&&(y="top",w=g-u),w<h&&(y="bottom",w=g+l)),_+d+h>b&&(_-=_+d+h-b),_<h&&(_=h),Object.assign(f,{left:"".concat(_,"px"),top:"".concat(w,"px"),minWidth:"".concat(c,"px")})}else"top"===i?(y="top",f.bottom="".concat(l,"px")):i||g+l+u>v&&g-l-u>h&&(y="top",f.bottom="".concat(l,"px"));e.panelStyle=f,e.panelPlacement=y}}return e.$nextTick()}))}},install:function(e){e.component(oo.name,oo)}},ao=oo,so=oo,lo={methods:{_insert:function(e){return this.insertAt(e)},_insertAt:function(e,t){var n,i=this,r=this.mergeList,o=this.afterFullData,a=this.editStore,l=this.sYOpts,c=this.scrollYLoad,u=this.tableFullData,d=this.treeConfig;s.a.isArray(e)||(e=[e]);var h=e.map((function(e){return i.defineField(Object.assign({},e))}));if(t)if(-1===t)o.push.apply(o,w(h)),u.push.apply(u,w(h)),r.forEach((function(e){var t=e.row,n=e.rowspan;t+n>o.length&&(e.rowspan=n+h.length)}));else{if(d)throw new Error(N.getLog("vxe.error.noTree",["insert"]));var f=o.indexOf(t);if(-1===f)throw new Error(N.error("vxe.error.unableInsert"));o.splice.apply(o,w([f,0].concat(h))),u.splice.apply(u,w([u.indexOf(t),0].concat(h))),r.forEach((function(e){var t=e.row,n=e.rowspan;t>f?e.row=t+h.length:t+n>f&&(e.rowspan=n+h.length)}))}else o.unshift.apply(o,w(h)),u.unshift.apply(u,w(h)),r.forEach((function(e){var t=e.row;t>0&&(e.row=t+h.length)}));return(n=a.insertList).unshift.apply(n,w(h)),this.scrollYLoad=!d&&l.gt>-1&&l.gt<u.length,this.handleTableData(),this.updateFooter(),this.updateCache(),this.checkSelectionStatus(),c&&this.updateScrollYSpace(),this.$nextTick().then((function(){return i.recalculate(),i.updateCellAreas(),{row:h.length?h[h.length-1]:null,rows:h}}))},_remove:function(e){var t=this,n=this.afterFullData,i=this.tableFullData,r=this.treeConfig,o=this.mergeList,a=this.editStore,l=this.checkboxOpts,c=this.selection,u=this.isInsertByRow,d=this.sYOpts,h=this.scrollYLoad,f=a.actived,p=a.removeList,g=a.insertList,m=l.checkField,v=[];return e?s.a.isArray(e)||(e=[e]):e=i,e.forEach((function(e){u(e)||p.push(e)})),m||e.forEach((function(e){var t=c.indexOf(e);t>-1&&c.splice(t,1)})),i===e?(e=v=i.slice(0),this.tableFullData=[],this.afterFullData=[],this.clearMergeCells()):e.forEach((function(e){var t=i.indexOf(e);if(t>-1){var r=i.splice(t,1);v.push(r[0])}var a=n.indexOf(e);a>-1&&(o.forEach((function(e){var t=e.row,n=e.rowspan;t>a?e.row=t-1:t+n>a&&(e.rowspan=n-1)})),n.splice(a,1))})),f.row&&e.indexOf(f.row)>-1&&this.clearActived(),e.forEach((function(e){var t=g.indexOf(e);t>-1&&g.splice(t,1)})),this.scrollYLoad=!r&&d.gt>-1&&d.gt<i.length,this.handleTableData(),this.updateFooter(),this.updateCache(),this.checkSelectionStatus(),h&&this.updateScrollYSpace(),this.$nextTick().then((function(){return t.recalculate(),t.updateCellAreas(),{row:v.length?v[v.length-1]:null,rows:v}}))},_removeSelecteds:function(){return N.warn("vxe.error.delFunc",["removeSelecteds","removeCheckboxRow"]),this.removeCheckboxRow()},_removeCheckboxRow:function(){var e=this;return this.remove(this.getCheckboxRecords()).then((function(t){return e.clearCheckboxRow(),t}))},_removeRadioRow:function(){var e=this,t=this.getRadioRecord();return this.remove(t||[]).then((function(t){return e.clearRadioRow(),t}))},_removeCurrentRow:function(){var e=this,t=this.getCurrentRecord();return this.remove(t||[]).then((function(t){return e.clearCurrentRow(),t}))},_getRecordset:function(){return{insertRecords:this.getInsertRecords(),removeRecords:this.getRemoveRecords(),updateRecords:this.getUpdateRecords()}},_getInsertRecords:function(){var e=this.editStore.insertList,t=[];return e.length&&this.tableFullData.forEach((function(n){e.indexOf(n)>-1&&t.push(n)})),t},_getRemoveRecords:function(){return this.editStore.removeList},_getUpdateRecords:function(){var e=this.keepSource,t=this.tableFullData,n=this.isUpdateByRow,i=this.treeConfig,r=this.treeOpts,o=this.editStore;if(e||N.warn("vxe.error.reqProp",["keep-source"]),e){var a=o.actived,l=a.row,c=a.column;return(l||c)&&this._syncActivedCell(),i?s.a.filterTree(t,(function(e){return n(e)}),r):t.filter((function(e){return n(e)}))}return[]},handleActived:function(e,t){var n=this,i=this.editStore,r=this.editOpts,o=this.tableColumn,a=this.mouseConfig,s=r.mode,l=r.activeMethod,c=i.actived,u=e.row,d=e.column,h=d.editRender,f=e.cell=e.cell||this.getCell(u,d);if(N.isEnableConf(h)&&f){if(c.row!==u||"cell"===s&&c.column!==d){var p="edit-disabled";l&&!l(e)||(a&&(this.clearCopyed(t),this.clearChecked(),this.clearSelected(t),this.clearCellAreas(t),this.clearCopyCellArea(t)),this.closeTooltip(),this.clearActived(t),p="edit-actived",d.renderHeight=f.offsetHeight,c.args=e,c.row=u,c.column=d,"row"===s?o.forEach((function(e){return n._getColumnModel(u,e)})):this._getColumnModel(u,d),this.$nextTick((function(){n.handleFocus(e,t)}))),this.emitEvent(p,Object.assign({},e,{row:u,rowIndex:this.getRowIndex(u),$rowIndex:this.getVMRowIndex(u),column:d,columnIndex:this.getColumnIndex(d),$columnIndex:this.getVMColumnIndex(d)}),t)}else{var g=c.column;if(a&&(this.clearCopyed(t),this.clearChecked(),this.clearSelected(t),this.clearCellAreas(t),this.clearCopyCellArea(t)),g!==d){var m=g.model;m.update&&N.setCellValue(u,g,m.value),this.clearValidate()}d.renderHeight=f.offsetHeight,c.args=e,c.column=d,setTimeout((function(){n.handleFocus(e,t)}))}this.focus()}return this.$nextTick()},_getColumnModel:function(e,t){var n=t.model,i=t.editRender;i&&(n.value=N.getCellValue(e,t),n.update=!1)},_setColumnModel:function(e,t){var n=t.model,i=t.editRender;i&&n.update&&(N.setCellValue(e,t,n.value),n.update=!1,n.value=null)},_syncActivedCell:function(){var e=this,t=this.tableColumn,n=this.editStore,i=this.editOpts,r=n.actived,o=r.row,a=r.column;(o||a)&&("row"===i.mode?t.forEach((function(t){return e._setColumnModel(o,t)})):this._setColumnModel(o,a))},_clearActived:function(e){var t=this.editStore,n=t.actived,i=n.args,r=n.row,o=n.column;return(r||o)&&(this._syncActivedCell(),n.args=null,n.row=null,n.column=null,this.updateFooter(),this.emitEvent("edit-closed",Object.assign({},i,{row:r,rowIndex:this.getRowIndex(r),$rowIndex:this.getVMRowIndex(r),column:o,columnIndex:this.getColumnIndex(o),$columnIndex:this.getVMColumnIndex(o)}),e)),(it._valid?this.clearValidate():this.$nextTick()).then(this.recalculate)},_getActiveRow:function(){return N.warn("vxe.error.delFunc",["getActiveRow","getActiveRecord"]),this.getActiveRecord()},_getActiveRecord:function(){var e=this.$el,t=this.editStore,n=this.afterFullData,i=t.actived,r=i.args,o=i.row;return r&&n.indexOf(o)>-1&&e.querySelectorAll(".vxe-body--column.col--actived").length?Object.assign({},r):null},_hasActiveRow:function(e){return N.warn("vxe.error.delFunc",["hasActiveRow","isActiveByRow"]),this.isActiveByRow(e)},_isActiveByRow:function(e){return this.editStore.actived.row===e},handleFocus:function(e){var t=e.row,n=e.column,i=e.cell,r=n.editRender;if(N.isEnableConf(r)){var o,a=it.renderer.get(r.name),s=r.autofocus,l=r.autoselect;if(s&&(o=i.querySelector(s)),!o&&a&&a.autofocus&&(o=i.querySelector(a.autofocus)),o){if(o.focus(),l)o.select();else if($.browse.msie){var c=o.createTextRange();c.collapse(!1),c.select()}}else this.scrollToRow(t,n)}},_setActiveRow:function(e){return this.setActiveCell(e,s.a.find(this.visibleColumn,(function(e){return N.isEnableConf(e.editRender)})))},_setActiveCell:function(e,t){var n=this,i=s.a.isString(t)?this.getColumnByField(t):t;return e&&i&&N.isEnableConf(i.editRender)?this.scrollToRow(e,!0).then((function(){var t=n.getCell(e,i);t&&(n.handleActived({row:e,rowIndex:n.getRowIndex(e),column:i,columnIndex:n.getColumnIndex(i),cell:t,$table:n}),n.lastCallTime=Date.now())})):this.$nextTick()},_setSelectCell:function(e,t){var n=this.tableData,i=this.editOpts,r=this.visibleColumn,o=s.a.isString(t)?this.getColumnByField(t):t;if(e&&o&&"manual"!==i.trigger){var a=n.indexOf(e);if(a>-1&&o){var l=this.getCell(e,o),c={row:e,rowIndex:a,column:o,columnIndex:r.indexOf(o),cell:l};this.handleSelected(c,{})}}return this.$nextTick()},handleSelected:function(e,t){var n=this,i=this.mouseConfig,r=this.mouseOpts,o=this.editOpts,a=this.editStore,s=this.elemStore,l=a.actived,c=a.selected,u=e.row,d=e.column,h=e.cell,f=i&&r.selected,p=i&&r.checked,g=function(){if((f||p)&&(c.row!==u||c.column!==d)&&(l.row!==u||"cell"===o.mode&&l.column!==d)){if(n.keyboardConfig&&(n.clearChecked(t),n.clearIndexChecked(),n.clearHeaderChecked()),n.clearActived(t),n.clearSelected(t),n.clearCellAreas(t),n.clearCopyCellArea(t),c.args=e,c.row=u,c.column=d,f&&n.addColSdCls(),p){var i=s["main-header-list"];n.handleChecked([[h]]),i&&n.handleHeaderChecked([[i.querySelector(".".concat(d.id))]]),n.handleIndexChecked([[h.parentNode.querySelector(".col--seq")]])}n.focus(),t&&n.emitEvent("cell-selected",e,t)}return n.$nextTick()};return g()},_clearSelected:function(){var e=this.editStore.selected;return e.row=null,e.column=null,this.reColTitleSdCls(),this.reColSdCls(),this.$nextTick()},reColTitleSdCls:function(){var e=this.elemStore["main-header-list"];e&&s.a.arrayEach(e.querySelectorAll(".col--title-selected"),(function(e){return $.removeClass(e,"col--title-selected")}))},reColSdCls:function(){var e=this.$el.querySelector(".col--selected");e&&$.removeClass(e,"col--selected")},addColSdCls:function(){var e=this.editStore.selected,t=e.row,n=e.column;if(this.reColSdCls(),t&&n){var i=this.getCell(t,n);i&&$.addClass(i,"col--selected")}}}},co={install:function(){it.reg("edit"),rn.mixins.push(lo)}},uo=co,ho={name:"VxeExportPanel",props:{defaultOptions:Object,storeData:Object},components:{VxeModal:er,VxeInput:Ri,VxeCheckbox:ti,VxeSelect:Ar,VxeOption:$r},data:function(){return{isAll:!1,isIndeterminate:!1,loading:!1}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},showSheet:function(){return["html","xml","xlsx","pdf"].indexOf(this.defaultOptions.type)>-1}},render:function(e){var t=this,n=this._e,i=this.isAll,r=this.isIndeterminate,o=this.showSheet,a=this.defaultOptions,l=this.storeData,c=[];return s.a.eachTree(l.columns,(function(n){var i=N.formatText(n.getTitle(),1),r=n.children&&n.children.length;c.push(e("li",{class:["vxe-export--panel-column-option","level--".concat(n.level),{"is--group":r,"is--checked":n.checked,"is--indeterminate":n.halfChecked,"is--disabled":n.disabled}],attrs:{title:i},on:{click:function(){n.disabled||t.changeOption(n)}}},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"}),e("span",{class:"vxe-checkbox--label"},i)]))})),e("vxe-modal",{res:"modal",props:{value:l.visible,title:u.i18n("vxe.export.expTitle"),width:660,mask:!0,lockView:!0,showFooter:!1,escClosable:!0,maskClosable:!0,loading:this.loading},on:{input:function(e){l.visible=e},show:this.showEvent}},[e("div",{class:"vxe-export--panel"},[e("table",{attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",[[e("tr",[e("td",u.i18n("vxe.export.expName")),e("td",[e("vxe-input",{ref:"filename",props:{value:a.filename,type:"text",clearable:!0,placeholder:u.i18n("vxe.export.expNamePlaceholder")},on:{input:function(e){a.filename=e}}})])]),e("tr",[e("td",u.i18n("vxe.export.expType")),e("td",[e("vxe-select",{props:{value:a.type},on:{input:function(e){a.type=e}}},l.typeList.map((function(t){return e("vxe-option",{props:{value:t.value,label:u.i18n(t.label)}})})))])]),o?e("tr",[e("td",u.i18n("vxe.export.expSheetName")),e("td",[e("vxe-input",{props:{value:a.sheetName,type:"text",clearable:!0,placeholder:u.i18n("vxe.export.expSheetNamePlaceholder")},on:{input:function(e){a.sheetName=e}}})])]):n(),e("tr",[e("td",u.i18n("vxe.export.expMode")),e("td",[e("vxe-select",{props:{value:a.mode},on:{input:function(e){a.mode=e}}},l.modeList.map((function(t){return e("vxe-option",{props:{value:t.value,label:u.i18n(t.label)}})})))])]),e("tr",[e("td",[u.i18n("vxe.export.expColumn")]),e("td",[e("div",{class:"vxe-export--panel-column"},[e("ul",{class:"vxe-export--panel-column-header"},[e("li",{class:["vxe-export--panel-column-option",{"is--checked":i,"is--indeterminate":r}],attrs:{title:u.i18n("vxe.table.allTitle")},on:{click:this.allColumnEvent}},[e("span",{class:"vxe-checkbox--icon vxe-checkbox--checked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--unchecked-icon"}),e("span",{class:"vxe-checkbox--icon vxe-checkbox--indeterminate-icon"}),e("span",{class:"vxe-checkbox--label"},u.i18n("vxe.export.expCurrentColumn"))])]),e("ul",{class:"vxe-export--panel-column-body"},c)])])]),e("tr",[e("td",u.i18n("vxe.export.expOpts")),e("td",[e("vxe-checkbox",{props:{value:a.isHeader,title:u.i18n("vxe.export.expHeaderTitle")},on:{input:function(e){a.isHeader=e}}},u.i18n("vxe.export.expOptHeader")),e("vxe-checkbox",{props:{value:a.isFooter,disabled:!l.hasFooter,title:u.i18n("vxe.export.expFooterTitle")},on:{input:function(e){a.isFooter=e}}},u.i18n("vxe.export.expOptFooter")),e("vxe-checkbox",{props:{value:a.original,title:u.i18n("vxe.export.expOriginalTitle")},on:{input:function(e){a.original=e}}},u.i18n("vxe.export.expOptOriginal"))])])]])]),e("div",{class:"vxe-export--panel-btns"},[a.isPrint?e("vxe-button",{on:{click:this.printEvent}},u.i18n("vxe.export.expPrint")):null,e("vxe-button",{props:{status:"primary"},on:{click:this.exportEvent}},u.i18n("vxe.export.expConfirm"))])])])},methods:{changeOption:function(e){var t=!e.checked;s.a.eachTree([e],(function(e){e.checked=t,e.halfChecked=!1})),this.handleOptionCheck(e),this.checkStatus()},handleOptionCheck:function(e){var t=s.a.findTree(this.storeData.columns,(function(t){return t===e}));if(t&&t.parent){var n=t.parent;n.children&&n.children.length&&(n.checked=n.children.every((function(e){return e.checked})),n.halfChecked=!n.checked&&n.children.some((function(e){return e.checked||e.halfChecked})),this.handleOptionCheck(n))}},checkStatus:function(){var e=this.storeData.columns;this.isAll=e.every((function(e){return e.disabled||e.checked})),this.isIndeterminate=!this.isAll&&e.some((function(e){return!e.disabled&&(e.checked||e.halfChecked)}))},allColumnEvent:function(){var e=!this.isAll;s.a.eachTree(this.storeData.columns,(function(t){t.disabled||(t.checked=e,t.halfChecked=!1)})),this.isAll=e,this.checkStatus()},showEvent:function(){var e=this;this.$nextTick((function(){e.$refs.filename.focus()})),this.checkStatus()},getExportOption:function(){var e=this.storeData,t=this.defaultOptions,n=[];return s.a.eachTree(e.columns,(function(e){var t=e.children&&e.children.length;!t&&e.checked&&n.push(e)})),Object.assign({},t,{columns:n})},printEvent:function(){var e=this.$parent;this.storeData.visible=!1,e.print(Object.assign({},e.printOpts,this.getExportOption()))},exportEvent:function(){var e=this,t=this.$parent;this.loading=!0,t.exportData(Object.assign({},t.exportOpts,this.getExportOption())).then((function(){e.loading=!1,e.storeData.visible=!1})).catch((function(){e.loading=!1}))}}},fo={name:"VxeImportPanel",props:{defaultOptions:Object,storeData:Object},components:{VxeModal:er,VxeRadio:oi},data:function(){return{loading:!1}},computed:{vSize:function(){return this.size||this.$parent.size||this.$parent.vSize},selectName:function(){return"".concat(this.storeData.filename,".").concat(this.storeData.type)},hasFile:function(){return this.storeData.file&&this.storeData.type},parseTypeLabel:function(){var e=this.storeData,t=e.type,n=e.typeList;if(t){var i=s.a.find(n,(function(e){return t===e.value}));return i?u.i18n(i.label):"*.*"}return"*.".concat(n.map((function(e){return e.value})).join(", *."))}},render:function(e){var t=this.hasFile,n=this.parseTypeLabel,i=this.defaultOptions,r=this.storeData,o=this.selectName;return e("vxe-modal",{res:"modal",props:{value:r.visible,title:u.i18n("vxe.import.impTitle"),width:440,mask:!0,lockView:!0,showFooter:!1,escClosable:!0,maskClosable:!0,loading:this.loading},on:{input:function(e){r.visible=e}}},[e("div",{class:"vxe-export--panel"},[e("table",{attrs:{cellspacing:0,cellpadding:0,border:0}},[e("tbody",[e("tr",[e("td",u.i18n("vxe.import.impFile")),e("td",[t?e("div",{class:"vxe-import-selected--file",attrs:{title:o}},[e("span",o),e("i",{class:u.icon.INPUT_CLEAR,on:{click:this.clearFileEvent}})]):e("span",{class:"vxe-import-select--file",on:{click:this.selectFileEvent}},u.i18n("vxe.import.impSelect"))])]),e("tr",[e("td",u.i18n("vxe.import.impType")),e("td",n)]),e("tr",[e("td",u.i18n("vxe.import.impOpts")),e("td",[e("vxe-radio-group",{props:{value:i.mode},on:{input:function(e){i.mode=e}}},r.modeList.map((function(t){return e("vxe-radio",{props:{label:t.value}},u.i18n(t.label))})))])])])]),e("div",{class:"vxe-export--panel-btns"},[e("vxe-button",{props:{status:"primary",disabled:!t},on:{click:this.importEvent}},u.i18n("vxe.import.impConfirm"))])])])},methods:{clearFileEvent:function(){Object.assign(this.storeData,{filename:"",sheetName:"",type:""})},selectFileEvent:function(){var e=this,t=this.$parent;t.readFile(this.defaultOptions).then((function(t){var n=t.file;Object.assign(e.storeData,N.parseFile(n),{file:n})})).catch((function(e){return e}))},importEvent:function(){var e=this,t=this.$parent;this.loading=!0,t.importByFile(this.storeData.file,Object.assign({},t.importOpts,this.defaultOptions)).then((function(){e.loading=!1,e.storeData.visible=!1})).catch((function(){e.loading=!1}))}}},po=(n("caad"),n("2532"),n("2b3d"),'body{margin:0;color:#333333;font-size:14px;font-family:"Microsoft YaHei",微软雅黑,"MicrosoftJhengHei",华文细黑,STHeiti,MingLiu}body *{-webkit-box-sizing:border-box;box-sizing:border-box}.vxe-table{border-collapse:collapse;text-align:left;border-spacing:0}.vxe-table:not(.is--print){table-layout:fixed}.vxe-table,.vxe-table th,.vxe-table td,.vxe-table td{border-color:#D0D0D0;border-style:solid;border-width:0}.vxe-table.is--print{width:100%}.border--default,.border--full,.border--outer{border-top-width:1px}.border--default,.border--full,.border--outer{border-left-width:1px}.border--outer,.border--default th,.border--default td,.border--full th,.border--full td,.border--outer th,.border--inner th,.border--inner td{border-bottom-width:1px}.border--default,.border--outer,.border--full th,.border--full td{border-right-width:1px}.border--default th,.border--full th,.border--outer th{background-color:#f8f8f9}.vxe-table td>div,.vxe-table th>div{padding:.5em .4em}.col--center{text-align:center}.col--right{text-align:right}.vxe-table:not(.is--print) .col--ellipsis>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.vxe-table--tree-node{text-align:left}.vxe-table--tree-node-wrapper{position:relative}.vxe-table--tree-icon-wrapper{position:absolute;top:50%;width:1em;height:1em;text-align:center;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.vxe-table--tree-unfold-icon,.vxe-table--tree-fold-icon{position:absolute;width:0;height:0;border-style:solid;border-width:.5em;border-right-color:transparent;border-bottom-color:transparent}.vxe-table--tree-unfold-icon{left:.3em;top:0;border-left-color:#939599;border-top-color:transparent}.vxe-table--tree-fold-icon{left:0;top:.3em;border-left-color:transparent;border-top-color:#939599}.vxe-table--tree-cell{display:block;padding-left:1.5em}.vxe-table input[type="checkbox"]{margin:0}.vxe-table input[type="checkbox"],.vxe-table input[type="radio"],.vxe-table input[type="checkbox"]+span,.vxe-table input[type="radio"]+span{vertical-align:middle;padding-left:0.4em}'),go="\ufeff",mo="\r\n";function vo(){var e=document.createElement("iframe");return e.className="vxe-table--print-frame",e}function bo(e,t){return window.Blob?new Blob([e],{type:"text/".concat(t.type)}):null}function yo(e,t){var n=e.treeOpts;return t[n.children]&&t[n.children].length}function _o(e,t,n,i,r){var o=e.seqOpts,a=o.seqMethod||i.seqMethod||i.indexMethod;return a?a({row:t,rowIndex:n,column:i,columnIndex:r}):(o.startIndex||e.startIndex)+n+1}function wo(e){return e.property||["seq","index","checkbox","selection","radio"].indexOf(e.type)>-1}function xo(e){return!0===e?"full":e||"default"}function Co(e){return s.a.isBoolean(e)?e?"TRUE":"FALSE":e}function So(e,t,n,i){var r=e.treeConfig,o=e.treeOpts,a=e.radioOpts,l=e.checkboxOpts;if(qr||(qr=document.createElement("div")),r){var c=[];return s.a.eachTree(i,(function(i,r,o,u,d,h){var f={_level:h.length-1,_hasChild:yo(e,i)};n.forEach((function(n,o){var c="",u=n.editRender||n.cellRender,d=n.exportMethod;if(!d&&u&&u.name){var h=it.renderer.get(u.name);h&&(d=h.exportMethod||h.cellExportMethod)}if(d)c=d({$table:e,row:i,column:n,options:t});else switch(n.type){case"seq":case"index":c=_o(e,i,r,n,o);break;case"selection":case"checkbox":c=Co(e.isCheckedByCheckboxRow(i)),f._checkboxLabel=l.labelField?s.a.get(i,l.labelField):"",f._checkboxDisabled=l.checkMethod&&!l.checkMethod({row:i});break;case"radio":c=Co(e.isCheckedByRadioRow(i)),f._radioLabel=a.labelField?s.a.get(i,a.labelField):"",f._radioDisabled=a.checkMethod&&!a.checkMethod({row:i});break;default:t.original?c=N.getCellValue(i,n):(c=e.getCellLabel(i,n),"html"===n.type&&(qr.innerHTML=c,c=qr.innerText.trim()))}f[n.id]=s.a.toString(c)})),c.push(Object.assign(f,i))}),o),c}return i.map((function(i,r){var o={};return n.forEach((function(n,c){var u="",d=n.editRender||n.cellRender,h=n.exportMethod;if(!h&&d&&d.name){var f=it.renderer.get(d.name);f&&(h=f.exportMethod||f.cellExportMethod)}if(h)u=h({$table:e,row:i,column:n,options:t});else switch(n.type){case"seq":case"index":u=_o(e,i,r,n,c);break;case"selection":case"checkbox":u=Co(e.isCheckedByCheckboxRow(i)),o._checkboxLabel=l.labelField?s.a.get(i,l.labelField):"",o._checkboxDisabled=l.checkMethod&&!l.checkMethod({row:i});break;case"radio":u=Co(e.isCheckedByRadioRow(i)),o._radioLabel=a.labelField?s.a.get(i,a.labelField):"",o._radioDisabled=a.checkMethod&&!a.checkMethod({row:i});break;default:t.original?u=N.getCellValue(i,n):(u=e.getCellLabel(i,n),"html"===n.type&&(qr.innerHTML=u,u=qr.innerText.trim()))}o[n.id]=s.a.toString(u)})),o}))}function ko(e,t){var n=t.columnFilterMethod,i=t.dataFilterMethod,r=t.columns,o=t.data;return n&&(r=r.filter((function(e,t){return n({column:e,$columnIndex:t})}))),i&&(o=o.filter((function(e,t){return i({row:e,$rowIndex:t})}))),{columns:r,datas:So(e,t,r,o)}}function Oo(e){return"TRUE"===e||"true"===e||!0===e}function Mo(e,t){return(e.original?t.property:t.getTitle())||""}function Do(e,t,n,i){var r=i.editRender||i.cellRender,o=i.footerExportMethod;if(!o&&r&&r.name){var a=it.renderer.get(r.name);a&&(o=a.footerExportMethod||a.footerCellExportMethod)}var l=e.getVTColumnIndex(i),c=o?o({$table:e,items:n,itemIndex:l,_columnIndex:l,column:i,options:t}):s.a.toString(n[l]);return c}function Eo(e,t){var n=e.footerFilterMethod;return n?t.filter((function(e,t){return n({items:e,$rowIndex:t})})):t}function To(e,t,n,i){var r=go;if(t.isHeader&&(r+=n.map((function(e){return'"'.concat(Mo(t,e),'"')})).join(",")+mo),i.forEach((function(e){r+=n.map((function(t){return'"'.concat(e[t.id],'"')})).join(",")+mo})),t.isFooter){var o=e.footerTableData,a=Eo(t,o);a.forEach((function(i){r+=n.map((function(n){return'"'.concat(Do(e,t,i,n),'"')})).join(",")+mo}))}return r}function Lo(e,t,n,i){var r="";if(t.isHeader&&(r+=n.map((function(e){return"".concat(Mo(t,e))})).join("\t")+mo),i.forEach((function(e){r+=n.map((function(t){return"".concat(e[t.id])})).join("\t")+mo})),t.isFooter){var o=e.footerTableData,a=Eo(t,o);a.forEach((function(i){r+=n.map((function(n){return"".concat(Do(e,t,i,n))})).join(",")+mo}))}return r}function Io(e,t,n,i){var r=t[n],o=s.a.isUndefined(r)||s.a.isNull(r)?i:r,a="ellipsis"===o,l="title"===o,c=!0===o||"tooltip"===o,u=l||c||a;return!e.scrollXLoad&&!e.scrollYLoad||u||(u=!0),u}function Ao(e,t){var n=e.style;return["<!DOCTYPE html><html>","<head>",'<meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">',"<title>".concat(e.sheetName,"</title>"),"<style>".concat(po,"</style>"),n?"<style>".concat(n,"</style>"):"","</head>","<body>".concat(s.a.toString(t),"</body>"),"</html>"].join("")}function No(e,t,n,i){var r=e.id,o=e.border,a=e.treeConfig,s=e.treeOpts,l=e.isAllSelected,c=e.isIndeterminate,u=e.headerAlign,d=e.align,h=e.footerAlign,f=e.showOverflow,p=e.showHeaderOverflow,g=t.print,m=t.isHeader,v=t.isFooter,b="check-all",y=["vxe-table","border--".concat(xo(o)),g?"is--print":"",m?"show--head":""].filter((function(e){return e})),_=['<table class="'.concat(y.join(" "),'" border="0" cellspacing="0" cellpadding="0">'),"<colgroup>".concat(n.map((function(e){return'<col style="width:'.concat(e.renderWidth,'px">')})).join(""),"</colgroup>")].join("");if(m&&(_+="<thead><tr>".concat(n.map((function(n){var i=n.headerAlign||n.align||u||d,r=Io(e,n,"showHeaderOverflow",p)?["col--ellipsis"]:[],o=Mo(t,n);return i&&r.push("col--".concat(i)),"checkbox"===n.type||"selection"===n.type?'<th class="'.concat(r.join(" "),'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><input type="checkbox" class="').concat(b,'" ').concat(l?"checked":"","><span>").concat(o,"</span></div></th>"):'<th class="'.concat(r.join(" "),'" title="').concat(o,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),"><span>").concat(N.formatText(o,!0),"</span></div></th>")})).join(""),"</tr></thead>")),i.length&&(_+="<tbody>",a?i.forEach((function(t){_+="<tr>"+n.map((function(n){var i=n.align||d,o=Io(e,n,"showOverflow",f)?["col--ellipsis"]:[],a=t[n.id];if(i&&o.push("col--".concat(i)),n.treeNode){var l="";return t._hasChild&&(l='<i class="'.concat(t._expand?"vxe-table--tree-fold-icon":"vxe-table--tree-unfold-icon",'"></i>')),o.push("vxe-table--tree-node"),"radio"===n.type?'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(t._level*s.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(l,'</div><div class="vxe-table--tree-cell"><input type="radio" name="radio_').concat(r,'" ').concat(t._radioDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._radioLabel,"</span></div></div></div></td>"):"checkbox"===n.type||"selection"===n.type?'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(t._level*s.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(l,'</div><div class="vxe-table--tree-cell"><input type="checkbox" ').concat(t._checkboxDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._checkboxLabel,"</span></div></div></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><div class="vxe-table--tree-node-wrapper" style="padding-left: ').concat(t._level*s.indent,'px"><div class="vxe-table--tree-icon-wrapper">').concat(l,'</div><div class="vxe-table--tree-cell">').concat(a,"</div></div></div></td>")}return"radio"===n.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><input type="radio" name="radio_').concat(r,'" ').concat(t._radioDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._radioLabel,"</span></div></td>"):"checkbox"===n.type||"selection"===n.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><input type="checkbox" ').concat(t._checkboxDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),">").concat(N.formatText(a,!0),"</div></td>")})).join("")+"</tr>"})):i.forEach((function(t){_+="<tr>"+n.map((function(n){var i=n.align||d,o=Io(e,n,"showOverflow",f)?["col--ellipsis"]:[],a=t[n.id];return i&&o.push("col--".concat(i)),"radio"===n.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><input type="radio" name="radio_').concat(r,'" ').concat(t._radioDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._radioLabel,"</span></div></td>"):"checkbox"===n.type||"selection"===n.type?'<td class="'.concat(o.join(" "),'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),'><input type="checkbox" ').concat(t._checkboxDisabled?"disabled ":"").concat(Oo(a)?"checked":"","><span>").concat(t._checkboxLabel,"</span></div></td>"):'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),">").concat(N.formatText(a,!0),"</div></td>")})).join("")+"</tr>"})),_+="</tbody>"),v){var w=e.footerTableData,x=Eo(t,w);x.length&&(_+="<tfoot>",x.forEach((function(i){_+="<tr>".concat(n.map((function(n){var r=n.footerAlign||n.align||h||d,o=Io(e,n,"showOverflow",f)?["col--ellipsis"]:[],a=Do(e,t,i,n);return r&&o.push("col--".concat(r)),'<td class="'.concat(o.join(" "),'" title="').concat(a,'"><div ').concat(g?"":'style="width: '.concat(n.renderWidth,'px"'),">").concat(N.formatText(a,!0),"</div></td>")})).join(""),"</tr>")})),_+="</tfoot>")}var C=!l&&c?'<script>(function(){var a=document.querySelector(".'.concat(b,'");if(a){a.indeterminate=true}})()<\/script>'):"";return _+="</table>"+C,g?_:Ao(t,_)}function Po(e,t,n,i){var r=['<?xml version="1.0"?>','<?mso-application progid="Excel.Sheet"?>','<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">','<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">',"<Version>16.00</Version>","</DocumentProperties>",'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">',"<WindowHeight>7920</WindowHeight>","<WindowWidth>21570</WindowWidth>","<WindowTopX>32767</WindowTopX>","<WindowTopY>32767</WindowTopY>","<ProtectStructure>False</ProtectStructure>","<ProtectWindows>False</ProtectWindows>","</ExcelWorkbook>",'<Worksheet ss:Name="'.concat(t.sheetName,'">'),"<Table>",n.map((function(e){return'<Column ss:Width="'.concat(e.renderWidth,'"/>')})).join("")].join("");if(t.isHeader&&(r+="<Row>".concat(n.map((function(e){return'<Cell><Data ss:Type="String">'.concat(Mo(t,e),"</Data></Cell>")})).join(""),"</Row>")),i.forEach((function(e){r+="<Row>"+n.map((function(t){return'<Cell><Data ss:Type="String">'.concat(e[t.id],"</Data></Cell>")})).join("")+"</Row>"})),t.isFooter){var o=e.footerTableData,a=Eo(t,o);a.forEach((function(i){r+="<Row>".concat(n.map((function(n){return'<Cell><Data ss:Type="String">'.concat(Do(e,t,i,n),"</Data></Cell>")})).join(""),"</Row>")}))}return"".concat(r,"</Table></Worksheet></Workbook>")}function Ro(e,t,n,i){if(n.length)switch(t.type){case"csv":return To(e,t,n,i);case"txt":return Lo(e,t,n,i);case"html":return No(e,t,n,i);case"xml":return Po(e,t,n,i)}return""}function Fo(e){var t=e.filename,n=e.type,i=e.content,r="".concat(t,".").concat(n);if(window.Blob){var o=i instanceof Blob?i:bo(s.a.toString(i),e);if(navigator.msSaveBlob)navigator.msSaveBlob(o,r);else{var a=document.createElement("a");a.target="_blank",a.download=r,a.href=URL.createObjectURL(o),document.body.appendChild(a),a.click(),document.body.removeChild(a)}return Promise.resolve()}return Promise.reject(new Error(N.getLog("vxe.error.notExp")))}function jo(e,t,n){var i=t.filename,r=t.type,o=t.download;if(!o){var a=bo(n,t);return Promise.resolve({type:r,content:n,blob:a})}Fo({filename:i,type:r,content:n}).then((function(){!1!==t.message&&it.modal.message({message:u.i18n("vxe.table.expSuccess"),status:"success"})}))}function Bo(e,t){if(t.remote){var n={options:t,$table:e,$grid:e.$xegrid};return t.exportMethod?t.exportMethod(n):Promise.resolve(n)}var i=ko(e,t),r=i.columns,o=i.datas;return Promise.resolve(e.preventEvent(null,"event.export",{options:t,columns:r,datas:o},(function(){return jo(e,t,Ro(e,t,r,o))})))}function zo(e,t){return e.getElementsByTagName(t)}function Vo(e){return e.replace(/^"/,"").replace(/"$/,"")}function $o(e,t){var n=t.split(mo),i=[],r=[];if(n.length){var o=n.slice(1);r=n[0].split(",").map(Vo),o.forEach((function(e){if(e){var t={};e.split(",").forEach((function(e,n){r[n]&&(t[r[n]]=Vo(e))})),i.push(t)}}))}return{fields:r,rows:i}}function Wo(e,t){var n=t.split("\n"),i=[],r=[];if(n.length){var o=n.slice(1);r=n[0].split("\t"),o.forEach((function(e){if(e){var t={};e.split("\t").forEach((function(e,n){r[n]&&(t[r[n]]=Vo(e))})),i.push(t)}}))}return{fields:r,rows:i}}function Ho(e,t){var n=new DOMParser,i=n.parseFromString(t,"text/html"),r=zo(i,"body"),o=[],a=[];if(r.length){var l=zo(r[0],"table");if(l.length){var c=zo(l[0],"thead");if(c.length){s.a.arrayEach(zo(c[0],"tr"),(function(e){s.a.arrayEach(zo(e,"th"),(function(e){a.push(e.textContent)}))}));var u=zo(l[0],"tbody");u.length&&s.a.arrayEach(zo(u[0],"tr"),(function(e){var t={};s.a.arrayEach(zo(e,"td"),(function(e,n){a[n]&&(t[a[n]]=e.textContent||"")})),o.push(t)}))}}}return{fields:a,rows:o}}function Uo(e,t){var n=new DOMParser,i=n.parseFromString(t,"application/xml"),r=zo(i,"Worksheet"),o=[],a=[];if(r.length){var l=zo(r[0],"Table");if(l.length){var c=zo(l[0],"Row");c.length&&(s.a.arrayEach(zo(c[0],"Cell"),(function(e){a.push(e.textContent)})),s.a.arrayEach(c,(function(e,t){if(t){var n={},i=zo(e,"Cell");s.a.arrayEach(i,(function(e,t){a[t]&&(n[a[t]]=e.textContent)})),o.push(n)}})))}}return{fields:a,rows:o}}function qo(e,t){var n=[];return e.forEach((function(e){var t=e.property;t&&n.push(t)})),n.every((function(e){return t.indexOf(e)>-1}))}function Go(e,t,n){var i=e.tableFullColumn,r=e._importResolve,o={fields:[],rows:[]};switch(n.type){case"csv":o=$o(i,t);break;case"txt":o=Wo(i,t);break;case"html":o=Ho(i,t);break;case"xml":o=Uo(i,t);break}var a=o,s=a.fields,l=a.rows,c=qo(i,s);c?(e.createData(l).then((function(t){"insert"===n.mode?e.insert(t):e.reloadData(t)})),!1!==n.message&&it.modal.message({message:u.i18n("vxe.table.impSuccess",[l.length]),status:"success"})):!1!==n.message&&it.modal.message({message:u.i18n("vxe.error.impFields"),status:"error"}),r&&(r(c),e._importResolve=null)}function Ko(){Yr&&Yr.parentNode&&Yr.parentNode.removeChild(Yr)}function Yo(e,t,n){var i=t.beforePrintMethod;i&&(n=i({content:n,options:t,$table:e})||""),n=Ao(t,n);var r=bo(n,t);if($.browse.msie){if(Yr){try{Yr.contentDocument.write(""),Yr.contentDocument.clear()}catch(o){}document.body.removeChild(Yr)}Yr=vo(),document.body.appendChild(Yr),Yr.contentDocument.write(n),Yr.contentDocument.execCommand("print")}else Yr||(Yr=vo(),Yr.onload=function(e){e.target.src&&(e.target.contentWindow.onafterprint=Ko,e.target.contentWindow.print())}),Yr.parentNode||document.body.appendChild(Yr),Yr.src=URL.createObjectURL(r)}var Xo={methods:{_exportCsv:function(e){return N.warn("vxe.error.delFunc",["exportCsv","exportData"]),this.exportData(e)},_exportData:function(e){var t=this,n=this.$xegrid,i=this.visibleColumn,r=this.tableFullColumn,o=this.afterFullData,a=this.treeConfig,l=this.treeOpts,c=this.exportOpts,d=e&&e.columns,h=[];d&&d.length?d.forEach((function(e){var n;if(e){if(N.isColumn(e))n=e;else if(s.a.isString(e))n=t.getColumnByField(e);else{var i=e.type,o=e.property||e.field;o&&i?n=r.find((function(e){return e.property===o&&e.type===i})):o?n=t.getColumnByField(o):i&&(n=r.find((function(e){return e.type===i})))}n&&h.push(n)}})):h=i;var f=Object.assign({isHeader:!0,isFooter:!0,download:!0,type:"csv",mode:"current",columnFilterMethod:d&&d.length?null:function(e){var t=e.column;return wo(t)}},c,{print:!1},e,{columns:h});if(f.filename||(f.filename=u.i18n(f.original?"vxe.table.expOriginFilename":"vxe.table.expFilename",[s.a.toDateString(Date.now(),"yyyyMMddHHmmss")])),f.sheetName||(f.sheetName=document.title),-1===it.exportTypes.indexOf(f.type))throw new Error(N.getLog("vxe.error.notType",[f.type]));if(!f.data)if(f.data=o,"selected"===f.mode){var p=this.getCheckboxRecords();["html","pdf"].indexOf(f.type)>-1&&a?f.data=s.a.searchTree(this.getTableData().fullData,(function(e){return p.indexOf(e)>-1}),l):f.data=p}else if("all"===f.mode&&n&&!f.remote){var g=n.proxyOpts,m=g.beforeQueryAll,v=g.afterQueryAll,b=g.ajax,y=void 0===b?{}:b,_=g.props,w=void 0===_?{}:_,x=y.queryAll;if(x){var C={$table:this,$grid:n,sort:n.sortData,filters:n.filterData,form:n.formData,target:x,options:f};return Promise.resolve((m||x)(C)).catch((function(e){return e})).then((function(e){return f.data=(w.list?s.a.get(e,w.list):e)||[],v&&v(C),Bo(t,f)}))}}return Bo(this,f)},_importByFile:function(e,t){var n=this;if(window.FileReader){var i=N.parseFile(e),r=i.type,o=i.filename,a=Object.assign({mode:"insert"},t,{type:r,filename:o}),s=a.types||it.importTypes;if(s.indexOf(r)>-1){if(a.remote){var l={file:e,options:a,$table:this};return a.importMethod?a.importMethod(l):Promise.resolve(l)}this.preventEvent(null,"event.import",{file:e,options:a,columns:this.tableFullColumn},(function(){var t=new FileReader;t.onerror=function(){N.error("vxe.error.notType",[r])},t.onload=function(e){Go(n,e.target.result.trim(),a)},t.readAsText(e,"UTF-8")}))}else N.error("vxe.error.notType",[r])}else N.error("vxe.error.notExp");return Promise.resolve()},_importData:function(e){var t=this,n=Object.assign({types:it.importTypes},this.importOpts,e),i=new Promise((function(e,n){var i=function(n){e(n),t._importResolve=null,t._importReject=null},r=function(e){n(e),t._importResolve=null,t._importReject=null};t._importResolve=i,t._importReject=r}));return this.readFile(n).then((function(e){var i=e.file;t.importByFile(i,n)})).catch((function(e){t._importReject(e),t._importReject=null})),i},_saveFile:function(e){return Fo(e)},_readFile:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Gr||(Gr=document.createElement("form"),Kr=document.createElement("input"),Gr.className="vxe-table--file-form",Kr.name="file",Kr.type="file",Gr.appendChild(Kr),document.body.appendChild(Gr));var n=t.types||[],i=!n.length||n.some((function(e){return"*"===e}));return Kr.multiple=!!t.multiple,Kr.accept=i?"":".".concat(n.join(", .")),Kr.onchange=function(r){var o,a=r.target.files,l=a[0];if(!i)for(var c=0;c<a.length;c++){var d=N.parseFile(a[c]),h=d.type;if(!s.a.includes(n,h)){o=h;break}}o?(!1!==t.message&&it.modal.message({message:s.a.template(u.i18n("vxe.error.notType"),[o]),status:"error"}),e._fileReject({files:a,file:l})):e._fileResolve({files:a,file:l,target:r.target}),e._fileResolve=null},Gr.reset(),Kr.click(),new Promise((function(t,n){e._fileResolve=t,e._fileReject=n}))},_print:function(e){var t=this,n=Object.assign({original:!1},this.printOpts,e,{type:"html",download:!1,remote:!1,print:!0});n.sheetName||(n.sheetName=document.title),n.content?Yo(this,n,n.content):this.exportData(n).then((function(e){var i=e.content;Yo(t,n,i)}))},_openImport:function(e){var t=Object.assign({mode:"insert",message:!0},e,this.importOpts),n=t.types||it.exportTypes,i=!!this.getTreeStatus();if(i)t.message&&it.modal.message({message:u.i18n("vxe.error.treeNotImp"),status:"error"});else{this.importConfig||N.error("vxe.error.reqProp",["import-config"]);var r=n.map((function(e){return{value:e,label:"vxe.export.types.".concat(e)}})),o=t.modes.map((function(e){return{value:e,label:"vxe.import.modes.".concat(e)}}));Object.assign(this.importStore,{file:null,type:"",filename:"",modeList:o,typeList:r,visible:!0}),Object.assign(this.importParams,t)}},_openExport:function(e){var t=this.$toolbar,n=this.exportConfig,i=this.customOpts,r=this.exportOpts,o=this.collectColumn,a=this.footerTableData,l=this.getCheckboxRecords(),c=!!a.length,u=Object.assign({message:!0,isHeader:!0},r,e),d=u.types||it.exportTypes,h=i.checkMethod||(t?t.customOpts.checkMethod:null),f=o.slice(0),p=u.columns;n||N.error("vxe.error.reqProp",["export-config"]);var g=d.map((function(e){return{value:e,label:"vxe.export.types.".concat(e)}})),m=u.modes.map((function(e){return{value:e,label:"vxe.export.modes.".concat(e)}}));return s.a.eachTree(f,(function(e,t,n,i,r){var o=e.children&&e.children.length;(o||wo(e))&&(e.checked=p?p.some((function(t){if(N.isColumn(t))return e===t;if(s.a.isString(t))return e.field===t;var n=t.id,i=t.type,r=t.property||t.field;return n?e.id===n:r&&i?e.property===r&&e.type===i:r?e.property===r:i?e.type===i:void 0})):e.visible,e.halfChecked=!1,e.disabled=r&&r.disabled||!!h&&!h({column:e}))})),Object.assign(this.exportStore,{columns:f,typeList:g,modeList:m,hasFooter:c,visible:!0}),Object.assign(this.exportParams,{filename:u.filename||"",sheetName:u.sheetName||"",type:u.type||g[0].value,mode:l.length?"selected":"current",original:u.original,message:u.message,isHeader:u.isHeader,isFooter:c&&(!s.a.isBoolean(r.isFooter)||r.isFooter),isPrint:u.isPrint}),this.$nextTick()}}};function Zo(e){var t=Object.assign({},e,{type:"html"});Yo(null,t,t.content)}var Qo={install:function(e){it.reg("export"),it.saveFile=Fo,it.print=Zo,it.setup({export:{types:{csv:0,html:0,xml:0,txt:0}}}),rn.mixins.push(Xo),e.component(ho.name,ho),e.component(fo.name,fo)}},Jo=Qo,ea=$.browse;function ta(e,t){var n=0,i=0,r=!ea.firefox&&$.hasClass(e,"vxe-checkbox--label");if(r){var o=getComputedStyle(e);n-=s.a.toNumber(o.paddingTop),i-=s.a.toNumber(o.paddingLeft)}while(e&&e!==t)if(n+=e.offsetTop,i+=e.offsetLeft,e=e.offsetParent,r){var a=getComputedStyle(e);n-=s.a.toNumber(a.paddingTop),i-=s.a.toNumber(a.paddingLeft)}return{offsetTop:n,offsetLeft:i}}function na(e,t,n,i){var r=0,o=[],a=i>0,s=i>0?i:Math.abs(i)+n.offsetHeight,l=e.afterFullData,c=e.scrollYStore,u=e.scrollYLoad;if(u){var d=e.getVTRowIndex(t.row);o=a?l.slice(d,d+Math.ceil(s/c.rowHeight)):l.slice(d-Math.floor(s/c.rowHeight)+1,d+1)}else{var h=a?"next":"previous";while(n&&r<s)o.push(e.getRowNode(n).item),r+=n.offsetHeight,n=n["".concat(h,"ElementSibling")]}return o}var ia={methods:{moveTabSelected:function(e,t,n){var i,r,o,a,s=this,l=this.afterFullData,c=this.visibleColumn,u=this.editConfig,d=this.editOpts,h=this.isSeqColumn,f=Object.assign({},e),p=l.indexOf(f.row),g=c.indexOf(f.column);if(n.preventDefault(),t){for(var m=g-1;m>=0;m--)if(!h(c[m])){a=m,o=c[m];break}if(!o&&p>0){r=p-1,i=l[r];for(var v=c.length-1;v>=0;v--)if(!h(c[v])){a=v,o=c[v];break}}}else{for(var b=g+1;b<c.length;b++)if(!h(c[b])){a=b,o=c[b];break}if(!o&&p<l.length-1){r=p+1,i=l[r];for(var y=0;y<c.length;y++)if(!h(c[y])){a=y,o=c[y];break}}}o&&(i?(f.rowIndex=r,f.row=i):f.rowIndex=p,f.columnIndex=a,f.column=o,f.cell=this.getCell(f.row,f.column),u&&("click"!==d.trigger&&"dblclick"!==d.trigger||("row"===d.mode?this.handleActived(f,n):this.scrollToRow(f.row,f.column).then((function(){return s.handleSelected(f,n)})))))},moveCurrentRow:function(e,t,n){var i,r=this,o=this.currentRow,a=this.treeConfig,l=this.treeOpts,c=this.afterFullData;if(n.preventDefault(),o)if(a){var u=s.a.findTree(c,(function(e){return e===o}),l),d=u.index,h=u.items;e&&d>0?i=h[d-1]:t&&d<h.length-1&&(i=h[d+1])}else{var f=this.getVTRowIndex(o);e&&f>0?i=c[f-1]:t&&f<c.length-1&&(i=c[f+1])}else i=c[0];if(i){var p={$table:this,row:i};this.scrollToRow(i).then((function(){return r.triggerCurrentRowEvent(n,p)}))}},moveSelected:function(e,t,n,i,r,o){var a=this,s=this.afterFullData,l=this.visibleColumn,c=this.isSeqColumn,u=Object.assign({},e),d=this.getVTRowIndex(u.row),h=this.getVTColumnIndex(u.column);if(o.preventDefault(),n&&d>0)u.rowIndex=d-1,u.row=s[u.rowIndex];else if(r&&d<s.length-1)u.rowIndex=d+1,u.row=s[u.rowIndex];else if(t&&h){for(var f=h-1;f>=0;f--)if(!c(l[f])){u.columnIndex=f,u.column=l[f];break}}else if(i)for(var p=h+1;p<l.length;p++)if(!c(l[p])){u.columnIndex=p,u.column=l[p];break}this.scrollToRow(u.row,u.column).then((function(){u.cell=a.getCell(u.row,u.column),a.handleSelected(u,o)}))},triggerHeaderCellMousedownEvent:function(e,t){var n=this.mouseConfig,i=this.mouseOpts,r=e.currentTarget,o=$.getEventTargetNode(e,r,"vxe-cell--sort").flag,a=$.getEventTargetNode(e,r,"vxe-cell--filter").flag;n&&i.area&&this.handleHeaderCellAreaEvent?this.handleHeaderCellAreaEvent(e,Object.assign({cell:r,triggerSort:o,triggerFilter:a},t)):n&&i.checked&&this.handleHeaderCellCheckedEvent(e,Object.assign({cell:r,triggerSort:o,triggerFilter:a},t)),this.focus(),this.closeMenu()},triggerCellMousedownEvent:function(e,t){var n=e.currentTarget;t.cell=n,this.handleCellMousedownEvent(e,t),this.focus(),this.closeFilter(),this.closeMenu()},handleCellMousedownEvent:function(e,t){var n=this.mouseConfig,i=this.mouseOpts,r=this.checkboxConfig,o=this.checkboxOpts,a=this.editConfig,s=this.editOpts,l=t.column;n&&i.area&&this.handleCellAreaEvent?this.handleCellAreaEvent(e,t):n&&i.checked?this.handleCheckedRangeEvent(e,t):(r&&o.range&&this.handleCheckboxRangeEvent(e,t),n&&i.selected&&("seq"===l.type||"index"===l.type||a&&"cell"!==s.mode||this.handleSelected(t,e)))},handleHeaderCellCheckedEvent:function(e,t){var n=this.$el,i=this.tableData,r=this.mouseConfig,o=this.mouseOpts,a=this.elemStore,l=this.handleChecked,c=this.handleHeaderChecked,u=e.button,d=t.column,h=e.currentTarget,f=0===u,p="seq"===d.type||"index"===d.type;if(r&&o.checked){var g=a["main-header-list"].children,m=a["main-body-list"].children;if(p)this.handleAllChecked(e);else{this.clearSelected(e),this.clearHeaderChecked(),this.clearIndexChecked();var v=m[0].querySelector(".".concat(d.id));if(f){var b=document.onmousemove,y=document.onmouseup,_=s.a.throttle((function(e){var t=$.getEventTargetNode(e,n,"vxe-header--column"),i=t.flag,r=t.targetElem;if(!i){var o=$.getEventTargetNode(e,n,"vxe-body--column");i=o.flag,r=o.targetElem}if(i&&!$.hasClass(r,"col--seq")){var a=[].indexOf.call(r.parentNode.children,r),s=m[m.length-1].children[a],u=g[0].children[a];c($.getRowNodes(g,$.getCellNodeIndex(u),$.getCellNodeIndex(h))),l($.getRowNodes(m,$.getCellNodeIndex(v),$.getCellNodeIndex(s)))}}),80,{leading:!0,trailing:!0});$.addClass(n,"c--checked"),document.onmousemove=function(e){e.preventDefault(),e.stopPropagation(),_(e)},document.onmouseup=function(){$.removeClass(n,"c--checked"),document.onmousemove=b,document.onmouseup=y}}if(c([[h]]),m.length){var w=m[m.length-1].querySelector(".".concat(d.id)),x=m[0],C=m[m.length-1],S=x.querySelector(".col--seq");t.rowIndex=0,t.row=i[0],t.cell=this.getCell(t.row,t.column),this.handleSelected(t,e),this.handleIndexChecked($.getRowNodes(m,$.getCellNodeIndex(S),$.getCellNodeIndex(C.querySelector(".col--seq")))),this.handleChecked($.getRowNodes(m,$.getCellNodeIndex(v),$.getCellNodeIndex(w)))}}}},getCheckboxRangeRows:function(e,t){var n=0,i=[],r=t>0?"next":"previous",o=t>0?t:Math.abs(t)+e.offsetHeight;while(e&&n<o)i.push(this.getRowNode(e).item),n+=e.offsetHeight,e=e["".concat(r,"ElementSibling")];return i},handleCheckedRangeEvent:function(e,t){var n=this,i=this.$el,r=this.visibleColumn,o=this.editStore,a=this.mouseOpts,l=this.elemStore,c=o.checked,u=t.column,d=e.button,h=e.currentTarget,f=0===d,p="seq"===u.type||"index"===u.type;this.clearHeaderChecked(),this.clearIndexChecked();var g=l["main-body-list"].children,m=l["main-header-list"].children,v=h.parentNode.lastElementChild,b=h.parentNode.firstElementChild;if(f){var y=document.onmousemove,_=document.onmouseup,w=$.getCellNodeIndex(h),x=[].indexOf.call(h.parentNode.children,h),C=m[0].children[x],S=s.a.throttle((function(e){var t=$.getEventTargetNode(e,i,"vxe-body--column"),r=t.flag,o=t.targetElem;if(r)if(p){var a=o.parentNode.firstElementChild;n.handleChecked($.getRowNodes(g,$.getCellNodeIndex(a.nextElementSibling),$.getCellNodeIndex(v))),n.handleIndexChecked($.getRowNodes(g,$.getCellNodeIndex(a),$.getCellNodeIndex(h)))}else if(!$.hasClass(o,"col--seq")){var s=o.parentNode.firstElementChild,l=[].indexOf.call(o.parentNode.children,o),c=m[0].children[l];n.handleHeaderChecked($.getRowNodes(m,$.getCellNodeIndex(c),$.getCellNodeIndex(C))),n.handleIndexChecked($.getRowNodes(g,$.getCellNodeIndex(s),$.getCellNodeIndex(b))),n.handleChecked($.getRowNodes(g,w,$.getCellNodeIndex(o)))}}),80,{leading:!0,trailing:!0});document.onmousemove=function(e){e.preventDefault(),e.stopPropagation(),S(e)},document.onmouseup=function(){document.onmousemove=y,document.onmouseup=_}}if(p){var k=h.parentNode.firstElementChild;t.columnIndex++,t.column=r[t.columnIndex],t.cell=h.nextElementSibling,this.handleSelected(t,e),this.handleChecked($.getRowNodes(g,$.getCellNodeIndex(k.nextElementSibling),$.getCellNodeIndex(v))),this.handleHeaderChecked([m[0].querySelectorAll(".vxe-header--column:not(.col--seq)")]),this.handleIndexChecked($.getRowNodes(g,$.getCellNodeIndex(k),$.getCellNodeIndex(h)))}else if(f){var O=h.parentNode.firstElementChild;this.handleSelected(t,e),this.handleHeaderChecked([[m[0].querySelector(".".concat(u.id))]]),this.handleIndexChecked([[O]])}else a.selected&&(c.rowNodes&&c.rowNodes.some((function(e){return e.indexOf(h)>-1}))||this.handleSelected(t,e))},handleCheckboxRangeEvent:function(e,t){var n=this,i=t.column,r=t.cell,o=0===e.button;if(o&&["checkbox","selection"].indexOf(i.type)>-1){var a=this.$el,s=this.elemStore,l=e.clientX,c=e.clientY,u=s["".concat(i.fixed||"main","-body-wrapper")]||s["main-body-wrapper"],d=u.querySelector(".vxe-table--checkbox-range"),h=document.onmousemove,f=document.onmouseup,p=r.parentNode,g=this.getCheckboxRecords(),m=[],v=1,b=ta(e.target,u),y=b.offsetTop+e.offsetY,_=b.offsetLeft+e.offsetX,w=u.scrollTop,x=p.offsetHeight,C=null,S=!1,k=1,O=function(e,t){n.emitEvent("checkbox-range-".concat(e),{records:n.getCheckboxRecords(),reserves:n.getCheckboxReserveRecords()},t)},M=function(e){var i=e.clientX,r=e.clientY,o=i-l,a=r-c+(u.scrollTop-w),s=Math.abs(a),h=Math.abs(o),f=y,b=_;a<v?(f+=a,f<v&&(f=v,s=y)):s=Math.min(s,u.scrollHeight-y-v),o<v?(b+=o,h>_&&(b=v,h=_)):h=Math.min(h,u.clientWidth-_-v),d.style.height="".concat(s,"px"),d.style.width="".concat(h,"px"),d.style.left="".concat(b,"px"),d.style.top="".concat(f,"px"),d.style.display="block";var x=na(n,t,p,a<v?-s:s);s>10&&x.length!==m.length&&(m=x,e.ctrlKey?x.forEach((function(e){n.handleSelectRow({row:e},-1===g.indexOf(e))})):(n.setAllCheckboxRow(!1),n.setCheckboxRow(x,!0)),O("change",e))},D=function(){clearTimeout(C),C=null},E=function e(t){D(),C=setTimeout((function(){if(C){var i=u.scrollLeft,r=u.scrollTop,o=u.clientHeight,a=u.scrollHeight,s=Math.ceil(50*k/x);S?r+o<a?(n.scrollTo(i,r+s),e(t),M(t)):D():r?(n.scrollTo(i,r-s),e(t),M(t)):D()}}),50)};$.addClass(a,"drag--area"),document.onmousemove=function(e){e.preventDefault(),e.stopPropagation();var t=e.clientY,n=$.getAbsolutePos(u),i=n.boundingTop;t<i?(S=!1,k=i-t,C||E(e)):t>i+u.clientHeight?(S=!0,k=t-i-u.clientHeight,C||E(e)):C&&D(),M(e)},document.onmouseup=function(e){D(),$.removeClass(a,"drag--area"),d.removeAttribute("style"),document.onmousemove=h,document.onmouseup=f,O("end",e)},O("start",e)}},_clearChecked:function(){var e=this.$refs,t=this.editStore,n=this.mouseConfig,i=this.mouseOpts,r=t.checked;if(n&&i.checked){var o=e.tableBody;r.rows=[],r.columns=[],r.tRows=[],r.tColumns=[];var a=o.$refs.checkBorders;a.style.display="none",s.a.arrayEach(o.$el.querySelectorAll(".col--checked"),(function(e){return $.removeClass(e,"col--checked")}))}return this.$nextTick()},_getMouseSelecteds:function(){return N.warn("vxe.error.delFunc",["getMouseSelecteds","getSelectedCell"]),this.getSelectedCell()},_getMouseCheckeds:function(){return this.getSelectedRanges()},_getSelectedCell:function(){var e=this.editStore.selected,t=e.args,n=e.column;return t&&n?Object.assign({},t):null},_getSelectedRanges:function(){var e=this,t=this.editStore.checked,n=t.rowNodes,i=void 0===n?[]:n,r=[],o=[];return i&&i.length&&(o=i.map((function(t){return e.getRowNode(t[0].parentNode).item})),r=i[0].map((function(t){return e.getColumnNode(t).item}))),{columns:r,rows:o,rowNodes:i}},handleChecked:function(e){var t=this.editStore.checked;this.clearChecked();var n=-2,i=-2,r=0,o=0;s.a.arrayEach(e,(function(e,t){var a=0===t;s.a.arrayEach(e,(function(e,t){var s=0===t;s&&a&&(r=e.offsetTop,o=e.offsetLeft),a&&(n+=e.offsetWidth),s&&(i+=e.offsetHeight),$.addClass(e,"col--checked")}))}));var a=this.$refs.tableBody.$refs,l=a.checkBorders,c=a.checkTop,u=a.checkRight,d=a.checkBottom,h=a.checkLeft;l.style.display="block",Object.assign(c.style,{top:"".concat(r,"px"),left:"".concat(o,"px"),width:"".concat(n,"px")}),Object.assign(u.style,{top:"".concat(r,"px"),left:"".concat(o+n,"px"),height:"".concat(i,"px")}),Object.assign(d.style,{top:"".concat(r+i,"px"),left:"".concat(o,"px"),width:"".concat(n,"px")}),Object.assign(h.style,{top:"".concat(r,"px"),left:"".concat(o,"px"),height:"".concat(i,"px")}),t.rowNodes=e},handleAllChecked:function(e){var t=this.tableData,n=this.visibleColumn,i=this.mouseConfig,r=this.mouseOpts,o=this.elemStore;if(i&&r.checked){e.preventDefault();var a=o["main-header-list"],l=a.children,c=o["main-body-list"].children,u=s.a.find(n,(function(e){return"seq"===e.type||"index"===e.type}))||n[0],d=a.querySelector(".".concat(u.id)),h=c[0],f=c[c.length-1],p=h.querySelector(".".concat(u.id)),g={$table:this,rowIndex:0,row:t[0],column:s.a.find(n,(function(e){return e.property}))};g.columnIndex=this.getColumnIndex(g.column),g.cell=this.getCell(g.row,g.column),this.handleSelected(g,e),this.handleHeaderChecked($.getRowNodes(l,$.getCellNodeIndex(d.nextElementSibling),$.getCellNodeIndex(d.parentNode.lastElementChild))),this.handleIndexChecked($.getRowNodes(c,$.getCellNodeIndex(p),$.getCellNodeIndex(f.querySelector(".".concat(u.id))))),this.handleChecked($.getRowNodes(c,$.getCellNodeIndex(p.nextElementSibling),$.getCellNodeIndex(f.lastElementChild)))}},handleIndexChecked:function(e){var t=this.editStore.indexs;this.clearIndexChecked(),s.a.arrayEach(e,(function(e){s.a.arrayEach(e,(function(e){$.addClass(e,"col--seq-checked")}))})),t.rowNodes=e},_clearIndexChecked:function(){var e=this.elemStore,t=e["main-body-list"];return s.a.arrayEach(t.querySelectorAll(".col--seq-checked"),(function(e){return $.removeClass(e,"col--seq-checked")})),this.$nextTick()},handleHeaderChecked:function(e){var t=this.editStore.titles;this.clearHeaderChecked(),s.a.arrayEach(e,(function(e){s.a.arrayEach(e,(function(e){$.addClass(e,"col--title-checked")}))})),t.rowNodes=e},_clearHeaderChecked:function(){var e=this.elemStore,t=e["main-header-list"];return t&&s.a.arrayEach(t.querySelectorAll(".col--title-checked"),(function(e){return $.removeClass(e,"col--title-checked")})),this.$nextTick()},_clearCopyed:function(){var e=this.$refs,t=this.editStore,n=this.keyboardConfig,i=t.copyed;if(n&&n.isCut){var r=e.tableBody,o=e.tableBody.$refs.copyBorders;i.cut=!1,i.rows=[],i.columns=[],o.style.display="none",s.a.arrayEach(r.$el.querySelectorAll(".col--copyed"),(function(e){return $.removeClass(e,"col--copyed")}))}return this.$nextTick()},handleCopyed:function(e){var t=this.tableData,n=this.tableColumn,i=this.editStore,r=i.copyed,o=i.checked,a=o.rowNodes;this.clearCopyed();var l=-3,c=-3,u=0,d=0,h=[],f=[];if(a.length){var p=a[0],g=$.getCellNodeIndex(p[0]),m=g.rowIndex,v=g.columnIndex;h=n.slice(v,v+p.length),f=t.slice(m,m+a.length)}s.a.arrayEach(a,(function(e,t){var n=0===t;s.a.arrayEach(e,(function(e,t){var i=0===t;i&&n&&(u=e.offsetTop,d=e.offsetLeft),n&&(l+=e.offsetWidth),i&&(c+=e.offsetHeight),$.addClass(e,"col--copyed")}))}));var b=this.$refs.tableBody.$refs,y=b.copyBorders,_=b.copyTop,w=b.copyRight,x=b.copyBottom,C=b.copyLeft;y.style.display="block",Object.assign(_.style,{top:"".concat(u,"px"),left:"".concat(d,"px"),width:"".concat(l,"px")}),Object.assign(w.style,{top:"".concat(u,"px"),left:"".concat(d+l,"px"),height:"".concat(c,"px")}),Object.assign(x.style,{top:"".concat(u+c,"px"),left:"".concat(d,"px"),width:"".concat(l,"px")}),Object.assign(C.style,{top:"".concat(u,"px"),left:"".concat(d,"px"),height:"".concat(c,"px")}),r.cut=e,r.rows=f,r.columns=h,r.rowNodes=a},handlePaste:function(){var e=this.tableData,t=this.visibleColumn,n=this.editStore,i=this.elemStore,r=n.copyed,o=n.selected,a=r.cut,l=r.rows,c=r.columns;if(l.length&&c.length&&o.row&&o.column){var u=o.args,d=u.rowIndex,h=u.columnIndex;s.a.arrayEach(l,(function(n,i){var r=e[d+i];r&&s.a.arrayEach(c,(function(e,i){var o=t[h+i];o&&N.setCellValue(r,o,N.getCellValue(n,e)),a&&N.setCellValue(n,e,null)}))})),a&&this.clearCopyed();var f=i["main-body-list"].children,p=o.args.cell,g=p.parentNode,m=s.a.arrayIndexOf(g.children,p),v=s.a.arrayIndexOf(f,g),b=f[v+l.length-1],y=b.children[m+c.length-1];this.handleChecked($.getRowNodes(f,$.getCellNodeIndex(p),$.getCellNodeIndex(y)))}}}},ra={install:function(){it.reg("keyboard"),rn.mixins.push(ia)}},oa=ra,aa=function(){function e(t){x(this,e),Object.assign(this,{$options:t,required:t.required,min:t.min,max:t.max,type:t.type,pattern:t.pattern,validator:t.validator,trigger:t.trigger,maxWidth:t.maxWidth})}return S(e,[{key:"content",get:function(){return N.getFuncText(this.$options.content||this.$options.message)}},{key:"message",get:function(){return this.content}}]),e}(),sa={methods:{_fullValidate:function(e,t){return this.beginValidate(e,t,!0)},_validate:function(e,t){return this.beginValidate(e,t)},handleValidError:function(e){var t=this;!1===this.validOpts.autoPos?this.emitEvent("valid-error",e):this.handleActived(e,{type:"valid-error",trigger:"call"}).then((function(){return setTimeout((function(){return t.showValidTooltip(e)}),10)}))},beginValidate:function(e,t,n){var i,r=this,o={},a=this.editRules,l=this.afterFullData,c=this.treeConfig,d=this.treeOpts;!0===e?i=l:e&&(s.a.isFunction(e)?t=e:i=s.a.isArray(e)?e:[e]),i||(i="obsolete"===u.validFullData?l:this.getInsertRecords().concat(this.getUpdateRecords()));var h=!0,f=[];if(this.lastCallTime=Date.now(),this.validRuleErr=!1,this.clearValidate(),a){var p=this.getColumns(),g=function(e){if(n||!r.validRuleErr){var t=[];p.forEach((function(i){!n&&r.validRuleErr||!s.a.has(a,i.property)||t.push(r.validCellRules("all",e,i).catch((function(t){var a=t.rule,s=t.rules,l={rule:a,rules:s,rowIndex:r.getRowIndex(e),row:e,columnIndex:r.getColumnIndex(i),column:i,$table:r};if(o[i.property]||(o[i.property]=[]),o[i.property].push(l),!n)return r.validRuleErr=!0,Promise.reject(l)})))})),f.push(Promise.all(t))}};return c?s.a.eachTree(i,g,d):i.forEach(g),Promise.all(f).then((function(){var e=Object.keys(o);return r.$nextTick().then((function(){if(e.length)return Promise.reject(o[e[0]][0]);t&&("obsolete"===u.validArgs?t(h):t())}))})).catch((function(e){return new Promise((function(n,i){var a=function(){r.$nextTick((function(){h=!1,t?("obsolete"===u.validArgs?t(h,o):t(o),n()):i(o)}))},s=function(){e.cell=r.getCell(e.row,e.column),$.toView(e.cell),r.handleValidError(e),a()},d=e.row,f=l.indexOf(d),p=f>0?l[f-1]:d;!1===r.validOpts.autoPos?a():c?r.scrollToTreeRow(p).then(s):r.scrollToRow(p).then(s)}))}))}return this.$nextTick().then((function(){t&&("obsolete"===u.validArgs?t(h):t())}))},hasCellRules:function(e,t,n){var i=this.editRules,r=n.property;if(r&&i){var o=s.a.get(i,r);return o&&s.a.find(o,(function(t){return"all"===e||!t.trigger||e===t.trigger}))}return!1},validCellRules:function(e,t,n,i){var r=this,o=this.editRules,a=n.property,l=[],c=[];if(a&&o){var d=s.a.get(o,a);if(d){var h=s.a.isUndefined(i)?s.a.get(t,a):i;d.forEach((function(i){if("all"===e||!i.trigger||e===i.trigger)if(s.a.isFunction(i.validator)){var o;o="obsolete"===u.validArgs?new Promise((function(e){i.validator(i,h,(function(t){s.a.isError(t)&&(r.validRuleErr=!0,l.push(new aa({type:"custom",trigger:i.trigger,message:t.message,rule:new aa(i)}))),e()}),{rule:i,rules:d,row:t,column:n,rowIndex:r.getRowIndex(t),columnIndex:r.getColumnIndex(n),$table:r})})):i.validator({cellValue:h,rule:i,rules:d,row:t,rowIndex:r.getRowIndex(t),column:n,columnIndex:r.getColumnIndex(n),$table:r}),o&&(s.a.isError(o)?(r.validRuleErr=!0,l.push(new aa({type:"custom",trigger:i.trigger,message:o.message,rule:new aa(i)}))):o.catch&&c.push(o.catch((function(e){r.validRuleErr=!0,l.push(new aa({type:"custom",trigger:i.trigger,message:e&&e.message?e.message:i.content||i.message,rule:new aa(i)}))}))))}else{var a="number"===i.type,f="array"===i.type,p=a?s.a.toNumber(h):s.a.getSize(h);!i.required||(f?s.a.isArray(h)&&h.length:null!==h&&void 0!==h&&""!==h)?(a&&isNaN(h)||!isNaN(i.min)&&p<parseFloat(i.min)||!isNaN(i.max)&&p>parseFloat(i.max)||i.pattern&&!(i.pattern.test?i.pattern:new RegExp(i.pattern)).test(h))&&(r.validRuleErr=!0,l.push(new aa(i))):(r.validRuleErr=!0,l.push(new aa(i)))}}))}}return Promise.all(c).then((function(){if(l.length){var e={rules:l,rule:l[0]};return Promise.reject(e)}}))},_clearValidate:function(){var e=this.$refs.validTip;return Object.assign(this.validStore,{visible:!1,row:null,column:null,content:"",rule:null}),e&&e.visible&&e.close(),this.$nextTick()},triggerValidate:function(e){var t=this,n=this.editConfig,i=this.editStore,r=this.editRules,o=this.validStore,a=i.actived;if(a.row&&r){var s=a.args,l=s.row,c=s.column,u=s.cell;if(this.hasCellRules(e,l,c))return this.validCellRules(e,l,c).then((function(){"row"===n.mode&&o.visible&&o.row===l&&o.column===c&&t.clearValidate()})).catch((function(n){var i=n.rule;if(!i.trigger||e===i.trigger){var r={rule:i,row:l,column:c,cell:u};return t.showValidTooltip(r),Promise.reject(r)}return Promise.resolve()}))}return Promise.resolve()},showValidTooltip:function(e){var t=this,n=this.$refs,i=this.height,r=this.tableData,o=this.validOpts,a=e.rule,s=e.row,l=e.column,c=e.cell,u=n.validTip,d=a.message;this.$nextTick((function(){Object.assign(t.validStore,{row:s,column:l,rule:a,content:d,visible:!0}),u&&("tooltip"===o.message||"default"===o.message&&!i&&r.length<2)&&u.open(c,d),t.emitEvent("valid-error",e)}))}}},la={install:function(){it.reg("valid"),rn.mixins.push(sa)}},ca=la,ua={install:function(){}},da=ua,ha={vxe:{error:{groupFixed:"如果使用分组表头,固定列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',scrollXNotGroup:'横向虚拟滚动不支持分组表头,需要设置 "scroll-x.enabled=false" 参数,否则可能会导致出现错误',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',notProp:'不支持的参数 "{0}"',coverProp:'"{0}" 的参数 "{1}" 被覆盖,这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入"},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sortAsc:"升序",sortDesc:"降序",fixedColumn:"锁定列",fixedGroup:"锁定组",cancelFixed:"取消锁定",fixedLeft:"锁定左侧",fixedRight:"锁定右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"当前列:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"#",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{emptyText:"暂无数据"},pager:{goto:"前往",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",prevPage:"上一页",nextPage:"下一页",prevJump:"向上跳页",nextJump:"向下跳页"},alert:{title:"消息提示"},button:{confirm:"确认",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开层级",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"还原",close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"还原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}},fa=[un,mn,wn,kn,Dn,Vn,Un,Zn,ei,ri,ci,ji,Vi,Hi,sr,dr,xr,Zr,to,ro,so,uo,Jo,oa,ca,da,rn];function pa(e,t){s.a.isPlainObject(t)&&it.setup(t),fa.map((function(t){return t.install(e)}))}it.setup({i18n:s.a.toFormatString?function(e,t){return s.a.toFormatString(s.a.get(ha,e),t)}:function(e,t){return s.a.template(s.a.get(ha,e),t,{tmplRE:/\{([.\w[\]\s]+)\}/g})}}),it.install=pa,"undefined"!==typeof window&&window.Vue&&window.Vue.use&&window.Vue.use(it);var ga=it,ma=ga;t["default"]=ma},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("861d"),o=n("e8b5"),a=n("23cb"),s=n("50c4"),l=n("fc6a"),c=n("8418"),u=n("b622"),d=n("1dde"),h=n("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=u("species"),m=[].slice,v=Math.max;i({target:"Array",proto:!0,forced:!f||!p},{slice:function(e,t){var n,i,u,d=l(this),h=s(d.length),f=a(e,h),p=a(void 0===t?h:t,h);if(o(d)&&(n=d.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[g],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(d,f,p);for(i=new(void 0===n?Array:n)(v(p-f,0)),u=0;f<p;f++,u++)f in d&&c(i,u,d[f]);return i.length=u,i}})},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("4930");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}})["default"]},a395:function(e,t,n){var i=n("7037")["default"],r=n("e50d");function o(e){var t=r(e,"string");return"symbol"===i(t)?t:String(t)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a3c3:function(e,t,n){var i=n("63b6");i(i.S+i.F,"Object",{assign:n("9306")})},a3de:function(e,t,n){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},a40e:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=r.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],i=0;i<56;i++){var r=a[i]-1;n[i]=t[r>>>5]>>>31-r%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var u=o[c]=[],d=l[c];for(i=0;i<24;i++)u[i/6|0]|=n[(s[i]-1+d)%28]<<31-i%6,u[4+(i/6|0)]|=n[28+(s[i+24]-1+d)%28]<<31-i%6;u[0]=u[0]<<1|u[0]>>>31;for(i=1;i<7;i++)u[i]=u[i]>>>4*(i-1)+3;u[7]=u[7]<<5|u[7]>>>27}var h=this._invSubKeys=[];for(i=0;i<16;i++)h[i]=o[15-i]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var r=n[i],o=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((a^r[l])&u[l])>>>0];this._lBlock=a,this._rBlock=o^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=r._createHelper(d);var p=o.TripleDES=r.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=d.createEncryptor(i.create(t.slice(0,2))),this._des2=d.createEncryptor(i.create(t.slice(2,4))),this._des3=d.createEncryptor(i.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),e.TripleDES}))},a481:function(e,t,n){"use strict";var i=n("cb7c"),r=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("214f")("replace",2,(function(e,t,n,g){return[function(i,r){var o=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(e,t){var r=g(n,e,this,t);if(r.done)return r.value;var d=i(e),h=String(this),f="function"===typeof t;f||(t=String(t));var v=d.global;if(v){var b=d.unicode;d.lastIndex=0}var y=[];while(1){var _=l(d,h);if(null===_)break;if(y.push(_),!v)break;var w=String(_[0]);""===w&&(d.lastIndex=s(h,o(d.lastIndex),b))}for(var x="",C=0,S=0;S<y.length;S++){_=y[S];for(var k=String(_[0]),O=c(u(a(_.index),h.length),0),M=[],D=1;D<_.length;D++)M.push(p(_[D]));var E=_.groups;if(f){var T=[k].concat(M,O,h);void 0!==E&&T.push(E);var L=String(t.apply(void 0,T))}else L=m(k,h,O,M,E,t);O>=C&&(x+=h.slice(C,O)+L,C=O+k.length)}return x+h.slice(C)}];function m(e,t,i,o,a,s){var l=i+e.length,c=o.length,u=f;return void 0!==a&&(a=r(a),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?r.charAt(1):o[h-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},a58e:function(e,t,n){var i=n("7e28"),r=i("round");e.exports=r},a5b8:function(e,t,n){"use strict";var i=n("d8e8");function r(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},a5d8:function(e,t,n){},a69f:function(e,t,n){var i=n("5ca1");i(i.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},a736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeColor",{enumerable:!0,get:function(){return i.mergeColor}}),Object.defineProperty(t,"title",{enumerable:!0,get:function(){return r.title}}),Object.defineProperty(t,"grid",{enumerable:!0,get:function(){return o.grid}}),Object.defineProperty(t,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return s.line}}),Object.defineProperty(t,"bar",{enumerable:!0,get:function(){return l.bar}}),Object.defineProperty(t,"pie",{enumerable:!0,get:function(){return c.pie}}),Object.defineProperty(t,"radarAxis",{enumerable:!0,get:function(){return u.radarAxis}}),Object.defineProperty(t,"radar",{enumerable:!0,get:function(){return d.radar}}),Object.defineProperty(t,"gauge",{enumerable:!0,get:function(){return h.gauge}}),Object.defineProperty(t,"legend",{enumerable:!0,get:function(){return f.legend}});var i=n("8a1d"),r=n("873c"),o=n("46bb"),a=n("0680"),s=n("252f"),l=n("204e"),c=n("729e"),u=n("a143"),d=n("4eb1"),h=n("1f55"),f=n("60f7")},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isString=s,t.isObject=l,t.isHtmlElement=c;var r=n("2b0e"),o=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return e&&e.nodeType===Node.ELEMENT_NODE}var u=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":i(Int8Array))||!o.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=u=function(e){return"function"===typeof e||!1}),t.isFunction=u;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a786:function(e,t,n){var i=n("9398"),r=n("f461"),o=n("32aa"),a=n("3f90"),s=n("248c"),l=n("e42d"),c=n("fcd1"),u=n("a7ca"),d=n("e095"),h=n("8035");function f(e,t,n,i){var r=t[n];return r?d(r)?r(i,n,e):r[i]:i}function p(e){return 0===e?7:e}var g=/\[([^\]]+)]|y{2,4}|M{1,2}|d{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|S{1,3}|Z{1,2}|W{1,2}|D{1,3}|[aAeEq]/g;function m(e,t,n){if(e){if(e=a(e),u(e)){var d=t||i.formatString,m=e.getHours(),v=m<12?"am":"pm",b=c({},i.formatStringMatchs,n?n.formats:null),y=function(t,n){return(""+r(e)).substr(4-n)},_=function(t,n){return h(o(e)+1,n,"0")},w=function(t,n){return h(e.getDate(),n,"0")},x=function(e,t){return h(m,t,"0")},C=function(e,t){return h(m<=12?m:m-12,t,"0")},S=function(t,n){return h(e.getMinutes(),n,"0")},k=function(t,n){return h(e.getSeconds(),n,"0")},O=function(t,n){return h(e.getMilliseconds(),n,"0")},M=function(t,n){var i=e.getTimezoneOffset()/60*-1;return f(e,b,t,(i>=0?"+":"-")+h(i,2,"0")+(1===n?":":"")+"00")},D=function(t,n){return h(f(e,b,t,s(e)),n,"0")},E=function(t,n){return h(f(e,b,t,l(e)),n,"0")},T={yyyy:y,yy:y,MM:_,M:_,dd:w,d:w,HH:x,H:x,hh:C,h:C,mm:S,m:S,ss:k,s:k,SSS:O,S:O,ZZ:M,Z:M,WW:D,W:D,DDD:E,D:E,a:function(t){return f(e,b,t,v)},A:function(t){return f(e,b,t,v.toLocaleUpperCase())},e:function(t){return f(e,b,t,e.getDay())},E:function(t){return f(e,b,t,p(e.getDay()))},q:function(t){return f(e,b,t,Math.floor((o(e)+3)/3))}};return d.replace(g,(function(e,t){return t||(T[e]?T[e](e,e.length):e)}))}return"Invalid Date"}return""}e.exports=m},a7ca:function(e,t,n){var i=n("44c5"),r=n("4e80");function o(e){return i(e)&&!isNaN(r(e))}e.exports=o},a7fe:function(e,t,n){"use strict";var i,r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){function n(e,t){if(!n.installed){if(n.installed=!0,!t)return void console.error("You have to install axios");e.axios=t,Object.defineProperties(e.prototype,{axios:{get:function(){return t}},$http:{get:function(){return t}}})}}"object"==o(t)?e.exports=n:(i=[],r=function(){return n}.apply(t,i),void 0===r||(e.exports=r))}()},a817:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,r=i-n%i,o=n+r-1;e.clamp(),e.words[o>>>2]|=r<<24-o%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}))},a870:function(e,t,n){"use strict";n.r(t),n.d(t,"darken",(function(){return b})),n.d(t,"fade",(function(){return _})),n.d(t,"getColorFromRgbValue",(function(){return v})),n.d(t,"getOpacity",(function(){return f})),n.d(t,"getRgbValue",(function(){return h})),n.d(t,"getRgbaValue",(function(){return p})),n.d(t,"isHex",(function(){return r})),n.d(t,"isRgb",(function(){return o})),n.d(t,"isRgbOrRgba",(function(){return s})),n.d(t,"isRgba",(function(){return a})),n.d(t,"lighten",(function(){return y})),n.d(t,"toHex",(function(){return m})),n.d(t,"toRgb",(function(){return g}));var i=(e=>(e.transparent="rgba(0,0,0,0)",e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.aliceblue="#f0f8ff",e.antiquewhite="#faebd7",e.aquamarine="#7fffd4",e.azure="#f0ffff",e.beige="#f5f5dc",e.bisque="#ffe4c4",e.blanchedalmond="#ffebcd",e.blueviolet="#8a2be2",e.brown="#a52a2a",e.burlywood="#deb887",e.cadetblue="#5f9ea0",e.chartreuse="#7fff00",e.chocolate="#d2691e",e.coral="#ff7f50",e.cornflowerblue="#6495ed",e.cornsilk="#fff8dc",e.crimson="#dc143c",e.cyan="#00ffff",e.darkblue="#00008b",e.darkcyan="#008b8b",e.darkgoldenrod="#b8860b",e.darkgray="#a9a9a9",e.darkgreen="#006400",e.darkgrey="#a9a9a9",e.darkkhaki="#bdb76b",e.darkmagenta="#8b008b",e.darkolivegreen="#556b2f",e.darkorange="#ff8c00",e.darkorchid="#9932cc",e.darkred="#8b0000",e.darksalmon="#e9967a",e.darkseagreen="#8fbc8f",e.darkslateblue="#483d8b",e.darkslategray="#2f4f4f",e.darkslategrey="#2f4f4f",e.darkturquoise="#00ced1",e.darkviolet="#9400d3",e.deeppink="#ff1493",e.deepskyblue="#00bfff",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1e90ff",e.firebrick="#b22222",e.floralwhite="#fffaf0",e.forestgreen="#228b22",e.gainsboro="#dcdcdc",e.ghostwhite="#f8f8ff",e.gold="#ffd700",e.goldenrod="#daa520",e.greenyellow="#adff2f",e.grey="#808080",e.honeydew="#f0fff0",e.hotpink="#ff69b4",e.indianred="#cd5c5c",e.indigo="#4b0082",e.ivory="#fffff0",e.khaki="#f0e68c",e.lavender="#e6e6fa",e.lavenderblush="#fff0f5",e.lawngreen="#7cfc00",e.lemonchiffon="#fffacd",e.lightblue="#add8e6",e.lightcoral="#f08080",e.lightcyan="#e0ffff",e.lightgoldenrodyellow="#fafad2",e.lightgray="#d3d3d3",e.lightgreen="#90ee90",e.lightgrey="#d3d3d3",e.lightpink="#ffb6c1",e.lightsalmon="#ffa07a",e.lightseagreen="#20b2aa",e.lightskyblue="#87cefa",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#b0c4de",e.lightyellow="#ffffe0",e.limegreen="#32cd32",e.linen="#faf0e6",e.magenta="#ff00ff",e.mediumaquamarine="#66cdaa",e.mediumblue="#0000cd",e.mediumorchid="#ba55d3",e.mediumpurple="#9370db",e.mediumseagreen="#3cb371",e.mediumslateblue="#7b68ee",e.mediumspringgreen="#00fa9a",e.mediumturquoise="#48d1cc",e.mediumvioletred="#c71585",e.midnightblue="#191970",e.mintcream="#f5fffa",e.mistyrose="#ffe4e1",e.moccasin="#ffe4b5",e.navajowhite="#ffdead",e.oldlace="#fdf5e6",e.olivedrab="#6b8e23",e.orange="#ffa500",e.orangered="#ff4500",e.orchid="#da70d6",e.palegoldenrod="#eee8aa",e.palegreen="#98fb98",e.paleturquoise="#afeeee",e.palevioletred="#db7093",e.papayawhip="#ffefd5",e.peachpuff="#ffdab9",e.peru="#cd853f",e.pink="#ffc0cb",e.plum="#dda0dd",e.powderblue="#b0e0e6",e.rosybrown="#bc8f8f",e.royalblue="#4169e1",e.saddlebrown="#8b4513",e.salmon="#fa8072",e.sandybrown="#f4a460",e.seagreen="#2e8b57",e.seashell="#fff5ee",e.sienna="#a0522d",e.skyblue="#87ceeb",e.slateblue="#6a5acd",e.slategray="#708090",e.snow="#fffafa",e.springgreen="#00ff7f",e.steelblue="#4682b4",e.tan="#d2b48c",e.thistle="#d8bfd8",e.tomato="#ff6347",e.turquoise="#40e0d0",e.violet="#ee82ee",e.wheat="#f5deb3",e.whitesmoke="#f5f5f5",e.yellowgreen="#9acd32",e))(i||{});function r(e){return"string"==typeof e&&(e=e.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))}function o(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgb\(|RGB\()/.test(e))}function a(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgba|RGBA)/.test(e))}function s(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)}function l(e){return i[e]}function c(e){if(r(e)||s(e))return e;const t=l(e);if(!t)throw new Error("Color: Invalid Input of "+e);return t}function u(e){e=e.replace("#",""),3===e.length&&(e=Array.from(e).map(e=>e+e).join(""));const t=e.split("");return new Array(3).fill(0).map((e,n)=>parseInt(`0x${t[2*n]}${t[2*n+1]}`))}function d(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(e=>parseInt(e))}function h(e){const t=c(e).toLowerCase();return r(t)?u(t):d(t)}function f(e){const t=c(e);return a(t)?Number(t.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function p(e){const t=h(e);return t&&[...t,f(e)]}function g(e,t){const n=h(e);return"number"==typeof t?`rgba(${n.join(",")},${t})`:`rgb(${n.join(",")})`}function m(e){if(r(e))return e;const t=h(e),n=e=>Number(e).toString(16).padStart(2,"0");return"#"+t.map(n).join("")}function v(e){if(!Array.isArray(e))throw new Error(`getColorFromRgbValue: ${e} is not an array`);const{length:t}=e;if(3!==t&&4!==t)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===t?"rgb(":"rgba(")+e.join(",")+")"}function b(e,t=0){let n=p(e);return n=n.map((e,n)=>3===n?e:e-Math.ceil(2.55*t)).map(e=>e<0?0:e),v(n)}function y(e,t=0){let n=p(e);return n=n.map((e,n)=>3===n?e:e+Math.ceil(2.55*t)).map(e=>e>255?255:e),v(n)}function _(e,t=100){const n=h(e);return v([...n,t/100])}},a8ce:function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=t.enc;r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var o=t[r>>>2]>>>16-r%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return i.create(n,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],r=0;r<n;r+=2){var a=o(t[r>>>2]>>>16-r%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=o(e.charCodeAt(r)<<16-r%2*16);return i.create(n,2*t)}}}(),e.enc.Utf16}))},a9cc:function(e,t,n){"use strict";var i=n("5ca1"),r=n("a5b8"),o=n("9c80");i(i.S,"Promise",{try:function(e){var t=r.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},aa77:function(e,t,n){var i=n("5ca1"),r=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(e,t,n){var r={},s=o((function(){return!!a[e]()||l[e]()!=l})),c=r[e]=s?t(h):a[e];n&&(r[n]=c),i(i.P+i.F*s,"String",r)},h=d.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=d},aae3:function(e,t,n){var i=n("d3f4"),r=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==r(e))}},aaef:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){
  98. /** @preserve
  99. * Counter block mode compatible with Dr Brian Gladman fileenc.c
  100. * derived from CryptoJS.mode.CTR
  101. * Jan Hruby jhruby.web@gmail.com
  102. */
  103. return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function i(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var r=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),i(a);var s=a.slice(0);n.encryptBlock(s,0);for(var l=0;l<r;l++)e[t+l]^=s[l]}});return t.Decryptor=r,t}(),e.mode.CTRGladman}))},ab05:function(e,t){function n(e,t){return e.substring(0,t)+"."+e.substring(t,e.length)}e.exports=n},abaf:function(e,t,n){var i=n("d074");function r(e,t){var n=Object[e];return function(e){var r=[];if(e){if(n)return n(e);i(e,t>1?function(t){r.push([""+t,e[t]])}:function(){r.push(arguments[t])})}return r}}e.exports=r},abd7:function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},ac4d:function(e,t,n){n("3a72")("asyncIterator")},ac6a:function(e,t,n){for(var i=n("cadf"),r=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),g=0;g<p.length;g++){var m,v=p[g],b=f[v],y=a[v],_=y&&y.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,v),l[v]=h,b))for(m in i)_[m]||o(_,m,i[m],!0)}},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("53ca");function r(e,t){if("object"!==Object(i["a"])(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Object(i["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=r(e,"string");return"symbol"===Object(i["a"])(t)?t:String(t)}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae0b:function(e,t,n){var i=n("6d87"),r=typeof window===i?0:window;e.exports=r},ae10:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("278c")),o=i(n("448a"));function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(e instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(e.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var r=e[0],a=e.length-1,c=new Array(a).fill(0).map((function(r,a){return[].concat((0,o["default"])(s(e,a,t,n,i)),[e[a+1]])}));return t&&l(c,r),c.unshift(e[0]),c}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,o=e.length;if(!(o<3||t>=o)){var a=t-1;a<0&&(a=n?o+a:0);var s=t+1;s>=o&&(s=n?s-o:o-1);var l=t+2;l>=o&&(l=n?l-o:o-1);var c=e[a],u=e[t],d=e[s],h=e[l];return[[u[0]+i*(d[0]-c[0]),u[1]+i*(d[1]-c[1])],[d[0]-r*(h[0]-u[0]),d[1]-r*(h[1]-u[1])]]}}function l(e,t){var n=e[0],i=e.slice(-1)[0];return e.push([c(i[1],i[2]),c(n[0],t),t]),e}function c(e,t){var n=(0,r["default"])(e,2),i=n[0],o=n[1],a=(0,r["default"])(t,2),s=a[0],l=a[1],c=s-i,u=l-o;return[s+c,l+u]}var u=a;t["default"]=u},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},aef4:function(e,t,n){var i=n("8d35"),r=n("4b99"),o=n("e9c4");function a(e,t,n){return i(o(e,t,n),r(e))}e.exports=a},aef6:function(e,t,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="endsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,i=r(t.length),l=void 0===n?i:Math.min(r(n),i),c=String(e);return s?s.call(t,c,l):t.slice(l-c.length,l)===c}})},af56:function(e,t,n){n("ec30")("Uint16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},af60:function(e,t,n){var i=n("6d87"),r=typeof FormData!==i;function o(e){return r&&e instanceof FormData}e.exports=o},b05c:function(e,t,n){n("ec30")("Int8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},b06d:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.extendNewGraph=S,t["default"]=t.text=t.bezierCurve=t.smoothline=t.polyline=t.regPolygon=t.sector=t.arc=t.ring=t.rect=t.ellipse=t.circle=void 0;var r=i(n("448a")),o=i(n("278c")),a=i(n("050c")),s=n("5557"),l=n("e169"),c=a["default"].polylineToBezierCurve,u=a["default"].bezierCurveToPolyline,d={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.r;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,a=i.r;n.arc(r,o,a>0?a:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.r;return(0,s.checkPointIsInCircle)(e,i,r,o)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.circle=d;var h={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.hr,o=t.vr;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,a=i.hr,s=i.vr;n.ellipse(r,o,a>0?a:.01,s>0?s:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.hr,a=n.vr,l=Math.max(o,a),c=Math.min(o,a),u=Math.sqrt(l*l-c*c),d=[i-u,r],h=[i+u,r],f=(0,s.getTwoPointDistance)(e,d)+(0,s.getTwoPointDistance)(e,h);return f<=2*l},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.ellipse=h;var f={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,i=t.y,r=t.w,o=t.h;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("Rect shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.x,o=i.y,a=i.w,s=i.h;n.rect(r,o,a,s),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.x,r=n.y,o=n.w,a=n.h;return(0,s.checkPointIsInRect)(e,i,r,o,a)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.x,o=n.y,a=n.w,s=n.h;i.graphCenter=[r+a/2,o+s/2]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{x:r.x+n,y:r.y+i})}};t.rect=f;var p={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.r;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,a=i.r;n.arc(r,o,a>0?a:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry,a=n.r,l=i.lineWidth,c=l/2,u=a-c,d=a+c,h=(0,s.getTwoPointDistance)(e,[r,o]);return h>=u&&h<=d},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,a=i.r,s=i.startAngle,l=i.endAngle,c=i.clockWise;n.arc(r,o,a>0?a:.001,s,l,!c),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry,a=n.r,l=n.startAngle,c=n.endAngle,u=n.clockWise,d=i.lineWidth,h=d/2,f=a-h,p=a+h;return!(0,s.checkPointIsInSector)(e,r,o,f,l,c,u)&&(0,s.checkPointIsInSector)(e,r,o,p,l,c,u)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.arc=g;var m={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,a=i.r,s=i.startAngle,l=i.endAngle,c=i.clockWise;n.arc(r,o,a>0?a:.01,s,l,!c),n.lineTo(r,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.r,a=n.startAngle,l=n.endAngle,c=n.clockWise;return(0,s.checkPointIsInSector)(e,i,r,o,a,l,c)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,o=r.rx,a=r.ry;this.attr("shape",{rx:o+n,ry:a+i})}};t.sector=m;var v={shape:{rx:0,ry:0,r:0,side:0},validator:function(e){var t=e.shape,n=t.side,i=["rx","ry","r","side"];return i.find((function(e){return"number"!==typeof t[e]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache;n.beginPath();var o=i.rx,a=i.ry,c=i.r,u=i.side;if(!r.points||r.rx!==o||r.ry!==a||r.r!==c||r.side!==u){var d=(0,s.getRegularPolygonPoints)(o,a,c,u);Object.assign(r,{points:d,rx:o,ry:a,r:c,side:u})}var h=r.points;(0,l.drawPolylinePath)(n,h),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.cache,i=n.points;return(0,s.checkPointIsInPolygon)(e,i)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,a=t.cache,s=r.rx,l=r.ry;a.rx+=n,a.ry+=i,this.attr("shape",{rx:s+n,ry:l+i}),a.points=a.points.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]}))}};t.regPolygon=v;var b={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.style.lineWidth;n.beginPath();var o=i.points,a=i.close;1===r&&(o=(0,s.eliminateBlur)(o)),(0,l.drawPolylinePath)(n,o),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.points,o=n.close,a=i.lineWidth;return o?(0,s.checkPointIsInPolygon)(e,r):(0,s.checkPointIsNearPolyline)(e,r,a)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,a=r.points,s=a.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]}));this.attr("shape",{points:s})}};t.polyline=b;var y={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache,o=i.points,a=i.close;if(!r.points||r.points.toString()!==o.toString()){var d=c(o,a),h=u(d);Object.assign(r,{points:(0,s.deepClone)(o,!0),bezierCurve:d,hoverPoints:h})}var f=r.bezierCurve;n.beginPath(),(0,l.drawBezierCurvePath)(n,f.slice(1),f[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,i=t.shape,r=t.style,o=n.hoverPoints,a=i.close,l=r.lineWidth;return a?(0,s.checkPointIsInPolygon)(e,o):(0,s.checkPointIsNearPolyline)(e,o,l)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,a=t.shape,s=t.cache,l=a.points,c=l.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]}));s.points=c;var u=(0,o["default"])(s.bezierCurve[0],2),d=u[0],h=u[1],f=s.bezierCurve.slice(1);s.bezierCurve=[[d+n,h+i]].concat((0,r["default"])(f.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]}))})))),s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]})),this.attr("shape",{points:c})}};t.smoothline=y;var _={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache,o=i.points,a=i.close;if(!r.points||r.points.toString()!==o.toString()){var c=u(o,20);Object.assign(r,{points:(0,s.deepClone)(o,!0),hoverPoints:c})}n.beginPath(),(0,l.drawBezierCurvePath)(n,o.slice(1),o[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,i=t.shape,r=t.style,o=n.hoverPoints,a=i.close,l=r.lineWidth;return a?(0,s.checkPointIsInPolygon)(e,o):(0,s.checkPointIsNearPolyline)(e,o,l)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,a=t.shape,s=t.cache,l=a.points,c=(0,o["default"])(l[0],2),u=c[0],d=c[1],h=l.slice(1),f=[[u+n,d+i]].concat((0,r["default"])(h.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]}))}))));s.points=f,s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),r=t[0],a=t[1];return[r+n,a+i]})),this.attr("shape",{points:f})}};t.bezierCurve=_;var w={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(e){var t=e.shape,n=t.content,i=t.position,r=t.rowGap;return"string"!==typeof n?(console.error("Text content should be a string!"),!1):i instanceof Array?"number"===typeof r||(console.error("Text rowGap should be a number!"),!1):(console.error("Text position should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,a=i.content,s=i.position,l=i.maxWidth,c=i.rowGap,u=n.textBaseline,d=n.font,h=parseInt(d.replace(/\D/g,"")),f=s,p=(0,o["default"])(f,2),g=p[0],m=p[1];a=a.split("\n");var v=a.length,b=h+c,y=v*b-c,_=0;"middle"===u&&(_=y/2,m+=h/2),"bottom"===u&&(_=y,m+=h),s=new Array(v).fill(0).map((function(e,t){return[g,m+t*b-_]})),n.beginPath(),a.forEach((function(e,t){n.fillText.apply(n,[e].concat((0,r["default"])(s[t]),[l])),n.strokeText.apply(n,[e].concat((0,r["default"])(s[t]),[l]))})),n.closePath()},hoverCheck:function(e,t){t.shape,t.style;return!1},setGraphCenter:function(e,t){var n=t.shape,i=t.style,o=n.position;i.graphCenter=(0,r["default"])(o)},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,a=(0,o["default"])(r.position,2),s=a[0],l=a[1];this.attr("shape",{position:[s+n,l+i]})}};t.text=w;var x=new Map([["circle",d],["ellipse",h],["rect",f],["ring",p],["arc",g],["sector",m],["regPolygon",v],["polyline",b],["smoothline",y],["bezierCurve",_],["text",w]]),C=x;function S(e,t){e&&t?t.shape?t.validator?t.draw?x.set(e,t):console.error("Required function of draw to extendNewGraph!"):console.error("Required function of validator to extendNewGraph!"):console.error("Required attribute of shape to extendNewGraph!"):console.error("ExtendNewGraph Missing Parameters!")}t["default"]=C},b099:function(e,t,n){var i=n("9d13"),r=n("e5e7"),o=n("f461"),a=n("eb8b"),s=n("3f90"),l=n("a7ca");function c(e,t,n){var c;if(e=s(e),l(e)&&(t&&(c=t&&!isNaN(t)?t:0,e.setFullYear(o(e)+c)),n||!isNaN(n))){if(n===i)return new Date(o(e),0,1);if(n===r)return e.setMonth(11),a(e,0,r);e.setMonth(n)}return e}e.exports=c},b0c5:function(e,t,n){"use strict";var i=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},b163:function(e,t,n){var i=n("2a2f");function r(e,t){var n=i(arguments,2);return function(){return e.apply(t,i(arguments).concat(n))}}e.exports=r},b1b1:function(e,t,n){var i=n("5ca1"),r=n("9c12"),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return r(e)&&o(e)<=9007199254740991}})},b1d2:function(e,t,n){var i=n("edb5");function r(e){return i(e,(function(e){return e}))}e.exports=r},b22f:function(e,t,n){var i=n("54a2"),r=n("358a"),o=i("lastIndexOf",r);e.exports=o},b313:function(e,t,n){"use strict";var i=String.prototype.replace,r=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return i.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},b39a:function(e,t,n){var i=n("d3f4");e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b447:function(e,t,n){var i=n("3a38"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},b4c2:function(e,t,n){var i=n("5ca1");i(i.S,"Math",{imulh:function(e,t){var n=65535,i=+e,r=+t,o=i&n,a=r&n,s=i>>16,l=r>>16,c=(s*a>>>0)+(o*a>>>16);return s*l+(c>>16)+((o*l>>>0)+(c&n)>>16)}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),o=n("30b5"),a=n("c345"),s=n("3934"),l=n("2d83");e.exports=function(e){return new Promise((function(t,c){var u=e.data,d=e.headers;i.isFormData(u)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",p=e.auth.password||"";d.Authorization="Basic "+btoa(f+":"+p)}if(h.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?a(h.getAllResponseHeaders()):null,i=e.responseType&&"text"!==e.responseType?h.response:h.responseText,o={data:i,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};r(t,c,o),h=null}},h.onabort=function(){h&&(c(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",h)),h=null},i.isStandardBrowserEnv()){var g=n("7aac"),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;m&&(d[e.xsrfHeaderName]=m)}if("setRequestHeader"in h&&i.forEach(d,(function(e,t){"undefined"===typeof u&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),e.withCredentials&&(h.withCredentials=!0),e.responseType)try{h.responseType=e.responseType}catch(v){if("json"!==e.responseType)throw v}"function"===typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),c(e),h=null)})),void 0===u&&(u=null),h.send(u)}))}},b54a:function(e,t,n){"use strict";n("386b")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},b552:function(e,t){function n(e){for(var t in e)return!1;return!0}e.exports=n},b5a3:function(e,t,n){var i=n("1b14"),r=n("c6a1");function o(e,t){var n=[];return r(e,(function(e){n=n.concat(i(e)?t?o(e,t):e:[e])})),n}function a(e,t){return i(e)?o(e,t):[]}e.exports=a},b639:function(e,t,n){"use strict";(function(e){
  104. /*!
  105. * The buffer module from node.js, for the browser.
  106. *
  107. * @author Feross Aboukhadijeh <http://feross.org>
  108. * @license MIT
  109. */
  110. var i=n("1fb5"),r=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):v(e,t)}function d(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,n,i){return d(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(d(t),e=l(e,t<0?0:0|b(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|_(t,n);e=l(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function g(e,t){var n=t.length<0?0:0|b(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|b(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return X(e).length;t=(""+t).toLowerCase(),i=!0}}function w(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return L(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function x(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function C(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,i,r);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,i,r){var o,a=1,s=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function k(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function O(e,t,n,i){return ee(X(t,e.length-n),e,n,i)}function M(e,t,n,i){return ee(Z(t),e,n,i)}function D(e,t,n,i){return M(e,t,n,i)}function E(e,t,n,i){return ee(J(t),e,n,i)}function T(e,t,n,i){return ee(Q(t,e.length-n),e,n,i)}function L(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var o,a,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:o=e[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[r+1],a=e[r+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return N(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return h(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.length}return i},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,a=n-t,s=Math.min(o,a),l=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return C(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return C(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return M(this,e,t,n);case"latin1":case"binary":return D(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function N(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=A));return n}function P(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function R(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function F(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=Y(e[o]);return r}function j(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function V(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function $(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function W(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,i,o){return o||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=t,r=1,o=this[e+--i];while(i>0&&(r*=256))o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;z(this,e,t,n,r,0)}var o=1,a=0;this[t]=255&e;while(++a<n&&(o*=256))this[t+a]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;z(this,e,t,n,r,0)}var o=n-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);z(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;this[t]=255&e;while(++o<n&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);z(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:X(new c(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function G(e){if(e=K(e).replace(q,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function K(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function X(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],a=0;a<i;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,i,r,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i)}return o}function J(e){return i.toByteArray(G(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ba"))},b6e4:function(e,t,n){n("ec30")("Int32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},b72c:function(e,t,n){var i=n("5ca1"),r=n("d752");i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},b72d:function(e,t,n){},b80b:function(e,t,n){var i=n("4f7f"),r=n("4379"),o=n("37a7"),a=n("cb7c"),s=n("38fd"),l=o.keys,c=o.key,u=function(e,t){var n=l(e,t),o=s(e);if(null===o)return n;var a=u(o,t);return a.length?n.length?r(new i(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return u(a(e),arguments.length<2?void 0:c(arguments[1]))}})},b86b:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("3252"),n("d6e6"))})(0,(function(e){return function(){var t=e,n=t.x64,i=n.Word,r=n.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384}))},b86c:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}))},b871:function(e,t,n){var i=n("3843"),r=n("e095"),o=n("1b14"),a=n("d074"),s=n("c6a1"),l=n("38b3"),c=n("3cbd"),u=n("10d6");function d(e){return function(t,n){return n===e}}function h(e,t,n){if(e){if(!u(t)){var h=[],f=[];return r(t)||(t=d(t)),a(e,(function(e,i,r){t.call(n,e,i,r)&&h.push(i)})),o(e)?l(h,(function(t,n){f.push(e[t]),e.splice(t,1)})):(f={},s(h,(function(t){f[t]=e[t],i(e,t)}))),f}return c(e)}return e}e.exports=h},b8e3:function(e,t){e.exports=!0},b977:function(e,t,n){var i=n("1e64"),r=n("c6a1"),o=n("2c63");function a(e){var t,n={};return e&&o(e)&&r(e.split("&"),(function(e){t=e.split("="),n[i(t[0])]=i(t[1]||"")})),n}e.exports=a},b9a1:function(e,t,n){"use strict";var i=n("5ca1"),r=n("4bf8"),o=n("6a99"),a=n("38fd"),s=n("11e9").f;n("9e1e")&&i(i.P+n("c5b4"),"Object",{__lookupGetter__:function(e){var t,n=r(this),i=o(e,!0);do{if(t=s(n,i))return t.get}while(n=a(n))}})},b9fd:function(e,t,n){var i=n("d660"),r=i((function(e,t){return e>t}));e.exports=r},ba16:function(e,t,n){var i=n("5ca1"),r=n("11e9").f,o=n("cb7c");i(i.S,"Reflect",{deleteProperty:function(e,t){var n=r(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},ba84:function(e,t,n){var i=n("18eb"),r=i((function(e,t,n){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return i;return-1}));e.exports=r},ba92:function(e,t,n){"use strict";var i=n("4bf8"),r=n("77f1"),o=n("9def");e.exports=[].copyWithin||function(e,t){var n=i(this),a=o(n.length),s=r(e,a),l=r(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),d=1;l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);while(u-- >0)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},bb8b:function(e,t){function n(){}e.exports=n},bbd3:function(e,t,n){var i=n("8c84"),r=i("Error");e.exports=r},bc3a:function(e,t,n){e.exports=n("cee4")},bc96:function(e,t,n){},bcaa:function(e,t,n){var i=n("cb7c"),r=n("d3f4"),o=n("a5b8");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},bcdc:function(e,t){function n(e,t){return e>=t?e:(e>>=0)+Math.round(Math.random()*((t||9)-e))}e.exports=n},bd39:function(e,t,n){var i=n("d074"),r=n("e095"),o=n("2610");function a(e,t,n){var a={};if(e){if(!t)return e;r(t)||(t=o(t)),i(e,(function(i,r){a[r]=t.call(n,i,r,e)}))}return a}e.exports=a},bd6e:function(e,t,n){var i=n("1b14"),r=n("97b9"),o=n("d074");function a(e,t){return r(e)&&r(t)||i(e)&&i(t)?(o(t,(function(t,n){e[n]=a(e[n],t)})),e):t}var s=function(e){e||(e={});for(var t,n=arguments,i=n.length,r=1;r<i;r++)t=n[r],t&&a(e,t);return e};e.exports=s},bdd1:function(e,t,n){n("c6a15")("WeakSet")},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},becb:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.filterNonNumber=s,t.deepMerge=l,t.mulAdd=c,t.mergeSameStackData=u,t.getTwoPointDistance=d,t.getLinearGradientColor=h,t.getPolylineLength=f,t.getPointToLineDistance=p,t.initNeedSeries=g,t.radianToAngle=m;var r=i(n("448a")),o=i(n("7037")),a=n("5557");function s(e){return e.filter((function(e){return"number"===typeof e}))}function l(e,t){for(var n in t)e[n]&&"object"===(0,o["default"])(e[n])?l(e[n],t[n]):"object"!==(0,o["default"])(t[n])?e[n]=t[n]:e[n]=(0,a.deepClone)(t[n],!0);return e}function c(e){return e=s(e),e.reduce((function(e,t){return e+t}),0)}function u(e,t){var n=e.stack;if(!n)return(0,r["default"])(e.data);var i=t.filter((function(e){var t=e.stack;return t===n})),o=i.findIndex((function(t){var n=t.data;return n===e.data})),a=i.splice(0,o+1).map((function(e){var t=e.data;return t})),s=a[0].length;return new Array(s).fill(0).map((function(e,t){return c(a.map((function(e){return e[t]})))}))}function d(e,t){var n=Math.abs(e[0]-t[0]),i=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+i*i)}function h(e,t,n,i){if(e&&t&&n&&i.length){var o=i;"string"===typeof o&&(o=[i,i]);var a=e.createLinearGradient.apply(e,(0,r["default"])(t).concat((0,r["default"])(n))),s=1/(o.length-1);return o.forEach((function(e,t){return a.addColorStop(s*t,e)})),a}}function f(e){var t=new Array(e.length-1).fill(0).map((function(t,n){return[e[n],e[n+1]]})),n=t.map((function(e){return d.apply(void 0,(0,r["default"])(e))}));return c(n)}function p(e,t,n){var i=d(e,t),r=d(e,n),o=d(t,n);return.5*Math.sqrt((i+r+o)*(i+r-o)*(i+o-r)*(r+o-i))/o}function g(e,t,n){return e=e.filter((function(e){var t=e.type;return t===n})),e=e.map((function(e){return l((0,a.deepClone)(t,!0),e)})),e.filter((function(e){var t=e.show;return t}))}function m(e){return e/Math.PI*180}},bef9:function(e,t,n){var i=n("2d95");e.exports=function(e,t){if("number"!=typeof e&&"Number"!=i(e))throw TypeError(t);return+e}},bf0b:function(e,t,n){var i=n("355d"),r=n("aebd"),o=n("36c3"),a=n("1bc3"),s=n("07e3"),l=n("794b"),c=Object.getOwnPropertyDescriptor;t.f=n("8e60")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},bf19:function(e,t,n){var i=n("1b14"),r=n("2b81");function o(e,t){var n,o=0;if(i(e)&&i(t)){for(n=t.length;o<n;o++)if(!r(e,t[o]))return!1;return!0}return r(e,t)}e.exports=o},bf78:function(e,t,n){var i=n("d388"),r=i("boolean");e.exports=r},bfb8:function(e,t){function n(e,t){return e===t}e.exports=n},c02b:function(e,t,n){"use strict";var i=n("643e"),r=n("b39a"),o="WeakSet";n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(r(this,o),e,!0)}},i,!1,!0)},c07e:function(e,t,n){var i=n("fcd1"),r=i;e.exports=r},c098:function(e,t,n){e.exports=n("d4af")},c0fd:function(e,t,n){var i=n("90e4"),r=n("d074");function o(e,t){var n={};return t=t||[],r(i(e),(function(e,i){n[e]=t[i]})),n}e.exports=o},c135:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},c198:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.BlockCipher,r=t.algo,o=[],a=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[],p=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var r=i^i<<1^i<<2^i<<3^i<<4;r=r>>>8^255&r^99,o[n]=r,a[r]=n;var g=e[n],m=e[g],v=e[m],b=257*e[r]^16843008*r;s[n]=b<<24|b>>>8,l[n]=b<<16|b>>>16,c[n]=b<<8|b>>>24,u[n]=b;b=16843009*v^65537*m^257*g^16843008*n;d[r]=b<<24|b>>>8,h[r]=b<<16|b>>>16,f[r]=b<<8|b>>>24,p[r]=b,n?(n=g^e[e[e[v^g]]],i^=e[e[i]]):n=i=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],m=r.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=this._nRounds=n+6,r=4*(i+1),a=this._keySchedule=[],s=0;s<r;s++)if(s<n)a[s]=t[s];else{var l=a[s-1];s%n?n>6&&s%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=l<<8|l>>>24,l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=g[s/n|0]<<24),a[s]=a[s-n]^l}for(var c=this._invKeySchedule=[],u=0;u<r;u++){s=r-u;if(u%4)l=a[s];else l=a[s-4];c[u]=u<4||s<=4?l:d[o[l>>>24]]^h[o[l>>>16&255]]^f[o[l>>>8&255]]^p[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,l,c,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,h,f,p,a);n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,r,o,a,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,p=1;p<l;p++){var g=i[c>>>24]^r[u>>>16&255]^o[d>>>8&255]^a[255&h]^n[f++],m=i[u>>>24]^r[d>>>16&255]^o[h>>>8&255]^a[255&c]^n[f++],v=i[d>>>24]^r[h>>>16&255]^o[c>>>8&255]^a[255&u]^n[f++],b=i[h>>>24]^r[c>>>16&255]^o[u>>>8&255]^a[255&d]^n[f++];c=g,u=m,d=v,h=b}g=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],m=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],b=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++];e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=b},keySize:8});t.AES=i._createHelper(m)}(),e.AES}))},c1be:function(e,t,n){var i=n("90e4");function r(e){return i(e)[0]}e.exports=r},c207:function(e,t){},c240:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},c259:function(e,t){function n(e,t,n){var i,r,o=n||{},a=!1,s=0,l=!("leading"in o)||o.leading,c="trailing"in o&&o.trailing,u=function(){a=!0,e.apply(r,i),s=setTimeout(d,t)},d=function(){s=0,a||!0!==c||u()},h=function(){var e=0!==s;return clearTimeout(s),a=!1,s=0,e},f=function(){i=arguments,r=this,a=!1,0===s&&(!0===l?u():!0===c&&(s=setTimeout(d,t)))};return f.cancel=h,f}e.exports=n},c26b:function(e,t,n){"use strict";var i=n("86cc").f,r=n("2aeb"),o=n("dcbc"),a=n("9b43"),s=n("f605"),l=n("4a59"),c=n("01f9"),u=n("d53b"),d=n("7a56"),h=n("9e1e"),f=n("67ab").fastKey,p=n("b39a"),g=h?"_s":"size",m=function(e,t){var n,i=f(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[g]=0,void 0!=i&&l(i,n,e[c],e)}));return o(u.prototype,{clear:function(){for(var e=p(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[g]=0},delete:function(e){var n=p(this,t),i=m(n,e);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[g]--}return!!i},forEach:function(e){p(this,t);var n,i=a(e,arguments.length>1?arguments[1]:void 0,3);while(n=n?n.n:this._f){i(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!m(p(this,t),e)}}),h&&i(u.prototype,"size",{get:function(){return p(this,t)[g]}}),u},def:function(e,t,n){var i,r,o=m(e,t);return o?o.v=n:(e._l=o={i:r=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=o),i&&(i.n=o),e[g]++,"F"!==r&&(e._i[r]=o)),e},getEntry:m,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},c280:function(e,t,n){},c284:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=104)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},104:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-progress",class:["el-progress--"+e.type,e.status?"is-"+e.status:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}],attrs:{role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"}},["line"===e.type?n("div",{staticClass:"el-progress-bar"},[n("div",{staticClass:"el-progress-bar__outer",style:{height:e.strokeWidth+"px",backgroundColor:e.defineBackColor}},[n("div",{staticClass:"el-progress-bar__inner",style:e.barStyle},[e.showText&&e.textInside?n("div",{staticClass:"el-progress-bar__innerText",style:{color:e.textColor}},[e._v(e._s(e.content))]):e._e()])])]):n("div",{staticClass:"el-progress-circle",style:{height:e.width+"px",width:e.width+"px"}},[n("svg",{attrs:{viewBox:"0 0 100 100"}},[n("path",{staticClass:"el-progress-circle__track",style:e.trailPathStyle,attrs:{d:e.trackPath,stroke:e.defineBackColor,"stroke-width":e.relativeStrokeWidth,fill:"none"}}),n("path",{staticClass:"el-progress-circle__path",style:e.circlePathStyle,attrs:{d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0}})])]),e.showText&&!e.textInside?n("div",{staticClass:"el-progress__text",style:{fontSize:e.progressTextSize+"px",color:e.textColor}},[e.status?n("i",{class:e.iconClass}):[e._v(e._s(e.content))]],2):e._e()])},r=[];i._withStripped=!0;var o={name:"ElProgress",props:{type:{type:String,default:"line",validator:function(e){return["line","circle","dashboard"].indexOf(e)>-1}},percentage:{type:Number,default:0,required:!0,validator:function(e){return e>=0&&e<=100}},status:{type:String,validator:function(e){return["success","exception","warning"].indexOf(e)>-1}},strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:[String,Array,Function],default:""},defineBackColor:{type:[String,Array,Function],default:"#ebeef5"},textColor:{type:[String,Array,Function],default:"#606266"},format:Function},computed:{barStyle:function(){var e={};return e.width=this.percentage+"%",e.backgroundColor=this.getCurrentColor(this.percentage),e},relativeStrokeWidth:function(){return(this.strokeWidth/this.width*100).toFixed(1)},radius:function(){return"circle"===this.type||"dashboard"===this.type?parseInt(50-parseFloat(this.relativeStrokeWidth)/2,10):0},trackPath:function(){var e=this.radius,t="dashboard"===this.type;return"\n M 50 50\n m 0 "+(t?"":"-")+e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"-":"")+2*e+"\n a "+e+" "+e+" 0 1 1 0 "+(t?"":"-")+2*e+"\n "},perimeter:function(){return 2*Math.PI*this.radius},rate:function(){return"dashboard"===this.type?.75:1},strokeDashoffset:function(){var e=-1*this.perimeter*(1-this.rate)/2;return e+"px"},trailPathStyle:function(){return{strokeDasharray:this.perimeter*this.rate+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset}},circlePathStyle:function(){return{strokeDasharray:this.perimeter*this.rate*(this.percentage/100)+"px, "+this.perimeter+"px",strokeDashoffset:this.strokeDashoffset,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"}},stroke:function(){var e=void 0;if(this.color)e=this.getCurrentColor(this.percentage);else switch(this.status){case"success":e="#13ce66";break;case"exception":e="#ff4949";break;case"warning":e="#e6a23c";break;default:e="#20a0ff"}return e},iconClass:function(){return"warning"===this.status?"el-icon-warning":"line"===this.type?"success"===this.status?"el-icon-circle-check":"el-icon-circle-close":"success"===this.status?"el-icon-check":"el-icon-close"},progressTextSize:function(){return"line"===this.type?12+.4*this.strokeWidth:.111111*this.width+2},content:function(){return"function"===typeof this.format?this.format(this.percentage)||"":this.percentage+"%"}},methods:{getCurrentColor:function(e){return"function"===typeof this.color?this.color(e):"string"===typeof this.color?this.color:this.getLevelColor(e)},getLevelColor:function(e){for(var t=this.getColorArray().sort((function(e,t){return e.percentage-t.percentage})),n=0;n<t.length;n++)if(t[n].percentage>e)return t[n].color;return t[t.length-1].color},getColorArray:function(){var e=this.color,t=100/e.length;return e.map((function(e,n){return"string"===typeof e?{color:e,percentage:(n+1)*t}:e}))}}},a=o,s=n(0),l=Object(s["a"])(a,i,r,!1,null,null,null);l.options.__file="packages/progress/src/progress.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},c2ca:function(e,t,n){},c345:function(e,t,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c366:function(e,t,n){var i=n("6821"),r=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=i(t),c=r(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c367:function(e,t,n){"use strict";var i=n("8436"),r=n("50ed"),o=n("481b"),a=n("36c3");e.exports=n("30f1")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},c3a1:function(e,t,n){var i=n("e6f3"),r=n("1691");e.exports=Object.keys||function(e){return i(e,r)}},c3b6:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("1132"),n("72fe"),n("2b79"),n("38ba"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.StreamCipher,r=t.algo,o=r.RC4=i.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],r=0;r<256;r++)i[r]=r;r=0;for(var o=0;r<256;r++){var a=r%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+i[r]+s)%256;var l=i[r];i[r]=i[o],i[o]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,i=0,r=0;r<4;r++){t=(t+1)%256,n=(n+e[t])%256;var o=e[t];e[t]=e[n],e[n]=o,i|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,i}t.RC4=i._createHelper(o);var s=r.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=i._createHelper(s)}(),e.RC4}))},c401:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t,n){return i.forEach(n,(function(n){e=n(e,t)})),e}},c423:function(e,t,n){},c45f:function(e,t,n){"use strict";var i=n("1169"),r=n("d3f4"),o=n("9def"),a=n("9b43"),s=n("2b4c")("isConcatSpreadable");function l(e,t,n,c,u,d,h,f){var p,g,m=u,v=0,b=!!h&&a(h,f,3);while(v<c){if(v in n){if(p=b?b(n[v],v,t):n[v],g=!1,r(p)&&(g=p[s],g=void 0!==g?!!g:i(p)),g&&d>0)m=l(e,t,p,o(p.length),m,d-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}v++}return m}e.exports=l},c532:function(e,t,n){"use strict";var i=n("1d2b"),r=n("044b"),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return"[object ArrayBuffer]"===o.call(e)}function l(e){return"undefined"!==typeof FormData&&e instanceof FormData}function c(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function u(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return"undefined"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){return"[object Date]"===o.call(e)}function g(e){return"[object File]"===o.call(e)}function m(e){return"[object Blob]"===o.call(e)}function v(e){return"[object Function]"===o.call(e)}function b(e){return f(e)&&v(e.pipe)}function y(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function _(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function x(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function C(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=C(e[n],t):e[n]=t}for(var n=0,i=arguments.length;n<i;n++)x(arguments[n],t);return e}function S(){var e={};function t(t,n){"object"===typeof e[n]&&"object"===typeof t?e[n]=S(e[n],t):e[n]="object"===typeof t?S({},t):t}for(var n=0,i=arguments.length;n<i;n++)x(arguments[n],t);return e}function k(e,t,n){return x(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}e.exports={isArray:a,isArrayBuffer:s,isBuffer:r,isFormData:l,isArrayBufferView:c,isString:u,isNumber:d,isObject:f,isUndefined:h,isDate:p,isFile:g,isBlob:m,isFunction:v,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:w,forEach:x,merge:C,deepMerge:S,extend:k,trim:_}},c56a:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||!t)throw new Error("instance & callback is required");var r=!1,o=function(){r||(r=!0,t&&t.apply(null,arguments))};i?e.$once("after-leave",o):e.$on("after-leave",o),setTimeout((function(){o()}),n+100)}},c5b4:function(e,t,n){"use strict";e.exports=n("2d00")||!n("79e5")((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n("7726")[e]}))},c5f6:function(e,t,n){"use strict";var i=n("7726"),r=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),l=n("79e5"),c=n("9093").f,u=n("11e9").f,d=n("86cc").f,h=n("aa77").trim,f="Number",p=i[f],g=p,m=p.prototype,v=o(n("2aeb")(m))==f,b="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=b?t.trim():h(t,3);var n,i,r,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var a,l=t.slice(2),c=0,u=l.length;c<u;c++)if(a=l.charCodeAt(c),a<48||a>r)return NaN;return parseInt(l,i)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(v?l((function(){m.valueOf.call(n)})):o(n)!=f)?a(new g(y(t)),n,p):y(t)};for(var _,w=n("9e1e")?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;w.length>x;x++)r(g,_=w[x])&&!r(p,_)&&d(p,_,u(g,_));p.prototype=m,m.constructor=p,n("2aba")(i,f,p)}},c66f:function(e,t,n){"use strict";var i=n("5ca1"),r=n("0f88"),o=n("ed0b"),a=n("cb7c"),s=n("77f1"),l=n("9def"),c=n("d3f4"),u=n("7726").ArrayBuffer,d=n("ebd6"),h=o.ArrayBuffer,f=o.DataView,p=r.ABV&&u.isView,g=h.prototype.slice,m=r.VIEW,v="ArrayBuffer";i(i.G+i.W+i.F*(u!==h),{ArrayBuffer:h}),i(i.S+i.F*!r.CONSTR,v,{isView:function(e){return p&&p(e)||c(e)&&m in e}}),i(i.P+i.U+i.F*n("79e5")((function(){return!new h(2).slice(1,void 0).byteLength})),v,{slice:function(e,t){if(void 0!==g&&void 0===t)return g.call(a(this),e);var n=a(this).byteLength,i=s(e,n),r=s(void 0===t?n:t,n),o=new(d(this,h))(l(r-i)),c=new f(this),u=new f(o),p=0;while(i<r)u.setUint8(p++,c.getUint8(i++));return o}}),n("7a56")(v)},c695:function(e,t,n){e.exports=n("9b8c")},c698:function(e,t,n){var i=n("5ca1");i(i.S,"Reflect",{ownKeys:n("990b")})},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c6a1:function(e,t){function n(e,t,n){if(e)if(e.forEach)e.forEach(t,n);else for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e)}e.exports=n},c6a15:function(e,t,n){"use strict";var i=n("5ca1");e.exports=function(e){i(i.S,e,{of:function(){var e=arguments.length,t=new Array(e);while(e--)t[e]=arguments[e];return new this(t)}})}},c6fd:function(e,t,n){var i=n("4c7b"),r=n("1b14"),o=n("2c63"),a=n("36d5"),s=n("44c5"),l=n("bf78"),c=n("9bd2"),u=n("e440"),d=n("6299");function h(e,t,n,f,p,g,m){if(e===t)return!0;if(e&&t&&!i(e)&&!i(t)&&!o(e)&&!o(t)){if(a(e))return n(""+e,""+t,p,g,m);if(s(e)||l(e))return n(+e,+t,p,g,m);var v,b,y,_=r(e),w=r(t);if(_||w?_&&w:e.constructor===t.constructor)return b=u(e),y=u(t),f&&(v=f(e,t,p)),b.length===y.length&&(c(v)?d(b,(function(i,r){return i===y[r]&&h(e[i],t[y[r]],n,f,_||w?r:i,e,t)})):!!v)}return n(e,t,p,g,m)}e.exports=h},c775:function(e,t,n){var i=n("5ca1");i(i.S,"Math",{scale:n("e9d2")})},c7c6:function(e,t,n){var i=n("5ca1"),r=Math.abs;i(i.S,"Math",{hypot:function(e,t){var n,i,o=0,a=0,s=arguments.length,l=0;while(a<s)n=r(arguments[a++]),l<n?(i=l/n,o=o*i*i+1,l=n):n>0?(i=n/l,o+=i*i):o+=n;return l===1/0?1/0:l*Math.sqrt(o)}})},c7c62:function(e,t,n){var i=n("5ca1"),r=n("2d5c"),o=Math.exp;i(i.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},c7c8:function(e,t,n){},c7ca:function(e,t,n){n("3a72")("observable")},c80b:function(e,t){function n(e,t,n){return e.substring(t,n)}e.exports=n},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8c6:function(e,t){function n(e,t,n){var i,r,o=[],a=arguments;if(a.length<2&&(t=a[0],e=0),i=e>>0,r=t>>0,i<t)for(n=n>>0||1;i<r;i+=n)o.push(i);return o}e.exports=n},c8ce:function(e,t,n){var i=n("2b4c")("toPrimitive"),r=Date.prototype;i in r||n("32e9")(r,i,n("8381"))},c909:function(e,t,n){var i=n("1b14"),r=n("604a");function o(e,t,n){var o,a;if(e)if(i(e)){for(o=e.length-1;o>=0;o--)if(!1===t.call(n,e[o],o,e))break}else for(a=r(e),o=a.length-1;o>=0;o--)if(!1===t.call(n,e[a[o]],a[o],e))break}e.exports=o},c930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yAxisConfig=t.xAxisConfig=void 0;var i={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.xAxisConfig=i;var r={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.yAxisConfig=r},c973:function(e,t){function n(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(i,r)}function i(e){return function(){var t=this,i=arguments;return new Promise((function(r,o){var a=e.apply(t,i);function s(e){n(a,r,o,s,l,"next",e)}function l(e){n(a,r,o,s,l,"throw",e)}s(void 0)}))}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca5a:function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},cadf:function(e,t,n){"use strict";var i=n("9c6c"),r=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},cb7c:function(e,t,n){var i=n("d3f4");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},cc6d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaugeConfig=void 0;var i={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-Math.PI/4*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.gaugeConfig=i},ccb9:function(e,t,n){t.f=n("5168")},cd1c:function(e,t,n){var i=n("e853");e.exports=function(e,t){return new(i(e))(t)}},ce10:function(e,t,n){var i=n("69a8"),r=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},ce92:function(e,t,n){var i=n("52f7");function r(e,t,n,i,o,a,s,l){var c,u,d,h,f,p;if(t)for(u=0,d=t.length;u<d;u++){if(c=t[u],h=o.concat([""+u]),f=a.concat([c]),n.call(i,c,u,t,h,e,f))return{index:u,item:c,path:h,items:t,parent:e,nodes:f};if(s&&c&&(p=r(c,c[s],n,i,h.concat([s]),f,s,l),p))return p}}var o=i(r);e.exports=o},ceaf:function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=i.key,a=i.map,s=i.store;i.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),i=a(r(t),n,!1);if(void 0===i||!i["delete"](e))return!1;if(i.size)return!0;var l=s.get(t);return l["delete"](n),!!l.size||s["delete"](t)}})},cee4:function(e,t,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n}var c=l(s);c.Axios=o,c.create=function(e){return l(a(c.defaults,e))},c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),e.exports=c,e.exports.default=c},cf6a:function(e,t,n){var i=n("d3f4"),r=n("67ab").onFreeze;n("5eda")("seal",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},d010:function(e,t,n){"use strict";function i(e,t,n){this.$children.forEach((function(r){var o=r.$options.componentName;o===e?r.$emit.apply(r,[t].concat(n)):i.apply(r,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var i=this.$parent||this.$root,r=i.$options.componentName;while(i&&(!r||r!==e))i=i.$parent,i&&(r=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(n))},broadcast:function(e,t,n){i.call(this,e,t,n)}}}},d04f:function(e,t,n){n("7a56")("Array")},d074:function(e,t,n){var i=n("1b14"),r=n("c6a1"),o=n("87bb");function a(e,t,n){return e?(i(e)?r:o)(e,t,n):e}e.exports=a},d076:function(e,t,n){var i=n("681d"),r=i("find",1,3,!0);e.exports=r},d0b0:function(e,t,n){"use strict";n("386b")("italics",(function(e){return function(){return e(this,"i","","")}}))},d0b5:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("448a")),o=i(n("970b")),a=n("a870"),s=n("5557"),l=function e(t){(0,o["default"])(this,e),this.colorProcessor(t);var n={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,n,t)};function c(e,t){e.save();var n=t.graphCenter,i=t.rotate,o=t.scale,a=t.translate;n instanceof Array&&(e.translate.apply(e,(0,r["default"])(n)),i&&e.rotate(i*Math.PI/180),o instanceof Array&&e.scale.apply(e,(0,r["default"])(o)),a&&e.translate.apply(e,(0,r["default"])(a)),e.translate(-n[0],-n[1]))}t["default"]=l,l.prototype.colorProcessor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?a.getColorFromRgbValue:a.getRgbaValue,i=["fill","stroke","shadowColor"],r=Object.keys(e),o=r.filter((function(e){return i.find((function(t){return t===e}))}));o.forEach((function(t){return e[t]=n(e[t])}));var s=e.gradientColor,l=e.colors;if(s&&(e.gradientColor=s.map((function(e){return n(e)}))),l){var c=Object.keys(l);c.forEach((function(e){return l[e]=n(l[e])}))}},l.prototype.initStyle=function(e){c(e,this),d(e,this),h(e,this)};var u=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function d(e,t){var n=t.fill,i=t.stroke,o=t.shadowColor,s=t.opacity;u.forEach((function(n){(n||"number"===typeof n)&&(e[n]=t[n])})),n=(0,r["default"])(n),i=(0,r["default"])(i),o=(0,r["default"])(o),n[3]*=s,i[3]*=s,o[3]*=s,e.fillStyle=(0,a.getColorFromRgbValue)(n),e.strokeStyle=(0,a.getColorFromRgbValue)(i),e.shadowColor=(0,a.getColorFromRgbValue)(o);var l=t.lineDash,c=t.shadowBlur;l&&(l=l.map((function(e){return e>=0?e:0})),e.setLineDash(l)),"number"===typeof c&&(e.shadowBlur=c>0?c:.001);var d=t.fontStyle,h=t.fontVarient,f=t.fontWeight,p=t.fontSize,g=t.fontFamily;e.font=d+" "+h+" "+f+" "+p+"px "+g}function h(e,t){if(f(t)){var n=t.gradientColor,i=t.gradientParams,o=t.gradientType,s=t.gradientWith,l=t.gradientStops,c=t.opacity;n=n.map((function(e){var t=e[3]*c,n=(0,r["default"])(e);return n[3]=t,n})),n=n.map((function(e){return(0,a.getColorFromRgbValue)(e)})),"auto"===l&&(l=p(n));var u=e["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(e,(0,r["default"])(i));l.forEach((function(e,t){return u.addColorStop(e,n[t])})),e["".concat(s,"Style")]=u}}function f(e){var t=e.gradientColor,n=e.gradientParams,i=e.gradientType,r=e.gradientWith,o=e.gradientStops;if(!t||!n)return!1;if(1===t.length)return console.warn("The gradient needs to provide at least two colors"),!1;if("linear"!==i&&"radial"!==i)return console.warn("GradientType only supports linear or radial, current value is "+i),!1;var a=n.length;return"linear"===i&&4!==a||"radial"===i&&6!==a?(console.warn("The expected length of gradientParams is "+("linear"===i?"4":"6")),!1):"fill"!==r&&"stroke"!==r?(console.warn("GradientWith only supports fill or stroke, current value is "+r),!1):"auto"===o||o instanceof Array||(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+o),!1)}function p(e){var t=1/(e.length-1);return e.map((function(e,n){return t*n}))}l.prototype.restoreTransform=function(e){e.restore()},l.prototype.update=function(e){this.colorProcessor(e),Object.assign(this,e)},l.prototype.getStyle=function(){var e=(0,s.deepClone)(this,!0);return this.colorProcessor(e,!0),e}},d0ca:function(e,t,n){var i=n("5ca1"),r=n("abd7")(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(e){return r(e)}})},d185:function(e,t,n){var i=n("11e9"),r=n("38fd"),o=n("69a8"),a=n("5ca1"),s=n("d3f4"),l=n("cb7c");function c(e,t){var n,a,u=arguments.length<3?e:arguments[2];return l(e)===u?e[t]:(n=i.f(e,t))?o(n,"value")?n.value:void 0!==n.get?n.get.call(u):void 0:s(a=r(e))?c(a,t,u):void 0}a(a.S,"Reflect",{get:c})},d188:function(e,t){function n(e){return!!e&&e.constructor===TypeError}e.exports=n},d233:function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){var t;while(e.length){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var i=[],r=0;r<t.length;++r)"undefined"!==typeof t[r]&&i.push(t[r]);n.obj[n.prop]=i}}return t},a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)"undefined"!==typeof e[i]&&(n[i]=e[i]);return n},s=function e(t,n,r){if(!n)return t;if("object"!==typeof n){if(Array.isArray(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var o=t;return Array.isArray(t)&&!Array.isArray(n)&&(o=a(t,r)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"===typeof a&&n&&"object"===typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),o)},l=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},c=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},u=function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),n="",i=0;i<t.length;++i){var o=t.charCodeAt(i);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],a=r.obj[r.prop],s=Object.keys(a),l=0;l<s.length;++l){var c=s[l],u=a[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return o(t)},h=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},f=function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))};e.exports={arrayToObject:a,assign:l,compact:d,decode:c,encode:u,isBuffer:f,isRegExp:h,merge:s}},d23a:function(e,t,n){var i=n("9398"),r=n("4f14"),o=n("1e64"),a=n("3b1c"),s=n("1b14"),l=n("a20e"),c=n("44c5"),u=n("9bd2"),d=n("2b81"),h=n("e440"),f=n("fcd1"),p=n("c6a1"),g=n("1eba"),m=n("4e80"),v=n("b099"),b=n("eb8b"),y=n("0e9b");function _(e,t){var n=parseFloat(t),i=g(),r=m(i);switch(e){case"y":return m(v(i,n));case"M":return m(b(i,n));case"d":return m(y(i,n));case"h":case"H":return r+60*n*60*1e3;case"m":return r+60*n*1e3;case"s":return r+1e3*n}return r}function w(e){return(c(e)?e:new Date(e)).toUTCString()}function x(e,t,n){if(r){var d,h,g,m,v,b,y=[],x=arguments;return s(e)?y=e:x.length>1?y=[f({name:e,value:t},n)]:l(e)&&(y=[e]),y.length>0?(p(y,(function(e){d=f({},i.cookies,e),g=[],d.name&&(h=d.expires,g.push(a(d.name)+"="+a(l(d.value)?JSON.stringify(d.value):d.value)),h&&(h=isNaN(h)?h.replace(/^([0-9]+)(y|M|d|H|h|m|s)$/,(function(e,t,n){return w(_(n,t))})):/^[0-9]{11,13}$/.test(h)||c(h)?w(h):w(_("d",h)),d.expires=h),p(["expires","path","domain","secure"],(function(e){u(d[e])||g.push(d[e]&&"secure"===e?e:e+"="+d[e])}))),r.cookie=g.join("; ")})),!0):(m={},v=r.cookie,v&&p(v.split("; "),(function(e){b=e.indexOf("="),m[o(e.substring(0,b))]=o(e.substring(b+1)||"")})),1===x.length?m[e]:m)}return!1}function C(e){return d(M(),e)}function S(e,t){return x(e,t)}function k(e,t,n){return x(e,t,n),x}function O(e,t){x(e,0,f({expires:-1},i.cookies,t))}function M(){return h(x())}f(x,{_c:!1,isKey:C,has:C,set:k,setItem:k,get:S,getItem:x,remove:O,removeItem:O,keys:M,getJSON:x}),e.exports=x},d25f:function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(2);i(i.P+i.F*!n("2f21")([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},d263:function(e,t,n){"use strict";n("386b")("fixed",(function(e){return function(){return e(this,"tt","","")}}))},d266:function(e,t,n){var i=n("f31b"),r=n("8e0f");function o(e){return e&&e.trim?e.trim():i(r(e))}e.exports=o},d2c8:function(e,t,n){var i=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},d309:function(e,t,n){var i=n("7fff");function r(e,t){return i(e,t)}e.exports=r},d388:function(e,t){function n(e){return function(t){return typeof t===e}}e.exports=n},d397:function(e,t,n){"use strict";function i(e){return void 0!==e&&null!==e}function r(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=i,t.isKorean=r},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d3f7:function(e,t,n){e.exports=n("a1cf")},d4af:function(e,t,n){"use strict";var i=n("8eb7"),r=n("7b3e"),o=10,a=40,s=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=a,r*=a):(i*=s,r*=s)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},d4c0:function(e,t,n){var i=n("0d58"),r=n("2621"),o=n("52a7");e.exports=function(e){var t=i(e),n=r.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},d51b:function(e,t,n){"use strict";var i=function(){function e(e){this.value=e}return e}(),r=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new i(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),o=function(){function e(e){this._list=new r,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),r[e]=s}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=o},d51d:function(e,t,n){},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d660:function(e,t,n){var i=n("e095"),r=n("10d6"),o=n("8d5f"),a=n("c6a1");function s(e){return function(t,n){var s,l;return t&&t.length?(a(t,(function(a,c){n&&(a=i(n)?n(a,c,t):o(a,n)),r(a)||!r(s)&&!e(s,a)||(l=c,s=a)})),t[l]):s}}e.exports=s},d6c6:function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},d6e6:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("3252"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.Hasher,r=t.x64,o=r.Word,a=r.WordArray,s=t.algo;function l(){return o.create.apply(o,arguments)}var c=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],u=[];(function(){for(var e=0;e<80;e++)u[e]=l()})();var d=s.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],d=n[6],h=n[7],f=i.high,p=i.low,g=r.high,m=r.low,v=o.high,b=o.low,y=a.high,_=a.low,w=s.high,x=s.low,C=l.high,S=l.low,k=d.high,O=d.low,M=h.high,D=h.low,E=f,T=p,L=g,I=m,A=v,N=b,P=y,R=_,F=w,j=x,B=C,z=S,V=k,$=O,W=M,H=D,U=0;U<80;U++){var q=u[U];if(U<16)var G=q.high=0|e[t+2*U],K=q.low=0|e[t+2*U+1];else{var Y=u[U-15],X=Y.high,Z=Y.low,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^X>>>7,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^(Z>>>7|X<<25),ee=u[U-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,re=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=u[U-7],ae=oe.high,se=oe.low,le=u[U-16],ce=le.high,ue=le.low;K=J+se,G=Q+ae+(K>>>0<J>>>0?1:0),K=K+re,G=G+ie+(K>>>0<re>>>0?1:0),K=K+ue,G=G+ce+(K>>>0<ue>>>0?1:0);q.high=G,q.low=K}var de=F&B^~F&V,he=j&z^~j&$,fe=E&L^E&A^L&A,pe=T&I^T&N^I&N,ge=(E>>>28|T<<4)^(E<<30|T>>>2)^(E<<25|T>>>7),me=(T>>>28|E<<4)^(T<<30|E>>>2)^(T<<25|E>>>7),ve=(F>>>14|j<<18)^(F>>>18|j<<14)^(F<<23|j>>>9),be=(j>>>14|F<<18)^(j>>>18|F<<14)^(j<<23|F>>>9),ye=c[U],_e=ye.high,we=ye.low,xe=H+be,Ce=W+ve+(xe>>>0<H>>>0?1:0),Se=(xe=xe+he,Ce=Ce+de+(xe>>>0<he>>>0?1:0),xe=xe+we,Ce=Ce+_e+(xe>>>0<we>>>0?1:0),xe=xe+K,Ce=Ce+G+(xe>>>0<K>>>0?1:0),me+pe),ke=ge+fe+(Se>>>0<me>>>0?1:0);W=V,H=$,V=B,$=z,B=F,z=j,j=R+xe|0,F=P+Ce+(j>>>0<R>>>0?1:0)|0,P=A,R=N,A=L,N=I,L=E,I=T,T=xe+Se|0,E=Ce+ke+(T>>>0<xe>>>0?1:0)|0}p=i.low=p+T,i.high=f+E+(p>>>0<T>>>0?1:0),m=r.low=m+I,r.high=g+L+(m>>>0<I>>>0?1:0),b=o.low=b+N,o.high=v+A+(b>>>0<N>>>0?1:0),_=a.low=_+R,a.high=y+P+(_>>>0<R>>>0?1:0),x=s.low=x+j,s.high=w+F+(x>>>0<j>>>0?1:0),S=l.low=S+z,l.high=C+B+(S>>>0<z>>>0?1:0),O=d.low=O+$,d.high=k+V+(O>>>0<$>>>0?1:0),D=h.low=D+H,h.high=M+W+(D>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process();var r=this._hash.toX32();return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=i._createHelper(d),t.HmacSHA512=i._createHmacHelper(d)}(),e.SHA512}))},d752:function(e,t,n){var i=n("7726").parseFloat,r=n("aa77").trim;e.exports=1/i(n("fdef")+"-0")!==-1/0?function(e){var t=r(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},d7d1:function(e,t,n){"use strict";var i;(function(r){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",l="\\d{3}",c="\\d{4}",u="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){};function f(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],i=0,r=e.length;i<r;i++)n.push(e[i].substr(0,t));return n}function g(e){return function(t,n,i){var r=i[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function m(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b=["January","February","March","April","May","June","July","August","September","October","November","December"],y=p(b,3),_=p(v,3);o.i18n={dayNamesShort:_,dayNames:v,monthNamesShort:y,monthNames:b,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var w={D:function(e){return e.getDay()},DD:function(e){return m(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return m(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return m(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+u,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,i=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?i-1:i)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[c,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[l,function(e,t){e.millisecond=t}],D:[s,h],ddd:[u,h],MMM:[u,g("monthNamesShort")],MMMM:[u,g("monthNames")],a:[u,function(e,t,n){var i=t.toLowerCase();i===n.amPm[0]?e.isPm=!1:i===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,i=(t+"").match(/([+-]|\d\d)/gi);i&&(n=60*i[1]+parseInt(i[2],10),e.timezoneOffset="+"===i[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var i=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var r=[];return t=t.replace(d,(function(e,t){return r.push(t),"@@@"})),t=t.replace(a,(function(t){return t in w?w[t](e,i):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return r.shift()}))},o.parse=function(e,t,n){var i=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var r={},s=[],l=[];t=t.replace(d,(function(e,t){return l.push(t),"@@@"}));var c=f(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));c=c.replace(/@@@/g,(function(){return l.shift()}));var u=e.match(new RegExp(c,"i"));if(!u)return null;for(var h=1;h<u.length;h++)s[h-1](r,u[h],i);var p,g=new Date;return!0===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:!1===r.isPm&&12===+r.hour&&(r.hour=0),null!=r.timezoneOffset?(r.minute=+(r.minute||0)-+r.timezoneOffset,p=new Date(Date.UTC(r.year||g.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0))):p=new Date(r.year||g.getFullYear(),r.month||0,r.day||1,r.hour||0,r.minute||0,r.second||0,r.millisecond||0),p},e.exports?e.exports=o:(i=function(){return o}.call(t,n,t,e),void 0===i||(e.exports=i))})()},d81a:function(e,t,n){var i=n("d9a1"),r=n("4323"),o=n("d074"),a={};o(i,(function(e,t){a[i[t]]=t}));var s=r(a);e.exports=s},d864:function(e,t,n){var i=n("79aa");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},d8d6:function(e,t,n){n("1654"),n("6c1c"),e.exports=n("ccb9").f("iterator")},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d92a:function(e,t,n){var i=n("5ca1");i(i.P,"Function",{bind:n("f0c1")})},d940:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var i=n("d7d1"),r=a(i),o=n("4897");function a(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],l=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],c=function(e,t){for(var n=[],i=e;i<=t;i++)n.push(i);return n},u=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:l.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:l.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},d=t.toDate=function(e){return h(e)?new Date(e):null},h=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},f=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=d(e),e?r.default.format(e,t||"yyyy-MM-dd",u()):""},t.parseDate=function(e,t){return r.default.parse(e,t||"yyyy-MM-dd",u())}),p=t.getDayCountOfMonth=function(e,t){return isNaN(+t)?31:new Date(e,+t+1,0).getDate()},g=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),i=n.getDay();return g(n,0===i?7:i)},t.getWeekNumber=function(e){if(!h(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(c(t[0],t[1]))})),n.length)for(var i=0;i<24;i++)t[i]=-1===n.indexOf(i);else for(var r=0;r<24;r++)t[r]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var i=n.getDate();return v(t).map((function(e,n){return i-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function m(e,t,n,i){for(var r=t;r<n;r++)e[r]=i}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var i=e[0],r=e[1],o=i.getHours(),a=i.getMinutes(),s=r.getHours(),l=r.getMinutes();o===t&&s!==t?m(n,a,60,!0):o===t&&s===t?m(n,a,l+1,!0):o!==t&&s===t?m(n,0,l+1,!0):o<t&&s>t&&m(n,0,60,!0)})):m(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},b=t.modifyDate=function(e,t,n,i){return new Date(t,n,i,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},y=t.modifyTime=function(e,t,n,i){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,i,e.getMilliseconds())},_=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=f(t,"HH:mm:ss"),y(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var i=function(e){return r.default.parse(r.default.format(e,n),n)},o=i(e),a=t.map((function(e){return e.map(i)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],l=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),l=new Date(Math.max(e[1],s))}));var c=o<s?s:l;return b(c,e.getFullYear(),e.getMonth(),e.getDate())}),w=(t.timeWithinRange=function(e,t,n){var i=_(e,t,n);return i.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var i=Math.min(e.getDate(),p(t,n));return b(e,t,n,i)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?w(e,t-1,11):w(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?w(e,t+1,0):w(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return w(e,n-t,i)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),i=e.getMonth();return w(e,n+t,i)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},d9a1:function(e,t){var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};e.exports=n},d9ab:function(e,t,n){var i=n("5ca1"),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},d9f6:function(e,t,n){var i=n("e4ae"),r=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return a(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},da13:function(e,t,n){var i=n("1b14"),r=n("1877"),o=function(e){return!r(e)&&!isNaN(e)&&!i(e)&&e%1===0};e.exports=o},dab2:function(e,t,n){var i=n("681d"),r=i("some",1,0,!0,!1);e.exports=r},db34:function(e,t,n){var i=n("f461"),r=n("32aa");function o(e){return new Date(i(e),r(e),e.getDate())}e.exports=o},db4d:function(e,t,n){"use strict";(function(e){if(n("66f9"),n("f3a2"),n("fd5a"),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function i(e,n,i){e[n]||Object[t](e,n,{writable:!0,configurable:!0,value:i})}i(String.prototype,"padLeft","".padStart),i(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&i(Array,e,Function.call.bind([][e]))}))}).call(this,n("c8ba"))},db97:function(e,t,n){var i=n("5ca1");i(i.S,"Object",{is:n("83a1")})},db9a:function(e,t,n){var i=n("5ca1");i(i.P+i.R,"Set",{toJSON:n("44b8")("Set")})},dbbf:function(e,t,n){},dbdb:function(e,t,n){var i=n("584a"),r=n("e53d"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("b8e3")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},dc4c:function(e,t,n){var i=n("4e80"),r=n("6a30"),o=n("3f90"),a=n("44c5"),s=function(e,t){if(e){var n=o(e,t);return a(n)?i(n):n}return r()};e.exports=s},dcbc:function(e,t,n){var i=n("2aba");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},dcdc:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=91)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},91:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,i=t.target,r=i.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);i.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=r},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/checkbox/src/checkbox.vue";var d=u.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},dd8a:function(e,t,n){n("28e4")("Set")},df1b:function(e,t,n){var i=n("5ca1"),r=n("d8e8"),o=n("cb7c"),a=(n("7726").Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n("79e5")((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var i=r(e),l=o(n);return a?a(i,t,l):s.call(i,t,l)}})},df2f:function(e,t,n){(function(t,i){e.exports=i(n("21bf"))})(0,(function(e){return function(){var t=e,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],r=n[1],o=n[2],s=n[3],l=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var u=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+a[c];d+=c<20?1518500249+(r&o|~r&s):c<40?1859775393+(r^o^s):c<60?(r&o|r&s|o&s)-1894007588:(r^o^s)-899497514,l=s,s=o,o=r<<30|r>>>2,r=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=r._createHelper(s),t.HmacSHA1=r._createHmacHelper(s)}(),e.SHA1}))},df83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.easeInOutBounce=t.easeOutBounce=t.easeInBounce=t.easeInOutElastic=t.easeOutElastic=t.easeInElastic=t.easeInOutBack=t.easeOutBack=t.easeInBack=t.easeInOutQuint=t.easeOutQuint=t.easeInQuint=t.easeInOutQuart=t.easeOutQuart=t.easeInQuart=t.easeInOutCubic=t.easeOutCubic=t.easeInCubic=t.easeInOutQuad=t.easeOutQuad=t.easeInQuad=t.easeInOutSine=t.easeOutSine=t.easeInSine=t.linear=void 0;var i=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];t.linear=i;var r=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];t.easeInSine=r;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];t.easeOutSine=o;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];t.easeInOutSine=a;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];t.easeInQuad=s;var l=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];t.easeOutQuad=l;var c=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];t.easeInOutQuad=c;var u=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];t.easeInCubic=u;var d=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];t.easeOutCubic=d;var h=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];t.easeInOutCubic=h;var f=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];t.easeInQuart=f;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];t.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];t.easeInOutQuart=g;var m=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];t.easeInQuint=m;var v=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];t.easeOutQuint=v;var b=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];t.easeInOutQuint=b;var y=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];t.easeInBack=y;var _=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];t.easeOutBack=_;var w=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];t.easeInOutBack=w;var x=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];t.easeInElastic=x;var C=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];t.easeOutElastic=C;var S=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];t.easeInOutElastic=S;var k=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];t.easeInBounce=k;var O=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];t.easeOutBounce=O;var M=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];t.easeInOutBounce=M;var D=new Map([["linear",i],["easeInSine",r],["easeOutSine",o],["easeInOutSine",a],["easeInQuad",s],["easeOutQuad",l],["easeInOutQuad",c],["easeInCubic",u],["easeOutCubic",d],["easeInOutCubic",h],["easeInQuart",f],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",m],["easeOutQuint",v],["easeInOutQuint",b],["easeInBack",y],["easeOutBack",_],["easeInOutBack",w],["easeInElastic",x],["easeOutElastic",C],["easeInOutElastic",S],["easeInBounce",k],["easeOutBounce",O],["easeInOutBounce",M]]);t["default"]=D},e095:function(e,t,n){var i=n("d388"),r=i("function");e.exports=r},e0b8:function(e,t,n){"use strict";var i=n("7726"),r=n("5ca1"),o=n("2aba"),a=n("dcbc"),s=n("67ab"),l=n("4a59"),c=n("f605"),u=n("d3f4"),d=n("79e5"),h=n("5cc5"),f=n("7f20"),p=n("5dbc");e.exports=function(e,t,n,g,m,v){var b=i[e],y=b,_=m?"set":"add",w=y&&y.prototype,x={},C=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof y&&(v||w.forEach&&!d((function(){(new y).entries().next()})))){var S=new y,k=S[_](v?{}:-0,1)!=S,O=d((function(){S.has(1)})),M=h((function(e){new y(e)})),D=!v&&d((function(){var e=new y,t=5;while(t--)e[_](t,t);return!e.has(-0)}));M||(y=t((function(t,n){c(t,y,e);var i=p(new b,t,y);return void 0!=n&&l(n,m,i[_],i),i})),y.prototype=w,w.constructor=y),(O||D)&&(C("delete"),C("has"),m&&C("get")),(D||k)&&C(_),v&&w.clear&&delete w.clear}else y=g.getConstructor(t,e,m,_),a(y.prototype,n),s.NEED=!0;return f(y,e),x[e]=y,r(r.G+r.W+r.F*(y!=b),x),v||g.setStrong(y,e,m),y}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e11f:function(e,t,n){},e169:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.drawPolylinePath=o,t.drawBezierCurvePath=a,t["default"]=void 0;var r=i(n("448a"));function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||t.length<2)return!1;n&&e.beginPath(),t.forEach((function(t,n){return t&&(0===n?e.moveTo.apply(e,(0,r["default"])(t)):e.lineTo.apply(e,(0,r["default"])(t)))})),i&&e.closePath()}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e||!t)return!1;i&&e.beginPath(),n&&e.moveTo.apply(e,(0,r["default"])(n)),t.forEach((function(t){return t&&e.bezierCurveTo.apply(e,(0,r["default"])(t[0]).concat((0,r["default"])(t[1]),(0,r["default"])(t[2])))})),o&&e.closePath()}var s={drawPolylinePath:o,drawBezierCurvePath:a};t["default"]=s},e394:function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=n("38fd"),a=i.has,s=i.get,l=i.key,c=function(e,t,n){var i=a(e,t,n);if(i)return s(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};i.exp({getMetadata:function(e,t){return c(e,r(t),arguments.length<3?void 0:l(arguments[2]))}})},e3d0:function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=i.key,a=i.set;i.exp({defineMetadata:function(e,t,n,i){a(e,t,r(n),o(i))}})},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e42d:function(e,t,n){var i=n("e8c0"),r=n("9d13"),o=n("7523"),a=n("b099"),s=n("3f90"),l=n("a7ca");function c(e){return e=s(e),l(e)?Math.floor((o(e)-o(a(e,0,r)))/i)+1:NaN}e.exports=c},e440:function(e,t,n){var i=n("abaf"),r=i("keys",1);e.exports=r},e450:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},10:function(e,t){e.exports=n("f3ad")},2:function(e,t){e.exports=n("5924")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},30:function(e,t,n){"use strict";var i=n(2),r=n(3);t["a"]={bind:function(e,t,n){var o=null,a=void 0,s=Object(r["isMac"])()?100:200,l=function(){return n.context[t.expression].apply()},c=function(){Date.now()-a<s&&l(),clearInterval(o),o=null};Object(i["on"])(e,"mousedown",(function(e){0===e.button&&(a=Date.now(),Object(i["once"])(document,"mouseup",c),clearInterval(o),o=setInterval(l,s))}))}}},87:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["el-input-number",e.inputNumberSize?"el-input-number--"+e.inputNumberSize:"",{"is-disabled":e.inputNumberDisabled},{"is-without-controls":!e.controls},{"is-controls-right":e.controlsAtRight}],on:{dragstart:function(e){e.preventDefault()}}},[e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-input-number__decrease",class:{"is-disabled":e.minDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.decrease(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-down":"minus")})]):e._e(),e.controls?n("span",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-input-number__increase",class:{"is-disabled":e.maxDisabled},attrs:{role:"button"},on:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.increase(t)}}},[n("i",{class:"el-icon-"+(e.controlsAtRight?"arrow-up":"plus")})]):e._e(),n("el-input",{ref:"input",attrs:{value:e.displayValue,placeholder:e.placeholder,disabled:e.inputNumberDisabled,size:e.inputNumberSize,max:e.max,min:e.min,name:e.name,label:e.label},on:{blur:e.handleBlur,focus:e.handleFocus,input:e.handleInput,change:e.handleInputChange},nativeOn:{keydown:[function(t){return!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),e.increase(t))},function(t){return!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),e.decrease(t))}]}})],1)},r=[];i._withStripped=!0;var o=n(10),a=n.n(o),s=n(22),l=n.n(s),c=n(30),u={name:"ElInputNumber",mixins:[l()("input")],inject:{elForm:{default:""},elFormItem:{default:""}},directives:{repeatClick:c["a"]},components:{ElInput:a.a},props:{step:{type:Number,default:1},stepStrictly:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},value:{},disabled:Boolean,size:String,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:""},name:String,label:String,placeholder:String,precision:{type:Number,validator:function(e){return e>=0&&e===parseInt(e,10)}}},data:function(){return{currentValue:0,userInput:null}},watch:{value:{immediate:!0,handler:function(e){var t=void 0===e?e:Number(e);if(void 0!==t){if(isNaN(t))return;if(this.stepStrictly){var n=this.getPrecision(this.step),i=Math.pow(10,n);t=Math.round(t/this.step)*i*this.step/i}void 0!==this.precision&&(t=this.toPrecision(t,this.precision))}t>=this.max&&(t=this.max),t<=this.min&&(t=this.min),this.currentValue=t,this.userInput=null,this.$emit("input",t)}}},computed:{minDisabled:function(){return this._decrease(this.value,this.step)<this.min},maxDisabled:function(){return this._increase(this.value,this.step)>this.max},numPrecision:function(){var e=this.value,t=this.step,n=this.getPrecision,i=this.precision,r=n(t);return void 0!==i?(r>i&&console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"),i):Math.max(n(e),r)},controlsAtRight:function(){return this.controls&&"right"===this.controlsPosition},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},inputNumberSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputNumberDisabled:function(){return this.disabled||!!(this.elForm||{}).disabled},displayValue:function(){if(null!==this.userInput)return this.userInput;var e=this.currentValue;if("number"===typeof e){if(this.stepStrictly){var t=this.getPrecision(this.step),n=Math.pow(10,t);e=Math.round(e/this.step)*n*this.step/n}void 0!==this.precision&&(e=e.toFixed(this.precision))}return e}},methods:{toPrecision:function(e,t){return void 0===t&&(t=this.numPrecision),parseFloat(Math.round(e*Math.pow(10,t))/Math.pow(10,t))},getPrecision:function(e){if(void 0===e)return 0;var t=e.toString(),n=t.indexOf("."),i=0;return-1!==n&&(i=t.length-n-1),i},_increase:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e+n*t)/n)},_decrease:function(e,t){if("number"!==typeof e&&void 0!==e)return this.currentValue;var n=Math.pow(10,this.numPrecision);return this.toPrecision((n*e-n*t)/n)},increase:function(){if(!this.inputNumberDisabled&&!this.maxDisabled){var e=this.value||0,t=this._increase(e,this.step);this.setCurrentValue(t)}},decrease:function(){if(!this.inputNumberDisabled&&!this.minDisabled){var e=this.value||0,t=this._decrease(e,this.step);this.setCurrentValue(t)}},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},setCurrentValue:function(e){var t=this.currentValue;"number"===typeof e&&void 0!==this.precision&&(e=this.toPrecision(e,this.precision)),e>=this.max&&(e=this.max),e<=this.min&&(e=this.min),t!==e&&(this.userInput=null,this.$emit("input",e),this.$emit("change",e,t),this.currentValue=e)},handleInput:function(e){this.userInput=e},handleInputChange:function(e){var t=""===e?void 0:Number(e);isNaN(t)&&""!==e||this.setCurrentValue(t),this.userInput=null},select:function(){this.$refs.input.select()}},mounted:function(){var e=this.$refs.input.$refs.input;e.setAttribute("role","spinbutton"),e.setAttribute("aria-valuemax",this.max),e.setAttribute("aria-valuemin",this.min),e.setAttribute("aria-valuenow",this.currentValue),e.setAttribute("aria-disabled",this.inputNumberDisabled)},updated:function(){if(this.$refs&&this.$refs.input){var e=this.$refs.input.$refs.input;e.setAttribute("aria-valuenow",this.currentValue)}}},d=u,h=n(0),f=Object(h["a"])(d,i,r,!1,null,null,null);f.options.__file="packages/input-number/src/input-number.vue";var p=f.exports;p.install=function(e){e.component(p.name,p)};t["default"]=p}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var i=i||{};i.Utils=i.Utils||{},i.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusFirstDescendant(n))return!0}return!1},i.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(i.Utils.attemptFocus(n)||i.Utils.focusLastDescendant(n))return!0}return!1},i.Utils.attemptFocus=function(e){if(!i.Utils.isFocusable(e))return!1;i.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return i.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},i.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},i.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var i=document.createEvent(n),r=arguments.length,o=Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];return i.initEvent.apply(i,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on"+t,i),e},i.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=i.Utils},e4ae:function(e,t,n){var i=n("f772");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},e4e5:function(e,t,n){var i=n("7e28"),r=i("ceil");e.exports=r},e4f7:function(e,t,n){var i=n("4bf8"),r=n("38fd");n("5eda")("getPrototypeOf",(function(){return function(e){return r(i(e))}}))},e50d:function(e,t,n){var i=n("7037")["default"];function r(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},e5e7:function(e,t){var n="last";e.exports=n},e61b:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("3252"))})(0,(function(e){return function(t){var n=e,i=n.lib,r=i.WordArray,o=i.Hasher,a=n.x64,s=a.Word,l=n.algo,c=[],u=[],d=[];(function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var i=t%5,r=(2*e+3*t)%5;e=i,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,a=0;a<24;a++){for(var l=0,h=0,f=0;f<7;f++){if(1&o){var p=(1<<f)-1;p<32?h^=1<<p:l^=1<<p-32}128&o?o=o<<1^113:o<<=1}d[a]=s.create(l,h)}})();var h=[];(function(){for(var e=0;e<25;e++)h[e]=s.create()})();var f=l.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,r=0;r<i;r++){var o=e[t+2*r],a=e[t+2*r+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[r];s.high^=a,s.low^=o}for(var l=0;l<24;l++){for(var f=0;f<5;f++){for(var p=0,g=0,m=0;m<5;m++){s=n[f+5*m];p^=s.high,g^=s.low}var v=h[f];v.high=p,v.low=g}for(f=0;f<5;f++){var b=h[(f+4)%5],y=h[(f+1)%5],_=y.high,w=y.low;for(p=b.high^(_<<1|w>>>31),g=b.low^(w<<1|_>>>31),m=0;m<5;m++){s=n[f+5*m];s.high^=p,s.low^=g}}for(var x=1;x<25;x++){s=n[x];var C=s.high,S=s.low,k=c[x];if(k<32)p=C<<k|S>>>32-k,g=S<<k|C>>>32-k;else p=S<<k-32|C>>>64-k,g=C<<k-32|S>>>64-k;var O=h[u[x]];O.high=p,O.low=g}var M=h[0],D=n[0];M.high=D.high,M.low=D.low;for(f=0;f<5;f++)for(m=0;m<5;m++){x=f+5*m,s=n[x];var E=h[x],T=h[(f+1)%5+5*m],L=h[(f+2)%5+5*m];s.high=E.high^~T.high&L.high,s.low=E.low^~T.low&L.low}s=n[0];var I=d[l];s.high^=I.high,s.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,i=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=a[u],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c.push(f),c.push(h)}return new r.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(f),n.HmacSHA3=o._createHmacHelper(f)}(Math),e.SHA3}))},e62d:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(r.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),a=t-i,a};var i=n("2b0e"),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6f3:function(e,t,n){var i=n("07e3"),r=n("36c3"),o=n("5b4e")(!1),a=n("5559")("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);while(t.length>l)i(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},e772:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=54)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},3:function(e,t){e.exports=n("8122")},33:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,i=n.remote,r=n.valueKey;if(!this.created&&!i){if(r&&"object"===("undefined"===typeof e?"undefined":l(e))&&"object"===("undefined"===typeof t?"undefined":l(t))&&e[r]===t[r])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,i=n?t:[t],r=this.select.cachedOptions.indexOf(this),o=i.indexOf(this);r>-1&&o<0&&this.select.cachedOptions.splice(r,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},u=c,d=n(0),h=Object(d["a"])(u,i,r,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},4:function(e,t){e.exports=n("d010")},54:function(e,t,n){"use strict";n.r(t);var i=n(33);i["a"].install=function(e){e.component(i["a"].name,i["a"])},t["default"]=i["a"]}})},e804:function(e,t,n){"use strict";var i=n("5ca1"),r=n("f1ae");i(i.S+i.F*n("79e5")((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);while(t>e)r(n,e,arguments[e++]);return n.length=t,n}})},e853:function(e,t,n){var i=n("d3f4"),r=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return r(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e8c0:function(e,t){var n=864e5;e.exports=n},e956:function(e,t,n){"use strict";var i=n("5ca1"),r=n("c45f"),o=n("4bf8"),a=n("9def"),s=n("d8e8"),l=n("cd1c");i(i.P,"Array",{flatMap:function(e){var t,n,i=o(this);return s(e),t=a(i.length),n=l(i,0),r(n,i,i,t,0,1,e,arguments[1]),n}}),n("9c6c")("flatMap")},e974:function(e,t,n){"use strict";t.__esModule=!0;var i=n("2b0e"),r=a(i),o=n("5128");function a(e){return e&&e.__esModule?e:{default:e}}var s=r.default.prototype.$isServer?function(){}:n("6167"),l=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,i=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!i&&this.$slots.reference&&this.$slots.reference[0]&&(i=this.referenceElm=this.$slots.reference[0].elm),n&&i&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(i,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var i=document.createElement("div");t&&i.setAttribute(t,""),i.setAttribute("x-arrow",""),i.className="popper__arrow",e.appendChild(i)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},e97f:function(e,t,n){var i=n("4f14");function r(e){return!(!e||!i||9!==e.nodeType)}e.exports=r},e9c4:function(e,t,n){var i=n("068a"),r=n("e095"),o=n("d074"),a=n("8d5f");function s(e,t,n){var s=0;return o(e,t?r(t)?function(){s=i(s,t.apply(n,arguments))}:function(e){s=i(s,a(e,t))}:function(e){s=i(s,e)}),s}e.exports=s},e9d2:function(e,t){e.exports=Math.scale||function(e,t,n,i,r){return 0===arguments.length||e!=e||t!=t||n!=n||i!=i||r!=r?NaN:e===1/0||e===-1/0?e:(e-t)*(r-i)/(n-t)+i}},ea7d:function(e,t){function n(e){return function(t){if(t){var n=e(t);if(!isNaN(n))return n}return 0}}e.exports=n},eb26:function(e,t){function n(e,t,n){for(var i=e.length-1;i>=0;i--)t.call(n,e[i],i,e)}e.exports=n},eb53:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("a34a")),o=i(n("c973")),a=i(n("7037")),s=i(n("448a")),l=i(n("970b")),c=i(n("d0b5")),u=i(n("8f47")),d=n("5557"),h=function e(t,n){(0,l["default"])(this,e),n=(0,d.deepClone)(n,!0);var i={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},r={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};n.shape||(n.shape={}),n.style||(n.style={});var o=Object.assign({},t.shape,n.shape);Object.assign(i,n,r),Object.assign(this,t,i),this.shape=o,this.style=new c["default"](n.style),this.addedProcessor()};function f(e){return new Promise((function(t){setTimeout(t,e)}))}t["default"]=h,h.prototype.addedProcessor=function(){"function"===typeof this.setGraphCenter&&this.setGraphCenter(null,this),"function"===typeof this.added&&this.added(this)},h.prototype.drawProcessor=function(e,t){var n=e.ctx;t.style.initStyle(n),"function"===typeof this.beforeDraw&&this.beforeDraw(this,e),t.draw(e,t),"function"===typeof this.drawed&&this.drawed(this,e),t.style.restoreTransform(n)},h.prototype.hoverCheckProcessor=function(e,t){var n=t.hoverRect,i=t.style,r=t.hoverCheck,o=i.graphCenter,a=i.rotate,l=i.scale,c=i.translate;return o&&(a&&(e=(0,d.getRotatePointPos)(-a,e,o)),l&&(e=(0,d.getScalePointPos)(l.map((function(e){return 1/e})),e,o)),c&&(e=(0,d.getTranslatePointPos)(c.map((function(e){return-1*e})),e))),n?d.checkPointIsInRect.apply(void 0,[e].concat((0,s["default"])(n))):r(e,this)},h.prototype.moveProcessor=function(e){this.move(e,this),"function"===typeof this.beforeMove&&this.beforeMove(e,this),"function"===typeof this.setGraphCenter&&this.setGraphCenter(e,this),"function"===typeof this.moved&&this.moved(e,this)},h.prototype.attr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!e||void 0===t)return!1;var n="object"===(0,a["default"])(this[e]);n&&(t=(0,d.deepClone)(t,!0));var i=this.render;"style"===e?this.style.update(t):n?Object.assign(this[e],t):this[e]=t,"index"===e&&i.sortGraphsByIndex(),i.drawAllGraph()},h.prototype.animation=function(){var e=(0,o["default"])(r["default"].mark((function e(t,n){var i,a,s,l,c,h,p,g,m,v=arguments;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=v.length>2&&void 0!==v[2]&&v[2],"shape"===t||"style"===t){e.next=4;break}return console.error("Only supported shape and style animation!"),e.abrupt("return");case 4:if(n=(0,d.deepClone)(n,!0),"style"===t&&this.style.colorProcessor(n),a=this[t],s=Object.keys(n),l={},s.forEach((function(e){return l[e]=a[e]})),c=this.animationFrame,h=this.animationCurve,p=this.animationDelay,g=(0,u["default"])(h,l,n,c,!0),this.animationRoot.push(a),this.animationKeys.push(s),this.animationFrameState.push(g),!i){e.next=17;break}return e.abrupt("return");case 17:if(!(p>0)){e.next=20;break}return e.next=20,f(p);case 20:return m=this.render,e.abrupt("return",new Promise(function(){var e=(0,o["default"])(r["default"].mark((function e(t){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.launchAnimation();case 2:t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 22:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),h.prototype.turnNextAnimationFrame=function(e){var t=this.animationDelay,n=this.animationRoot,i=this.animationKeys,r=this.animationFrameState,o=this.animationPause;o||Date.now()-e<t||(n.forEach((function(e,t){i[t].forEach((function(n){e[n]=r[t][0][n]}))})),r.forEach((function(e,t){e.shift();var r=0===e.length;r&&(n[t]=null),r&&(i[t]=null)})),this.animationFrameState=r.filter((function(e){return e.length})),this.animationRoot=n.filter((function(e){return e})),this.animationKeys=i.filter((function(e){return e})))},h.prototype.animationEnd=function(){var e=this.animationFrameState,t=this.animationKeys,n=this.animationRoot,i=this.render;return n.forEach((function(n,i){var r=t[i],o=e[i].pop();r.forEach((function(e){return n[e]=o[e]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],i.drawAllGraph()},h.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},h.prototype.playAnimation=function(){var e=this.render;return this.attr("animationPause",!1),new Promise(function(){var t=(0,o["default"])(r["default"].mark((function t(n){return r["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.launchAnimation();case 2:n();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},h.prototype.delProcessor=function(e){var t=this,n=e.graphs,i=n.findIndex((function(e){return e===t}));-1!==i&&("function"===typeof this.beforeDelete&&this.beforeDelete(this),n.splice(i,1,null),"function"===typeof this.deleted&&this.deleted(this))}},eb8b:function(e,t,n){var i=n("9d13"),r=n("e5e7"),o=n("4c7b"),a=n("f461"),s=n("4e80"),l=n("32aa"),c=n("3f90"),u=n("a7ca");function d(e,t,n){var h=t&&!isNaN(t)?t:0;if(e=c(e),u(e)){if(n===i)return new Date(a(e),l(e)+h,1);if(n===r)return new Date(s(d(e,h+1,i))-1);o(n)&&e.setDate(n),h&&e.setMonth(l(e)+h)}return e}e.exports=d},ebd6:function(e,t,n){var i=n("cb7c"),r=n("d8e8"),o=n("2b4c")("species");e.exports=function(e,t){var n,a=i(e).constructor;return void 0===a||void 0==(n=i(a)[o])?t:r(n)}},ebde:function(e,t,n){var i=n("11e9"),r=n("5ca1"),o=n("cb7c");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return i.f(o(e),t)}})},ebfd:function(e,t,n){var i=n("62a0")("meta"),r=n("f772"),o=n("07e3"),a=n("d9f6").f,s=0,l=Object.isExtensible||function(){return!0},c=!n("294c")((function(){return l(Object.preventExtensions({}))})),u=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},h=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},f=function(e){return c&&p.NEED&&l(e)&&!o(e,i)&&u(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:d,getWeak:h,onFreeze:f}},ec30:function(e,t,n){"use strict";if(n("9e1e")){var i=n("2d00"),r=n("7726"),o=n("79e5"),a=n("5ca1"),s=n("0f88"),l=n("ed0b"),c=n("9b43"),u=n("f605"),d=n("4630"),h=n("32e9"),f=n("dcbc"),p=n("4588"),g=n("9def"),m=n("09fa"),v=n("77f1"),b=n("6a99"),y=n("69a8"),_=n("23c6"),w=n("d3f4"),x=n("4bf8"),C=n("33a4"),S=n("2aeb"),k=n("38fd"),O=n("9093").f,M=n("27ee"),D=n("ca5a"),E=n("2b4c"),T=n("0a49"),L=n("c366"),I=n("ebd6"),A=n("cadf"),N=n("84f2"),P=n("5cc5"),R=n("7a56"),F=n("36bd"),j=n("ba92"),B=n("86cc"),z=n("11e9"),V=B.f,$=z.f,W=r.RangeError,H=r.TypeError,U=r.Uint8Array,q="ArrayBuffer",G="Shared"+q,K="BYTES_PER_ELEMENT",Y="prototype",X=Array[Y],Z=l.ArrayBuffer,Q=l.DataView,J=T(0),ee=T(2),te=T(3),ne=T(4),ie=T(5),re=T(6),oe=L(!0),ae=L(!1),se=A.values,le=A.keys,ce=A.entries,ue=X.lastIndexOf,de=X.reduce,he=X.reduceRight,fe=X.join,pe=X.sort,ge=X.slice,me=X.toString,ve=X.toLocaleString,be=E("iterator"),ye=E("toStringTag"),_e=D("typed_constructor"),we=D("def_constructor"),xe=s.CONSTR,Ce=s.TYPED,Se=s.VIEW,ke="Wrong length!",Oe=T(1,(function(e,t){return Le(I(e,e[we]),t)})),Me=o((function(){return 1===new U(new Uint16Array([1]).buffer)[0]})),De=!!U&&!!U[Y].set&&o((function(){new U(1).set({})})),Ee=function(e,t){var n=p(e);if(n<0||n%t)throw W("Wrong offset!");return n},Te=function(e){if(w(e)&&Ce in e)return e;throw H(e+" is not a typed array!")},Le=function(e,t){if(!w(e)||!(_e in e))throw H("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return Ae(I(e,e[we]),t)},Ae=function(e,t){var n=0,i=t.length,r=Le(e,i);while(i>n)r[n]=t[n++];return r},Ne=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,i,r,o,a,s=x(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,h=M(s);if(void 0!=h&&!C(h)){for(a=h.call(s),i=[],t=0;!(o=a.next()).done;t++)i.push(o.value);s=i}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=g(s.length),r=Le(this,n);n>t;t++)r[t]=d?u(s[t],t):s[t];return r},Re=function(){var e=0,t=arguments.length,n=Le(this,t);while(t>e)n[e]=arguments[e++];return n},Fe=!!U&&o((function(){ve.call(new U(1))})),je=function(){return ve.apply(Fe?ge.call(Te(this)):Te(this),arguments)},Be={copyWithin:function(e,t){return j.call(Te(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Te(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Te(this),arguments)},filter:function(e){return Ie(this,ee(Te(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ie(Te(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return re(Te(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Te(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Te(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Te(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return fe.apply(Te(this),arguments)},lastIndexOf:function(e){return ue.apply(Te(this),arguments)},map:function(e){return Oe(Te(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Te(this),arguments)},reduceRight:function(e){return he.apply(Te(this),arguments)},reverse:function(){var e,t=this,n=Te(t).length,i=Math.floor(n/2),r=0;while(r<i)e=t[r],t[r++]=t[--n],t[n]=e;return t},some:function(e){return te(Te(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Te(this),e)},subarray:function(e,t){var n=Te(this),i=n.length,r=v(e,i);return new(I(n,n[we]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===t?i:v(t,i))-r))}},ze=function(e,t){return Ie(this,ge.call(Te(this),e,t))},Ve=function(e){Te(this);var t=Ee(arguments[1],1),n=this.length,i=x(e),r=g(i.length),o=0;if(r+t>n)throw W(ke);while(o<r)this[t+o]=i[o++]},$e={entries:function(){return ce.call(Te(this))},keys:function(){return le.call(Te(this))},values:function(){return se.call(Te(this))}},We=function(e,t){return w(e)&&e[Ce]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},He=function(e,t){return We(e,t=b(t,!0))?d(2,e[t]):$(e,t)},Ue=function(e,t,n){return!(We(e,t=b(t,!0))&&w(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};xe||(z.f=He,B.f=Ue),a(a.S+a.F*!xe,"Object",{getOwnPropertyDescriptor:He,defineProperty:Ue}),o((function(){me.call({})}))&&(me=ve=function(){return fe.call(this)});var qe=f({},Be);f(qe,$e),h(qe,be,$e.values),f(qe,{slice:ze,set:Ve,constructor:function(){},toString:me,toLocaleString:je}),Ne(qe,"buffer","b"),Ne(qe,"byteOffset","o"),Ne(qe,"byteLength","l"),Ne(qe,"length","e"),V(qe,ye,{get:function(){return this[Ce]}}),e.exports=function(e,t,n,l){l=!!l;var c=e+(l?"Clamped":"")+"Array",d="get"+e,f="set"+e,p=r[c],v=p||{},b=p&&k(p),y=!p||!s.ABV,x={},C=p&&p[Y],M=function(e,n){var i=e._d;return i.v[d](n*t+i.o,Me)},D=function(e,n,i){var r=e._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[f](n*t+r.o,i,Me)},E=function(e,t){V(e,t,{get:function(){return M(this,t)},set:function(e){return D(this,t,e)},enumerable:!0})};y?(p=n((function(e,n,i,r){u(e,p,c,"_d");var o,a,s,l,d=0,f=0;if(w(n)){if(!(n instanceof Z||(l=_(n))==q||l==G))return Ce in n?Ae(p,n):Pe.call(p,n);o=n,f=Ee(i,t);var v=n.byteLength;if(void 0===r){if(v%t)throw W(ke);if(a=v-f,a<0)throw W(ke)}else if(a=g(r)*t,a+f>v)throw W(ke);s=a/t}else s=m(n),a=s*t,o=new Z(a);h(e,"_d",{b:o,o:f,l:a,e:s,v:new Q(o)});while(d<s)E(e,d++)})),C=p[Y]=S(qe),h(C,"constructor",p)):o((function(){p(1)}))&&o((function(){new p(-1)}))&&P((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,i,r){var o;return u(e,p,c),w(n)?n instanceof Z||(o=_(n))==q||o==G?void 0!==r?new v(n,Ee(i,t),r):void 0!==i?new v(n,Ee(i,t)):new v(n):Ce in n?Ae(p,n):Pe.call(p,n):new v(m(n))})),J(b!==Function.prototype?O(v).concat(O(b)):O(v),(function(e){e in p||h(p,e,v[e])})),p[Y]=C,i||(C.constructor=p));var T=C[be],L=!!T&&("values"==T.name||void 0==T.name),I=$e.values;h(p,_e,!0),h(C,Ce,c),h(C,Se,!0),h(C,we,p),(l?new p(1)[ye]==c:ye in C)||V(C,ye,{get:function(){return c}}),x[c]=p,a(a.G+a.W+a.F*(p!=v),x),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){v.of.call(p,1)})),c,{from:Pe,of:Re}),K in C||h(C,K,t),a(a.P,c,Be),R(c),a(a.P+a.F*De,c,{set:Ve}),a(a.P+a.F*!L,c,$e),i||C.toString==me||(C.toString=me),a(a.P+a.F*o((function(){new p(1).slice()})),c,{slice:ze}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!o((function(){C.toLocaleString.call([1,2])}))),c,{toLocaleString:je}),N[c]=L?T:I,i||L||h(C,be,I)}}else e.exports=function(){}},ec39:function(e,t,n){var i=n("37a7"),r=n("cb7c"),o=i.has,a=i.key;i.exp({hasOwnMetadata:function(e,t){return o(e,r(t),arguments.length<3?void 0:a(arguments[2]))}})},ecad:function(e,t){
  111. /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
  112. "document"in window.self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(e){"use strict";if("Element"in e){var t="classList",n="prototype",i=e.Element[n],r=Object,o=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},s=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},l=function(e,t){if(""===t)throw new s("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new s("INVALID_CHARACTER_ERR","String contains an invalid character");return a.call(e,t)},c=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],i=0,r=n.length;i<r;i++)this.push(n[i]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},u=c[n]=[],d=function(){return new c(this)};if(s[n]=Error[n],u.item=function(e){return this[e]||null},u.contains=function(e){return e+="",-1!==l(this,e)},u.add=function(){var e,t=arguments,n=0,i=t.length,r=!1;do{e=t[n]+"",-1===l(this,e)&&(this.push(e),r=!0)}while(++n<i);r&&this._updateClassName()},u.remove=function(){var e,t,n=arguments,i=0,r=n.length,o=!1;do{e=n[i]+"",t=l(this,e);while(-1!==t)this.splice(t,1),o=!0,t=l(this,e)}while(++i<r);o&&this._updateClassName()},u.toggle=function(e,t){e+="";var n=this.contains(e),i=n?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!n},u.toString=function(){return this.join(" ")},r.defineProperty){var h={get:d,enumerable:!0,configurable:!0};try{r.defineProperty(i,t,h)}catch(f){void 0!==f.number&&-2146823252!==f.number||(h.enumerable=!1,r.defineProperty(i,t,h))}}else r[n].__defineGetter__&&i.__defineGetter__(t,d)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,i=arguments.length;for(n=0;n<i;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)===!t?t:n.call(this,e)}}e=null}())},ed0b:function(e,t,n){"use strict";var i=n("7726"),r=n("9e1e"),o=n("2d00"),a=n("0f88"),s=n("32e9"),l=n("dcbc"),c=n("79e5"),u=n("f605"),d=n("4588"),h=n("9def"),f=n("09fa"),p=n("9093").f,g=n("86cc").f,m=n("36bd"),v=n("7f20"),b="ArrayBuffer",y="DataView",_="prototype",w="Wrong length!",x="Wrong index!",C=i[b],S=i[y],k=i.Math,O=i.RangeError,M=i.Infinity,D=C,E=k.abs,T=k.pow,L=k.floor,I=k.log,A=k.LN2,N="buffer",P="byteLength",R="byteOffset",F=r?"_b":N,j=r?"_l":P,B=r?"_o":R;function z(e,t,n){var i,r,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?T(2,-24)-T(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for(e=E(e),e!=e||e===M?(r=e!=e?1:0,i=l):(i=L(I(e)/A),e*(o=T(2,-i))<1&&(i--,o*=2),e+=i+c>=1?u/o:u*T(2,1-c),e*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(e*o-1)*T(2,t),i+=c):(r=e*T(2,c-1)*T(2,t),i=0));t>=8;a[d++]=255&r,r/=256,t-=8);for(i=i<<t|r,s+=t;s>0;a[d++]=255&i,i/=256,s-=8);return a[--d]|=128*h,a}function V(e,t,n){var i,r=8*n-t-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=t;s>0;i=256*i+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:c?-M:M;i+=T(2,t),u-=a}return(c?-1:1)*i*T(2,u-t)}function $(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function W(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return z(e,52,8)}function G(e){return z(e,23,4)}function K(e,t,n){g(e[_],t,{get:function(){return this[n]}})}function Y(e,t,n,i){var r=+n,o=f(r);if(o+t>e[j])throw O(x);var a=e[F]._b,s=o+e[B],l=a.slice(s,s+t);return i?l:l.reverse()}function X(e,t,n,i,r,o){var a=+n,s=f(a);if(s+t>e[j])throw O(x);for(var l=e[F]._b,c=s+e[B],u=i(+r),d=0;d<t;d++)l[c+d]=u[o?d:t-d-1]}if(a.ABV){if(!c((function(){C(1)}))||!c((function(){new C(-1)}))||c((function(){return new C,new C(1.5),new C(NaN),C.name!=b}))){C=function(e){return u(this,C),new D(f(e))};for(var Z,Q=C[_]=D[_],J=p(D),ee=0;J.length>ee;)(Z=J[ee++])in C||s(C,Z,D[Z]);o||(Q.constructor=C)}var te=new S(new C(2)),ne=S[_].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[_],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else C=function(e){u(this,C,b);var t=f(e);this._b=m.call(new Array(t),0),this[j]=t},S=function(e,t,n){u(this,S,y),u(e,C,y);var i=e[j],r=d(t);if(r<0||r>i)throw O("Wrong offset!");if(n=void 0===n?i-r:h(n),r+n>i)throw O(w);this[F]=e,this[B]=r,this[j]=n},r&&(K(C,P,"_l"),K(S,N,"_b"),K(S,P,"_l"),K(S,R,"_o")),l(S[_],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return $(Y(this,4,e,arguments[1]))},getUint32:function(e){return $(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return V(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return V(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,W,t)},setUint8:function(e,t){X(this,1,e,W,t)},setInt16:function(e,t){X(this,2,e,H,t,arguments[2])},setUint16:function(e,t){X(this,2,e,H,t,arguments[2])},setInt32:function(e,t){X(this,4,e,U,t,arguments[2])},setUint32:function(e,t){X(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,q,t,arguments[2])}});v(C,b),v(S,y),s(S[_],a.VIEW,!0),t[b]=C,t[y]=S},ed50:function(e,t,n){"use strict";var i=n("5ca1"),r=n("2e08"),o=n("a25f"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},ed7e:function(e,t,n){var i=n("5ca1");i(i.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},ed87:function(e,t,n){var i=n("9a44"),r=n("c80b"),o=n("7905"),a={};function s(e){if(e=i(e),a[e])return a[e];var t=e.replace(/([a-z]?)([A-Z]+)([a-z]?)/g,(function(e,t,n,i,a){var s=n.length;return s>1&&(t&&(t+="-"),i)?(t||"")+o(r(n,0,s-1))+"-"+o(r(n,s-1,s))+i:(t||"")+(a?"-":"")+o(n)+(i||"")}));return t=t.replace(/([-]+)/g,(function(e,n,i){return i&&i+n.length<t.length?"-":""})),a[e]=t,t}e.exports=s},edad:function(e,t,n){var i=n("52f7"),r=n("c6a1"),o=n("fcd1");function a(e,t,n,i,s,l,c,u,d){var h,f,p,g,m,v=[],b=d.original,y=d.data,_=d.mapChildren||u;return r(n,(function(r,w){h=l.concat([""+w]),f=c.concat([r]),g=e||i.call(s,r,w,n,h,t,f),m=u&&r[u],g||m?(b?p=r:(p=o({},r),y&&(p[y]=r)),p[_]=a(g,r,r[u],i,s,h,f,u,d),(g||p[_].length)&&v.push(p)):g&&v.push(p)})),v}var s=i((function(e,t,n,i,r,o,s,l){return a(0,e,t,n,i,r,o,s,l)}));e.exports=s},edb5:function(e,t,n){var i=n("d074");function r(e,t,n){var r=[];if(e&&arguments.length>1){if(e.map)return e.map(t,n);i(e,(function(){r.push(t.apply(n,arguments))}))}return r}e.exports=r},ee1d:function(e,t,n){var i=n("5ca1");i(i.S,"Number",{isNaN:function(e){return e!=e}})},eecc:function(e,t,n){var i=n("c6a1"),r=n("b1d2"),o=n("edb5"),a=n("1b14"),s=n("e095"),l=n("97b9"),c=n("9bd2"),u=n("1877"),d=n("10d6"),h=n("8d5f"),f=n("2610"),p="asc",g="desc";function m(e,t){return c(e)?1:u(e)?c(t)?-1:1:e&&e.localeCompare?e.localeCompare(t):e>t?1:-1}function v(e,t,n){return function(i,r){var o=i[e],a=r[e];return o===a?n?n(i,r):0:t.order===g?m(a,o):m(o,a)}}function b(e,t,n,r){var o=[];return n=a(n)?n:[n],i(n,(function(n,c){if(n){var u,d=n;a(n)?(d=n[0],u=n[1]):l(n)&&(d=n.field,u=n.order),o.push({field:d,order:u||p}),i(t,s(d)?function(t,n){t[c]=d.call(r,t.data,n,e)}:function(e){e[c]=d?h(e.data,d):e.data})}})),o}function y(e,t,n){if(e){if(d(t))return r(e).sort(m);var i,a=o(e,(function(e){return{data:e}})),s=b(e,a,t,n),l=s.length-1;while(l>=0)i=v(l,s[l],i),l--;return i&&(a=a.sort(i)),o(a,f("data"))}return[]}e.exports=y},eedf:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=96)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},96:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},r=[];i._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.$options.propsData.hasOwnProperty("disabled")?this.disabled:(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},a=o,s=n(0),l=Object(s["a"])(a,i,r,!1,null,null,null);l.options.__file="packages/button/src/button.vue";var c=l.exports;c.install=function(e){e.component(c.name,c)};t["default"]=c}})},f081:function(e,t,n){var i=n("ae0b");function r(e){return i&&!(!e||e!==e.window)}e.exports=r},f0c1:function(e,t,n){"use strict";var i=n("d8e8"),r=n("d3f4"),o=n("31f4"),a=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),s=function(){var i=n.concat(a.call(arguments));return this instanceof s?l(t,i.length,i):o(t,i,e)};return r(t.prototype)&&(s.prototype=t.prototype),s}},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.barConfig=void 0;var i={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};t.barConfig=i},f117:function(e,t,n){var i=n("e440"),r=n("2a2f"),o=n("2b81"),a=n("c6a1"),s=n("fcd1");function l(e,t){if(e&&t){var n=s.apply(this,[{}].concat(r(arguments,1))),l=i(n);a(i(e),(function(t){o(l,t)&&(e[t]=n[t])}))}return e}e.exports=l},f1ae:function(e,t,n){"use strict";var i=n("86cc"),r=n("4630");e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},f1d9:function(e,t,n){var i=n("8965");function r(e,t){if(e.repeat)return e.repeat(t);var n=isNaN(t)?[]:new Array(i(t));return n.join(e)+(n.length>0?e:"")}e.exports=r},f28c:function(e,t){var n,i,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function l(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{i="function"===typeof clearTimeout?clearTimeout:a}catch(e){i=a}})();var c,u=[],d=!1,h=-1;function f(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&p())}function p(){if(!d){var e=s(f);d=!0;var t=u.length;while(t){c=u,u=[];while(++h<t)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,l(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new g(e,t)),1!==u.length||d||s(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},f2f6:function(e,t,n){var i=n("52f7"),r=n("edb5");function o(e,t,n,i,a,s,l,c){var u,d,h,f=c.mapChildren||l;return r(t,(function(r,p){return u=a.concat([""+p]),d=s.concat([r]),h=n.call(i,r,p,t,u,e,d),h&&r&&l&&r[l]&&(h[f]=o(r,r[l],n,i,u,d,l,c)),h}))}var a=i(o);e.exports=a},f31b:function(e,t,n){var i=n("9a44");function r(e){return e&&e.trimRight?e.trimRight():i(e).replace(/[\s\uFEFF\xA0]+$/g,"")}e.exports=r},f386:function(e,t,n){"use strict";n("386b")("small",(function(e){return function(){return e(this,"small","","")}}))},f3a2:function(e,t,n){(function(t){!function(t){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",c="object"===typeof e,u=t.regeneratorRuntime;if(u)c&&(e.exports=u);else{u=t.regeneratorRuntime=c?e.exports:{},u.wrap=_;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={},m={};m[a]=function(){return this};var v=Object.getPrototypeOf,b=v&&v(v(I([])));b&&b!==i&&r.call(b,a)&&(m=b);var y=S.prototype=x.prototype=Object.create(m);C.prototype=y.constructor=S,S.constructor=C,S[l]=C.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===C||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(y),e},u.awrap=function(e){return{__await:e}},k(O.prototype),O.prototype[s]=function(){return this},u.AsyncIterator=O,u.async=function(e,t,n,i){var r=new O(_(e,t,n,i));return u.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},k(y),y[l]="Generator",y[a]=function(){return this},y.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=I,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,r){return s.type="throw",s.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),g}}}function _(e,t,n,i){var r=t&&t.prototype instanceof x?t:x,o=Object.create(r.prototype),a=new L(i||[]);return o._invoke=M(e,n,a),o}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(i){return{type:"throw",arg:i}}}function x(){}function C(){}function S(){}function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function O(e){function n(t,i,o,a){var s=w(e[t],e,i);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"===typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then((function(e){n("next",e,o,a)}),(function(e){n("throw",e,o,a)})):Promise.resolve(c).then((function(e){l.value=e,o(l)}),a)}a(s.arg)}var i;function o(e,t){function r(){return new Promise((function(i,r){n(e,t,i,r)}))}return i=i?i.then(r,r):r()}"object"===typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=o}function M(e,t,n){var i=d;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return A()}n.method=r,n.arg=o;while(1){var a=n.delegate;if(a){var s=D(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=w(e,t,n);if("normal"===l.type){if(i=n.done?p:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}function D(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,D(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=w(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,g;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){while(++i<e.length)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:A}}function A(){return{value:n,done:!0}}}("object"===typeof t?t:"object"===typeof window?window:"object"===typeof self?self:this)}).call(this,n("c8ba"))},f3ad:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},11:function(e,t){e.exports=n("2bb5")},21:function(e,t){e.exports=n("d397")},4:function(e,t){e.exports=n("d010")},75:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),l=n.n(s),c=void 0,u="\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),r=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:i,borderSize:r,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;c||(c=document.createElement("textarea"),document.body.appendChild(c));var i=h(e),r=i.paddingSize,o=i.borderSize,a=i.boxSizing,s=i.contextStyle;c.setAttribute("style",s+";"+u),c.value=e.value||e.placeholder||"";var l=c.scrollHeight,d={};"border-box"===a?l+=o:"content-box"===a&&(l-=r),c.value="";var f=c.scrollHeight-r;if(null!==t){var p=f*t;"border-box"===a&&(p=p+r+o),l=Math.max(p,l),d.minHeight=p+"px"}if(null!==n){var g=f*n;"border-box"===a&&(g=g+r+o),l=Math.min(g,l)}return d.height=l+"px",c.parentNode&&c.parentNode.removeChild(c),c=null,d}var p=n(9),g=n.n(p),m=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[a.a,l.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return g()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,i=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,i)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(e){this.$emit("compositionstart",e),this.isComposing=!0},handleCompositionUpdate:function(e){this.$emit("compositionupdate",e);var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(m["isKorean"])(n)},handleCompositionEnd:function(e){this.$emit("compositionend",e),this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,i=0;i<t.length;i++)if(t[i].parentNode===this.$el){n=t[i];break}if(n){var r={suffix:"append",prefix:"prepend"},o=r[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},b=v,y=n(0),_=Object(y["a"])(b,i,r,!1,null,null,null);_.options.__file="packages/input/src/input.vue";var w=_.exports;w.install=function(e){e.component(w.name,w)};t["default"]=w},9:function(e,t){e.exports=n("7f4d")}})},f3cb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorConfig=void 0;var i=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];t.colorConfig=i},f3e2:function(e,t,n){"use strict";var i=n("5ca1"),r=n("0a49")(0),o=n("2f21")([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},f400:function(e,t,n){"use strict";var i=n("c26b"),r=n("b39a"),o="Map";e.exports=n("e0b8")(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(r(this,o),e);return t&&t.v},set:function(e,t){return i.def(r(this,o),0===e?0:e,t)}},i,!0)},f461:function(e,t){function n(e){return e.getFullYear()}e.exports=n},f494:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=88)}({0:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):r&&(l=s?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},4:function(e,t){e.exports=n("d010")},88:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-radio",class:[e.border&&e.radioSize?"el-radio--"+e.radioSize:"",{"is-disabled":e.isDisabled},{"is-focus":e.focus},{"is-bordered":e.border},{"is-checked":e.model===e.label}],attrs:{role:"radio","aria-checked":e.model===e.label,"aria-disabled":e.isDisabled,tabindex:e.tabIndex},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;t.stopPropagation(),t.preventDefault(),e.model=e.isDisabled?e.model:e.label}}},[n("span",{staticClass:"el-radio__input",class:{"is-disabled":e.isDisabled,"is-checked":e.model===e.label}},[n("span",{staticClass:"el-radio__inner"}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{type:"radio","aria-hidden":"true",name:e.name,disabled:e.isDisabled,tabindex:"-1",autocomplete:"off"},domProps:{value:e.label,checked:e._q(e.model,e.label)},on:{focus:function(t){e.focus=!0},blur:function(t){e.focus=!1},change:[function(t){e.model=e.label},e.handleChange]}})]),n("span",{staticClass:"el-radio__label",on:{keydown:function(e){e.stopPropagation()}}},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2)])},r=[];i._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElRadio",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElRadio",props:{value:{},label:{},disabled:Boolean,name:String,border:Boolean,size:String},data:function(){return{focus:!1}},computed:{isGroup:function(){var e=this.$parent;while(e){if("ElRadioGroup"===e.$options.componentName)return this._radioGroup=e,!0;e=e.$parent}return!1},model:{get:function(){return this.isGroup?this._radioGroup.value:this.value},set:function(e){this.isGroup?this.dispatch("ElRadioGroup","input",[e]):this.$emit("input",e),this.$refs.radio&&(this.$refs.radio.checked=this.model===this.label)}},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},radioSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._radioGroup.radioGroupSize||e},isDisabled:function(){return this.isGroup?this._radioGroup.disabled||this.disabled||(this.elForm||{}).disabled:this.disabled||(this.elForm||{}).disabled},tabIndex:function(){return this.isDisabled||this.isGroup&&this.model!==this.label?-1:0}},methods:{handleChange:function(){var e=this;this.$nextTick((function(){e.$emit("change",e.model),e.isGroup&&e.dispatch("ElRadioGroup","handleChange",e.model)}))}}},l=s,c=n(0),u=Object(c["a"])(l,i,r,!1,null,null,null);u.options.__file="packages/radio/src/radio.vue";var d=u.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},f4ea:function(e,t,n){(function(t,i,r){e.exports=i(n("21bf"),n("38ba"))})(0,(function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,r=this._iv,o=this._counter;r&&(o=this._counter=r.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[i-1]=o[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR}))},f4ff:function(e,t,n){var i=n("5ca1"),r=Math.imul;i(i.S+i.F*n("79e5")((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(e,t){var n=65535,i=+e,r=+t,o=n&i,a=n&r;return 0|o*a+((n&i>>>16)*a+o*(n&r>>>16)<<16>>>0)}})},f514:function(e,t,n){var i=n("e8c0"),r=n("2c38"),o=n("8965"),a=n("4e80"),s=n("3f90"),l=n("a7ca");function c(e,t,n){var c,u,d,h;return e=s(e),l(e)?(h=o(/^[0-7]$/.test(n)?n:e.getDay()),d=e.getDay(),c=a(e),u=c+((0===h?7:h)-(0===d?7:d))*i,t&&!isNaN(t)&&(u+=t*r),new Date(u)):e}e.exports=c},f559:function(e,t,n){"use strict";var i=n("5ca1"),r=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];i(i.P+i.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return s?s.call(t,i,n):t.slice(n,n+i.length)===i}})},f576:function(e,t,n){"use strict";var i=n("5ca1"),r=n("2e08"),o=n("a25f"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},f5cc:function(e,t,n){var i=n("6d87"),r=typeof WeakMap!==i;function o(e){return r&&e instanceof WeakMap}e.exports=o},f605:function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},f6aa:function(e,t,n){var i=n("6d87"),r=typeof Map!==i;function o(e){return r&&e instanceof Map}e.exports=o},f6b3:function(e,t,n){var i=n("5ca1");i(i.S,"Reflect",{has:function(e,t){return t in e}})},f6b4:function(e,t,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f751:function(e,t,n){var i=n("5ca1");i(i.S+i.F,"Object",{assign:n("7333")})},f772:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},f796:function(e,t,n){var i=n("b099"),r=n("3f90"),o=n("a7ca"),a=n("9927");function s(e,t){return e=r(e),o(e)?a(i(e,t))?366:365:NaN}e.exports=s},f893:function(e,t,n){e.exports={default:n("f921"),__esModule:!0}},f921:function(e,t,n){n("014b"),n("c207"),n("69d3"),n("765d"),e.exports=n("584a").Symbol},f99c:function(e,t,n){var i=n("90e4");function r(e){var t=i(e);return t[t.length-1]}e.exports=r},f9ab:function(e,t,n){var i=n("5ca1"),r=n("96fb");i(i.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},fa10:function(e,t,n){},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fa83:function(e,t,n){"use strict";n("386b")("blink",(function(e){return function(){return e(this,"blink","","")}}))},fab2:function(e,t,n){var i=n("7726").document;e.exports=i&&i.documentElement},fca0:function(e,t,n){var i=n("5ca1"),r=n("7726").isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},fcd1:function(e,t,n){var i=n("c6a1"),r=n("e440"),o=n("1b14"),a=n("6229"),s=Object.assign;function l(e,t,n){for(var o,s=t.length,l=1;l<s;l++)o=t[l],i(r(t[l]),n?function(t){e[t]=a(o[t],n)}:function(t){e[t]=o[t]});return e}var c=function(e){if(e){var t=arguments;if(!0!==e)return s?s.apply(Object,t):l(e,t);if(t.length>1)return e=o(e[1])?[]:{},l(e,t,!0)}return e};e.exports=c},fd24:function(e,t,n){var i=n("5ca1");i(i.S,"Object",{setPrototypeOf:n("8b97").set})},fd5a:function(e,t,n){n("d0ca"),e.exports=n("8378").RegExp.escape},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},fe7b:function(e,t,n){},fee7:function(e,t,n){"use strict";var i=n("5ca1"),r=n("4bf8"),o=n("d8e8"),a=n("86cc");n("9e1e")&&i(i.P+n("c5b4"),"Object",{__defineSetter__:function(e,t){a.f(r(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},ffc1:function(e,t,n){var i=n("5ca1"),r=n("504c")(!0);i(i.S,"Object",{entries:function(e){return r(e)}})}}]);